@data-fair/app-calendar 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EventEdit-CSfOzNeo.js","assets/index-BOM4rIEv.js","assets/index-CJongqRm.css","assets/VAlert-CqpVRIR5.js","assets/router-tttAuCuM.js","assets/router-CHMEvzOu.css","assets/VAlert-DtQVqRRQ.css","assets/forwardRefs-Ba3A_63W.js","assets/forwardRefs-DzLVmH92.css","assets/EventEdit-CZ57WmFy.css"])))=>i.map(i=>d[i]);
2
- import{d as _a,h as It,F as Se,T as ju,o as Ui,n as Ra,g as Fu,a as zu,u as j,b as ka,i as Uu,r as ie,s as Ie,w as Wu,c as F,e as Vt,f as Ta,j as at,k as me,l as Ne,m as $u,p as xa,q as Ae,t as Er,v as Re,x as Yt,y as Wi,z as Me,A as Ye,B as _,C as Z,D as ae,E as $,G as fe,H as ve,I as tr,J as je,K as Ma,L as nr,M as Gu,N as Fe,O as ot,P as Yu,Q as Ia,R as Oa,S as qu,U as Us,V as Si,W as Na,X as wn,Y as An,Z as Pa,_ as ce,$ as Ot,a0 as $i,a1 as Qu,a2 as Gi,a3 as bt,a4 as Ha,a5 as Ba,a6 as Cn,a7 as Dn,a8 as ue,a9 as La,aa as Yi,ab as Zu,ac as Xu,ad as Ju,ae as Ku,af as Va,ag as ja,ah as ed,ai as Fa,aj as Ws,ak as Je,al as td,am as Yn,an as ye,ao as nd,ap as rr,aq as rd,ar as id,as as sd,at as ld,au as za,av as ad,aw as qi,ax as od,ay as cd,az as ud,aA as dd,aB as fd,aC as hd}from"./index-BOM4rIEv.js";import{d as rt,e as it,m as wt,a as wr,b as Ua,u as Wa,c as $a,g as Ga,V as ht}from"./router-tttAuCuM.js";import{c as Ya,V as Le,a as Ke,b as _n,m as qa,u as Qa,d as $s,e as Qi,f as Zi,g as Xi,h as gd,i as pd,R as Za,j as Ji,k as Ki,l as es,n as md,o as vd,p as ir,q as Ar,r as Cr,s as Rn,t as ts,v as Gs,w as Ys,x as qs}from"./VAlert-CqpVRIR5.js";import{m as Xa,u as Ja,V as sr,f as Ka,a as Pn,d as bd,s as Qs,b as yd,g as Sd,n as Ed,c as Zs}from"./forwardRefs-Ba3A_63W.js";var Dr,U,eo,to,Jt,Mt,Xs,no,ro,lr={},io=[],wd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function gt(t,e){for(var n in e)t[n]=e[n];return t}function so(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,i,s,l={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?Dr.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return qn(t,l,r,i,null)}function qn(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++eo};return i==null&&U.vnode!=null&&U.vnode(s),s}function _e(){return{current:null}}function ne(t){return t.children}function Ad(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||ar(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||ar(t,s,e[s],n[s],r)}function Js(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||wd.test(e)?n:n+"px"}function ar(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Js(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Js(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r||t.addEventListener(e,s?el:Ks,s):t.removeEventListener(e,s?el:Ks,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Ks(t){Jt=!0;try{return this.l[t.type+!1](U.event?U.event(t):t)}finally{Jt=!1}}function el(t){Jt=!0;try{return this.l[t.type+!0](U.event?U.event(t):t)}finally{Jt=!1}}function Pe(t,e){this.props=t,this.context=e}function gn(t,e){if(e==null)return t.__?gn(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?gn(t):null}function lo(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return lo(t)}}function Cd(t){Jt?setTimeout(t):no(t)}function Ei(t){(!t.__d&&(t.__d=!0)&&Mt.push(t)&&!or.__r++||Xs!==U.debounceRendering)&&((Xs=U.debounceRendering)||Cd)(or)}function or(){var t,e,n,r,i,s,l,a;for(Mt.sort(function(o,u){return o.__v.__b-u.__v.__b});t=Mt.shift();)t.__d&&(e=Mt.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=gt({},s)).__v=s.__v+1,ns(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??gn(s),s.__h),fo(r,s),s.__e!=l&&lo(s)),Mt.length>e&&Mt.sort(function(o,u){return o.__v.__b-u.__v.__b}));or.__r=0}function ao(t,e,n,r,i,s,l,a,o,u){var c,d,h,f,g,m,p,b=r&&r.__k||io,S=b.length;for(n.__k=[],c=0;c<e.length;c++)if((f=n.__k[c]=(f=e[c])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?qn(null,f,null,null,f):Array.isArray(f)?qn(ne,{children:f},null,null,null):f.__b>0?qn(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=b[c])===null||h&&f.key==h.key&&f.type===h.type)b[c]=void 0;else for(d=0;d<S;d++){if((h=b[d])&&f.key==h.key&&f.type===h.type){b[d]=void 0;break}h=null}ns(t,f,h=h||lr,i,s,l,a,o,u),g=f.__e,(d=f.ref)&&h.ref!=d&&(p||(p=[]),h.ref&&p.push(h.ref,null,f),p.push(d,f.__c||g,f)),g!=null?(m==null&&(m=g),typeof f.type=="function"&&f.__k===h.__k?f.__d=o=oo(f,o,t):o=co(t,f,h,b,g,o),typeof n.type=="function"&&(n.__d=o)):o&&h.__e==o&&o.parentNode!=t&&(o=gn(h))}for(n.__e=m,c=S;c--;)b[c]!=null&&(typeof n.type=="function"&&b[c].__e!=null&&b[c].__e==n.__d&&(n.__d=uo(r).nextSibling),go(b[c],b[c]));if(p)for(c=0;c<p.length;c++)ho(p[c],p[++c],p[++c])}function oo(t,e,n){for(var r,i=t.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=t,e=typeof r.type=="function"?oo(r,e,n):co(n,r,r,i,r.__e,e));return e}function cr(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){cr(n,e)}):e.push(t)),e}function co(t,e,n,r,i,s){var l,a,o;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(i),l=null;else{for(a=s,o=0;(a=a.nextSibling)&&o<r.length;o+=1)if(a==i)break e;t.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function uo(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=uo(n)))return r}return null}function ns(t,e,n,r,i,s,l,a,o){var u,c,d,h,f,g,m,p,b,S,C,D,k,E,y,A=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(u=U.__b)&&u(e);try{e:if(typeof A=="function"){if(p=e.props,b=(u=A.contextType)&&r[u.__c],S=u?b?b.props.value:u.__:r,n.__c?m=(c=e.__c=n.__c).__=c.__E:("prototype"in A&&A.prototype.render?e.__c=c=new A(p,S):(e.__c=c=new Pe(p,S),c.constructor=A,c.render=_d),b&&b.sub(c),c.props=p,c.state||(c.state={}),c.context=S,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),A.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=gt({},c.__s)),gt(c.__s,A.getDerivedStateFromProps(p,c.__s))),h=c.props,f=c.state,c.__v=e,d)A.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(A.getDerivedStateFromProps==null&&p!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(p,S),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(p,c.__s,S)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=p,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(H){H&&(H.__=e)}),C=0;C<c._sb.length;C++)c.__h.push(c._sb[C]);c._sb=[],c.__h.length&&l.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(p,c.__s,S),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,f,g)})}if(c.context=S,c.props=p,c.__P=t,D=U.__r,k=0,"prototype"in A&&A.prototype.render){for(c.state=c.__s,c.__d=!1,D&&D(e),u=c.render(c.props,c.state,c.context),E=0;E<c._sb.length;E++)c.__h.push(c._sb[E]);c._sb=[]}else do c.__d=!1,D&&D(e),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++k<25);c.state=c.__s,c.getChildContext!=null&&(r=gt(gt({},r),c.getChildContext())),d||c.getSnapshotBeforeUpdate==null||(g=c.getSnapshotBeforeUpdate(h,f)),y=u!=null&&u.type===ne&&u.key==null?u.props.children:u,ao(t,Array.isArray(y)?y:[y],e,n,r,i,s,l,a,o),c.base=e.__e,e.__h=null,c.__h.length&&l.push(c),m&&(c.__E=c.__=null),c.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Dd(n.__e,e,n,r,i,s,l,o);(u=U.diffed)&&u(e)}catch(H){e.__v=null,(o||s!=null)&&(e.__e=a,e.__h=!!o,s[s.indexOf(a)]=null),U.__e(H,e,n)}}function fo(t,e){U.__c&&U.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){U.__e(r,n.__v)}})}function Dd(t,e,n,r,i,s,l,a){var o,u,c,d=n.props,h=e.props,f=e.type,g=0;if(f==="svg"&&(i=!0),s!=null){for(;g<s.length;g++)if((o=s[g])&&"setAttribute"in o==!!f&&(f?o.localName===f:o.nodeType===3)){t=o,s[g]=null;break}}if(t==null){if(f===null)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),s=null,a=!1}if(f===null)d===h||a&&t.data===h||(t.data=h);else{if(s=s&&Dr.call(t.childNodes),u=(d=n.props||lr).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!a){if(s!=null)for(d={},g=0;g<t.attributes.length;g++)d[t.attributes[g].name]=t.attributes[g].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(Ad(t,h,d,i,a),c)e.__k=[];else if(g=e.props.children,ao(t,Array.isArray(g)?g:[g],e,n,r,i&&f!=="foreignObject",s,l,s?s[0]:n.__k&&gn(n,0),a),s!=null)for(g=s.length;g--;)s[g]!=null&&so(s[g]);a||("value"in h&&(g=h.value)!==void 0&&(g!==t.value||f==="progress"&&!g||f==="option"&&g!==d.value)&&ar(t,"value",g,d.value,!1),"checked"in h&&(g=h.checked)!==void 0&&g!==t.checked&&ar(t,"checked",g,d.checked,!1))}return t}function ho(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){U.__e(r,n)}}function go(t,e,n){var r,i;if(U.unmount&&U.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||ho(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){U.__e(s,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&go(r[i],e,n||typeof t.type!="function");n||t.__e==null||so(t.__e),t.__=t.__e=t.__d=void 0}function _d(t,e,n){return this.constructor(t,n)}function pn(t,e,n){var r,i,s;U.__&&U.__(t,e),i=(r=typeof n=="function")?null:e.__k,s=[],ns(e,t=(!r&&n||e).__k=v(ne,null,[t]),i||lr,lr,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?Dr.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),fo(s,t)}function Rd(t,e){var n={__c:e="__cC"+ro++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.some(function(a){a.__e=!0,Ei(a)})},this.sub=function(l){i.push(l);var a=l.componentWillUnmount;l.componentWillUnmount=function(){i.splice(i.indexOf(l),1),a&&a.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Dr=io.slice,U={__e:function(t,e,n,r){for(var i,s,l;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),l=i.__d),l)return i.__E=i}catch(a){t=a}throw t}},eo=0,to=function(t){return t!=null&&t.constructor===void 0},Jt=!1,Pe.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=gt({},this.state),typeof t=="function"&&(t=t(gt({},n),this.props)),t&&gt(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ei(this))},Pe.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ei(this))},Pe.prototype.render=ne,Mt=[],no=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,or.__r=0,ro=0;var $e,Fr,tl,po=[],zr=[],nl=U.__b,rl=U.__r,il=U.diffed,sl=U.__c,ll=U.unmount;function kd(){for(var t;t=po.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Qn),t.__H.__h.forEach(wi),t.__H.__h=[]}catch(e){t.__H.__h=[],U.__e(e,t.__v)}}U.__b=function(t){$e=null,nl&&nl(t)},U.__r=function(t){rl&&rl(t);var e=($e=t.__c).__H;e&&(Fr===$e?(e.__h=[],$e.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zr,n.__N=n.i=void 0})):(e.__h.forEach(Qn),e.__h.forEach(wi),e.__h=[])),Fr=$e},U.diffed=function(t){il&&il(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(po.push(e)!==1&&tl===U.requestAnimationFrame||((tl=U.requestAnimationFrame)||Td)(kd)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zr&&(n.__=n.__V),n.i=void 0,n.__V=zr})),Fr=$e=null},U.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Qn),n.__h=n.__h.filter(function(r){return!r.__||wi(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],U.__e(r,n.__v)}}),sl&&sl(t,e)},U.unmount=function(t){ll&&ll(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Qn(r)}catch(i){e=i}}),n.__H=void 0,e&&U.__e(e,n.__v))};var al=typeof requestAnimationFrame=="function";function Td(t){var e,n=function(){clearTimeout(r),al&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);al&&(e=requestAnimationFrame(n))}function Qn(t){var e=$e,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),$e=e}function wi(t){var e=$e;t.__c=t.__(),$e=e}function xd(t,e){for(var n in e)t[n]=e[n];return t}function ol(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function cl(t){this.props=t}(cl.prototype=new Pe).isPureReactComponent=!0,cl.prototype.shouldComponentUpdate=function(t,e){return ol(this.props,t)||ol(this.state,e)};var ul=U.__b;U.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ul&&ul(t)};var Md=U.__e;U.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}Md(t,e,n,r)};var dl=U.unmount;function mo(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=xd({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return mo(r,e,n)})),t}function vo(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return vo(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Ur(){this.__u=0,this.t=null,this.__b=null}function bo(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Hn(){this.u=null,this.o=null}U.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),dl&&dl(t)},(Ur.prototype=new Pe).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=bo(r.__v),s=!1,l=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=l;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=vo(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},o=e.__h===!0;r.__u++||o||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(l,l)},Ur.prototype.componentWillUnmount=function(){this.t=[]},Ur.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=mo(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&v(ne,null,t.fallback);return i&&(i.__h=null),[v(ne,null,e.__a?null:t.children),i]};var fl=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Id(t){return this.getChildContext=function(){return t.context},t.children}function Od(t){var e=this,n=t.i;e.componentWillUnmount=function(){pn(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),pn(v(Id,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Nd(t,e){var n=v(Od,{__v:t,i:e});return n.containerInfo=e,n}(Hn.prototype=new Pe).__a=function(t){var e=this,n=bo(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),fl(e,t,r)):i()};n?n(s):s()}},Hn.prototype.render=function(t){this.u=null,this.o=new Map;var e=cr(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Hn.prototype.componentDidUpdate=Hn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){fl(t,n,e)})};var Pd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Hd=/^(?: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]/,Bd=typeof document<"u",Ld=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Pe.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var hl=U.event;function Vd(){}function jd(){return this.cancelBubble}function Fd(){return this.defaultPrevented}U.event=function(t){return hl&&(t=hl(t)),t.persist=Vd,t.isPropagationStopped=jd,t.isDefaultPrevented=Fd,t.nativeEvent=t};var gl={configurable:!0,get:function(){return this.class}},pl=U.vnode;U.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var l=n[s];Bd&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&l==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!Ld(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&Hd.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=l)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=cr(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=cr(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(gl.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",gl))}t.$$typeof=Pd,pl&&pl(t)};var ml=U.__r;U.__r=function(t){ml&&ml(t),t.__c};const yo=[],Ai=new Map;function _r(t){yo.push(t),Ai.forEach(e=>{Eo(e,t)})}function zd(t){t.isConnected&&t.getRootNode&&So(t.getRootNode())}function So(t){let e=Ai.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=Wd();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}Ai.set(t,e),Ud(e)}}function Ud(t){for(const e of yo)Eo(t,e)}function Eo(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let Wr;function Wd(){return Wr===void 0&&(Wr=$d()),Wr}function $d(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&So(document);var Gd=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';_r(Gd);class rs{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function is(t){t.parentNode&&t.parentNode.removeChild(t)}function Ee(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Yd(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Yd(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function qd(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(e);for(let l=0;l<s.length;l+=1)r.push(s[l])}return r}const Qd=/(top|left|right|bottom|width|height)$/i;function un(t,e){for(let n in e)wo(t,n,e[n])}function wo(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Qd.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Ao(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let vl=0;function vt(){return vl+=1,"fc-dom-"+vl}function Rr(t){t.preventDefault()}function Zd(t,e){return n=>{let r=Ee(n.target,t);r&&e.call(r,n,r)}}function Co(t,e,n,r){let i=Zd(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function Xd(t,e,n,r){let i;return Co(t,"mouseover",e,(s,l)=>{if(l!==i){i=l,n(s,l);let a=o=>{i=null,r(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const bl=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Jd(t,e){let n=r=>{e(r),bl.forEach(i=>{t.removeEventListener(i,n)})};bl.forEach(r=>{t.addEventListener(r,n)})}function Do(t){return Object.assign({onClick:t},_o(t))}function _o(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let yl=0;function jt(){return yl+=1,String(yl)}function ss(){document.body.classList.add("fc-not-allowed")}function ls(){document.body.classList.remove("fc-not-allowed")}function Kd(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Rr)}function ef(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Rr)}function tf(t){t.addEventListener("contextmenu",Rr)}function nf(t){t.removeEventListener("contextmenu",Rr)}function rf(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function sf(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=lf(t,e,n[r]),i)return i;return 0}function lf(t,e,n){return n.func?n.func(t,e):af(t[n.field],e[n.field])*(n.order||1)}function af(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function qt(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function dn(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function of(t,e){return t-e}function Zn(t){return t%1===0}function cf(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Sl=["years","months","days","milliseconds"],uf=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function K(t,e){return typeof t=="string"?df(t):typeof t=="object"&&t?El(t):typeof t=="number"?El({[e||"milliseconds"]:t}):null}function df(t){let e=uf.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function El(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function ff(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Ci(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function hf(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function gf(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function pf(t){return Qt(t)/365}function mf(t){return Qt(t)/30}function Qt(t){return ze(t)/864e5}function ze(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function as(t,e){let n=null;for(let r=0;r<Sl.length;r+=1){let i=Sl[r];if(e[i]){let s=t[i]/e[i];if(!Zn(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function Di(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function yt(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const vf=["sun","mon","tue","wed","thu","fri","sat"];function wl(t,e){let n=pt(t);return n[2]+=e*7,Te(n)}function be(t,e){let n=pt(t);return n[2]+=e,Te(n)}function St(t,e){let n=pt(t);return n[6]+=e,Te(n)}function bf(t,e){return At(t,e)/7}function At(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function yf(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Sf(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Ef(t,e){return(e.valueOf()-t.valueOf())/1e3}function wf(t,e){let n=re(t),r=re(e);return{years:0,months:0,days:Math.round(At(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function Af(t,e){let n=ur(t,e);return n!==null&&n%7===0?n/7:null}function ur(t,e){return mt(t)===mt(e)?Math.round(At(t,e)):null}function re(t){return Te([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Cf(t){return Te([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Df(t){return Te([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function _f(t){return Te([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Rf(t,e,n){let r=t.getUTCFullYear(),i=$r(t,r,e,n);if(i<1)return $r(t,r-1,e,n);let s=$r(t,r+1,e,n);return s>=1?Math.min(i,s):i}function $r(t,e,n,r){let i=Te([e,0,1+kf(e,n,r)]),s=re(t),l=Math.round(At(i,s));return Math.floor(l/7)+1}function kf(t,e,n){let r=7+e-n;return-((7+Te([t,0,r]).getUTCDay()-e)%7)+r-1}function Al(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Cl(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function pt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function Te(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Ro(t){return!isNaN(t.valueOf())}function mt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function ko(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",os(e,!0)))),r}function kn(t){return t.toISOString().replace(/T.*$/,"")}function Tf(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function xf(t){return qt(t.getUTCHours(),2)+":"+qt(t.getUTCMinutes(),2)+":"+qt(t.getUTCSeconds(),2)}function os(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+qt(i,2)}:${qt(s,2)}`:`GMT${n}${i}${s?`:${qt(s,2)}`:""}`}function z(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!yt(r,s)){let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function Xn(t,e,n){let r,i;return s=>(r?Ge(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const Dl={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},dr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Bn=/\s*([ap])\.?m\.?/i,Mf=/,/g,If=/\s+/g,Of=/\u200e/g,Nf=/UTC|GMT/;class Pf{constructor(e){let n={},r={},i=0;for(let s in e)s in Dl?(r[s]=e[s],i=Math.max(Dl[s],i)):(n[s]=e[s],s in dr&&(i=Math.max(dr[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=z(_l)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,a=Ff(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let u=this.format(e,r),c=this.format(n,r);if(u===c)return u;let d=zf(s,o),h=_l(d,l,r),f=h(e),g=h(n),m=Uf(u,f,c,g),p=l.separator||i||r.defaultSeparator||"";return m?m.before+f+p+g+m.after:u+p+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function _l(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>os(i.timeZoneOffset):r===0&&e.week?i=>jf(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):Hf(t,e,n)}function Hf(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Bf(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,a;i&&!l.getUTCMinutes()?a=i:a=r;let o=a.format(l);return Lf(o,s,t,e,n)}}function Bf(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function Lf(t,e,n,r,i){return t=t.replace(Of,""),n.timeZoneName==="short"&&(t=Vf(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":os(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Mf,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Bn,"").trim():r.meridiem==="narrow"?t=t.replace(Bn,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Bn,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Bn,s=>s.toLocaleLowerCase())),t=t.replace(If," "),t=t.trim(),t}function Vf(t,e){let n=!1;return t=t.replace(Nf,()=>(n=!0,e)),n||(t+=` ${e}`),t}function jf(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function Ff(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:mt(t)!==mt(e)?1:0}function zf(t,e){let n={};for(let r in t)(!(r in dr)||dr[r]<=e)&&(n[r]=t[r]);return n}function Uf(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let l=t.substr(0,s);i=s+e.length;let a=t.substr(i),o=0;for(;o<n.length;){let u=n.indexOf(r,o);if(u===-1)break;let c=n.substr(0,u);o=u+r.length;let d=n.substr(o);if(l===c&&a===d)return{before:l,after:a}}}return null}function Rl(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function fr(t,e,n,r){let i=Rl(t,n.calendarSystem),s=e?Rl(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Wf{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,fr(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,fr(e,n,r,i))}}class $f{constructor(e){this.func=e}format(e,n,r){return this.func(fr(e,null,n,r))}formatRange(e,n,r,i){return this.func(fr(e,n,r,i))}}function se(t){return typeof t=="object"&&t?new Pf(t):typeof t=="string"?new Wf(t):typeof t=="function"?new $f(t):null}const kl={navLinkDayClick:w,navLinkWeekClick:w,duration:K,bootstrapFontAwesome:w,buttonIcons:w,customButtons:w,defaultAllDayEventDuration:K,defaultTimedEventDuration:K,nextDayThreshold:K,scrollTime:K,scrollTimeReset:Boolean,slotMinTime:K,slotMaxTime:K,dayPopoverFormat:se,slotDuration:K,snapDuration:K,headerToolbar:w,footerToolbar:w,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:se,dayHeaderClassNames:w,dayHeaderContent:w,dayHeaderDidMount:w,dayHeaderWillUnmount:w,dayCellClassNames:w,dayCellContent:w,dayCellDidMount:w,dayCellWillUnmount:w,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:w,weekNumbers:Boolean,weekNumberClassNames:w,weekNumberContent:w,weekNumberDidMount:w,weekNumberWillUnmount:w,editable:Boolean,viewClassNames:w,viewDidMount:w,viewWillUnmount:w,nowIndicator:Boolean,nowIndicatorClassNames:w,nowIndicatorContent:w,nowIndicatorDidMount:w,nowIndicatorWillUnmount:w,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:w,locale:w,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:w,eventOrder:rf,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:w,contentHeight:w,direction:String,weekNumberFormat:se,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:w,initialDate:w,now:w,eventDataTransform:w,stickyHeaderDates:w,stickyFooterScrollbar:w,viewHeight:w,defaultAllDay:Boolean,eventSourceFailure:w,eventSourceSuccess:w,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:w,eventConstraint:w,eventAllow:w,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:w,eventContent:w,eventDidMount:w,eventWillUnmount:w,selectConstraint:w,selectOverlap:w,selectAllow:w,droppable:Boolean,unselectCancel:String,slotLabelFormat:w,slotLaneClassNames:w,slotLaneContent:w,slotLaneDidMount:w,slotLaneWillUnmount:w,slotLabelClassNames:w,slotLabelContent:w,slotLabelDidMount:w,slotLabelWillUnmount:w,dayMaxEvents:w,dayMaxEventRows:w,dayMinWidth:Number,slotLabelInterval:K,allDayText:String,allDayClassNames:w,allDayContent:w,allDayDidMount:w,allDayWillUnmount:w,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:se,rerenderDelay:Number,moreLinkText:w,moreLinkHint:w,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:w,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:K,hiddenDays:w,fixedWeekCount:Boolean,validRange:w,visibleRange:w,titleFormat:w,eventInteractive:Boolean,noEventsText:String,viewHint:w,navLinkHint:w,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:w,moreLinkClassNames:w,moreLinkContent:w,moreLinkDidMount:w,moreLinkWillUnmount:w,monthStartFormat:se,handleCustomRendering:w,customRenderingMetaMap:w,customRenderingReplaces:Boolean},fn={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},Tl={datesSet:w,eventsSet:w,eventAdd:w,eventChange:w,eventRemove:w,windowResize:w,eventClick:w,eventMouseEnter:w,eventMouseLeave:w,select:w,unselect:w,loading:w,_unmount:w,_beforeprint:w,_afterprint:w,_noEventDrop:w,_noEventResize:w,_resize:w,_scrollRequest:w},xl={buttonText:w,buttonHints:w,views:w,plugins:w,initialEvents:w,events:w,eventSources:w},Tt={headerToolbar:xt,footerToolbar:xt,buttonText:xt,buttonHints:xt,buttonIcons:xt,dateIncrement:xt,plugins:Ln,events:Ln,eventSources:Ln,resources:Ln};function xt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Ge(t,e):t===e}function Ln(t,e){return Array.isArray(t)&&Array.isArray(e)?yt(t,e):t===e}const Gf={type:String,component:w,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:w,usesMinMaxTime:Boolean,classNames:w,content:w,didMount:w,willUnmount:w};function Gr(t){return us(t,Tt)}function cs(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function w(t){return t}const{hasOwnProperty:hr}=Object.prototype;function us(t,e){let n={};if(e){for(let r in e)if(e[r]===xt){let i=[];for(let s=t.length-1;s>=0;s-=1){let l=t[s][r];if(typeof l=="object"&&l)i.unshift(l);else if(l!==void 0){n[r]=l;break}}i.length&&(n[r]=us(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function Ht(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function st(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function To(t){let e={};for(let n of t)e[n]=!0;return e}function ds(t){let e=[];for(let n in t)e.push(t[n]);return e}function Ge(t,e){if(t===e)return!0;for(let n in t)if(hr.call(t,n)&&!(n in e))return!1;for(let n in e)if(hr.call(e,n)&&t[n]!==e[n])return!1;return!0}const Yf=/^on[A-Z]/;function qf(t,e){const n=_i(t,e);for(let r of n)if(!Yf.test(r))return!1;return!0}function _i(t,e){let n=[];for(let r in t)hr.call(t,r)&&(r in e||n.push(r));for(let r in e)hr.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Yr(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Qf(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Qf(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function Zf(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=r){let l=t[s];l!==void 0&&i.push(l)}return i}let xo={};function Xf(t,e){xo[t]=e}function Jf(t){return new xo[t]}class Kf{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Te(e)}markerToArray(e){return pt(e)}}Xf("gregory",Kf);const eh=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function th(t){let e=eh.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Ro(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class nh{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=Jf(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Te(Al(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=Te(e)),n===null||!Ro(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=th(e);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return mt(e)===mt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return mt(e)===mt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=Af(e,n),r!==null?{unit:"week",value:r}:(r=ur(e,n),r!==null?{unit:"day",value:r}:(r=yf(e,n),Zn(r)?{unit:"hour",value:r}:(r=Sf(e,n),Zn(r)?{unit:"minute",value:r}:(r=Ef(e,n),Zn(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/pf(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/mf(r):r.days&&(i=ur(e,n),i!==null)?i/Qt(r):(n.valueOf()-e.valueOf())/ze(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?re(e):n==="hour"?Cf(e):n==="minute"?Df(e):n==="second"?_f(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)):Rf(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=St(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),ko(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?Te(Al(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):Te(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Cl(pt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(pt(e)):null}toDate(e,n){return this.timeZone==="local"?Cl(pt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(pt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class Tn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}Tn.prototype.classes={};Tn.prototype.iconClasses={};Tn.prototype.baseIconClass="";Tn.prototype.iconOverridePrefix="";function gr(t){t();let e=U.debounceRendering,n=[];function r(i){n.push(i)}for(U.debounceRendering=r,pn(v(rh,{}),document.createElement("div"));n.length;)n.shift()();U.debounceRendering=e}class rh extends Pe{render(){return v("div",{})}componentDidMount(){this.setState({})}}function Mo(t){let e=Rd(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=l=>{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return i},e}class ih{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const ct=Mo({});function sh(t,e,n,r,i,s,l,a,o,u,c,d,h){return{dateEnv:i,options:n,pluginHooks:l,emitter:u,dispatch:a,getCurrentData:o,calendarApi:c,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(f){u.on("_resize",f)},removeResizeHandler(f){u.off("_resize",f)},createScrollResponder(f){return new ih(f,u,K(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:h}}class Ft extends Pe{shouldComponentUpdate(e,n){return this.debug&&console.log(_i(e,this.props),_i(n,this.state)),!Yr(this.props,e,this.propEquality)||!Yr(this.state,n,this.stateEquality)}safeSetState(e){Yr(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ft.addPropsEquality=lh;Ft.addStateEquality=ah;Ft.contextType=ct;Ft.prototype.propEquality={};Ft.prototype.stateEquality={};class ee extends Ft{}ee.contextType=ct;function lh(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function ah(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function lt(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class fs extends ee{constructor(){super(...arguments),this.id=jt(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Ri(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&lt(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,a=Io(e,[],this.handleEl);let o=!1,u,c=[],d;if(i!=null){const h=typeof i=="function"?i(l,v):i;if(h===!0)o=!0;else{const f=h&&typeof h=="object";f&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?c=Array.prototype.slice.call(h.domNodes):(f?to(h):typeof h!="function")?u=h:d=h}}else o=!Ri(e.generatorName,r);return o&&s&&(u=s(l)),this.queuedDomNodes=c,this.currentGeneratorMeta=d,v(e.elTag,a,u)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=i.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[r.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(oh)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!yt(e,n)){n.forEach(is);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}fs.addPropsEquality({elClasses:yt,elStyle:Ge,elAttrs:qf,renderProps:Ge});function Ri(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Io(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function oh(t){return!!t}const Oo=Mo(0);class Ce extends Pe{constructor(){super(...arguments),this.InnerContent=ch.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(lt(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=uh(e.classNameGenerator,e.renderProps);if(e.children){const r=Io(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?v(e.elTag,r,i):i}else return v(fs,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Ce.contextType=Oo;function ch(t,e){const n=t.props;return v(fs,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function uh(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class mn extends ee{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return v(Ce,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...No(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function No(t){return[`fc-${t.type}-view`,"fc-view"]}function dh(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function Ml(t,e){let n=[],{start:r}=e,i,s;for(t.sort(fh),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function fh(t,e){return t.start.valueOf()-e.start.valueOf()}function Et(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function hh(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function hs(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function kr(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function tt(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function gh(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function Po(t){let e=Math.floor(At(t.start,t.end))||1,n=re(t.start),r=be(n,e);return{start:n,end:r}}function gs(t,e=K(0)){let n=null,r=null;if(t.end){r=re(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=ze(e)&&(r=be(r,1))}return t.start&&(n=re(t.start),r&&r<=n&&(r=be(n,1))),{start:n,end:r}}function ph(t){let e=gs(t);return At(e.start,e.end)>1}function $t(t,e,n,r){return r==="year"?K(n.diffWholeYears(t,e),"year"):r==="month"?K(n.diffWholeMonths(t,e),"month"):wf(t,e)}function mh(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function vh(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):xn(t.now,e)}function xn(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Ho{constructor(e){this.props=e,this.nowDate=xn(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,l,a,o,u,c;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=gh(e,s)),l=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),u=o,i.showNonCurrentDates||(u=Et(u,l.range)),u=this.adjustActiveRange(u),u=Et(u,s),c=hs(l.range,s),tt(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:u,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,l=null,a;return r.duration?(i=r.duration,s=r.durationUnit,l=this.buildRangeFromDuration(e,n,i,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,a)):(l=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(l.start,l.end).unit:(i=this.getFallbackDuration(),s=Di(i).unit,l=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return K({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:a}=e;return r&&(Qt(i)<0&&(l=re(l),l=n.add(l,i)),Qt(s)>1&&(a=re(a),a=be(a,-1),a=n.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:l}=this.props,a,o,u;if(!l){let{dateIncrement:d}=this.props;d&&ze(d)<ze(r)?l=Di(d).unit:l=i}Qt(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=re(a));function c(){a=s.startOf(e,l),o=s.add(a,r),u={start:a,end:o}}return c(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,n),c()),u}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,a=e,o;s&&(a=i.startOf(a,s)),a=re(a),a=this.skipHiddenDays(a,n),o=a;do o=be(o,1),this.isHiddenDay(o)||(l+=1);while(l<r);return{start:a,end:o}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?K(1,r):e||K({days:1}))}refineRange(e){if(e){let n=dh(e,this.props.dateEnv);return n&&(n=gs(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=be(e,n);return e}}function ps(t,e,n,r){return{instanceId:jt(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function bh(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:l}=t;return l==null&&(l=e,l==null&&(l=s.allDayGuess,l==null&&(l=!1))),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function Bt(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:a}=t;a=Ht(a,o=>!l[o.defId].recurringDef);for(let o in l){let u=l[o];if(u.recurringDef){let{duration:c}=u.recurringDef;c||(c=u.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let d=yh(u,c,e,r,i.recurringTypes);for(let h of d){let f=ps(o,{start:h,end:r.add(h,c)});a[f.instanceId]=f}}}return{defs:l,instances:a}}function yh(t,e,n,r,i){let l=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(l=l.map(re)),l}const Jn={id:String,groupId:String,title:String,url:String,interactive:Boolean},Bo={start:w,end:w,date:w,allDay:Boolean},Sh=Object.assign(Object.assign(Object.assign({},Jn),Bo),{extendedProps:w});function Lo(t,e,n,r,i=ms(n),s,l){let{refined:a,extra:o}=Vo(t,n,i),u=wh(e,n),c=bh(a,u,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let h=ki(a,o,e?e.sourceId:"",c.allDay,!!c.duration,n,s);return h.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:h,instance:null}}let d=Eh(a,u,n,r);if(d){let h=ki(a,o,e?e.sourceId:"",d.allDay,d.hasEnd,n,s),f=ps(h.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(f.instanceId=l[h.publicId]),{def:h,instance:f}}return null}function Vo(t,e,n=ms(e)){return cs(t,n)}function ms(t){return Object.assign(Object.assign(Object.assign({},pr),Sh),t.pluginHooks.eventRefiners)}function ki(t,e,n,r,i,s,l){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||jt(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:mr(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Eh(t,e,n,r){let{allDay:i}=t,s,l=null,a=!1,o,u=null,c=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(c),s)l=s.marker;else if(!r)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),i&&l&&(l=re(l)),o&&(u=o.marker,i&&(u=re(u)),l&&u<=l&&(u=null)),u?a=!0:r||(a=n.options.forceEventDuration||!1,u=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:l,end:u},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function wh(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function vn(t,e,n,r,i,s){let l=He(),a=ms(n);for(let o of t){let u=Lo(o,e,n,r,a,i,s);u&&Ti(u,l)}return l}function Ti(t,e=He()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function vs(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Tr(t,s=>Ah(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return He()}function Ah(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function He(){return{defs:{},instances:{}}}function bs(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Tr(t,e){let n=Ht(t.defs,e),r=Ht(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function Ch(t,e){let{defs:n,instances:r}=t,i={},s={};for(let l in n)e.defs[l]||(i[l]=n[l]);for(let l in r)!e.instances[l]&&i[r[l].defId]&&(s[l]=r[l]);return{defs:i,instances:s}}function Dh(t,e){return Array.isArray(t)?vn(t,null,e,!0):typeof t=="object"&&t?vn([t],null,e,!0):t!=null?String(t):null}function Il(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const pr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:w,overlap:w,allow:w,className:Il,classNames:Il,color:String,backgroundColor:String,borderColor:String,textColor:String},_h={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function mr(t,e){let n=Dh(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function jo(t){return t.reduce(Rh,_h)}function Rh(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const kh={id:String,defaultAllDay:Boolean,url:String,format:String,events:w,eventDataTransform:w,success:w,failure:w};function Fo(t,e,n=zo(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=cs(r,n),l=Th(i,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:jt(),sourceDefId:l.sourceDefId,meta:l.meta,ui:mr(i,e),extendedProps:s}}return null}function zo(t){return Object.assign(Object.assign(Object.assign({},pr),kh),t.pluginHooks.eventSourceRefiners)}function Th(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}function xh(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return Mh(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return Ih(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return Oh(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return bs(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Bt(t,r.activeRange,i):t;case"REMOVE_EVENTS":return Ch(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Wo(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Tr(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return He();default:return t}}function Mh(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=vn(Uo(i,e,s),e,s);return r&&(l=Bt(l,r,s)),bs(Wo(t,e.sourceId),l)}return t}function Ih(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=Ph(t);let a=vn(Uo(n,e,i),e,i,!1,s,l);return Bt(a,r,i)}function Uo(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Ol(t,i)),r&&(t=Ol(t,r)),t}function Ol(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function Oh(t,e,n,r){return n&&(e=Bt(e,n,r)),bs(t,e)}function Nl(t,e,n){let{defs:r}=t,i=st(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function Wo(t,e){return Tr(t,n=>n.sourceId!==e)}function Nh(t,e){return{defs:t.defs,instances:Ht(t.instances,n=>!e[n.instanceId])}}function Ph(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(r[a]=s)}for(let s in n){const l=n[s],a=e[l.defId],{publicId:o}=a;o&&(i[o]=s)}return{defIdMap:r,instanceIdMap:i}}class xr{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){Hh(this.handlers,e,n)}off(e,n){Bh(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let l of s)l.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Hh(t,e,n){(t[e]||(t[e]=[])).push(n)}function Bh(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const Lh={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Vh(t,e){return vn(jh(t),null,e)}function jh(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},Lh),n)),e}function $o(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},ys(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Fh(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function ys(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,tg(t,e.dateEnv)),n}function Pl(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=re(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Ss(t,e,n,r){let i=vr(t.defs,e),s=He();for(let l in t.defs){let a=t.defs[l];s.defs[l]=zh(a,i[l],n,r)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=Uh(a,o,i[a.defId],n,r)}return s}function zh(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of r.pluginHooks.eventDefMutationAppliers)l(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Uh(t,e,n,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},t);return l&&(o.range=Po(o.range)),r.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,r.datesDelta),end:s.add(o.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,r.endDelta)}),a&&(o.range={start:o.range.start,end:Pl(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:re(o.range.start),end:re(o.range.end)}),o.range.end<o.range.start&&(o.range.end=Pl(e.allDay,o.range.start,i)),o}class Wt{constructor(e,n){this.context=e,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class oe{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in Bo)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Jn[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Jn)n=Jn[e](n),this.mutate({standardProps:{[e]:n}});else if(e in pr){let r=pr[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,l=$t(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=$t(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},l=i.createMarker(e),a;if(l&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let o=this._instance.range;r.allDay===!0&&(o=Po(o));let u=$t(o.start,l,i,r.granularity);if(a){let c=$t(o.end,a,i,r.granularity);ff(u,c)?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:c,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}}moveStart(e){let n=K(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=K(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=K(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=se(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),l=vs(s,n.instanceId);l=Ss(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let o=new oe(i,r,n);this._def=l.defs[r.defId],this._instance=l.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:l}),i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Nt(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=Go(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new Wt(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:s}=this,l={allDay:n.allDay};return n.title&&(l.title=n.title),i&&(l.start=i),s&&(l.end=s),n.publicId&&(l.id=n.publicId),n.groupId&&(l.groupId=n.groupId),n.url&&(l.url=n.url),r.display&&r.display!=="auto"&&(l.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?l.color=r.backgroundColor:(r.backgroundColor&&(l.backgroundColor=r.backgroundColor),r.borderColor&&(l.borderColor=r.borderColor)),r.textColor&&(l.textColor=r.textColor),r.classNames.length&&(l.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,n.extendedProps):l.extendedProps=n.extendedProps),l}toJSON(){return this.toPlainObject()}}function Go(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Nt(t,e,n){let{defs:r,instances:i}=t,s=[],l=n?n.instanceId:"";for(let a in i){let o=i[a],u=r[o.defId];o.instanceId!==l&&s.push(new oe(e,u,o))}return s}function xi(t,e,n,r){let i={},s={},l={},a=[],o=[],u=vr(t.defs,e);for(let c in t.defs){let d=t.defs[c];u[d.defId].display==="inverse-background"&&(d.groupId?(i[d.groupId]=[],l[d.groupId]||(l[d.groupId]=d)):s[c]=[])}for(let c in t.instances){let d=t.instances[c],h=t.defs[d.defId],f=u[h.defId],g=d.range,m=!h.allDay&&r?gs(g,r):g,p=Et(m,n);p&&(f.display==="inverse-background"?h.groupId?i[h.groupId].push(p):s[d.defId].push(p):f.display!=="none"&&(f.display==="background"?a:o).push({def:h,ui:f,instance:d,range:p,isStart:m.start&&m.start.valueOf()===p.start.valueOf(),isEnd:m.end&&m.end.valueOf()===p.end.valueOf()}))}for(let c in i){let d=i[c],h=Ml(d,n);for(let f of h){let g=l[c],m=u[g.defId];a.push({def:g,ui:m,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let c in s){let d=s[c],h=Ml(d,n);for(let f of h)a.push({def:t.defs[c],ui:u[c],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function Wh(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function Hl(t,e){t.fcSeg=e}function Kt(t){return t.fcSeg||t.parentNode.fcSeg||null}function vr(t,e){return st(t,n=>Yo(n,e))}function Yo(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),jo(n)}function Es(t,e){let n=t.map($h);return n.sort((r,i)=>sf(r,i,e)),n.map(r=>r._seg)}function $h(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function Gh(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,l=s.startEditable;for(let a of r)l=a(l,i,s,e);return l}function Yh(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function qh(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function hn(t,e,n,r,i,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:u,displayEventEnd:c}=o,d=t.eventRange.def,h=t.eventRange.instance;u==null&&(u=r!==!1),c==null&&(c=i!==!1);let f=h.range.start,g=h.range.end,m=s||t.start||t.eventRange.range.start,p=l||t.end||t.eventRange.range.end,b=re(f).valueOf()===re(m).valueOf(),S=re(St(g,-1)).valueOf()===re(St(p,-1)).valueOf();return u&&!d.allDay&&(b||S)?(m=b?f:m,p=S?g:p,c&&d.hasEnd?a.formatRange(m,p,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(m,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function nt(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&tt(e,r.start)}}function Qh(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function qo(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function ws(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?_o(o=>{s.trigger("eventClick",{el:o.target,event:new oe(e,n,r),jsEvent:o,view:e.viewApi})}):{}}const Zh={start:w,end:w,allDay:Boolean};function Xh(t,e,n){let r=Jh(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function Jh(t,e){let{refined:n,extra:r}=cs(t,Zh),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:l},r)}function Kh(t,e){return hh(t.range,e.range)&&t.allDay===e.allDay&&eg(t,e)}function eg(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function tg(t,e){return Object.assign(Object.assign({},Zo(t.range,e,t.allDay)),{allDay:t.allDay})}function Qo(t,e,n){return Object.assign(Object.assign({},Zo(t,e,n)),{timeZone:e.timeZone})}function Zo(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function ng(t,e,n){let r=Vo({editable:!1},n),i=ki(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:Yo(i,e),instance:ps(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function rg(t,e,n){let r=!1,i=function(a){r||(r=!0,e(a))},s=function(a){r||(r=!0,n(a))},l=t(i,s);l&&typeof l.then=="function"&&l.then(i,s)}class Bl extends Error{constructor(e,n){super(e),this.response=n}}function ig(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new Bl("Failure parsing JSON",i)});throw new Bl("Request failed",i)})}let qr;function Xo(){return qr==null&&(qr=sg()),qr}function sg(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class lg extends ee{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{gr(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{gr(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Xo()||l.push("fc-liquid-hack"),e.children(l,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class sn{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function ag(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function As(t){return{[t.component.uid]:t}}const Mi={};class og{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let a in n)i.push(a);for(s=0;s<i.length;s+=1)if(l=n[i[s]],l&&l.singleUnit===e)return l;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:xn(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=K(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),se(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),se(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),s=Xh(r,i.dateEnv,K({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),$o(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Fh(e,n))}addEvent(e,n){if(e instanceof oe){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Ti({def:l,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Wt)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=ds(r.eventSources));else if(n!=null){let l=this.getEventSourceById(n);if(!l)return console.warn(`Could not find an event source with ID "${n}"`),null;i=l.internalEventSource}let s=Lo(e,i,r,!1);if(s){let l=new oe(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ti(s)}),this.triggerEventAdd(l),l}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Go(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let l=r[s];if(l.publicId===e){if(l.recurringDef)return new oe(n,l,null);for(let a in i){let o=i[a];if(o.defId===l.defId)return new oe(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Nt(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new Wt(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new Wt(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Wt)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=Fo(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Wt(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=K(e);n&&this.trigger("_scrollRequest",{time:n})}}function cg(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Jo(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function ug(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function dg(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function fg(t,e){return{left:t.left-e.left,top:t.top-e.top}}const Qr=He();class hg{constructor(){this.getKeysForEventDefs=z(this._getKeysForEventDefs),this.splitDateSelection=z(this._splitDateSpan),this.splitEventStore=z(this._splitEventStore),this.splitIndividualUi=z(this._splitIndividualUi),this.splitEventDrag=z(this._splitInteraction),this.splitEventResize=z(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,r),l=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),o=this.splitEventResize(e.eventResize),u={};this.eventUiBuilders=st(n,(c,d)=>this.eventUiBuilders[d]||z(gg));for(let c in n){let d=n[c],h=l[c]||Qr,f=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:h,eventUiBases:f(e.eventUiBases[""],d.ui,s[c]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:o[c]||null}}return u}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return st(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:i}=e,s={};for(let l in r)for(let a of n[l])s[a]||(s[a]=He()),s[a].defs[l]=r[l];for(let l in i){let a=i[l];for(let o of n[a.defId])s[o]&&(s[o].instances[l]=a)}return s}_splitIndividualUi(e,n){let r={};for(let i in e)if(i)for(let s of n[i])r[s]||(r[s]={}),r[s][i]=e[i];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,i),l=a=>{n[a]||(n[a]={affectedEvents:r[a]||Qr,mutatedEvents:s[a]||Qr,isEvent:e.isEvent})};for(let a in r)l(a);for(let a in s)l(a)}return n}}function gg(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":jo(r)};return n&&Object.assign(i,n),i}function Cs(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!tt(r.activeRange,t)),isOther:!!(r&&!tt(r.currentRange,t)),isToday:!!(e&&tt(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function Mr(t,e){let n=["fc-day",`fc-day-${vf[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const pg=se({year:"numeric",month:"long",day:"numeric"}),mg=se({week:"long"});function en(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let a=i.format(e,n==="week"?mg:pg);if(s.navLinks){let o=i.toDate(e);const u=c=>{let d=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof d=="function"?d.call(l,i.toDate(e),c):(typeof d=="string"&&(n=d),l.zoomTo(e,n))};return Object.assign({title:dn(s.navLinkHint,[a,o],a),"data-navlink":""},r?Do(u):{onClick:u})}return{"aria-label":a}}let Zr=null;function vg(){return Zr===null&&(Zr=bg()),Zr}function bg(){let t=document.createElement("div");un(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return is(t),n}let Xr;function yg(){return Xr||(Xr=Sg()),Xr}function Sg(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Ko(t);return document.body.removeChild(t),e}function Ko(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Eg(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,a=Ko(t),o=a.y-r-i,u=a.x-s-l,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return vg()&&n.direction==="rtl"?c.scrollbarLeft=o:c.scrollbarRight=o,e&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function wg(t,e=!1,n){let r=Ds(t),i=Eg(t,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function Ds(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function Ag(t){let e=ec(t),n=t.getBoundingClientRect();for(let r of e){let i=Jo(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function ec(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class tn{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Vn(this.tops||[],e.tops||[])&&Vn(this.bottoms||[],e.bottoms||[])&&Vn(this.lefts||[],e.lefts||[])&&Vn(this.rights||[],e.rights||[])}}function Vn(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class _s{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Cg extends _s{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Dg extends _s{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class We extends ee{constructor(){super(...arguments),this.uid=jt()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Ee(e,".fc-event-mirror")}isValidDateDownEl(e){return!Ee(e,".fc-event:not(.fc-bg-event)")&&!Ee(e,".fc-more-link")&&!Ee(e,"a[data-navlink]")&&!Ee(e,".fc-popover")}}class tc{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},n),{span:Rs(n.span,e.touchingEntry.span)});r.push(i),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let i=e.span,s=n.span;i.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},r),i.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(Jr(i,n.level,n.levelCoord),Jr(r,n.level,[e])):Jr(r[n.level],n.lateral,e),this.stackCnts[Pt(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=n.length,a=0,o=-1,u=-1,c=null,d=0;for(let g=0;g<l;g+=1){const m=n[g];if(!i&&m>=a+this.getEntryThickness(e))break;let p=r[g],b,S=Oi(p,e.span.start,Ii),C=S[0]+S[1];for(;(b=p[C])&&b.span.start<e.span.end;){let D=m+this.getEntryThickness(b);D>a&&(a=D,c=b,o=g,u=C),D===a&&(d=Math.max(d,s[Pt(b)]+1)),C+=1}}let h=0;if(c)for(h=o+1;h<l&&n[h]<a;)h+=1;let f=-1;return h<l&&n[h]===a&&(f=Oi(r[h],e.span.end,Ii)[0]),{touchingLevel:o,touchingLateral:u,touchingEntry:c,stackCnt:d,levelCoord:a,level:h,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let l=e[s],a=n[s];for(let o of l)i.push(Object.assign(Object.assign({},o),{thickness:this.getEntryThickness(o),levelCoord:a}))}return i}}function Ii(t){return t.span.end}function Pt(t){return t.index+":"+t.span.start}function _g(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)Rs(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:Rg(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function Rg(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Rs(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function Jr(t,e,n){t.splice(e,0,n)}function Oi(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),l=n(t[s]);if(e<l)i=s;else if(e>l)r=s+1;else return[s,1]}return[r,0]}class kg{constructor(e,n){this.emitter=new xr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ks={};function Tg(t,e){return!t||e>10?se({weekday:"short"}):e>1?se({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):se({weekday:"long"})}const nc="fc-col-header-cell";function rc(t){return t.text}class xg extends ee{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=Cs(l,s.todayRange,null,a),u=[nc].concat(Mr(o,r)),c=e.format(l,s.dayHeaderFormat),d=!o.isDisabled&&s.colCnt>1?en(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:c}),o);return v(Ce,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:kn(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:rc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},f=>v("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&v(f,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const Mg=se({weekday:"long"});class Ig extends ee{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=be(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(l,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:i}),e.extraRenderProps),{text:o});return v(Ce,{elTag:"th",elClasses:[nc,...Mr(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:rc,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},c=>v("div",{className:"fc-scrollgrid-sync-inner"},v(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,Mg)}})))}}class ln extends Pe{constructor(e,n){super(e,n),this.initialNowDate=xn(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=St(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,K(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:Ll(i)},nextState:{nowDate:s,todayRange:Ll(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}ln.contextType=ct;function Ll(t){let e=re(t),n=be(e,1);return{start:e,end:n}}class ic extends ee{constructor(){super(...arguments),this.createDayHeaderFormatter=z(Og)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return v(ln,{unit:"day"},(a,o)=>v("tr",{role:"row"},s&&s("day"),n.map(u=>i?v(xg,{key:u.toISOString(),date:u,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):v(Ig,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:l}))))}}function Og(t,e,n){return t||Tg(e,n)}class sc{constructor(e,n){let r=e.start,{end:i}=e,s=[],l=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),l.push(r)),r=be(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(be(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(At(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class lc{constructor(e,n){let{dates:r}=e,i,s,l;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);l=Math.ceil(r.length/i)}else l=1,i=r.length;this.rowCnt=l,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:l}=r,a=s;for(;a<=l;){let o=Math.floor(a/n),u=Math.min((o+1)*n,l+1);i.push({row:o,firstCol:a%n,lastCol:(u-1)%n,isStart:r.isStart&&a===s,isEnd:r.isEnd&&u-1===l}),a=u}}return i}}class ac{constructor(){this.sliceBusinessHours=z(this._sliceBusinessHours),this.sliceDateSelection=z(this._sliceDateSpan),this.sliceEventStore=z(this._sliceEventStore),this.sliceEventDrag=z(this._sliceInteraction),this.sliceEventResize=z(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:l}=e,a=this.sliceEventStore(e.eventStore,l,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,l,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,l,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:St(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(Bt(e,jn(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=xi(e,n,jn(r,!!i),i);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let l=xi(e.mutatedEvents,n,jn(r,!!i),i);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...l){if(!e)return[];let a=jn(n,!!r),o=Et(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let u=ng(e,i,s),c=this.sliceRange(e.range,...l);for(let d of c)d.eventRange=u;return c}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:be(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function jn(t,e){let n=t.activeRange;return e?n:{start:St(n.start,t.slotMinTime.milliseconds),end:St(n.end,t.slotMaxTime.milliseconds-864e5)}}function oc(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!kr(e.validRange,r[i].range))return!1;return cc({eventDrag:t},n)}function Ng(t,e,n){return kr(e.validRange,t.range)?cc({dateSelection:t},n):!1}function cc(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||Pg)(r,e)}function Pg(t,e,n={},r){return!(t.eventDrag&&!Hg(t,e,n,r)||t.dateSelection&&!Bg(t,e,n,r))}function Hg(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,u=vr(a,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(u=st(u,r));let c=Nh(t.eventStore,s.affectedEvents.instances),d=c.defs,h=c.instances,f=vr(d,t.eventUiBases);for(let g in o){let m=o[g],p=m.range,b=u[m.defId],S=a[m.defId];if(!uc(b.constraints,p,c,t.businessHours,e))return!1;let{eventOverlap:C}=e.options,D=typeof C=="function"?C:null;for(let E in h){let y=h[E];if(hs(p,y.range)&&(f[y.defId].overlap===!1&&s.isEvent||b.overlap===!1||D&&!D(new oe(e,d[y.defId],y),new oe(e,S,m))))return!1}let k=i.eventStore;for(let E of b.allows){let y=Object.assign(Object.assign({},n),{range:m.range,allDay:S.allDay}),A=k.defs[S.defId],H=k.instances[g],x;if(A?x=new oe(e,A,H):x=new oe(e,S),!E(ys(y,e),x))return!1}}return!0}function Bg(t,e,n,r){let i=t.eventStore,s=i.defs,l=i.instances,a=t.dateSelection,o=a.range,{selectionConfig:u}=e.getCurrentData();if(r&&(u=r(u)),!uc(u.constraints,o,i,t.businessHours,e))return!1;let{selectOverlap:c}=e.options,d=typeof c=="function"?c:null;for(let h in l){let f=l[h];if(hs(o,f.range)&&(u.overlap===!1||d&&!d(new oe(e,s[f.defId],f),null)))return!1}for(let h of u.allows){let f=Object.assign(Object.assign({},n),a);if(!h(ys(f,e),null))return!1}return!0}function uc(t,e,n,r,i){for(let s of t)if(!Vg(Lg(s,e,n,r,i),e))return!1;return!0}function Lg(t,e,n,r,i){return t==="businessHours"?Kr(Bt(r,e,i)):typeof t=="string"?Kr(Tr(n,s=>s.groupId===t)):typeof t=="object"&&t?Kr(Bt(t,e,i)):[]}function Kr(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Vg(t,e){for(let n of t)if(kr(n,e))return!0;return!1}const Fn=/^(visible|hidden)$/;class dc extends ee{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,lt(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),v("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Fn.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Fn.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Fn.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Fn.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class et{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,l=!1,a=!1;n!==null?(l=r in s,s[r]=n,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(r)),a&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return Zf(this.currentMap,e,n,r)}getAll(){return ds(this.currentMap)}}function jg(t){let e=qd(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,cf(r));return Math.ceil(n)}function fc(t,e){return t.liquid&&e.liquid}function Fg(t,e){return e.maxHeight!=null||fc(t,e)}function zg(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):v("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,v(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function Ug(t,e){return yt(t,e,Ge)}function Wg(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(v("col",{style:{width:r.width==="shrink"?$g(e):r.width||"",minWidth:r.minWidth||""}}))}return v("colgroup",{},...n)}function $g(t){return t??4}function Gg(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Yg(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function qg(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Ni(t){return v("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function br(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function hc(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Ts extends ee{constructor(){super(...arguments),this.processCols=z(e=>e,Ug),this.renderMicroColGroup=z(Wg),this.scrollerRefs=new et,this.scrollerElRefs=new et(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),a=Yg(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=i.length,u=0,c,d=[],h=[],f=[];for(;u<o&&(c=i[u]).type==="header";)d.push(this.renderSection(c,l,!0)),u+=1;for(;u<o&&(c=i[u]).type==="body";)h.push(this.renderSection(c,l,!1)),u+=1;for(;u<o&&(c=i[u]).type==="footer";)f.push(this.renderSection(c,l,!0)),u+=1;let g=!Xo();const m={role:"rowgroup"};return v("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!g&&d.length)&&v("thead",m,...d),!!(!g&&h.length)&&v("tbody",m,...h),!!(!g&&f.length)&&v("tfoot",m,...f),g&&v("tbody",m,...d,...h,...f))}renderSection(e,n,r){return"outerContent"in e?v(ne,{key:e.key},e.outerContent):v("tr",{key:e.key,role:"presentation",className:qg(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:a,scrollerClientHeights:o}=this.state,u=Fg(s,e),c=fc(s,e),d=s.liquid?l?"scroll":u?"auto":"hidden":"visible",h=e.key,f=zg(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:o[h]!==void 0?o[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return v(i?"th":"td",{ref:r.elRef,role:"presentation"},v("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},v(dc,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:d,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let r=Qg(this.props.sections,n);r&&lt(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Gg(this.props.cols)?jg(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=yg(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},l={};for(let a in n.currentMap){let o=n.currentMap[a];if(o&&o.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let o=a.key,u=r.currentMap[o];if(u){let c=u.parentNode;s[o]=Math.floor(c.getBoundingClientRect().width-(i?e.y:0)),l[o]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}Ts.addStateEquality({scrollerClientWidths:Ge,scrollerClientHeights:Ge});function Qg(t,e){for(let n of t)if(n.key===e)return n;return null}class Ir extends ee{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Hl(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:l}=s,a={event:new oe(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&Gh(i,n),isStartResizable:!e.disableResizing&&Yh(i,n),isEndResizable:!e.disableResizing&&qh(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return v(Ce,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Qh(a),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Hl(this.el,this.props.seg)}}class gc extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,a=hn(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return v(Ir,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:ws(i,n),defaultGenerator:Zg,timeText:a}),(o,u)=>v(ne,null,v(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Zg(t){return v("div",{className:"fc-event-main-frame"},t.timeText&&v("div",{className:"fc-event-time"},t.timeText),v("div",{className:"fc-event-title-container"},v("div",{className:"fc-event-title fc-sticky"},t.event.title||v(ne,null," "))))}const xs=t=>v(ct.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return v(Ce,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Xg=se({day:"numeric"});class Ms extends ee{constructor(){super(...arguments),this.refineRenderProps=Xn(Jg)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return v(Ce,Object.assign({},e,{elClasses:[...Mr(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":kn(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function Is(t){return!!(t.dayCellContent||Ri("dayCellContent",t))}function Jg(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=Cs(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:Xg):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class pc extends ee{render(){let{props:e}=this,{seg:n}=e;return v(Ir,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Kg,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Kg(t){let{title:e}=t.event;return e&&v("div",{className:"fc-event-title"},t.event.title)}function mc(t){return v("div",{className:`fc-${t}`})}const vc=t=>v(ct.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(i),a=n.format(i,s);return v(Ce,Object.assign({},t,{renderProps:{num:l,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:ep,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function ep(t){return t.text}const ei=10;class tp extends ee{constructor(){super(...arguments),this.state={titleId:vt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&lt(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Ao(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return Nd(v("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),v("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},v("span",{className:"fc-popover-title",id:i.titleId},r.title),v("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),v("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,s=Ag(n);if(s){let l=i.getBoundingClientRect(),a=r?Ee(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,ei),o=Math.min(o,document.documentElement.clientWidth-ei-l.width),o=Math.max(o,ei);let u=i.offsetParent.getBoundingClientRect();un(i,{top:a-u.top,left:o-u.left})}}}class np extends We{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:l}=r,a=n.format(i,e.dayPopoverFormat);return v(Ms,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(o,u,c)=>v(tp,{elRef:c.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Is(e)&&v(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:l}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class bc extends ee{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:vt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&lt(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=Vl(n).start;function l(a){let{def:o,instance:u,range:c}=a.eventRange;return{event:new oe(r,o,u),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return v(ct.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:a}=s,{moreCnt:o}=e,u=Vl(e),c=typeof a=="function"?a.call(l,o):`+${o} ${a}`,d=dn(s.moreLinkHint,[o],c),h={num:o,shortText:`+${o}`,text:c,view:i};return v(ne,null,!!e.moreCnt&&v(Ce,{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),Do(this.handleClick)),{title:d,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||rp,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&v(np,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Ee(this.linkEl,".fc-view-harness"))}}function rp(t){return t.text}function Vl(t){if(t.allDayDate)return{start:t.allDayDate,end:be(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:yc(e),end:sp(e)}}function yc(t){return t.reduce(ip).eventRange.range.start}function ip(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function sp(t){return t.reduce(lp).eventRange.range.end}function lp(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class ap{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class op extends ap{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const cp=[],Sc={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"},Ec=Object.assign(Object.assign({},Sc),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function up(t){let e=t.length>0?t[0].code:"en",n=cp.concat(t),r={en:Ec};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function wc(t,e){return typeof t=="object"&&!Array.isArray(t)?Ac(t.code,[t.code],t):dp(t,e)}function dp(t,e){let n=[].concat(t||[]),r=fp(n,e)||Ec;return Ac(t,n,r)}function fp(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function Ac(t,e,n){let r=us([Sc,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function qe(t){return{id:jt(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function hp(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(s){for(let l of s){const a=l.name,o=n[a];o===void 0?(n[a]=l.id,i(l.deps),r=pp(r,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function gp(){let t=[],e=[],n;return(r,i)=>((!n||!yt(r,t)||!yt(i,e))&&(n=hp(r,i)),t=r,e=i,n)}function pp(t,e){return{premiumReleaseDate:mp(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function mp(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Ct extends Tn{}Ct.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Ct.prototype.baseIconClass="fc-icon";Ct.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"};Ct.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Ct.prototype.iconOverrideOption="buttonIcons";Ct.prototype.iconOverrideCustomButtonOption="icon";Ct.prototype.iconOverridePrefix="fc-icon-";function vp(t,e){let n={},r;for(r in t)Pi(r,n,t,e);for(r in e)Pi(r,n,t,e);return n}function Pi(t,e,n,r){if(e[t])return e[t];let i=bp(t,e,n,r);return i&&(e[t]=i),i}function bp(t,e,n,r){let i=n[t],s=r[t],l=c=>i&&i[c]!==null?i[c]:s&&s[c]!==null?s[c]:null,a=l("component"),o=l("superType"),u=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");u=Pi(o,e,n,r)}return!a&&u&&(a=u.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),s?s.rawOptions:{})}:null}function jl(t){return st(t,yp)}function yp(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Fl(e):n&&!(n.prototype instanceof ee)&&(n=Fl(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Fl(t){return e=>v(ct.Consumer,null,n=>v(Ce,{elTag:"div",elClasses:No(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Sp(t,e,n,r){let i=jl(t),s=jl(e.views),l=vp(i,s);return st(l,a=>Ep(a,s,e,n,r))}function Ep(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,l=null,a="",o="",u={};if(s&&(l=wp(s),l)){let h=Di(l);a=h.unit,h.value===1&&(o=a,u=e[a]?e[a].rawOptions:{})}let c=h=>{let f=h.buttonText||{},g=t.defaults.buttonTextKey;return g!=null&&f[g]!=null?f[g]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null},d=h=>{let f=h.buttonHints||{},g=t.defaults.buttonTextKey;return g!=null&&f[g]!=null?f[g]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null};return{type:t.type,component:t.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},u),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(i)||t.defaults.buttonText||c(fn)||t.type,buttonTitleOverride:d(r)||d(n)||t.overrides.buttonHint,buttonTitleDefault:d(i)||t.defaults.buttonHint||d(fn)}}let zl={};function wp(t){let e=JSON.stringify(t),n=zl[e];return n===void 0&&(n=K(t),zl[e]=n),n}function Ap(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Cp(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Dp(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function _p(t,e,n){let r=e?e.activeRange:null;return Dc({},Op(t,n),r,n)}function Rp(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Dc(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Tp(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?_c(t,i,r):t;case"FETCH_EVENT_SOURCES":return Os(t,e.sourceIds?To(e.sourceIds):Rc(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Ip(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function kp(t,e,n){let r=e?e.activeRange:null;return Os(t,Rc(t,n),r,!0,n)}function Cc(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Dc(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=_c(i,n,r)),Object.assign(Object.assign({},t),i)}function Tp(t,e){return Ht(t,n=>n.sourceId!==e)}function _c(t,e,n){return Os(t,Ht(t,r=>xp(r,e,n)),e,!1,n)}function xp(t,e,n){return kc(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Os(t,e,n,r,i){let s={};for(let l in t){let a=t[l];e[l]?s[l]=Mp(a,n,r,i):s[l]=a}return s}function Mp(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=jt();return l.fetch({eventSource:t,range:e,isRefetch:n,context:r},o=>{let{rawEvents:u}=o;i.eventSourceSuccess&&(u=i.eventSourceSuccess.call(s,u,o.response)||u),t.success&&(u=t.success.call(s,u,o.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:u})},o=>{let u=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,o),u=!0),t.failure&&(t.failure(o),u=!0),u||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function Ip(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function Rc(t,e){return Ht(t,n=>kc(n,e))}function Op(t,e){let n=zo(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let l=Fo(s,e,n);l&&i.push(l)}return i}function kc(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function Np(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function Pp(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Hp(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Bp(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Lp(t,e,n,r,i){let s=t.headerToolbar?Ul(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?Ul(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function Ul(t,e,n,r,i,s){let l={},a=[],o=!1;for(let u in t){let c=t[u],d=Vp(c,e,n,r,i,s);l[u]=d.widgets,a.push(...d.viewsWithButtons),o=o||d.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function Vp(t,e,n,r,i,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},u=e.buttonText||{},c=n.buttonHints||{},d=e.buttonHints||{},h=t?t.split(" "):[],f=[],g=!1;return{widgets:h.map(p=>p.split(",").map(b=>{if(b==="title")return g=!0,{buttonName:b};let S,C,D,k,E,y;if(S=a[b])D=A=>{S.click&&S.click.call(A.target,A,A.target)},(k=r.getCustomButtonIconClass(S))||(k=r.getIconClass(b,l))||(E=S.text),y=S.hint||S.text;else if(C=i[b]){f.push(b),D=()=>{s.changeView(b)},(E=C.buttonTextOverride)||(k=r.getIconClass(b,l))||(E=C.buttonTextDefault);let A=C.buttonTextOverride||C.buttonTextDefault;y=dn(C.buttonTitleOverride||C.buttonTitleDefault||e.viewHint,[A,b],A)}else if(s[b])if(D=()=>{s[b]()},(E=o[b])||(k=r.getIconClass(b,l))||(E=u[b]),b==="prevYear"||b==="nextYear"){let A=b==="prevYear"?"prev":"next";y=dn(c[A]||d[A],[u.year||"year","year"],u[b])}else y=A=>dn(c[b]||d[b],[u[A]||A,A],u[b]);return{buttonName:b,buttonClick:D,buttonIcon:k,buttonText:E,buttonHint:y}})),viewsWithButtons:f,hasTitle:g}}class jp{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let Fp={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const zp=qe({name:"array-event-source",eventSourceDefs:[Fp]});let Up={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;rg(i.bind(null,Qo(t.range,r)),s=>e({rawEvents:s}),n)}};const Wp=qe({name:"func-event-source",eventSourceDefs:[Up]}),$p={method:String,extraParams:w,startParam:String,endParam:String,timeZoneParam:String};let Gp={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=qp(r,t.range,t.context);ig(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const Yp=qe({name:"json-event-source",eventSourceRefiners:$p,eventSourceDefs:[Gp]});function qp(t,e,n){let{dateEnv:r,options:i}=n,s,l,a,o,u={};return s=t.startParam,s==null&&(s=i.startParam),l=t.endParam,l==null&&(l=i.endParam),a=t.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(u,o),u[s]=r.formatIso(e.start),u[l]=r.formatIso(e.end),r.timeZone!=="local"&&(u[a]=r.timeZone),u}const Qp={daysOfWeek:w,startTime:K,endTime:K,duration:K,startRecur:w,endRecur:w};let Zp={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=hf(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Et(e,{start:t.startRecur,end:t.endRecur});return r?Jp(t.daysOfWeek,t.startTime,r,n):[]}};const Xp=qe({name:"simple-recurring-event",recurringTypes:[Zp],eventRefiners:Qp});function Jp(t,e,n,r){let i=t?To(t):null,s=re(n.start),l=n.end,a=[];for(;s<l;){let o;(!i||i[s.getUTCDay()])&&(e?o=r.add(s,e):o=s,a.push(o)),s=be(s,1)}return a}const Kp=qe({name:"change-handler",optionChangeHandlers:{events(t,e){Wl([t],e)},eventSources:Wl}});function Wl(t,e){let n=ds(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let s=!1;for(let l=0;l<n.length;l+=1)if(n[l]._raw===i){n.splice(l,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function em(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Qo(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function tm(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Nt(t,e))}const nm=[zp,Wp,Yp,Xp,Kp,qe({name:"misc",isLoadingFuncs:[t=>Cc(t.eventSources)],propSetHandlers:{dateProfile:em,eventStore:tm}})];class rm{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new rs(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function im(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,se(e.titleFormat||sm(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function sm(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=ur(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class lm{constructor(e){this.computeCurrentViewData=z(this._computeCurrentViewData),this.organizeRawLocales=z(up),this.buildLocale=z(wc),this.buildPluginHooks=gp(),this.buildDateEnv=z(am),this.buildTheme=z(om),this.parseToolbars=z(Lp),this.buildViewSpecs=z(Sp),this.buildDateProfileGenerator=Xn(cm),this.buildViewApi=z(um),this.buildViewUiProps=Xn(hm),this.buildEventUiBySource=z(dm,Ge),this.buildEventUiBases=z(fm),this.parseContextBusinessHours=Xn(gm),this.buildTitle=z(im),this.emitter=new xr,this.actionRunner=new rm(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();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=vh(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(l);tt(a.activeRange,l)||(l=a.currentRange.start);let o={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of r.pluginHooks.contextInit)h(o);let u=_p(r.calendarOptions,a,o),c={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:u,eventUiBases:{},eventStore:He(),renderableEventStore:He(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},d=Object.assign(Object.assign({},o),c);for(let h of r.pluginHooks.reducers)Object.assign(c,h(null,null,d));ti(c,o)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=Cp(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=Ap(r.currentViewType,e),o=this.computeCurrentViewData(a,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(o.options);let u={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:d}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(d=o.dateProfileGenerator.build(c)),c=mh(c,e),d=Dp(d,e,c,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!tt(d.currentRange,c))&&(c=d.currentRange.start);let h=Rp(r.eventSources,e,d,u),f=xh(r.eventStore,e,h,d,u),m=Cc(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:p,selectionConfig:b}=this.buildViewUiProps(u),S=this.buildEventUiBySource(h),C=this.buildEventUiBases(m.defs,p,S),D={dynamicOptionOverrides:s,currentViewType:a,currentDate:c,dateProfile:d,eventSources:h,eventStore:f,renderableEventStore:m,selectionConfig:b,eventUiBases:C,businessHours:this.parseContextBusinessHours(u),dateSelection:Np(r.dateSelection,e),eventSelection:Pp(r.eventSelection,e),eventDrag:Hp(r.eventDrag,e),eventResize:Bp(r.eventResize,e)},k=Object.assign(Object.assign({},u),D);for(let A of l.pluginHooks.reducers)Object.assign(D,A(r,e,k));let E=ti(r,u),y=ti(D,u);!E&&y?i.trigger("loading",!0):E&&!y&&i.trigger("loading",!1),this.state=D,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),a=i.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,u=i.calendarOptions;if(o&&o!==u){o.timeZone!==u.timeZone&&(n.eventSources=l.eventSources=kp(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=Nl(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=Nl(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let c in a)(this.optionsForHandling.indexOf(c)!==-1||o[c]!==u[c])&&a[c](u[c],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,n);$l(o);let u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),c=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),d=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,d,c,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:u,viewSpecs:c,theme:d,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=Gr([fn,e,n]),s=this.organizeRawLocales(r),l=s.map,a=this.buildLocale(i||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],nm),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kl),Tl),xl),o.listenerRefiners),o.optionRefiners),c={},d=Gr([fn,a,e,n]),h={},f=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,m=!1;for(let p in d)this.optionsForRefining.indexOf(p)===-1&&(d[p]===f[p]||Tt[p]&&p in f&&Tt[p](f[p],d[p]))?h[p]=g[p]:u[p]?(h[p]=u[p](d[p]),m=!0):c[p]=f[p];return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:a,extra:c}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);$l(a);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:u}}processRawViewOptions(e,n,r,i,s){let l=Gr([fn,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kl),Tl),xl),Gf),n.listenerRefiners),n.optionRefiners),o={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,d=!1,h={};for(let f in l)l[f]===u[f]||Tt[f]&&Tt[f](l[f],u[f])?o[f]=c[f]:(l[f]===this.currentCalendarOptionsInput[f]||Tt[f]&&Tt[f](l[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):a[f]?o[f]=a[f](l[f]):h[f]=l[f],d=!0);return d&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function am(t,e,n,r,i,s,l,a){let o=wc(e||l.defaultCode,l.map);return new nh({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function om(t,e){let n=e.themeClasses[t.themeSystem]||Ct;return new n(t)}function cm(t){let e=t.dateProfileGeneratorClass||Ho;return new e(t)}function um(t,e,n){return new jp(t,e,n)}function dm(t){return st(t,e=>e.ui)}function fm(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function hm(t){let{options:e}=t;return{eventUiSingleBase:mr({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:mr({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function ti(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function gm(t){return Vh(t.options.businessHours,t)}function $l(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class pm extends ee{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return v("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:u,buttonIcon:c,buttonHint:d}=l;if(a==="title")s=!1,i.push(v("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,f=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",g=[`fc-${a}-button`,r.getClass("button")];h&&g.push(r.getClass("buttonActive")),i.push(v("button",{type:"button",title:typeof d=="function"?d(n.navUnit):d,disabled:f,"aria-pressed":h,className:g.join(" "),onClick:o},u||(c?v("span",{className:c,role:"img"}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return v("div",{className:l},...i)}return i[0]}}class Gl extends ee{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,l=e.sectionWidgets,a=l.center;return l.left?(r=!0,i=l.left):i=l.start,l.right?(r=!0,s=l.right):s=l.end,v("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return v(pm,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class mm extends ee{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,lt(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return r?n.availableWidth!==null?s=n.availableWidth/r:l=`${1/r*100}%`:s=e.height||"",v("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class vm extends sn{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=Kt(r);if(l&&i.isValidSegDownEl(n.target)){let a=Ee(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new oe(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=Co(e.el,"click",".fc-event",this.handleSegClick)}}class bm extends sn{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Kt(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=Xd(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=Kt(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new oe(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class ym extends Ft{constructor(){super(...arguments),this.buildViewContext=z(sh),this.buildViewPropTransformers=z(Em),this.buildToolbarProps=z(Sm),this.headerRef=_e(),this.footerRef=_e(),this.interactionsStore={},this.state={viewLabelId:vt()},this.registerInteractiveComponent=(e,n)=>{let r=ag(e,n),l=[vm,bm].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=l,Mi[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete Mi[e.uid]},this.resizeRunner=new rs(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,xn(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",a;e.isHeightAuto||e.forPrint?l="":r.height!=null?s=!0:r.contentHeight!=null?l=r.contentHeight:a=Math.max(r.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return v(ct.Provider,{value:o},n.header&&v(Gl,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},i)),v(mm,{liquid:s,height:l,aspectRatio:a,labeledById:u},this.renderView(e),this.buildAppendContent()),n.footer&&v(Gl,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return v(ne,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(i,a.transform(i,e));let l=r.component;return v(l,Object.assign({},i))}}function Sm(t,e,n,r,i,s){let l=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),o=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!tt(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function Em(t){return t.map(e=>new e)}let wm=class extends og{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;gr(()=>{pn(v(lg,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,a)=>(this.setClassNames(i),this.setHeight(s),v(Oo.Provider,{value:this.customContentRenderId},v(ym,Object.assign({isHeightAuto:l,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,pn(null,this.el),this.setClassNames([]),this.setHeight(""))},zd(e),this.el=e,this.renderRunner=new rs(this.handleRenderRequest),new lm({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){gr(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!yt(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){wo(this.el,"height",e)}};const Am={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Cm=_a({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:Rm(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(It(Dm,{key:e.id,customRendering:e}));return It("div",{attrs:{"data-fc-render-id":this.renderId}},It(Se,t))},mounted(){const t=new op;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new wm(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:_m()}),Dm=_a({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return It(ju,{to:t.containerEl},e)}});function _m(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in Am)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function Rm(t){const e={};for(const n in t)e[km(n)]=t[n];return e}function km(t){return t.split("-").map((e,n)=>n?Tm(e):e).join("")}function Tm(t){return t.charAt(0).toUpperCase()+t.slice(1)}class xm extends We{constructor(){super(...arguments),this.headerElRef=_e()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=br(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),v(mn,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},v(Ts,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&br(a.options),u=!l.forPrint&&hc(a.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),u&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Ni}]}),v(mn,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},v(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:c}))}}function zn(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function Un(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function Yl(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const Tc=se({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function xc(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Mc extends ee{render(){let{props:e}=this;return v(gc,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Tc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Ic extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||Tc,l=hn(i,s,n,!0,e.defaultDisplayEventEnd);return v(Ir,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:ws(e.seg,n),defaultGenerator:Mm,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function Mm(t){return v(ne,null,v("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&v("div",{className:"fc-event-time"},t.timeText),v("div",{className:"fc-event-title"},t.event.title||v(ne,null," ")))}class Im extends ee{constructor(){super(...arguments),this.compileSegs=z(Om)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return v(bc,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return v(ne,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return v("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},xc(s)?v(Ic,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},nt(s,e.todayRange))):v(Mc,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},nt(s,e.todayRange))))}))}})}}function Om(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const Nm=se({week:"narrow"});class Pm extends We{constructor(){super(...arguments),this.rootElRef=_e(),this.state={dayNumberId:vt()},this.handleRootEl=e=>{lt(this.rootElRef,e),lt(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=n;const u=n.showDayNumber&&Bm(a,o.currentRange,l);return v(Ms,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Hm,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:u,extraRenderProps:n.extraRenderProps},(c,d)=>v("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&v(vc,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:en(e,a,"week"),date:a,defaultFormat:Nm}),!d.isDisabled&&(n.showDayNumber||Is(s)||n.forceDayTop)?v("div",{className:"fc-daygrid-day-top"},v(c,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},en(e,a)),{id:r.dayNumberId})})):n.showDayNumber?v("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},v("a",{className:"fc-daygrid-day-number"}," ")):void 0,v("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,v("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},v(Im,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),v("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Hm(t){return t.dayNumberText||v(ne,null," ")}function Bm(t,e,n){const{start:r,end:i}=e,s=St(i,-1),l=n.getYear(r),a=n.getMonth(r),o=n.getYear(s),u=n.getMonth(s);return!(l===o&&a===u)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function Oc(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Nc(t){return Oc(t)+":"+t.lastCol}function Lm(t,e,n,r,i,s,l){let a=new Fm(b=>{let S=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return i[S]||1});a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let o=[],u=[];for(let b=0;b<t.length;b+=1){let S=t[b],C=Nc(S);i[C]!=null?o.push({index:b,span:{start:S.firstCol,end:S.lastCol+1}}):u.push(S)}let c=a.addSegs(o),d=a.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:g}=Vm(d,t,l),m=[],p=[];for(let b of u){f[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let S=b.firstCol;S<=b.lastCol;S+=1)h[S].push({seg:Zt(b,S,S+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<l.length;b+=1)m.push(0);for(let b of c){let S=t[b.index],C=b.span;f[C.start].push({seg:Zt(S,C.start,C.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let D=C.start;D<C.end;D+=1)m[D]+=1,h[D].push({seg:Zt(S,D,D+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<l.length;b+=1)p.push(g[b]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:m,moreMarginTops:p}}function Vm(t,e,n){let r=jm(t,n.length),i=[],s=[],l=[];for(let a=0;a<n.length;a+=1){let o=r[a],u=[],c=0,d=0;for(let f of o){let g=e[f.index];u.push({seg:Zt(g,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-c}),c=f.levelCoord+f.thickness}let h=[];c=0,d=0;for(let f of o){let g=e[f.index],m=f.span.end-f.span.start>1,p=f.span.start===a;d+=f.levelCoord-c,c=f.levelCoord+f.thickness,m?(d+=f.thickness,p&&h.push({seg:Zt(g,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):p&&(h.push({seg:Zt(g,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:d}),d=0)}i.push(u),s.push(h),l.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function jm(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function Zt(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=Et(s,{start:r[e].date,end:be(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:l},isStart:t.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===s.end.valueOf()})}class Fm extends tc{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Pt(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:l,touchingLevel:a,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const u=Pt(l);if(!s[u])if(this.allowReslicing){const c=Object.assign(Object.assign({},l),{span:Rs(l.span,n.span)}),d=Pt(c);s[d]=!0,i[a][o]=c,r.push(c),this.splitEntry(l,n,r)}else s[u]=!0,r.push(l)}super.handleInvalidInsertion(e,n,r)}}class Pc extends We{constructor(){super(...arguments),this.cellElRefs=new et,this.frameElRefs=new et,this.fgElRefs=new et,this.segHarnessRefs=new et,this.rootElRef=_e(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,l=Un(e.businessHourSegs,s),a=Un(e.bgEventSegs,s),o=Un(this.getHighlightSegs(),s),u=Un(this.getMirrorSegs(),s),{singleColPlacements:c,multiColPlacements:d,moreCnts:h,moreMarginTops:f}=Lm(Es(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),g=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return v("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((m,p)=>{let b=this.renderFgSegs(p,e.forPrint?c[p]:d[p],e.todayRange,g),S=this.renderFgSegs(p,zm(u[p],d),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return v(Pm,{key:m.key,elRef:this.cellElRefs.createRef(m.key),innerElRef:this.frameElRefs.createRef(m.key),dateProfile:e.dateProfile,date:m.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&p===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,moreCnt:h[p],moreMarginTop:f[p],singlePlacements:c[p],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:v(ne,null,v(ne,null,b),v(ne,null,S)),bgContent:v(ne,null,this.renderFillSegs(o[p],"highlight"),this.renderFillSegs(l[p],"non-business"),this.renderFillSegs(a[p],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!Ge(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,s,l,a){let{context:o}=this,{eventSelection:u}=this.props,{framePositions:c}=this.state,d=this.props.cells.length===1,h=s||l||a,f=[];if(c)for(let g of n){let{seg:m}=g,{instanceId:p}=m.eventRange.instance,b=g.isVisible&&!i[p],S=g.isAbsolute,C="",D="";S&&(o.isRtl?(D=0,C=c.lefts[m.lastCol]-c.lefts[m.firstCol]):(C=0,D=c.rights[m.firstCol]-c.rights[m.lastCol])),f.push(v("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:Oc(m),ref:h?null:this.segHarnessRefs.createRef(Nc(m)),style:{visibility:b?"":"hidden",marginTop:S?"":g.marginTop,top:S?g.absoluteTop:"",left:C,right:D}},xc(m)?v(Ic,Object.assign({seg:m,isDragging:s,isSelected:p===u,defaultDisplayEventEnd:d},nt(m,r))):v(Mc,Object.assign({seg:m,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:p===u,defaultDisplayEventEnd:d},nt(m,r)))))}return f}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=r?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(v("div",{key:qo(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?v(pc,Object.assign({seg:a},nt(a,i))):mc(n)))}return v(ne,{},...l)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(u=>i.currentMap[u.key]);if(o.length){let u=this.rootElRef.current,c=new tn(u,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new tn(u,o,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Pc.addStateEquality({segHeights:Ge});function zm(t,e){if(!t.length)return[];let n=Um(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function Um(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class Wm extends We{constructor(){super(...arguments),this.splitBusinessHourSegs=z(zn),this.splitBgEventSegs=z(zn),this.splitFgEventSegs=z(zn),this.splitDateSelectionSegs=z(zn),this.splitEventDrag=z(Yl),this.splitEventResize=z(Yl),this.rowRefs=new et}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return v(ln,{unit:"day"},(d,h)=>v(ne,null,e.cells.map((f,g)=>v(Pc,{ref:this.rowRefs.createRef(g),key:f.length?f[0].date.toISOString():g,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:i[g],eventSelection:e.eventSelection,bgEventSegs:s[g].filter($m),fgEventSegs:l[g],dateSelectionSegs:a[g],eventDrag:o[g],eventResize:u[g],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new tn(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new tn(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),l=i.topToIndex(n);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=be(r,1);return{start:r,end:i}}}function $m(t){return t.eventRange.def.allDay}class Gm extends We{constructor(){super(...arguments),this.elRef=_e(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return v("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,v("tbody",{role:"presentation"},v(Wm,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Ym(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function Ym(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Tf(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${kn(e.currentDate)}"]`)),n}class qm extends ac{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Hc extends We{constructor(){super(...arguments),this.slicer=new qm,this.tableRef=_e()}render(){let{props:e,context:n}=this;return v(Gm,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Qm extends xm{constructor(){super(...arguments),this.buildDayTableModel=z(Zm),this.headerRef=_e(),this.tableRef=_e()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&v(ic,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=a=>v(Hc,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function Zm(t,e){let n=new sc(t.renderRange,e);return new lc(n,/year|month|week/.test(t.currentRangeUnit))}class Xm extends Ho{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return Jm({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function Jm(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=wl(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(be(n.end,-1))),a=Math.ceil(bf(l,i));i=wl(i,6-a)}return{start:r,end:i}}var Km=':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}';_r(Km);var ev=qe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Qm,dateProfileGeneratorClass:Xm},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class tv extends hg{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Wh(e)?["timed","allDay"]:["allDay"]:["timed"]}}const nv=se({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Bc(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return v(ct.Consumer,null,n=>{if(!t.isLabeled)return v("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,l=i.slotLabelFormat==null?nv:Array.isArray(i.slotLabelFormat)?se(i.slotLabelFormat[0]):se(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,l)};return v(Ce,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:rv,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},o=>v("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},v(o,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function rv(t){return t.text}class iv extends ee{render(){return this.props.slatMetas.map(e=>v("tr",{key:e.key},v(Bc,Object.assign({},e))))}}const sv=se({week:"short"}),lv=5;class av extends We{constructor(){super(...arguments),this.allDaySplitter=new tv,this.headerElRef=_e(),this.rootElRef=_e(),this.scrollerElRef=_e(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,s=i.renderRange,a=At(s.start,s.end)===1?en(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?v(vc,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:sv},o=>v("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},v(o,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):v("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},v("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return v(Ce,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:ov,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>v("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},v(s,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:i,props:s}=this,l=[],a=br(i.options);return e&&l.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(l.push({type:"body",key:"all-day",chunk:{content:n}}),l.push({type:"body",key:"all-day-divider",outerContent:v("tr",{role:"presentation",className:"fc-scrollgrid-section"},v("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),l.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),v(mn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},v(Ts,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:l}))}renderHScrollLayout(e,n,r,i,s,l,a){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{context:u,props:c}=this,d=!c.forPrint&&br(u.options),h=!c.forPrint&&hc(u.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>v("tr",{role:"presentation"},this.renderHeadAxis("day",m.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>v("tr",{role:"presentation"},this.renderTableRowAxis(m.rowSyncHeights[0]))},{key:"cols",content:n}]}),f.push({key:"all-day-divider",type:"body",outerContent:v("tr",{role:"presentation",className:"fc-scrollgrid-section"},v("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));let g=u.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:!!u.options.expandRows,chunks:[{key:"axis",content:m=>v("div",{className:"fc-timegrid-axis-chunk"},v("table",{"aria-hidden":!0,style:{height:m.expandRows?m.clientHeight:""}},m.tableColGroupNode,v("tbody",null,v(iv,{slatMetas:l}))),v("div",{className:"fc-timegrid-now-indicator-container"},v(ln,{unit:g?"minute":"day"},p=>{let b=g&&a&&a.safeComputeTop(p);return typeof b=="number"?v(xs,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:p}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Ni},{key:"cols",content:Ni}]}),v(mn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:u.viewSpec},v(o,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:s}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=lv),{dayMaxEvents:e,dayMaxEventRows:n}}}function ov(t){return t.text}class cv{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(tt(n.currentRange,e)){let r=re(e),i=e.valueOf()-r.valueOf();if(i>=ze(n.slotMinTime)&&i<ze(n.slotMaxTime))return this.computeTimeTop(K(i))}return null}computeDateTop(e,n){return n||(n=re(e)),this.computeTimeTop(K(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-ze(r.slotMinTime))/ze(this.slotDuration),l,a;return s=Math.max(0,s),s=Math.min(i,s),l=Math.floor(s),l=Math.min(l,i-1),a=s-l,n.tops[l]+n.getHeight(l)*a}}class uv extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return v("tbody",null,e.slatMetas.map((s,l)=>{let a={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return v("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&v(Bc,Object.assign({},s)),v(Ce,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!s.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":s.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class dv extends ee{constructor(){super(...arguments),this.rootElRef=_e(),this.slatElRefs=new et}render(){let{props:e,context:n}=this;return v("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},v("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,v(uv,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new cv(new tn(this.rootElRef.current,fv(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function fv(t,e){return e.map(n=>t[n.key])}function cn(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function ql(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class hv extends ee{render(){let{props:e}=this;return v(bc,{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:()=>Vc(e.hiddenSegs,e),defaultGenerator:gv,forceTimed:!0},n=>v(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function gv(t){return t.shortText}function pv(t,e,n){let r=new tc;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=_g(i),l=mv(r);return l=Sv(l,1),{segRects:Ev(l),hiddenGroups:s}}function mv(t){const{entriesByLevel:e}=t,n=Ns((r,i)=>r+":"+i,(r,i)=>{let s=yv(t,r,i),l=Ql(s,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:l[0]}),a.thickness+l[1]]});return Ql(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Ql(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=t,s=r,l=[];for(;s<i;)l.push(e(n,s)),s+=1;return l.sort(vv),[l.map(bv),l[0][1]]}function vv(t,e){return e[1]-t[1]}function bv(t){return t[0]}function yv(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],l=r[e]+s.thickness,a=r.length,o=e;for(;o<a&&r[o]<l;o+=1);for(;o<a;o+=1){let u=i[o],c,d=Oi(u,s.span.start,Ii),h=d[0]+d[1],f=h;for(;(c=u[f])&&c.span.start<s.span.end;)f+=1;if(h<f)return{level:o,lateralStart:h,lateralEnd:f}}return null}function Sv(t,e){const n=Ns((r,i,s)=>Pt(r),(r,i,s)=>{let{nextLevelNodes:l,thickness:a}=r,o=a+s,u=a/o,c,d=[];if(!l.length)c=e;else for(let f of l)if(c===void 0){let g=n(f,i,o);c=g[0],d.push(g[1])}else{let g=n(f,c,0);d.push(g[1])}let h=(c-i)*u;return[c-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:d})]});return t.map(r=>n(r,0,0)[1])}function Ev(t){let e=[];const n=Ns((i,s,l)=>Pt(i),(i,s,l)=>{let a=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:l,stackForward:0});return e.push(a),a.stackForward=r(i.nextLevelNodes,s+i.thickness,l+1)+1});function r(i,s,l){let a=0;for(let o of i)a=Math.max(n(o,s,l),a);return a}return r(t,0,0),e}function Ns(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function Zl(t,e,n=null,r=0){let i=[];if(n)for(let s=0;s<t.length;s+=1){let l=t[s],a=n.computeDateTop(l.start,e),o=Math.max(a+(r||0),n.computeDateTop(l.end,e));i.push({start:Math.round(a),end:Math.round(o)})}return i}function wv(t,e,n,r){let i=[],s=[];for(let u=0;u<t.length;u+=1){let c=e[u];c?i.push({index:u,thickness:1,span:c}):s.push(t[u])}let{segRects:l,hiddenGroups:a}=pv(i,n,r),o=[];for(let u of l)o.push({seg:t[u.index],rect:u});for(let u of s)o.push({seg:u,rect:null});return{segPlacements:o,hiddenGroups:a}}const Av=se({hour:"numeric",minute:"2-digit",meridiem:!1});class Lc extends ee{render(){return v(gc,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Av}))}}class Cv extends ee{constructor(){super(...arguments),this.sortEventSegs=z(Es)}render(){let{props:e,context:n}=this,{options:r}=n,i=r.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],l=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return v(Ms,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},o=>v("div",{className:"fc-timegrid-col-frame"},v("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),v("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,l,!1,!1,!1)),v("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),v("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Is(r)&&v(o,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,l){let{props:a}=this;return a.forPrint?Vc(e,a):this.renderPositionedFgSegs(e,n,r,i,s,l)}renderPositionedFgSegs(e,n,r,i,s,l){let{eventMaxStack:a,eventShortHeight:o,eventOrderStrict:u,eventMinHeight:c}=this.context.options,{date:d,slatCoords:h,eventSelection:f,todayRange:g,nowDate:m}=this.props,p=r||i||s,b=Zl(e,d,h,c),{segPlacements:S,hiddenGroups:C}=wv(e,b,u,a);return v(ne,null,this.renderHiddenGroups(C,e),S.map(D=>{let{seg:k,rect:E}=D,y=k.eventRange.instance.instanceId,A=p||!!(!n[y]&&E),H=ni(E&&E.span),x=!p&&E?this.computeSegHStyle(E):{left:0,right:0},I=!!E&&E.stackForward>0,N=!!E&&E.span.end-E.span.start<o;return v("div",{className:"fc-timegrid-event-harness"+(I?" fc-timegrid-event-harness-inset":""),key:l||y,style:Object.assign(Object.assign({visibility:A?"":"hidden"},H),x)},v(Lc,Object.assign({seg:k,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:y===f,isShort:N},nt(k,g,m))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:u}=this.props;return v(ne,null,e.map(c=>{let d=ni(c.span),h=Dv(c.entries,n);return v(hv,{key:ko(yc(h)),hiddenSegs:h,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:l,eventSelection:a,eventDrag:o,eventResize:u})}))}renderFillSegs(e,n){let{props:r,context:i}=this,l=Zl(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,o)=>{let u=e[o];return v("div",{key:qo(u.eventRange),className:"fc-timegrid-bg-harness",style:ni(a)},n==="bg-event"?v(pc,Object.assign({seg:u},nt(u,r.todayRange,r.nowDate))):mc(n))});return v(ne,null,l)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>v(xs,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,s=e.levelCoord,l=e.levelCoord+e.thickness,a,o;i&&(l=Math.min(1,s+(l-s)*2)),n?(a=1-l,o=s):(a=s,o=1-l);let u={zIndex:e.stackDepth+1,left:a*100+"%",right:o*100+"%"};return i&&!e.stackForward&&(u[n?"marginLeft":"marginRight"]=10*2),u}}function Vc(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let l=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return v(ne,null,t.map(a=>{let o=a.eventRange.instance.instanceId;return v("div",{key:o,style:{visibility:l[o]?"hidden":""}},v(Lc,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===r,isShort:!1},nt(a,e,n))))}))}function ni(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function Dv(t,e){return t.map(n=>e[n.index])}class _v extends ee{constructor(){super(...arguments),this.splitFgEventSegs=z(cn),this.splitBgEventSegs=z(cn),this.splitBusinessHourSegs=z(cn),this.splitNowIndicatorSegs=z(cn),this.splitDateSelectionSegs=z(cn),this.splitEventDrag=z(ql),this.splitEventResize=z(ql),this.rootElRef=_e(),this.cellElRefs=new et}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,i),l=this.splitBgEventSegs(e.bgEventSegs,i),a=this.splitBusinessHourSegs(e.businessHourSegs,i),o=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),u=this.splitDateSelectionSegs(e.dateSelectionSegs,i),c=this.splitEventDrag(e.eventDrag,i),d=this.splitEventResize(e.eventResize,i);return v("div",{className:"fc-timegrid-cols",ref:this.rootElRef},v("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,v("tbody",{role:"presentation"},v("tr",{role:"row"},e.axis&&v("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},v("div",{className:"fc-timegrid-col-frame"},v("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&v(xs,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((h,f)=>v(Cv,{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[f],bgEventSegs:l[f],businessHourSegs:a[f],nowIndicatorSegs:o[f],dateSelectionSegs:u[f],eventDrag:c[f],eventResize:d[f],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 tn(this.rootElRef.current,Rv(this.cellElRefs.currentMap,e.cells),!0,!1))}}function Rv(t,e){return e.map(n=>t[n.key])}class kv extends We{constructor(){super(...arguments),this.processSlotOptions=z(Tv),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return v("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v(dv,{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}),v(_v,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:i}=this.context,{colCoords:s}=this,{dateProfile:l}=this.props,{slatCoords:a}=this.state,{snapDuration:o,snapsPerSlot:u}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=s.leftToIndex(e),d=a.positions.topToIndex(n);if(c!=null&&d!=null){let h=this.props.cells[c],f=a.positions.tops[d],g=a.positions.getHeight(d),m=(n-f)/g,p=Math.floor(m*u),b=d*u+p,S=this.props.cells[c].date,C=Ci(l.slotMinTime,gf(o,b)),D=r.add(S,C),k=r.add(D,o);return{dateProfile:l,dateSpan:Object.assign({range:{start:D,end:k},allDay:!1},h.extraDateSpan),dayEl:s.els[c],rect:{left:s.lefts[c],right:s.rights[c],top:f,bottom:f+g},layer:0}}return null}}function Tv(t,e){let n=e||t,r=as(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class xv extends ac{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Et(e,n[i]);s&&r.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:i})}return r}}class Mv extends We{constructor(){super(...arguments),this.buildDayRanges=z(Iv),this.slicer=new xv,this.timeColsRef=_e()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:s,nextDayThreshold:l}=n.options,a=this.buildDayRanges(i,r,n.dateEnv);return v(ln,{unit:s?"minute":"day"},(o,u)=>v(kv,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:o,nowIndicatorSegs:s&&this.slicer.sliceNowDate(o,r,l,n,a),todayRange:u,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Iv(t,e,n){let r=[];for(let i of t.headerDates)r.push({start:n.add(i,e.slotMinTime),end:n.add(i,e.slotMaxTime)});return r}const Xl=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Ov(t,e,n,r,i){let s=new Date(0),l=t,a=K(0),o=n||Nv(r),u=[];for(;ze(l)<ze(e);){let c=i.add(s,l),d=as(a,o)!==null;u.push({date:c,time:l,key:c.toISOString(),isoTimeStr:xf(c),isLabeled:d}),l=Ci(l,r),a=Ci(a,r)}return u}function Nv(t){let e,n,r;for(e=Xl.length-1;e>=0;e-=1)if(n=K(Xl[e]),r=as(n,t),r!==null&&r>1)return n;return t}class Pv extends av{constructor(){super(...arguments),this.buildTimeColsModel=z(Hv),this.buildSlatMetas=z(Ov)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:s}=i,l=this.buildTimeColsModel(s,r),a=this.allDaySplitter.splitProps(i),o=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:u}=e,c=!u,d=u,h=e.dayHeaders&&v(ic,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),f=e.allDaySlot!==!1&&(m=>v(Hc,Object.assign({},a.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:m.tableMinWidth,colGroupNode:m.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:m.clientWidth,clientHeight:m.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),g=m=>v(Mv,Object.assign({},a.timed,{dayTableModel:l,dateProfile:s,axis:c,slotDuration:e.slotDuration,slatMetas:o,forPrint:i.forPrint,tableColGroupNode:m.tableColGroupNode,tableMinWidth:m.tableMinWidth,clientWidth:m.clientWidth,clientHeight:m.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:m.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(h,f,g,l.colCnt,u,o,this.state.slatCoords):this.renderSimpleLayout(h,f,g)}}function Hv(t,e){let n=new sc(t.renderRange,e);return new lc(n,!1)}var Bv='.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}';_r(Bv);const Lv={allDaySlot:Boolean};var Vv=qe({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:Lv,views:{timeGrid:{component:Pv,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});ks.touchMouseIgnoreWait=500;let Hi=0,yr=0,Bi=!1;class jc{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&jv(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Fv()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new xr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),zv()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Uv()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Ee(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Bi=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Ee(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Hi||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Bi=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,l=0,a=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(l=i-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:l,deltaY:a}}}function jv(t){return t.button===0&&!t.ctrlKey}function Fv(){Hi+=1,setTimeout(()=>{Hi-=1},ks.touchMouseIgnoreWait)}function zv(){yr+=1,yr===1&&window.addEventListener("touchmove",Fc,{passive:!1})}function Uv(){yr-=1,yr||window.removeEventListener("touchmove",Fc,{passive:!1})}function Fc(t){Bi&&t.preventDefault()}class Wv{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",un(r,{left:i.left,top:i.top}),Jd(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(is(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&un(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),un(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class zc extends _s{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Uc extends zc{constructor(e,n){super(new Cg(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return wg(this.scrollController.el)}}class $v extends zc{constructor(e){super(new Dg,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Jl=typeof performance=="function"?performance.now:Date.now;class Gv{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let n=Jl();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.scrollX,i=n-window.scrollY,s=this.pointerScreenY===null?0:i-this.pointerScreenY,l=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Jl()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,l=s*s/(i*i)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+l*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,u=a.right-e,c=n-a.top,d=a.bottom-n;o>=0&&u>=0&&c>=0&&d>=0&&(c<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"top",distance:c}),d<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"bottom",distance:d}),o<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:l,name:"left",distance:o}),u<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"right",distance:u}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new $v(!1):new Uc(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class Mn extends kg{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Kd(document.body),tf(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=i;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,ef(document.body),nf(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new jc(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new Wv,this.autoScroller=new Gv}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Yv{constructor(e){this.el=e,this.origRect=Ds(e),this.scrollCaches=ec(e).map(n=>new Uc(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!qv(i.getEventTarget())&&!cg(r,i.clientRect))return!1;return!0}}function qv(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Or{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new xr}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=Ds(i),r=ug(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let a=Jo(s,l.rect);a&&(r=dg(a))}this.coordAdjust=fg(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!Nr(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=st(this.droppableStore,e=>(e.component.prepareHits(),new Yv(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let l in r){let a=r[l].component,o=i[l];if(o&&o.isWithinClipping(e,n)){let u=o.computeLeft(),c=o.computeTop(),d=e-u,h=n-c,{origRect:f}=o,g=f.right-f.left,m=f.bottom-f.top;if(d>=0&&d<g&&h>=0&&h<m){let p=a.queryHit(d,h,g,m);p&&kr(p.dateProfile.activeRange,p.dateSpan.range)&&(this.disablePointCheck||o.el.contains(o.el.getRootNode().elementFromPoint(d+u-window.scrollX,h+c-window.scrollY)))&&(!s||p.layer>s.layer)&&(p.componentId=l,p.context=a.context,p.rect.left+=u,p.rect.right+=u,p.rect.top+=c,p.rect.bottom+=c,s=p)}}}return s}}function Nr(t,e){return!t&&!e?!0:!!t!=!!e?!1:Kh(t.dateSpan,e.dateSpan)}function Wc(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,Qv(t,e.dateEnv)),n}function Qv(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class Zv extends sn{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&Nr(l,a)){let{context:o}=i,u=Object.assign(Object.assign({},Wc(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",u)}}},this.dragging=new Mn(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Or(this.dragging,As(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Xv extends sn{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:u}=a.context,c=u.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!c),o.delay=l.isTouch?Jv(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,u=null,c=!1;if(l){let d=this.hitDragging.initialHit;l.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,l)||(u=Kv(d,l,o.pluginHooks.dateSelectionTransformers)),(!u||!Ng(u,l.dateProfile,o))&&(c=!0,u=null)}u?o.dispatch({type:"SELECT_DATES",selection:u}):a||o.dispatch({type:"UNSELECT_DATES"}),c?ss():ls(),a||(this.dragSelection=u)},this.handlePointerUp=l=>{this.dragSelection&&($o(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new Mn(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Or(this.dragging,As(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 Jv(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Kv(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(of);let l={};for(let a of n){let o=a(t,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class In extends sn{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let a=l.origEvent.target,{component:o,dragging:u}=this,{mirror:c}=u,{options:d}=o.context,h=o.context;this.subjectEl=l.subjectEl;let f=this.subjectSeg=Kt(l.subjectEl),m=(this.eventRange=f.eventRange).instance.instanceId;this.relevantEvents=vs(h.getCurrentData().eventStore,m),u.minDistance=l.isTouch?0:d.eventDragMinDistance,u.delay=l.isTouch&&m!==o.props.eventSelection?tb(o):null,d.fixedMirrorParent?c.parentNode=d.fixedMirrorParent:c.parentNode=Ee(a,".fc"),c.revertDuration=d.dragRevertDuration;let p=o.isValidSegDownEl(a)&&!Ee(a,".fc-event-resizer");u.setIgnoreMove(!p),this.isDragging=p&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,u=o.instance.instanceId;l.isTouch?u!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:u}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new oe(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,u=this.hitDragging.initialHit,c=this.component.context,d=null,h=null,f=null,g=!1,m={affectedEvents:o,mutatedEvents:He(),isEvent:!0};if(l){d=l.context;let p=d.options;c===d||p.editable&&p.droppable?(h=eb(u,l,this.eventRange.instance.range.start,d.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(f=Ss(o,d.getCurrentData().eventUiBases,h,d),m.mutatedEvents=f,oc(m,l.dateProfile,d)||(g=!0,h=null,f=null,m.mutatedEvents=He()))):d=null}this.displayDrag(d,m),g?ss():ls(),a||(c===d&&Nr(u,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=d,this.validMutation=h,this.mutatedRelevantEvents=f)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:u,validMutation:c}=this,d=this.eventRange.def,h=this.eventRange.instance,f=new oe(a,d,h),g=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:p}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:f,jsEvent:l.origEvent,view:o}),c){if(u===a){let b=new oe(a,m.defs[d.defId],h?m.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:m});let S={oldEvent:f,event:b,relatedEvents:Nt(m,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}},C={};for(let D of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(C,D(c,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},S),C),{el:l.subjectEl,delta:c.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",S)}else if(u){let b={event:f,relatedEvents:Nt(g,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:g}),a.emitter.trigger("eventRemove",b);let S=m.defs[d.defId],C=m.instances[h.instanceId],D=new oe(u,S,C);u.dispatch({type:"MERGE_EVENTS",eventStore:m});let k={event:D,relatedEvents:Nt(m,u,C),revert(){u.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};u.emitter.trigger("eventAdd",k),l.isTouch&&u.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),u.emitter.trigger("drop",Object.assign(Object.assign({},Wc(p.dateSpan,u)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:p.context.viewApi})),u.emitter.trigger("eventReceive",Object.assign(Object.assign({},k),{draggedEl:l.subjectEl,view:p.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new Mn(e.el);i.pointer.selector=In.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Or(this.dragging,Mi);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:He(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}In.SELECTOR=".fc-event-draggable, .fc-event-resizable";function eb(t,e,n,r){let i=t.dateSpan,s=e.dateSpan,l=i.range.start,a=s.range.start,o={};i.allDay!==s.allDay&&(o.allDay=s.allDay,o.hasEnd=e.context.options.allDayMaintainDuration,s.allDay?l=re(n):l=n);let u=$t(l,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);u.milliseconds&&(o.allDay=!1);let c={datesDelta:u,standardProps:o};for(let d of r)d(c,t,e);return c}function tb(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class nb extends sn{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,a=this.querySegEl(s),o=Kt(a),u=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==u.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=vs(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=Kt(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new oe(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,u=this.relevantEvents,c=this.hitDragging.initialHit,d=this.eventRange.instance,h=null,f=null,g=!1,m={affectedEvents:u,mutatedEvents:He(),isEvent:!0};s&&(s.componentId===c.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(c,s)||(h=rb(c,s,a.subjectEl.classList.contains("fc-event-resizer-start"),d.range))),h&&(f=Ss(u,o.getCurrentData().eventUiBases,h,o),m.mutatedEvents=f,oc(m,s.dateProfile,o)||(g=!0,h=null,f=null,m.mutatedEvents=null)),f?o.dispatch({type:"SET_EVENT_RESIZE",state:m}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),g?ss():ls(),l||(h&&Nr(c,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,u=new oe(l,a,o),c=this.relevantEvents,d=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:u,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new oe(l,d.defs[a.defId],o?d.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:d});let f={oldEvent:u,event:h,relatedEvents:Nt(d,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:c})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||K(0),endDelta:this.validMutation.endDelta||K(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",f)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Mn(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Or(this.dragging,As(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Ee(e.subjectEl,".fc-event")}}function rb(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=$t(s,l,i,t.largeUnit);if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}class ib{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=Ao(r.origEvent);this.matchesCancel=!!Ee(s,i),this.matchesEvent=!!Ee(s,In.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,l=i.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=i.options.unselectAuto;a&&(!a||!this.matchesCancel)&&i.calendarApi.unselect(r)}l.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new jc(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const sb={fixedMirrorParent:w},lb={dateClick:w,eventDragStart:w,eventDragStop:w,eventDrop:w,eventResizeStart:w,eventResizeStop:w,eventResize:w,drop:w,eventReceive:w,eventLeave:w};ks.dataAttrPrefix="";var ab=qe({name:"@fullcalendar/interaction",componentInteractions:[Zv,Xv,In,nb],calendarInteractions:[ib],elementDraggingImpl:Mn,optionRefiners:sb,listenerRefiners:lb});class ob extends ee{constructor(){super(...arguments),this.state={textId:vt()}}render(){let{theme:e,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:s,dayDate:l,todayRange:a}=this.props,{textId:o}=this.state,u=Cs(l,a),c=r.listDayFormat?n.format(l,r.listDayFormat):"",d=r.listDaySideFormat?n.format(l,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(l),view:i,textId:o,text:c,sideText:d,navLinkAttrs:en(this.context,l),sideNavLinkAttrs:en(this.context,l,"day",!1)},u);return v(Ce,{elTag:"tr",elClasses:["fc-list-day",...Mr(u,e)],elAttrs:{"data-date":kn(l)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:cb,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},f=>v("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},v(f,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function cb(t){return v(ne,null,t.text&&v("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&v("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const ub=se({hour:"numeric",minute:"2-digit",meridiem:"short"});class db extends ee{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=r.eventTimeFormat||ub;return v(Ir,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>fb(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(u,c)=>v(ne,null,hb(i,o,n,s,a),v("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},v("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),v(u,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${a}`}})))}}function fb(t,e){let n=ws(t,e);return v("a",Object.assign({},n),t.eventRange.def.title)}function hb(t,e,n,r,i){let{options:s}=n;if(s.displayEventTime!==!1){let l=t.eventRange.def,a=t.eventRange.instance,o=!1,u;if(l.allDay?o=!0:ph(t.eventRange.range)?t.isStart?u=hn(t,e,n,null,null,a.range.start,t.end):t.isEnd?u=hn(t,e,n,null,null,t.start,a.range.end):o=!0:u=hn(t,e,n),o){let c={text:n.options.allDayText,view:n.viewApi};return v(Ce,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:c,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:gb,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return v("td",{className:"fc-list-event-time"},u)}return null}function gb(t){return t.text}class pb extends We{constructor(){super(...arguments),this.computeDateVars=z(vb),this.eventStoreToSegs=z(this._eventStoreToSegs),this.state={timeHeaderId:vt(),eventHeaderId:vt(),dateHeaderIdRoot:vt()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return v(mn,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},v(dc,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,r={text:e.noEventsText,view:n};return v(Ce,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:mb,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},i=>v(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:r,options:i}=this.context,{timeHeaderId:s,eventHeaderId:l,dateHeaderIdRoot:a}=this.state,o=bb(e);return v(ln,{unit:"day"},(u,c)=>{let d=[];for(let h=0;h<o.length;h+=1){let f=o[h];if(f){let g=kn(n[h]),m=a+"-"+g;d.push(v(ob,{key:g,cellId:m,dayDate:n[h],todayRange:c})),f=Es(f,i.eventOrder);for(let p of f)d.push(v(db,Object.assign({key:g+":"+p.eventRange.instance.instanceId,seg:p,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:l,dateHeaderId:m},nt(p,c,u))))}}return v("table",{className:"fc-list-table "+r.getClass("table")},v("thead",null,v("tr",null,v("th",{scope:"col",id:s},i.timeHint),v("th",{scope:"col","aria-hidden":!0}),v("th",{scope:"col",id:l},i.eventHint))),v("tbody",null,d))})}_eventStoreToSegs(e,n,r){return this.eventRangesToSegs(xi(e,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(e,n){let r=[];for(let i of e)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(e,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,s=e.range,l=e.def.allDay,a,o,u,c=[];for(a=0;a<n.length;a+=1)if(o=Et(s,n[a]),o&&(u={component:this,eventRange:e,start:o.start,end:o.end,isStart:e.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===s.end.valueOf(),dayIndex:a},c.push(u),!u.isEnd&&!l&&a+1<n.length&&s.end<r.add(n[a+1].start,i))){u.end=s.end,u.isEnd=!0;break}return c}}function mb(t){return t.text}function vb(t){let e=re(t.renderRange.start),n=t.renderRange.end,r=[],i=[];for(;e<n;)r.push(e),i.push({start:e,end:be(e,1)}),e=be(e,1);return{dayDates:r,dayRanges:i}}function bb(t){let e=[],n,r;for(n=0;n<t.length;n+=1)r=t[n],(e[r.dayIndex]||(e[r.dayIndex]=[])).push(r);return e}var yb=':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}';_r(yb);const Sb={listDayFormat:Kl,listDaySideFormat:Kl,noEventsClassNames:w,noEventsContent:w,noEventsDidMount:w,noEventsWillUnmount:w};function Kl(t){return t===!1?null:se(t)}var Eb=qe({name:"@fullcalendar/list",optionRefiners:Sb,views:{list:{component:pb,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"}}}}),wb={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"};function Ab(t){return Fu()?(zu(t),!0):!1}function Cb(t){return typeof t=="function"?t():j(t)}const Db=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _b=()=>{};function Rb(t){return ka()}function kb(t,e=!0,n){Rb()?Ui(t,n):e?t():Ra(t)}function On(t,e,n){let r;Uu(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:s=void 0,shallow:l=!0,onError:a=_b}=r,o=ie(!i),u=l?Ie(e):ie(e);let c=0;return Wu(async d=>{if(!o.value)return;c++;const h=c;let f=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const g=await t(m=>{d(()=>{s&&(s.value=!1),f||m()})});h===c&&(u.value=g)}catch(g){a(g)}finally{s&&h===c&&(s.value=!1),f=!0}}),i?F(()=>(o.value=!0,u.value)):u}function Gt(t){var e;const n=Cb(t);return(e=n==null?void 0:n.$el)!=null?e:n}const $c=Db?window:void 0;function Tb(){const t=ie(!1),e=ka();return e&&Ui(()=>{t.value=!0},e),t}function xb(t){const e=Tb();return F(()=>(e.value,!!t()))}function Mb(t,e,n={}){const{window:r=$c,...i}=n;let s;const l=xb(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},o=F(()=>Array.isArray(t)?t.map(d=>Gt(d)):[Gt(t)]),u=Vt(o,d=>{if(a(),l.value&&r){s=new ResizeObserver(e);for(const h of d)h&&s.observe(h,i)}},{immediate:!0,flush:"post"}),c=()=>{a(),u()};return Ab(c),{isSupported:l,stop:c}}function BS(t,e={width:0,height:0},n={}){const{window:r=$c,box:i="content-box"}=n,s=F(()=>{var d,h;return(h=(d=Gt(t))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),l=ie(e.width),a=ie(e.height),{stop:o}=Mb(t,([d])=>{const h=i==="border-box"?d.borderBoxSize:i==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&s.value){const f=Gt(t);if(f){const g=f.getBoundingClientRect();l.value=g.width,a.value=g.height}}else if(h){const f=Array.isArray(h)?h:[h];l.value=f.reduce((g,{inlineSize:m})=>g+m,0),a.value=f.reduce((g,{blockSize:m})=>g+m,0)}else l.value=d.contentRect.width,a.value=d.contentRect.height},n);kb(()=>{const d=Gt(t);d&&(l.value="offsetWidth"in d?d.offsetWidth:e.width,a.value="offsetHeight"in d?d.offsetHeight:e.height)});const u=Vt(()=>Gt(t),d=>{l.value=d?e.width:0,a.value=d?e.height:0});function c(){o(),u()}return{width:l,height:a,stop:c}}function Ib(t){const e=Ta({});return Vt(t,()=>{for(const n of Object.keys(t))n.startsWith("_c_")&&(e[n]=t[n]);for(const n of Object.keys(e))t[n]===void 0&&delete e[n]},{immediate:!0}),e}const Xt=(t,e=0,n=1)=>Hs(Bs(e,t),n),Ps=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=Xt(t[e],0,255)):e===3&&(t[e]=Xt(t[e],0,1));return t},Gc={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Gc[`[object ${t}]`]=t.toLowerCase();function X(t){return Gc[Object.prototype.toString.call(t)]||"object"}const J=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):X(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0],Pr=t=>{if(t.length<2)return null;const e=t.length-1;return X(t[e])=="string"?t[e].toLowerCase():null},{PI:Hr,min:Hs,max:Bs}=Math,Xe=Hr*2,ri=Hr/3,Ob=Hr/180,Nb=180/Hr,q={format:{},autodetect:[]};class T{constructor(...e){const n=this;if(X(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=Pr(e),i=!1;if(!r){i=!0,q.sorted||(q.autodetect=q.autodetect.sort((s,l)=>l.p-s.p),q.sorted=!0);for(let s of q.autodetect)if(r=s.test(...e),r)break}if(q.format[r]){const s=q.format[r].apply(null,i?e:e.slice(0,-1));n._rgb=Ps(s)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return X(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const Pb="2.6.0",Q=(...t)=>new Q.Color(...t);Q.Color=T;Q.version=Pb;const Hb=(...t)=>{t=J(t,"cmyk");const[e,n,r,i]=t,s=t.length>4?t[4]:1;return i===1?[0,0,0,s]:[e>=1?0:255*(1-e)*(1-i),n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),s]},{max:ea}=Math,Bb=(...t)=>{let[e,n,r]=J(t,"rgb");e=e/255,n=n/255,r=r/255;const i=1-ea(e,ea(n,r)),s=i<1?1/(1-i):0,l=(1-e-i)*s,a=(1-n-i)*s,o=(1-r-i)*s;return[l,a,o,i]};T.prototype.cmyk=function(){return Bb(this._rgb)};Q.cmyk=(...t)=>new T(...t,"cmyk");q.format.cmyk=Hb;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"cmyk"),X(t)==="array"&&t.length===4)return"cmyk"}});const ii=t=>Math.round(t*100)/100,Lb=(...t)=>{const e=J(t,"hsla");let n=Pr(t)||"lsa";return e[0]=ii(e[0]||0),e[1]=ii(e[1]*100)+"%",e[2]=ii(e[2]*100)+"%",n==="hsla"||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,n="hsla"):e.length=3,`${n}(${e.join(",")})`},Yc=(...t)=>{t=J(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const i=Hs(e,n,r),s=Bs(e,n,r),l=(s+i)/2;let a,o;return s===i?(a=0,o=Number.NaN):a=l<.5?(s-i)/(s+i):(s-i)/(2-s-i),e==s?o=(n-r)/(s-i):n==s?o=2+(r-e)/(s-i):r==s&&(o=4+(e-n)/(s-i)),o*=60,o<0&&(o+=360),t.length>3&&t[3]!==void 0?[o,a,l,t[3]]:[o,a,l]},{round:si}=Math,Vb=(...t)=>{const e=J(t,"rgba");let n=Pr(t)||"rgb";return n.substr(0,3)=="hsl"?Lb(Yc(e),n):(e[0]=si(e[0]),e[1]=si(e[1]),e[2]=si(e[2]),(n==="rgba"||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,n="rgba"),`${n}(${e.slice(0,n==="rgb"?3:4).join(",")})`)},{round:li}=Math,Li=(...t)=>{t=J(t,"hsl");const[e,n,r]=t;let i,s,l;if(n===0)i=s=l=r*255;else{const a=[0,0,0],o=[0,0,0],u=r<.5?r*(1+n):r+n-r*n,c=2*r-u,d=e/360;a[0]=d+1/3,a[1]=d,a[2]=d-1/3;for(let h=0;h<3;h++)a[h]<0&&(a[h]+=1),a[h]>1&&(a[h]-=1),6*a[h]<1?o[h]=c+(u-c)*6*a[h]:2*a[h]<1?o[h]=u:3*a[h]<2?o[h]=c+(u-c)*(2/3-a[h])*6:o[h]=c;[i,s,l]=[li(o[0]*255),li(o[1]*255),li(o[2]*255)]}return t.length>3?[i,s,l,t[3]]:[i,s,l,1]},qc=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Qc=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Zc=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Xc=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Jc=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Kc=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:ta}=Math,Ls=t=>{t=t.toLowerCase().trim();let e;if(q.format.named)try{return q.format.named(t)}catch{}if(e=t.match(qc)){const n=e.slice(1,4);for(let r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(e=t.match(Qc)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+n[r];return n}if(e=t.match(Zc)){const n=e.slice(1,4);for(let r=0;r<3;r++)n[r]=ta(n[r]*2.55);return n[3]=1,n}if(e=t.match(Xc)){const n=e.slice(1,5);for(let r=0;r<3;r++)n[r]=ta(n[r]*2.55);return n[3]=+n[3],n}if(e=t.match(Jc)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=Li(n);return r[3]=1,r}if(e=t.match(Kc)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=Li(n);return r[3]=+e[4],r}};Ls.test=t=>qc.test(t)||Qc.test(t)||Zc.test(t)||Xc.test(t)||Jc.test(t)||Kc.test(t);T.prototype.css=function(t){return Vb(this._rgb,t)};Q.css=(...t)=>new T(...t,"css");q.format.css=Ls;q.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&Ls.test(t))return"css"}});q.format.gl=(...t)=>{const e=J(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};Q.gl=(...t)=>new T(...t,"gl");T.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};const{floor:jb}=Math,Fb=(...t)=>{t=J(t,"hcg");let[e,n,r]=t,i,s,l;r=r*255;const a=n*255;if(n===0)i=s=l=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const o=jb(e),u=e-o,c=r*(1-n),d=c+a*(1-u),h=c+a*u,f=c+a;switch(o){case 0:[i,s,l]=[f,h,c];break;case 1:[i,s,l]=[d,f,c];break;case 2:[i,s,l]=[c,f,h];break;case 3:[i,s,l]=[c,d,f];break;case 4:[i,s,l]=[h,c,f];break;case 5:[i,s,l]=[f,c,d];break}}return[i,s,l,t.length>3?t[3]:1]},zb=(...t)=>{const[e,n,r]=J(t,"rgb"),i=Hs(e,n,r),s=Bs(e,n,r),l=s-i,a=l*100/255,o=i/(255-l)*100;let u;return l===0?u=Number.NaN:(e===s&&(u=(n-r)/l),n===s&&(u=2+(r-e)/l),r===s&&(u=4+(e-n)/l),u*=60,u<0&&(u+=360)),[u,a,o]};T.prototype.hcg=function(){return zb(this._rgb)};Q.hcg=(...t)=>new T(...t,"hcg");q.format.hcg=Fb;q.autodetect.push({p:1,test:(...t)=>{if(t=J(t,"hcg"),X(t)==="array"&&t.length===3)return"hcg"}});const Ub=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Wb=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,eu=t=>{if(t.match(Ub)){(t.length===4||t.length===7)&&(t=t.substr(1)),t.length===3&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const e=parseInt(t,16),n=e>>16,r=e>>8&255,i=e&255;return[n,r,i,1]}if(t.match(Wb)){(t.length===5||t.length===9)&&(t=t.substr(1)),t.length===4&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=parseInt(t,16),n=e>>24&255,r=e>>16&255,i=e>>8&255,s=Math.round((e&255)/255*100)/100;return[n,r,i,s]}throw new Error(`unknown hex color: ${t}`)},{round:Wn}=Math,tu=(...t)=>{let[e,n,r,i]=J(t,"rgba"),s=Pr(t)||"auto";i===void 0&&(i=1),s==="auto"&&(s=i<1?"rgba":"rgb"),e=Wn(e),n=Wn(n),r=Wn(r);let a="000000"+(e<<16|n<<8|r).toString(16);a=a.substr(a.length-6);let o="0"+Wn(i*255).toString(16);switch(o=o.substr(o.length-2),s.toLowerCase()){case"rgba":return`#${a}${o}`;case"argb":return`#${o}${a}`;default:return`#${a}`}};T.prototype.hex=function(t){return tu(this._rgb,t)};Q.hex=(...t)=>new T(...t,"hex");q.format.hex=eu;q.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{cos:zt}=Math,$b=(...t)=>{t=J(t,"hsi");let[e,n,r]=t,i,s,l;return isNaN(e)&&(e=0),isNaN(n)&&(n=0),e>360&&(e-=360),e<0&&(e+=360),e/=360,e<1/3?(l=(1-n)/3,i=(1+n*zt(Xe*e)/zt(ri-Xe*e))/3,s=1-(l+i)):e<2/3?(e-=1/3,i=(1-n)/3,s=(1+n*zt(Xe*e)/zt(ri-Xe*e))/3,l=1-(i+s)):(e-=2/3,s=(1-n)/3,l=(1+n*zt(Xe*e)/zt(ri-Xe*e))/3,i=1-(s+l)),i=Xt(r*i*3),s=Xt(r*s*3),l=Xt(r*l*3),[i*255,s*255,l*255,t.length>3?t[3]:1]},{min:Gb,sqrt:Yb,acos:qb}=Math,Qb=(...t)=>{let[e,n,r]=J(t,"rgb");e/=255,n/=255,r/=255;let i;const s=Gb(e,n,r),l=(e+n+r)/3,a=l>0?1-s/l:0;return a===0?i=NaN:(i=(e-n+(e-r))/2,i/=Yb((e-n)*(e-n)+(e-r)*(n-r)),i=qb(i),r>n&&(i=Xe-i),i/=Xe),[i*360,a,l]};T.prototype.hsi=function(){return Qb(this._rgb)};Q.hsi=(...t)=>new T(...t,"hsi");q.format.hsi=$b;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsi"),X(t)==="array"&&t.length===3)return"hsi"}});T.prototype.hsl=function(){return Yc(this._rgb)};Q.hsl=(...t)=>new T(...t,"hsl");q.format.hsl=Li;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsl"),X(t)==="array"&&t.length===3)return"hsl"}});const{floor:Zb}=Math,Xb=(...t)=>{t=J(t,"hsv");let[e,n,r]=t,i,s,l;if(r*=255,n===0)i=s=l=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const a=Zb(e),o=e-a,u=r*(1-n),c=r*(1-n*o),d=r*(1-n*(1-o));switch(a){case 0:[i,s,l]=[r,d,u];break;case 1:[i,s,l]=[c,r,u];break;case 2:[i,s,l]=[u,r,d];break;case 3:[i,s,l]=[u,c,r];break;case 4:[i,s,l]=[d,u,r];break;case 5:[i,s,l]=[r,u,c];break}}return[i,s,l,t.length>3?t[3]:1]},{min:Jb,max:Kb}=Math,ey=(...t)=>{t=J(t,"rgb");let[e,n,r]=t;const i=Jb(e,n,r),s=Kb(e,n,r),l=s-i;let a,o,u;return u=s/255,s===0?(a=Number.NaN,o=0):(o=l/s,e===s&&(a=(n-r)/l),n===s&&(a=2+(r-e)/l),r===s&&(a=4+(e-n)/l),a*=60,a<0&&(a+=360)),[a,o,u]};T.prototype.hsv=function(){return ey(this._rgb)};Q.hsv=(...t)=>new T(...t,"hsv");q.format.hsv=Xb;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"hsv"),X(t)==="array"&&t.length===3)return"hsv"}});const xe={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},{pow:ty}=Math,nu=(...t)=>{t=J(t,"lab");const[e,n,r]=t;let i,s,l,a,o,u;return s=(e+16)/116,i=isNaN(n)?s:s+n/500,l=isNaN(r)?s:s-r/200,s=xe.Yn*oi(s),i=xe.Xn*oi(i),l=xe.Zn*oi(l),a=ai(3.2404542*i-1.5371385*s-.4985314*l),o=ai(-.969266*i+1.8760108*s+.041556*l),u=ai(.0556434*i-.2040259*s+1.0572252*l),[a,o,u,t.length>3?t[3]:1]},ai=t=>255*(t<=.00304?12.92*t:1.055*ty(t,1/2.4)-.055),oi=t=>t>xe.t1?t*t*t:xe.t2*(t-xe.t0),{pow:ru}=Math,iu=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=ny(e,n,r),a=116*s-16;return[a<0?0:a,500*(i-s),200*(s-l)]},ci=t=>(t/=255)<=.04045?t/12.92:ru((t+.055)/1.055,2.4),ui=t=>t>xe.t3?ru(t,1/3):t/xe.t2+xe.t0,ny=(t,e,n)=>{t=ci(t),e=ci(e),n=ci(n);const r=ui((.4124564*t+.3575761*e+.1804375*n)/xe.Xn),i=ui((.2126729*t+.7151522*e+.072175*n)/xe.Yn),s=ui((.0193339*t+.119192*e+.9503041*n)/xe.Zn);return[r,i,s]};T.prototype.lab=function(){return iu(this._rgb)};Q.lab=(...t)=>new T(...t,"lab");q.format.lab=nu;q.autodetect.push({p:2,test:(...t)=>{if(t=J(t,"lab"),X(t)==="array"&&t.length===3)return"lab"}});const{sin:ry,cos:iy}=Math,su=(...t)=>{let[e,n,r]=J(t,"lch");return isNaN(r)&&(r=0),r=r*Ob,[e,iy(r)*n,ry(r)*n]},lu=(...t)=>{t=J(t,"lch");const[e,n,r]=t,[i,s,l]=su(e,n,r),[a,o,u]=nu(i,s,l);return[a,o,u,t.length>3?t[3]:1]},sy=(...t)=>{const e=J(t,"hcl").reverse();return lu(...e)},{sqrt:ly,atan2:ay,round:oy}=Math,au=(...t)=>{const[e,n,r]=J(t,"lab"),i=ly(n*n+r*r);let s=(ay(r,n)*Nb+360)%360;return oy(i*1e4)===0&&(s=Number.NaN),[e,i,s]},ou=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=iu(e,n,r);return au(i,s,l)};T.prototype.lch=function(){return ou(this._rgb)};T.prototype.hcl=function(){return ou(this._rgb).reverse()};Q.lch=(...t)=>new T(...t,"lch");Q.hcl=(...t)=>new T(...t,"hcl");q.format.lch=lu;q.format.hcl=sy;["lch","hcl"].forEach(t=>q.autodetect.push({p:2,test:(...e)=>{if(e=J(e,t),X(e)==="array"&&e.length===3)return t}}));const nn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};T.prototype.name=function(){const t=tu(this._rgb,"rgb");for(let e of Object.keys(nn))if(nn[e]===t)return e.toLowerCase();return t};q.format.named=t=>{if(t=t.toLowerCase(),nn[t])return eu(nn[t]);throw new Error("unknown color name: "+t)};q.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&X(t)==="string"&&nn[t.toLowerCase()])return"named"}});const cy=t=>{if(X(t)=="number"&&t>=0&&t<=16777215){const e=t>>16,n=t>>8&255,r=t&255;return[e,n,r,1]}throw new Error("unknown num color: "+t)},uy=(...t)=>{const[e,n,r]=J(t,"rgb");return(e<<16)+(n<<8)+r};T.prototype.num=function(){return uy(this._rgb)};Q.num=(...t)=>new T(...t,"num");q.format.num=cy;q.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&X(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const{round:cu}=Math;T.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(cu)};T.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:cu(e):e)};Q.rgb=(...t)=>new T(...t,"rgb");q.format.rgb=(...t)=>{const e=J(t,"rgba");return e[3]===void 0&&(e[3]=1),e};q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"rgba"),X(t)==="array"&&(t.length===3||t.length===4&&X(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const{log:$n}=Math,uu=t=>{const e=t/100;let n,r,i;return e<66?(n=255,r=e<6?0:-155.25485562709179-.44596950469579133*(r=e-2)+104.49216199393888*$n(r),i=e<20?0:-254.76935184120902+.8274096064007395*(i=e-10)+115.67994401066147*$n(i)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*$n(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*$n(r),i=255),[n,r,i,1]},{round:dy}=Math,fy=(...t)=>{const e=J(t,"rgb"),n=e[0],r=e[2];let i=1e3,s=4e4;const l=.4;let a;for(;s-i>l;){a=(s+i)*.5;const o=uu(a);o[2]/o[0]>=r/n?s=a:i=a}return dy(a)};T.prototype.temp=T.prototype.kelvin=T.prototype.temperature=function(){return fy(this._rgb)};Q.temp=Q.kelvin=Q.temperature=(...t)=>new T(...t,"temp");q.format.temp=q.format.kelvin=q.format.temperature=uu;const{pow:Kn,sign:hy}=Math,du=(...t)=>{t=J(t,"lab");const[e,n,r]=t,i=Kn(e+.3963377774*n+.2158037573*r,3),s=Kn(e-.1055613458*n-.0638541728*r,3),l=Kn(e-.0894841775*n-1.291485548*r,3);return[255*di(4.0767416621*i-3.3077115913*s+.2309699292*l),255*di(-1.2684380046*i+2.6097574011*s-.3413193965*l),255*di(-.0041960863*i-.7034186147*s+1.707614701*l),t.length>3?t[3]:1]};function di(t){const e=Math.abs(t);return e>.0031308?(hy(t)||1)*(1.055*Kn(e,1/2.4)-.055):t*12.92}const{cbrt:fi,pow:gy,sign:py}=Math,fu=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=[hi(e/255),hi(n/255),hi(r/255)],a=fi(.4122214708*i+.5363325363*s+.0514459929*l),o=fi(.2119034982*i+.6806995451*s+.1073969566*l),u=fi(.0883024619*i+.2817188376*s+.6299787005*l);return[.2104542553*a+.793617785*o-.0040720468*u,1.9779984951*a-2.428592205*o+.4505937099*u,.0259040371*a+.7827717662*o-.808675766*u]};function hi(t){const e=Math.abs(t);return e<.04045?t/12.92:(py(t)||1)*gy((e+.055)/1.055,2.4)}T.prototype.oklab=function(){return fu(this._rgb)};Q.oklab=(...t)=>new T(...t,"oklab");q.format.oklab=du;q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"oklab"),X(t)==="array"&&t.length===3)return"oklab"}});const my=(...t)=>{t=J(t,"lch");const[e,n,r]=t,[i,s,l]=su(e,n,r),[a,o,u]=du(i,s,l);return[a,o,u,t.length>3?t[3]:1]},vy=(...t)=>{const[e,n,r]=J(t,"rgb"),[i,s,l]=fu(e,n,r);return au(i,s,l)};T.prototype.oklch=function(){return vy(this._rgb)};Q.oklch=(...t)=>new T(...t,"oklch");q.format.oklch=my;q.autodetect.push({p:3,test:(...t)=>{if(t=J(t,"oklch"),X(t)==="array"&&t.length===3)return"oklch"}});T.prototype.alpha=function(t,e=!1){return t!==void 0&&X(t)==="number"?e?(this._rgb[3]=t,this):new T([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]};T.prototype.clipped=function(){return this._rgb._clipped||!1};T.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=xe.Kn*t,new T(n,"lab").alpha(e.alpha(),!0)};T.prototype.brighten=function(t=1){return this.darken(-t)};T.prototype.darker=T.prototype.darken;T.prototype.brighter=T.prototype.brighten;T.prototype.get=function(t){const[e,n]=t.split("."),r=this[e]();if(n){const i=e.indexOf(n)-(e.substr(0,2)==="ok"?2:0);if(i>-1)return r[i];throw new Error(`unknown channel ${n} in mode ${e}`)}else return r};const{pow:by}=Math,yy=1e-7,Sy=20;T.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&X(t)==="number"){if(t===0)return new T([0,0,0,this._rgb[3]],"rgb");if(t===1)return new T([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=Sy;const i=(l,a)=>{const o=l.interpolate(a,.5,e),u=o.luminance();return Math.abs(t-u)<yy||!r--?o:u>t?i(l,o):i(o,a)},s=(n>t?i(new T([0,0,0]),this):i(this,new T([255,255,255]))).rgb();return new T([...s,this._rgb[3]])}return Ey(...this._rgb.slice(0,3))};const Ey=(t,e,n)=>(t=gi(t),e=gi(e),n=gi(n),.2126*t+.7152*e+.0722*n),gi=t=>(t/=255,t<=.03928?t/12.92:by((t+.055)/1.055,2.4)),we={},bn=(t,e,n=.5,...r)=>{let i=r[0]||"lrgb";if(!we[i]&&!r.length&&(i=Object.keys(we)[0]),!we[i])throw new Error(`interpolation mode ${i} is not defined`);return X(t)!=="object"&&(t=new T(t)),X(e)!=="object"&&(e=new T(e)),we[i](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};T.prototype.mix=T.prototype.interpolate=function(t,e=.5,...n){return bn(this,t,e,...n)};T.prototype.premultiply=function(t=!1){const e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new T([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};T.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=xe.Kn*t,n[1]<0&&(n[1]=0),new T(n,"lch").alpha(e.alpha(),!0)};T.prototype.desaturate=function(t=1){return this.saturate(-t)};T.prototype.set=function(t,e,n=!1){const[r,i]=t.split("."),s=this[r]();if(i){const l=r.indexOf(i)-(r.substr(0,2)==="ok"?2:0);if(l>-1){if(X(e)=="string")switch(e.charAt(0)){case"+":s[l]+=+e;break;case"-":s[l]+=+e;break;case"*":s[l]*=+e.substr(1);break;case"/":s[l]/=+e.substr(1);break;default:s[l]=+e}else if(X(e)==="number")s[l]=e;else throw new Error("unsupported value for Color.set");const a=new T(s,r);return n?(this._rgb=a._rgb,this):a}throw new Error(`unknown channel ${i} in mode ${r}`)}else return s};T.prototype.tint=function(t=.5,...e){return bn(this,"white",t,...e)};T.prototype.shade=function(t=.5,...e){return bn(this,"black",t,...e)};const wy=(t,e,n)=>{const r=t._rgb,i=e._rgb;return new T(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};we.rgb=wy;const{sqrt:pi,pow:Ut}=Math,Ay=(t,e,n)=>{const[r,i,s]=t._rgb,[l,a,o]=e._rgb;return new T(pi(Ut(r,2)*(1-n)+Ut(l,2)*n),pi(Ut(i,2)*(1-n)+Ut(a,2)*n),pi(Ut(s,2)*(1-n)+Ut(o,2)*n),"rgb")};we.lrgb=Ay;const Cy=(t,e,n)=>{const r=t.lab(),i=e.lab();return new T(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};we.lab=Cy;const an=(t,e,n,r)=>{let i,s;r==="hsl"?(i=t.hsl(),s=e.hsl()):r==="hsv"?(i=t.hsv(),s=e.hsv()):r==="hcg"?(i=t.hcg(),s=e.hcg()):r==="hsi"?(i=t.hsi(),s=e.hsi()):r==="lch"||r==="hcl"?(r="hcl",i=t.hcl(),s=e.hcl()):r==="oklch"&&(i=t.oklch().reverse(),s=e.oklch().reverse());let l,a,o,u,c,d;(r.substr(0,1)==="h"||r==="oklch")&&([l,o,c]=i,[a,u,d]=s);let h,f,g,m;return!isNaN(l)&&!isNaN(a)?(a>l&&a-l>180?m=a-(l+360):a<l&&l-a>180?m=a+360-l:m=a-l,f=l+n*m):isNaN(l)?isNaN(a)?f=Number.NaN:(f=a,(c==1||c==0)&&r!="hsv"&&(h=u)):(f=l,(d==1||d==0)&&r!="hsv"&&(h=o)),h===void 0&&(h=o+n*(u-o)),g=c+n*(d-c),r==="oklch"?new T([g,h,f],r):new T([f,h,g],r)},hu=(t,e,n)=>an(t,e,n,"lch");we.lch=hu;we.hcl=hu;const Dy=(t,e,n)=>{const r=t.num(),i=e.num();return new T(r+n*(i-r),"num")};we.num=Dy;const _y=(t,e,n)=>an(t,e,n,"hcg");we.hcg=_y;const Ry=(t,e,n)=>an(t,e,n,"hsi");we.hsi=Ry;const ky=(t,e,n)=>an(t,e,n,"hsl");we.hsl=ky;const Ty=(t,e,n)=>an(t,e,n,"hsv");we.hsv=Ty;const xy=(t,e,n)=>{const r=t.oklab(),i=e.oklab();return new T(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"oklab")};we.oklab=xy;const My=(t,e,n)=>an(t,e,n,"oklch");we.oklch=My;const{pow:mi,sqrt:vi,PI:bi,cos:na,sin:ra,atan2:Iy}=Math,Oy=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const i=r/n.reduce(function(d,h){return d+h});if(n.forEach((d,h)=>{n[h]*=i}),t=t.map(d=>new T(d)),e==="lrgb")return Ny(t,n);const s=t.shift(),l=s.get(e),a=[];let o=0,u=0;for(let d=0;d<l.length;d++)if(l[d]=(l[d]||0)*n[0],a.push(isNaN(l[d])?0:n[0]),e.charAt(d)==="h"&&!isNaN(l[d])){const h=l[d]/180*bi;o+=na(h)*n[0],u+=ra(h)*n[0]}let c=s.alpha()*n[0];t.forEach((d,h)=>{const f=d.get(e);c+=d.alpha()*n[h+1];for(let g=0;g<l.length;g++)if(!isNaN(f[g]))if(a[g]+=n[h+1],e.charAt(g)==="h"){const m=f[g]/180*bi;o+=na(m)*n[h+1],u+=ra(m)*n[h+1]}else l[g]+=f[g]*n[h+1]});for(let d=0;d<l.length;d++)if(e.charAt(d)==="h"){let h=Iy(u/a[d],o/a[d])/bi*180;for(;h<0;)h+=360;for(;h>=360;)h-=360;l[d]=h}else l[d]=l[d]/a[d];return c/=r,new T(l,e).alpha(c>.99999?1:c,!0)},Ny=(t,e)=>{const n=t.length,r=[0,0,0,0];for(let i=0;i<t.length;i++){const s=t[i],l=e[i]/n,a=s._rgb;r[0]+=mi(a[0],2)*l,r[1]+=mi(a[1],2)*l,r[2]+=mi(a[2],2)*l,r[3]+=a[3]*l}return r[0]=vi(r[0]),r[1]=vi(r[1]),r[2]=vi(r[2]),r[3]>.9999999&&(r[3]=1),new T(Ps(r))},{pow:Py}=Math;function Sr(t){let e="rgb",n=Q("#ccc"),r=0,i=[0,1],s=[],l=[0,0],a=!1,o=[],u=!1,c=0,d=1,h=!1,f={},g=!0,m=1;const p=function(y){if(y=y||["#fff","#000"],y&&X(y)==="string"&&Q.brewer&&Q.brewer[y.toLowerCase()]&&(y=Q.brewer[y.toLowerCase()]),X(y)==="array"){y.length===1&&(y=[y[0],y[0]]),y=y.slice(0);for(let A=0;A<y.length;A++)y[A]=Q(y[A]);s.length=0;for(let A=0;A<y.length;A++)s.push(A/(y.length-1))}return k(),o=y},b=function(y){if(a!=null){const A=a.length-1;let H=0;for(;H<A&&y>=a[H];)H++;return H-1}return 0};let S=y=>y,C=y=>y;const D=function(y,A){let H,x;if(A==null&&(A=!1),isNaN(y)||y===null)return n;A?x=y:a&&a.length>2?x=b(y)/(a.length-2):d!==c?x=(y-c)/(d-c):x=1,x=C(x),A||(x=S(x)),m!==1&&(x=Py(x,m)),x=l[0]+x*(1-l[0]-l[1]),x=Xt(x,0,1);const I=Math.floor(x*1e4);if(g&&f[I])H=f[I];else{if(X(o)==="array")for(let N=0;N<s.length;N++){const Y=s[N];if(x<=Y){H=o[N];break}if(x>=Y&&N===s.length-1){H=o[N];break}if(x>Y&&x<s[N+1]){x=(x-Y)/(s[N+1]-Y),H=Q.interpolate(o[N],o[N+1],x,e);break}}else X(o)==="function"&&(H=o(x));g&&(f[I]=H)}return H};var k=()=>f={};p(t);const E=function(y){const A=Q(D(y));return u&&A[u]?A[u]():A};return E.classes=function(y){if(y!=null){if(X(y)==="array")a=y,i=[y[0],y[y.length-1]];else{const A=Q.analyze(i);y===0?a=[A.min,A.max]:a=Q.limits(A,"e",y)}return E}return a},E.domain=function(y){if(!arguments.length)return i;c=y[0],d=y[y.length-1],s=[];const A=o.length;if(y.length===A&&c!==d)for(let H of Array.from(y))s.push((H-c)/(d-c));else{for(let H=0;H<A;H++)s.push(H/(A-1));if(y.length>2){const H=y.map((I,N)=>N/(y.length-1)),x=y.map(I=>(I-c)/(d-c));x.every((I,N)=>H[N]===I)||(C=I=>{if(I<=0||I>=1)return I;let N=0;for(;I>=x[N+1];)N++;const Y=(I-x[N])/(x[N+1]-x[N]);return H[N]+Y*(H[N+1]-H[N])})}}return i=[c,d],E},E.mode=function(y){return arguments.length?(e=y,k(),E):e},E.range=function(y,A){return p(y),E},E.out=function(y){return u=y,E},E.spread=function(y){return arguments.length?(r=y,E):r},E.correctLightness=function(y){return y==null&&(y=!0),h=y,k(),h?S=function(A){const H=D(0,!0).lab()[0],x=D(1,!0).lab()[0],I=H>x;let N=D(A,!0).lab()[0];const Y=H+(x-H)*A;let L=N-Y,P=0,O=1,V=20;for(;Math.abs(L)>.01&&V-- >0;)(function(){return I&&(L*=-1),L<0?(P=A,A+=(O-A)*.5):(O=A,A+=(P-A)*.5),N=D(A,!0).lab()[0],L=N-Y})();return A}:S=A=>A,E},E.padding=function(y){return y!=null?(X(y)==="number"&&(y=[y,y]),l=y,E):l},E.colors=function(y,A){arguments.length<2&&(A="hex");let H=[];if(arguments.length===0)H=o.slice(0);else if(y===1)H=[E(.5)];else if(y>1){const x=i[0],I=i[1]-x;H=Hy(0,y).map(N=>E(x+N/(y-1)*I))}else{t=[];let x=[];if(a&&a.length>2)for(let I=1,N=a.length,Y=1<=N;Y?I<N:I>N;Y?I++:I--)x.push((a[I-1]+a[I])*.5);else x=i;H=x.map(I=>E(I))}return Q[A]&&(H=H.map(x=>x[A]())),H},E.cache=function(y){return y!=null?(g=y,E):g},E.gamma=function(y){return y!=null?(m=y,E):m},E.nodata=function(y){return y!=null?(n=Q(y),E):n},E}function Hy(t,e,n){let r=[],i=t<e,s=e;for(let l=t;i?l<s:l>s;i?l++:l--)r.push(l);return r}const By=function(t){let e=[1,1];for(let n=1;n<t;n++){let r=[1];for(let i=1;i<=e.length;i++)r[i]=(e[i]||0)+e[i-1];e=r}return e},Ly=function(t){let e,n,r,i;if(t=t.map(s=>new T(s)),t.length===2)[n,r]=t.map(s=>s.lab()),e=function(s){const l=[0,1,2].map(a=>n[a]+s*(r[a]-n[a]));return new T(l,"lab")};else if(t.length===3)[n,r,i]=t.map(s=>s.lab()),e=function(s){const l=[0,1,2].map(a=>(1-s)*(1-s)*n[a]+2*(1-s)*s*r[a]+s*s*i[a]);return new T(l,"lab")};else if(t.length===4){let s;[n,r,i,s]=t.map(l=>l.lab()),e=function(l){const a=[0,1,2].map(o=>(1-l)*(1-l)*(1-l)*n[o]+3*(1-l)*(1-l)*l*r[o]+3*(1-l)*l*l*i[o]+l*l*l*s[o]);return new T(a,"lab")}}else if(t.length>=5){let s,l,a;s=t.map(o=>o.lab()),a=t.length-1,l=By(a),e=function(o){const u=1-o,c=[0,1,2].map(d=>s.reduce((h,f,g)=>h+l[g]*u**(a-g)*o**g*f[d],0));return new T(c,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},Vy=t=>{const e=Ly(t);return e.scale=()=>Sr(e),e},Ue=(t,e,n)=>{if(!Ue[n])throw new Error("unknown blend mode "+n);return Ue[n](t,e)},Dt=t=>(e,n)=>{const r=Q(n).rgb(),i=Q(e).rgb();return Q.rgb(t(r,i))},_t=t=>(e,n)=>{const r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r},jy=t=>t,Fy=(t,e)=>t*e/255,zy=(t,e)=>t>e?e:t,Uy=(t,e)=>t>e?t:e,Wy=(t,e)=>255*(1-(1-t/255)*(1-e/255)),$y=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),Gy=(t,e)=>255*(1-(1-e/255)/(t/255)),Yy=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);Ue.normal=Dt(_t(jy));Ue.multiply=Dt(_t(Fy));Ue.screen=Dt(_t(Wy));Ue.overlay=Dt(_t($y));Ue.darken=Dt(_t(zy));Ue.lighten=Dt(_t(Uy));Ue.dodge=Dt(_t(Yy));Ue.burn=Dt(_t(Gy));const{pow:qy,sin:Qy,cos:Zy}=Math;function Xy(t=300,e=-1.5,n=1,r=1,i=[0,1]){let s=0,l;X(i)==="array"?l=i[1]-i[0]:(l=0,i=[i,i]);const a=function(o){const u=Xe*((t+120)/360+e*o),c=qy(i[0]+l*o,r),h=(s!==0?n[0]+o*s:n)*c*(1-c)/2,f=Zy(u),g=Qy(u),m=c+h*(-.14861*f+1.78277*g),p=c+h*(-.29227*f-.90649*g),b=c+h*(1.97294*f);return Q(Ps([m*255,p*255,b*255,1]))};return a.start=function(o){return o==null?t:(t=o,a)},a.rotations=function(o){return o==null?e:(e=o,a)},a.gamma=function(o){return o==null?r:(r=o,a)},a.hue=function(o){return o==null?n:(n=o,X(n)==="array"?(s=n[1]-n[0],s===0&&(n=n[1])):s=0,a)},a.lightness=function(o){return o==null?i:(X(o)==="array"?(i=o,l=o[1]-o[0]):(i=[o,o],l=0),a)},a.scale=()=>Q.scale(a),a.hue(n),a}const Jy="0123456789abcdef",{floor:Ky,random:e0}=Math,t0=()=>{let t="#";for(let e=0;e<6;e++)t+=Jy.charAt(Ky(e0()*16));return new T(t,"hex")},{log:ia,pow:n0,floor:r0,abs:i0}=Math;function gu(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return X(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&X(r)==="object"&&(r=r[e]),r!=null&&!isNaN(r)&&(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(r,i)=>pu(n,r,i),n}function pu(t,e="equal",n=7){X(t)=="array"&&(t=gu(t));const{min:r,max:i}=t,s=t.values.sort((a,o)=>a-o);if(n===1)return[r,i];const l=[];if(e.substr(0,1)==="c"&&(l.push(r),l.push(i)),e.substr(0,1)==="e"){l.push(r);for(let a=1;a<n;a++)l.push(r+a/n*(i-r));l.push(i)}else if(e.substr(0,1)==="l"){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const a=Math.LOG10E*ia(r),o=Math.LOG10E*ia(i);l.push(r);for(let u=1;u<n;u++)l.push(n0(10,a+u/n*(o-a)));l.push(i)}else if(e.substr(0,1)==="q"){l.push(r);for(let a=1;a<n;a++){const o=(s.length-1)*a/n,u=r0(o);if(u===o)l.push(s[u]);else{const c=o-u;l.push(s[u]*(1-c)+s[u+1]*c)}}l.push(i)}else if(e.substr(0,1)==="k"){let a;const o=s.length,u=new Array(o),c=new Array(n);let d=!0,h=0,f=null;f=[],f.push(r);for(let p=1;p<n;p++)f.push(r+p/n*(i-r));for(f.push(i);d;){for(let b=0;b<n;b++)c[b]=0;for(let b=0;b<o;b++){const S=s[b];let C=Number.MAX_VALUE,D;for(let k=0;k<n;k++){const E=i0(f[k]-S);E<C&&(C=E,D=k),c[D]++,u[b]=D}}const p=new Array(n);for(let b=0;b<n;b++)p[b]=null;for(let b=0;b<o;b++)a=u[b],p[a]===null?p[a]=s[b]:p[a]+=s[b];for(let b=0;b<n;b++)p[b]*=1/c[b];d=!1;for(let b=0;b<n;b++)if(p[b]!==f[b]){d=!0;break}f=p,h++,h>200&&(d=!1)}const g={};for(let p=0;p<n;p++)g[p]=[];for(let p=0;p<o;p++)a=u[p],g[a].push(s[p]);let m=[];for(let p=0;p<n;p++)m.push(g[p][0]),m.push(g[p][g[p].length-1]);m=m.sort((p,b)=>p-b),l.push(m[0]);for(let p=1;p<m.length;p+=2){const b=m[p];!isNaN(b)&&l.indexOf(b)===-1&&l.push(b)}}return l}const s0=(t,e)=>{t=new T(t),e=new T(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},{sqrt:Ze,pow:de,min:l0,max:a0,atan2:sa,abs:la,cos:Gn,sin:aa,exp:o0,PI:oa}=Math;function c0(t,e,n=1,r=1,i=1){var s=function(te){return 360*te/(2*oa)},l=function(te){return 2*oa*te/360};t=new T(t),e=new T(e);const[a,o,u]=Array.from(t.lab()),[c,d,h]=Array.from(e.lab()),f=(a+c)/2,g=Ze(de(o,2)+de(u,2)),m=Ze(de(d,2)+de(h,2)),p=(g+m)/2,b=.5*(1-Ze(de(p,7)/(de(p,7)+de(25,7)))),S=o*(1+b),C=d*(1+b),D=Ze(de(S,2)+de(u,2)),k=Ze(de(C,2)+de(h,2)),E=(D+k)/2,y=s(sa(u,S)),A=s(sa(h,C)),H=y>=0?y:y+360,x=A>=0?A:A+360,I=la(H-x)>180?(H+x+360)/2:(H+x)/2,N=1-.17*Gn(l(I-30))+.24*Gn(l(2*I))+.32*Gn(l(3*I+6))-.2*Gn(l(4*I-63));let Y=x-H;Y=la(Y)<=180?Y:x<=H?Y+360:Y-360,Y=2*Ze(D*k)*aa(l(Y)/2);const L=c-a,P=k-D,O=1+.015*de(f-50,2)/Ze(20+de(f-50,2)),V=1+.045*E,B=1+.015*E*N,G=30*o0(-de((I-275)/25,2)),R=-(2*Ze(de(E,7)/(de(E,7)+de(25,7))))*aa(2*l(G)),W=Ze(de(L/(n*O),2)+de(P/(r*V),2)+de(Y/(i*B),2)+R*(P/(r*V))*(Y/(i*B)));return a0(0,l0(100,W))}function u0(t,e,n="lab"){t=new T(t),e=new T(e);const r=t.get(n),i=e.get(n);let s=0;for(let l in r){const a=(r[l]||0)-(i[l]||0);s+=a*a}return Math.sqrt(s)}const d0=(...t)=>{try{return new T(...t),!0}catch{return!1}},f0={cool(){return Sr([Q.hsl(180,1,.9),Q.hsl(250,.7,.4)])},hot(){return Sr(["#000","#f00","#ff0","#fff"]).mode("rgb")}},er={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]};for(let t of Object.keys(er))er[t.toLowerCase()]=er[t];Object.assign(Q,{average:Oy,bezier:Vy,blend:Ue,cubehelix:Xy,mix:bn,interpolate:bn,random:t0,scale:Sr,analyze:gu,contrast:s0,deltaE:c0,distance:u0,limits:pu,valid:d0,scales:f0,input:q,colors:nn,brewer:er});const Lt=ie(new Date().getTime()),h0=Ib(me),{config:ca,color:ft,mainDataset:Vi,startDateField:Rt,endDateField:kt,dateField:ua,labelField:da,layout:fa}=at(),g0=On(async()=>{if(ft.type!=="multicolor")return;const t={};if(ft.colors.type==="palette"){const e=await Ne(`${Vi.href}/values/${ft.field}?size=100`),n=Math.max(e.length,12),r=Q.scale(ft.colors.name).mode("lch").colors(n);e.forEach((i,s)=>{t[i]=r[(s+ft.colors.offset)%n]})}else ft.colors.categories.forEach(e=>{t[e.value]=`${e.color}`});return t},null,{onError:function(t){rt.value=!0,it.value=t.message}}),p0=On(async()=>{if(!me.start&&!me.end)return[];const t={...h0,_c_date_match:me.start+","+me.end,size:1e3,select:"_id,"+da};return fa!=="simple"?t.t=Lt.value:t.finalizedAt=Vi.finalizedAt,ft.type==="multicolor"&&(t.select+=","+ca.color.field),Rt&&kt?t.select+=","+Rt+","+kt:t.select+=","+ua,(await Ne(`${Vi.href}/lines`,{params:t})).results.map(n=>({editable:fa==="admin",id:n._id,title:n[da],colorFieldValue:ft.type==="multicolor"&&n[ca.color.field],start:n[Rt&&kt?Rt:ua],end:Rt&&kt?n[kt]:void 0,allDay:!(Rt&&kt)||new Date(n[kt]).getTime()-new Date(n[Rt]).getTime()>2*24*60*60*1e3}))},null,{onError:function(t){rt.value=!0,it.value=t.message}});var mu={exports:{}};(function(t,e){(function(n,r){t.exports=r()})($u,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",l="second",a="minute",o="hour",u="day",c="week",d="month",h="quarter",f="year",g="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var P=["th","st","nd","rd"],O=L%100;return"["+L+(P[(O-20)%10]||P[O]||P[0])+"]"}},C=function(L,P,O){var V=String(L);return!V||V.length>=P?L:""+Array(P+1-V.length).join(O)+L},D={s:C,z:function(L){var P=-L.utcOffset(),O=Math.abs(P),V=Math.floor(O/60),B=O%60;return(P<=0?"+":"-")+C(V,2,"0")+":"+C(B,2,"0")},m:function L(P,O){if(P.date()<O.date())return-L(O,P);var V=12*(O.year()-P.year())+(O.month()-P.month()),B=P.clone().add(V,d),G=O-B<0,M=P.clone().add(V+(G?-1:1),d);return+(-(V+(O-B)/(G?B-M:M-B))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:d,y:f,w:c,d:u,D:g,h:o,m:a,s:l,ms:s,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},k="en",E={};E[k]=S;var y="$isDayjsObject",A=function(L){return L instanceof N||!(!L||!L[y])},H=function L(P,O,V){var B;if(!P)return k;if(typeof P=="string"){var G=P.toLowerCase();E[G]&&(B=G),O&&(E[G]=O,B=G);var M=P.split("-");if(!B&&M.length>1)return L(M[0])}else{var R=P.name;E[R]=P,B=R}return!V&&B&&(k=B),B||!V&&k},x=function(L,P){if(A(L))return L.clone();var O=typeof P=="object"?P:{};return O.date=L,O.args=arguments,new N(O)},I=D;I.l=H,I.i=A,I.w=function(L,P){return x(L,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var N=function(){function L(O){this.$L=H(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[y]=!0}var P=L.prototype;return P.parse=function(O){this.$d=function(V){var B=V.date,G=V.utc;if(B===null)return new Date(NaN);if(I.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var M=B.match(p);if(M){var R=M[2]-1||0,W=(M[7]||"0").substring(0,3);return G?new Date(Date.UTC(M[1],R,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)):new Date(M[1],R,M[3]||1,M[4]||0,M[5]||0,M[6]||0,W)}}return new Date(B)}(O),this.init()},P.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},P.$utils=function(){return I},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function(O,V){var B=x(O);return this.startOf(V)<=B&&B<=this.endOf(V)},P.isAfter=function(O,V){return x(O)<this.startOf(V)},P.isBefore=function(O,V){return this.endOf(V)<x(O)},P.$g=function(O,V,B){return I.u(O)?this[V]:this.set(B,O)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(O,V){var B=this,G=!!I.u(V)||V,M=I.p(O),R=function(he,ke){var dt=I.w(B.$u?Date.UTC(B.$y,ke,he):new Date(B.$y,ke,he),B);return G?dt:dt.endOf(u)},W=function(he,ke){return I.w(B.toDate()[he].apply(B.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ke)),B)},te=this.$W,le=this.$M,pe=this.$D,Qe="set"+(this.$u?"UTC":"");switch(M){case f:return G?R(1,0):R(31,11);case d:return G?R(1,le):R(0,le+1);case c:var Ve=this.$locale().weekStart||0,ut=(te<Ve?te+7:te)-Ve;return R(G?pe-ut:pe+(6-ut),le);case u:case g:return W(Qe+"Hours",0);case o:return W(Qe+"Minutes",1);case a:return W(Qe+"Seconds",2);case l:return W(Qe+"Milliseconds",3);default:return this.clone()}},P.endOf=function(O){return this.startOf(O,!1)},P.$set=function(O,V){var B,G=I.p(O),M="set"+(this.$u?"UTC":""),R=(B={},B[u]=M+"Date",B[g]=M+"Date",B[d]=M+"Month",B[f]=M+"FullYear",B[o]=M+"Hours",B[a]=M+"Minutes",B[l]=M+"Seconds",B[s]=M+"Milliseconds",B)[G],W=G===u?this.$D+(V-this.$W):V;if(G===d||G===f){var te=this.clone().set(g,1);te.$d[R](W),te.init(),this.$d=te.set(g,Math.min(this.$D,te.daysInMonth())).$d}else R&&this.$d[R](W);return this.init(),this},P.set=function(O,V){return this.clone().$set(O,V)},P.get=function(O){return this[I.p(O)]()},P.add=function(O,V){var B,G=this;O=Number(O);var M=I.p(V),R=function(le){var pe=x(G);return I.w(pe.date(pe.date()+Math.round(le*O)),G)};if(M===d)return this.set(d,this.$M+O);if(M===f)return this.set(f,this.$y+O);if(M===u)return R(1);if(M===c)return R(7);var W=(B={},B[a]=r,B[o]=i,B[l]=n,B)[M]||1,te=this.$d.getTime()+O*W;return I.w(te,this)},P.subtract=function(O,V){return this.add(-1*O,V)},P.format=function(O){var V=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var G=O||"YYYY-MM-DDTHH:mm:ssZ",M=I.z(this),R=this.$H,W=this.$m,te=this.$M,le=B.weekdays,pe=B.months,Qe=B.meridiem,Ve=function(ke,dt,on,Nn){return ke&&(ke[dt]||ke(V,G))||on[dt].slice(0,Nn)},ut=function(ke){return I.s(R%12||12,ke,"0")},he=Qe||function(ke,dt,on){var Nn=ke<12?"AM":"PM";return on?Nn.toLowerCase():Nn};return G.replace(b,function(ke,dt){return dt||function(on){switch(on){case"YY":return String(V.$y).slice(-2);case"YYYY":return I.s(V.$y,4,"0");case"M":return te+1;case"MM":return I.s(te+1,2,"0");case"MMM":return Ve(B.monthsShort,te,pe,3);case"MMMM":return Ve(pe,te);case"D":return V.$D;case"DD":return I.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return Ve(B.weekdaysMin,V.$W,le,2);case"ddd":return Ve(B.weekdaysShort,V.$W,le,3);case"dddd":return le[V.$W];case"H":return String(R);case"HH":return I.s(R,2,"0");case"h":return ut(1);case"hh":return ut(2);case"a":return he(R,W,!0);case"A":return he(R,W,!1);case"m":return String(W);case"mm":return I.s(W,2,"0");case"s":return String(V.$s);case"ss":return I.s(V.$s,2,"0");case"SSS":return I.s(V.$ms,3,"0");case"Z":return M}return null}(ke)||M.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(O,V,B){var G,M=this,R=I.p(V),W=x(O),te=(W.utcOffset()-this.utcOffset())*r,le=this-W,pe=function(){return I.m(M,W)};switch(R){case f:G=pe()/12;break;case d:G=pe();break;case h:G=pe()/3;break;case c:G=(le-te)/6048e5;break;case u:G=(le-te)/864e5;break;case o:G=le/i;break;case a:G=le/r;break;case l:G=le/n;break;default:G=le}return B?G:I.a(G)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return E[this.$L]},P.locale=function(O,V){if(!O)return this.$L;var B=this.clone(),G=H(O,V,!0);return G&&(B.$L=G),B},P.clone=function(){return I.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},L}(),Y=N.prototype;return x.prototype=Y,[["$ms",s],["$s",l],["$m",a],["$H",o],["$W",u],["$M",d],["$y",f],["$D",g]].forEach(function(L){Y[L[1]]=function(P){return this.$g(P,L[0],L[1])}}),x.extend=function(L,P){return L.$i||(L(P,N,x),L.$i=!0),x},x.locale=H,x.isDayjs=A,x.unix=function(L){return x(1e3*L)},x.en=E[k],x.Ls=E,x.p={},x})})(mu);var m0=mu.exports;const ha=xa(m0);function ga(t,e){var r;const n=t[e.key];return n==null||n===""?"":(r=e["x-labels"])!=null&&r[""+t[e.key]]?e["x-labels"][""+t[e.key]]:e.type==="number"||e.type==="integer"?n.toLocaleString("fr"):typeof n=="boolean"?n?"Oui":"Non":typeof n=="string"&&(e["x-refersTo"]==="http://schema.org/Date"||e["x-refersTo"]==="https://schema.org/startDate"||e["x-refersTo"]==="https://schema.org/endDate"||e["x-refersTo"]==="http://schema.org/dateCreated")?e.format==="date-time"?ha(n).format("DD/MM/YYYY, HH[h]mm"):ha(n).format("DD/MM/YYYY"):""+n}const rn=Ya("v-spacer","div","VSpacer"),v0=Ae({id:String,text:String,...Er(Xa({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),vu=Re()({name:"VTooltip",props:v0(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=Yt(t,"modelValue"),{scopeId:i}=Ja(),s=Wi(),l=F(()=>t.id||`v-tooltip-${s}`),a=ie(),o=F(()=>t.location.split(" ").length>1?t.location:t.location+" center"),u=F(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),c=F(()=>t.transition?t.transition:r.value?"scale-transition":"fade-transition"),d=F(()=>Me({"aria-describedby":l.value},t.activatorProps));return Ye(()=>{const h=sr.filterProps(t);return _(sr,Me({ref:a,class:["v-tooltip",t.class],style:t.style,id:l.value},h,{modelValue:r.value,"onUpdate:modelValue":f=>r.value=f,transition:c.value,absolute:!0,location:o.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},i),{activator:n.activator,default:function(){var p;for(var f=arguments.length,g=new Array(f),m=0;m<f;m++)g[m]=arguments[m];return((p=n.default)==null?void 0:p.call(n,...g))??t.text}})}),Ka({},a)}}),b0={__name:"Actions",props:{item:{type:Object,required:!0}},setup(t){const{linkField:e,attachmentField:n,mainDataset:r}=at();function i(s){const l=["Octets","Ko","Mo","Go"];if(s===0)return"0 Octet";const a=parseInt(Math.floor(Math.log(s)/Math.log(1e3)));return a===0?`${s} ${l[a]}`:`${(s/1e3**a).toFixed(2)} ${l[a]}`}return(s,l)=>(Z(),ae(_n,null,{default:$(()=>[_(rn),j(e)&&t.item[j(e)]?(Z(),ae(Le,{key:0,href:(t.item[j(e)].includes("http")?"":"http://")+t.item[j(e)],text:"",small:"",target:"_blank",class:"px-6",color:"primary"},{default:$(()=>[fe(" Page associée ")]),_:1},8,["href"])):ve("",!0),j(n)?(Z(),ae(vu,{key:1,top:""},{activator:$(({props:a})=>[_(Le,Me({href:t.item[j(n)].includes("http")?t.item[j(n)]:j(r).href+"/attachments/"+t.item[j(n)],color:"accent",icon:""},a),{default:$(()=>[_(Ke,null,{default:$(()=>[fe("mdi-download")]),_:1})]),_:2},1040,["href"])]),default:$(()=>[tr("span",null,"Télécharger le fichier de "+je(i(t.item["_file.content_length"])),1)]),_:1})):ve("",!0),_(rn)]),_:1}))}},y0=Ae({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function Be(t,e,n){return Re()({name:t,props:y0({mode:n,origin:e}),setup(r,i){let{slots:s}=i;const l={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:o,offsetLeft:u,offsetWidth:c,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${o}px`,a.style.left=`${u}px`,a.style.width=`${c}px`,a.style.height=`${d}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:o,top:u,left:c,width:d,height:h}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=o||"",a.style.top=u||"",a.style.left=c||"",a.style.width=d||"",a.style.height=h||""}}};return()=>{const a=r.group?Ma:nr;return It(a,{name:r.disabled?"":t,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:l},s.default)}}})}function bu(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Re()({name:t,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,i){let{slots:s}=i;const l=r.group?Ma:nr;return()=>It(l,{name:r.disabled?"":t,css:!r.disabled,...r.disabled?{}:e},s.default)}})}function yu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=Gu(`offset-${n}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[n]:l.style[n]}},onEnter(l){const a=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const o=`${l[r]}px`;l.style[n]="0",l.offsetHeight,l.style.transition=a.transition,t&&l._parent&&l._parent.classList.add(t),requestAnimationFrame(()=>{l.style[n]=o})},onAfterEnter:s,onEnterCancelled:s,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[n]:l.style[n]},l.style.overflow="hidden",l.style[n]=`${l[r]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(l){t&&l._parent&&l._parent.classList.remove(t),s(l)}function s(l){const a=l._initialStyle[n];l.style.overflow=l._initialStyle.overflow,a!=null&&(l.style[n]=a),delete l._initialStyle}}const S0=Ae({target:[Object,Array]},"v-dialog-transition"),E0=Re()({name:"VDialogTransition",props:S0(),setup(t,e){let{slots:n}=e;const r={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,s){var h;await new Promise(f=>requestAnimationFrame(f)),await new Promise(f=>requestAnimationFrame(f)),i.style.visibility="";const{x:l,y:a,sx:o,sy:u,speed:c}=ma(t.target,i),d=Pn(i,[{transform:`translate(${l}px, ${a}px) scale(${o}, ${u})`,opacity:0},{}],{duration:225*c,easing:bd});(h=pa(i))==null||h.forEach(f=>{Pn(f,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:Qs})}),d.finished.then(()=>s())},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,s){var h;await new Promise(f=>requestAnimationFrame(f));const{x:l,y:a,sx:o,sy:u,speed:c}=ma(t.target,i);Pn(i,[{},{transform:`translate(${l}px, ${a}px) scale(${o}, ${u})`,opacity:0}],{duration:125*c,easing:yd}).finished.then(()=>s()),(h=pa(i))==null||h.forEach(f=>{Pn(f,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:Qs})})},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>t.target?_(nr,Me({name:"dialog-transition"},r,{css:!1}),n):_(nr,{name:"dialog-transition"},n)}});function pa(t){var n;const e=(n=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return e&&[...e]}function ma(t,e){const n=Sd(t),r=Ed(e),[i,s]=getComputedStyle(e).transformOrigin.split(" ").map(b=>parseFloat(b)),[l,a]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let o=n.left+n.width/2;l==="left"||a==="left"?o-=n.width/2:(l==="right"||a==="right")&&(o+=n.width/2);let u=n.top+n.height/2;l==="top"||a==="top"?u-=n.height/2:(l==="bottom"||a==="bottom")&&(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,h=Math.max(1,c,d),f=c/h||0,g=d/h||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),p=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:o-(i+r.left),y:u-(s+r.top),sx:f,sy:g,speed:p}}Be("fab-transition","center center","out-in");Be("dialog-bottom-transition");Be("dialog-top-transition");const va=Be("fade-transition"),LS=Be("scale-transition");Be("scroll-x-transition");Be("scroll-x-reverse-transition");Be("scroll-y-transition");Be("scroll-y-reverse-transition");Be("slide-x-transition");const VS=Be("slide-x-reverse-transition"),jS=Be("slide-y-transition");Be("slide-y-reverse-transition");const w0=bu("expand-transition",yu()),A0=bu("expand-x-transition",yu("",!0));function C0(t){let{selectedElement:e,containerElement:n,isRtl:r,isHorizontal:i}=t;const s=yn(i,n),l=Su(i,r,n),a=yn(i,e),o=Eu(i,e),u=a*.4;return l>o?o-u:l+s<o+a?o-s+a+u:l}function D0(t){let{selectedElement:e,containerElement:n,isHorizontal:r}=t;const i=yn(r,n),s=Eu(r,e),l=yn(r,e);return s-i/2+l/2}function ba(t,e){const n=t?"scrollWidth":"scrollHeight";return(e==null?void 0:e[n])||0}function _0(t,e){const n=t?"clientWidth":"clientHeight";return(e==null?void 0:e[n])||0}function Su(t,e,n){if(!n)return 0;const{scrollLeft:r,offsetWidth:i,scrollWidth:s}=n;return t?e?s-i+r:r:n.scrollTop}function yn(t,e){const n=t?"offsetWidth":"offsetHeight";return(e==null?void 0:e[n])||0}function Eu(t,e){const n=t?"offsetLeft":"offsetTop";return(e==null?void 0:e[n])||0}const R0=Symbol.for("vuetify:v-slide-group"),wu=Ae({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:R0},nextIcon:{type:Fe,default:"$next"},prevIcon:{type:Fe,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...ot(),...Yu({mobile:null}),...wt(),...qa({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),ya=Re()({name:"VSlideGroup",props:wu(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isRtl:r}=Ia(),{displayClasses:i,mobile:s}=Oa(t),l=Qa(t,t.symbol),a=Ie(!1),o=Ie(0),u=Ie(0),c=Ie(0),d=F(()=>t.direction==="horizontal"),{resizeRef:h,contentRect:f}=$s(),{resizeRef:g,contentRect:m}=$s(),p=qu(),b=F(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),S=F(()=>l.selected.value.length?l.items.value.findIndex(M=>M.id===l.selected.value[0]):-1),C=F(()=>l.selected.value.length?l.items.value.findIndex(M=>M.id===l.selected.value[l.selected.value.length-1]):-1);if(Us){let M=-1;Vt(()=>[l.selected.value,f.value,m.value,d.value],()=>{cancelAnimationFrame(M),M=requestAnimationFrame(()=>{if(f.value&&m.value){const R=d.value?"width":"height";u.value=f.value[R],c.value=m.value[R],a.value=u.value+1<c.value}if(S.value>=0&&g.el){const R=g.el.children[C.value];k(R,t.centerActive)}})})}const D=Ie(!1);function k(M,R){let W=0;R?W=D0({containerElement:h.el,isHorizontal:d.value,selectedElement:M}):W=C0({containerElement:h.el,isHorizontal:d.value,isRtl:r.value,selectedElement:M}),E(W)}function E(M){if(!Us||!h.el)return;const R=yn(d.value,h.el),W=Su(d.value,r.value,h.el);if(!(ba(d.value,h.el)<=R||Math.abs(M-W)<16)){if(d.value&&r.value&&h.el){const{scrollWidth:le,offsetWidth:pe}=h.el;M=le-pe-M}d.value?p.horizontal(M,b.value):p(M,b.value)}}function y(M){const{scrollTop:R,scrollLeft:W}=M.target;o.value=d.value?W:R}function A(M){if(D.value=!0,!(!a.value||!g.el)){for(const R of M.composedPath())for(const W of g.el.children)if(W===R){k(W);return}}}function H(M){D.value=!1}let x=!1;function I(M){var R;!x&&!D.value&&!(M.relatedTarget&&((R=g.el)!=null&&R.contains(M.relatedTarget)))&&L(),x=!1}function N(){x=!0}function Y(M){if(!g.el)return;function R(W){M.preventDefault(),L(W)}d.value?M.key==="ArrowRight"?R(r.value?"prev":"next"):M.key==="ArrowLeft"&&R(r.value?"next":"prev"):M.key==="ArrowDown"?R("next"):M.key==="ArrowUp"&&R("prev"),M.key==="Home"?R("first"):M.key==="End"&&R("last")}function L(M){var W,te;if(!g.el)return;let R;if(!M)R=Si(g.el)[0];else if(M==="next"){if(R=(W=g.el.querySelector(":focus"))==null?void 0:W.nextElementSibling,!R)return L("first")}else if(M==="prev"){if(R=(te=g.el.querySelector(":focus"))==null?void 0:te.previousElementSibling,!R)return L("last")}else M==="first"?R=g.el.firstElementChild:M==="last"&&(R=g.el.lastElementChild);R&&R.focus({preventScroll:!0})}function P(M){const R=d.value&&r.value?-1:1,W=(M==="prev"?-R:R)*u.value;let te=o.value+W;if(d.value&&r.value&&h.el){const{scrollWidth:le,offsetWidth:pe}=h.el;te+=le-pe}E(te)}const O=F(()=>({next:l.next,prev:l.prev,select:l.select,isSelected:l.isSelected})),V=F(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!s.value;case!0:return a.value||Math.abs(o.value)>0;case"mobile":return s.value||a.value||Math.abs(o.value)>0;default:return!s.value&&(a.value||Math.abs(o.value)>0)}}),B=F(()=>Math.abs(o.value)>1),G=F(()=>{if(!h.value)return!1;const M=ba(d.value,h.el),R=_0(d.value,h.el);return M-R-Math.abs(o.value)>1});return Ye(()=>_(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":V.value,"v-slide-group--is-overflowing":a.value},i.value,t.class],style:t.style,tabindex:D.value||l.selected.value.length?-1:0,onFocus:I},{default:()=>{var M,R,W;return[V.value&&_("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!B.value}],onMousedown:N,onClick:()=>B.value&&P("prev")},[((M=n.prev)==null?void 0:M.call(n,O.value))??_(va,null,{default:()=>[_(Ke,{icon:r.value?t.nextIcon:t.prevIcon},null)]})]),_("div",{key:"container",ref:h,class:"v-slide-group__container",onScroll:y},[_("div",{ref:g,class:"v-slide-group__content",onFocusin:A,onFocusout:H,onKeydown:Y},[(R=n.default)==null?void 0:R.call(n,O.value)])]),V.value&&_("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!G.value}],onMousedown:N,onClick:()=>G.value&&P("next")},[((W=n.next)==null?void 0:W.call(n,O.value))??_(va,null,{default:()=>[_(Ke,{icon:r.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:l.selected,scrollTo:P,scrollOffset:o,focus:L,hasPrev:B,hasNext:G}}}),Au=Symbol.for("vuetify:v-chip-group"),k0=Ae({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Na},...wu(),...ot(),...qa({selectedClass:"v-chip--selected"}),...wt(),...wn(),...wr({variant:"tonal"})},"VChipGroup");Re()({name:"VChipGroup",props:k0(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{themeClasses:r}=An(t),{isSelected:i,select:s,next:l,prev:a,selected:o}=Qa(t,Au);return Pa({VChip:{color:ce(t,"color"),disabled:ce(t,"disabled"),filter:ce(t,"filter"),variant:ce(t,"variant")}}),Ye(()=>{const u=ya.filterProps(t);return _(ya,Me(u,{class:["v-chip-group",{"v-chip-group--column":t.column},r.value,t.class],style:t.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:i,select:s,next:l,prev:a,selected:o.value})]}})}),{}}});const T0=Ae({activeClass:String,appendAvatar:String,appendIcon:Fe,closable:Boolean,closeIcon:{type:Fe,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Fe,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Ot(),onClickOnce:Ot(),...Qi(),...ot(),...Zi(),...Xi(),...gd(),...$i(),...Ua(),...pd(),...wt({tag:"span"}),...wn(),...wr({variant:"tonal"})},"VChip"),Cu=Re()({name:"VChip",directives:{Ripple:Za},props:T0(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:n,emit:r,slots:i}=e;const{t:s}=Qu(),{borderClasses:l}=Ji(t),{colorClasses:a,colorStyles:o,variantClasses:u}=Wa(t),{densityClasses:c}=Ki(t),{elevationClasses:d}=es(t),{roundedClasses:h}=Gi(t),{sizeClasses:f}=md(t),{themeClasses:g}=An(t),m=Yt(t,"modelValue"),p=vd(t,Au,!1),b=$a(t,n),S=F(()=>t.link!==!1&&b.isLink.value),C=F(()=>!t.disabled&&t.link!==!1&&(!!p||t.link||b.isClickable.value)),D=F(()=>({"aria-label":s(t.closeLabel),onClick(y){y.preventDefault(),y.stopPropagation(),m.value=!1,r("click:close",y)}}));function k(y){var A;r("click",y),C.value&&((A=b.navigate)==null||A.call(b,y),p==null||p.toggle())}function E(y){(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),k(y))}return()=>{const y=b.isLink.value?"a":t.tag,A=!!(t.appendIcon||t.appendAvatar),H=!!(A||i.append),x=!!(i.close||t.closable),I=!!(i.filter||t.filter)&&p,N=!!(t.prependIcon||t.prependAvatar),Y=!!(N||i.prepend),L=!p||p.isSelected.value;return m.value&&bt(_(y,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":C.value,"v-chip--filter":I,"v-chip--pill":t.pill},g.value,l.value,L?a.value:void 0,c.value,d.value,h.value,f.value,u.value,p==null?void 0:p.selectedClass.value,t.class],style:[L?o.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:b.href.value,tabindex:C.value?0:void 0,onClick:k,onKeydown:C.value&&!S.value&&E},{default:()=>{var P;return[Ga(C.value,"v-chip"),I&&_(A0,{key:"filter"},{default:()=>[bt(_("div",{class:"v-chip__filter"},[i.filter?_(ht,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},i.filter):_(Ke,{key:"filter-icon",icon:t.filterIcon},null)]),[[Ba,p.isSelected.value]])]}),Y&&_("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?_(ht,{key:"prepend-defaults",disabled:!N,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},i.prepend):_(Se,null,[t.prependIcon&&_(Ke,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&_(ir,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),_("div",{class:"v-chip__content","data-no-activator":""},[((P=i.default)==null?void 0:P.call(i,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:t.disabled}))??t.text]),H&&_("div",{key:"append",class:"v-chip__append"},[i.append?_(ht,{key:"append-defaults",disabled:!A,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},i.append):_(Se,null,[t.appendIcon&&_(Ke,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&_(ir,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),x&&_("button",Me({key:"close",class:"v-chip__close",type:"button"},D.value),[i.close?_(ht,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},i.close):_(Ke,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[Ha("ripple"),C.value&&t.ripple,null]])}}}),ji=Symbol.for("vuetify:list");function Du(){const t=Cn(ji,{hasPrepend:Ie(!1),updateHasPrepend:()=>null}),e={hasPrepend:Ie(!1),updateHasPrepend:n=>{n&&(e.hasPrepend.value=n)}};return Dn(ji,e),t}function _u(){return Cn(ji,null)}const Vs=t=>{const e={activate:n=>{let{id:r,value:i,activated:s}=n;return r=ue(r),t&&!i&&s.size===1&&s.has(r)||(i?s.add(r):s.delete(r)),s},in:(n,r,i)=>{let s=new Set;if(n!=null)for(const l of La(n))s=e.activate({id:l,value:!0,activated:new Set(s),children:r,parents:i});return s},out:n=>Array.from(n)};return e},Ru=t=>{const e=Vs(t);return{activate:r=>{let{activated:i,id:s,...l}=r;s=ue(s);const a=i.has(s)?new Set([s]):new Set;return e.activate({...l,id:s,activated:a})},in:(r,i,s)=>{let l=new Set;if(r!=null){const a=La(r);a.length&&(l=e.in(a.slice(0,1),i,s))}return l},out:(r,i,s)=>e.out(r,i,s)}},x0=t=>{const e=Vs(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},M0=t=>{const e=Ru(t);return{activate:r=>{let{id:i,activated:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.activate({id:i,activated:s,children:l,...a})},in:e.in,out:e.out}},I0={open:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(n){const s=new Set;s.add(e);let l=i.get(e);for(;l!=null;)s.add(l),l=i.get(l);return s}else return r.delete(e),r},select:()=>null},ku={open:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(n){let s=ue(i.get(e));for(r.add(e);s!=null&&s!==e;)r.add(s),s=ue(i.get(s));return r}else r.delete(e);return r},select:()=>null},O0={open:ku.open,select:t=>{let{id:e,value:n,opened:r,parents:i}=t;if(!n)return r;const s=[];let l=i.get(e);for(;l!=null;)s.push(l),l=i.get(l);return new Set(s)}},js=t=>{const e={select:n=>{let{id:r,value:i,selected:s}=n;if(r=ue(r),t&&!i){const l=Array.from(s.entries()).reduce((a,o)=>{let[u,c]=o;return c==="on"&&a.push(u),a},[]);if(l.length===1&&l[0]===r)return s}return s.set(r,i?"on":"off"),s},in:(n,r,i)=>{let s=new Map;for(const l of n||[])s=e.select({id:l,value:!0,selected:new Map(s),children:r,parents:i});return s},out:n=>{const r=[];for(const[i,s]of n.entries())s==="on"&&r.push(i);return r}};return e},Tu=t=>{const e=js(t);return{select:r=>{let{selected:i,id:s,...l}=r;s=ue(s);const a=i.has(s)?new Map([[s,i.get(s)]]):new Map;return e.select({...l,id:s,selected:a})},in:(r,i,s)=>{let l=new Map;return r!=null&&r.length&&(l=e.in(r.slice(0,1),i,s)),l},out:(r,i,s)=>e.out(r,i,s)}},N0=t=>{const e=js(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},P0=t=>{const e=Tu(t);return{select:r=>{let{id:i,selected:s,children:l,...a}=r;return i=ue(i),l.has(i)?s:e.select({id:i,selected:s,children:l,...a})},in:e.in,out:e.out}},H0=t=>{const e={select:n=>{let{id:r,value:i,selected:s,children:l,parents:a}=n;r=ue(r);const o=new Map(s),u=[r];for(;u.length;){const d=u.shift();s.set(ue(d),i?"on":"off"),l.has(d)&&u.push(...l.get(d))}let c=ue(a.get(r));for(;c;){const d=l.get(c),h=d.every(g=>s.get(ue(g))==="on"),f=d.every(g=>!s.has(ue(g))||s.get(ue(g))==="off");s.set(c,h?"on":f?"off":"indeterminate"),c=ue(a.get(c))}return t&&!i&&Array.from(s.entries()).reduce((h,f)=>{let[g,m]=f;return m==="on"&&h.push(g),h},[]).length===0?o:s},in:(n,r,i)=>{let s=new Map;for(const l of n||[])s=e.select({id:l,value:!0,selected:new Map(s),children:r,parents:i});return s},out:(n,r)=>{const i=[];for(const[s,l]of n.entries())l==="on"&&!r.has(s)&&i.push(s);return i}};return e},Sn=Symbol.for("vuetify:nested"),xu={id:Ie(),root:{register:()=>null,unregister:()=>null,parents:ie(new Map),children:ie(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ie(!1),selectable:ie(!1),opened:ie(new Set),activated:ie(new Set),selected:ie(new Map),selectedValues:ie([])}},B0=Ae({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),L0=t=>{let e=!1;const n=ie(new Map),r=ie(new Map),i=Yt(t,"opened",t.opened,f=>new Set(ue(f)),f=>[...f.values()]),s=F(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return x0(t.mandatory);case"single-leaf":return M0(t.mandatory);case"independent":return Vs(t.mandatory);case"single-independent":default:return Ru(t.mandatory)}}),l=F(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return P0(t.mandatory);case"leaf":return N0(t.mandatory);case"independent":return js(t.mandatory);case"single-independent":return Tu(t.mandatory);case"classic":default:return H0(t.mandatory)}}),a=F(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return O0;case"single":return I0;case"multiple":default:return ku}}),o=Yt(t,"activated",t.activated,f=>s.value.in(f,n.value,r.value),f=>s.value.out(f,n.value,r.value)),u=Yt(t,"selected",t.selected,f=>l.value.in(f,n.value,r.value),f=>l.value.out(f,n.value,r.value));Yi(()=>{e=!0});function c(f){const g=[];let m=f;for(;m!=null;)g.unshift(m),m=r.value.get(m);return g}const d=Zu("nested"),h={id:Ie(),root:{opened:i,activatable:ce(t,"activatable"),selectable:ce(t,"selectable"),activated:o,selected:u,selectedValues:F(()=>{const f=[];for(const[g,m]of u.value.entries())m==="on"&&f.push(g);return f}),register:(f,g,m)=>{g&&f!==g&&r.value.set(f,g),m&&n.value.set(f,[]),g!=null&&n.value.set(g,[...n.value.get(g)||[],f])},unregister:f=>{if(e)return;n.value.delete(f);const g=r.value.get(f);if(g){const m=n.value.get(g)??[];n.value.set(g,m.filter(p=>p!==f))}r.value.delete(f)},open:(f,g,m)=>{d.emit("click:open",{id:f,value:g,path:c(f),event:m});const p=a.value.open({id:f,value:g,opened:new Set(i.value),children:n.value,parents:r.value,event:m});p&&(i.value=p)},openOnSelect:(f,g,m)=>{const p=a.value.select({id:f,value:g,selected:new Map(u.value),opened:new Set(i.value),children:n.value,parents:r.value,event:m});p&&(i.value=p)},select:(f,g,m)=>{d.emit("click:select",{id:f,value:g,path:c(f),event:m});const p=l.value.select({id:f,value:g,selected:new Map(u.value),children:n.value,parents:r.value,event:m});p&&(u.value=p),h.root.openOnSelect(f,g,m)},activate:(f,g,m)=>{if(!t.activatable)return h.root.select(f,!0,m);d.emit("click:activate",{id:f,value:g,path:c(f),event:m});const p=s.value.activate({id:f,value:g,activated:new Set(o.value),children:n.value,parents:r.value,event:m});p&&(o.value=p)},children:n,parents:r}};return Dn(Sn,h),h.root},Mu=(t,e)=>{const n=Cn(Sn,xu),r=Symbol(Wi()),i=F(()=>t.value!==void 0?t.value:r),s={...n,id:i,open:(l,a)=>n.root.open(ue(i.value),l,a),openOnSelect:(l,a)=>n.root.openOnSelect(i.value,l,a),isOpen:F(()=>n.root.opened.value.has(ue(i.value))),parent:F(()=>n.root.parents.value.get(i.value)),activate:(l,a)=>n.root.activate(i.value,l,a),isActivated:F(()=>n.root.activated.value.has(ue(i.value))),select:(l,a)=>n.root.select(i.value,l,a),isSelected:F(()=>n.root.selected.value.get(ue(i.value))==="on"),isIndeterminate:F(()=>n.root.selected.value.get(i.value)==="indeterminate"),isLeaf:F(()=>!n.root.children.value.get(i.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(i.value,n.id.value,e),Yi(()=>{!n.isGroupActivator&&n.root.unregister(i.value)}),e&&Dn(Sn,s),s},V0=()=>{const t=Cn(Sn,xu);Dn(Sn,{...t,isGroupActivator:!0})};function j0(){const t=Ie(!1);return Ui(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:F(()=>t.value?void 0:{transition:"none !important"}),isBooted:Xu(t)}}const F0=Ju({name:"VListGroupActivator",setup(t,e){let{slots:n}=e;return V0(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),z0=Ae({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Fe,default:"$collapse"},expandIcon:{type:Fe,default:"$expand"},prependIcon:Fe,appendIcon:Fe,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ot(),...wt()},"VListGroup"),Sa=Re()({name:"VListGroup",props:z0(),setup(t,e){let{slots:n}=e;const{isOpen:r,open:i,id:s}=Mu(ce(t,"value"),!0),l=F(()=>`v-list-group--id-${String(s.value)}`),a=_u(),{isBooted:o}=j0();function u(f){f.stopPropagation(),i(!r.value,f)}const c=F(()=>({onClick:u,class:"v-list-group__header",id:l.value})),d=F(()=>r.value?t.collapseIcon:t.expandIcon),h=F(()=>({VListItem:{active:r.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&d.value,appendIcon:t.appendIcon||!t.subgroup&&d.value,title:t.title,value:t.value}}));return Ye(()=>_(t.tag,{class:["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":r.value},t.class],style:t.style},{default:()=>[n.activator&&_(ht,{defaults:h.value},{default:()=>[_(F0,null,{default:()=>[n.activator({props:c.value,isOpen:r.value})]})]}),_(Ku,{transition:{component:w0},disabled:!o.value},{default:()=>{var f;return[bt(_("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(f=n.default)==null?void 0:f.call(n)]),[[Ba,r.value]])]}})]})),{isOpen:r}}}),U0=Ae({opacity:[Number,String],...ot(),...wt()},"VListItemSubtitle"),Iu=Re()({name:"VListItemSubtitle",props:U0(),setup(t,e){let{slots:n}=e;return Ye(()=>_(t.tag,{class:["v-list-item-subtitle",t.class],style:[{"--v-list-item-subtitle-opacity":t.opacity},t.style]},n)),{}}}),W0=Ya("v-list-item-title"),$0=Ae({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Fe,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Fe,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:Ot(),onClickOnce:Ot(),...Qi(),...ot(),...Zi(),...Va(),...Xi(),...$i(),...Ua(),...wt(),...wn(),...wr({variant:"text"})},"VListItem"),Fi=Re()({name:"VListItem",directives:{Ripple:Za},props:$0(),emits:{click:t=>!0},setup(t,e){let{attrs:n,slots:r,emit:i}=e;const s=$a(t,n),l=F(()=>t.value===void 0?s.href.value:t.value),{activate:a,isActivated:o,select:u,isOpen:c,isSelected:d,isIndeterminate:h,isGroupActivator:f,root:g,parent:m,openOnSelect:p}=Mu(l,!1),b=_u(),S=F(()=>{var R;return t.active!==!1&&(t.active||((R=s.isActive)==null?void 0:R.value)||(g.activatable.value?o.value:d.value))}),C=F(()=>t.link!==!1&&s.isLink.value),D=F(()=>!t.disabled&&t.link!==!1&&(t.link||s.isClickable.value||!!b&&(g.selectable.value||g.activatable.value||t.value!=null))),k=F(()=>t.rounded||t.nav),E=F(()=>t.color??t.activeColor),y=F(()=>({color:S.value?E.value??t.baseColor:t.baseColor,variant:t.variant}));Vt(()=>{var R;return(R=s.isActive)==null?void 0:R.value},R=>{R&&m.value!=null&&g.open(m.value,!0),R&&p(R)},{immediate:!0});const{themeClasses:A}=An(t),{borderClasses:H}=Ji(t),{colorClasses:x,colorStyles:I,variantClasses:N}=Wa(y),{densityClasses:Y}=Ki(t),{dimensionStyles:L}=ja(t),{elevationClasses:P}=es(t),{roundedClasses:O}=Gi(k),V=F(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),B=F(()=>({isActive:S.value,select:u,isOpen:c.value,isSelected:d.value,isIndeterminate:h.value}));function G(R){var W;i("click",R),D.value&&((W=s.navigate)==null||W.call(s,R),!f&&(g.activatable.value?a(!o.value,R):(g.selectable.value||t.value!=null)&&u(!d.value,R)))}function M(R){(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),R.target.dispatchEvent(new MouseEvent("click",R)))}return Ye(()=>{const R=C.value?"a":t.tag,W=r.title||t.title!=null,te=r.subtitle||t.subtitle!=null,le=!!(t.appendAvatar||t.appendIcon),pe=!!(le||r.append),Qe=!!(t.prependAvatar||t.prependIcon),Ve=!!(Qe||r.prepend);return b==null||b.updateHasPrepend(Ve),t.activeColor&&ed("active-color",["color","base-color"]),bt(_(R,{class:["v-list-item",{"v-list-item--active":S.value,"v-list-item--disabled":t.disabled,"v-list-item--link":D.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!Ve&&(b==null?void 0:b.hasPrepend.value),"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&S.value},A.value,H.value,x.value,Y.value,P.value,V.value,O.value,N.value,t.class],style:[I.value,L.value,t.style],href:s.href.value,tabindex:D.value?b?-2:0:void 0,onClick:G,onKeydown:D.value&&!C.value&&M},{default:()=>{var ut;return[Ga(D.value||S.value,"v-list-item"),Ve&&_("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?_(ht,{key:"prepend-defaults",disabled:!Qe,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var he;return[(he=r.prepend)==null?void 0:he.call(r,B.value)]}}):_(Se,null,[t.prependAvatar&&_(ir,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&_(Ke,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),_("div",{class:"v-list-item__spacer"},null)]),_("div",{class:"v-list-item__content","data-no-activator":""},[W&&_(W0,{key:"title"},{default:()=>{var he;return[((he=r.title)==null?void 0:he.call(r,{title:t.title}))??t.title]}}),te&&_(Iu,{key:"subtitle"},{default:()=>{var he;return[((he=r.subtitle)==null?void 0:he.call(r,{subtitle:t.subtitle}))??t.subtitle]}}),(ut=r.default)==null?void 0:ut.call(r,B.value)]),pe&&_("div",{key:"append",class:"v-list-item__append"},[r.append?_(ht,{key:"append-defaults",disabled:!le,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var he;return[(he=r.append)==null?void 0:he.call(r,B.value)]}}):_(Se,null,[t.appendIcon&&_(Ke,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&_(ir,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),_("div",{class:"v-list-item__spacer"},null)])]}}),[[Ha("ripple"),D.value&&t.ripple]])}),{activate:a,isActivated:o,isGroupActivator:f,isSelected:d,list:b,select:u}}}),G0=Ae({color:String,inset:Boolean,sticky:Boolean,title:String,...ot(),...wt()},"VListSubheader"),Y0=Re()({name:"VListSubheader",props:G0(),setup(t,e){let{slots:n}=e;const{textColorClasses:r,textColorStyles:i}=Fa(ce(t,"color"));return Ye(()=>{const s=!!(n.default||t.title);return _(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},r.value,t.class],style:[{textColorStyles:i},t.style]},{default:()=>{var l;return[s&&_("div",{class:"v-list-subheader__text"},[((l=n.default)==null?void 0:l.call(n))??t.title])]}})}),{}}}),q0=Ae({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...ot(),...wn()},"VDivider"),Q0=Re()({name:"VDivider",props:q0(),setup(t,e){let{attrs:n,slots:r}=e;const{themeClasses:i}=An(t),{textColorClasses:s,textColorStyles:l}=Fa(ce(t,"color")),a=F(()=>{const o={};return t.length&&(o[t.vertical?"height":"width"]=Ws(t.length)),t.thickness&&(o[t.vertical?"borderRightWidth":"borderTopWidth"]=Ws(t.thickness)),o});return Ye(()=>{const o=_("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},i.value,s.value,t.class],style:[a.value,l.value,{"--v-border-opacity":t.opacity},t.style],"aria-orientation":!n.role||n.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?_("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":t.vertical,"v-divider__wrapper--inset":t.inset}]},[o,_("div",{class:"v-divider__content"},[r.default()]),o]):o}),{}}}),Z0=Ae({items:Array,returnObject:Boolean},"VListChildren"),Ou=Re()({name:"VListChildren",props:Z0(),setup(t,e){let{slots:n}=e;return Du(),()=>{var r,i;return((r=n.default)==null?void 0:r.call(n))??((i=t.items)==null?void 0:i.map(s=>{var h,f;let{children:l,props:a,type:o,raw:u}=s;if(o==="divider")return((h=n.divider)==null?void 0:h.call(n,{props:a}))??_(Q0,a,null);if(o==="subheader")return((f=n.subheader)==null?void 0:f.call(n,{props:a}))??_(Y0,a,null);const c={subtitle:n.subtitle?g=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...g,item:u})}:void 0,prepend:n.prepend?g=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...g,item:u})}:void 0,append:n.append?g=>{var m;return(m=n.append)==null?void 0:m.call(n,{...g,item:u})}:void 0,title:n.title?g=>{var m;return(m=n.title)==null?void 0:m.call(n,{...g,item:u})}:void 0},d=Sa.filterProps(a);return l?_(Sa,Me({value:a==null?void 0:a.value},d),{activator:g=>{let{props:m}=g;const p={...a,...m,value:t.returnObject?u:a.value};return n.header?n.header({props:p}):_(Fi,p,c)},default:()=>_(Ou,{items:l,returnObject:t.returnObject},n)}):n.item?n.item({props:a}):_(Fi,Me(a,{value:t.returnObject?u:a.value}),c)}))}}}),X0=Ae({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:Na}},"list-items");function zi(t,e){const n=Je(e,t.itemTitle,e),r=Je(e,t.itemValue,n),i=Je(e,t.itemChildren),s=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?Er(e,["children"]):e:void 0:Je(e,t.itemProps),l={title:n,value:r,...s};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(i)?Nu(t,i):void 0,raw:e}}function Nu(t,e){const n=[];for(const r of e)n.push(zi(t,r));return n}function FS(t){const e=F(()=>Nu(t,t.items)),n=F(()=>e.value.some(s=>s.value===null));function r(s){return n.value||(s=s.filter(l=>l!==null)),s.map(l=>t.returnObject&&typeof l=="string"?zi(t,l):e.value.find(a=>t.valueComparator(l,a.value))||zi(t,l))}function i(s){return t.returnObject?s.map(l=>{let{raw:a}=l;return a}):s.map(l=>{let{value:a}=l;return a})}return{items:e,transformIn:r,transformOut:i}}function J0(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function K0(t,e){const n=Je(e,t.itemType,"item"),r=J0(e)?e:Je(e,t.itemTitle),i=Je(e,t.itemValue,void 0),s=Je(e,t.itemChildren),l=t.itemProps===!0?Er(e,["children"]):Je(e,t.itemProps),a={title:r,value:i,...l};return{type:n,title:a.title,value:a.value,props:a,children:n==="item"&&s?Pu(t,s):void 0,raw:e}}function Pu(t,e){const n=[];for(const r of e)n.push(K0(t,r));return n}function eS(t){return{items:F(()=>Pu(t,t.items))}}const tS=Ae({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":Ot(),"onClick:select":Ot(),"onUpdate:opened":Ot(),...B0({selectStrategy:"single-leaf",openStrategy:"list"}),...Qi(),...ot(),...Zi(),...Va(),...Xi(),itemType:{type:String,default:"type"},...X0(),...$i(),...wt(),...wn(),...wr({variant:"text"})},"VList"),nS=Re()({name:"VList",props:tS(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:n}=e;const{items:r}=eS(t),{themeClasses:i}=An(t),{backgroundColorClasses:s,backgroundColorStyles:l}=td(ce(t,"bgColor")),{borderClasses:a}=Ji(t),{densityClasses:o}=Ki(t),{dimensionStyles:u}=ja(t),{elevationClasses:c}=es(t),{roundedClasses:d}=Gi(t),{children:h,open:f,parents:g,select:m}=L0(t),p=F(()=>t.lines?`v-list--${t.lines}-line`:void 0),b=ce(t,"activeColor"),S=ce(t,"baseColor"),C=ce(t,"color");Du(),Pa({VListGroup:{activeColor:b,baseColor:S,color:C,expandIcon:ce(t,"expandIcon"),collapseIcon:ce(t,"collapseIcon")},VListItem:{activeClass:ce(t,"activeClass"),activeColor:b,baseColor:S,color:C,density:ce(t,"density"),disabled:ce(t,"disabled"),lines:ce(t,"lines"),nav:ce(t,"nav"),slim:ce(t,"slim"),variant:ce(t,"variant")}});const D=Ie(!1),k=ie();function E(N){D.value=!0}function y(N){D.value=!1}function A(N){var Y;!D.value&&!(N.relatedTarget&&((Y=k.value)!=null&&Y.contains(N.relatedTarget)))&&I()}function H(N){const Y=N.target;if(!(!k.value||["INPUT","TEXTAREA"].includes(Y.tagName))){if(N.key==="ArrowDown")I("next");else if(N.key==="ArrowUp")I("prev");else if(N.key==="Home")I("first");else if(N.key==="End")I("last");else return;N.preventDefault()}}function x(N){D.value=!0}function I(N){if(k.value)return Yn(k.value,N)}return Ye(()=>_(t.tag,{ref:k,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},i.value,s.value,a.value,o.value,c.value,p.value,d.value,t.class],style:[l.value,u.value,t.style],tabindex:t.disabled||D.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:E,onFocusout:y,onFocus:A,onKeydown:H,onMousedown:x},{default:()=>[_(Ou,{items:r.value,returnObject:t.returnObject},n)]})),{open:f,select:m,focus:I,children:h,parents:g}}}),rS=["innerHTML"],iS={style:{"white-space":"normal"}},sS=["innerHTML"],lS={__name:"EventView",props:{item:{type:Object,required:!0}},setup(t){const{config:e,labelField:n,descriptionField:r,imageField:i,attachmentField:s,linkField:l,fields:a}=at();return(o,u)=>(Z(),ye(Se,null,[j(i)?(Z(),ye(Se,{key:0},[t.item[j(i)]?(Z(),ae(nd,{key:0,src:t.item._thumbnail||t.item[j(i)],"aspect-ratio":3,cover:""},null,8,["src"])):ve("",!0)],64)):ve("",!0),j(n)&&t.item[j(n)]?(Z(),ae(Ar,{key:1},{default:$(()=>[tr("h4",null,je(t.item[j(n)]),1)]),_:1})):ve("",!0),_(Cr,null,{default:$(()=>[j(r)&&t.item[j(r)]?(Z(),ye("div",{key:0,innerHTML:t.item[j(r)]},null,8,rS)):ve("",!0),_(nS,{dense:"",class:"transparent",lines:"two"},{default:$(()=>[(Z(!0),ye(Se,null,rr(j(e).additionalFields.filter(c=>!!t.item[c]),c=>(Z(),ae(Fi,{key:c,style:{"min-height":"24px","max-width":"100%"}},{default:$(()=>[_(Iu,{class:"font-weight-bold"},{default:$(()=>[fe(je(j(a)[c].title?j(a)[c].title:j(a)[c]["x-originalName"]||c),1)]),_:2},1024),tr("div",iS,[j(a)[c].separator?t.item[c]?(Z(!0),ye(Se,{key:1},rr(t.item[c].split(j(a)[c].separator).sort(),d=>(Z(),ae(Cu,{key:d,small:"",style:{flex:"none"},class:"my-1 mr-1"},{default:$(()=>[fe(je(j(ga)({[c]:d},j(a)[c])+""),1)]),_:2},1024))),128)):ve("",!0):(Z(),ye(Se,{key:0},[j(a)[c]["x-display"]==="markdown"?(Z(),ye("div",{key:0,innerHTML:t.item[c]},null,8,sS)):(Z(),ye(Se,{key:1},[fe(je(j(ga)(t.item,j(a)[c])+""),1)],64))],64))])]),_:2},1024))),128))]),_:1})]),_:1}),j(s)||j(l)?(Z(),ae(b0,{key:2,item:t.item},null,8,["item"])):ve("",!0)],64))}},aS=Ae({id:String,submenu:Boolean,...Er(Xa({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:E0}}),["absolute"])},"VMenu"),Br=Re()({name:"VMenu",props:aS(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=Yt(t,"modelValue"),{scopeId:i}=Ja(),{isRtl:s}=Ia(),l=Wi(),a=F(()=>t.id||`v-menu-${l}`),o=ie(),u=Cn(Zs,null),c=Ie(new Set);Dn(Zs,{register(){c.value.add(l)},unregister(){c.value.delete(l)},closeParents(p){setTimeout(()=>{var b;!c.value.size&&!t.persistent&&(p==null||(b=o.value)!=null&&b.contentEl&&!rd(p,o.value.contentEl))&&(r.value=!1,u==null||u.closeParents())},40)}}),Yi(()=>u==null?void 0:u.unregister()),id(()=>r.value=!1);async function d(p){var C,D,k;const b=p.relatedTarget,S=p.target;await Ra(),r.value&&b!==S&&((C=o.value)!=null&&C.contentEl)&&((D=o.value)!=null&&D.globalTop)&&![document,o.value.contentEl].includes(S)&&!o.value.contentEl.contains(S)&&((k=Si(o.value.contentEl)[0])==null||k.focus())}Vt(r,p=>{p?(u==null||u.register(),document.addEventListener("focusin",d,{once:!0})):(u==null||u.unregister(),document.removeEventListener("focusin",d))});function h(p){u==null||u.closeParents(p)}function f(p){var b,S,C,D,k;if(!t.disabled)if(p.key==="Tab"||p.key==="Enter"&&!t.closeOnContentClick){if(p.key==="Enter"&&(p.target instanceof HTMLTextAreaElement||p.target instanceof HTMLInputElement&&p.target.closest("form")))return;p.key==="Enter"&&p.preventDefault(),sd(Si((b=o.value)==null?void 0:b.contentEl,!1),p.shiftKey?"prev":"next",y=>y.tabIndex>=0)||(r.value=!1,(C=(S=o.value)==null?void 0:S.activatorEl)==null||C.focus())}else t.submenu&&p.key===(s.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,(k=(D=o.value)==null?void 0:D.activatorEl)==null||k.focus())}function g(p){var S;if(t.disabled)return;const b=(S=o.value)==null?void 0:S.contentEl;b&&r.value?p.key==="ArrowDown"?(p.preventDefault(),p.stopImmediatePropagation(),Yn(b,"next")):p.key==="ArrowUp"?(p.preventDefault(),p.stopImmediatePropagation(),Yn(b,"prev")):t.submenu&&(p.key===(s.value?"ArrowRight":"ArrowLeft")?r.value=!1:p.key===(s.value?"ArrowLeft":"ArrowRight")&&(p.preventDefault(),Yn(b,"first"))):(t.submenu?p.key===(s.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(p.key))&&(r.value=!0,p.preventDefault(),setTimeout(()=>setTimeout(()=>g(p))))}const m=F(()=>Me({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":a.value,onKeydown:g},t.activatorProps));return Ye(()=>{const p=sr.filterProps(t);return _(sr,Me({ref:o,id:a.value,class:["v-menu",t.class],style:t.style},p,{modelValue:r.value,"onUpdate:modelValue":b=>r.value=b,absolute:!0,activatorProps:m.value,location:t.location??(t.submenu?"end":"bottom"),"onClick:outside":h,onKeydown:f},i),{activator:n.activator,default:function(){for(var b=arguments.length,S=new Array(b),C=0;C<b;C++)S[C]=arguments[C];return _(ht,{root:"VMenu"},{default:()=>{var D;return[(D=n.default)==null?void 0:D.call(n,...S)]}})}})}),Ka({id:a,ΨopenChildren:c},o)}});function oS(t,e){const n=typeof t=="string"?ld(t):t,r=cS(n,e);return{mounted:r,updated:r,unmounted(i){za(null,i)}}}function cS(t,e){return function(n,r,i){var d,h,f;const s=typeof e=="function"?e(r):e,l=((d=r.value)==null?void 0:d.text)??r.value??(s==null?void 0:s.text),a=ad(r.value)?r.value:{},o=()=>l??n.innerHTML,u=(i.ctx===r.instance.$?(h=uS(i,r.instance.$))==null?void 0:h.provides:(f=i.ctx)==null?void 0:f.provides)??r.instance.$.provides,c=It(t,Me(s,a),o);c.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:u}),za(c,n)}}function uS(t,e){const n=new Set,r=s=>{var l,a;for(const o of s){if(!o)continue;if(o===t)return!0;n.add(o);let u;if(o.suspense?u=r([o.ssContent]):Array.isArray(o.children)?u=r(o.children):(l=o.component)!=null&&l.vnode&&(u=r([(a=o.component)==null?void 0:a.subTree])),u)return u;n.delete(o)}return!1};if(!r([e.subTree]))throw new Error("Could not find original vnode");const i=Array.from(n).reverse();for(const s of i)if(s.component)return s.component;return e}const Lr=oS(vu,t=>{var e;return{activator:"parent",location:((e=t.arg)==null?void 0:e.replace("-"," "))??"top",text:typeof t.value=="boolean"?void 0:t.value}}),dS={__name:"DeleteEvent",props:{event:{type:[Object,null],required:!0}},emits:["deleted"],setup(t,{emit:e}){const{mainDataset:n,contribsDataset:r,layout:i,labelField:s}=at(),l=ie(!1),a=qi(),o=t,u=e;async function c(){var f,g;const d={method:"POST"};let h=`${i==="contrib"?r.href+`/own/user:${(g=(f=a==null?void 0:a.state)==null?void 0:f.user)==null?void 0:g.id}`:n.href}/lines`;i==="contrib"&&o.event.isContrib||i==="admin"&&!o.event.isContrib?(h+="/"+o.event.id,d.method="DELETE"):d.body={operation:"delete",status:"submitted",start:new Date(o.event.start).toISOString(),end:new Date(o.event.end).toISOString(),target_id:o.event.id,payload:JSON.stringify({[s]:o.event.title})};try{await Ne(h,d),l.value=!1,u("deleted"),Lt.value=new Date().getTime()}catch(m){it.value=m.status+" - "+m._data,rt.value=!0}}return(d,h)=>(Z(),ae(Br,{modelValue:l.value,"onUpdate:modelValue":h[2]||(h[2]=f=>l.value=f),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:$(({props:f})=>[bt(_(Le,Me({icon:"mdi-delete",color:"error"},f),null,16),[[Lr,{text:"Supprimer l'événement",location:"right",openDelay:"500"}]])]),default:$(()=>[_(Rn,{outlined:"","data-iframe-height":""},{default:$(()=>[_(Ar,{"primary-title":""},{default:$(()=>[fe(" Supprimer l'événement ? ")]),_:1}),_(Cr,null,{default:$(()=>[_(ts,{"model-value":!0,type:"error"},{default:$(()=>[fe(" Voulez vous vraiment supprimer l'événement ? ")]),_:1})]),_:1}),_(_n,null,{default:$(()=>[_(rn),_(Le,{text:"",onClick:h[0]||(h[0]=f=>l.value=!1)},{default:$(()=>[fe(" Annuler ")]),_:1}),_(Le,{color:"error",onClick:h[1]||(h[1]=f=>c())},{default:$(()=>[fe(" Supprimer ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},fS={__name:"AcceptContribution",props:{event:{type:[Object,null],required:!0}},emits:["accepted"],setup(t,{emit:e}){const{config:n,mainDataset:r,contribsDataset:i}=at(),s=ie(!1),l=t,a=e;async function o(){const u={method:n.deleteModeratedContribs?"DELETE":"PATCH"};if(!n.deleteModeratedContribs&&(u.body={status:"accepted"},l.event.operation==="update")){const c=(await Ne(`${r.href}/lines?_id_eq=${l.event.target_id}`)).results.pop();Object.keys(c).filter(d=>d.startsWith("_")).forEach(d=>delete c[d]),u.body.original=JSON.stringify(c)}try{await Ne(`${r.href}/lines${l.event.target_id?"/"+l.event.target_id:""}`,{method:l.event.target_id?"PUT":"POST",body:l.event.payload}),await Ne(`${i.href}/lines/${l.event.id}`,u),s.value=!1,a("accepted"),Lt.value=new Date().getTime()}catch(c){console.log(c),it.value=c.status+" - "+c._data,rt.value=!0}}return(u,c)=>(Z(),ae(Br,{modelValue:s.value,"onUpdate:modelValue":c[2]||(c[2]=d=>s.value=d),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:$(({props:d})=>[bt(_(Le,Me({icon:"mdi-check",color:"success"},d),null,16),[[Lr,{text:"Accepter la contribution",location:"right",openDelay:"500"}]])]),default:$(()=>[_(Rn,{outlined:"","data-iframe-height":""},{default:$(()=>[_(Ar,{"primary-title":""},{default:$(()=>[fe(" Accepter la contribution ? ")]),_:1}),_(Cr,null,{default:$(()=>[_(ts,{"model-value":!0,type:"success"},{default:$(()=>[fe(" Voulez vous vraiment accepter la contribution ? ")]),_:1})]),_:1}),_(_n,null,{default:$(()=>[_(rn),_(Le,{text:"",onClick:c[0]||(c[0]=d=>s.value=!1)},{default:$(()=>[fe(" Annuler ")]),_:1}),_(Le,{color:"success",onClick:c[1]||(c[1]=d=>o())},{default:$(()=>[fe(" Accepter ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},hS={__name:"RefuseContribution",props:{event:{type:[Object,null],required:!0}},emits:["refused"],setup(t,{emit:e}){const{mainDataset:n,contribsDataset:r,config:i}=at(),s=ie(!1),l=t,a=e;async function o(){const u=`${r.href}/lines/${l.event.id}`,c={method:i.deleteModeratedContribs?"DELETE":"PATCH"};if(!i.deleteModeratedContribs&&(c.body={status:"refused"},l.event.operation==="update")){const d=(await Ne(`${n.href}/lines?_id_eq=${l.event.target_id}`)).results.pop();Object.keys(d).filter(h=>h.startsWith("_")).forEach(h=>delete d[h]),c.body.original=JSON.stringify(d)}try{await Ne(u,c),s.value=!1,a("refused"),Lt.value=new Date().getTime()}catch(d){it.value=d.status+" - "+d._data,rt.value=!0}}return(u,c)=>(Z(),ae(Br,{modelValue:s.value,"onUpdate:modelValue":c[2]||(c[2]=d=>s.value=d),"close-on-content-click":!1,"close-on-click":!1,"min-width":"300px","max-width":"500px"},{activator:$(({props:d})=>[bt(_(Le,Me({icon:"mdi-close",color:"error"},d),null,16),[[Lr,{text:"Refuser la contribution",location:"right",openDelay:"500"}]])]),default:$(()=>[_(Rn,{outlined:"","data-iframe-height":""},{default:$(()=>[_(Ar,{"primary-title":""},{default:$(()=>[fe(" Refuser la contribution ? ")]),_:1}),_(Cr,null,{default:$(()=>[_(ts,{"model-value":!0,type:"error"},{default:$(()=>[fe(" Voulez vous vraiment refuser la contribution ? ")]),_:1})]),_:1}),_(_n,null,{default:$(()=>[_(rn),_(Le,{text:"",onClick:c[0]||(c[0]=d=>s.value=!1)},{default:$(()=>[fe(" Annuler ")]),_:1}),_(Le,{color:"error",onClick:c[1]||(c[1]=d=>o())},{default:$(()=>[fe(" Refuser ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},gS={__name:"ContributionStatus",props:{value:{type:String,required:!0}},setup(t){const e={submitted:"Attente de validation",accepted:"Acceptée",refused:"Refusée"},n={submitted:"warning",accepted:"success",refused:"error"};return(r,i)=>(Z(),ae(Cu,{density:"compact",size:"small",variant:"flat",color:n[t.value]},{default:$(()=>[fe(je(e[t.value]),1)]),_:1},8,["color"]))}};var Oe=-1,De=1,ge=0;function En(t,e,n,r,i){if(t===e)return t?[[ge,t]]:[];if(n!=null){var s=AS(t,e,n);if(s)return s}var l=Fs(t,e),a=t.substring(0,l);t=t.substring(l),e=e.substring(l),l=Vr(t,e);var o=t.substring(t.length-l);t=t.substring(0,t.length-l),e=e.substring(0,e.length-l);var u=pS(t,e);return a&&u.unshift([ge,a]),o&&u.push([ge,o]),zs(u,i),r&&bS(u),u}function pS(t,e){var n;if(!t)return[[De,e]];if(!e)return[[Oe,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,s=r.indexOf(i);if(s!==-1)return n=[[De,r.substring(0,s)],[ge,i],[De,r.substring(s+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=Oe),n;if(i.length===1)return[[Oe,t],[De,e]];var l=vS(t,e);if(l){var a=l[0],o=l[1],u=l[2],c=l[3],d=l[4],h=En(a,u),f=En(o,c);return h.concat([[ge,d]],f)}return mS(t,e)}function mS(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),s=i,l=2*i,a=new Array(l),o=new Array(l),u=0;u<l;u++)a[u]=-1,o[u]=-1;a[s+1]=0,o[s+1]=0;for(var c=n-r,d=c%2!==0,h=0,f=0,g=0,m=0,p=0;p<i;p++){for(var b=-p+h;b<=p-f;b+=2){var S=s+b,C;b===-p||b!==p&&a[S-1]<a[S+1]?C=a[S+1]:C=a[S-1]+1;for(var D=C-b;C<n&&D<r&&t.charAt(C)===e.charAt(D);)C++,D++;if(a[S]=C,C>n)f+=2;else if(D>r)h+=2;else if(d){var k=s+c-b;if(k>=0&&k<l&&o[k]!==-1){var E=n-o[k];if(C>=E)return Ea(t,e,C,D)}}}for(var y=-p+g;y<=p-m;y+=2){var k=s+y,E;y===-p||y!==p&&o[k-1]<o[k+1]?E=o[k+1]:E=o[k-1]+1;for(var A=E-y;E<n&&A<r&&t.charAt(n-E-1)===e.charAt(r-A-1);)E++,A++;if(o[k]=E,E>n)m+=2;else if(A>r)g+=2;else if(!d){var S=s+c-y;if(S>=0&&S<l&&a[S]!==-1){var C=a[S],D=s+C-S;if(E=n-E,C>=E)return Ea(t,e,C,D)}}}}return[[Oe,t],[De,e]]}function Ea(t,e,n,r){var i=t.substring(0,n),s=e.substring(0,r),l=t.substring(n),a=e.substring(r),o=En(i,s),u=En(l,a);return o.concat(u)}function Fs(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,s=0;n<i;)t.substring(s,i)==e.substring(s,i)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return Hu(t.charCodeAt(i-1))&&i--,i}function wa(t,e){var n=t.length,r=e.length;if(n==0||r==0)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var s=0,l=1;;){var a=t.substring(i-l),o=e.indexOf(a);if(o==-1)return s;l+=o,(o==0||t.substring(i-l)==e.substring(0,l))&&(s=l,l++)}}function Vr(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,s=0;n<i;)t.substring(t.length-i,t.length-s)==e.substring(e.length-i,e.length-s)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return Bu(t.charCodeAt(t.length-i))&&i--,i}function vS(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||r.length*2<n.length)return null;function i(f,g,m){for(var p=f.substring(m,m+Math.floor(f.length/4)),b=-1,S="",C,D,k,E;(b=g.indexOf(p,b+1))!==-1;){var y=Fs(f.substring(m),g.substring(b)),A=Vr(f.substring(0,m),g.substring(0,b));S.length<A+y&&(S=g.substring(b-A,b)+g.substring(b,b+y),C=f.substring(0,m-A),D=f.substring(m+y),k=g.substring(0,b-A),E=g.substring(b+y))}return S.length*2>=f.length?[C,D,k,E,S]:null}var s=i(n,r,Math.ceil(n.length/4)),l=i(n,r,Math.ceil(n.length/2)),a;if(!s&&!l)return null;l?s?a=s[4].length>l[4].length?s:l:a=l:a=s;var o,u,c,d;t.length>e.length?(o=a[0],u=a[1],c=a[2],d=a[3]):(c=a[0],d=a[1],o=a[2],u=a[3]);var h=a[4];return[o,u,c,d,h]}function bS(t){for(var e=!1,n=[],r=0,i=null,s=0,l=0,a=0,o=0,u=0;s<t.length;)t[s][0]==ge?(n[r++]=s,l=o,a=u,o=0,u=0,i=t[s][1]):(t[s][0]==De?o+=t[s][1].length:u+=t[s][1].length,i&&i.length<=Math.max(l,a)&&i.length<=Math.max(o,u)&&(t.splice(n[r-1],0,[Oe,i]),t[n[r-1]+1][0]=De,r--,r--,s=r>0?n[r-1]:-1,l=0,a=0,o=0,u=0,i=null,e=!0)),s++;for(e&&zs(t),ES(t),s=1;s<t.length;){if(t[s-1][0]==Oe&&t[s][0]==De){var c=t[s-1][1],d=t[s][1],h=wa(c,d),f=wa(d,c);h>=f?(h>=c.length/2||h>=d.length/2)&&(t.splice(s,0,[ge,d.substring(0,h)]),t[s-1][1]=c.substring(0,c.length-h),t[s+1][1]=d.substring(h),s++):(f>=c.length/2||f>=d.length/2)&&(t.splice(s,0,[ge,c.substring(0,f)]),t[s-1][0]=De,t[s-1][1]=d.substring(0,d.length-f),t[s+1][0]=Oe,t[s+1][1]=c.substring(f),s++),s++}s++}}var Aa=/[^a-zA-Z0-9]/,Ca=/\s/,Da=/[\r\n]/,yS=/\n\r?\n$/,SS=/^\r?\n\r?\n/;function ES(t){function e(f,g){if(!f||!g)return 6;var m=f.charAt(f.length-1),p=g.charAt(0),b=m.match(Aa),S=p.match(Aa),C=b&&m.match(Ca),D=S&&p.match(Ca),k=C&&m.match(Da),E=D&&p.match(Da),y=k&&f.match(yS),A=E&&g.match(SS);return y||A?5:k||E?4:b&&!C&&D?3:C||D?2:b||S?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==ge&&t[n+1][0]==ge){var r=t[n-1][1],i=t[n][1],s=t[n+1][1],l=Vr(r,i);if(l){var a=i.substring(i.length-l);r=r.substring(0,r.length-l),i=a+i.substring(0,i.length-l),s=a+s}for(var o=r,u=i,c=s,d=e(r,i)+e(i,s);i.charAt(0)===s.charAt(0);){r+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var h=e(r,i)+e(i,s);h>=d&&(d=h,o=r,u=i,c=s)}t[n-1][1]!=o&&(o?t[n-1][1]=o:(t.splice(n-1,1),n--),t[n][1]=u,c?t[n+1][1]=c:(t.splice(n+1,1),n--))}n++}}function zs(t,e){t.push([ge,""]);for(var n=0,r=0,i=0,s="",l="",a;n<t.length;){if(n<t.length-1&&!t[n][1]){t.splice(n,1);continue}switch(t[n][0]){case De:i++,l+=t[n][1],n++;break;case Oe:r++,s+=t[n][1],n++;break;case ge:var o=n-i-r-1;if(e){if(o>=0&&Vu(t[o][1])){var u=t[o][1].slice(-1);if(t[o][1]=t[o][1].slice(0,-1),s=u+s,l=u+l,!t[o][1]){t.splice(o,1),n--;var c=o-1;t[c]&&t[c][0]===De&&(i++,l=t[c][1]+l,c--),t[c]&&t[c][0]===Oe&&(r++,s=t[c][1]+s,c--),o=c}}if(Lu(t[n][1])){var u=t[n][1].charAt(0);t[n][1]=t[n][1].slice(1),s+=u,l+=u}}if(n<t.length-1&&!t[n][1]){t.splice(n,1);break}if(s.length>0||l.length>0){s.length>0&&l.length>0&&(a=Fs(l,s),a!==0&&(o>=0?t[o][1]+=l.substring(0,a):(t.splice(0,0,[ge,l.substring(0,a)]),n++),l=l.substring(a),s=s.substring(a)),a=Vr(l,s),a!==0&&(t[n][1]=l.substring(l.length-a)+t[n][1],l=l.substring(0,l.length-a),s=s.substring(0,s.length-a)));var d=i+r;s.length===0&&l.length===0?(t.splice(n-d,d),n=n-d):s.length===0?(t.splice(n-d,d,[De,l]),n=n-d+1):l.length===0?(t.splice(n-d,d,[Oe,s]),n=n-d+1):(t.splice(n-d,d,[Oe,s],[De,l]),n=n-d+2)}n!==0&&t[n-1][0]===ge?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,s="",l="";break}}t[t.length-1][1]===""&&t.pop();var h=!1;for(n=1;n<t.length-1;)t[n-1][0]===ge&&t[n+1][0]===ge&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),h=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),h=!0)),n++;h&&zs(t,e)}function Hu(t){return t>=55296&&t<=56319}function Bu(t){return t>=56320&&t<=57343}function Lu(t){return Bu(t.charCodeAt(0))}function Vu(t){return Hu(t.charCodeAt(t.length-1))}function wS(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function yi(t,e,n,r){return Vu(t)||Lu(r)?null:wS([[ge,t],[Oe,e],[De,n],[ge,r]])}function AS(t,e,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,s=t.length,l=e.length;if(r.length===0&&(i===null||i.length===0)){var a=r.index,o=t.slice(0,a),u=t.slice(a),c=i?i.index:null;e:{var d=a+l-s;if(c!==null&&c!==d||d<0||d>l)break e;var h=e.slice(0,d),f=e.slice(d);if(f!==u)break e;var g=Math.min(a,d),m=o.slice(0,g),p=h.slice(0,g);if(m!==p)break e;var b=o.slice(g),S=h.slice(g);return yi(m,b,S,u)}e:{if(c!==null&&c!==a)break e;var C=a,h=e.slice(0,C),f=e.slice(C);if(h!==o)break e;var D=Math.min(s-C,l-C),k=u.slice(u.length-D),E=f.slice(f.length-D);if(k!==E)break e;var b=u.slice(0,u.length-D),S=f.slice(0,f.length-D);return yi(o,b,S,k)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),k=t.slice(r.index+r.length),g=m.length,D=k.length;if(l<g+D)break e;var p=e.slice(0,g),E=e.slice(l-D);if(m!==p||k!==E)break e;var b=t.slice(g,s-D),S=e.slice(g,l-D);return yi(m,b,S,k)}return null}function jr(t,e,n,r){return En(t,e,n,r,!0)}jr.INSERT=De;jr.DELETE=Oe;jr.EQUAL=ge;var CS=jr;const DS=xa(CS),_S={class:"caption grey--text text--darken-1 pt-2"},RS={__name:"DiffView",props:{item:{type:Object,required:!0},old:{type:Object,required:!0}},setup(t){const{fields:e,mainDataset:n}=at(),r=t,i=On(async()=>Object.keys(r.old).length>1?r.old:(await Ne(`${n.href}/lines?_id_eq=${r.old.id}`)).results.pop(),null),s=F(()=>Object.keys(r.item||{}).concat(Object.keys(i.value||{})).filter((l,a,o)=>o.indexOf(l)===a&&!l.startsWith("_")));return(l,a)=>(Z(!0),ye(Se,null,rr(s.value,o=>(Z(),ae(Rn,{key:o,class:"px-2",flat:""},{default:$(()=>{var u,c;return[tr("div",_S,je(j(e)[o].title?j(e)[o].title:j(e)[o]["x-originalName"]||o),1),(Z(!0),ye(Se,null,rr(j(DS)([(u=j(i))==null?void 0:u[o]].join("").replace(/\r\n/g,`
3
- `),[(c=t.item)==null?void 0:c[o]].join("").replace(/\r\n/g,`
4
- `)),(d,h)=>(Z(),ye("span",{key:h,style:od("white-space: pre-wrap;"+(d[0]?`background:${d[0]>0?"lightgreen":"lightcoral"}`:""))},je(d[0]?d[1].replace(/\n/g,`
5
-  `):d[1]),5))),128))]}),_:2},1024))),128))}},kS={key:0},TS={key:0},xS={__name:"EventDetails",props:{event:{type:[Object,null],required:!0}},emits:["updated"],setup(t,{emit:e}){const n=ud(()=>dd(()=>import("./EventEdit-CSfOzNeo.js").then(b=>b.E),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),{height:r}=Oa(),{mainDataset:i,contribsDataset:s,layout:l,startDateField:a,endDateField:o,dateField:u}=at(),c=e,d=ie("read"),h=t,f=qi();Vt(()=>h.event,b=>{d.value="read"});const g={create:"d'ajout",update:"de modification",delete:"de suppression"},m=On(async()=>{if(!h.event)return null;if(h.event.id||(d.value="edit"),h.event.isContrib){const b={...h.event.payload||{}};return a&&o?(b[a]||(b[a]=h.event.start),b[o]||(b[o]=h.event.end)):u&&!b[u]&&(b[u]=h.event.start),b}else return h.event.id?(await Ne(`${i.href}/lines?_id_eq=${h.event.id}`)).results.pop():{...h.event}},null,{onError:function(b){rt.value=!0,it.value=b.message}});async function p(b){var k,E,y,A,H,x;const S=l==="contrib"?{payload:JSON.stringify(b)}:b;l==="contrib"&&(S.operation=h.event.isContrib?h.event.operation:"update",S.status="submitted",S.start=b[a&&o?a:u],S.end=b[a&&o?o:u],S._owner=(E=(k=f==null?void 0:f.state)==null?void 0:k.user)==null?void 0:E.id,S._ownerName=(A=(y=f==null?void 0:f.state)==null?void 0:y.user)==null?void 0:A.name,h.event.target_id?S.target_id=h.event.target_id:l==="contrib"&&!h.event.isContrib&&(S.target_id=h.event.id));const C={method:"POST",body:S};let D=`${l==="contrib"?s.href+`/own/user:${(x=(H=f==null?void 0:f.state)==null?void 0:H.user)==null?void 0:x.id}`:i.href}/lines`;(l==="contrib"&&h.event.isContrib||l==="admin"&&!h.event.isContrib)&&h.event.id&&(D+="/"+h.event.id,C.method="PUT");try{await Ne(D,C),c("updated"),Lt.value=new Date().getTime()}catch(I){it.value=I.status+" - "+I._data,rt.value=!0}}return(b,S)=>(Z(),ae(Rn,{"max-width":800,"min-width":200,"max-height":j(r)*.8},{default:$(()=>[j(m)?(Z(),ye(Se,{key:0},[d.value==="read"?(Z(),ye(Se,{key:0},[t.event.isContrib?(Z(),ye("div",kS,[fe(" Proposition "+je(g[t.event.operation])+" ",1),j(l)==="admin"?(Z(),ye("span",TS," par "+je(t.event._ownerName),1)):ve("",!0)])):ve("",!0),j(l)!=="simple"?(Z(),ae(_n,{key:1,class:"py-0"},{default:$(()=>[fe(je(j(a)&&j(o)?`${new Date(j(m)[j(a)]).toLocaleString()} - ${new Date(j(m)[j(o)]).toLocaleString()}`:new Date(j(m)[j(u)]).toLocaleDateString())+" ",1),_(rn),!t.event.isContrib||j(l)==="contrib"&&t.event.operation!=="delete"&&t.event.status==="submitted"?bt((Z(),ae(Le,{key:0,icon:"mdi-pencil",color:"primary",onClick:S[0]||(S[0]=C=>d.value="edit")},null,512)),[[Lr,{text:"Modifier l'événement",location:"right",openDelay:"500"}]]):ve("",!0),j(l)==="contrib"&&t.event.status==="submitted"||!t.event.isContrib?(Z(),ae(dS,{key:1,event:t.event,onDeleted:S[1]||(S[1]=C=>c("updated"))},null,8,["event"])):ve("",!0),j(l)==="admin"&&t.event.isContrib&&t.event.status==="submitted"?(Z(),ae(hS,{key:2,event:t.event,onRefused:S[2]||(S[2]=C=>c("updated"))},null,8,["event"])):ve("",!0),j(l)==="admin"&&t.event.isContrib&&t.event.status==="submitted"?(Z(),ae(fS,{key:3,event:t.event,onAccepted:S[3]||(S[3]=C=>c("updated"))},null,8,["event"])):ve("",!0),t.event.isContrib&&(j(l)==="contrib"||t.event.status!=="submitted")?(Z(),ae(gS,{key:4,value:t.event.status},null,8,["value"])):ve("",!0)]),_:1})):ve("",!0),t.event.isContrib&&t.event.operation==="update"?(Z(),ae(RS,{key:2,item:j(m),old:t.event.original||{id:t.event.target_id}},null,8,["item","old"])):(Z(),ae(lS,{key:3,item:j(m)},null,8,["item"]))],64)):ve("",!0),d.value==="edit"?(Z(),ae(cd,{key:1},{fallback:$(()=>[_(Gs,{align:"center",style:{height:"200px"},class:"ma-0"},{default:$(()=>[_(Ys,{class:"text-center"},{default:$(()=>[_(qs,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1})]),default:$(()=>[_(j(n),{item:j(m),onValidate:p,onCancel:S[4]||(S[4]=C=>d.value="read")},null,8,["item"])]),_:1})):ve("",!0)],64)):(Z(),ae(Gs,{key:1,align:"center",style:{height:"200px"},class:"ma-0"},{default:$(()=>[_(Ys,{class:"text-center"},{default:$(()=>[_(qs,{size:80,width:7,color:"primary",indeterminate:""})]),_:1})]),_:1}))]),_:1},8,["max-height"]))}},MS={__name:"Calendar",setup(t){var k;fd(E=>({"64266a6a":j(n).current.value.colors.primary,"314853dc":j(n).current.value.colors.secondary}));const e=qi(),n=hd(),{config:r,color:i,mainDataset:s,contribsDataset:l,layout:a,startDateField:o,endDateField:u,dateField:c,labelField:d}=at(),h=ie(null),f=ie(null),g=ie(null);me.view=me.view||"dayGridMonth";function m(E){return i.type==="monochrome"?i.colors.type==="custom"?i.colors.hexValue:n.current.value.colors[i.colors.strValue]:g0.value[E]}const p={create:"Ajout",update:"Modification",delete:"Suppression"},b=On(async()=>{var y,A;const E=(p0.value||[]).map(H=>({...H,color:m(H.colorFieldValue)}));if(r.crowdSourcing&&a!=="simple"){const H={_c_date_match:me.start+","+me.end,size:1e3,t:Lt.value},I=(await Ne(`${l.href+(a==="contrib"?`/own/user:${(A=(y=e==null?void 0:e.state)==null?void 0:y.user)==null?void 0:A.id}`:"")}/lines`,{params:H})).results.map(N=>{const Y=JSON.parse(N.payload||"{}"),L=N.original?JSON.parse(N.original):void 0;return{editable:a==="contrib",isContrib:!0,operation:N.operation,status:N.status,_owner:N._owner,_ownerName:N._ownerName,id:N._id,target_id:N.target_id,payload:Y,original:L,title:`${Y[d]} - ${p[N.operation]}`,color:r.colorContrib,start:Y[o&&u?o:c],end:o&&u?Y[u]:void 0,allDay:!(o&&u)||new Date(N.end).getTime()-new Date(N.start).getTime()>2*24*60*60*1e3}});return[...E,...I]}else return E},null,{onError:function(E){rt.value=!0,it.value=E.message}});async function S(E){var x,I,N,Y,L,P;const y={};o&&u?(y[(x=E.extendedProps)!=null&&x.isContrib?"start":o]=E.start.toISOString(),y[(I=E.extendedProps)!=null&&I.isContrib?"end":u]=E.end.toISOString()):c&&(y[(N=E.extendedProps)!=null&&N.isContrib?"start":c]=E.start.toISOString(),(Y=E.extendedProps)!=null&&Y.isContrib&&(y.end=E.end.toISOString()));const A=`${(L=E.extendedProps)!=null&&L.isContrib?l.href+`/own/${(P=E.extendedProps)==null?void 0:P._owner}`:s.href}/lines/${E.id}`,H={method:"PATCH",body:y};try{await Ne(A,H),f.value=!1,Lt.value=new Date().getTime()}catch(O){it.value=O.status+" - "+O._data,rt.value=!0}}const C=me.start&&me.end&&new Date((new Date(me.start).getTime()+new Date(me.end).getTime())/2),D=Ta({plugins:[ev,ab,Vv,Eb],initialView:me.view||"dayGridMonth",initialDate:C&&new Date(C)||((k=s.timePeriod)==null?void 0:k.startDate)&&new Date(s.timePeriod.startDate)||new Date,locale:wb,headerToolbar:{start:"prev,next today",center:"title",end:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},events:b,selectable:a!=="simple",datesSet(E){me.start=E.startStr,me.end=E.endStr,me.view=E.view.type},eventClick(E){E.jsEvent.preventDefault();const y=E.event.toJSON();h.value={...y,...y.extendedProps},delete h.value.extendedProps,setTimeout(()=>{f.value=!0},0),g.value=E.el},eventDrop(E){S(E.event)},eventResize(E){S(E.event)},select(E){var A;const y={};if(a!=="contrib")o&&u?(y[o]=E.start.toISOString(),y[u]=E.end.toISOString()):c&&(y[c]=E.start.toISOString());else{y.isContrib=!0,y.operation="create",y.status="submitted",y.start=E.start.toISOString(),y.end=E.end.toISOString();const H=(A=e==null?void 0:e.state)==null?void 0:A.user;H&&(y._owner="user:"+H.id,y._ownerName=H.name)}h.value=y,f.value=!0}});return(E,y)=>(Z(),ye(Se,null,[_(j(Cm),{options:D},null,8,["options"]),_(Br,{modelValue:f.value,"onUpdate:modelValue":y[1]||(y[1]=A=>f.value=A),"close-on-content-click":!1,activator:g.value,location:j(me).view==="dayGridMonth"?"bottom":"start center"},{default:$(()=>[_(xS,{event:h.value,onUpdated:y[0]||(y[0]=A=>f.value=!1)},null,8,["event"])]),_:1},8,["modelValue","activator","location"])],64))}},zS=Object.freeze(Object.defineProperty({__proto__:null,default:MS},Symbol.toStringTag,{value:"Module"}));export{zS as C,VS as V,jS as a,A0 as b,Fi as c,LS as d,Br as e,rn as f,va as g,j0 as h,ya as i,X0 as j,E0 as k,FS as l,wu as m,nS as n,Cu as o,w0 as p,Q0 as q,Y0 as r,W0 as s,zi as t,BS as u};