import{c as Ta,h as qn,d as _a,_ as Ra,S as Ma,P as Pa,N as Na,A as Ia,r as he,a as Fr,o as w,b as T,e as y,f as kt,g as B,i as L,w as re,t as ka,j as x,k as N,F as ne,l as Ve,n as F,v as X,m as xt,L as xa,C as Aa,p as Ha,q as Oa,s as La,u as Fa,x as Ba}from"./app.7c78ec0f.js";import Va from"./vue-select.es.bc0e34ff.js";var Kt=function(t,e){return Kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Kt(t,e)};function R(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Kt(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var v=function(){return v=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},v.apply(this,arguments)};function W(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}var St,P,Gn,Ie,me,Br,Yn,jn,ut={},Zn=[],Ua=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ue(t,e){for(var r in e)t[r]=e[r];return t}function Xn(t){var e=t.parentNode;e&&e.removeChild(t)}function fe(t,e,r){var n,i,a,o={};for(a in e)a=="key"?n=e[a]:a=="ref"?i=e[a]:o[a]=e[a];if(arguments.length>2&&(o.children=arguments.length>3?St.call(arguments,2):r),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)o[a]===void 0&&(o[a]=t.defaultProps[a]);return at(t,o,n,i,null)}function at(t,e,r,n,i){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Gn:i};return i==null&&P.vnode!=null&&P.vnode(a),a}function za(){return{current:null}}function Ee(t){return t.children}function Wa(t,e,r,n,i){var a;for(a in r)a==="children"||a==="key"||a in e||ct(t,a,null,r[a],n);for(a in e)i&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||r[a]===e[a]||ct(t,a,e[a],r[a],n)}function Vr(t,e,r){e[0]==="-"?t.setProperty(e,r==null?"":r):t[e]=r==null?"":typeof r!="number"||Ua.test(e)?r:r+"px"}function ct(t,e,r,n,i){var a;e:if(e==="style")if(typeof r=="string")t.style.cssText=r;else{if(typeof n=="string"&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||Vr(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||Vr(t.style,e,r[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+a]=r,r?n||t.addEventListener(e,a?zr:Ur,a):t.removeEventListener(e,a?zr:Ur,a);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]=r==null?"":r;break e}catch{}typeof r=="function"||(r==null||r===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,r))}}function Ur(t){Ie=!0;try{return this.l[t.type+!1](P.event?P.event(t):t)}finally{Ie=!1}}function zr(t){Ie=!0;try{return this.l[t.type+!0](P.event?P.event(t):t)}finally{Ie=!1}}function ee(t,e){this.props=t,this.context=e}function Ge(t,e){if(e==null)return t.__?Ge(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null)return r.__e;return typeof t.type=="function"?Ge(t):null}function Kn(t){var e,r;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((r=t.__k[e])!=null&&r.__e!=null){t.__e=t.__c.base=r.__e;break}return Kn(t)}}function qa(t){Ie?setTimeout(t):Yn(t)}function Jt(t){(!t.__d&&(t.__d=!0)&&me.push(t)&&!dt.__r++||Br!==P.debounceRendering)&&((Br=P.debounceRendering)||qa)(dt)}function dt(){var t,e,r,n,i,a,o,s;for(me.sort(function(l,c){return l.__v.__b-c.__v.__b});t=me.shift();)t.__d&&(e=me.length,n=void 0,i=void 0,o=(a=(r=t).__v).__e,(s=r.__P)&&(n=[],(i=ue({},a)).__v=a.__v+1,ur(s,a,i,r.__n,s.ownerSVGElement!==void 0,a.__h!=null?[o]:null,n,o==null?Ge(a):o,a.__h),ti(n,a),a.__e!=o&&Kn(a)),me.length>e&&me.sort(function(l,c){return l.__v.__b-c.__v.__b}));dt.__r=0}function Jn(t,e,r,n,i,a,o,s,l,c){var u,d,p,f,h,m,C,g=n&&n.__k||Zn,S=g.length;for(r.__k=[],u=0;u<e.length;u++)if((f=r.__k[u]=(f=e[u])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?at(null,f,null,null,f):Array.isArray(f)?at(Ee,{children:f},null,null,null):f.__b>0?at(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=r,f.__b=r.__b+1,(p=g[u])===null||p&&f.key==p.key&&f.type===p.type)g[u]=void 0;else for(d=0;d<S;d++){if((p=g[d])&&f.key==p.key&&f.type===p.type){g[d]=void 0;break}p=null}ur(t,f,p=p||ut,i,a,o,s,l,c),h=f.__e,(d=f.ref)&&p.ref!=d&&(C||(C=[]),p.ref&&C.push(p.ref,null,f),C.push(d,f.__c||h,f)),h!=null?(m==null&&(m=h),typeof f.type=="function"&&f.__k===p.__k?f.__d=l=Qn(f,l,t):l=$n(t,f,p,g,h,l),typeof r.type=="function"&&(r.__d=l)):l&&p.__e==l&&l.parentNode!=t&&(l=Ge(p))}for(r.__e=m,u=S;u--;)g[u]!=null&&(typeof r.type=="function"&&g[u].__e!=null&&g[u].__e==r.__d&&(r.__d=ei(n).nextSibling),ni(g[u],g[u]));if(C)for(u=0;u<C.length;u++)ri(C[u],C[++u],C[++u])}function Qn(t,e,r){for(var n,i=t.__k,a=0;i&&a<i.length;a++)(n=i[a])&&(n.__=t,e=typeof n.type=="function"?Qn(n,e,r):$n(r,n,n,i,n.__e,e));return e}function ft(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(r){ft(r,e)}):e.push(t)),e}function $n(t,e,r,n,i,a){var o,s,l;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(r==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==t)t.appendChild(i),o=null;else{for(s=a,l=0;(s=s.nextSibling)&&l<n.length;l+=1)if(s==i)break e;t.insertBefore(i,a),o=a}return o!==void 0?o:i.nextSibling}function ei(t){var e,r,n;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((r=t.__k[e])&&(n=ei(r)))return n}return null}function ur(t,e,r,n,i,a,o,s,l){var c,u,d,p,f,h,m,C,g,S,_,D,H,I,O,M=e.type;if(e.constructor!==void 0)return null;r.__h!=null&&(l=r.__h,s=e.__e=r.__e,e.__h=null,a=[s]),(c=P.__b)&&c(e);try{e:if(typeof M=="function"){if(C=e.props,g=(c=M.contextType)&&n[c.__c],S=c?g?g.props.value:c.__:n,r.__c?m=(u=e.__c=r.__c).__=u.__E:("prototype"in M&&M.prototype.render?e.__c=u=new M(C,S):(e.__c=u=new ee(C,S),u.constructor=M,u.render=Ya),g&&g.sub(u),u.props=C,u.state||(u.state={}),u.context=S,u.__n=n,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ue({},u.__s)),ue(u.__s,M.getDerivedStateFromProps(C,u.__s))),p=u.props,f=u.state,u.__v=e,d)M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(M.getDerivedStateFromProps==null&&C!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(C,S),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(C,u.__s,S)===!1||e.__v===r.__v){for(e.__v!==r.__v&&(u.props=C,u.state=u.__s,u.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.forEach(function(z){z&&(z.__=e)}),_=0;_<u._sb.length;_++)u.__h.push(u._sb[_]);u._sb=[],u.__h.length&&o.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(C,u.__s,S),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,f,h)})}if(u.context=S,u.props=C,u.__P=t,D=P.__r,H=0,"prototype"in M&&M.prototype.render){for(u.state=u.__s,u.__d=!1,D&&D(e),c=u.render(u.props,u.state,u.context),I=0;I<u._sb.length;I++)u.__h.push(u._sb[I]);u._sb=[]}else do u.__d=!1,D&&D(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++H<25);u.state=u.__s,u.getChildContext!=null&&(n=ue(ue({},n),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(h=u.getSnapshotBeforeUpdate(p,f)),O=c!=null&&c.type===Ee&&c.key==null?c.props.children:c,Jn(t,Array.isArray(O)?O:[O],e,r,n,i,a,o,s,l),u.base=e.__e,e.__h=null,u.__h.length&&o.push(u),m&&(u.__E=u.__=null),u.__e=!1}else a==null&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=Ga(r.__e,e,r,n,i,a,o,l);(c=P.diffed)&&c(e)}catch(z){e.__v=null,(l||a!=null)&&(e.__e=s,e.__h=!!l,a[a.indexOf(s)]=null),P.__e(z,e,r)}}function ti(t,e){P.__c&&P.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(n){n.call(r)})}catch(n){P.__e(n,r.__v)}})}function Ga(t,e,r,n,i,a,o,s){var l,c,u,d=r.props,p=e.props,f=e.type,h=0;if(f==="svg"&&(i=!0),a!=null){for(;h<a.length;h++)if((l=a[h])&&"setAttribute"in l==!!f&&(f?l.localName===f:l.nodeType===3)){t=l,a[h]=null;break}}if(t==null){if(f===null)return document.createTextNode(p);t=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,p.is&&p),a=null,s=!1}if(f===null)d===p||s&&t.data===p||(t.data=p);else{if(a=a&&St.call(t.childNodes),c=(d=r.props||ut).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!s){if(a!=null)for(d={},h=0;h<t.attributes.length;h++)d[t.attributes[h].name]=t.attributes[h].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(Wa(t,p,d,i,s),u)e.__k=[];else if(h=e.props.children,Jn(t,Array.isArray(h)?h:[h],e,r,n,i&&f!=="foreignObject",a,o,a?a[0]:r.__k&&Ge(r,0),s),a!=null)for(h=a.length;h--;)a[h]!=null&&Xn(a[h]);s||("value"in p&&(h=p.value)!==void 0&&(h!==t.value||f==="progress"&&!h||f==="option"&&h!==d.value)&&ct(t,"value",h,d.value,!1),"checked"in p&&(h=p.checked)!==void 0&&h!==t.checked&&ct(t,"checked",h,d.checked,!1))}return t}function ri(t,e,r){try{typeof t=="function"?t(e):t.current=e}catch(n){P.__e(n,r)}}function ni(t,e,r){var n,i;if(P.unmount&&P.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||ri(n,null,e)),(n=t.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){P.__e(a,e)}n.base=n.__P=null,t.__c=void 0}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&ni(n[i],e,r||typeof t.type!="function");r||t.__e==null||Xn(t.__e),t.__=t.__e=t.__d=void 0}function Ya(t,e,r){return this.constructor(t,r)}function Ye(t,e,r){var n,i,a;P.__&&P.__(t,e),i=(n=typeof r=="function")?null:r&&r.__k||e.__k,a=[],ur(e,t=(!n&&r||e).__k=fe(Ee,null,[t]),i||ut,ut,e.ownerSVGElement!==void 0,!n&&r?[r]:i?null:e.firstChild?St.call(e.childNodes):null,a,!n&&r?r:i?i.__e:e.firstChild,n),ti(a,t)}function ja(t,e){var r={__c:e="__cC"+jn++,__:t,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,a;return this.getChildContext||(i=[],(a={})[e]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(s){s.__e=!0,Jt(s)})},this.sub=function(o){i.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),s&&s.call(o)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}St=Zn.slice,P={__e:function(t,e,r,n){for(var i,a,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(s){t=s}throw t}},Gn=0,Ie=!1,ee.prototype.setState=function(t,e){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ue({},this.state),typeof t=="function"&&(t=t(ue({},r),this.props)),t&&ue(r,t),t!=null&&this.__v&&(e&&this._sb.push(e),Jt(this))},ee.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Jt(this))},ee.prototype.render=Ee,me=[],Yn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dt.__r=0,jn=0;var ie,At,Wr,ii=[],Ht=[],qr=P.__b,Gr=P.__r,Yr=P.diffed,jr=P.__c,Zr=P.unmount;function Za(){for(var t;t=ii.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ot),t.__H.__h.forEach(Qt),t.__H.__h=[]}catch(e){t.__H.__h=[],P.__e(e,t.__v)}}P.__b=function(t){ie=null,qr&&qr(t)},P.__r=function(t){Gr&&Gr(t);var e=(ie=t.__c).__H;e&&(At===ie?(e.__h=[],ie.__h=[],e.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Ht,r.__N=r.i=void 0})):(e.__h.forEach(ot),e.__h.forEach(Qt),e.__h=[])),At=ie},P.diffed=function(t){Yr&&Yr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ii.push(e)!==1&&Wr===P.requestAnimationFrame||((Wr=P.requestAnimationFrame)||Xa)(Za)),e.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Ht&&(r.__=r.__V),r.i=void 0,r.__V=Ht})),At=ie=null},P.__c=function(t,e){e.some(function(r){try{r.__h.forEach(ot),r.__h=r.__h.filter(function(n){return!n.__||Qt(n)})}catch(n){e.some(function(i){i.__h&&(i.__h=[])}),e=[],P.__e(n,r.__v)}}),jr&&jr(t,e)},P.unmount=function(t){Zr&&Zr(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ot(n)}catch(i){e=i}}),r.__H=void 0,e&&P.__e(e,r.__v))};var Xr=typeof requestAnimationFrame=="function";function Xa(t){var e,r=function(){clearTimeout(n),Xr&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);Xr&&(e=requestAnimationFrame(r))}function ot(t){var e=ie,r=t.__c;typeof r=="function"&&(t.__c=void 0,r()),ie=e}function Qt(t){var e=ie;t.__c=t.__(),ie=e}function Ka(t,e){for(var r in e)t[r]=e[r];return t}function Kr(t,e){for(var r in t)if(r!=="__source"&&!(r in e))return!0;for(var n in e)if(n!=="__source"&&t[n]!==e[n])return!0;return!1}function Jr(t){this.props=t}(Jr.prototype=new ee).isPureReactComponent=!0,Jr.prototype.shouldComponentUpdate=function(t,e){return Kr(this.props,t)||Kr(this.state,e)};var Qr=P.__b;P.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Qr&&Qr(t)};var Ja=P.__e;P.__e=function(t,e,r,n){if(t.then){for(var i,a=e;a=a.__;)if((i=a.__c)&&i.__c)return e.__e==null&&(e.__e=r.__e,e.__k=r.__k),i.__c(t,e)}Ja(t,e,r,n)};var $r=P.unmount;function ai(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Ka({},t)).__c!=null&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return ai(n,e,r)})),t}function oi(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return oi(n,e,r)}),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}function Ot(){this.__u=0,this.t=null,this.__b=null}function si(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function et(){this.u=null,this.o=null}P.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),$r&&$r(t)},(Ot.prototype=new ee).__c=function(t,e){var r=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var i=si(n.__v),a=!1,o=function(){a||(a=!0,r.__R=null,i?i(s):s())};r.__R=o;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=oi(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.t.pop();)u.forceUpdate()}},l=e.__h===!0;n.__u++||l||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(o,o)},Ot.prototype.componentWillUnmount=function(){this.t=[]},Ot.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=ai(this.__b,r,n.__O=n.__P)}this.__b=null}var i=e.__a&&fe(Ee,null,t.fallback);return i&&(i.__h=null),[fe(Ee,null,e.__a?null:t.children),i]};var en=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.u=r=r[2]}};function Qa(t){return this.getChildContext=function(){return t.context},t.children}function $a(t){var e=this,r=t.i;e.componentWillUnmount=function(){Ye(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),t.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,i){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),Ye(fe(Qa,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function eo(t,e){var r=fe($a,{__v:t,i:e});return r.containerInfo=e,r}(et.prototype=new ee).__a=function(t){var e=this,r=si(e.__v),n=e.o.get(t);return n[0]++,function(i){var a=function(){e.props.revealOrder?(n.push(i),en(e,t,n)):i()};r?r(a):a()}},et.prototype.render=function(t){this.u=null,this.o=new Map;var e=ft(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},et.prototype.componentDidUpdate=et.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,r){en(t,r,e)})};var to=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ro=/^(?: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]/,no=typeof document<"u",io=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ee.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var tn=P.event;function ao(){}function oo(){return this.cancelBubble}function so(){return this.defaultPrevented}P.event=function(t){return tn&&(t=tn(t)),t.persist=ao,t.isPropagationStopped=oo,t.isDefaultPrevented=so,t.nativeEvent=t};var rn={configurable:!0,get:function(){return this.class}},nn=P.vnode;P.vnode=function(t){var e=t.type,r=t.props,n=r;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var a in n={},r){var o=r[a];no&&a==="children"&&e==="noscript"||a==="value"&&"defaultValue"in r&&o==null||(a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!io(r.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&ro.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),n[a]&&(a="oninputCapture")),n[a]=o)}e=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=ft(r.children).forEach(function(s){s.props.selected=n.value.indexOf(s.props.value)!=-1})),e=="select"&&n.defaultValue!=null&&(n.value=ft(r.children).forEach(function(s){s.props.selected=n.multiple?n.defaultValue.indexOf(s.props.value)!=-1:n.defaultValue==s.props.value})),t.props=n,r.class!=r.className&&(rn.enumerable="className"in r,r.className!=null&&(n.class=r.className),Object.defineProperty(n,"className",rn))}t.$$typeof=to,nn&&nn(t)};var an=P.__r;P.__r=function(t){an&&an(t),t.__c};var on=typeof globalThis<"u"?globalThis:window;on.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):on.FullCalendarVDom={Component:ee,createElement:fe,render:Ye,createRef:za,Fragment:Ee,createContext:co,createPortal:eo,flushSync:lo,unmountComponentAtNode:fo};function lo(t){t();var e=P.debounceRendering,r=[];function n(i){r.push(i)}for(P.debounceRendering=n,Ye(fe(uo,{}),document.createElement("div"));r.length;)r.shift()();P.debounceRendering=e}var uo=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){return fe("div",{})},e.prototype.componentDidMount=function(){this.setState({})},e}(ee);function co(t){var e=ja(t),r=e.Provider;return e.Provider=function(){var n=this,i=!this.getChildContext,a=r.apply(this,arguments);if(i){var o=[];this.shouldComponentUpdate=function(s){n.props.value!==s.value&&o.forEach(function(l){l.context=s.value,l.forceUpdate()})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),l&&l.call(s)}}}return a},e}function fo(t){Ye(null,t)}if(typeof FullCalendarVDom>"u")throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var cr=FullCalendarVDom.Component,b=FullCalendarVDom.createElement,po=FullCalendarVDom.render,$=FullCalendarVDom.createRef,K=FullCalendarVDom.Fragment,li=FullCalendarVDom.createContext,ho=FullCalendarVDom.createPortal,sn=FullCalendarVDom.flushSync,vo=FullCalendarVDom.unmountComponentAtNode;/*! FullCalendar v5.11.5 Docs & License: https://fullcalendar.io/ (c) 2022 Adam Shaw */var _e=function(){function t(e,r){this.context=e,this.internalEventSource=r}return t.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},t.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(t.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),t}();function dr(t){t.parentNode&&t.parentNode.removeChild(t)}function j(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(mo(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function mo(t,e){var r=t.matches||t.matchesSelector||t.msMatchesSelector;return r.call(t,e)}function go(t,e){for(var r=t instanceof HTMLElement?[t]:t,n=[],i=0;i<r.length;i+=1)for(var a=r[i].querySelectorAll(e),o=0;o<a.length;o+=1)n.push(a[o]);return n}var yo=/(top|left|right|bottom|width|height)$/i;function Ue(t,e){for(var r in e)ui(t,r,e[r])}function ui(t,e,r){r==null?t.style[e]="":typeof r=="number"&&yo.test(e)?t.style[e]=r+"px":t.style[e]=r}function ci(t){var e,r;return(r=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&r!==void 0?r:t.target}function di(t){return t.getRootNode?t.getRootNode():document}var ln=0;function wt(){return ln+=1,"fc-dom-"+ln}function Dt(t){t.preventDefault()}function bo(t,e){return function(r){var n=j(r.target,t);n&&e.call(n,r,n)}}function fi(t,e,r,n){var i=bo(r,n);return t.addEventListener(e,i),function(){t.removeEventListener(e,i)}}function Eo(t,e,r,n){var i;return fi(t,"mouseover",e,function(a,o){if(o!==i){i=o,r(a,o);var s=function(l){i=null,n(l,o),o.removeEventListener("mouseleave",s)};o.addEventListener("mouseleave",s)}})}var un=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Co(t,e){var r=function(n){e(n),un.forEach(function(i){t.removeEventListener(i,r)})};un.forEach(function(n){t.addEventListener(n,r)})}function pi(t){return v({onClick:t},hi(t))}function hi(t){return{tabIndex:0,onKeyDown:function(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}var cn=0;function He(){return cn+=1,String(cn)}function fr(){document.body.classList.add("fc-not-allowed")}function pr(){document.body.classList.remove("fc-not-allowed")}function So(t){t.classList.add("fc-unselectable"),t.addEventListener("selectstart",Dt)}function wo(t){t.classList.remove("fc-unselectable"),t.removeEventListener("selectstart",Dt)}function Do(t){t.addEventListener("contextmenu",Dt)}function To(t){t.removeEventListener("contextmenu",Dt)}function _o(t){var e=[],r=[],n,i;for(typeof t=="string"?r=t.split(/\s*,\s*/):typeof t=="function"?r=[t]:Array.isArray(t)&&(r=t),n=0;n<r.length;n+=1)i=r[n],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 Ro(t,e,r){var n,i;for(n=0;n<r.length;n+=1)if(i=Mo(t,e,r[n]),i)return i;return 0}function Mo(t,e,r){return r.func?r.func(t,e):Po(t[r.field],e[r.field])*(r.order||1)}function Po(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 Lt(t,e){var r=String(t);return"000".substr(0,e-r.length)+r}function ze(t,e,r){return typeof t=="function"?t.apply(void 0,e):typeof t=="string"?e.reduce(function(n,i,a){return n.replace("$"+a,i||"")},t):r}function No(t,e){return t-e}function Ft(t){return t%1===0}function Io(t){var e=t.querySelector(".fc-scrollgrid-shrink-frame"),r=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!r)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+r.getBoundingClientRect().width}var ko=["sun","mon","tue","wed","thu","fri","sat"];function dn(t,e){var r=ce(t);return r[2]+=e*7,J(r)}function Z(t,e){var r=ce(t);return r[2]+=e,J(r)}function Ce(t,e){var r=ce(t);return r[6]+=e,J(r)}function xo(t,e){return Oe(t,e)/7}function Oe(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Ao(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Ho(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function Oo(t,e){return(e.valueOf()-t.valueOf())/1e3}function Lo(t,e){var r=V(t),n=V(e);return{years:0,months:0,days:Math.round(Oe(r,n)),milliseconds:e.valueOf()-n.valueOf()-(t.valueOf()-r.valueOf())}}function Fo(t,e){var r=pt(t,e);return r!==null&&r%7===0?r/7:null}function pt(t,e){return de(t)===de(e)?Math.round(Oe(t,e)):null}function V(t){return J([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Bo(t){return J([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Vo(t){return J([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Uo(t){return J([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function zo(t,e,r){var n=t.getUTCFullYear(),i=Bt(t,n,e,r);if(i<1)return Bt(t,n-1,e,r);var a=Bt(t,n+1,e,r);return a>=1?Math.min(i,a):i}function Bt(t,e,r,n){var i=J([e,0,1+Wo(e,r,n)]),a=V(t),o=Math.round(Oe(i,a));return Math.floor(o/7)+1}function Wo(t,e,r){var n=7+e-r,i=(7+J([t,0,n]).getUTCDay()-e)%7;return-i+n-1}function fn(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function pn(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 ce(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function J(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC.apply(Date,t))}function vi(t){return!isNaN(t.valueOf())}function de(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function hr(t,e,r,n){return{instanceId:He(),defId:t,range:e,forcedStartTzo:r==null?null:r,forcedEndTzo:n==null?null:n}}var ht=Object.prototype.hasOwnProperty;function vr(t,e){var r={};if(e)for(var n in e){for(var i=[],a=t.length-1;a>=0;a-=1){var o=t[a][n];if(typeof o=="object"&&o)i.unshift(o);else if(o!==void 0){r[n]=o;break}}i.length&&(r[n]=vr(i))}for(var a=t.length-1;a>=0;a-=1){var s=t[a];for(var l in s)l in r||(r[l]=s[l])}return r}function Se(t,e){var r={};for(var n in t)e(t[n],n)&&(r[n]=t[n]);return r}function we(t,e){var r={};for(var n in t)r[n]=e(t[n],n);return r}function mi(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];e[i]=!0}return e}function mr(t){var e=[];for(var r in t)e.push(t[r]);return e}function oe(t,e){if(t===e)return!0;for(var r in t)if(ht.call(t,r)&&!(r in e))return!1;for(var r in e)if(ht.call(e,r)&&t[r]!==e[r])return!1;return!0}function hn(t,e){var r=[];for(var n in t)ht.call(t,n)&&(n in e||r.push(n));for(var n in e)ht.call(e,n)&&t[n]!==e[n]&&r.push(n);return r}function Vt(t,e,r){if(r===void 0&&(r={}),t===e)return!0;for(var n in e)if(!(n in t&&qo(t[n],e[n],r[n])))return!1;for(var n in t)if(!(n in e))return!1;return!0}function qo(t,e,r){return t===e||r===!0?!0:r?r(t,e):!1}function Go(t,e,r,n){e===void 0&&(e=0),n===void 0&&(n=1);var i=[];r==null&&(r=Object.keys(t).length);for(var a=e;a<r;a+=n){var o=t[a];o!==void 0&&i.push(o)}return i}function Yo(t,e,r,n){for(var i=0;i<n.length;i+=1){var a=n[i].parse(t,r);if(a){var o=t.allDay;return o==null&&(o=e,o==null&&(o=a.allDayGuess,o==null&&(o=!1))),{allDay:o,duration:a.duration,typeData:a.typeData,typeId:i}}}return null}function ke(t,e,r){var n=r.dateEnv,i=r.pluginHooks,a=r.options,o=t.defs,s=t.instances;s=Se(s,function(C){return!o[C.defId].recurringDef});for(var l in o){var c=o[l];if(c.recurringDef){var u=c.recurringDef.duration;u||(u=c.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);for(var d=jo(c,u,e,n,i.recurringTypes),p=0,f=d;p<f.length;p++){var h=f[p],m=hr(l,{start:h,end:n.add(h,u)});s[m.instanceId]=m}}}return{defs:o,instances:s}}function jo(t,e,r,n,i){var a=i[t.recurringDef.typeId],o=a.expand(t.recurringDef.typeData,{start:n.subtract(r.start,e),end:r.end},n);return t.allDay&&(o=o.map(V)),o}var Zo=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function A(t,e){var r;return typeof t=="string"?Xo(t):typeof t=="object"&&t?vn(t):typeof t=="number"?vn((r={},r[e||"milliseconds"]=t,r)):null}function Xo(t){var e=Zo.exec(t);if(e){var r=e[1]?-1:1;return{years:0,months:0,days:r*(e[2]?parseInt(e[2],10):0),milliseconds:r*((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 vn(t){var 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)},r=t.weeks||t.week;return r&&(e.days+=r*7,e.specifiedWeeks=!0),e}function Ko(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Jo(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Qo(t){return Me(t)/365}function $o(t){return Me(t)/30}function Me(t){return je(t)/864e5}function je(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function $t(t){var 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 es(t,e,r){r===void 0&&(r=!1);var n=t.toISOString();return n=n.replace(".000",""),r&&(n=n.replace("T00:00:00Z","")),n.length>10&&(e==null?n=n.replace("Z",""):e!==0&&(n=n.replace("Z",gr(e,!0)))),n}function gi(t){return t.toISOString().replace(/T.*$/,"")}function gr(t,e){e===void 0&&(e=!1);var r=t<0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),a=Math.round(n%60);return e?r+Lt(i,2)+":"+Lt(a,2):"GMT"+r+i+(a?":"+Lt(a,2):"")}function xe(t,e,r){if(t===e)return!0;var n=t.length,i;if(n!==e.length)return!1;for(i=0;i<n;i+=1)if(!(r?r(t[i],e[i]):t[i]===e[i]))return!1;return!0}function k(t,e,r){var n,i;return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(!n)i=t.apply(this,a);else if(!xe(n,a)){r&&r(i);var s=t.apply(this,a);(!e||!e(s,i))&&(i=s)}return n=a,i}}function st(t,e,r){var n=this,i,a;return function(o){if(!i)a=t.call(n,o);else if(!oe(i,o)){r&&r(a);var s=t.call(n,o);(!e||!e(s,a))&&(a=s)}return i=o,a}}var mn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},vt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},tt=/\s*([ap])\.?m\.?/i,ts=/,/g,rs=/\s+/g,ns=/\u200e/g,is=/UTC|GMT/,as=function(){function t(e){var r={},n={},i=0;for(var a in e)a in mn?(n[a]=e[a],i=Math.max(mn[a],i)):(r[a]=e[a],a in vt&&(i=Math.max(vt[a],i)));this.standardDateProps=r,this.extendedSettings=n,this.severity=i,this.buildFormattingFunc=k(gn)}return t.prototype.format=function(e,r){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,r)(e)},t.prototype.formatRange=function(e,r,n,i){var a=this,o=a.standardDateProps,s=a.extendedSettings,l=ds(e.marker,r.marker,n.calendarSystem);if(!l)return this.format(e,n);var c=l;c>1&&(o.year==="numeric"||o.year==="2-digit")&&(o.month==="numeric"||o.month==="2-digit")&&(o.day==="numeric"||o.day==="2-digit")&&(c=1);var u=this.format(e,n),d=this.format(r,n);if(u===d)return u;var p=fs(o,c),f=gn(p,s,n),h=f(e),m=f(r),C=ps(u,h,d,m),g=s.separator||i||n.defaultSeparator||"";return C?C.before+h+g+m+C.after:u+g+d},t.prototype.getLargestUnit=function(){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"}},t}();function gn(t,e,r){var n=Object.keys(t).length;return n===1&&t.timeZoneName==="short"?function(i){return gr(i.timeZoneOffset)}:n===0&&e.week?function(i){return cs(r.computeWeekNumber(i.marker),r.weekText,r.weekTextLong,r.locale,e.week)}:os(t,e,r)}function os(t,e,r){t=v({},t),e=v({},e),ss(t,e),t.timeZone="UTC";var n=new Intl.DateTimeFormat(r.locale.codes,t),i;if(e.omitZeroMinute){var a=v({},t);delete a.minute,i=new Intl.DateTimeFormat(r.locale.codes,a)}return function(o){var s=o.marker,l;i&&!s.getUTCMinutes()?l=i:l=n;var c=l.format(s);return ls(c,o,t,e,r)}}function ss(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 ls(t,e,r,n,i){return t=t.replace(ns,""),r.timeZoneName==="short"&&(t=us(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":gr(e.timeZoneOffset))),n.omitCommas&&(t=t.replace(ts,"").trim()),n.omitZeroMinute&&(t=t.replace(":00","")),n.meridiem===!1?t=t.replace(tt,"").trim():n.meridiem==="narrow"?t=t.replace(tt,function(a,o){return o.toLocaleLowerCase()}):n.meridiem==="short"?t=t.replace(tt,function(a,o){return o.toLocaleLowerCase()+"m"}):n.meridiem==="lowercase"&&(t=t.replace(tt,function(a){return a.toLocaleLowerCase()})),t=t.replace(rs," "),t=t.trim(),t}function us(t,e){var r=!1;return t=t.replace(is,function(){return r=!0,e}),r||(t+=" "+e),t}function cs(t,e,r,n,i){var a=[];return i==="long"?a.push(r):(i==="short"||i==="narrow")&&a.push(e),(i==="long"||i==="short")&&a.push(" "),a.push(n.simpleNumberFormat.format(t)),n.options.direction==="rtl"&&a.reverse(),a.join("")}function ds(t,e,r){return r.getMarkerYear(t)!==r.getMarkerYear(e)?5:r.getMarkerMonth(t)!==r.getMarkerMonth(e)?4:r.getMarkerDay(t)!==r.getMarkerDay(e)?2:de(t)!==de(e)?1:0}function fs(t,e){var r={};for(var n in t)(!(n in vt)||vt[n]<=e)&&(r[n]=t[n]);return r}function ps(t,e,r,n){for(var i=0;i<t.length;){var a=t.indexOf(e,i);if(a===-1)break;var o=t.substr(0,a);i=a+e.length;for(var s=t.substr(i),l=0;l<r.length;){var c=r.indexOf(n,l);if(c===-1)break;var u=r.substr(0,c);l=c+n.length;var d=r.substr(l);if(o===u&&s===d)return{before:o,after:s}}}return null}function yn(t,e){var r=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:r,year:r[0],month:r[1],day:r[2],hour:r[3],minute:r[4],second:r[5],millisecond:r[6]}}function mt(t,e,r,n){var i=yn(t,r.calendarSystem),a=e?yn(e,r.calendarSystem):null;return{date:i,start:i,end:a,timeZone:r.timeZone,localeCodes:r.locale.codes,defaultSeparator:n||r.defaultSeparator}}var hs=function(){function t(e){this.cmdStr=e}return t.prototype.format=function(e,r,n){return r.cmdFormatter(this.cmdStr,mt(e,null,r,n))},t.prototype.formatRange=function(e,r,n,i){return n.cmdFormatter(this.cmdStr,mt(e,r,n,i))},t}(),vs=function(){function t(e){this.func=e}return t.prototype.format=function(e,r,n){return this.func(mt(e,null,r,n))},t.prototype.formatRange=function(e,r,n,i){return this.func(mt(e,r,n,i))},t}();function Y(t){return typeof t=="object"&&t?new as(t):typeof t=="string"?new hs(t):typeof t=="function"?new vs(t):null}var bn={navLinkDayClick:E,navLinkWeekClick:E,duration:A,bootstrapFontAwesome:E,buttonIcons:E,customButtons:E,defaultAllDayEventDuration:A,defaultTimedEventDuration:A,nextDayThreshold:A,scrollTime:A,scrollTimeReset:Boolean,slotMinTime:A,slotMaxTime:A,dayPopoverFormat:Y,slotDuration:A,snapDuration:A,headerToolbar:E,footerToolbar:E,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Y,dayHeaderClassNames:E,dayHeaderContent:E,dayHeaderDidMount:E,dayHeaderWillUnmount:E,dayCellClassNames:E,dayCellContent:E,dayCellDidMount:E,dayCellWillUnmount:E,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:E,weekNumbers:Boolean,weekNumberClassNames:E,weekNumberContent:E,weekNumberDidMount:E,weekNumberWillUnmount:E,editable:Boolean,viewClassNames:E,viewDidMount:E,viewWillUnmount:E,nowIndicator:Boolean,nowIndicatorClassNames:E,nowIndicatorContent:E,nowIndicatorDidMount:E,nowIndicatorWillUnmount:E,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:E,locale:E,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:E,eventOrder:_o,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:E,contentHeight:E,direction:String,weekNumberFormat:Y,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:E,initialDate:E,now:E,eventDataTransform:E,stickyHeaderDates:E,stickyFooterScrollbar:E,viewHeight:E,defaultAllDay:Boolean,eventSourceFailure:E,eventSourceSuccess:E,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:E,eventConstraint:E,eventAllow:E,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:E,eventContent:E,eventDidMount:E,eventWillUnmount:E,selectConstraint:E,selectOverlap:E,selectAllow:E,droppable:Boolean,unselectCancel:String,slotLabelFormat:E,slotLaneClassNames:E,slotLaneContent:E,slotLaneDidMount:E,slotLaneWillUnmount:E,slotLabelClassNames:E,slotLabelContent:E,slotLabelDidMount:E,slotLabelWillUnmount:E,dayMaxEvents:E,dayMaxEventRows:E,dayMinWidth:Number,slotLabelInterval:A,allDayText:String,allDayClassNames:E,allDayContent:E,allDayDidMount:E,allDayWillUnmount:E,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Y,rerenderDelay:Number,moreLinkText:E,moreLinkHint:E,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:E,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:A,hiddenDays:E,monthMode:Boolean,fixedWeekCount:Boolean,validRange:E,visibleRange:E,titleFormat:E,eventInteractive:Boolean,noEventsText:String,viewHint:E,navLinkHint:E,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:E,moreLinkClassNames:E,moreLinkContent:E,moreLinkDidMount:E,moreLinkWillUnmount:E},Pe={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},En={datesSet:E,eventsSet:E,eventAdd:E,eventChange:E,eventRemove:E,windowResize:E,eventClick:E,eventMouseEnter:E,eventMouseLeave:E,select:E,unselect:E,loading:E,_unmount:E,_beforeprint:E,_afterprint:E,_noEventDrop:E,_noEventResize:E,_resize:E,_scrollRequest:E},Cn={buttonText:E,buttonHints:E,views:E,plugins:E,initialEvents:E,events:E,eventSources:E},ve={headerToolbar:Te,footerToolbar:Te,buttonText:Te,buttonHints:Te,buttonIcons:Te,dateIncrement:Te};function Te(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?oe(t,e):t===e}var ms={type:String,component:E,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:E,usesMinMaxTime:Boolean,classNames:E,content:E,didMount:E,willUnmount:E};function Ut(t){return vr(t,ve)}function yr(t,e){var r={},n={};for(var i in e)i in t&&(r[i]=e[i](t[i]));for(var i in t)i in e||(n[i]=t[i]);return{refined:r,extra:n}}function E(t){return t}function gt(t,e,r,n){for(var i=te(),a=Cr(r),o=0,s=t;o<s.length;o++){var l=s[o],c=bi(l,e,r,n,a);c&&er(c,i)}return i}function er(t,e){return e===void 0&&(e=te()),e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function br(t,e){var r=t.instances[e];if(r){var n=t.defs[r.defId],i=Tt(t,function(a){return gs(n,a)});return i.defs[n.defId]=n,i.instances[r.instanceId]=r,i}return te()}function gs(t,e){return Boolean(t.groupId&&t.groupId===e.groupId)}function te(){return{defs:{},instances:{}}}function Er(t,e){return{defs:v(v({},t.defs),e.defs),instances:v(v({},t.instances),e.instances)}}function Tt(t,e){var r=Se(t.defs,e),n=Se(t.instances,function(i){return r[i.defId]});return{defs:r,instances:n}}function ys(t,e){var r=t.defs,n=t.instances,i={},a={};for(var o in r)e.defs[o]||(i[o]=r[o]);for(var s in n)!e.instances[s]&&i[n[s].defId]&&(a[s]=n[s]);return{defs:i,instances:a}}function bs(t,e){return Array.isArray(t)?gt(t,null,e,!0):typeof t=="object"&&t?gt([t],null,e,!0):t!=null?String(t):null}function tr(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}var yt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:E,overlap:E,allow:E,className:tr,classNames:tr,color:String,backgroundColor:String,borderColor:String,textColor:String},Es={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function bt(t,e){var r=bs(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:r!=null?[r]:[],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 Cs(t){return t.reduce(Ss,Es)}function Ss(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}var lt={id:String,groupId:String,title:String,url:String,interactive:Boolean},yi={start:E,end:E,date:E,allDay:Boolean},ws=v(v(v({},lt),yi),{extendedProps:E});function bi(t,e,r,n,i){i===void 0&&(i=Cr(r));var a=Ei(t,r,i),o=a.refined,s=a.extra,l=Ts(e,r),c=Yo(o,l,r.dateEnv,r.pluginHooks.recurringTypes);if(c){var u=rr(o,s,e?e.sourceId:"",c.allDay,Boolean(c.duration),r);return u.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:u,instance:null}}var d=Ds(o,l,r,n);if(d){var u=rr(o,s,e?e.sourceId:"",d.allDay,d.hasEnd,r),p=hr(u.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return{def:u,instance:p}}return null}function Ei(t,e,r){return r===void 0&&(r=Cr(e)),yr(t,r)}function Cr(t){return v(v(v({},yt),ws),t.pluginHooks.eventRefiners)}function rr(t,e,r,n,i,a){for(var o={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:He(),sourceId:r,allDay:n,hasEnd:i,interactive:t.interactive,ui:bt(t,a),extendedProps:v(v({},t.extendedProps||{}),e)},s=0,l=a.pluginHooks.eventDefMemberAdders;s<l.length;s++){var c=l[s];v(o,c(t))}return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function Ds(t,e,r,n){var i=t.allDay,a,o=null,s=!1,l,c=null,u=t.start!=null?t.start:t.date;if(a=r.dateEnv.createMarkerMeta(u),a)o=a.marker;else if(!n)return null;return t.end!=null&&(l=r.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!a||a.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&o&&(o=V(o)),l&&(c=l.marker,i&&(c=V(c)),o&&c<=o&&(c=null)),c?s=!0:n||(s=r.options.forceEventDuration||!1,c=r.dateEnv.add(o,i?r.options.defaultAllDayEventDuration:r.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:o,end:c},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function Ts(t,e){var r=null;return t&&(r=t.defaultAllDay),r==null&&(r=e.options.defaultAllDay),r}function Ci(t){var e=Math.floor(Oe(t.start,t.end))||1,r=V(t.start),n=Z(r,e);return{start:r,end:n}}function Si(t,e){e===void 0&&(e=A(0));var r=null,n=null;if(t.end){n=V(t.end);var i=t.end.valueOf()-n.valueOf();i&&i>=je(e)&&(n=Z(n,1))}return t.start&&(r=V(t.start),n&&n<=r&&(n=Z(r,1))),{start:r,end:n}}function Re(t,e,r,n){return n==="year"?A(r.diffWholeYears(t,e),"year"):n==="month"?A(r.diffWholeMonths(t,e),"month"):Lo(t,e)}function _s(t,e){var r=null,n=null;return t.start&&(r=e.createMarker(t.start)),t.end&&(n=e.createMarker(t.end)),!r&&!n||r&&n&&n<r?null:{start:r,end:n}}function Sn(t,e){var r=[],n=e.start,i,a;for(t.sort(Rs),i=0;i<t.length;i+=1)a=t[i],a.start>n&&r.push({start:n,end:a.start}),a.end>n&&(n=a.end);return n<e.end&&r.push({start:n,end:e.end}),r}function Rs(t,e){return t.start.valueOf()-e.start.valueOf()}function Ze(t,e){var r=t.start,n=t.end,i=null;return e.start!==null&&(r===null?r=e.start:r=new Date(Math.max(r.valueOf(),e.start.valueOf()))),e.end!=null&&(n===null?n=e.end:n=new Date(Math.min(n.valueOf(),e.end.valueOf()))),(r===null||n===null||r<n)&&(i={start:r,end:n}),i}function Ms(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 Sr(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function _t(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function ye(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Ps(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 wn(t,e,r,n){var i={},a={},o={},s=[],l=[],c=Et(t.defs,e);for(var u in t.defs){var d=t.defs[u],p=c[d.defId];p.display==="inverse-background"&&(d.groupId?(i[d.groupId]=[],o[d.groupId]||(o[d.groupId]=d)):a[u]=[])}for(var f in t.instances){var h=t.instances[f],d=t.defs[h.defId],p=c[d.defId],m=h.range,C=!d.allDay&&n?Si(m,n):m,g=Ze(C,r);g&&(p.display==="inverse-background"?d.groupId?i[d.groupId].push(g):a[h.defId].push(g):p.display!=="none"&&(p.display==="background"?s:l).push({def:d,ui:p,instance:h,range:g,isStart:C.start&&C.start.valueOf()===g.start.valueOf(),isEnd:C.end&&C.end.valueOf()===g.end.valueOf()}))}for(var S in i)for(var _=i[S],D=Sn(_,r),H=0,I=D;H<I.length;H++){var O=I[H],d=o[S],p=c[d.defId];s.push({def:d,ui:p,instance:null,range:O,isStart:!1,isEnd:!1})}for(var u in a)for(var _=a[u],D=Sn(_,r),M=0,z=D;M<z.length;M++){var O=z[M];s.push({def:t.defs[u],ui:c[u],instance:null,range:O,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function Dn(t,e){t.fcSeg=e}function Ae(t){return t.fcSeg||t.parentNode.fcSeg||null}function Et(t,e){return we(t,function(r){return wi(r,e)})}function wi(t,e){var r=[];return e[""]&&r.push(e[""]),e[t.defId]&&r.push(e[t.defId]),r.push(t.ui),Cs(r)}function Ns(t,e){var r=t.map(Is);return r.sort(function(n,i){return Ro(n,i,e)}),r.map(function(n){return n._seg})}function Is(t){var e=t.eventRange,r=e.def,n=e.instance?e.instance.range:e.range,i=n.start?n.start.valueOf():0,a=n.end?n.end.valueOf():0;return v(v(v({},r.extendedProps),r),{id:r.publicId,start:i,end:a,duration:a-i,allDay:Number(r.allDay),_seg:t})}function ks(t,e){for(var r=e.pluginHooks,n=r.isDraggableTransformers,i=t.eventRange,a=i.def,o=i.ui,s=o.startEditable,l=0,c=n;l<c.length;l++){var u=c[l];s=u(s,a,o,e)}return s}function xs(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function As(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Di(t,e,r,n,i,a,o){var s=r.dateEnv,l=r.options,c=l.displayEventTime,u=l.displayEventEnd,d=t.eventRange.def,p=t.eventRange.instance;c==null&&(c=n!==!1),u==null&&(u=i!==!1);var f=p.range.start,h=p.range.end,m=a||t.start||t.eventRange.range.start,C=o||t.end||t.eventRange.range.end,g=V(f).valueOf()===V(m).valueOf(),S=V(Ce(h,-1)).valueOf()===V(Ce(C,-1)).valueOf();return c&&!d.allDay&&(g||S)?(m=g?f:m,C=S?h:C,u&&d.hasEnd?s.formatRange(m,C,e,{forcedStartTzo:a?null:p.forcedStartTzo,forcedEndTzo:o?null:p.forcedEndTzo}):s.format(m,e,{forcedTzo:a?null:p.forcedStartTzo})):""}function We(t,e,r){var n=t.eventRange.range;return{isPast:n.end<(r||e.start),isFuture:n.start>=(r||e.end),isToday:e&&ye(e,n.start)}}function Hs(t){var 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 Os(t){return t.instance?t.instance.instanceId:t.def.defId+":"+t.range.start.toISOString()}function Ti(t,e){var r=t.eventRange,n=r.def,i=r.instance,a=n.url;if(a)return{href:a};var o=e.emitter,s=e.options,l=s.eventInteractive;return l==null&&(l=n.interactive,l==null&&(l=Boolean(o.hasHandlers("eventClick")))),l?hi(function(c){o.trigger("eventClick",{el:c.target,event:new q(e,n,i),jsEvent:c,view:e.viewApi})}):{}}var Ls={start:E,end:E,allDay:Boolean};function Fs(t,e,r){var n=Bs(t,e),i=n.range;if(!i.start)return null;if(!i.end){if(r==null)return null;i.end=e.add(i.start,r)}return n}function Bs(t,e){var r=yr(t,Ls),n=r.refined,i=r.extra,a=n.start?e.createMarkerMeta(n.start):null,o=n.end?e.createMarkerMeta(n.end):null,s=n.allDay;return s==null&&(s=a&&a.isTimeUnspecified&&(!o||o.isTimeUnspecified)),v({range:{start:a?a.marker:null,end:o?o.marker:null},allDay:s},i)}function Vs(t,e){return Ms(t.range,e.range)&&t.allDay===e.allDay&&Us(t,e)}function Us(t,e){for(var r in e)if(r!=="range"&&r!=="allDay"&&t[r]!==e[r])return!1;for(var r in t)if(!(r in e))return!1;return!0}function zs(t,e){return v(v({},Ri(t.range,e,t.allDay)),{allDay:t.allDay})}function _i(t,e,r){return v(v({},Ri(t,e,r)),{timeZone:e.timeZone})}function Ri(t,e,r){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:r}),endStr:e.formatIso(t.end,{omitTime:r})}}function Ws(t,e,r){var n=Ei({editable:!1},r),i=rr(n.refined,n.extra,"",t.allDay,!0,r);return{def:i,ui:wi(i,e),instance:hr(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Mi(t,e,r){r.emitter.trigger("select",v(v({},wr(t,r)),{jsEvent:e?e.origEvent:null,view:r.viewApi||r.calendarApi.view}))}function qs(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function wr(t,e){for(var r={},n=0,i=e.pluginHooks.dateSpanTransforms;n<i.length;n++){var a=i[n];v(r,a(t,e))}return v(r,zs(t,e.dateEnv)),r}function Tn(t,e,r){var n=r.dateEnv,i=r.options,a=e;return t?(a=V(a),a=n.add(a,i.defaultAllDayEventDuration)):a=n.add(a,i.defaultTimedEventDuration),a}function Dr(t,e,r,n){var i=Et(t.defs,e),a=te();for(var o in t.defs){var s=t.defs[o];a.defs[o]=Gs(s,i[o],r,n)}for(var l in t.instances){var c=t.instances[l],s=a.defs[c.defId];a.instances[l]=Ys(c,s,i[c.defId],r,n)}return a}function Gs(t,e,r,n){var i=r.standardProps||{};i.hasEnd==null&&e.durationEditable&&(r.startDelta||r.endDelta)&&(i.hasEnd=!0);var a=v(v(v({},t),i),{ui:v(v({},t.ui),i.ui)});r.extendedProps&&(a.extendedProps=v(v({},a.extendedProps),r.extendedProps));for(var o=0,s=n.pluginHooks.eventDefMutationAppliers;o<s.length;o++){var l=s[o];l(a,r,n)}return!a.hasEnd&&n.options.forceEventDuration&&(a.hasEnd=!0),a}function Ys(t,e,r,n,i){var a=i.dateEnv,o=n.standardProps&&n.standardProps.allDay===!0,s=n.standardProps&&n.standardProps.hasEnd===!1,l=v({},t);return o&&(l.range=Ci(l.range)),n.datesDelta&&r.startEditable&&(l.range={start:a.add(l.range.start,n.datesDelta),end:a.add(l.range.end,n.datesDelta)}),n.startDelta&&r.durationEditable&&(l.range={start:a.add(l.range.start,n.startDelta),end:l.range.end}),n.endDelta&&r.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,n.endDelta)}),s&&(l.range={start:l.range.start,end:Tn(e.allDay,l.range.start,i)}),e.allDay&&(l.range={start:V(l.range.start),end:V(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Tn(e.allDay,l.range.start,i)),l}var js=function(){function t(e,r,n){this.type=e,this.getCurrentData=r,this.dateEnv=n}return Object.defineProperty(t.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),t.prototype.getOption=function(e){return this.getCurrentData().options[e]},t}(),Zs={id:String,defaultAllDay:Boolean,url:String,format:String,events:E,eventDataTransform:E,success:E,failure:E};function Pi(t,e,r){r===void 0&&(r=Ni(e));var n;if(typeof t=="string"?n={url:t}:typeof t=="function"||Array.isArray(t)?n={events:t}:typeof t=="object"&&t&&(n=t),n){var i=yr(n,r),a=i.refined,o=i.extra,s=Xs(a,e);if(s)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:a.defaultAllDay,eventDataTransform:a.eventDataTransform,success:a.success,failure:a.failure,publicId:a.id||"",sourceId:He(),sourceDefId:s.sourceDefId,meta:s.meta,ui:bt(a,e),extendedProps:o}}return null}function Ni(t){return v(v(v({},yt),Zs),t.pluginHooks.eventSourceRefiners)}function Xs(t,e){for(var r=e.pluginHooks.eventSourceDefs,n=r.length-1;n>=0;n-=1){var i=r[n],a=i.parseMeta(t);if(a)return{sourceDefId:n,meta:a}}return null}function Ks(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Js(t,e){var r=t.initialDate;return r!=null?e.createMarker(r):Xe(t.now,e)}function Xe(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}var Qs=function(){function t(){}return t.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},t.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(t.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),t.prototype.batchRendering=function(e){e()},t.prototype.updateSize=function(){this.trigger("_resize",!0)},t.prototype.setOption=function(e,r){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:r})},t.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},t.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},t.prototype.on=function(e,r){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,r):console.warn("Unknown listener name '"+e+"'")},t.prototype.off=function(e,r){this.currentDataManager.emitter.off(e,r)},t.prototype.trigger=function(e){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(r=this.currentDataManager.emitter).trigger.apply(r,W([e],n))},t.prototype.changeView=function(e,r){var n=this;this.batchRendering(function(){if(n.unselect(),r)if(r.start&&r.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:r});else{var i=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:i.createMarker(r)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})},t.prototype.zoomTo=function(e,r){var n=this.getCurrentData(),i;r=r||"day",i=n.viewSpecs[r]||this.getUnitViewSpec(r),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},t.prototype.getUnitViewSpec=function(e){var r=this.getCurrentData(),n=r.viewSpecs,i=r.toolbarConfig,a=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]),o,s;for(var l in n)a.push(l);for(o=0;o<a.length;o+=1)if(s=n[a[o]],s&&s.singleUnit===e)return s;return null},t.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},t.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},t.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},t.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},t.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Xe(e.calendarOptions.now,e.dateEnv)})},t.prototype.gotoDate=function(e){var r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.createMarker(e)})},t.prototype.incrementDate=function(e){var r=this.getCurrentData(),n=A(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.add(r.currentDate,n)}))},t.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},t.prototype.formatDate=function(e,r){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),Y(r))},t.prototype.formatRange=function(e,r,n){var i=this.getCurrentData().dateEnv;return i.formatRange(i.createMarker(e),i.createMarker(r),Y(n),n)},t.prototype.formatIso=function(e,r){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:r})},t.prototype.select=function(e,r){var n;r==null?e.start!=null?n=e:n={start:e,end:null}:n={start:e,end:r};var i=this.getCurrentData(),a=Fs(n,i.dateEnv,A({days:1}));a&&(this.dispatch({type:"SELECT_DATES",selection:a}),Mi(a,null,i))},t.prototype.unselect=function(e){var r=this.getCurrentData();r.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),qs(e,r))},t.prototype.addEvent=function(e,r){if(e instanceof q){var n=e._def,i=e._instance,a=this.getCurrentData();return a.eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:er({def:n,instance:i})}),this.triggerEventAdd(e)),e}var o=this.getCurrentData(),s;if(r instanceof _e)s=r.internalEventSource;else if(typeof r=="boolean")r&&(s=mr(o.eventSources)[0]);else if(r!=null){var l=this.getEventSourceById(r);if(!l)return console.warn('Could not find an event source with ID "'+r+'"'),null;s=l.internalEventSource}var c=bi(e,s,o,!1);if(c){var u=new q(o,c.def,c.def.recurringDef?null:c.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:er(c)}),this.triggerEventAdd(u),u}return null},t.prototype.triggerEventAdd=function(e){var r=this,n=this.getCurrentData().emitter;n.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){r.dispatch({type:"REMOVE_EVENTS",eventStore:Ii(e)})}})},t.prototype.getEventById=function(e){var r=this.getCurrentData(),n=r.eventStore,i=n.defs,a=n.instances;e=String(e);for(var o in i){var s=i[o];if(s.publicId===e){if(s.recurringDef)return new q(r,s,null);for(var l in a){var c=a[l];if(c.defId===s.defId)return new q(r,s,c)}}}return null},t.prototype.getEvents=function(){var e=this.getCurrentData();return be(e.eventStore,e)},t.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},t.prototype.getEventSources=function(){var e=this.getCurrentData(),r=e.eventSources,n=[];for(var i in r)n.push(new _e(e,r[i]));return n},t.prototype.getEventSourceById=function(e){var r=this.getCurrentData(),n=r.eventSources;e=String(e);for(var i in n)if(n[i].publicId===e)return new _e(r,n[i]);return null},t.prototype.addEventSource=function(e){var r=this.getCurrentData();if(e instanceof _e)return r.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=Pi(e,r);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new _e(r,n)):null},t.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},t.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},t.prototype.scrollToTime=function(e){var r=A(e);r&&this.trigger("_scrollRequest",{time:r})},t}(),q=function(){function t(e,r,n){this._context=e,this._def=r,this._instance=n||null}return t.prototype.setProp=function(e,r){var n,i;if(e in yi)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")r=lt[e](r),this.mutate({standardProps:{publicId:r}});else if(e in lt)r=lt[e](r),this.mutate({standardProps:(n={},n[e]=r,n)});else if(e in yt){var a=yt[e](r);e==="color"?a={backgroundColor:r,borderColor:r}:e==="editable"?a={startEditable:r,durationEditable:r}:a=(i={},i[e]=r,i),this.mutate({standardProps:{ui:a}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},t.prototype.setExtendedProp=function(e,r){var n;this.mutate({extendedProps:(n={},n[e]=r,n)})},t.prototype.setStart=function(e,r){r===void 0&&(r={});var n=this._context.dateEnv,i=n.createMarker(e);if(i&&this._instance){var a=this._instance.range,o=Re(a.start,i,n,r.granularity);r.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}},t.prototype.setEnd=function(e,r){r===void 0&&(r={});var n=this._context.dateEnv,i;if(!(e!=null&&(i=n.createMarker(e),!i))&&this._instance)if(i){var a=Re(this._instance.range.end,i,n,r.granularity);this.mutate({endDelta:a})}else this.mutate({standardProps:{hasEnd:!1}})},t.prototype.setDates=function(e,r,n){n===void 0&&(n={});var i=this._context.dateEnv,a={allDay:n.allDay},o=i.createMarker(e),s;if(!!o&&!(r!=null&&(s=i.createMarker(r),!s))&&this._instance){var l=this._instance.range;n.allDay===!0&&(l=Ci(l));var c=Re(l.start,o,i,n.granularity);if(s){var u=Re(l.end,s,i,n.granularity);Ko(c,u)?this.mutate({datesDelta:c,standardProps:a}):this.mutate({startDelta:c,endDelta:u,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:c,standardProps:a})}},t.prototype.moveStart=function(e){var r=A(e);r&&this.mutate({startDelta:r})},t.prototype.moveEnd=function(e){var r=A(e);r&&this.mutate({endDelta:r})},t.prototype.moveDates=function(e){var r=A(e);r&&this.mutate({datesDelta:r})},t.prototype.setAllDay=function(e,r){r===void 0&&(r={});var n={allDay:e},i=r.maintainDuration;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=i),this.mutate({standardProps:n})},t.prototype.formatRange=function(e){var r=this._context.dateEnv,n=this._instance,i=Y(e);return this._def.hasEnd?r.formatRange(n.range.start,n.range.end,i,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):r.format(n.range.start,i,{forcedTzo:n.forcedStartTzo})},t.prototype.mutate=function(e){var r=this._instance;if(r){var n=this._def,i=this._context,a=i.getCurrentData().eventStore,o=br(a,r.instanceId),s={"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}};o=Dr(o,s,e,i);var l=new t(i,n,r);this._def=o.defs[n.defId],this._instance=o.instances[r.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:o}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:be(o,i,r),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:a})}})}},t.prototype.remove=function(){var e=this._context,r=Ii(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:r}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:r})}})},Object.defineProperty(t.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new _e(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),t.prototype.toPlainObject=function(e){e===void 0&&(e={});var r=this._def,n=r.ui,i=this,a=i.startStr,o=i.endStr,s={};return r.title&&(s.title=r.title),a&&(s.start=a),o&&(s.end=o),r.publicId&&(s.id=r.publicId),r.groupId&&(s.groupId=r.groupId),r.url&&(s.url=r.url),n.display&&n.display!=="auto"&&(s.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?s.color=n.backgroundColor:(n.backgroundColor&&(s.backgroundColor=n.backgroundColor),n.borderColor&&(s.borderColor=n.borderColor)),n.textColor&&(s.textColor=n.textColor),n.classNames.length&&(s.classNames=n.classNames),Object.keys(r.extendedProps).length&&(e.collapseExtendedProps?v(s,r.extendedProps):s.extendedProps=r.extendedProps),s},t.prototype.toJSON=function(){return this.toPlainObject()},t}();function Ii(t){var e,r,n=t._def,i=t._instance;return{defs:(e={},e[n.defId]=n,e),instances:i?(r={},r[i.instanceId]=i,r):{}}}function be(t,e,r){var n=t.defs,i=t.instances,a=[],o=r?r.instanceId:"";for(var s in i){var l=i[s],c=n[l.defId];l.instanceId!==o&&a.push(new q(e,c,l))}return a}var ki={};function $s(t,e){ki[t]=e}function el(t){return new ki[t]}var tl=function(){function t(){}return t.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},t.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},t.prototype.getMarkerDay=function(e){return e.getUTCDate()},t.prototype.arrayToMarker=function(e){return J(e)},t.prototype.markerToArray=function(e){return ce(e)},t}();$s("gregory",tl);var rl=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function nl(t){var e=rl.exec(t);if(e){var r=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]?Number("0."+e[12])*1e3:0));if(vi(r)){var n=null;return e[13]&&(n=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:r,isTimeUnspecified:!e[6],timeZoneOffset:n}}}return null}var xi=function(){function t(e){var r=this.timeZone=e.timeZone,n=r!=="local"&&r!=="UTC";e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(r)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=el(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}return t.prototype.createMarker=function(e){var r=this.createMarkerMeta(e);return r===null?null:r.marker},t.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):J(fn(new Date))},t.prototype.createMarkerMeta=function(e){if(typeof e=="string")return this.parse(e);var r=null;return typeof e=="number"?r=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(r=this.timestampToMarker(e))):Array.isArray(e)&&(r=J(e)),r===null||!vi(r)?null:{marker:r,isTimeUnspecified:!1,forcedTzo:null}},t.prototype.parse=function(e){var r=nl(e);if(r===null)return null;var n=r.marker,i=null;return r.timeZoneOffset!==null&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-r.timeZoneOffset*60*1e3):i=r.timeZoneOffset),{marker:n,isTimeUnspecified:r.isTimeUnspecified,forcedTzo:i}},t.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},t.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},t.prototype.add=function(e,r){var n=this.calendarSystem.markerToArray(e);return n[0]+=r.years,n[1]+=r.months,n[2]+=r.days,n[6]+=r.milliseconds,this.calendarSystem.arrayToMarker(n)},t.prototype.subtract=function(e,r){var n=this.calendarSystem.markerToArray(e);return n[0]-=r.years,n[1]-=r.months,n[2]-=r.days,n[6]-=r.milliseconds,this.calendarSystem.arrayToMarker(n)},t.prototype.addYears=function(e,r){var n=this.calendarSystem.markerToArray(e);return n[0]+=r,this.calendarSystem.arrayToMarker(n)},t.prototype.addMonths=function(e,r){var n=this.calendarSystem.markerToArray(e);return n[1]+=r,this.calendarSystem.arrayToMarker(n)},t.prototype.diffWholeYears=function(e,r){var n=this.calendarSystem;return de(e)===de(r)&&n.getMarkerDay(e)===n.getMarkerDay(r)&&n.getMarkerMonth(e)===n.getMarkerMonth(r)?n.getMarkerYear(r)-n.getMarkerYear(e):null},t.prototype.diffWholeMonths=function(e,r){var n=this.calendarSystem;return de(e)===de(r)&&n.getMarkerDay(e)===n.getMarkerDay(r)?n.getMarkerMonth(r)-n.getMarkerMonth(e)+(n.getMarkerYear(r)-n.getMarkerYear(e))*12:null},t.prototype.greatestWholeUnit=function(e,r){var n=this.diffWholeYears(e,r);return n!==null?{unit:"year",value:n}:(n=this.diffWholeMonths(e,r),n!==null?{unit:"month",value:n}:(n=Fo(e,r),n!==null?{unit:"week",value:n}:(n=pt(e,r),n!==null?{unit:"day",value:n}:(n=Ao(e,r),Ft(n)?{unit:"hour",value:n}:(n=Ho(e,r),Ft(n)?{unit:"minute",value:n}:(n=Oo(e,r),Ft(n)?{unit:"second",value:n}:{unit:"millisecond",value:r.valueOf()-e.valueOf()}))))))},t.prototype.countDurationsBetween=function(e,r,n){var i;return n.years&&(i=this.diffWholeYears(e,r),i!==null)?i/Qo(n):n.months&&(i=this.diffWholeMonths(e,r),i!==null)?i/$o(n):n.days&&(i=pt(e,r),i!==null)?i/Me(n):(r.valueOf()-e.valueOf())/je(n)},t.prototype.startOf=function(e,r){return r==="year"?this.startOfYear(e):r==="month"?this.startOfMonth(e):r==="week"?this.startOfWeek(e):r==="day"?V(e):r==="hour"?Bo(e):r==="minute"?Vo(e):r==="second"?Uo(e):null},t.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},t.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},t.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},t.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):zo(e,this.weekDow,this.weekDoy)},t.prototype.format=function(e,r,n){return n===void 0&&(n={}),r.format({marker:e,timeZoneOffset:n.forcedTzo!=null?n.forcedTzo:this.offsetForMarker(e)},this)},t.prototype.formatRange=function(e,r,n,i){return i===void 0&&(i={}),i.isEndExclusive&&(r=Ce(r,-1)),n.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:r,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(r)},this,i.defaultSeparator)},t.prototype.formatIso=function(e,r){r===void 0&&(r={});var n=null;return r.omitTimeZoneOffset||(r.forcedTzo!=null?n=r.forcedTzo:n=this.offsetForMarker(e)),es(e,n,r.omitTime)},t.prototype.timestampToMarker=function(e){return this.timeZone==="local"?J(fn(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):J(this.namedTimeZoneImpl.timestampToArray(e))},t.prototype.offsetForMarker=function(e){return this.timeZone==="local"?-pn(ce(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ce(e)):null},t.prototype.toDate=function(e,r){return this.timeZone==="local"?pn(ce(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(ce(e))*1e3*60):new Date(e.valueOf()-(r||0))},t}(),il=[],Ai={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"},Hi=v(v({},Ai),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(t,e){return e==="day"?"Today":"This "+t}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(t){return"Show "+t+" more event"+(t===1?"":"s")}});function Oi(t){for(var e=t.length>0?t[0].code:"en",r=il.concat(t),n={en:Hi},i=0,a=r;i<a.length;i++){var o=a[i];n[o.code]=o}return{map:n,defaultCode:e}}function Tr(t,e){return typeof t=="object"&&!Array.isArray(t)?Li(t.code,[t.code],t):al(t,e)}function al(t,e){var r=[].concat(t||[]),n=ol(r,e)||Hi;return Li(t,r,n)}function ol(t,e){for(var r=0;r<t.length;r+=1)for(var n=t[r].toLocaleLowerCase().split("-"),i=n.length;i>0;i-=1){var a=n.slice(0,i).join("-");if(e[a])return e[a]}return null}function Li(t,e,r){var n=vr([Ai,r],["buttonText"]);delete n.code;var i=n.week;return delete n.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:n}}function _n(t,e){e===void 0&&(e={});var r=sl(e),n=Y(e),i=r.createMarkerMeta(t);return i?r.format(i.marker,n,{forcedTzo:i.forcedTzo}):""}function sl(t){var e=Tr(t.locale||"en",Oi([]).map);return new xi(v(v({timeZone:Pe.timeZone,calendarSystem:"gregory"},t),{locale:e}))}var ll={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ul(t,e){return gt(cl(t),null,e)}function cl(t){var e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(function(r){return r.daysOfWeek}):typeof t=="object"&&t?e=[t]:e=[],e=e.map(function(r){return v(v({},ll),r)}),e}function dl(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Fi(t,e){var r={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 r.left<r.right&&r.top<r.bottom?r:!1}function fl(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 pl(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function hl(t,e){return{left:t.left-e.left,top:t.top-e.top}}var zt;function Bi(){return zt==null&&(zt=vl()),zt}function vl(){if(typeof document>"u")return!0;var 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);var e=t.querySelector("div"),r=e.offsetHeight>0;return document.body.removeChild(t),r}function Vi(t,e,r,n){return{dow:t.getUTCDay(),isDisabled:Boolean(n&&!ye(n.activeRange,t)),isOther:Boolean(n&&!ye(n.currentRange,t)),isToday:Boolean(e&&ye(e,t)),isPast:Boolean(r?t<r:e?t<e.start:!1),isFuture:Boolean(r?t>r:e?t>=e.end:!1)}}function _r(t,e){var r=["fc-day","fc-day-"+ko[t.dow]];return t.isDisabled?r.push("fc-day-disabled"):(t.isToday&&(r.push("fc-day-today"),r.push(e.getClass("today"))),t.isPast&&r.push("fc-day-past"),t.isFuture&&r.push("fc-day-future"),t.isOther&&r.push("fc-day-other")),r}var ml=Y({year:"numeric",month:"long",day:"numeric"}),gl=Y({week:"long"});function Rr(t,e,r,n){r===void 0&&(r="day"),n===void 0&&(n=!0);var i=t.dateEnv,a=t.options,o=t.calendarApi,s=i.format(e,r==="week"?gl:ml);if(a.navLinks){var l=i.toDate(e),c=function(u){var d=r==="day"?a.navLinkDayClick:r==="week"?a.navLinkWeekClick:null;typeof d=="function"?d.call(o,i.toDate(e),u):(typeof d=="string"&&(r=d),o.zoomTo(e,r))};return v({title:ze(a.navLinkHint,[s,l],s),"data-navlink":""},n?pi(c):{onClick:c})}return{"aria-label":s}}var Wt=null;function yl(){return Wt===null&&(Wt=bl()),Wt}function bl(){var t=document.createElement("div");Ue(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);var e=t.firstChild,r=e.getBoundingClientRect().left>t.getBoundingClientRect().left;return dr(t),r}var qt;function El(){return qt||(qt=Cl()),qt}function Cl(){var t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);var e=Ui(t);return document.body.removeChild(t),e}function Ui(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Sl(t,e){e===void 0&&(e=!1);var r=window.getComputedStyle(t),n=parseInt(r.borderLeftWidth,10)||0,i=parseInt(r.borderRightWidth,10)||0,a=parseInt(r.borderTopWidth,10)||0,o=parseInt(r.borderBottomWidth,10)||0,s=Ui(t),l=s.y-n-i,c=s.x-a-o,u={borderLeft:n,borderRight:i,borderTop:a,borderBottom:o,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return yl()&&r.direction==="rtl"?u.scrollbarLeft=l:u.scrollbarRight=l,e&&(u.paddingLeft=parseInt(r.paddingLeft,10)||0,u.paddingRight=parseInt(r.paddingRight,10)||0,u.paddingTop=parseInt(r.paddingTop,10)||0,u.paddingBottom=parseInt(r.paddingBottom,10)||0),u}function wl(t,e,r){e===void 0&&(e=!1);var n=r?t.getBoundingClientRect():Mr(t),i=Sl(t,e),a={left:n.left+i.borderLeft+i.scrollbarLeft,right:n.right-i.borderRight-i.scrollbarRight,top:n.top+i.borderTop,bottom:n.bottom-i.borderBottom-i.scrollbarBottom};return e&&(a.left+=i.paddingLeft,a.right-=i.paddingRight,a.top+=i.paddingTop,a.bottom-=i.paddingBottom),a}function Mr(t){var e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Dl(t){for(var e=zi(t),r=t.getBoundingClientRect(),n=0,i=e;n<i.length;n++){var a=i[n],o=Fi(r,a.getBoundingClientRect());if(o)r=o;else return null}return r}function zi(t){for(var e=[];t instanceof HTMLElement;){var r=window.getComputedStyle(t);if(r.position==="fixed")break;/(auto|scroll)/.test(r.overflow+r.overflowY+r.overflowX)&&e.push(t),t=t.parentNode}return e}function Tl(t,e,r){var n=!1,i=function(){n||(n=!0,e.apply(this,arguments))},a=function(){n||(n=!0,r&&r.apply(this,arguments))},o=t(i,a);o&&typeof o.then=="function"&&o.then(i,a)}var Rt=function(){function t(){this.handlers={},this.thisContext=null}return t.prototype.setThisContext=function(e){this.thisContext=e},t.prototype.setOptions=function(e){this.options=e},t.prototype.on=function(e,r){_l(this.handlers,e,r)},t.prototype.off=function(e,r){Rl(this.handlers,e,r)},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];for(var i=this.handlers[e]||[],a=this.options&&this.options[e],o=[].concat(a||[],i),s=0,l=o;s<l.length;s++){var c=l[s];c.apply(this.thisContext,r)}},t.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},t}();function _l(t,e,r){(t[e]||(t[e]=[])).push(r)}function Rl(t,e,r){r?t[e]&&(t[e]=t[e].filter(function(n){return n!==r})):delete t[e]}var nr=function(){function t(e,r,n,i){this.els=r;var a=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(a.left),i&&this.buildElVerticals(a.top)}return t.prototype.buildElHorizontals=function(e){for(var r=[],n=[],i=0,a=this.els;i<a.length;i++){var o=a[i],s=o.getBoundingClientRect();r.push(s.left-e),n.push(s.right-e)}this.lefts=r,this.rights=n},t.prototype.buildElVerticals=function(e){for(var r=[],n=[],i=0,a=this.els;i<a.length;i++){var o=a[i],s=o.getBoundingClientRect();r.push(s.top-e),n.push(s.bottom-e)}this.tops=r,this.bottoms=n},t.prototype.leftToIndex=function(e){var r=this,n=r.lefts,i=r.rights,a=n.length,o;for(o=0;o<a;o+=1)if(e>=n[o]&&e<i[o])return o},t.prototype.topToIndex=function(e){var r=this,n=r.tops,i=r.bottoms,a=n.length,o;for(o=0;o<a;o+=1)if(e>=n[o]&&e<i[o])return o},t.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},t.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},t}(),Pr=function(){function t(){}return t.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},t.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},t.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},t.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},t.prototype.canScrollUp=function(){return this.getScrollTop()>0},t.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},t.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},t.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},t}(),Ml=function(t){R(e,t);function e(r){var n=t.call(this)||this;return n.el=r,n}return e.prototype.getScrollTop=function(){return this.el.scrollTop},e.prototype.getScrollLeft=function(){return this.el.scrollLeft},e.prototype.setScrollTop=function(r){this.el.scrollTop=r},e.prototype.setScrollLeft=function(r){this.el.scrollLeft=r},e.prototype.getScrollWidth=function(){return this.el.scrollWidth},e.prototype.getScrollHeight=function(){return this.el.scrollHeight},e.prototype.getClientHeight=function(){return this.el.clientHeight},e.prototype.getClientWidth=function(){return this.el.clientWidth},e}(Pr),Pl=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getScrollTop=function(){return window.pageYOffset},e.prototype.getScrollLeft=function(){return window.pageXOffset},e.prototype.setScrollTop=function(r){window.scroll(window.pageXOffset,r)},e.prototype.setScrollLeft=function(r){window.scroll(r,window.pageYOffset)},e.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},e.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},e.prototype.getClientHeight=function(){return document.documentElement.clientHeight},e.prototype.getClientWidth=function(){return document.documentElement.clientWidth},e}(Pr),Ke=function(){function t(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return t.prototype.setIconOverride=function(e){var r,n;if(typeof e=="object"&&e){r=v({},this.iconClasses);for(n in e)r[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=r}else e===!1&&(this.iconClasses={})},t.prototype.applyIconOverridePrefix=function(e){var r=this.iconOverridePrefix;return r&&e.indexOf(r)!==0&&(e=r+e),e},t.prototype.getClass=function(e){return this.classes[e]||""},t.prototype.getIconClass=function(e,r){var n;return r&&this.rtlIconClasses?n=this.rtlIconClasses[e]||this.iconClasses[e]:n=this.iconClasses[e],n?this.baseIconClass+" "+n:""},t.prototype.getCustomButtonIconClass=function(e){var r;return this.iconOverrideCustomButtonOption&&(r=e[this.iconOverrideCustomButtonOption],r)?this.baseIconClass+" "+this.applyIconOverridePrefix(r):""},t}();Ke.prototype.classes={};Ke.prototype.iconClasses={};Ke.prototype.baseIconClass="";Ke.prototype.iconOverridePrefix="";var Nl=function(){function t(e,r,n,i){var a=this;this.execFunc=e,this.emitter=r,this.scrollTime=n,this.scrollTimeReset=i,this.handleScrollRequest=function(o){a.queuedRequest=v({},a.queuedRequest||{},o),a.drain()},r.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return t.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},t.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},t.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},t.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},t}(),De=li({});function Il(t,e,r,n,i,a,o,s,l,c,u,d,p){return{dateEnv:i,options:r,pluginHooks:o,emitter:c,dispatch:s,getCurrentData:l,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:n,theme:a,isRtl:r.direction==="rtl",addResizeHandler:function(f){c.on("_resize",f)},removeResizeHandler:function(f){c.off("_resize",f)},createScrollResponder:function(f){return new Nl(f,c,A(r.scrollTime),r.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:p}}var Mt=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.shouldComponentUpdate=function(r,n){return this.debug&&console.log(hn(r,this.props),hn(n,this.state)),!Vt(this.props,r,this.propEquality)||!Vt(this.state,n,this.stateEquality)},e.prototype.safeSetState=function(r){Vt(this.state,v(v({},this.state),r),this.stateEquality)||this.setState(r)},e.addPropsEquality=kl,e.addStateEquality=xl,e.contextType=De,e}(cr);Mt.prototype.propEquality={};Mt.prototype.stateEquality={};var U=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.contextType=De,e}(Mt);function kl(t){var e=Object.create(this.prototype.propEquality);v(e,t),this.prototype.propEquality=e}function xl(t){var e=Object.create(this.prototype.stateEquality);v(e,t),this.prototype.stateEquality=e}function se(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var Le=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.uid=He(),r}return e.prototype.prepareHits=function(){},e.prototype.queryHit=function(r,n,i,a){return null},e.prototype.isValidSegDownEl=function(r){return!this.props.eventDrag&&!this.props.eventResize&&!j(r,".fc-event-mirror")},e.prototype.isValidDateDownEl=function(r){return!j(r,".fc-event:not(.fc-bg-event)")&&!j(r,".fc-more-link")&&!j(r,"a[data-navlink]")&&!j(r,".fc-popover")},e}(U);function le(t){return{id:He(),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,contentTypeHandlers:t.contentTypeHandlers||{},listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function Al(t,e){var r={},n={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,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(a){for(var o=0,s=a;o<s.length;o++){var l=s[o];r[l.id]||(r[l.id]=!0,i(l.deps),n=Ol(n,l))}}return t&&i(t),i(e),n}function Hl(){var t=[],e=[],r;return function(n,i){return(!r||!xe(n,t)||!xe(i,e))&&(r=Al(n,i)),t=n,e=i,r}}function Ol(t,e){return{reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:v(v({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:v(v({},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:v(v({},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:v(v({},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:v(v({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,contentTypeHandlers:v(v({},t.contentTypeHandlers),e.contentTypeHandlers),listenerRefiners:v(v({},t.listenerRefiners),e.listenerRefiners),optionRefiners:v(v({},t.optionRefiners),e.optionRefiners),propSetHandlers:v(v({},t.propSetHandlers),e.propSetHandlers)}}var pe=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ke);pe.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};pe.prototype.baseIconClass="fc-icon";pe.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};pe.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};pe.prototype.iconOverrideOption="buttonIcons";pe.prototype.iconOverrideCustomButtonOption="icon";pe.prototype.iconOverridePrefix="fc-icon-";function Ll(t,e){var r={},n;for(n in t)ir(n,r,t,e);for(n in e)ir(n,r,t,e);return r}function ir(t,e,r,n){if(e[t])return e[t];var i=Fl(t,e,r,n);return i&&(e[t]=i),i}function Fl(t,e,r,n){var i=r[t],a=n[t],o=function(u){return i&&i[u]!==null?i[u]:a&&a[u]!==null?a[u]:null},s=o("component"),l=o("superType"),c=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");c=ir(l,e,r,n)}return!s&&c&&(s=c.component),s?{type:t,component:s,defaults:v(v({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:v(v({},c?c.overrides:{}),a?a.rawOptions:{})}:null}var Fe=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.rootElRef=$(),r.handleRootEl=function(n){se(r.rootElRef,n),r.props.elRef&&se(r.props.elRef,n)},r}return e.prototype.render=function(){var r=this,n=this.props,i=n.hookProps;return b(Nr,{hookProps:i,didMount:n.didMount,willUnmount:n.willUnmount,elRef:this.handleRootEl},function(a){return b(qi,{hookProps:i,content:n.content,defaultContent:n.defaultContent,backupElRef:r.rootElRef},function(o,s){return n.children(a,Yi(n.classNames,i),o,s)})})},e}(U),Wi=li(0);function qi(t){return b(Wi.Consumer,null,function(e){return b(Bl,v({renderId:e},t))})}var Bl=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.innerElRef=$(),r}return e.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},e.prototype.componentDidMount=function(){this.updateCustomContent()},e.prototype.componentDidUpdate=function(){this.updateCustomContent()},e.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},e.prototype.renderInnerContent=function(){var r=this.customContentInfo,n=this.getInnerContent(),i=this.getContentMeta(n);return!r||r.contentKey!==i.contentKey?(r&&(r.destroy&&r.destroy(),r=this.customContentInfo=null),i.contentKey&&(r=this.customContentInfo=v({contentKey:i.contentKey,contentVal:n[i.contentKey]},i.buildLifecycleFuncs()))):r&&(r.contentVal=n[i.contentKey]),r?[]:n},e.prototype.getInnerContent=function(){var r=this.props,n=Rn(r.content,r.hookProps);return n===void 0&&(n=Rn(r.defaultContent,r.hookProps)),n==null?null:n},e.prototype.getContentMeta=function(r){var n=this.context.pluginHooks.contentTypeHandlers,i="",a=null;if(r){for(var o in n)if(r[o]!==void 0){i=o,a=n[o];break}}return{contentKey:i,buildLifecycleFuncs:a}},e.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},e}(U),Nr=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handleRootEl=function(n){r.rootEl=n,r.props.elRef&&se(r.props.elRef,n)},r}return e.prototype.render=function(){return this.props.children(this.handleRootEl)},e.prototype.componentDidMount=function(){var r=this.props.didMount;r&&r(v(v({},this.props.hookProps),{el:this.rootEl}))},e.prototype.componentWillUnmount=function(){var r=this.props.willUnmount;r&&r(v(v({},this.props.hookProps),{el:this.rootEl}))},e}(U);function Gi(){var t,e,r=[];return function(n,i){return(!e||!oe(e,i)||n!==t)&&(t=n,e=i,r=Yi(n,i)),r}}function Yi(t,e){return typeof t=="function"&&(t=t(e)),tr(t)}function Rn(t,e){return typeof t=="function"?t(e,b):t}var ar=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.normalizeClassNames=Gi(),r}return e.prototype.render=function(){var r=this,n=r.props,i=r.context,a=i.options,o={view:i.viewApi},s=this.normalizeClassNames(a.viewClassNames,o);return b(Nr,{hookProps:o,didMount:a.viewDidMount,willUnmount:a.viewWillUnmount,elRef:n.elRef},function(l){return n.children(l,["fc-"+n.viewSpec.type+"-view","fc-view"].concat(s))})},e}(U);function Mn(t){return we(t,Vl)}function Vl(t){var e=typeof t=="function"?{component:t}:t,r=e.component;return e.content&&(r=Ul(e)),{superType:e.type,component:r,rawOptions:e}}function Ul(t){return function(e){return b(De.Consumer,null,function(r){return b(ar,{viewSpec:r.viewSpec},function(n,i){var a=v(v({},e),{nextDayThreshold:r.options.nextDayThreshold});return b(Fe,{hookProps:a,classNames:t.classNames,content:t.content,didMount:t.didMount,willUnmount:t.willUnmount,elRef:n},function(o,s,l,c){return b("div",{className:i.concat(s).join(" "),ref:o},c)})})})}}function zl(t,e,r,n){var i=Mn(t),a=Mn(e.views),o=Ll(i,a);return we(o,function(s){return Wl(s,a,e,r,n)})}function Wl(t,e,r,n,i){var a=t.overrides.duration||t.defaults.duration||n.duration||r.duration,o=null,s="",l="",c={};if(a&&(o=ql(a),o)){var u=$t(o);s=u.unit,u.value===1&&(l=s,c=e[s]?e[s].rawOptions:{})}var d=function(f){var h=f.buttonText||{},m=t.defaults.buttonTextKey;return m!=null&&h[m]!=null?h[m]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null},p=function(f){var h=f.buttonHints||{},m=t.defaults.buttonTextKey;return m!=null&&h[m]!=null?h[m]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null};return{type:t.type,component:t.component,duration:o,durationUnit:s,singleUnit:l,optionDefaults:t.defaults,optionOverrides:v(v({},c),t.overrides),buttonTextOverride:d(n)||d(r)||t.overrides.buttonText,buttonTextDefault:d(i)||t.defaults.buttonText||d(Pe)||t.type,buttonTitleOverride:p(n)||p(r)||t.overrides.buttonHint,buttonTitleDefault:p(i)||t.defaults.buttonHint||p(Pe)}}var Pn={};function ql(t){var e=JSON.stringify(t),r=Pn[e];return r===void 0&&(r=A(t),Pn[e]=r),r}var ji=function(){function t(e){this.props=e,this.nowDate=Xe(e.nowInput,e.dateEnv),this.initHiddenDays()}return t.prototype.buildPrev=function(e,r,n){var i=this.props.dateEnv,a=i.subtract(i.startOf(r,e.currentRangeUnit),e.dateIncrement);return this.build(a,-1,n)},t.prototype.buildNext=function(e,r,n){var i=this.props.dateEnv,a=i.add(i.startOf(r,e.currentRangeUnit),e.dateIncrement);return this.build(a,1,n)},t.prototype.build=function(e,r,n){n===void 0&&(n=!0);var i=this.props,a,o,s,l,c,u;return a=this.buildValidRange(),a=this.trimHiddenDays(a),n&&(e=Ps(e,a)),o=this.buildCurrentRangeInfo(e,r),s=/^(year|month|week|day)$/.test(o.unit),l=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,s),l=this.trimHiddenDays(l),c=l,i.showNonCurrentDates||(c=Ze(c,o.range)),c=this.adjustActiveRange(c),c=Ze(c,a),u=Sr(o.range,a),{validRange:a,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:s,activeRange:c,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(o.duration)}},t.prototype.buildValidRange=function(){var e=this.props.validRangeInput,r=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(r)||{start:null,end:null}},t.prototype.buildCurrentRangeInfo=function(e,r){var n=this.props,i=null,a=null,o=null,s;return n.duration?(i=n.duration,a=n.durationUnit,o=this.buildRangeFromDuration(e,r,i,a)):(s=this.props.dayCount)?(a="day",o=this.buildRangeFromDayCount(e,r,s)):(o=this.buildCustomVisibleRange(e))?a=n.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),a=$t(i).unit,o=this.buildRangeFromDuration(e,r,i,a)),{duration:i,unit:a,range:o}},t.prototype.getFallbackDuration=function(){return A({day:1})},t.prototype.adjustActiveRange=function(e){var r=this.props,n=r.dateEnv,i=r.usesMinMaxTime,a=r.slotMinTime,o=r.slotMaxTime,s=e.start,l=e.end;return i&&(Me(a)<0&&(s=V(s),s=n.add(s,a)),Me(o)>1&&(l=V(l),l=Z(l,-1),l=n.add(l,o))),{start:s,end:l}},t.prototype.buildRangeFromDuration=function(e,r,n,i){var a=this.props,o=a.dateEnv,s=a.dateAlignment,l,c,u;if(!s){var d=this.props.dateIncrement;d&&je(d)<je(n)?s=$t(d).unit:s=i}Me(n)<=1&&this.isHiddenDay(l)&&(l=this.skipHiddenDays(l,r),l=V(l));function p(){l=o.startOf(e,s),c=o.add(l,n),u={start:l,end:c}}return p(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,r),p()),u},t.prototype.buildRangeFromDayCount=function(e,r,n){var i=this.props,a=i.dateEnv,o=i.dateAlignment,s=0,l=e,c;o&&(l=a.startOf(l,o)),l=V(l),l=this.skipHiddenDays(l,r),c=l;do c=Z(c,1),this.isHiddenDay(c)||(s+=1);while(s<n);return{start:l,end:c}},t.prototype.buildCustomVisibleRange=function(e){var r=this.props,n=r.visibleRangeInput,i=typeof n=="function"?n.call(r.calendarApi,r.dateEnv.toDate(e)):n,a=this.refineRange(i);return a&&(a.start==null||a.end==null)?null:a},t.prototype.buildRenderRange=function(e,r,n){return e},t.prototype.buildDateIncrement=function(e){var r=this.props.dateIncrement,n;return r||((n=this.props.dateAlignment)?A(1,n):e||A({days:1}))},t.prototype.refineRange=function(e){if(e){var r=_s(e,this.props.dateEnv);return r&&(r=Si(r)),r}return null},t.prototype.initHiddenDays=function(){var e=this.props.hiddenDays||[],r=[],n=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(r[i]=e.indexOf(i)!==-1)||(n+=1);if(!n)throw new Error("invalid hiddenDays");this.isHiddenDayHash=r},t.prototype.trimHiddenDays=function(e){var r=e.start,n=e.end;return r&&(r=this.skipHiddenDays(r)),n&&(n=this.skipHiddenDays(n,-1,!0)),r==null||n==null||r<n?{start:r,end:n}:null},t.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},t.prototype.skipHiddenDays=function(e,r,n){for(r===void 0&&(r=1),n===void 0&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?r:0)+7)%7];)e=Z(e,r);return e},t}();function Gl(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Yl(t,e){var r;switch(e.type){case"SET_OPTION":return v(v({},t),(r={},r[e.optionName]=e.rawOptionValue,r));default:return t}}function jl(t,e,r,n){var i;switch(e.type){case"CHANGE_VIEW_TYPE":return n.build(e.dateMarker||r);case"CHANGE_DATE":return n.build(e.dateMarker);case"PREV":if(i=n.buildPrev(t,r),i.isValid)return i;break;case"NEXT":if(i=n.buildNext(t,r),i.isValid)return i;break}return t}function Zl(t,e,r){var n=e?e.activeRange:null;return Xi({},tu(t,r),n,r)}function Xl(t,e,r,n){var i=r?r.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Xi(t,e.sources,i,n);case"REMOVE_EVENT_SOURCE":return Jl(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ki(t,i,n):t;case"FETCH_EVENT_SOURCES":return Ir(t,e.sourceIds?mi(e.sourceIds):Ji(t,n),i,e.isRefetch||!1,n);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return eu(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Kl(t,e,r){var n=e?e.activeRange:null;return Ir(t,Ji(t,r),n,!0,r)}function Zi(t){for(var e in t)if(t[e].isFetching)return!0;return!1}function Xi(t,e,r,n){for(var i={},a=0,o=e;a<o.length;a++){var s=o[a];i[s.sourceId]=s}return r&&(i=Ki(i,r,n)),v(v({},t),i)}function Jl(t,e){return Se(t,function(r){return r.sourceId!==e})}function Ki(t,e,r){return Ir(t,Se(t,function(n){return Ql(n,e,r)}),e,!1,r)}function Ql(t,e,r){return Qi(t,r)?!r.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Ir(t,e,r,n,i){var a={};for(var o in t){var s=t[o];e[o]?a[o]=$l(s,r,n,i):a[o]=s}return a}function $l(t,e,r,n){var i=n.options,a=n.calendarApi,o=n.pluginHooks.eventSourceDefs[t.sourceDefId],s=He();return o.fetch({eventSource:t,range:e,isRefetch:r,context:n},function(l){var c=l.rawEvents;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(a,c,l.xhr)||c),t.success&&(c=t.success.call(a,c,l.xhr)||c),n.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:e,rawEvents:c})},function(l){console.warn(l.message,l),i.eventSourceFailure&&i.eventSourceFailure.call(a,l),t.failure&&t.failure(l),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:e,error:l})}),v(v({},t),{isFetching:!0,latestFetchId:s})}function eu(t,e,r,n){var i,a=t[e];return a&&r===a.latestFetchId?v(v({},t),(i={},i[e]=v(v({},a),{isFetching:!1,fetchRange:n}),i)):t}function Ji(t,e){return Se(t,function(r){return Qi(r,e)})}function tu(t,e){var r=Ni(e),n=[].concat(t.eventSources||[]),i=[];t.initialEvents&&n.unshift(t.initialEvents),t.events&&n.unshift(t.events);for(var a=0,o=n;a<o.length;a++){var s=o[a],l=Pi(s,e,r);l&&i.push(l)}return i}function Qi(t,e){var r=e.pluginHooks.eventSourceDefs;return!r[t.sourceDefId].ignoreRange}function ru(t,e,r,n,i){switch(e.type){case"RECEIVE_EVENTS":return nu(t,r[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"ADD_EVENTS":return au(t,e.eventStore,n?n.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Er(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?ke(t,n.activeRange,i):t;case"REMOVE_EVENTS":return ys(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return $i(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Tt(t,function(a){return!a.sourceId});case"REMOVE_ALL_EVENTS":return te();default:return t}}function nu(t,e,r,n,i,a){if(e&&r===e.latestFetchId){var o=gt(iu(i,e,a),e,a);return n&&(o=ke(o,n,a)),Er($i(t,e.sourceId),o)}return t}function iu(t,e,r){var n=r.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Nn(t,i)),n&&(t=Nn(t,n)),t}function Nn(t,e){var r;if(!e)r=t;else{r=[];for(var n=0,i=t;n<i.length;n++){var a=i[n],o=e(a);o?r.push(o):o==null&&r.push(a)}}return r}function au(t,e,r,n){return r&&(e=ke(e,r,n)),Er(t,e)}function ou(t,e,r){var n=t.defs,i=we(t.instances,function(a){var o=n[a.defId];return o.allDay||o.recurringDef?a:v(v({},a),{range:{start:r.createMarker(e.toDate(a.range.start,a.forcedStartTzo)),end:r.createMarker(e.toDate(a.range.end,a.forcedEndTzo))},forcedStartTzo:r.canComputeOffset?null:a.forcedStartTzo,forcedEndTzo:r.canComputeOffset?null:a.forcedEndTzo})});return{defs:n,instances:i}}function $i(t,e){return Tt(t,function(r){return r.sourceId!==e})}function su(t,e){return{defs:t.defs,instances:Se(t.instances,function(r){return!e[r.instanceId]})}}function lu(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function uu(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function cu(t,e){var r;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return r=e.state,{affectedEvents:r.affectedEvents,mutatedEvents:r.mutatedEvents,isEvent:r.isEvent};default:return t}}function du(t,e){var r;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return r=e.state,{affectedEvents:r.affectedEvents,mutatedEvents:r.mutatedEvents,isEvent:r.isEvent};default:return t}}function fu(t,e,r,n,i){var a=t.headerToolbar?In(t.headerToolbar,t,e,r,n,i):null,o=t.footerToolbar?In(t.footerToolbar,t,e,r,n,i):null;return{header:a,footer:o}}function In(t,e,r,n,i,a){var o={},s=[],l=!1;for(var c in t){var u=t[c],d=pu(u,e,r,n,i,a);o[c]=d.widgets,s.push.apply(s,d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:l}}function pu(t,e,r,n,i,a){var o=e.direction==="rtl",s=e.customButtons||{},l=r.buttonText||{},c=e.buttonText||{},u=r.buttonHints||{},d=e.buttonHints||{},p=t?t.split(" "):[],f=[],h=!1,m=p.map(function(C){return C.split(",").map(function(g){if(g==="title")return h=!0,{buttonName:g};var S,_,D,H,I,O;if(S=s[g])D=function(G){S.click&&S.click.call(G.target,G,G.target)},(H=n.getCustomButtonIconClass(S))||(H=n.getIconClass(g,o))||(I=S.text),O=S.hint||S.text;else if(_=i[g]){f.push(g),D=function(){a.changeView(g)},(I=_.buttonTextOverride)||(H=n.getIconClass(g,o))||(I=_.buttonTextDefault);var M=_.buttonTextOverride||_.buttonTextDefault;O=ze(_.buttonTitleOverride||_.buttonTitleDefault||e.viewHint,[M,g],M)}else if(a[g])if(D=function(){a[g]()},(I=l[g])||(H=n.getIconClass(g,o))||(I=c[g]),g==="prevYear"||g==="nextYear"){var z=g==="prevYear"?"prev":"next";O=ze(u[z]||d[z],[c.year||"year","year"],c[g])}else O=function(G){return ze(u[g]||d[g],[c[G]||G,G],c[g])};return{buttonName:g,buttonClick:D,buttonIcon:H,buttonText:I,buttonHint:O}})});return{widgets:m,viewsWithButtons:f,hasTitle:h}}var hu={ignoreRange:!0,parseMeta:function(t){return Array.isArray(t.events)?t.events:null},fetch:function(t,e){e({rawEvents:t.eventSource.meta})}},vu=le({eventSourceDefs:[hu]}),mu={parseMeta:function(t){return typeof t.events=="function"?t.events:null},fetch:function(t,e,r){var n=t.context.dateEnv,i=t.eventSource.meta;Tl(i.bind(null,_i(t.range,n)),function(a){e({rawEvents:a})},r)}},gu=le({eventSourceDefs:[mu]});function yu(t,e,r,n,i){t=t.toUpperCase();var a=null;t==="GET"?e=bu(e,r):a=ea(r);var o=new XMLHttpRequest;o.open(t,e,!0),t!=="GET"&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){if(o.status>=200&&o.status<400){var s=!1,l=void 0;try{l=JSON.parse(o.responseText),s=!0}catch{}s?n(l,o):i("Failure parsing JSON",o)}else i("Request failed",o)},o.onerror=function(){i("Request failed",o)},o.send(a)}function bu(t,e){return t+(t.indexOf("?")===-1?"?":"&")+ea(e)}function ea(t){var e=[];for(var r in t)e.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e.join("&")}var Eu={method:String,extraParams:E,startParam:String,endParam:String,timeZoneParam:String},Cu={parseMeta:function(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:function(t,e,r){var n=t.eventSource.meta,i=wu(n,t.range,t.context);yu(n.method,n.url,i,function(a,o){e({rawEvents:a,xhr:o})},function(a,o){r({message:a,xhr:o})})}},Su=le({eventSourceRefiners:Eu,eventSourceDefs:[Cu]});function wu(t,e,r){var n=r.dateEnv,i=r.options,a,o,s,l,c={};return a=t.startParam,a==null&&(a=i.startParam),o=t.endParam,o==null&&(o=i.endParam),s=t.timeZoneParam,s==null&&(s=i.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},v(c,l),c[a]=n.formatIso(e.start),c[o]=n.formatIso(e.end),n.timeZone!=="local"&&(c[s]=n.timeZone),c}var Du={daysOfWeek:E,startTime:A,endTime:A,duration:A,startRecur:E,endRecur:E},Tu={parse:function(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){var r={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},n=void 0;return t.duration&&(n=t.duration),!n&&t.startTime&&t.endTime&&(n=Jo(t.endTime,t.startTime)),{allDayGuess:Boolean(!t.startTime&&!t.endTime),duration:n,typeData:r}}return null},expand:function(t,e,r){var n=Ze(e,{start:t.startRecur,end:t.endRecur});return n?Ru(t.daysOfWeek,t.startTime,n,r):[]}},_u=le({recurringTypes:[Tu],eventRefiners:Du});function Ru(t,e,r,n){for(var i=t?mi(t):null,a=V(r.start),o=r.end,s=[];a<o;){var l=void 0;(!i||i[a.getUTCDay()])&&(e?l=n.add(a,e):l=a,s.push(l)),a=Z(a,1)}return s}var Mu=le({optionChangeHandlers:{events:function(t,e){kn([t],e)},eventSources:kn}});function kn(t,e){for(var r=mr(e.getCurrentData().eventSources),n=[],i=0,a=t;i<a.length;i++){for(var o=a[i],s=!1,l=0;l<r.length;l+=1)if(r[l]._raw===o){r.splice(l,1),s=!0;break}s||n.push(o)}for(var c=0,u=r;c<u.length;c++){var d=u[c];e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var p=0,f=n;p<f.length;p++){var h=f[p];e.calendarApi.addEventSource(h)}}function Pu(t,e){e.emitter.trigger("datesSet",v(v({},_i(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Nu(t,e){var r=e.emitter;r.hasHandlers("eventsSet")&&r.trigger("eventsSet",be(t,e))}var Iu=[vu,gu,Su,_u,Mu,le({isLoadingFuncs:[function(t){return Zi(t.eventSources)}],contentTypeHandlers:{html:ku,domNodes:xu},propSetHandlers:{dateProfile:Pu,eventStore:Nu}})];function ku(){var t=null,e="";function r(i,a){(i!==t||a!==e)&&(i.innerHTML=a),t=i,e=a}function n(){t.innerHTML="",t=null,e=""}return{render:r,destroy:n}}function xu(){var t=null,e=[];function r(i,a){var o=Array.prototype.slice.call(a);if(i!==t||!xe(e,o)){for(var s=0,l=o;s<l.length;s++){var c=l[s];i.appendChild(c)}n()}t=i,e=o}function n(){e.forEach(dr),e=[],t=null}return{render:r,destroy:n}}var kr=function(){function t(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return t.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},t.prototype.pause=function(e){e===void 0&&(e="");var r=this.pauseDepths;r[e]=(r[e]||0)+1,this.clearTimeout()},t.prototype.resume=function(e,r){e===void 0&&(e="");var n=this.pauseDepths;if(e in n){if(r)delete n[e];else{n[e]-=1;var i=n[e];i<=0&&delete n[e]}this.tryDrain()}},t.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},t.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},t.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},t.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},t.prototype.drained=function(){this.drainedOption&&this.drainedOption()},t}(),Au=function(){function t(e,r){this.runTaskOption=e,this.drainedOption=r,this.queue=[],this.delayedRunner=new kr(this.drain.bind(this))}return t.prototype.request=function(e,r){this.queue.push(e),this.delayedRunner.request(r)},t.prototype.pause=function(e){this.delayedRunner.pause(e)},t.prototype.resume=function(e,r){this.delayedRunner.resume(e,r)},t.prototype.drain=function(){for(var e=this.queue;e.length;){for(var r=[],n=void 0;n=e.shift();)this.runTask(n),r.push(n);this.drained(r)}},t.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},t.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},t}();function Hu(t,e,r){var n;return/^(year|month)$/.test(t.currentRangeUnit)?n=t.currentRange:n=t.activeRange,r.formatRange(n.start,n.end,Y(e.titleFormat||Ou(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Ou(t){var e=t.currentRangeUnit;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};var r=pt(t.currentRange.start,t.currentRange.end);return r!==null&&r>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}var ta=function(){function t(e){var r=this;this.computeOptionsData=k(this._computeOptionsData),this.computeCurrentViewData=k(this._computeCurrentViewData),this.organizeRawLocales=k(Oi),this.buildLocale=k(Tr),this.buildPluginHooks=Hl(),this.buildDateEnv=k(Lu),this.buildTheme=k(Fu),this.parseToolbars=k(fu),this.buildViewSpecs=k(zl),this.buildDateProfileGenerator=st(Bu),this.buildViewApi=k(Vu),this.buildViewUiProps=st(Wu),this.buildEventUiBySource=k(Uu,oe),this.buildEventUiBases=k(zu),this.parseContextBusinessHours=st(qu),this.buildTitle=k(Hu),this.emitter=new Rt,this.actionRunner=new Au(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return r.data},this.dispatch=function(_){r.actionRunner.request(_)},this.props=e,this.actionRunner.pause();var n={},i=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),a=i.calendarOptions.initialView||i.pluginHooks.initialView,o=this.computeCurrentViewData(a,i,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);var s=Js(i.calendarOptions,i.dateEnv),l=o.dateProfileGenerator.build(s);ye(l.activeRange,s)||(s=l.currentRange.start);for(var c={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},u=0,d=i.pluginHooks.contextInit;u<d.length;u++){var p=d[u];p(c)}for(var f=Zl(i.calendarOptions,l,c),h={dynamicOptionOverrides:n,currentViewType:a,currentDate:s,dateProfile:l,businessHours:this.parseContextBusinessHours(c),eventSources:f,eventUiBases:{},eventStore:te(),renderableEventStore:te(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},m=v(v({},c),h),C=0,g=i.pluginHooks.reducers;C<g.length;C++){var S=g[C];v(h,S(null,null,m))}Gt(h,c)&&this.emitter.trigger("loading",!0),this.state=h,this.updateData(),this.actionRunner.resume()}return t.prototype.resetOptions=function(e,r){var n=this.props;n.optionOverrides=r?v(v({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},t.prototype._handleAction=function(e){var r=this,n=r.props,i=r.state,a=r.emitter,o=Yl(i.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,o,n.calendarApi),l=Gl(i.currentViewType,e),c=this.computeCurrentViewData(l,s,n.optionOverrides,o);n.calendarApi.currentDataManager=this,a.setThisContext(n.calendarApi),a.setOptions(c.options);var u={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:a,getCurrentData:this.getCurrentData},d=i.currentDate,p=i.dateProfile;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(p=c.dateProfileGenerator.build(d)),d=Ks(d,e),p=jl(p,e,d,c.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!ye(p.currentRange,d))&&(d=p.currentRange.start);for(var f=Xl(i.eventSources,e,p,u),h=ru(i.eventStore,e,f,p,u),m=Zi(f),C=m&&!c.options.progressiveEventRendering&&i.renderableEventStore||h,g=this.buildViewUiProps(u),S=g.eventUiSingleBase,_=g.selectionConfig,D=this.buildEventUiBySource(f),H=this.buildEventUiBases(C.defs,S,D),I={dynamicOptionOverrides:o,currentViewType:l,currentDate:d,dateProfile:p,eventSources:f,eventStore:h,renderableEventStore:C,selectionConfig:_,eventUiBases:H,businessHours:this.parseContextBusinessHours(u),dateSelection:lu(i.dateSelection,e),eventSelection:uu(i.eventSelection,e),eventDrag:cu(i.eventDrag,e),eventResize:du(i.eventResize,e)},O=v(v({},u),I),M=0,z=s.pluginHooks.reducers;M<z.length;M++){var G=z[M];v(I,G(i,e,O))}var ae=Gt(i,u),Q=Gt(I,u);!ae&&Q?a.trigger("loading",!0):ae&&!Q&&a.trigger("loading",!1),this.state=I,n.onAction&&n.onAction(e)},t.prototype.updateData=function(){var e=this,r=e.props,n=e.state,i=this.data,a=this.computeOptionsData(r.optionOverrides,n.dynamicOptionOverrides,r.calendarApi),o=this.computeCurrentViewData(n.currentViewType,a,r.optionOverrides,n.dynamicOptionOverrides),s=this.data=v(v(v({viewTitle:this.buildTitle(n.dateProfile,o.options,a.dateEnv),calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a),o),n),l=a.pluginHooks.optionChangeHandlers,c=i&&i.calendarOptions,u=a.calendarOptions;if(c&&c!==u){c.timeZone!==u.timeZone&&(n.eventSources=s.eventSources=Kl(s.eventSources,n.dateProfile,s),n.eventStore=s.eventStore=ou(s.eventStore,i.dateEnv,s.dateEnv));for(var d in l)c[d]!==u[d]&&l[d](u[d],s)}r.onData&&r.onData(s)},t.prototype._computeOptionsData=function(e,r,n){var i=this.processRawCalendarOptions(e,r),a=i.refinedOptions,o=i.pluginHooks,s=i.localeDefaults,l=i.availableLocaleData,c=i.extra;xn(c);var u=this.buildDateEnv(a.timeZone,a.locale,a.weekNumberCalculation,a.firstDay,a.weekText,o,l,a.defaultRangeSeparator),d=this.buildViewSpecs(o.views,e,r,s),p=this.buildTheme(a,o),f=this.parseToolbars(a,e,p,d,n);return{calendarOptions:a,pluginHooks:o,dateEnv:u,viewSpecs:d,theme:p,toolbarConfig:f,localeDefaults:s,availableRawLocales:l.map}},t.prototype.processRawCalendarOptions=function(e,r){var n=Ut([Pe,e,r]),i=n.locales,a=n.locale,o=this.organizeRawLocales(i),s=o.map,l=this.buildLocale(a||o.defaultCode,s).options,c=this.buildPluginHooks(e.plugins||[],Iu),u=this.currentCalendarOptionsRefiners=v(v(v(v(v({},bn),En),Cn),c.listenerRefiners),c.optionRefiners),d={},p=Ut([Pe,l,e,r]),f={},h=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,C=!1;for(var g in p)g!=="plugins"&&(p[g]===h[g]||ve[g]&&g in h&&ve[g](h[g],p[g])?f[g]=m[g]:u[g]?(f[g]=u[g](p[g]),C=!0):d[g]=h[g]);return C&&(this.currentCalendarOptionsInput=p,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:o,localeDefaults:l,extra:d}},t.prototype._computeCurrentViewData=function(e,r,n,i){var a=r.viewSpecs[e];if(!a)throw new Error('viewType "'+e+`" is not available. Please make sure you've loaded all neccessary plugins`);var o=this.processRawViewOptions(a,r.pluginHooks,r.localeDefaults,n,i),s=o.refinedOptions,l=o.extra;xn(l);var c=this.buildDateProfileGenerator({dateProfileGeneratorClass:a.optionDefaults.dateProfileGeneratorClass,duration:a.duration,durationUnit:a.durationUnit,usesMinMaxTime:a.optionDefaults.usesMinMaxTime,dateEnv:r.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,monthMode:s.monthMode,fixedWeekCount:s.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,r.dateEnv);return{viewSpec:a,options:s,dateProfileGenerator:c,viewApi:u}},t.prototype.processRawViewOptions=function(e,r,n,i,a){var o=Ut([Pe,e.optionDefaults,n,i,e.optionOverrides,a]),s=v(v(v(v(v(v({},bn),En),Cn),ms),r.listenerRefiners),r.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,p={};for(var f in o)o[f]===c[f]||ve[f]&&ve[f](o[f],c[f])?l[f]=u[f]:(o[f]===this.currentCalendarOptionsInput[f]||ve[f]&&ve[f](o[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(l[f]=this.currentCalendarOptionsRefined[f]):s[f]?l[f]=s[f](o[f]):p[f]=o[f],d=!0);return d&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}},t}();function Lu(t,e,r,n,i,a,o,s){var l=Tr(e||o.defaultCode,o.map);return new xi({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:r,firstDay:n,weekText:i,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function Fu(t,e){var r=e.themeClasses[t.themeSystem]||pe;return new r(t)}function Bu(t){var e=t.dateProfileGeneratorClass||ji;return new e(t)}function Vu(t,e,r){return new js(t,e,r)}function Uu(t){return we(t,function(e){return e.ui})}function zu(t,e,r){var n={"":e};for(var i in t){var a=t[i];a.sourceId&&r[a.sourceId]&&(n[i]=r[a.sourceId])}return n}function Wu(t){var e=t.options;return{eventUiSingleBase:bt({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:bt({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Gt(t,e){for(var r=0,n=e.pluginHooks.isLoadingFuncs;r<n.length;r++){var i=n[r];if(i(t))return!0}return!1}function qu(t){return ul(t.options.businessHours,t)}function xn(t,e){for(var r in t)console.warn("Unknown option '"+r+"'"+(e?" for view '"+e+"'":""))}(function(t){R(e,t);function e(r){var n=t.call(this,r)||this;return n.handleData=function(i){n.dataManager?n.setState(i):n.state=i},n.dataManager=new ta({optionOverrides:r.optionOverrides,calendarApi:r.calendarApi,onData:n.handleData}),n}return e.prototype.render=function(){return this.props.children(this.state)},e.prototype.componentDidUpdate=function(r){var n=this.props.optionOverrides;n!==r.optionOverrides&&this.dataManager.resetOptions(n)},e})(cr);var Gu=function(){function t(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return t.prototype.addSegs=function(e){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];this.insertEntry(a,r)}return r},t.prototype.insertEntry=function(e,r){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,r)},t.prototype.isInsertionValid=function(e,r){return(this.maxCoord===-1||e.levelCoord+r.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)},t.prototype.handleInvalidInsertion=function(e,r,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(r,e.touchingEntry,n):(n.push(r),0)},t.prototype.splitEntry=function(e,r,n){var i=0,a=[],o=e.span,s=r.span;return o.start<s.start&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.start,end:s.start}},a)),o.end>s.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:o.end}},a)),i?(n.push.apply(n,W([{index:e.index,thickness:e.thickness,span:ra(s,o)}],a)),i):(n.push(e),0)},t.prototype.insertEntryAt=function(e,r){var n=this,i=n.entriesByLevel,a=n.levelCoords;r.lateral===-1?(Yt(a,r.level,r.levelCoord),Yt(i,r.level,[e])):Yt(i[r.level],r.lateral,e),this.stackCnts[qe(e)]=r.stackCnt},t.prototype.findInsertion=function(e){for(var r=this,n=r.levelCoords,i=r.entriesByLevel,a=r.strictOrder,o=r.stackCnts,s=n.length,l=0,c=-1,u=-1,d=null,p=0,f=0;f<s;f+=1){var h=n[f];if(!a&&h>=l+e.thickness)break;for(var m=i[f],C=void 0,g=Hn(m,e.span.start,An),S=g[0]+g[1];(C=m[S])&&C.span.start<e.span.end;){var _=h+C.thickness;_>l&&(l=_,d=C,c=f,u=S),_===l&&(p=Math.max(p,o[qe(C)]+1)),S+=1}}var D=0;if(d)for(D=c+1;D<s&&n[D]<l;)D+=1;var H=-1;return D<s&&n[D]===l&&(H=Hn(i[D],e.span.end,An)[0]),{touchingLevel:c,touchingLateral:u,touchingEntry:d,stackCnt:p,levelCoord:l,level:D,lateral:H}},t.prototype.toRects=function(){for(var e=this,r=e.entriesByLevel,n=e.levelCoords,i=r.length,a=[],o=0;o<i;o+=1)for(var s=r[o],l=n[o],c=0,u=s;c<u.length;c++){var d=u[c];a.push(v(v({},d),{levelCoord:l}))}return a},t}();function An(t){return t.span.end}function qe(t){return t.index+":"+t.span.start}function ra(t,e){var r=Math.max(t.start,e.start),n=Math.min(t.end,e.end);return r<n?{start:r,end:n}:null}function Yt(t,e,r){t.splice(e,0,r)}function Hn(t,e,r){var n=0,i=t.length;if(!i||e<r(t[n]))return[0,0];if(e>r(t[i-1]))return[i,0];for(;n<i;){var a=Math.floor(n+(i-n)/2),o=r(t[a]);if(e<o)i=a;else if(e>o)n=a+1;else return[a,1]}return[n,0]}var Be=function(){function t(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return t.prototype.destroy=function(){},t}();function Yu(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function xr(t){var e;return e={},e[t.component.uid]=t,e}var or={},na=function(){function t(e,r){this.emitter=new Rt}return t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(e){},t.prototype.setMirrorNeedsRevert=function(e){},t.prototype.setAutoScrollEnabled=function(e){},t}(),Ar={},ju=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this,n=this.props.widgetGroups.map(function(i){return r.renderWidgetGroup(i)});return b.apply(void 0,W(["div",{className:"fc-toolbar-chunk"}],n))},e.prototype.renderWidgetGroup=function(r){for(var n=this.props,i=this.context.theme,a=[],o=!0,s=0,l=r;s<l.length;s++){var c=l[s],u=c.buttonName,d=c.buttonClick,p=c.buttonText,f=c.buttonIcon,h=c.buttonHint;if(u==="title")o=!1,a.push(b("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{var m=u===n.activeButton,C=!n.isTodayEnabled&&u==="today"||!n.isPrevEnabled&&u==="prev"||!n.isNextEnabled&&u==="next",g=["fc-"+u+"-button",i.getClass("button")];m&&g.push(i.getClass("buttonActive")),a.push(b("button",{type:"button",title:typeof h=="function"?h(n.navUnit):h,disabled:C,"aria-pressed":m,className:g.join(" "),onClick:d},p||(f?b("span",{className:f}):"")))}}if(a.length>1){var S=o&&i.getClass("buttonGroup")||"";return b.apply(void 0,W(["div",{className:S}],a))}return a[0]},e}(U),On=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this.props,n=r.model,i=r.extraClassName,a=!1,o,s,l=n.sectionWidgets,c=l.center;l.left?(a=!0,o=l.left):o=l.start,l.right?(a=!0,s=l.right):s=l.end;var u=[i||"","fc-toolbar",a?"fc-toolbar-ltr":""];return b("div",{className:u.join(" ")},this.renderSection("start",o||[]),this.renderSection("center",c||[]),this.renderSection("end",s||[]))},e.prototype.renderSection=function(r,n){var i=this.props;return b(ju,{key:r,widgetGroups:n,title:i.title,navUnit:i.navUnit,activeButton:i.activeButton,isTodayEnabled:i.isTodayEnabled,isPrevEnabled:i.isPrevEnabled,isNextEnabled:i.isNextEnabled,titleId:i.titleId})},e}(U),Zu=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.state={availableWidth:null},r.handleEl=function(n){r.el=n,se(r.props.elRef,n),r.updateAvailableWidth()},r.handleResize=function(){r.updateAvailableWidth()},r}return e.prototype.render=function(){var r=this,n=r.props,i=r.state,a=n.aspectRatio,o=["fc-view-harness",a||n.liquid||n.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return a?i.availableWidth!==null?s=i.availableWidth/a:l=1/a*100+"%":s=n.height||"",b("div",{"aria-labelledby":n.labeledById,ref:this.handleEl,className:o.join(" "),style:{height:s,paddingBottom:l}},n.children)},e.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},e.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},e.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},e}(U),Xu=function(t){R(e,t);function e(r){var n=t.call(this,r)||this;return n.handleSegClick=function(i,a){var o=n.component,s=o.context,l=Ae(a);if(l&&o.isValidSegDownEl(i.target)){var c=j(i.target,".fc-event-forced-url"),u=c?c.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:a,event:new q(o.context,l.eventRange.def,l.eventRange.instance),jsEvent:i,view:s.viewApi}),u&&!i.defaultPrevented&&(window.location.href=u)}},n.destroy=fi(r.el,"click",".fc-event",n.handleSegClick),n}return e}(Be),Ku=function(t){R(e,t);function e(r){var n=t.call(this,r)||this;return n.handleEventElRemove=function(i){i===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(i,a){Ae(a)&&(n.currentSegEl=a,n.triggerEvent("eventMouseEnter",i,a))},n.handleSegLeave=function(i,a){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent("eventMouseLeave",i,a))},n.removeHoverListeners=Eo(r.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return e.prototype.destroy=function(){this.removeHoverListeners()},e.prototype.triggerEvent=function(r,n,i){var a=this.component,o=a.context,s=Ae(i);(!n||a.isValidSegDownEl(n.target))&&o.emitter.trigger(r,{el:i,event:new q(o,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:o.viewApi})},e}(Be),Ju=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.buildViewContext=k(Il),r.buildViewPropTransformers=k($u),r.buildToolbarProps=k(Qu),r.headerRef=$(),r.footerRef=$(),r.interactionsStore={},r.state={viewLabelId:wt()},r.registerInteractiveComponent=function(n,i){var a=Yu(n,i),o=[Xu,Ku],s=o.concat(r.props.pluginHooks.componentInteractions),l=s.map(function(c){return new c(a)});r.interactionsStore[n.uid]=l,or[n.uid]=a},r.unregisterInteractiveComponent=function(n){var i=r.interactionsStore[n.uid];if(i){for(var a=0,o=i;a<o.length;a++){var s=o[a];s.destroy()}delete r.interactionsStore[n.uid]}delete or[n.uid]},r.resizeRunner=new kr(function(){r.props.emitter.trigger("_resize",!0),r.props.emitter.trigger("windowResize",{view:r.props.viewApi})}),r.handleWindowResize=function(n){var i=r.props.options;i.handleWindowResize&&n.target===window&&r.resizeRunner.request(i.windowResizeDelay)},r}return e.prototype.render=function(){var r=this.props,n=r.toolbarConfig,i=r.options,a=this.buildToolbarProps(r.viewSpec,r.dateProfile,r.dateProfileGenerator,r.currentDate,Xe(r.options.now,r.dateEnv),r.viewTitle),o=!1,s="",l;r.isHeightAuto||r.forPrint?s="":i.height!=null?o=!0:i.contentHeight!=null?s=i.contentHeight:l=Math.max(i.aspectRatio,.5);var c=this.buildViewContext(r.viewSpec,r.viewApi,r.options,r.dateProfileGenerator,r.dateEnv,r.theme,r.pluginHooks,r.dispatch,r.getCurrentData,r.emitter,r.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return b(De.Provider,{value:c},n.header&&b(On,v({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},a)),b(Zu,{liquid:o,height:s,aspectRatio:l,labeledById:u},this.renderView(r),this.buildAppendContent()),n.footer&&b(On,v({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},a)))},e.prototype.componentDidMount=function(){var r=this.props;this.calendarInteractions=r.pluginHooks.calendarInteractions.map(function(a){return new a(r)}),window.addEventListener("resize",this.handleWindowResize);var n=r.pluginHooks.propSetHandlers;for(var i in n)n[i](r[i],r)},e.prototype.componentDidUpdate=function(r){var n=this.props,i=n.pluginHooks.propSetHandlers;for(var a in i)n[a]!==r[a]&&i[a](n[a],n)},e.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var r=0,n=this.calendarInteractions;r<n.length;r++){var i=n[r];i.destroy()}this.props.emitter.trigger("_unmount")},e.prototype.buildAppendContent=function(){var r=this.props,n=r.pluginHooks.viewContainerAppends.map(function(i){return i(r)});return b.apply(void 0,W([K,{}],n))},e.prototype.renderView=function(r){for(var n=r.pluginHooks,i=r.viewSpec,a={dateProfile:r.dateProfile,businessHours:r.businessHours,eventStore:r.renderableEventStore,eventUiBases:r.eventUiBases,dateSelection:r.dateSelection,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,isHeightAuto:r.isHeightAuto,forPrint:r.forPrint},o=this.buildViewPropTransformers(n.viewPropsTransformers),s=0,l=o;s<l.length;s++){var c=l[s];v(a,c.transform(a,r))}var u=i.component;return b(u,v({},a))},e}(Mt);function Qu(t,e,r,n,i,a){var o=r.build(i,void 0,!1),s=r.buildPrev(e,n,!1),l=r.buildNext(e,n,!1);return{title:a,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:o.isValid&&!ye(e.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function $u(t){return t.map(function(e){return new e})}var ec=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.state={forPrint:!1},r.handleBeforePrint=function(){r.setState({forPrint:!0})},r.handleAfterPrint=function(){r.setState({forPrint:!1})},r}return e.prototype.render=function(){var r=this.props,n=r.options,i=this.state.forPrint,a=i||n.height==="auto"||n.contentHeight==="auto",o=!a&&n.height!=null?n.height:"",s=["fc",i?"fc-media-print":"fc-media-screen","fc-direction-"+n.direction,r.theme.getClass("root")];return Bi()||s.push("fc-liquid-hack"),r.children(s,o,a,i)},e.prototype.componentDidMount=function(){var r=this.props.emitter;r.on("_beforeprint",this.handleBeforePrint),r.on("_afterprint",this.handleAfterPrint)},e.prototype.componentWillUnmount=function(){var r=this.props.emitter;r.off("_beforeprint",this.handleBeforePrint),r.off("_afterprint",this.handleAfterPrint)},e}(U);function tc(t,e){return!t||e>10?Y({weekday:"short"}):e>1?Y({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Y({weekday:"long"})}var ia="fc-col-header-cell";function aa(t){return t.text}var rc=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this.context,n=r.dateEnv,i=r.options,a=r.theme,o=r.viewApi,s=this.props,l=s.date,c=s.dateProfile,u=Vi(l,s.todayRange,null,c),d=[ia].concat(_r(u,a)),p=n.format(l,s.dayHeaderFormat),f=!u.isDisabled&&s.colCnt>1?Rr(this.context,l):{},h=v(v(v({date:n.toDate(l),view:o},s.extraHookProps),{text:p}),u);return b(Fe,{hookProps:h,classNames:i.dayHeaderClassNames,content:i.dayHeaderContent,defaultContent:aa,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},function(m,C,g,S){return b("th",v({ref:m,role:"columnheader",className:d.concat(C).join(" "),"data-date":u.isDisabled?void 0:gi(l),colSpan:s.colSpan},s.extraDataAttrs),b("div",{className:"fc-scrollgrid-sync-inner"},!u.isDisabled&&b("a",v({ref:g,className:["fc-col-header-cell-cushion",s.isSticky?"fc-sticky":""].join(" ")},f),S)))})},e}(U),nc=Y({weekday:"long"}),ic=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this.props,n=this.context,i=n.dateEnv,a=n.theme,o=n.viewApi,s=n.options,l=Z(new Date(2592e5),r.dow),c={dow:r.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},u=[ia].concat(_r(c,a),r.extraClassNames||[]),d=i.format(l,r.dayHeaderFormat),p=v(v(v(v({date:l},c),{view:o}),r.extraHookProps),{text:d});return b(Fe,{hookProps:p,classNames:s.dayHeaderClassNames,content:s.dayHeaderContent,defaultContent:aa,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},function(f,h,m,C){return b("th",v({ref:f,role:"columnheader",className:u.concat(h).join(" "),colSpan:r.colSpan},r.extraDataAttrs),b("div",{className:"fc-scrollgrid-sync-inner"},b("a",{"aria-label":i.format(l,nc),className:["fc-col-header-cell-cushion",r.isSticky?"fc-sticky":""].join(" "),ref:m},C)))})},e}(U),oa=function(t){R(e,t);function e(r,n){var i=t.call(this,r,n)||this;return i.initialNowDate=Xe(n.options.now,n.dateEnv),i.initialNowQueriedMs=new Date().valueOf(),i.state=i.computeTiming().currentState,i}return e.prototype.render=function(){var r=this,n=r.props,i=r.state;return n.children(i.nowDate,i.todayRange)},e.prototype.componentDidMount=function(){this.setTimeout()},e.prototype.componentDidUpdate=function(r){r.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},e.prototype.componentWillUnmount=function(){this.clearTimeout()},e.prototype.computeTiming=function(){var r=this,n=r.props,i=r.context,a=Ce(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),o=i.dateEnv.startOf(a,n.unit),s=i.dateEnv.add(o,A(1,n.unit)),l=s.valueOf()-a.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:o,todayRange:Ln(o)},nextState:{nowDate:s,todayRange:Ln(s)},waitMs:l}},e.prototype.setTimeout=function(){var r=this,n=this.computeTiming(),i=n.nextState,a=n.waitMs;this.timeoutId=setTimeout(function(){r.setState(i,function(){r.setTimeout()})},a)},e.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},e.contextType=De,e}(cr);function Ln(t){var e=V(t),r=Z(e,1);return{start:e,end:r}}var ac=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.createDayHeaderFormatter=k(oc),r}return e.prototype.render=function(){var r=this.context,n=this.props,i=n.dates,a=n.dateProfile,o=n.datesRepDistinctDays,s=n.renderIntro,l=this.createDayHeaderFormatter(r.options.dayHeaderFormat,o,i.length);return b(oa,{unit:"day"},function(c,u){return b("tr",{role:"row"},s&&s("day"),i.map(function(d){return o?b(rc,{key:d.toISOString(),date:d,dateProfile:a,todayRange:u,colCnt:i.length,dayHeaderFormat:l}):b(ic,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:l})}))})},e}(U);function oc(t,e,r){return t||tc(e,r)}var sc=function(){function t(e,r){for(var n=e.start,i=e.end,a=[],o=[],s=-1;n<i;)r.isHiddenDay(n)?a.push(s+.5):(s+=1,a.push(s),o.push(n)),n=Z(n,1);this.dates=o,this.indices=a,this.cnt=o.length}return t.prototype.sliceRange=function(e){var r=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Z(e.end,-1)),i=Math.max(0,r),a=Math.min(this.cnt-1,n);return i=Math.ceil(i),a=Math.floor(a),i<=a?{firstIndex:i,lastIndex:a,isStart:r===i,isEnd:n===a}:null},t.prototype.getDateDayIndex=function(e){var r=this.indices,n=Math.floor(Oe(this.dates[0],e));return n<0?r[0]-1:n>=r.length?r[r.length-1]+1:r[n]},t}(),lc=function(){function t(e,r){var n=e.dates,i,a,o;if(r){for(a=n[0].getUTCDay(),i=1;i<n.length&&n[i].getUTCDay()!==a;i+=1);o=Math.ceil(n.length/i)}else o=1,i=n.length;this.rowCnt=o,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return t.prototype.buildCells=function(){for(var e=[],r=0;r<this.rowCnt;r+=1){for(var n=[],i=0;i<this.colCnt;i+=1)n.push(this.buildCell(r,i));e.push(n)}return e},t.prototype.buildCell=function(e,r){var n=this.daySeries.dates[e*this.colCnt+r];return{key:n.toISOString(),date:n}},t.prototype.buildHeaderDates=function(){for(var e=[],r=0;r<this.colCnt;r+=1)e.push(this.cells[0][r].date);return e},t.prototype.sliceRange=function(e){var r=this.colCnt,n=this.daySeries.sliceRange(e),i=[];if(n)for(var a=n.firstIndex,o=n.lastIndex,s=a;s<=o;){var l=Math.floor(s/r),c=Math.min((l+1)*r,o+1);i.push({row:l,firstCol:s%r,lastCol:(c-1)%r,isStart:n.isStart&&s===a,isEnd:n.isEnd&&c-1===o}),s=c}return i},t}(),uc=function(){function t(){this.sliceBusinessHours=k(this._sliceBusinessHours),this.sliceDateSelection=k(this._sliceDateSpan),this.sliceEventStore=k(this._sliceEventStore),this.sliceEventDrag=k(this._sliceInteraction),this.sliceEventResize=k(this._sliceInteraction),this.forceDayIfListItem=!1}return t.prototype.sliceProps=function(e,r,n,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var s=e.eventUiBases,l=this.sliceEventStore.apply(this,W([e.eventStore,s,r,n],a));return{dateSelectionSegs:this.sliceDateSelection.apply(this,W([e.dateSelection,s,i],a)),businessHourSegs:this.sliceBusinessHours.apply(this,W([e.businessHours,r,n,i],a)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,W([e.eventDrag,s,r,n],a)),eventResize:this.sliceEventResize.apply(this,W([e.eventResize,s,r,n],a)),eventSelection:e.eventSelection}},t.prototype.sliceNowDate=function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this._sliceDateSpan.apply(this,W([{range:{start:e,end:Ce(e,1)},allDay:!1},{},r],n))},t.prototype._sliceBusinessHours=function(e,r,n,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];return e?this._sliceEventStore.apply(this,W([ke(e,jt(r,Boolean(n)),i),{},r,n],a)).bg:[]},t.prototype._sliceEventStore=function(e,r,n,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];if(e){var s=wn(e,r,jt(n,Boolean(i)),i);return{bg:this.sliceEventRanges(s.bg,a),fg:this.sliceEventRanges(s.fg,a)}}return{bg:[],fg:[]}},t.prototype._sliceInteraction=function(e,r,n,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];if(!e)return null;var s=wn(e.mutatedEvents,r,jt(n,Boolean(i)),i);return{segs:this.sliceEventRanges(s.fg,a),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},t.prototype._sliceDateSpan=function(e,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];if(!e)return[];for(var o=Ws(e,r,n),s=this.sliceRange.apply(this,W([e.range],i)),l=0,c=s;l<c.length;l++){var u=c[l];u.eventRange=o}return s},t.prototype.sliceEventRanges=function(e,r){for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n.push.apply(n,this.sliceEventRange(o,r))}return n},t.prototype.sliceEventRange=function(e,r){var n=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(n={start:n.start,end:Z(n.start,1)});for(var i=this.sliceRange.apply(this,W([n],r)),a=0,o=i;a<o.length;a++){var s=o[a];s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return i},t}();function jt(t,e){var r=t.activeRange;return e?r:{start:Ce(r.start,t.slotMinTime.milliseconds),end:Ce(r.end,t.slotMaxTime.milliseconds-864e5)}}function sa(t,e,r){var n=t.mutatedEvents.instances;for(var i in n)if(!_t(e.validRange,n[i].range))return!1;return la({eventDrag:t},r)}function cc(t,e,r){return _t(e.validRange,t.range)?la({dateSelection:t},r):!1}function la(t,e){var r=e.getCurrentData(),n=v({businessHours:r.businessHours,dateSelection:"",eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||dc)(n,e)}function dc(t,e,r,n){return r===void 0&&(r={}),!(t.eventDrag&&!fc(t,e,r,n)||t.dateSelection&&!pc(t,e,r,n))}function fc(t,e,r,n){var i=e.getCurrentData(),a=t.eventDrag,o=a.mutatedEvents,s=o.defs,l=o.instances,c=Et(s,a.isEvent?t.eventUiBases:{"":i.selectionConfig});n&&(c=we(c,n));var u=su(t.eventStore,a.affectedEvents.instances),d=u.defs,p=u.instances,f=Et(d,t.eventUiBases);for(var h in l){var m=l[h],C=m.range,g=c[m.defId],S=s[m.defId];if(!ua(g.constraints,C,u,t.businessHours,e))return!1;var _=e.options.eventOverlap,D=typeof _=="function"?_:null;for(var H in p){var I=p[H];if(Sr(C,I.range)){var O=f[I.defId].overlap;if(O===!1&&a.isEvent||g.overlap===!1||D&&!D(new q(e,d[I.defId],I),new q(e,S,m)))return!1}}for(var M=i.eventStore,z=0,G=g.allows;z<G.length;z++){var ae=G[z],Q=v(v({},r),{range:m.range,allDay:S.allDay}),Qe=M.defs[S.defId],$e=M.instances[h],It=void 0;if(Qe?It=new q(e,Qe,$e):It=new q(e,S),!ae(wr(Q,e),It))return!1}}return!0}function pc(t,e,r,n){var i=t.eventStore,a=i.defs,o=i.instances,s=t.dateSelection,l=s.range,c=e.getCurrentData().selectionConfig;if(n&&(c=n(c)),!ua(c.constraints,l,i,t.businessHours,e))return!1;var u=e.options.selectOverlap,d=typeof u=="function"?u:null;for(var p in o){var f=o[p];if(Sr(l,f.range)&&(c.overlap===!1||d&&!d(new q(e,a[f.defId],f),null)))return!1}for(var h=0,m=c.allows;h<m.length;h++){var C=m[h],g=v(v({},r),s);if(!C(wr(g,e),null))return!1}return!0}function ua(t,e,r,n,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(!vc(hc(s,e,r,n,i),e))return!1}return!0}function hc(t,e,r,n,i){return t==="businessHours"?Zt(ke(n,e,i)):typeof t=="string"?Zt(Tt(r,function(a){return a.groupId===t})):typeof t=="object"&&t?Zt(ke(t,e,i)):[]}function Zt(t){var e=t.instances,r=[];for(var n in e)r.push(e[n].range);return r}function vc(t,e){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(_t(i,e))return!0}return!1}var rt=/^(visible|hidden)$/,mc=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handleEl=function(n){r.el=n,se(r.props.elRef,n)},r}return e.prototype.render=function(){var r=this.props,n=r.liquid,i=r.liquidIsAbsolute,a=n&&i,o=["fc-scroller"];return n&&(i?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),b("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:r.overflowX,overflowY:r.overflowY,left:a&&-(r.overcomeLeft||0)||"",right:a&&-(r.overcomeRight||0)||"",bottom:a&&-(r.overcomeBottom||0)||"",marginLeft:!a&&-(r.overcomeLeft||0)||"",marginRight:!a&&-(r.overcomeRight||0)||"",marginBottom:!a&&-(r.overcomeBottom||0)||"",maxHeight:r.maxHeight||""}},r.children)},e.prototype.needsXScrolling=function(){if(rt.test(this.props.overflowX))return!1;for(var r=this.el,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),i=r.children,a=0;a<i.length;a+=1){var o=i[a];if(o.getBoundingClientRect().width>n)return!0}return!1},e.prototype.needsYScrolling=function(){if(rt.test(this.props.overflowY))return!1;for(var r=this.el,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),i=r.children,a=0;a<i.length;a+=1){var o=i[a];if(o.getBoundingClientRect().height>n)return!0}return!1},e.prototype.getXScrollbarWidth=function(){return rt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},e.prototype.getYScrollbarWidth=function(){return rt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},e}(U),ge=function(){function t(e){var r=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(n,i){var a=r,o=a.depths,s=a.currentMap,l=!1,c=!1;n!==null?(l=i in s,s[i]=n,o[i]=(o[i]||0)+1,c=!0):(o[i]-=1,o[i]||(delete s[i],delete r.callbackMap[i],l=!0)),r.masterCallback&&(l&&r.masterCallback(null,String(i)),c&&r.masterCallback(n,String(i)))}}return t.prototype.createRef=function(e){var r=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(i){r.handleValue(i,String(e))}),n},t.prototype.collect=function(e,r,n){return Go(this.currentMap,e,r,n)},t.prototype.getAll=function(){return mr(this.currentMap)},t}();function gc(t){for(var e=go(t,".fc-scrollgrid-shrink"),r=0,n=0,i=e;n<i.length;n++){var a=i[n];r=Math.max(r,Io(a))}return Math.ceil(r)}function ca(t,e){return t.liquid&&e.liquid}function yc(t,e){return e.maxHeight!=null||ca(t,e)}function bc(t,e,r,n){var i=r.expandRows,a=typeof e.content=="function"?e.content(r):b("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:r.tableMinWidth,width:r.clientWidth,height:i?r.clientHeight:""}},r.tableColGroupNode,b(n?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(r):e.rowContent));return a}function Ec(t,e){return xe(t,e,oe)}function Cc(t,e){for(var r=[],n=0,i=t;n<i.length;n++)for(var a=i[n],o=a.span||1,s=0;s<o;s+=1)r.push(b("col",{style:{width:a.width==="shrink"?Sc(e):a.width||"",minWidth:a.minWidth||""}}));return b.apply(void 0,W(["colgroup",{}],r))}function Sc(t){return t==null?4:t}function wc(t){for(var e=0,r=t;e<r.length;e++){var n=r[e];if(n.width==="shrink")return!0}return!1}function Dc(t,e){var r=["fc-scrollgrid",e.theme.getClass("table")];return t&&r.push("fc-scrollgrid-liquid"),r}function Tc(t,e){var r=["fc-scrollgrid-section","fc-scrollgrid-section-"+t.type,t.className];return e&&t.liquid&&t.maxHeight==null&&r.push("fc-scrollgrid-section-liquid"),t.isSticky&&r.push("fc-scrollgrid-section-sticky"),r}function _c(t){return b("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Fn(t){var e=t.stickyHeaderDates;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Rc(t){var e=t.stickyFooterScrollbar;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}var da=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.processCols=k(function(n){return n},Ec),r.renderMicroColGroup=k(Cc),r.scrollerRefs=new ge,r.scrollerElRefs=new ge(r._handleScrollerEl.bind(r)),r.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},r.handleSizing=function(){r.safeSetState(v({shrinkWidth:r.computeShrinkWidth()},r.computeScrollerDims()))},r}return e.prototype.render=function(){var r=this,n=r.props,i=r.state,a=r.context,o=n.sections||[],s=this.processCols(n.cols),l=this.renderMicroColGroup(s,i.shrinkWidth),c=Dc(n.liquid,a);n.collapsibleWidth&&c.push("fc-scrollgrid-collapsible");for(var u=o.length,d=0,p,f=[],h=[],m=[];d<u&&(p=o[d]).type==="header";)f.push(this.renderSection(p,l,!0)),d+=1;for(;d<u&&(p=o[d]).type==="body";)h.push(this.renderSection(p,l,!1)),d+=1;for(;d<u&&(p=o[d]).type==="footer";)m.push(this.renderSection(p,l,!0)),d+=1;var C=!Bi(),g={role:"rowgroup"};return b("table",{role:"grid",className:c.join(" "),style:{height:n.height}},Boolean(!C&&f.length)&&b.apply(void 0,W(["thead",g],f)),Boolean(!C&&h.length)&&b.apply(void 0,W(["tbody",g],h)),Boolean(!C&&m.length)&&b.apply(void 0,W(["tfoot",g],m)),C&&b.apply(void 0,W(W(W(["tbody",g],f),h),m)))},e.prototype.renderSection=function(r,n,i){return"outerContent"in r?b(K,{key:r.key},r.outerContent):b("tr",{key:r.key,role:"presentation",className:Tc(r,this.props.liquid).join(" ")},this.renderChunkTd(r,n,r.chunk,i))},e.prototype.renderChunkTd=function(r,n,i,a){if("outerContent"in i)return i.outerContent;var o=this.props,s=this.state,l=s.forceYScrollbars,c=s.scrollerClientWidths,u=s.scrollerClientHeights,d=yc(o,r),p=ca(o,r),f=o.liquid?l?"scroll":d?"auto":"hidden":"visible",h=r.key,m=bc(r,i,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!o.collapsibleWidth&&c[h]!==void 0?c[h]:null,clientHeight:u[h]!==void 0?u[h]:null,expandRows:r.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},a);return b(a?"th":"td",{ref:i.elRef,role:"presentation"},b("div",{className:"fc-scroller-harness"+(p?" fc-scroller-harness-liquid":"")},b(mc,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:f,overflowX:o.liquid?"hidden":"visible",maxHeight:r.maxHeight,liquid:p,liquidIsAbsolute:!0},m)))},e.prototype._handleScrollerEl=function(r,n){var i=Mc(this.props.sections,n);i&&se(i.chunk.scrollerElRef,r)},e.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},e.prototype.componentDidUpdate=function(){this.handleSizing()},e.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},e.prototype.computeShrinkWidth=function(){return wc(this.props.cols)?gc(this.scrollerElRefs.getAll()):0},e.prototype.computeScrollerDims=function(){var r=El(),n=this,i=n.scrollerRefs,a=n.scrollerElRefs,o=!1,s={},l={};for(var c in i.currentMap){var u=i.currentMap[c];if(u&&u.needsYScrolling()){o=!0;break}}for(var d=0,p=this.props.sections;d<p.length;d++){var f=p[d],c=f.key,h=a.currentMap[c];if(h){var m=h.parentNode;s[c]=Math.floor(m.getBoundingClientRect().width-(o?r.y:0)),l[c]=Math.floor(m.getBoundingClientRect().height)}}return{forceYScrollbars:o,scrollerClientWidths:s,scrollerClientHeights:l}},e}(U);da.addStateEquality({scrollerClientWidths:oe,scrollerClientHeights:oe});function Mc(t,e){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(i.key===e)return i}return null}var Hr=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.elRef=$(),r}return e.prototype.render=function(){var r=this,n=r.props,i=r.context,a=i.options,o=n.seg,s=o.eventRange,l=s.ui,c={event:new q(i,s.def,s.instance),view:i.viewApi,timeText:n.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!n.disableDragging&&ks(o,i),isStartResizable:!n.disableResizing&&xs(o,i),isEndResizable:!n.disableResizing&&As(o),isMirror:Boolean(n.isDragging||n.isResizing||n.isDateSelecting),isStart:Boolean(o.isStart),isEnd:Boolean(o.isEnd),isPast:Boolean(n.isPast),isFuture:Boolean(n.isFuture),isToday:Boolean(n.isToday),isSelected:Boolean(n.isSelected),isDragging:Boolean(n.isDragging),isResizing:Boolean(n.isResizing)},u=Hs(c).concat(l.classNames);return b(Fe,{hookProps:c,classNames:a.eventClassNames,content:a.eventContent,defaultContent:n.defaultContent,didMount:a.eventDidMount,willUnmount:a.eventWillUnmount,elRef:this.elRef},function(d,p,f,h){return n.children(d,u.concat(p),f,h,c)})},e.prototype.componentDidMount=function(){Dn(this.elRef.current,this.props.seg)},e.prototype.componentDidUpdate=function(r){var n=this.props.seg;n!==r.seg&&Dn(this.elRef.current,n)},e}(U),Pc=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this,n=r.props,i=r.context,a=n.seg,o=i.options.eventTimeFormat||n.defaultTimeFormat,s=Di(a,o,i,n.defaultDisplayEventTime,n.defaultDisplayEventEnd);return b(Hr,{seg:a,timeText:s,disableDragging:n.disableDragging,disableResizing:n.disableResizing,defaultContent:n.defaultContent||Nc,isDragging:n.isDragging,isResizing:n.isResizing,isDateSelecting:n.isDateSelecting,isSelected:n.isSelected,isPast:n.isPast,isFuture:n.isFuture,isToday:n.isToday},function(l,c,u,d,p){return b("a",v({className:n.extraClassNames.concat(c).join(" "),style:{borderColor:p.borderColor,backgroundColor:p.backgroundColor},ref:l},Ti(a,i)),b("div",{className:"fc-event-main",ref:u,style:{color:p.textColor}},d),p.isStartResizable&&b("div",{className:"fc-event-resizer fc-event-resizer-start"}),p.isEndResizable&&b("div",{className:"fc-event-resizer fc-event-resizer-end"}))})},e}(U);function Nc(t){return b("div",{className:"fc-event-main-frame"},t.timeText&&b("div",{className:"fc-event-time"},t.timeText),b("div",{className:"fc-event-title-container"},b("div",{className:"fc-event-title fc-sticky"},t.event.title||b(K,null,"\xA0"))))}var Ic=Y({day:"numeric"}),fa=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this,n=r.props,i=r.context,a=i.options,o=pa({date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraProps:n.extraHookProps,viewApi:i.viewApi,dateEnv:i.dateEnv});return b(qi,{hookProps:o,content:a.dayCellContent,defaultContent:n.defaultContent},n.children)},e}(U);function pa(t){var e=t.date,r=t.dateEnv,n=Vi(e,t.todayRange,null,t.dateProfile);return v(v(v({date:r.toDate(e),view:t.viewApi},n),{dayNumberText:t.showDayNumber?r.format(e,Ic):""}),t.extraProps)}var ha=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.refineHookProps=st(pa),r.normalizeClassNames=Gi(),r}return e.prototype.render=function(){var r=this,n=r.props,i=r.context,a=i.options,o=this.refineHookProps({date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraProps:n.extraHookProps,viewApi:i.viewApi,dateEnv:i.dateEnv}),s=_r(o,i.theme).concat(o.isDisabled?[]:this.normalizeClassNames(a.dayCellClassNames,o)),l=o.isDisabled?{}:{"data-date":gi(n.date)};return b(Nr,{hookProps:o,didMount:a.dayCellDidMount,willUnmount:a.dayCellWillUnmount,elRef:n.elRef},function(c){return n.children(c,s,l,o.isDisabled)})},e}(U);function kc(t){return b("div",{className:"fc-"+t})}var xc=function(t){return b(Hr,{defaultContent:Ac,seg:t.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},function(e,r,n,i,a){return b("div",{ref:e,className:["fc-bg-event"].concat(r).join(" "),style:{backgroundColor:a.backgroundColor}},i)})};function Ac(t){var e=t.event.title;return e&&b("div",{className:"fc-event-title"},t.event.title)}var Hc=function(t){return b(De.Consumer,null,function(e){var r=e.dateEnv,n=e.options,i=t.date,a=n.weekNumberFormat||t.defaultFormat,o=r.computeWeekNumber(i),s=r.format(i,a),l={num:o,text:s,date:i};return b(Fe,{hookProps:l,classNames:n.weekNumberClassNames,content:n.weekNumberContent,defaultContent:Oc,didMount:n.weekNumberDidMount,willUnmount:n.weekNumberWillUnmount},t.children)})};function Oc(t){return t.text}var Xt=10,Lc=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.state={titleId:wt()},r.handleRootEl=function(n){r.rootEl=n,r.props.elRef&&se(r.props.elRef,n)},r.handleDocumentMouseDown=function(n){var i=ci(n);r.rootEl.contains(i)||r.handleCloseClick()},r.handleDocumentKeyDown=function(n){n.key==="Escape"&&r.handleCloseClick()},r.handleCloseClick=function(){var n=r.props.onClose;n&&n()},r}return e.prototype.render=function(){var r=this.context,n=r.theme,i=r.options,a=this,o=a.props,s=a.state,l=["fc-popover",n.getClass("popover")].concat(o.extraClassNames||[]);return ho(b("div",v({id:o.id,className:l.join(" "),"aria-labelledby":s.titleId},o.extraAttrs,{ref:this.handleRootEl}),b("div",{className:"fc-popover-header "+n.getClass("popoverHeader")},b("span",{className:"fc-popover-title",id:s.titleId},o.title),b("span",{className:"fc-popover-close "+n.getIconClass("close"),title:i.closeHint,onClick:this.handleCloseClick})),b("div",{className:"fc-popover-body "+n.getClass("popoverContent")},o.children)),o.parentEl)},e.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},e.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},e.prototype.updateSize=function(){var r=this.context.isRtl,n=this.props,i=n.alignmentEl,a=n.alignGridTop,o=this.rootEl,s=Dl(i);if(s){var l=o.getBoundingClientRect(),c=a?j(i,".fc-scrollgrid").getBoundingClientRect().top:s.top,u=r?s.right-l.width:s.left;c=Math.max(c,Xt),u=Math.min(u,document.documentElement.clientWidth-Xt-l.width),u=Math.max(u,Xt);var d=o.offsetParent.getBoundingClientRect();Ue(o,{top:c-d.top,left:u-d.left})}},e}(U),Fc=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handleRootEl=function(n){r.rootEl=n,n?r.context.registerInteractiveComponent(r,{el:n,useEventCenter:!1}):r.context.unregisterInteractiveComponent(r)},r}return e.prototype.render=function(){var r=this.context,n=r.options,i=r.dateEnv,a=this.props,o=a.startDate,s=a.todayRange,l=a.dateProfile,c=i.format(o,n.dayPopoverFormat);return b(ha,{date:o,dateProfile:l,todayRange:s,elRef:this.handleRootEl},function(u,d,p){return b(Lc,{elRef:u,id:a.id,title:c,extraClassNames:["fc-more-popover"].concat(d),extraAttrs:p,parentEl:a.parentEl,alignmentEl:a.alignmentEl,alignGridTop:a.alignGridTop,onClose:a.onClose},b(fa,{date:o,dateProfile:l,todayRange:s},function(f,h){return h&&b("div",{className:"fc-more-popover-misc",ref:f},h)}),a.children)})},e.prototype.queryHit=function(r,n,i,a){var o=this,s=o.rootEl,l=o.props;return r>=0&&r<i&&n>=0&&n<a?{dateProfile:l.dateProfile,dateSpan:v({allDay:!0,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:i,bottom:a},layer:1}:null},e}(Le),Bc=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.linkElRef=$(),r.state={isPopoverOpen:!1,popoverId:wt()},r.handleClick=function(n){var i=r,a=i.props,o=i.context,s=o.options.moreLinkClick,l=Bn(a).start;function c(u){var d=u.eventRange,p=d.def,f=d.instance,h=d.range;return{event:new q(o,p,f),start:o.dateEnv.toDate(h.start),end:o.dateEnv.toDate(h.end),isStart:u.isStart,isEnd:u.isEnd}}typeof s=="function"&&(s=s({date:l,allDay:Boolean(a.allDayDate),allSegs:a.allSegs.map(c),hiddenSegs:a.hiddenSegs.map(c),jsEvent:n,view:o.viewApi})),!s||s==="popover"?r.setState({isPopoverOpen:!0}):typeof s=="string"&&o.calendarApi.zoomTo(l,s)},r.handlePopoverClose=function(){r.setState({isPopoverOpen:!1})},r}return e.prototype.render=function(){var r=this,n=this,i=n.props,a=n.state;return b(De.Consumer,null,function(o){var s=o.viewApi,l=o.options,c=o.calendarApi,u=l.moreLinkText,d=i.moreCnt,p=Bn(i),f=typeof u=="function"?u.call(c,d):"+"+d+" "+u,h=ze(l.moreLinkHint,[d],f),m={num:d,shortText:"+"+d,text:f,view:s};return b(K,null,Boolean(i.moreCnt)&&b(Fe,{elRef:r.linkElRef,hookProps:m,classNames:l.moreLinkClassNames,content:l.moreLinkContent,defaultContent:i.defaultContent||Vc,didMount:l.moreLinkDidMount,willUnmount:l.moreLinkWillUnmount},function(C,g,S,_){return i.children(C,["fc-more-link"].concat(g),S,_,r.handleClick,h,a.isPopoverOpen,a.isPopoverOpen?a.popoverId:"")}),a.isPopoverOpen&&b(Fc,{id:a.popoverId,startDate:p.start,endDate:p.end,dateProfile:i.dateProfile,todayRange:i.todayRange,extraDateSpan:i.extraDateSpan,parentEl:r.parentEl,alignmentEl:i.alignmentElRef.current,alignGridTop:i.alignGridTop,onClose:r.handlePopoverClose},i.popoverContent()))})},e.prototype.componentDidMount=function(){this.updateParentEl()},e.prototype.componentDidUpdate=function(){this.updateParentEl()},e.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=j(this.linkElRef.current,".fc-view-harness"))},e}(U);function Vc(t){return t.text}function Bn(t){if(t.allDayDate)return{start:t.allDayDate,end:Z(t.allDayDate,1)};var e=t.hiddenSegs;return{start:Uc(e),end:Wc(e)}}function Uc(t){return t.reduce(zc).eventRange.range.start}function zc(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Wc(t){return t.reduce(qc).eventRange.range.end}function qc(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}/*! FullCalendar v5.11.5 Docs & License: https://fullcalendar.io/ (c) 2022 Adam Shaw */var Gc=function(t){R(e,t);function e(r,n){n===void 0&&(n={});var i=t.call(this)||this;return i.isRendering=!1,i.isRendered=!1,i.currentClassNames=[],i.customContentRenderId=0,i.handleAction=function(a){switch(a.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":i.renderRunner.tryDrain()}},i.handleData=function(a){i.currentData=a,i.renderRunner.request(a.calendarOptions.rerenderDelay)},i.handleRenderRequest=function(){if(i.isRendering){i.isRendered=!0;var a=i.currentData;sn(function(){po(b(ec,{options:a.calendarOptions,theme:a.theme,emitter:a.emitter},function(o,s,l,c){return i.setClassNames(o),i.setHeight(s),b(Wi.Provider,{value:i.customContentRenderId},b(Ju,v({isHeightAuto:l,forPrint:c},a)))}),i.el)})}else i.isRendered&&(i.isRendered=!1,vo(i.el),i.setClassNames([]),i.setHeight(""))},i.el=r,i.renderRunner=new kr(i.handleRenderRequest),new ta({optionOverrides:n,calendarApi:i,onAction:i.handleAction,onData:i.handleData}),i}return Object.defineProperty(e.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),e.prototype.render=function(){var r=this.isRendering;r?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),r&&this.updateSize()},e.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},e.prototype.updateSize=function(){var r=this;sn(function(){t.prototype.updateSize.call(r)})},e.prototype.batchRendering=function(r){this.renderRunner.pause("batchRendering"),r(),this.renderRunner.resume("batchRendering")},e.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},e.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},e.prototype.resetOptions=function(r,n){this.currentDataManager.resetOptions(r,n)},e.prototype.setClassNames=function(r){if(!xe(r,this.currentClassNames)){for(var n=this.el.classList,i=0,a=this.currentClassNames;i<a.length;i++){var o=a[i];n.remove(o)}for(var s=0,l=r;s<l.length;s++){var o=l[s];n.add(o)}this.currentClassNames=r}},e.prototype.setHeight=function(r){ui(this.el,"height",r)},e}(Qs);const Yc={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};function jc(t){return typeof t=="object"&&(Array.isArray(t)?t=Array.prototype.slice.call(t):t&&(t={...t})),t}function Zc(t,e){const r={};for(const n in t)t.hasOwnProperty(n)&&(r[n]=e(t[n],n));return r}function Xc(t){return function(e){return{vue:t(e)}}}function Kc(t){return le({contentTypeHandlers:{vue:()=>Jc()}})}function Jc(t){let e,r,n;function i(o,s){if(e!==o&&(e&&r&&r.unmount(),e=o),r)n.content=s;else{r=Qc(s);let l=document.createElement("span");o.appendChild(l),n=r.mount(l)}}function a(){r&&r.unmount()}return{render:i,destroy:a}}function Qc(t,e){return Ta({data(){return{content:t}},render(){let{content:r}=this;return r.length===1?r[0]:qn("span",{},r)}})}const $c=_a({props:{options:Object},data:ed,render(){return qn("div",{attrs:{"data-fc-render-id":this.renderId}})},mounted(){this.slotOptions=Zc(this.$slots,Xc);let t=this.buildOptions(this.options,this.$.appContext),e=new Gc(this.$el,t);this.calendar=e,e.render()},methods:{getApi:rd,buildOptions:td},beforeUpdate(){this.getApi().resumeRendering()},beforeUnmount(){this.getApi().destroy()},watch:nd()});function ed(){return{renderId:0}}function td(t,e){return t=t||{},{...this.slotOptions,...t,plugins:(t.plugins||[]).concat([Kc()])}}function rd(){return this.calendar}function nd(){let t={options:{deep:!0,handler(e){let r=this.getApi();r.pauseRendering();let n=this.buildOptions(e,this.$.appContext);r.resetOptions(n),this.renderId++}}};for(let e in Yc)t[`options.${e}`]={deep:!0,handler(r){if(r!==void 0){let n=this.getApi();n.pauseRendering(),n.resetOptions({[e]:jc(r)},!0),this.renderId++}}};return t}/*! FullCalendar v5.11.5 Docs & License: https://fullcalendar.io/ (c) 2022 Adam Shaw */var id=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.headerElRef=$(),r}return e.prototype.renderSimpleLayout=function(r,n){var i=this,a=i.props,o=i.context,s=[],l=Fn(o.options);return r&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),b(ar,{viewSpec:o.viewSpec},function(c,u){return b("div",{ref:c,className:["fc-daygrid"].concat(u).join(" ")},b(da,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,cols:[],sections:s}))})},e.prototype.renderHScrollLayout=function(r,n,i,a){var o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");var s=this,l=s.props,c=s.context,u=!l.forPrint&&Fn(c.options),d=!l.forPrint&&Rc(c.options),p=[];return r&&p.push({type:"header",key:"header",isSticky:u,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}]}),p.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),d&&p.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:_c}]}),b(ar,{viewSpec:c.viewSpec},function(f,h){return b("div",{ref:f,className:["fc-daygrid"].concat(h).join(" ")},b(o,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:i,minWidth:a}]}],sections:p}))})},e}(Le);function nt(t,e){for(var r=[],n=0;n<e;n+=1)r[n]=[];for(var i=0,a=t;i<a.length;i++){var o=a[i];r[o.row].push(o)}return r}function it(t,e){for(var r=[],n=0;n<e;n+=1)r[n]=[];for(var i=0,a=t;i<a.length;i++){var o=a[i];r[o.firstCol].push(o)}return r}function Vn(t,e){var r=[];if(t){for(var n=0;n<e;n+=1)r[n]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(var i=0,a=t.segs;i<a.length;i++){var o=a[i];r[o.row].segs.push(o)}}else for(var n=0;n<e;n+=1)r[n]=null;return r}var ad=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this.props,n=Rr(this.context,r.date);return b(fa,{date:r.date,dateProfile:r.dateProfile,todayRange:r.todayRange,showDayNumber:r.showDayNumber,extraHookProps:r.extraHookProps,defaultContent:od},function(i,a){return(a||r.forceDayTop)&&b("div",{className:"fc-daygrid-day-top",ref:i},b("a",v({id:r.dayNumberId,className:"fc-daygrid-day-number"},n),a||b(K,null,"\xA0")))})},e}(U);function od(t){return t.dayNumberText}var va=Y({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function ma(t){var e=t.eventRange.ui.display;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}var ga=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this.props;return b(Pc,v({},r,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:va,defaultDisplayEventEnd:r.defaultDisplayEventEnd,disableResizing:!r.seg.eventRange.def.allDay}))},e}(U),ya=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var r=this,n=r.props,i=r.context,a=i.options.eventTimeFormat||va,o=Di(n.seg,a,i,!0,n.defaultDisplayEventEnd);return b(Hr,{seg:n.seg,timeText:o,defaultContent:sd,isDragging:n.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:n.isSelected,isPast:n.isPast,isFuture:n.isFuture,isToday:n.isToday},function(s,l,c,u){return b("a",v({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(l).join(" "),ref:s},Ti(n.seg,i)),u)})},e}(U);function sd(t){return b(K,null,b("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&b("div",{className:"fc-event-time"},t.timeText),b("div",{className:"fc-event-title"},t.event.title||b(K,null,"\xA0")))}var ld=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.compileSegs=k(ud),r}return e.prototype.render=function(){var r=this.props,n=this.compileSegs(r.singlePlacements),i=n.allSegs,a=n.invisibleSegs;return b(Bc,{dateProfile:r.dateProfile,todayRange:r.todayRange,allDayDate:r.allDayDate,moreCnt:r.moreCnt,allSegs:i,hiddenSegs:a,alignmentElRef:r.alignmentElRef,alignGridTop:r.alignGridTop,extraDateSpan:r.extraDateSpan,popoverContent:function(){var o=(r.eventDrag?r.eventDrag.affectedInstances:null)||(r.eventResize?r.eventResize.affectedInstances:null)||{};return b(K,null,i.map(function(s){var l=s.eventRange.instance.instanceId;return b("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:o[l]?"hidden":""}},ma(s)?b(ya,v({seg:s,isDragging:!1,isSelected:l===r.eventSelection,defaultDisplayEventEnd:!1},We(s,r.todayRange))):b(ga,v({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r.eventSelection,defaultDisplayEventEnd:!1},We(s,r.todayRange))))}))}},function(o,s,l,c,u,d,p,f){return b("a",v({ref:o,className:["fc-daygrid-more-link"].concat(s).join(" "),title:d,"aria-expanded":p,"aria-controls":f},pi(u)),c)})},e}(U);function ud(t){for(var e=[],r=[],n=0,i=t;n<i.length;n++){var a=i[n];e.push(a.seg),a.isVisible||r.push(a.seg)}return{allSegs:e,invisibleSegs:r}}var cd=Y({week:"narrow"}),dd=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.rootElRef=$(),r.state={dayNumberId:wt()},r.handleRootEl=function(n){se(r.rootElRef,n),se(r.props.elRef,n)},r}return e.prototype.render=function(){var r=this,n=r.context,i=r.props,a=r.state,o=r.rootElRef,s=i.date,l=i.dateProfile,c=Rr(n,s,"week");return b(ha,{date:s,dateProfile:l,todayRange:i.todayRange,showDayNumber:i.showDayNumber,extraHookProps:i.extraHookProps,elRef:this.handleRootEl},function(u,d,p,f){return b("td",v({ref:u,role:"gridcell",className:["fc-daygrid-day"].concat(d,i.extraClassNames||[]).join(" ")},p,i.extraDataAttrs,i.showDayNumber?{"aria-labelledby":a.dayNumberId}:{}),b("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:i.innerElRef},i.showWeekNumber&&b(Hc,{date:s,defaultFormat:cd},function(h,m,C,g){return b("a",v({ref:h,className:["fc-daygrid-week-number"].concat(m).join(" ")},c),g)}),!f&&b(ad,{date:s,dateProfile:l,showDayNumber:i.showDayNumber,dayNumberId:a.dayNumberId,forceDayTop:i.forceDayTop,todayRange:i.todayRange,extraHookProps:i.extraHookProps}),b("div",{className:"fc-daygrid-day-events",ref:i.fgContentElRef},i.fgContent,b("div",{className:"fc-daygrid-day-bottom",style:{marginTop:i.moreMarginTop}},b(ld,{allDayDate:s,singlePlacements:i.singlePlacements,moreCnt:i.moreCnt,alignmentElRef:o,alignGridTop:!i.showDayNumber,extraDateSpan:i.extraDateSpan,dateProfile:i.dateProfile,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,todayRange:i.todayRange}))),b("div",{className:"fc-daygrid-day-bg"},i.bgContent)))})},e}(Le);function fd(t,e,r,n,i,a,o){var s=new vd;s.allowReslicing=!0,s.strictOrder=n,e===!0||r===!0?(s.maxCoord=a,s.hiddenConsumes=!0):typeof e=="number"?s.maxStackCnt=e:typeof r=="number"&&(s.maxStackCnt=r,s.hiddenConsumes=!0);for(var l=[],c=[],u=0;u<t.length;u+=1){var d=t[u],p=d.eventRange.instance.instanceId,f=i[p];f!=null?l.push({index:u,thickness:f,span:{start:d.firstCol,end:d.lastCol+1}}):c.push(d)}for(var h=s.addSegs(l),m=s.toRects(),C=pd(m,t,o),g=C.singleColPlacements,S=C.multiColPlacements,_=C.leftoverMargins,D=[],H=[],I=0,O=c;I<O.length;I++){var d=O[I];S[d.firstCol].push({seg:d,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var M=d.firstCol;M<=d.lastCol;M+=1)g[M].push({seg:Ne(d,M,M+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(var M=0;M<o.length;M+=1)D.push(0);for(var z=0,G=h;z<G.length;z++){var ae=G[z],d=t[ae.index],Q=ae.span;S[Q.start].push({seg:Ne(d,Q.start,Q.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var M=Q.start;M<Q.end;M+=1)D[M]+=1,g[M].push({seg:Ne(d,M,M+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(var M=0;M<o.length;M+=1)H.push(_[M]);return{singleColPlacements:g,multiColPlacements:S,moreCnts:D,moreMarginTops:H}}function pd(t,e,r){for(var n=hd(t,r.length),i=[],a=[],o=[],s=0;s<r.length;s+=1){for(var l=n[s],c=[],u=0,d=0,p=0,f=l;p<f.length;p++){var h=f[p],m=e[h.index];c.push({seg:Ne(m,s,s+1,r),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-u}),u=h.levelCoord+h.thickness}var C=[];u=0,d=0;for(var g=0,S=l;g<S.length;g++){var h=S[g],m=e[h.index],_=h.span.end-h.span.start>1,D=h.span.start===s;d+=h.levelCoord-u,u=h.levelCoord+h.thickness,_?(d+=h.thickness,D&&C.push({seg:Ne(m,h.span.start,h.span.end,r),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):D&&(C.push({seg:Ne(m,h.span.start,h.span.end,r),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:d}),d=0)}i.push(c),a.push(C),o.push(d)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}function hd(t,e){for(var r=[],n=0;n<e;n+=1)r.push([]);for(var i=0,a=t;i<a.length;i++)for(var o=a[i],n=o.span.start;n<o.span.end;n+=1)r[n].push(o);return r}function Ne(t,e,r,n){if(t.firstCol===e&&t.lastCol===r-1)return t;var i=t.eventRange,a=i.range,o=Ze(a,{start:n[e].date,end:Z(n[r-1].date,1)});return v(v({},t),{firstCol:e,lastCol:r-1,eventRange:{def:i.def,ui:v(v({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:t.isStart&&o.start.valueOf()===a.start.valueOf(),isEnd:t.isEnd&&o.end.valueOf()===a.end.valueOf()})}var vd=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.hiddenConsumes=!1,r.forceHidden={},r}return e.prototype.addSegs=function(r){for(var n=this,i=t.prototype.addSegs.call(this,r),a=this.entriesByLevel,o=function(l){return!n.forceHidden[qe(l)]},s=0;s<a.length;s+=1)a[s]=a[s].filter(o);return i},e.prototype.handleInvalidInsertion=function(r,n,i){var a=this,o=a.entriesByLevel,s=a.forceHidden,l=r.touchingEntry,c=r.touchingLevel,u=r.touchingLateral;if(this.hiddenConsumes&&l){var d=qe(l);if(!s[d])if(this.allowReslicing){var p=v(v({},l),{span:ra(l.span,n.span)}),f=qe(p);s[f]=!0,o[c][u]=p,this.splitEntry(l,n,i)}else s[d]=!0,i.push(l)}return t.prototype.handleInvalidInsertion.call(this,r,n,i)},e}(Gu),ba=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.cellElRefs=new ge,r.frameElRefs=new ge,r.fgElRefs=new ge,r.segHarnessRefs=new ge,r.rootElRef=$(),r.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},r}return e.prototype.render=function(){var r=this,n=this,i=n.props,a=n.state,o=n.context,s=o.options,l=i.cells.length,c=it(i.businessHourSegs,l),u=it(i.bgEventSegs,l),d=it(this.getHighlightSegs(),l),p=it(this.getMirrorSegs(),l),f=fd(Ns(i.fgEventSegs,s.eventOrder),i.dayMaxEvents,i.dayMaxEventRows,s.eventOrderStrict,a.eventInstanceHeights,a.maxContentHeight,i.cells),h=f.singleColPlacements,m=f.multiColPlacements,C=f.moreCnts,g=f.moreMarginTops,S=i.eventDrag&&i.eventDrag.affectedInstances||i.eventResize&&i.eventResize.affectedInstances||{};return b("tr",{ref:this.rootElRef,role:"row"},i.renderIntro&&i.renderIntro(),i.cells.map(function(_,D){var H=r.renderFgSegs(D,i.forPrint?h[D]:m[D],i.todayRange,S),I=r.renderFgSegs(D,md(p[D],m),i.todayRange,{},Boolean(i.eventDrag),Boolean(i.eventResize),!1);return b(dd,{key:_.key,elRef:r.cellElRefs.createRef(_.key),innerElRef:r.frameElRefs.createRef(_.key),dateProfile:i.dateProfile,date:_.date,showDayNumber:i.showDayNumbers,showWeekNumber:i.showWeekNumbers&&D===0,forceDayTop:i.showWeekNumbers,todayRange:i.todayRange,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,extraHookProps:_.extraHookProps,extraDataAttrs:_.extraDataAttrs,extraClassNames:_.extraClassNames,extraDateSpan:_.extraDateSpan,moreCnt:C[D],moreMarginTop:g[D],singlePlacements:h[D],fgContentElRef:r.fgElRefs.createRef(_.key),fgContent:b(K,null,b(K,null,H),b(K,null,I)),bgContent:b(K,null,r.renderFillSegs(d[D],"highlight"),r.renderFillSegs(c[D],"non-business"),r.renderFillSegs(u[D],"bg-event"))})}))},e.prototype.componentDidMount=function(){this.updateSizing(!0)},e.prototype.componentDidUpdate=function(r,n){var i=this.props;this.updateSizing(!oe(r,i))},e.prototype.getHighlightSegs=function(){var r=this.props;return r.eventDrag&&r.eventDrag.segs.length?r.eventDrag.segs:r.eventResize&&r.eventResize.segs.length?r.eventResize.segs:r.dateSelectionSegs},e.prototype.getMirrorSegs=function(){var r=this.props;return r.eventResize&&r.eventResize.segs.length?r.eventResize.segs:[]},e.prototype.renderFgSegs=function(r,n,i,a,o,s,l){var c=this.context,u=this.props.eventSelection,d=this.state.framePositions,p=this.props.cells.length===1,f=o||s||l,h=[];if(d)for(var m=0,C=n;m<C.length;m++){var g=C[m],S=g.seg,_=S.eventRange.instance.instanceId,D=_+":"+r,H=g.isVisible&&!a[_],I=g.isAbsolute,O="",M="";I&&(c.isRtl?(M=0,O=d.lefts[S.lastCol]-d.lefts[S.firstCol]):(O=0,M=d.rights[S.firstCol]-d.rights[S.lastCol])),h.push(b("div",{className:"fc-daygrid-event-harness"+(I?" fc-daygrid-event-harness-abs":""),key:D,ref:f?null:this.segHarnessRefs.createRef(D),style:{visibility:H?"":"hidden",marginTop:I?"":g.marginTop,top:I?g.absoluteTop:"",left:O,right:M}},ma(S)?b(ya,v({seg:S,isDragging:o,isSelected:_===u,defaultDisplayEventEnd:p},We(S,i))):b(ga,v({seg:S,isDragging:o,isResizing:s,isDateSelecting:l,isSelected:_===u,defaultDisplayEventEnd:p},We(S,i)))))}return h},e.prototype.renderFillSegs=function(r,n){var i=this.context.isRtl,a=this.props.todayRange,o=this.state.framePositions,s=[];if(o)for(var l=0,c=r;l<c.length;l++){var u=c[l],d=i?{right:0,left:o.lefts[u.lastCol]-o.lefts[u.firstCol]}:{left:0,right:o.rights[u.firstCol]-o.rights[u.lastCol]};s.push(b("div",{key:Os(u.eventRange),className:"fc-daygrid-bg-harness",style:d},n==="bg-event"?b(xc,v({seg:u},We(u,a))):kc(n)))}return b.apply(void 0,W([K,{}],s))},e.prototype.updateSizing=function(r){var n=this,i=n.props,a=n.frameElRefs;if(!i.forPrint&&i.clientWidth!==null){if(r){var o=i.cells.map(function(d){return a.currentMap[d.key]});if(o.length){var s=this.rootElRef.current;this.setState({framePositions:new nr(s,o,!0,!1)})}}var l=this.state.eventInstanceHeights,c=this.queryEventInstanceHeights(),u=i.dayMaxEvents===!0||i.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:v(v({},l),c),maxContentHeight:u?this.computeMaxContentHeight():null})}},e.prototype.queryEventInstanceHeights=function(){var r=this.segHarnessRefs.currentMap,n={};for(var i in r){var a=Math.round(r[i].getBoundingClientRect().height),o=i.split(":")[0];n[o]=Math.max(n[o]||0,a)}return n},e.prototype.computeMaxContentHeight=function(){var r=this.props.cells[0].key,n=this.cellElRefs.currentMap[r],i=this.fgElRefs.currentMap[r];return n.getBoundingClientRect().bottom-i.getBoundingClientRect().top},e.prototype.getCellEls=function(){var r=this.cellElRefs.currentMap;return this.props.cells.map(function(n){return r[n.key]})},e}(Le);ba.addStateEquality({eventInstanceHeights:oe});function md(t,e){if(!t.length)return[];var r=gd(e);return t.map(function(n){return{seg:n,isVisible:!0,isAbsolute:!0,absoluteTop:r[n.eventRange.instance.instanceId],marginTop:0}})}function gd(t){for(var e={},r=0,n=t;r<n.length;r++)for(var i=n[r],a=0,o=i;a<o.length;a++){var s=o[a];e[s.seg.eventRange.instance.instanceId]=s.absoluteTop}return e}var yd=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.splitBusinessHourSegs=k(nt),r.splitBgEventSegs=k(nt),r.splitFgEventSegs=k(nt),r.splitDateSelectionSegs=k(nt),r.splitEventDrag=k(Vn),r.splitEventResize=k(Vn),r.rowRefs=new ge,r.handleRootEl=function(n){r.rootEl=n,n?r.context.registerInteractiveComponent(r,{el:n,isHitComboAllowed:r.props.isHitComboAllowed}):r.context.unregisterInteractiveComponent(r)},r}return e.prototype.render=function(){var r=this,n=this.props,i=n.dateProfile,a=n.dayMaxEventRows,o=n.dayMaxEvents,s=n.expandRows,l=n.cells.length,c=this.splitBusinessHourSegs(n.businessHourSegs,l),u=this.splitBgEventSegs(n.bgEventSegs,l),d=this.splitFgEventSegs(n.fgEventSegs,l),p=this.splitDateSelectionSegs(n.dateSelectionSegs,l),f=this.splitEventDrag(n.eventDrag,l),h=this.splitEventResize(n.eventResize,l),m=o===!0||a===!0;m&&!s&&(m=!1,a=null,o=null);var C=["fc-daygrid-body",m?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",s?"":"fc-daygrid-body-natural"];return b("div",{className:C.join(" "),ref:this.handleRootEl,style:{width:n.clientWidth,minWidth:n.tableMinWidth}},b(oa,{unit:"day"},function(g,S){return b(K,null,b("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:n.clientWidth,minWidth:n.tableMinWidth,height:s?n.clientHeight:""}},n.colGroupNode,b("tbody",{role:"presentation"},n.cells.map(function(_,D){return b(ba,{ref:r.rowRefs.createRef(D),key:_.length?_[0].date.toISOString():D,showDayNumbers:l>1,showWeekNumbers:n.showWeekNumbers,todayRange:S,dateProfile:i,cells:_,renderIntro:n.renderRowIntro,businessHourSegs:c[D],eventSelection:n.eventSelection,bgEventSegs:u[D].filter(bd),fgEventSegs:d[D],dateSelectionSegs:p[D],eventDrag:f[D],eventResize:h[D],dayMaxEvents:o,dayMaxEventRows:a,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint})}))))}))},e.prototype.prepareHits=function(){this.rowPositions=new nr(this.rootEl,this.rowRefs.collect().map(function(r){return r.getCellEls()[0]}),!1,!0),this.colPositions=new nr(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},e.prototype.queryHit=function(r,n){var i=this,a=i.colPositions,o=i.rowPositions,s=a.leftToIndex(r),l=o.topToIndex(n);if(l!=null&&s!=null){var c=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:v({range:this.getCellRange(l,s),allDay:!0},c.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:a.lefts[s],right:a.rights[s],top:o.tops[l],bottom:o.bottoms[l]},layer:0}}return null},e.prototype.getCellEl=function(r,n){return this.rowRefs.currentMap[r].getCellEls()[n]},e.prototype.getCellRange=function(r,n){var i=this.props.cells[r][n].date,a=Z(i,1);return{start:i,end:a}},e}(Le);function bd(t){return t.eventRange.def.allDay}var Ed=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.forceDayIfListItem=!0,r}return e.prototype.sliceRange=function(r,n){return n.sliceRange(r)},e}(uc),Cd=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.slicer=new Ed,r.tableRef=$(),r}return e.prototype.render=function(){var r=this,n=r.props,i=r.context;return b(yd,v({ref:this.tableRef},this.slicer.sliceProps(n,n.dateProfile,n.nextDayThreshold,i,n.dayTableModel),{dateProfile:n.dateProfile,cells:n.dayTableModel.cells,colGroupNode:n.colGroupNode,tableMinWidth:n.tableMinWidth,renderRowIntro:n.renderRowIntro,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.showWeekNumbers,expandRows:n.expandRows,headerAlignElRef:n.headerAlignElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint}))},e}(Le),Sd=function(t){R(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.buildDayTableModel=k(wd),r.headerRef=$(),r.tableRef=$(),r}return e.prototype.render=function(){var r=this,n=this.context,i=n.options,a=n.dateProfileGenerator,o=this.props,s=this.buildDayTableModel(o.dateProfile,a),l=i.dayHeaders&&b(ac,{ref:this.headerRef,dateProfile:o.dateProfile,dates:s.headerDates,datesRepDistinctDays:s.rowCnt===1}),c=function(u){return b(Cd,{ref:r.tableRef,dateProfile:o.dateProfile,dayTableModel:s,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:i.nextDayThreshold,colGroupNode:u.tableColGroupNode,tableMinWidth:u.tableMinWidth,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:r.headerElRef,clientWidth:u.clientWidth,clientHeight:u.clientHeight,forPrint:o.forPrint})};return i.dayMinWidth?this.renderHScrollLayout(l,c,s.colCnt,i.dayMinWidth):this.renderSimpleLayout(l,c)},e}(id);function wd(t,e){var r=new sc(t.renderRange,e);return new lc(r,/year|month|week/.test(t.currentRangeUnit))}var Dd=function(t){R(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.buildRenderRange=function(r,n,i){var a=this.props.dateEnv,o=t.prototype.buildRenderRange.call(this,r,n,i),s=o.start,l=o.end,c;if(/^(year|month)$/.test(n)&&(s=a.startOfWeek(s),c=a.startOfWeek(l),c.valueOf()!==l.valueOf()&&(l=dn(c,1))),this.props.monthMode&&this.props.fixedWeekCount){var u=Math.ceil(xo(s,l));l=dn(l,6-u)}return{start:s,end:l}},e}(ji),Td=le({initialView:"dayGridMonth",views:{dayGrid:{component:Sd,dateProfileGeneratorClass:Dd},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});/*! FullCalendar v5.11.5 Docs & License: https://fullcalendar.io/ (c) 2022 Adam Shaw */Ar.touchMouseIgnoreWait=500;var sr=0,Ct=0,lr=!1,Or=function(){function t(e){var r=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(n){if(!r.shouldIgnoreMouse()&&_d(n)&&r.tryStart(n)){var i=r.createEventFromMouse(n,!0);r.emitter.trigger("pointerdown",i),r.initScrollWatch(i),r.shouldIgnoreMove||document.addEventListener("mousemove",r.handleMouseMove),document.addEventListener("mouseup",r.handleMouseUp)}},this.handleMouseMove=function(n){var i=r.createEventFromMouse(n);r.recordCoords(i),r.emitter.trigger("pointermove",i)},this.handleMouseUp=function(n){document.removeEventListener("mousemove",r.handleMouseMove),document.removeEventListener("mouseup",r.handleMouseUp),r.emitter.trigger("pointerup",r.createEventFromMouse(n)),r.cleanup()},this.handleTouchStart=function(n){if(r.tryStart(n)){r.isTouchDragging=!0;var i=r.createEventFromTouch(n,!0);r.emitter.trigger("pointerdown",i),r.initScrollWatch(i);var a=n.target;r.shouldIgnoreMove||a.addEventListener("touchmove",r.handleTouchMove),a.addEventListener("touchend",r.handleTouchEnd),a.addEventListener("touchcancel",r.handleTouchEnd),window.addEventListener("scroll",r.handleTouchScroll,!0)}},this.handleTouchMove=function(n){var i=r.createEventFromTouch(n);r.recordCoords(i),r.emitter.trigger("pointermove",i)},this.handleTouchEnd=function(n){if(r.isDragging){var i=n.target;i.removeEventListener("touchmove",r.handleTouchMove),i.removeEventListener("touchend",r.handleTouchEnd),i.removeEventListener("touchcancel",r.handleTouchEnd),window.removeEventListener("scroll",r.handleTouchScroll,!0),r.emitter.trigger("pointerup",r.createEventFromTouch(n)),r.cleanup(),r.isTouchDragging=!1,Rd()}},this.handleTouchScroll=function(){r.wasTouchScroll=!0},this.handleScroll=function(n){if(!r.shouldIgnoreMove){var i=window.pageXOffset-r.prevScrollX+r.prevPageX,a=window.pageYOffset-r.prevScrollY+r.prevPageY;r.emitter.trigger("pointermove",{origEvent:n,isTouch:r.isTouchDragging,subjectEl:r.subjectEl,pageX:i,pageY:a,deltaX:i-r.origPageX,deltaY:a-r.origPageY})}},this.containerEl=e,this.emitter=new Rt,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),Md()}return t.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Pd()},t.prototype.tryStart=function(e){var r=this.querySubjectEl(e),n=e.target;return r&&(!this.handleSelector||j(n,this.handleSelector))?(this.subjectEl=r,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1},t.prototype.cleanup=function(){lr=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},t.prototype.querySubjectEl=function(e){return this.selector?j(e.target,this.selector):this.containerEl},t.prototype.shouldIgnoreMouse=function(){return sr||this.isTouchDragging},t.prototype.cancelTouchScroll=function(){this.isDragging&&(lr=!0)},t.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},t.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},t.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},t.prototype.createEventFromMouse=function(e,r){var n=0,i=0;return r?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:i}},t.prototype.createEventFromTouch=function(e,r){var n=e.touches,i,a,o=0,s=0;return n&&n.length?(i=n[0].pageX,a=n[0].pageY):(i=e.pageX,a=e.pageY),r?(this.origPageX=i,this.origPageY=a):(o=i-this.origPageX,s=a-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:a,deltaX:o,deltaY:s}},t}();function _d(t){return t.button===0&&!t.ctrlKey}function Rd(){sr+=1,setTimeout(function(){sr-=1},Ar.touchMouseIgnoreWait)}function Md(){Ct+=1,Ct===1&&window.addEventListener("touchmove",Ea,{passive:!1})}function Pd(){Ct-=1,Ct||window.removeEventListener("touchmove",Ea,{passive:!1})}function Ea(t){lr&&t.preventDefault()}var Nd=function(){function t(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return t.prototype.start=function(e,r,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=r-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},t.prototype.handleMove=function(e,r){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=r-window.pageYOffset-this.origScreenY,this.updateElPosition()},t.prototype.setIsVisible=function(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)},t.prototype.stop=function(e,r){var n=this,i=function(){n.cleanup(),r()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)},t.prototype.doRevertAnimation=function(e,r){var n=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();n.style.transition="top "+r+"ms,left "+r+"ms",Ue(n,{left:i.left,top:i.top}),Co(n,function(){n.style.transition="",e()})},t.prototype.cleanup=function(){this.mirrorEl&&(dr(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},t.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&Ue(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},t.prototype.getMirrorEl=function(){var e=this.sourceElRect,r=this.mirrorEl;return r||(r=this.mirrorEl=this.sourceEl.cloneNode(!0),r.classList.add("fc-unselectable"),r.classList.add("fc-event-dragging"),Ue(r,{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(r)),r},t}(),Ca=function(t){R(e,t);function e(r,n){var i=t.call(this)||this;return i.handleScroll=function(){i.scrollTop=i.scrollController.getScrollTop(),i.scrollLeft=i.scrollController.getScrollLeft(),i.handleScrollChange()},i.scrollController=r,i.doesListening=n,i.scrollTop=i.origScrollTop=r.getScrollTop(),i.scrollLeft=i.origScrollLeft=r.getScrollLeft(),i.scrollWidth=r.getScrollWidth(),i.scrollHeight=r.getScrollHeight(),i.clientWidth=r.getClientWidth(),i.clientHeight=r.getClientHeight(),i.clientRect=i.computeClientRect(),i.doesListening&&i.getEventTarget().addEventListener("scroll",i.handleScroll),i}return e.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},e.prototype.getScrollTop=function(){return this.scrollTop},e.prototype.getScrollLeft=function(){return this.scrollLeft},e.prototype.setScrollTop=function(r){this.scrollController.setScrollTop(r),this.doesListening||(this.scrollTop=Math.max(Math.min(r,this.getMaxScrollTop()),0),this.handleScrollChange())},e.prototype.setScrollLeft=function(r){this.scrollController.setScrollLeft(r),this.doesListening||(this.scrollLeft=Math.max(Math.min(r,this.getMaxScrollLeft()),0),this.handleScrollChange())},e.prototype.getClientWidth=function(){return this.clientWidth},e.prototype.getClientHeight=function(){return this.clientHeight},e.prototype.getScrollWidth=function(){return this.scrollWidth},e.prototype.getScrollHeight=function(){return this.scrollHeight},e.prototype.handleScrollChange=function(){},e}(Pr),Sa=function(t){R(e,t);function e(r,n){return t.call(this,new Ml(r),n)||this}return e.prototype.getEventTarget=function(){return this.scrollController.el},e.prototype.computeClientRect=function(){return wl(this.scrollController.el)},e}(Ca),Id=function(t){R(e,t);function e(r){return t.call(this,new Pl,r)||this}return e.prototype.getEventTarget=function(){return window},e.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},e.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},e}(Ca),Un=typeof performance=="function"?performance.now:Date.now,kd=function(){function t(){var e=this;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=function(){if(e.isAnimating){var r=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(r){var n=Un();e.handleSide(r,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return t.prototype.start=function(e,r,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,r))},t.prototype.handleMove=function(e,r){if(this.isEnabled){var n=e-window.pageXOffset,i=r-window.pageYOffset,a=this.pointerScreenY===null?0:i-this.pointerScreenY,o=this.pointerScreenX===null?0:n-this.pointerScreenX;a<0?this.everMovedUp=!0:a>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Un()))}},t.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,r=this.scrollCaches;e<r.length;e++){var n=r[e];n.destroy()}this.scrollCaches=null}},t.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},t.prototype.handleSide=function(e,r){var n=e.scrollCache,i=this.edgeThreshold,a=i-e.distance,o=a*a/(i*i)*this.maxVelocity*r,s=1;switch(e.name){case"left":s=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*s);break;case"top":s=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*s);break}},t.prototype.computeBestEdge=function(e,r){for(var n=this.edgeThreshold,i=null,a=this.scrollCaches||[],o=0,s=a;o<s.length;o++){var l=s[o],c=l.clientRect,u=e-c.left,d=c.right-e,p=r-c.top,f=c.bottom-r;u>=0&&d>=0&&p>=0&&f>=0&&(p<=n&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>p)&&(i={scrollCache:l,name:"top",distance:p}),f<=n&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>f)&&(i={scrollCache:l,name:"bottom",distance:f}),u<=n&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"left",distance:u}),d<=n&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>d)&&(i={scrollCache:l,name:"right",distance:d}))}return i},t.prototype.buildCaches=function(e){return this.queryScrollEls(e).map(function(r){return r===window?new Id(!1):new Sa(r,!1)})},t.prototype.queryScrollEls=function(e){for(var r=[],n=0,i=this.scrollQuery;n<i.length;n++){var a=i[n];typeof a=="object"?r.push(a):r.push.apply(r,Array.prototype.slice.call(di(e).querySelectorAll(a)))}return r},t}(),Je=function(t){R(e,t);function e(r,n){var i=t.call(this,r)||this;i.containerEl=r,i.delay=null,i.minDistance=0,i.touchScrollAllowed=!0,i.mirrorNeedsRevert=!1,i.isInteracting=!1,i.isDragging=!1,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,i.delayTimeoutId=null,i.onPointerDown=function(o){i.isDragging||(i.isInteracting=!0,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,So(document.body),Do(document.body),o.isTouch||o.origEvent.preventDefault(),i.emitter.trigger("pointerdown",o),i.isInteracting&&!i.pointer.shouldIgnoreMove&&(i.mirror.setIsVisible(!1),i.mirror.start(o.subjectEl,o.pageX,o.pageY),i.startDelay(o),i.minDistance||i.handleDistanceSurpassed(o)))},i.onPointerMove=function(o){if(i.isInteracting){if(i.emitter.trigger("pointermove",o),!i.isDistanceSurpassed){var s=i.minDistance,l=void 0,c=o.deltaX,u=o.deltaY;l=c*c+u*u,l>=s*s&&i.handleDistanceSurpassed(o)}i.isDragging&&(o.origEvent.type!=="scroll"&&(i.mirror.handleMove(o.pageX,o.pageY),i.autoScroller.handleMove(o.pageX,o.pageY)),i.emitter.trigger("dragmove",o))}},i.onPointerUp=function(o){i.isInteracting&&(i.isInteracting=!1,wo(document.body),To(document.body),i.emitter.trigger("pointerup",o),i.isDragging&&(i.autoScroller.stop(),i.tryStopDrag(o)),i.delayTimeoutId&&(clearTimeout(i.delayTimeoutId),i.delayTimeoutId=null))};var a=i.pointer=new Or(r);return a.emitter.on("pointerdown",i.onPointerDown),a.emitter.on("pointermove",i.onPointerMove),a.emitter.on("pointerup",i.onPointerUp),n&&(a.selector=n),i.mirror=new Nd,i.autoScroller=new kd,i}return e.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},e.prototype.startDelay=function(r){var n=this;typeof this.delay=="number"?this.delayTimeoutId=setTimeout(function(){n.delayTimeoutId=null,n.handleDelayEnd(r)},this.delay):this.handleDelayEnd(r)},e.prototype.handleDelayEnd=function(r){this.isDelayEnded=!0,this.tryStartDrag(r)},e.prototype.handleDistanceSurpassed=function(r){this.isDistanceSurpassed=!0,this.tryStartDrag(r)},e.prototype.tryStartDrag=function(r){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(r.pageX,r.pageY,this.containerEl),this.emitter.trigger("dragstart",r),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())},e.prototype.tryStopDrag=function(r){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,r))},e.prototype.stopDrag=function(r){this.isDragging=!1,this.emitter.trigger("dragend",r)},e.prototype.setIgnoreMove=function(r){this.pointer.shouldIgnoreMove=r},e.prototype.setMirrorIsVisible=function(r){this.mirror.setIsVisible(r)},e.prototype.setMirrorNeedsRevert=function(r){this.mirrorNeedsRevert=r},e.prototype.setAutoScrollEnabled=function(r){this.autoScroller.isEnabled=r},e}(na),xd=function(){function t(e){this.origRect=Mr(e),this.scrollCaches=zi(e).map(function(r){return new Sa(r,!0)})}return t.prototype.destroy=function(){for(var e=0,r=this.scrollCaches;e<r.length;e++){var n=r[e];n.destroy()}},t.prototype.computeLeft=function(){for(var e=this.origRect.left,r=0,n=this.scrollCaches;r<n.length;r++){var i=n[r];e+=i.origScrollLeft-i.getScrollLeft()}return e},t.prototype.computeTop=function(){for(var e=this.origRect.top,r=0,n=this.scrollCaches;r<n.length;r++){var i=n[r];e+=i.origScrollTop-i.getScrollTop()}return e},t.prototype.isWithinClipping=function(e,r){for(var n={left:e,top:r},i=0,a=this.scrollCaches;i<a.length;i++){var o=a[i];if(!Ad(o.getEventTarget())&&!dl(n,o.clientRect))return!1}return!0},t}();function Ad(t){var e=t.tagName;return e==="HTML"||e==="BODY"}var Pt=function(){function t(e,r){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(i){var a=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(i),n.initialHit||!n.requireInitial?(a.setIgnoreMove(!1),n.emitter.trigger("pointerdown",i)):a.setIgnoreMove(!0)},this.handleDragStart=function(i){n.emitter.trigger("dragstart",i),n.handleMove(i,!0)},this.handleDragMove=function(i){n.emitter.trigger("dragmove",i),n.handleMove(i)},this.handlePointerUp=function(i){n.releaseHits(),n.emitter.trigger("pointerup",i)},this.handleDragEnd=function(i){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,i),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",i)},this.droppableStore=r,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 Rt}return t.prototype.processFirstCoord=function(e){var r={left:e.pageX,top:e.pageY},n=r,i=e.subjectEl,a;i instanceof HTMLElement&&(a=Mr(i),n=fl(n,a));var o=this.initialHit=this.queryHitForOffset(n.left,n.top);if(o){if(this.useSubjectCenter&&a){var s=Fi(a,o.rect);s&&(n=pl(s))}this.coordAdjust=hl(n,r)}else this.coordAdjust={left:0,top:0}},t.prototype.handleMove=function(e,r){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(r||!Nt(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},t.prototype.prepareHits=function(){this.offsetTrackers=we(this.droppableStore,function(e){return e.component.prepareHits(),new xd(e.el)})},t.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var r in e)e[r].destroy();this.offsetTrackers={}},t.prototype.queryHitForOffset=function(e,r){var n=this,i=n.droppableStore,a=n.offsetTrackers,o=null;for(var s in i){var l=i[s].component,c=a[s];if(c&&c.isWithinClipping(e,r)){var u=c.computeLeft(),d=c.computeTop(),p=e-u,f=r-d,h=c.origRect,m=h.right-h.left,C=h.bottom-h.top;if(p>=0&&p<m&&f>=0&&f<C){var g=l.queryHit(p,f,m,C);g&&_t(g.dateProfile.activeRange,g.dateSpan.range)&&(!o||g.layer>o.layer)&&(g.componentId=s,g.context=l.context,g.rect.left+=u,g.rect.right+=u,g.rect.top+=d,g.rect.bottom+=d,o=g)}}}return o},t}();function Nt(t,e){return!t&&!e?!0:Boolean(t)!==Boolean(e)?!1:Vs(t.dateSpan,e.dateSpan)}function wa(t,e){for(var r={},n=0,i=e.pluginHooks.datePointTransforms;n<i.length;n++){var a=i[n];v(r,a(t,e))}return v(r,Hd(t,e.dateEnv)),r}function Hd(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}var Od=function(t){R(e,t);function e(r){var n=t.call(this,r)||this;n.handlePointerDown=function(a){var o=n.dragging,s=a.origEvent.target;o.setIgnoreMove(!n.component.isValidDateDownEl(s))},n.handleDragEnd=function(a){var o=n.component,s=n.dragging.pointer;if(!s.wasTouchScroll){var l=n.hitDragging,c=l.initialHit,u=l.finalHit;if(c&&u&&Nt(c,u)){var d=o.context,p=v(v({},wa(c.dateSpan,d)),{dayEl:c.dayEl,jsEvent:a.origEvent,view:d.viewApi||d.calendarApi.view});d.emitter.trigger("dateClick",p)}}},n.dragging=new Je(r.el),n.dragging.autoScroller.isEnabled=!1;var i=n.hitDragging=new Pt(n.dragging,xr(r));return i.emitter.on("pointerdown",n.handlePointerDown),i.emitter.on("dragend",n.handleDragEnd),n}return e.prototype.destroy=function(){this.dragging.destroy()},e}(Be),Ld=function(t){R(e,t);function e(r){var n=t.call(this,r)||this;n.dragSelection=null,n.handlePointerDown=function(l){var c=n,u=c.component,d=c.dragging,p=u.context.options,f=p.selectable&&u.isValidDateDownEl(l.origEvent.target);d.setIgnoreMove(!f),d.delay=l.isTouch?Fd(u):null},n.handleDragStart=function(l){n.component.context.calendarApi.unselect(l)},n.handleHitUpdate=function(l,c){var u=n.component.context,d=null,p=!1;if(l){var f=n.hitDragging.initialHit,h=l.componentId===f.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(f,l);h||(d=Bd(f,l,u.pluginHooks.dateSelectionTransformers)),(!d||!cc(d,l.dateProfile,u))&&(p=!0,d=null)}d?u.dispatch({type:"SELECT_DATES",selection:d}):c||u.dispatch({type:"UNSELECT_DATES"}),p?fr():pr(),c||(n.dragSelection=d)},n.handlePointerUp=function(l){n.dragSelection&&(Mi(n.dragSelection,l,n.component.context),n.dragSelection=null)};var i=r.component,a=i.context.options,o=n.dragging=new Je(r.el);o.touchScrollAllowed=!1,o.minDistance=a.selectMinDistance||0,o.autoScroller.isEnabled=a.dragScroll;var s=n.hitDragging=new Pt(n.dragging,xr(r));return s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("pointerup",n.handlePointerUp),n}return e.prototype.destroy=function(){this.dragging.destroy()},e}(Be);function Fd(t){var e=t.context.options,r=e.selectLongPressDelay;return r==null&&(r=e.longPressDelay),r}function Bd(t,e,r){var n=t.dateSpan,i=e.dateSpan,a=[n.range.start,n.range.end,i.range.start,i.range.end];a.sort(No);for(var o={},s=0,l=r;s<l.length;s++){var c=l[s],u=c(t,e);if(u===!1)return null;u&&v(o,u)}return o.range={start:a[0],end:a[3]},o.allDay=n.allDay,o}var Da=function(t){R(e,t);function e(r){var n=t.call(this,r)||this;n.subjectEl=null,n.subjectSeg=null,n.isDragging=!1,n.eventRange=null,n.relevantEvents=null,n.receivingContext=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(l){var c=l.origEvent.target,u=n,d=u.component,p=u.dragging,f=p.mirror,h=d.context.options,m=d.context;n.subjectEl=l.subjectEl;var C=n.subjectSeg=Ae(l.subjectEl),g=n.eventRange=C.eventRange,S=g.instance.instanceId;n.relevantEvents=br(m.getCurrentData().eventStore,S),p.minDistance=l.isTouch?0:h.eventDragMinDistance,p.delay=l.isTouch&&S!==d.props.eventSelection?Ud(d):null,h.fixedMirrorParent?f.parentNode=h.fixedMirrorParent:f.parentNode=j(c,".fc"),f.revertDuration=h.dragRevertDuration;var _=d.isValidSegDownEl(c)&&!j(c,".fc-event-resizer");p.setIgnoreMove(!_),n.isDragging=_&&l.subjectEl.classList.contains("fc-event-draggable")},n.handleDragStart=function(l){var c=n.component.context,u=n.eventRange,d=u.instance.instanceId;l.isTouch?d!==n.component.props.eventSelection&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:d}):c.dispatch({type:"UNSELECT_EVENT"}),n.isDragging&&(c.calendarApi.unselect(l),c.emitter.trigger("eventDragStart",{el:n.subjectEl,event:new q(c,u.def,u.instance),jsEvent:l.origEvent,view:c.viewApi}))},n.handleHitUpdate=function(l,c){if(!!n.isDragging){var u=n.relevantEvents,d=n.hitDragging.initialHit,p=n.component.context,f=null,h=null,m=null,C=!1,g={affectedEvents:u,mutatedEvents:te(),isEvent:!0};if(l){f=l.context;var S=f.options;p===f||S.editable&&S.droppable?(h=Vd(d,l,f.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(m=Dr(u,f.getCurrentData().eventUiBases,h,f),g.mutatedEvents=m,sa(g,l.dateProfile,f)||(C=!0,h=null,m=null,g.mutatedEvents=te()))):f=null}n.displayDrag(f,g),C?fr():pr(),c||(p===f&&Nt(d,l)&&(h=null),n.dragging.setMirrorNeedsRevert(!h),n.dragging.setMirrorIsVisible(!l||!di(n.subjectEl).querySelector(".fc-event-mirror")),n.receivingContext=f,n.validMutation=h,n.mutatedRelevantEvents=m)}},n.handlePointerUp=function(){n.isDragging||n.cleanup()},n.handleDragEnd=function(l){if(n.isDragging){var c=n.component.context,u=c.viewApi,d=n,p=d.receivingContext,f=d.validMutation,h=n.eventRange.def,m=n.eventRange.instance,C=new q(c,h,m),g=n.relevantEvents,S=n.mutatedRelevantEvents,_=n.hitDragging.finalHit;if(n.clearDrag(),c.emitter.trigger("eventDragStop",{el:n.subjectEl,event:C,jsEvent:l.origEvent,view:u}),f){if(p===c){var D=new q(c,S.defs[h.defId],m?S.instances[m.instanceId]:null);c.dispatch({type:"MERGE_EVENTS",eventStore:S});for(var H={oldEvent:C,event:D,relatedEvents:be(S,c,m),revert:function(){c.dispatch({type:"MERGE_EVENTS",eventStore:g})}},I={},O=0,M=c.getCurrentData().pluginHooks.eventDropTransformers;O<M.length;O++){var z=M[O];v(I,z(f,c))}c.emitter.trigger("eventDrop",v(v(v({},H),I),{el:l.subjectEl,delta:f.datesDelta,jsEvent:l.origEvent,view:u})),c.emitter.trigger("eventChange",H)}else if(p){var G={event:C,relatedEvents:be(g,c,m),revert:function(){c.dispatch({type:"MERGE_EVENTS",eventStore:g})}};c.emitter.trigger("eventLeave",v(v({},G),{draggedEl:l.subjectEl,view:u})),c.dispatch({type:"REMOVE_EVENTS",eventStore:g}),c.emitter.trigger("eventRemove",G);var ae=S.defs[h.defId],Q=S.instances[m.instanceId],Qe=new q(p,ae,Q);p.dispatch({type:"MERGE_EVENTS",eventStore:S});var $e={event:Qe,relatedEvents:be(S,p,Q),revert:function(){p.dispatch({type:"REMOVE_EVENTS",eventStore:S})}};p.emitter.trigger("eventAdd",$e),l.isTouch&&p.dispatch({type:"SELECT_EVENT",eventInstanceId:m.instanceId}),p.emitter.trigger("drop",v(v({},wa(_.dateSpan,p)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:_.context.viewApi})),p.emitter.trigger("eventReceive",v(v({},$e),{draggedEl:l.subjectEl,view:_.context.viewApi}))}}else c.emitter.trigger("_noEventDrop")}n.cleanup()};var i=n.component,a=i.context.options,o=n.dragging=new Je(r.el);o.pointer.selector=e.SELECTOR,o.touchScrollAllowed=!1,o.autoScroller.isEnabled=a.dragScroll;var s=n.hitDragging=new Pt(n.dragging,or);return s.useSubjectCenter=r.useEventCenter,s.emitter.on("pointerdown",n.handlePointerDown),s.emitter.on("dragstart",n.handleDragStart),s.emitter.on("hitupdate",n.handleHitUpdate),s.emitter.on("pointerup",n.handlePointerUp),s.emitter.on("dragend",n.handleDragEnd),n}return e.prototype.destroy=function(){this.dragging.destroy()},e.prototype.displayDrag=function(r,n){var i=this.component.context,a=this.receivingContext;a&&a!==r&&(a===i?a.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:te(),isEvent:!0}}):a.dispatch({type:"UNSET_EVENT_DRAG"})),r&&r.dispatch({type:"SET_EVENT_DRAG",state:n})},e.prototype.clearDrag=function(){var r=this.component.context,n=this.receivingContext;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),r!==n&&r.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},e.SELECTOR=".fc-event-draggable, .fc-event-resizable",e}(Be);function Vd(t,e,r){var n=t.dateSpan,i=e.dateSpan,a=n.range.start,o=i.range.start,s={};n.allDay!==i.allDay&&(s.allDay=i.allDay,s.hasEnd=e.context.options.allDayMaintainDuration,i.allDay&&(a=V(a)));var l=Re(a,o,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);l.milliseconds&&(s.allDay=!1);for(var c={datesDelta:l,standardProps:s},u=0,d=r;u<d.length;u++){var p=d[u];p(c,t,e)}return c}function Ud(t){var e=t.context.options,r=e.eventLongPressDelay;return r==null&&(r=e.longPressDelay),r}var zd=function(t){R(e,t);function e(r){var n=t.call(this,r)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(s){var l=n.component,c=n.querySegEl(s),u=Ae(c),d=n.eventRange=u.eventRange;n.dragging.minDistance=l.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&n.component.props.eventSelection!==d.instance.instanceId)},n.handleDragStart=function(s){var l=n.component.context,c=n.eventRange;n.relevantEvents=br(l.getCurrentData().eventStore,n.eventRange.instance.instanceId);var u=n.querySegEl(s);n.draggingSegEl=u,n.draggingSeg=Ae(u),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:u,event:new q(l,c.def,c.instance),jsEvent:s.origEvent,view:l.viewApi})},n.handleHitUpdate=function(s,l,c){var u=n.component.context,d=n.relevantEvents,p=n.hitDragging.initialHit,f=n.eventRange.instance,h=null,m=null,C=!1,g={affectedEvents:d,mutatedEvents:te(),isEvent:!0};if(s){var S=s.componentId===p.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(p,s);S||(h=Wd(p,s,c.subjectEl.classList.contains("fc-event-resizer-start"),f.range))}h&&(m=Dr(d,u.getCurrentData().eventUiBases,h,u),g.mutatedEvents=m,sa(g,s.dateProfile,u)||(C=!0,h=null,m=null,g.mutatedEvents=null)),m?u.dispatch({type:"SET_EVENT_RESIZE",state:g}):u.dispatch({type:"UNSET_EVENT_RESIZE"}),C?fr():pr(),l||(h&&Nt(p,s)&&(h=null),n.validMutation=h,n.mutatedRelevantEvents=m)},n.handleDragEnd=function(s){var l=n.component.context,c=n.eventRange.def,u=n.eventRange.instance,d=new q(l,c,u),p=n.relevantEvents,f=n.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:d,jsEvent:s.origEvent,view:l.viewApi}),n.validMutation){var h=new q(l,f.defs[c.defId],u?f.instances[u.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:f});var m={oldEvent:d,event:h,relatedEvents:be(f,l,u),revert:function(){l.dispatch({type:"MERGE_EVENTS",eventStore:p})}};l.emitter.trigger("eventResize",v(v({},m),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||A(0),endDelta:n.validMutation.endDelta||A(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",m)}else l.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var i=r.component,a=n.dragging=new Je(r.el);a.pointer.selector=".fc-event-resizer",a.touchScrollAllowed=!1,a.autoScroller.isEnabled=i.context.options.dragScroll;var o=n.hitDragging=new Pt(n.dragging,xr(r));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragstart",n.handleDragStart),o.emitter.on("hitupdate",n.handleHitUpdate),o.emitter.on("dragend",n.handleDragEnd),n}return e.prototype.destroy=function(){this.dragging.destroy()},e.prototype.querySegEl=function(r){return j(r.subjectEl,".fc-event")},e}(Be);function Wd(t,e,r,n){var i=t.context.dateEnv,a=t.dateSpan.range.start,o=e.dateSpan.range.start,s=Re(a,o,i,t.largeUnit);if(r){if(i.add(n.start,s)<n.end)return{startDelta:s}}else if(i.add(n.end,s)>n.start)return{endDelta:s};return null}var qd=function(){function t(e){var r=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(i){i.jsEvent&&(r.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(i){var a=r.context.options.unselectCancel,o=ci(i.origEvent);r.matchesCancel=!!j(o,a),r.matchesEvent=!!j(o,Da.SELECTOR)},this.onDocumentPointerUp=function(i){var a=r.context,o=r.documentPointer,s=a.getCurrentData();if(!o.wasTouchScroll){if(s.dateSelection&&!r.isRecentPointerDateSelect){var l=a.options.unselectAuto;l&&(!l||!r.matchesCancel)&&a.calendarApi.unselect(i)}s.eventSelection&&!r.matchesEvent&&a.dispatch({type:"UNSELECT_EVENT"})}r.isRecentPointerDateSelect=!1};var n=this.documentPointer=new Or(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)}return t.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},t}(),Gd={fixedMirrorParent:E},Yd={dateClick:E,eventDragStart:E,eventDragStop:E,eventDrop:E,eventResizeStart:E,eventResizeStop:E,eventResize:E,drop:E,eventReceive:E,eventLeave:E};Ar.dataAttrPrefix="";(function(t){R(e,t);function e(r){var n=t.call(this,r)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(a){n.emitter.trigger("pointerdown",a),n.shouldIgnoreMove||n.emitter.trigger("dragstart",a)},n.handlePointerMove=function(a){n.shouldIgnoreMove||n.emitter.trigger("dragmove",a)},n.handlePointerUp=function(a){n.emitter.trigger("pointerup",a),n.shouldIgnoreMove||n.emitter.trigger("dragend",a)};var i=n.pointer=new Or(r);return i.emitter.on("pointerdown",n.handlePointerDown),i.emitter.on("pointermove",n.handlePointerMove),i.emitter.on("pointerup",n.handlePointerUp),n}return e.prototype.destroy=function(){this.pointer.destroy()},e.prototype.setIgnoreMove=function(r){this.shouldIgnoreMove=r},e.prototype.setMirrorIsVisible=function(r){if(r)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var n=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;n&&(this.currentMirrorEl=n,n.style.visibility="hidden")}},e})(na);var jd=le({componentInteractions:[Od,Ld,Da,zd],calendarInteractions:[qd],elementDraggingImpl:Je,optionRefiners:Gd,listenerRefiners:Yd});Ma.use([Pa,Na,Ia]);const Lr={name:"appointment-modal",props:["selectedInsurance","styles"],components:{Anchor:xa,CustomPicture:Aa,Swiper:Ha,SwiperSlide:Oa,VueSelect:Va,CustomSvg:La,FullCalendar:$c},directives:{mask:Fa.exports.mask},inject:["initialModalDateConfiguration","root","settings"],created(){this.triggerModal(),axios.post("/api/appointments/locations",{},{headers:{"g-path":window.location.pathname||null,"Content-Type":"application/json",Accept:"application/json"}}).then(t=>{this.allLocations=t.data.locations||[],this.rendered=!0})},mounted(){document.addEventListener("click",this.onClick)},beforeDestroy(){document.removeEventListener("click",this.onClick)},data(){const t=this;return{isOpen:!1,preselectedCalendarNode:null,swiperInstance:null,rendered:!1,formSubmitted:!1,rootHtml:document.querySelector("html"),nextButtons:document.getElementsByClassName("with-circle-next"),newInitialSlide:this.root.entity.type==="location"?1:0,sliderOptions:{allowTouchMove:!1,autoplay:!1,loop:!1,navigation:{nextEl:".with-circle-next",prevEl:".with-circle-prev",disabledClass:"swiper-button-disabled",lockClass:"swiper-button-lock"},pagination:!1,slidesPerView:1,autoHeight:!1},allEvents:[],calendarOptions:{plugins:[Td,jd],validRange:{start:"",end:""},dayCellDidMount(e){t.initialModalDateConfiguration!==null&&e.date.toDateString()===t.initialModalDateConfiguration.date.toDateString()&&(t.preselectedCalendarNode=e)},initialDate:null,initialView:"dayGridMonth",contentHeight:335,dayMaxEvents:0,events:[],eventDidMount(e){let r=e.el.closest("td");r&&r.classList.add("has-event")},moreLinkContent(e,r){return r("span",{class:"event-count"},e.num)},dayPopoverFormat:{weekday:"long",month:"long",day:"numeric"},eventTimeFormat:{hour:"numeric",minute:"2-digit"},eventClick(e){e.el.parentNode.parentNode.querySelector(".active")&&e.el.parentNode.parentNode.querySelector(".active").classList.remove("active"),e.el.classList.add("active"),t.appointmentMessage=!0;const r=_n(e.event.startStr,{month:"long",day:"numeric",weekday:"long"}),n=_n(e.event.startStr,{hour:"2-digit",minute:"2-digit",meridiem:"short"});t.formattedDate=r+" at "+n.toUpperCase(),t.appointmentId=e.event._def.extendedProps.slotId,t.appointmentSet=e.event._def.extendedProps.fmtLong,t.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},fixedWeekCount:!1,showNonCurrentDates:!1,moreLinkClick:function(e){document.querySelector(".fc").classList.add("popover-open")},customButtons:{prev:{text:"prev",click:()=>{this.$refs.fullCalendar.getApi().prev()}},next:{text:"next",click:()=>{this.$refs.fullCalendar.getApi().next()}},anyTimeButton:{text:"Any Time",click:()=>{this.calendarOptions.events=this.allEvents;let e=this.$refs.fullCalendar.getApi();this.resetSelectedAppointmentMessage(),e.refetchEvents()}},morningButton:{text:"Morning",click:()=>{let e=this.allEvents.filter(function(r){return r.start.split("T")[1]<"12:01:00"});this.calendarOptions.events=e,this.resetCalendarState()}},afternoonButton:{text:"Afternoon",click:()=>{let e=this.allEvents.filter(function(r){return r.start.split("T")[1]>"12:01:00"});this.calendarOptions.events=e,this.resetCalendarState()}}},buttonIcons:{prev:"icon-circle-arrow-reverse",next:"icon-circle-arrow"},headerToolbar:{start:"prev,title,next",center:"",end:"anyTimeButton morningButton afternoonButton"}},disableLocationSelect:!1,allLocations:null,showModal:!1,showNewPatientText:!1,showConsultationText:!1,showDentalImplantsOption:this.root.entity.organizationId===14||this.root.entity.organizationId===17,showExtractionsOption:this.root.entity.organizationId===14,showWisdomTeethOption:this.root.entity.organizationId===14,showPathologyBiopsyOption:this.root.entity.organizationId===14,showExistingPatientText:!1,showCheckupOption:this.root.entity.organizationId!==14&&this.root.entity.organizationId!==17,showCheckupText:!1,showExistingConsultationText:!1,showEmergencyText:!1,showOtherText:!1,showInsuranceInputs:!1,selectedLocation:0,newPatient:"",newPatientReason:"",existingPatient:"",existingPatientReason:"",patientPrism:this.root.entity.patientPrismLocationIds,firstName:"",lastName:"",dob:"",email:"",phone:"",zip:"",comment:"",additionalFamilyMembers:[],insuranceName:this.selectedInsurance,planName:"",subscriberName:"",subscriberId:"",appointmentId:"",appointmentSet:"",totalSlides:0,stepPercentage:0,appointmentMessage:!1,formattedDate:"",contactMethod:"",preferredDay:[],preferredTime:[],firstNameClasses:["form-input","medium"],lastNameClasses:["form-input","medium"],dobClasses:["form-input","small"],emailClasses:["form-input","medium"],phoneClasses:["form-input","small"],zipClasses:["form-input","small"],firstNameError:!1,lastNameError:!1,dobError:!1,emailError:!1,phoneError:!1,zipError:!1,responseError:"",canScheduleNewPatientAppointments:!0,selectedNewPatientAppointmentType:null,selectedExistingPatientAppointmentType:null,newPatientAppointmentConfiguration:[],existingPatientAppointmentConfiguration:[]}},computed:{showScheduledAppointment(){return"<br/>Tuesday, September 15 11:00AM"},sortedLocations(){return Object.values(this.allLocations).sort(function(t,e){return t.name.localeCompare(e.name)})},locationPhoneTel(){return this.selectedLocation?this.selectedLocation.phone:""},locationPhoneText(){return this.selectedLocation?this.selectedLocation.phone_number:""},thankYouText(){return this.canScheduleNewPatientAppointments?"Thank you for scheduling<br/>with "+this.root.entity.organizationName+"!":"Thank you for requesting an appointment<br/>with "+this.root.entity.organizationName+"!"}},beforeUnmount(){this.rootHtml.classList.remove("modal-open")},methods:{getReasonTypeOverwrite(t){if(t==="New patient exam & X-rays")switch(this.root.entity.locationId){case 232:t="New Patient with Doctor";break;case 242:t="New Patient with Doctor";break;case 237:t="New Patient";break}return t},setIsOpen(t){this.isOpen=t},async onScheduleFromInsurance(){this.initialModalDateConfiguration!==null&&this.preselectedCalendarNode!==null&&(this.preselectedCalendarNode.el.querySelector(".fc-daygrid-more-link").click(),await this.$nextTick(),document.querySelectorAll(".fc-popover-body .fc-event-time").forEach(t=>{t.textContent===this.initialModalDateConfiguration.time&&(t.parentNode.click(),this.preselectedCalendarNode=null)}))},onClick(t){if(t.target&&t.target.classList&&t.target.classList.contains("fc-popover-close")||t.target&&!t.defaultPrevented&&t.target.closest(".fc.popover-open")===null&&document.querySelector(".fc.popover-open")!==null){document.querySelector(".fc").classList.remove("popover-open");let e=this;e.$refs.fullCalendar!==null&&this.$nextTick(()=>e.$refs.fullCalendar.getApi().render())}},onPersonalInformationNextButtonClicked(t){this.nextButtons[1].getAttribute("target")==="_blank"&&t.stopImmediatePropagation(),this.selectedExistingPatientAppointmentType!==null&&this.root.entity.organizationId!==149&&(this.showExistingPatientText=!1),this.canScheduleNewPatientAppointments&&document.querySelector(".book-disclaimer").classList.remove("hidden")},removeHasEventClasses(){document.querySelectorAll("td.has-event").forEach(t=>{t.classList.remove("has-event")})},resetCalendarState(){this.removeHasEventClasses(),this.resetSelectedAppointmentMessage();const t=this;this.$nextTick(()=>{t.$refs.fullCalendar!==null&&t.$refs.fullCalendar.getApi().refetchEvents()})},modifyDisabledAttribute(t,e,r){if(t)return e?t.setAttribute("disabled",""):r?t.hasAttribute("disabled")?t.removeAttribute("disabled"):!1:t.removeAttribute("disabled")},resetState(){this.showModal=!1,this.showNewPatientText=!1,this.showConsultationText=!1,this.showExistingPatientText=!1,this.showDentalImplantsOption=this.root.entity.organizationId===14||this.root.entity.organizationId===17,this.showExtractionsOption=this.root.entity.organizationId===14,this.showWisdomTeethOption=this.root.entity.organizationId===14,this.showPathologyBiopsyOption=this.root.entity.organizationId===14,this.showCheckupOption=this.root.entity.organizationId!==14,this.showCheckupText=!1,this.showExistingConsultationText=!1,this.showEmergencyText=!1,this.showOtherText=!1,this.showInsuranceInputs=!1,this.selectedLocation=0,this.newPatient="",this.newPatientReason="",this.existingPatient="",this.existingPatientReason="",this.firstName="",this.lastName="",this.dob="",this.email="",this.phone="",this.zip="",this.comment="",this.additionalFamilyMembers=[],this.insuranceName=this.selectedInsurance,this.planName="",this.subscriberName="",this.subscriberId="",this.appointmentId="",this.appointmentSet="",this.totalSlides=0,this.stepPercentage=0,this.appointmentMessage=!1,this.formattedDate="",this.contactMethod="",this.preferredDay=[],this.preferredTime=[],this.firstNameClasses=["form-input","medium"],this.lastNameClasses=["form-input","medium"],this.dobClasses=["form-input","small"],this.emailClasses=["form-input","medium"],this.phoneClasses=["form-input","small"],this.zipClasses=["form-input","small"],this.firstNameError=!1,this.lastNameError=!1,this.dobError=!1,this.emailError=!1,this.phoneError=!1,this.zipError=!1,this.responseError="",this.canScheduleNewPatientAppointments=!0,this.selectedNewPatientAppointmentType=null,this.selectedExistingPatientAppointmentType=null,this.newPatientAppointmentConfiguration=[],this.existingPatientAppointmentConfiguration=[],this.resetPatientTypeSlideState(),this.modifyDisabledAttribute(this.nextButtons[0],!0,!1),this.modifyDisabledAttribute(this.nextButtons[1],!0,!1),this.modifyDisabledAttribute(this.nextButtons[2],!0,!1),this.modifyDisabledAttribute(this.nextButtons[3],!0,!1),this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!0,!1),document.querySelector(".book-disclaimer").classList.add("hidden");const e=document.getElementById("progress");e&&(e.style.width="20%")},async triggerModal(){this.showModal=!0,this.rootHtml.classList.add("modal-open"),await this.$nextTick()},close(t=!0){this.rootHtml.classList.remove("modal-open"),this.$emit("close")},async onLocationSelected(t){this.resetState(),this.selectedLocation=t,this.modifyDisabledAttribute(this.nextButtons[0],!0,!1),this.disableLocationSelect=!0,(this.selectedLocation.slots_configuration||null)===null?await axios.post("/api/appointments/slots",{locationId:this.selectedLocation.id},{headers:{"g-path":window.location.pathname||null,"Content-Type":"application/json",Accept:"application/json"}}).then(e=>{this.setAppointmentConfiguration(e.data),this.newPatientAppointmentConfiguration.length===1&&(this.newPatientReason=Object.values(this.newPatientAppointmentConfiguration)[0].name,this.setNewPatientAppointmentType(this.newPatientAppointmentConfiguration[0].typeId)),this.modifyDisabledAttribute(this.nextButtons[0],!1,!0),this.disableLocationSelect=!1}):(this.setAppointmentConfiguration(this.selectedLocation.slots_configuration),this.modifyDisabledAttribute(this.nextButtons[0],!1,!0),this.disableLocationSelect=!1)},resetNewPatientSlideNextButton(){this.nextButtons[1].setAttribute("href","#"),this.nextButtons[1].removeAttribute("target"),this.nextButtons[1].querySelector("span").textContent="Personal information"},resetPatientTypeSlideState(){this.canScheduleNewPatientAppointments=!0,this.existingPatient="",this.existingPatientReason="",this.newPatient="",this.newPatientReason="",this.showCheckupText=!1,this.showExistingPatientText=!1,this.showNewPatientText=!1,this.resetNewPatientSlideNextButton(),document.querySelectorAll(".appointment-modal .swiper-wrapper > div:nth-child(2) .buttons .cta.active").forEach(t=>t.classList.remove("active")),this.modifyDisabledAttribute(this.nextButtons[1],!0,!1)},setAppointmentConfiguration(t){this.resetCalendarState(),this.selectedLocation.slots_configuration=t,this.newPatientAppointmentConfiguration=t.types.new_patient,this.existingPatientAppointmentConfiguration=t.types.existing_patient,this.setNewPatientAppointmentType(null),Object.values(this.allLocations).length>1&&this.resetPatientTypeSlideState()},setNewPatientAppointmentType(t){this.selectedNewPatientAppointmentType=t,this.canScheduleNewPatientAppointments=t!==null&&(this.selectedLocation.slots_configuration.slots[t]||[]).length>0,this.setNewPatientAppointmentSlots(this.selectedLocation.slots_configuration.slots[t]||[])},setExistingPatientAppointmentType(t){this.selectedExistingPatientAppointmentType=t,this.setExistingPatientAppointmentSlots(this.selectedLocation.slots_configuration.slots[t]||[])},setExistingPatientAppointmentSlots(t){this.allEvents=this.calendarOptions.events=t,t.length>0?(this.calendarOptions.validRange.start=t[0].start,this.calendarOptions.validRange.end=t[t.length-1].start):this.calendarOptions.validRange.start=this.calendarOptions.validRange.end=""},setNewPatientAppointmentSlots(t){this.allEvents=this.calendarOptions.events=t,t.length>0?(this.calendarOptions.validRange.start=t[0].start,this.calendarOptions.validRange.end=t[t.length-1].start):this.calendarOptions.validRange.start=this.calendarOptions.validRange.end=""},usingExternalNewPatientAppointmentPortal(){return this.selectedLocation!==null&&this.selectedLocation.externalAppointmentPortalUrl!==null},showNewPatient(t){const e=t.target.parentNode.querySelector(".active");e&&e.classList.remove("active"),this.showNewPatientText=!this.usingExternalNewPatientAppointmentPortal()||[53,26,27,36,38,39,42,50,46,47,48,41,43,37].indexOf(this.root.entity.organizationId)>-1||this.root.entity.locationId===130,this.showCheckupText=!1,this.newPatient="Yes",this.newPatientReason="",this.existingPatient="No",this.existingPatientReason="",this.contactMethod="",this.preferredTime=[],this.preferredDay=[],t.target.classList.add("active"),this.canScheduleNewPatientAppointments=this.newPatientAppointmentConfiguration.length>0,this.showExistingPatientText=!1,this.newPatientAppointmentConfiguration.length===1&&(this.newPatientReason=Object.values(this.newPatientAppointmentConfiguration)[0].name,this.setNewPatientAppointmentType(this.newPatientAppointmentConfiguration[0].typeId)),this.usingExternalNewPatientAppointmentPortal()?(this.modifyDisabledAttribute(this.nextButtons[1],!1,!1),this.nextButtons[1].setAttribute("href",this.selectedLocation.externalAppointmentPortalUrl),this.nextButtons[1].setAttribute("target","_blank"),this.nextButtons[1].querySelector("span").textContent="Continue"):(this.resetNewPatientSlideNextButton(),this.modifyDisabledAttribute(this.nextButtons[1],this.newPatientAppointmentConfiguration.length!==1,!0))},hideNewPatient(t){this.showNewPatientText=!1,this.showCheckupText=!1,this.newPatient="No",this.newPatientReason="",this.existingPatient="Yes",this.existingPatientReason="",this.resetNewPatientSlideNextButton();const e=t.target.parentNode.querySelector(".active");e&&e.classList.remove("active"),t.target.classList.add("active"),this.newPatient="No",this.canScheduleNewPatientAppointments=!1,this.showExistingPatientText=!0,this.modifyDisabledAttribute(this.nextButtons[1],!0,!1)},clearPersonalData(){this.firstName="",this.lastName="",this.dob="",this.email="",this.phone="",this.zip=""},onNewPatientAppointmentTypeChanged(t){const e=this;return function(r){e.setNewPatientAppointmentType(t.typeId);const n=r.target.parentNode.querySelector(".active");n&&n.classList.remove("active"),r.target.classList.add("active"),e.newPatientReason=t.name,e.modifyDisabledAttribute(e.nextButtons[1],!1,!0)}},onExistingPatientAppointmentTypeChanged(t){const e=this;return function(r){const n=r.target.parentNode.querySelector(".active");n&&n.classList.remove("active"),t.typeId!==null?(e.setExistingPatientAppointmentType(t.typeId),e.canScheduleNewPatientAppointments=!0):(e.setExistingPatientAppointmentType(null),e.canScheduleNewPatientAppointments=!1),r.target.classList.add("active"),e.existingPatientReason=t.name,e.modifyDisabledAttribute(e.nextButtons[1],!1,!0)}},isValidString(t){return t?t.length>=2:!1},daysInMonth(t,e){switch(t){case 1:return e%4==0&&e%100||e%400==0?29:28;case 8:case 3:case 5:case 10:return 30;default:return 31}},isValidDate(t){if(t){const e=t.split("/");if(e.length===3){let r=e[0];const n=e[1],i=e[2];return r=parseInt(r,10)-1,i.length===4&&r>=0&&r<12&&n>0&&n<=this.daysInMonth(r,i)&&new Date(t)<new Date&&new Date(t).getFullYear()>=1900}return!1}return!1},isValidEmail(t){return t?/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)&&t.length>=6:!1},isValidPhone(t){if(t){const e=/^[0-9()-.\s]+$/,r=t.replace(/\D/g,"");return e.test(t)&&r.length>=10}return!1},isValidZipCode(t){return/(^\d{5}$)/.test(t)},allFieldsFilledAndValid(){return this.additionalFamilyMembers.filter(e=>e.fnClasses.includes("filled")&&!e.fnClasses.includes("error")&&e.lnClasses.includes("filled")&&!e.lnClasses.includes("error")&&e.dobClasses.includes("filled")&&!e.dobClasses.includes("error")).length===this.additionalFamilyMembers.length&&this.firstNameClasses.includes("filled")&&!this.firstNameClasses.includes("error")&&this.lastNameClasses.includes("filled")&&!this.lastNameClasses.includes("error")&&this.dobClasses.includes("filled")&&!this.dobClasses.includes("error")&&this.emailClasses.includes("filled")&&!this.emailClasses.includes("error")&&this.phoneClasses.includes("filled")&&!this.phoneClasses.includes("error")&&this.zipClasses.includes("filled")&&!this.zipClasses.includes("error")},isFilled(t){return t.trim().length>0},togglePersonalFormNextButton(){document.getElementById("personal-form")&&document.getElementById("personal-form").parentNode&&document.getElementById("personal-form").parentNode&&this.modifyDisabledAttribute(document.getElementById("personal-form").parentNode.querySelector(".with-circle-next"),!this.allFieldsFilledAndValid(),this.allFieldsFilledAndValid())},checkAllPersonalInformationFields(){this.togglePersonalFormNextButton()},firstNameErrorClass(t){let e=[];return this.firstNameError?e.includes("error")||e.push("error"):e.includes("error")&&e.splice(e.indexOf("error"),1),this.isFilled(t)||e.includes("error")&&e.splice(e.indexOf("error"),1),e},lastNameErrorClass(t){let e=[];return this.lastNameError?e.includes("error")||e.push("error"):e.includes("error")&&e.splice(e.indexOf("error"),1),this.isFilled(t)||e.includes("error")&&e.splice(e.indexOf("error"),1),e},dobErrorClass(t){let e=[];return this.dobError?e.includes("error")||e.push("error"):e.includes("error")&&e.splice(e.indexOf("error"),1),this.isFilled(t)||e.includes("error")&&e.splice(e.indexOf("error"),1),e},emailErrorClass(t){let e=[];return this.emailError?e.includes("error")||e.push("error"):e.includes("error")&&e.splice(e.indexOf("error"),1),this.isFilled(t)||e.includes("error")&&e.splice(e.indexOf("error"),1),e},phoneErrorClass(t){let e=[];return this.phoneError?e.includes("error")||e.push("error"):e.includes("error")&&e.splice(e.indexOf("error"),1),this.isFilled(t)||e.includes("error")&&e.splice(e.indexOf("error"),1),e},zipErrorClass(t){let e=[];return this.zipError?e.includes("error")||e.push("error"):e.includes("error")&&e.splice(e.indexOf("error"),1),this.isFilled(t)||e.includes("error")&&e.splice(e.indexOf("error"),1),e},firstNameInputClasses(t){return this.checkAllPersonalInformationFields(),this.isFilled(t)?(this.firstNameError=!this.isValidString(t),this.firstNameClasses.includes("filled")||this.firstNameClasses.push("filled"),this.firstNameError?this.firstNameClasses.includes("error")||this.firstNameClasses.push("error"):this.firstNameClasses.includes("error")&&this.firstNameClasses.splice(this.firstNameClasses.indexOf("error"),1)):(this.firstNameClasses.includes("filled")&&this.firstNameClasses.splice(this.firstNameClasses.indexOf("filled"),1),this.firstNameClasses.includes("error")&&this.firstNameClasses.splice(this.firstNameClasses.indexOf("error"),1)),this.firstNameClasses},lastNameInputClasses(t){return this.checkAllPersonalInformationFields(),this.isFilled(t)?(this.lastNameError=!this.isValidString(t),this.lastNameClasses.includes("filled")||this.lastNameClasses.push("filled"),this.lastNameError?this.lastNameClasses.includes("error")||this.lastNameClasses.push("error"):this.lastNameClasses.includes("error")&&this.lastNameClasses.splice(this.lastNameClasses.indexOf("error"),1)):(this.lastNameClasses.includes("filled")&&this.lastNameClasses.splice(this.lastNameClasses.indexOf("filled"),1),this.lastNameClasses.includes("error")&&this.lastNameClasses.splice(this.lastNameClasses.indexOf("error"),1)),this.lastNameClasses},dobInputClasses(t){return this.checkAllPersonalInformationFields(),this.isFilled(t)?(this.dobError=!this.isValidDate(t),this.dobClasses.includes("filled")||this.dobClasses.push("filled"),this.dobError?this.dobClasses.includes("error")||this.dobClasses.push("error"):this.dobClasses.includes("error")&&this.dobClasses.splice(this.dobClasses.indexOf("error"),1)):(this.dobClasses.includes("filled")&&this.dobClasses.splice(this.dobClasses.indexOf("filled"),1),this.dobClasses.includes("error")&&this.dobClasses.splice(this.dobClasses.indexOf("error"),1)),this.dobClasses},emailInputClasses(t){return this.checkAllPersonalInformationFields(),this.isFilled(t)?(this.emailError=!this.isValidEmail(t),this.emailClasses.includes("filled")||this.emailClasses.push("filled"),this.emailError?this.emailClasses.includes("error")||this.emailClasses.push("error"):this.emailClasses.includes("error")&&this.emailClasses.splice(this.emailClasses.indexOf("error"),1)):(this.emailClasses.includes("filled")&&this.emailClasses.splice(this.emailClasses.indexOf("filled"),1),this.emailClasses.includes("error")&&this.emailClasses.splice(this.emailClasses.indexOf("error"),1)),this.emailClasses},phoneInputClasses(t){return this.checkAllPersonalInformationFields(),this.isFilled(t)?(this.phoneError=!this.isValidPhone(t),this.phoneClasses.includes("filled")||this.phoneClasses.push("filled"),this.phoneError?this.phoneClasses.includes("error")||this.phoneClasses.push("error"):this.phoneClasses.includes("error")&&this.phoneClasses.splice(this.phoneClasses.indexOf("error"),1)):(this.phoneClasses.includes("filled")&&this.phoneClasses.splice(this.phoneClasses.indexOf("filled"),1),this.phoneClasses.includes("error")&&this.phoneClasses.splice(this.phoneClasses.indexOf("error"),1)),this.phoneClasses},zipInputClasses(t){return this.checkAllPersonalInformationFields(),this.isFilled(t)?(this.zipError=!this.isValidZipCode(t),this.zipClasses.includes("filled")||this.zipClasses.push("filled"),this.zipError?this.zipClasses.includes("error")||this.zipClasses.push("error"):this.zipClasses.includes("error")&&this.zipClasses.splice(this.zipClasses.indexOf("error"),1)):(this.zipClasses.includes("filled")&&this.zipClasses.splice(this.zipClasses.indexOf("filled"),1),this.zipClasses.includes("error")&&this.zipClasses.splice(this.zipClasses.indexOf("error"),1)),this.zipClasses},familyFirstNameErrorClass(t,e){let r=[];return this.additionalFamilyMembers[t].fnError?r.includes("error")||r.push("error"):r.includes("error")&&r.splice(r.indexOf("error"),1),this.isFilled(e)||r.includes("error")&&r.splice(r.indexOf("error"),1),r},familyFirstNameInputClasses(t,e){return this.checkAllPersonalInformationFields(),this.isFilled(e)?(this.additionalFamilyMembers[t].fnError=!this.isValidString(e),this.additionalFamilyMembers[t].fnClasses.includes("filled")||this.additionalFamilyMembers[t].fnClasses.push("filled"),this.additionalFamilyMembers[t].fnError?this.additionalFamilyMembers[t].fnClasses.includes("error")||this.additionalFamilyMembers[t].fnClasses.push("error"):this.additionalFamilyMembers[t].fnClasses.includes("error")&&this.additionalFamilyMembers[t].fnClasses.splice(this.additionalFamilyMembers[t].fnClasses.indexOf("error"),1)):(this.additionalFamilyMembers[t].fnClasses.includes("filled")&&this.additionalFamilyMembers[t].fnClasses.splice(this.additionalFamilyMembers[t].fnClasses.indexOf("filled"),1),this.additionalFamilyMembers[t].fnClasses.includes("error")&&this.additionalFamilyMembers[t].fnClasses.splice(this.additionalFamilyMembers[t].fnClasses.indexOf("error"),1)),this.additionalFamilyMembers[t].fnClasses},familyLastNameErrorClass(t,e){let r=[];return this.additionalFamilyMembers[t].lnError?r.includes("error")||r.push("error"):r.includes("error")&&r.splice(r.indexOf("error"),1),this.isFilled(e)||r.includes("error")&&r.splice(r.indexOf("error"),1),r},familyLastNameInputClasses(t,e){return this.checkAllPersonalInformationFields(),this.isFilled(e)?(this.additionalFamilyMembers[t].lnError=!this.isValidString(e),this.additionalFamilyMembers[t].lnClasses.includes("filled")||this.additionalFamilyMembers[t].lnClasses.push("filled"),this.additionalFamilyMembers[t].lnError?this.additionalFamilyMembers[t].lnClasses.includes("error")||this.additionalFamilyMembers[t].lnClasses.push("error"):this.additionalFamilyMembers[t].lnClasses.includes("error")&&this.additionalFamilyMembers[t].lnClasses.splice(this.additionalFamilyMembers[t].lnClasses.indexOf("error"),1)):(this.additionalFamilyMembers[t].lnClasses.includes("filled")&&this.additionalFamilyMembers[t].lnClasses.splice(this.additionalFamilyMembers[t].lnClasses.indexOf("filled"),1),this.additionalFamilyMembers[t].lnClasses.includes("error")&&this.additionalFamilyMembers[t].lnClasses.splice(this.additionalFamilyMembers[t].lnClasses.indexOf("error"),1)),this.additionalFamilyMembers[t].lnClasses},familyDobErrorClass(t,e){let r=[];return this.additionalFamilyMembers[t].dobError?r.includes("error")||r.push("error"):r.includes("error")&&r.splice(r.indexOf("error"),1),this.isFilled(e)||r.includes("error")&&r.splice(r.indexOf("error"),1),r},familyDobInputClasses(t,e){return this.checkAllPersonalInformationFields(),this.isFilled(e)?(this.additionalFamilyMembers[t].dobError=!this.isValidDate(e),this.additionalFamilyMembers[t].dobClasses.includes("filled")||this.additionalFamilyMembers[t].dobClasses.push("filled"),this.additionalFamilyMembers[t].dobError?this.additionalFamilyMembers[t].dobClasses.includes("error")||this.additionalFamilyMembers[t].dobClasses.push("error"):this.additionalFamilyMembers[t].dobClasses.includes("error")&&this.additionalFamilyMembers[t].dobClasses.splice(this.additionalFamilyMembers[t].dobClasses.indexOf("error"),1)):(this.additionalFamilyMembers[t].dobClasses.includes("filled")&&this.additionalFamilyMembers[t].dobClasses.splice(this.additionalFamilyMembers[t].dobClasses.indexOf("filled"),1),this.additionalFamilyMembers[t].dobClasses.includes("error")&&this.additionalFamilyMembers[t].dobClasses.splice(this.additionalFamilyMembers[t].dobClasses.indexOf("error"),1)),this.additionalFamilyMembers[t].dobClasses},addFamilyMember(){this.additionalFamilyMembers.length<4&&(this.additionalFamilyMembers.push({first_name:"",last_name:"",dob:"",fnError:!1,fnClasses:["form-input","medium"],lnError:!1,lnClasses:["form-input","medium"],dobError:!1,dobClasses:["form-input","small"]}),this.additionalFamilyMembers.length===4&&this.modifyDisabledAttribute(document.getElementById("add-family-member"),!0,!1))},removeFamilyMember(t){this.additionalFamilyMembers.splice(t,1),this.modifyDisabledAttribute(document.getElementById("add-family-member"),!1,!0)},clearInsuranceData(){this.insuranceName="",this.planName="",this.subscriberName="",this.subscriberId=""},showInsurance(t){const e=t.target.parentNode.querySelector(".active");e&&e.classList.remove("active"),t.target.classList.add("active"),this.subscriberName=this.firstName+" "+this.lastName,this.showInsuranceInputs=!0,this.modifyDisabledAttribute(this.nextButtons[3],!1,!0)},hideInsurance(t){this.clearInsuranceData();const e=t.target.parentNode.querySelector(".active");e&&e.classList.remove("active"),t.target.classList.add("active"),this.subscriberName="",this.showInsuranceInputs=!1,this.modifyDisabledAttribute(this.nextButtons[3],!1,!0)},insuranceMediumClasses(t){return document.getElementById("insurance-form")&&document.getElementById("insurance-form").parentNode&&document.getElementById("insurance-form").parentNode,t.length>0?"form-input medium filled":"form-input medium"},insuranceSmallClasses(t){return document.getElementById("insurance-form")&&document.getElementById("insurance-form").parentNode&&document.getElementById("insurance-form").parentNode,t.length>0?"form-input small filled":"form-input small"},selectedEmailContact(t){const e=t.target.parentNode.querySelector(".active");e&&e.classList.remove("active"),t.target.parentNode.parentNode.querySelector(".disclaimer").classList.add("hidden"),t.target.classList.add("active"),this.contactMethod="Email",this.preferredDay.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedCallContact(t){const e=t.target.parentNode.querySelector(".active");e&&e.classList.remove("active"),t.target.parentNode.parentNode.querySelector(".disclaimer").classList.add("hidden"),t.target.classList.add("active"),this.contactMethod="Call",this.preferredDay.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedTextContact(t){const e=t.target.parentNode.querySelector(".active");e&&e.classList.remove("active"),t.target.parentNode.parentNode.querySelector(".disclaimer").classList.remove("hidden"),t.target.classList.add("active"),this.contactMethod="Text",this.preferredDay.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedAnyDay(t){t.target.parentNode.querySelectorAll(".active:not(.any)").forEach(r=>r.classList.remove("active")),this.preferredDay=[],t.target.classList.toggle("active"),this.preferredDay.includes("Any")||this.preferredDay.push("Any"),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedMonday(t){const e=t.target.parentNode.parentNode.querySelector(".any.active");e&&(this.preferredDay=[],e.classList.remove("active")),this.preferredDay.includes("Tuesday")&&this.preferredDay.includes("Wednesday")&&this.preferredDay.includes("Thursday")&&this.preferredDay.includes("Friday")?(t.target.parentNode.querySelectorAll(".active").forEach(n=>n.classList.remove("active")),t.target.parentNode.parentNode.querySelector(".any").classList.add("active"),this.preferredDay=[],this.preferredDay.push("Any"),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)):(t.target.classList.toggle("active"),this.preferredDay.includes("Monday")?this.preferredDay=this.preferredDay.filter(r=>r!=="Monday"):this.preferredDay.push("Monday")),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedTuesday(t){const e=t.target.parentNode.parentNode.querySelector(".any.active");e&&(this.preferredDay=[],e.classList.remove("active")),this.preferredDay.includes("Monday")&&this.preferredDay.includes("Wednesday")&&this.preferredDay.includes("Thursday")&&this.preferredDay.includes("Friday")?(t.target.parentNode.querySelectorAll(".active").forEach(n=>n.classList.remove("active")),t.target.parentNode.parentNode.querySelector(".any").classList.add("active"),this.preferredDay=[],this.preferredDay.push("Any"),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)):(t.target.classList.toggle("active"),this.preferredDay.includes("Tuesday")?this.preferredDay=this.preferredDay.filter(r=>r!=="Tuesday"):this.preferredDay.push("Tuesday")),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedWednesday(t){const e=t.target.parentNode.parentNode.querySelector(".any.active");e&&(this.preferredDay=[],e.classList.remove("active")),this.preferredDay.includes("Monday")&&this.preferredDay.includes("Tuesday")&&this.preferredDay.includes("Thursday")&&this.preferredDay.includes("Friday")?(t.target.parentNode.querySelectorAll(".active").forEach(n=>n.classList.remove("active")),t.target.parentNode.parentNode.querySelector(".any").classList.add("active"),this.preferredDay=[],this.preferredDay.push("Any"),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)):(t.target.classList.toggle("active"),this.preferredDay.includes("Wednesday")?this.preferredDay=this.preferredDay.filter(r=>r!=="Wednesday"):this.preferredDay.push("Wednesday")),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedThursday(t){const e=t.target.parentNode.parentNode.querySelector(".any.active");e&&(this.preferredDay=[],e.classList.remove("active")),this.preferredDay.includes("Monday")&&this.preferredDay.includes("Tuesday")&&this.preferredDay.includes("Wednesday")&&this.preferredDay.includes("Friday")?(t.target.parentNode.querySelectorAll(".active").forEach(n=>n.classList.remove("active")),t.target.parentNode.parentNode.querySelector(".any").classList.add("active"),this.preferredDay=[],this.preferredDay.push("Any"),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)):(t.target.classList.toggle("active"),this.preferredDay.includes("Thursday")?this.preferredDay=this.preferredDay.filter(r=>r!=="Thursday"):this.preferredDay.push("Thursday")),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedFriday(t){const e=t.target.parentNode.parentNode.querySelector(".any.active");e&&(this.preferredDay=[],e.classList.remove("active")),this.preferredDay.includes("Monday")&&this.preferredDay.includes("Tuesday")&&this.preferredDay.includes("Wednesday")&&this.preferredDay.includes("Thursday")?(t.target.parentNode.querySelectorAll(".active").forEach(n=>n.classList.remove("active")),t.target.parentNode.parentNode.querySelector(".any").classList.add("active"),this.preferredDay=[],this.preferredDay.push("Any"),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)):(t.target.classList.toggle("active"),this.preferredDay.includes("Friday")?this.preferredDay=this.preferredDay.filter(r=>r!=="Friday"):this.preferredDay.push("Friday")),this.contactMethod.length>0&&this.preferredTime.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedAnyTime(t){t.target.parentNode.querySelectorAll(".active:not(.any)").forEach(r=>r.classList.remove("active")),this.preferredTime=[],t.target.classList.toggle("active"),this.preferredTime.includes("Any")||this.preferredTime.push("Any"),this.contactMethod.length>0&&this.preferredDay.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedEarly(t){const e=t.target.parentNode.querySelector(".any.active");e&&(this.preferredTime=[],e.classList.remove("active")),this.preferredTime.includes("Afternoon")&&this.preferredTime.includes("Late")?(t.target.parentNode.querySelectorAll(".active").forEach(n=>n.classList.remove("active")),t.target.parentNode.querySelector(".any").classList.add("active"),this.preferredTime=[],this.preferredTime.push("Any"),this.contactMethod.length>0&&this.preferredDay.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)):(t.target.classList.toggle("active"),this.preferredTime.includes("Early")?this.preferredTime=this.preferredTime.filter(r=>r!=="Early"):this.preferredTime.push("Early")),this.contactMethod.length>0&&this.preferredDay.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedAfternoon(t){const e=t.target.parentNode.querySelector(".any.active");e&&(this.preferredTime=[],e.classList.remove("active")),this.preferredTime.includes("Early")&&this.preferredTime.includes("Late")?(t.target.parentNode.querySelectorAll(".active").forEach(n=>n.classList.remove("active")),t.target.parentNode.querySelector(".any").classList.add("active"),this.preferredTime=[],this.preferredTime.push("Any"),this.contactMethod.length>0&&this.preferredDay.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)):(t.target.classList.toggle("active"),this.preferredTime.includes("Afternoon")?this.preferredTime=this.preferredTime.filter(r=>r!=="Afternoon"):this.preferredTime.push("Afternoon")),this.contactMethod.length>0&&this.preferredDay.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},selectedLate(t){const e=t.target.parentNode.querySelector(".any.active");e&&(this.preferredTime=[],e.classList.remove("active")),this.preferredTime.includes("Early")&&this.preferredTime.includes("Afternoon")?(t.target.parentNode.querySelectorAll(".active").forEach(n=>n.classList.remove("active")),t.target.parentNode.querySelector(".any").classList.add("active"),this.preferredTime=[],this.preferredTime.push("Any"),this.contactMethod.length>0&&this.preferredDay.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)):(t.target.classList.toggle("active"),this.preferredTime.includes("Late")?this.preferredTime=this.preferredTime.filter(r=>r!=="Late"):this.preferredTime.push("Late")),this.contactMethod.length>0&&this.preferredDay.length>0&&this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!1,!0)},goToLastSlide(){this.swiperInstance.slideTo(this.swiperInstance.slides.length)},resetSelectedAppointmentMessage(){this.appointmentId="",this.appointmentSet="",this.appointmentMessage=!1,this.formattedDate="",this.modifyDisabledAttribute(document.querySelector(".genesis-submit"),!0,!1)},onInsuranceFromSchedule(){this.resetSelectedAppointmentMessage()},async submitAppointmentExperience(){const t=this,e={organization:this.root.entity.organizationName,selectedLocation:this.selectedLocation.id,newPatient:this.newPatient,newPatientReason:this.newPatient==="Yes"?this.newPatientReason:"",existingPatientReason:this.newPatient==="Yes"?this.newPatientReason:this.existingPatientReason,firstName:this.firstName,lastName:this.lastName,dob:this.dob,email:this.email,phone:this.phone,zip:this.zip,comment:this.comment,additionalFamilyMembers:this.additionalFamilyMembers.map(({first_name:a,last_name:o,dob:s})=>({first_name:a,last_name:o,dob:s})),hasInsurance:this.showInsuranceInputs?"Yes":"No",insuranceName:this.insuranceName,planNumber:this.planName,subscriberName:this.subscriberName,subscriberId:this.subscriberId,contactMethod:this.contactMethod,preferredDay:this.preferredDay,preferredTime:this.preferredTime,appointmentId:this.appointmentId,patientPrism:this.patientPrism,token:""},r=this.newPatient==="Yes"?"New":"Existing",n=this.appointmentId!==""&&this.newPatient==="Yes"?"Book":"Request",i=this.selectedLocation.id;this.modifyDisabledAttribute(document.getElementsByClassName("genesis-submit")[0],!0,!1),await turnstile.render("#appointment-form",{sitekey:this.root.entity.turnstileKey,callback:function(a){e.token=a,axios.post("/api/appointments/submit",{data:e},{headers:{"g-path":window.location.pathname||null,"Content-Type":"application/json",Accept:"application/json"}}).then(o=>{if(console.log(t.formSubmitted),o.data.success&&t.formSubmitted===!1){if(t.formSubmitted=!0,e.patientPrism[i]!==void 0){let s=[];e.additionalFamilyMembers.forEach(function(u,d){s["additionalFamilyMembers"+d]={type:"text",value:Object.keys(u).map(function(p){return u[p]}).join(","),label:"Additional Family Member "+d}});const l={appointmentId:{type:"text",value:e.appointmentId,label:"Appointment ID"},organization:{type:"text",value:e.organization,label:"Organization"},firstName:{type:"text",value:e.firstName,label:"First Name"},lastName:{type:"text",value:e.lastName,label:"Last Name"},email:{type:"email",value:e.email,label:"Email"},phone:{type:"tel",value:e.phone,label:"Phone Number"},comment:{type:"text",value:e.comment,label:"Comments"},contactMethod:{type:"text",value:e.contactMethod,label:"Contact Method"},dob:{type:"text",value:e.dob,label:"DOB"},newPatient:{type:"text",value:e.newPatient,label:"New Patient"},newPatientReason:{type:"text",value:e.newPatientReason,label:"New Patient Reason"},existingPatientReason:{type:"text",value:e.existingPatientReason,label:"Existing Patient Reason"},hasInsurance:{type:"text",value:e.hasInsurance,label:"Has Insurance"},insuranceName:{type:"text",value:e.insuranceName,label:"Insurance Name"},planNumber:{type:"text",value:e.planNumber,label:"Plan Number"},preferredDay:{type:"text",value:e.preferredDay.toString(),label:"Preferred Day"},preferredTime:{type:"text",value:e.preferredTime.toString(),label:"Preferred Time"},selectedLocation:{type:"text",value:e.selectedLocation,label:"Selected Location"},subscriberId:{type:"text",value:e.subscriberId,label:"Subscriber Id"},subscriberName:{type:"text",value:e.subscriberName,label:"Subscriber Name"},zip:{type:"text",value:e.zip,label:"ZIP"}};let c=Object.assign({},l,s);window==null||window.$prism.submission.send(c,"custom-form-with-assigned-location",{location:e.patientPrism[i]})}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"appointment_form",patientType:r,formType:n,selectedLocationId:i}),turnstile.remove(),t.goToLastSlide()}else o.data.errors&&(t.responseError=o.data.message)}).catch(function(o){o.response?t.responseError=o.response.data.message:t.responseError=o.message})}})},onSwiper(t){this.swiperInstance=t,this.stepPercentage=(t.realIndex+1)/(t.slides.length-1)*100},onSlideChange(t){this.newInitialSlide===1&&this.selectedLocation===0&&this.onLocationSelected(this.allLocations[this.root.entity.locationId]),document.querySelector(".appointment-modal .swiper-wrapper .swiper-slide .fc-icon-icon-circle-arrow")&&(document.querySelector(".appointment-modal .swiper-wrapper .swiper-slide .fc-icon-icon-circle-arrow").parentNode.innerHTML='<svg class="icon icon-circle-arrow circle-arrow-icon" aria-labelledby="undefinedTitle undefinedDescription" role="img" viewBox="0 0 32 32"><title id="undefinedTitle"></title><desc id="undefinedDescription"></desc><use href="'+window.location.origin+'/svgs/icons.svg#icon-circle-arrow"></use></svg>'),document.querySelector(".appointment-modal .swiper-wrapper .swiper-slide .fc-icon-icon-circle-arrow-reverse")&&(document.querySelector(".appointment-modal .swiper-wrapper .swiper-slide .fc-icon-icon-circle-arrow-reverse").parentNode.innerHTML='<svg class="icon icon-circle-arrow circle-arrow-icon-reverse" aria-labelledby="undefinedTitle undefinedDescription" role="img" viewBox="0 0 32 32"><title id="undefinedTitle"></title><desc id="undefinedDescription"></desc><use href="'+window.location.origin+'/svgs/icons.svg#icon-circle-arrow"></use></svg>'),document.querySelector(".appointment-modal .swiper-wrapper .swiper-slide.swiper-slide-prev")&&(document.querySelector(".appointment-modal .swiper-wrapper .swiper-slide.swiper-slide-prev").scrollTop=0),this.stepPercentage=(t.realIndex+1)/(t.slides.length-1)*100,this.stepPercentage<=100?document.getElementById("progress").style.width=this.stepPercentage+"%":document.getElementById("progress").style.display="none"}}},zn=()=>{Ba(t=>({"36250b32":t.settings.modalStyles.appointmentModal.locationPhone.color}))},Wn=Lr.setup;Lr.setup=Wn?(t,e)=>(zn(),Wn(t,e)):zn;const Zd=Lr,Xd={class:"appointment-modal"},Kd={id:"appointment-form",class:"appointment-experience"},Jd={class:"appointment-experience bg-header-background"},Qd={class:"modal-actions"},$d={class:"body"},ef={class:"location-header"},tf={class:"modal-text"},rf={class:"bottom-buttons"},nf={key:0,class:"modal-text"},af=["innerHTML"],of={key:1,class:"modal-text"},sf={key:2,class:"modal-text"},lf={class:"buttons"},uf={class:"cta"},cf={class:"cta"},df={key:0,class:"new-patient-text"},ff={key:0},pf={key:0,class:"buttons extra"},hf=["innerHTML"],vf={key:0,class:"new-patient-extras"},mf=["innerHTML"],gf={key:1,class:"new-patient-text"},yf={key:1},bf={class:"buttons extra"},Ef=["data-id","innerHTML"],Cf={key:0,class:"new-patient-extras"},Sf=["innerHTML"],wf={class:"bottom-buttons"},Df={class:"left"},Tf={key:0,href:"#",class:"cta white outline with-circle-prev",slot:"button-prev"},_f={key:0,class:"modal-text"},Rf={key:1,class:"modal-text"},Mf={id:"personal-form",class:"personal-form"},Pf={class:"row"},Nf={class:"form-input-container"},If={class:"form-input-container"},kf={class:"form-input-container"},xf={class:"row"},Af={class:"form-input-container"},Hf={class:"form-input-container"},Of={class:"form-input-container"},Lf={id:"comment-form",class:"comment-form"},Ff={class:"modal-text book-disclaimer hidden"},Bf=["href"],Vf={class:"row"},Uf={class:"form-input-container grow"},zf={key:0,id:"additional-family-members",class:"additional-family-members"},Wf={href:"#",id:"add-family-member",class:"cta white outline"},qf={class:"row family-member"},Gf={class:"form-input-container"},Yf=["for"],jf=["id","onUpdate:modelValue"],Zf={class:"form-input-container"},Xf=["for"],Kf=["id","onUpdate:modelValue"],Jf={class:"form-input-container"},Qf=["for"],$f=["id","onUpdate:modelValue"],ep={class:"form-input-container"},tp=["onClick"],rp={class:"bottom-buttons"},np={class:"left"},ip={href:"#",class:"cta white outline with-circle-prev",slot:"button-prev"},ap={href:"#",class:"cta secondary with-circle-next",slot:"button-next",disabled:""},op={id:"insurance-form",class:"insurance-form"},sp={class:"buttons"},lp={class:"cta"},up={class:"cta"},cp={class:"form-container"},dp={class:"row"},fp={class:"form-input-container"},pp={class:"form-input-container"},hp={class:"row"},vp={class:"form-input-container"},mp={class:"form-input-container"},gp={class:"bottom-buttons"},yp={class:"left"},bp={href:"#",class:"cta white outline with-circle-prev",slot:"button-prev"},Ep={href:"#",class:"cta secondary with-circle-next",slot:"button-next",disabled:""},Cp={key:0,class:"modal-text"},Sp={key:1,class:"modal-text"},wp={key:0,class:"calendar-container"},Dp={class:"flex flex-direction-column"},Tp={class:"message"},_p=["innerHTML"],Rp=["innerHTML"],Mp={key:1,class:"other-options"},Pp={class:"row"},Np={class:"flex flex-direction-column"},Ip={class:"buttons"},kp={class:"cta"},xp={class:"cta compact"},Ap={class:"cta compact"},Hp={class:"modal-text disclaimer hidden"},Op=["href"],Lp={class:"row"},Fp={class:"flex flex-direction-column"},Bp={class:"buttons"},Vp={class:"cta any"},Up={class:"circles flex"},zp={class:"cta circle"},Wp={class:"cta circle"},qp={class:"cta circle"},Gp={class:"cta circle"},Yp={class:"cta circle"},jp={class:"flex flex-direction-column"},Zp={class:"buttons"},Xp={class:"cta any"},Kp={class:"cta compact"},Jp={class:"cta compact"},Qp={class:"cta compact"},$p=["data-sitekey"],eh={class:"bottom-buttons"},th={class:"left"},rh={href:"#",class:"cta white outline with-circle-prev",slot:"button-prev"},nh={href:"#",class:"cta genesis-submit",slot:"button-next",disabled:""},ih=["innerHTML"],ah={class:"thank-you-container"},oh={class:"appointment-container"},sh={class:"info"},lh={class:"h2"},uh=["innerHTML"],ch=["innerHTML"],dh=["innerHTML"],fh=["innerHTML"],ph=["innerHTML"],hh={key:0},vh={class:"location-container"},mh=["innerHTML"],gh=["innerHTML"];function yh(t,e,r,n,i,a){const o=he("custom-picture"),s=he("anchor"),l=he("custom-svg"),c=he("vue-select"),u=he("swiper-slide"),d=he("FullCalendar"),p=he("swiper"),f=Fr("touch"),h=Fr("mask");return w(),T("div",Xd,[y("div",Kd,[y("header",Jd,[a.root.entity.headerLogo?(w(),kt(o,{key:0,src:a.root.entity.headerLogo.url,sources:a.root.entity.headerLogo.media,width:a.root.entity.headerLogo.width,height:a.root.entity.headerLogo.height,alt:a.root.entity.headerLogo.alt,title:a.root.entity.headerLogo.title,imgClasses:"logo"},null,8,["src","sources","width","height","alt","title"])):B("",!0),y("div",Qd,[L(s,{href:"tel:+1"+a.locationPhoneTel,class:"cta text location-phone",innerHTML:a.locationPhoneText},null,8,["href","innerHTML"]),a.root.entity.organizationId!==149?(w(),T("div",{key:0,class:"modal-close",onClick:e[0]||(e[0]=(...m)=>a.close&&a.close(...m))},[L(l,{type:"icon",name:"icon-close",class:"close-icon"})])):B("",!0)])]),e[81]||(e[81]=y("div",{class:"progress-bar"},[y("div",{id:"progress"})],-1)),y("div",$d,[a.root.entity.organizationId!==149?(w(),T("div",{key:0,class:"modal-close",onClick:e[1]||(e[1]=(...m)=>a.close&&a.close(...m))},[L(l,{type:"icon",name:"icon-close",class:"close-icon"})])):B("",!0),i.rendered?(w(),kt(p,{key:1,class:"container",allowTouchMove:i.sliderOptions.allowTouchMove,autoHeight:i.sliderOptions.autoHeight,autoplay:i.sliderOptions.autoplay,breakpoints:i.sliderOptions.breakpoints,focusableElements:"textarea, button, video, label",initialSlide:i.newInitialSlide,loop:i.sliderOptions.loop,navigation:i.sliderOptions.navigation,pagination:i.sliderOptions.pagination,slidesPerView:i.sliderOptions.slidesPerView,spaceBetween:i.sliderOptions.spaceBetween,watchOverflow:!0,onSwiper:a.onSwiper,onSlideChange:a.onSlideChange},{default:re(()=>[L(u,null,{default:re(()=>[y("header",ef,[e[14]||(e[14]=y("h2",{class:"h1"},"Select a location",-1)),y("p",tf,"Please select your preferred "+ka(a.root.entity.organizationName)+" location from the list below.",1)]),L(c,{id:"modal-select-location",placeholder:"Choose a location",options:a.sortedLocations,disabled:i.disableLocationSelect,clearable:!1,"close-on-select":!0,"select-on-tab":!0,label:"name",autocomplete:"none","onOption:selected":a.onLocationSelected},null,8,["options","disabled","onOption:selected"]),y("div",rf,[L(s,{href:"#",class:"cta secondary with-circle-next",slot:"button-next",disabled:""},{default:re(()=>[e[15]||(e[15]=y("span",null,"Are you a new patient?",-1)),L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon"})]),_:1})])]),_:1}),L(u,null,{default:re(()=>[y("header",null,[e[22]||(e[22]=y("h2",{class:"h1"},"Are you a new patient?",-1)),a.root.entity.organizationId!==94?(w(),T("p",nf,[y("span",{innerHTML:this.root.entity.appointmentCopy},null,8,af),e[16]||(e[16]=x(" please call our office directly at ")),L(s,{class:"cta text underline inline",href:"tel:+1"+i.selectedLocation.phone,innerHTML:i.selectedLocation.phone_number},null,8,["href","innerHTML"]),e[17]||(e[17]=x("."))])):B("",!0),a.root.entity.organizationId===94?(w(),T("p",of,[e[18]||(e[18]=x("In order for us to best serve you, please indicate whether or not you are a new patient to our practice. Patients can text our office directly at ")),L(s,{class:"cta text underline inline",href:"sms:+1"+i.selectedLocation.phone,innerHTML:i.selectedLocation.phone_number},null,8,["href","innerHTML"]),e[19]||(e[19]=x(" for faster response during normal business hours."))])):B("",!0),a.root.entity.organizationId===94?(w(),T("p",sf,[e[20]||(e[20]=x("By texting our office, you are opting in to receive text messages from us. Msg/data rates apply. Reply STOP to opt out. View our ")),L(s,{class:"cta text underline inline",href:a.root.entity.organizationId!==149?a.root.entity.url+"/privacy-policy":"https://queenssmile.com/privacy-policy/",target:"_blank",innerHTML:"Privacy Policy"},null,8,["href"]),e[21]||(e[21]=x("."))])):B("",!0)]),y("div",lf,[N((w(),T("button",uf,e[23]||(e[23]=[x("Yes")]))),[[f,a.showNewPatient]]),N((w(),T("button",cf,e[24]||(e[24]=[x("No")]))),[[f,a.hideNewPatient]])]),i.showNewPatientText?(w(),T("div",df,[this.newPatientAppointmentConfiguration.length?(w(),T("div",ff,[this.newPatientAppointmentConfiguration.length===1?(w(),T(ne,{key:0},[e[25]||(e[25]=y("hr",null,null,-1)),e[26]||(e[26]=y("p",{class:"modal-text"},"Your initial visit will include all necessary x-rays and a comprehensive examination. Once the doctor has diagnosed the type of cleaning you need, the appropriate appointment can then be made. If time permits, a same day cleaning may be scheduled.",-1))],64)):B("",!0),this.newPatientAppointmentConfiguration.length>1?(w(),T(ne,{key:1},[e[27]||(e[27]=y("hr",null,null,-1)),e[28]||(e[28]=y("p",{class:"modal-text"},"Please choose a reason for your visit.",-1))],64)):B("",!0),y("div",null,[this.newPatientAppointmentConfiguration.length>1?(w(),T("div",pf,[(w(!0),T(ne,null,Ve(this.newPatientAppointmentConfiguration,m=>N((w(),T("button",{class:"cta",innerHTML:this.getReasonTypeOverwrite(m.name)},null,8,hf)),[[f,a.onNewPatientAppointmentTypeChanged(m)]])),256))])):B("",!0),(w(!0),T(ne,null,Ve(this.newPatientAppointmentConfiguration,m=>(w(),T(ne,null,[this.selectedNewPatientAppointmentType===m.typeId&&m.description!==null?(w(),T("div",vf,[L(l,{type:"icon",name:"icon-warning",class:"warning-icon"}),y("p",{class:"modal-text",innerHTML:m.description},null,8,mf)])):B("",!0)],64))),256))])])):B("",!0)])):B("",!0),i.showExistingPatientText?(w(),T("div",gf,[this.existingPatientAppointmentConfiguration.length>1?(w(),T(ne,{key:0},[e[29]||(e[29]=y("hr",null,null,-1)),e[30]||(e[30]=y("p",{class:"modal-text"},"Please choose a reason for your visit.",-1))],64)):B("",!0),this.existingPatientAppointmentConfiguration.length?(w(),T("div",yf,[y("div",bf,[(w(!0),T(ne,null,Ve(this.existingPatientAppointmentConfiguration,m=>N((w(),T("button",{class:"cta","data-id":m.typeId,innerHTML:m.name},null,8,Ef)),[[f,a.onExistingPatientAppointmentTypeChanged(m)]])),256))]),(w(!0),T(ne,null,Ve(this.existingPatientAppointmentConfiguration,m=>(w(),T(ne,null,[this.selectedExistingPatientAppointmentType===m.typeId&&m.description!==null?(w(),T("div",Cf,[L(l,{type:"icon",name:"icon-warning",class:"warning-icon"}),y("p",{class:"modal-text",innerHTML:m.description},null,8,Sf)])):B("",!0)],64))),256))])):B("",!0)])):B("",!0),y("div",wf,[y("div",Df,[this.newInitialSlide<1?(w(),T("a",Tf,[L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon-reverse"}),e[31]||(e[31]=y("span",null,"Select a location",-1))])):B("",!0)]),y("a",{href:"#",class:"cta secondary with-circle-next",slot:"button-next",disabled:"",onClick:e[2]||(e[2]=(...m)=>a.onPersonalInformationNextButtonClicked&&a.onPersonalInformationNextButtonClicked(...m))},[e[32]||(e[32]=y("span",null,"Personal information",-1)),L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon"})])])]),_:1}),L(u,null,{default:re(()=>[y("header",null,[e[33]||(e[33]=y("h2",{class:"h1"},"Personal information",-1)),i.showExistingPatientText?(w(),T("p",_f,"Please provide us with the following information to begin scheduling your\xA0appointment.")):(w(),T("p",Rf,"Please provide us with the following information to begin booking your\xA0appointment."))]),y("div",Mf,[y("div",Pf,[y("div",Nf,[y("label",{class:F(a.firstNameErrorClass(i.firstName)),for:"first-name"},"First name",2),N(y("input",{type:"text",id:"first-name",class:F(a.firstNameInputClasses(i.firstName)),placeholder:"First name","onUpdate:modelValue":e[3]||(e[3]=m=>i.firstName=m),maxlength:"100",autocomplete:"none",required:""},null,2),[[X,i.firstName]])]),y("div",If,[y("label",{class:F(a.lastNameErrorClass(i.lastName)),for:"last-name"},"Last name",2),N(y("input",{type:"text",id:"last-name",class:F(a.lastNameInputClasses(i.lastName)),placeholder:"Last name","onUpdate:modelValue":e[4]||(e[4]=m=>i.lastName=m),maxlength:"100",autocomplete:"none",required:""},null,2),[[X,i.lastName]])]),y("div",kf,[y("label",{class:F(a.dobErrorClass(i.dob)),for:"dob"},"Date of birth",2),N(y("input",{type:"tel",id:"dob",class:F(a.dobInputClasses(i.dob)),placeholder:"00/00/0000","onUpdate:modelValue":e[5]||(e[5]=m=>i.dob=m),required:""},null,2),[[h,["##/##/####"]],[X,i.dob]]),y("p",{class:F(a.dobErrorClass(i.dob))},"This isn't a valid date.",2)])]),y("div",xf,[y("div",Af,[y("label",{class:F(a.emailErrorClass(i.email)),for:"email"},"Email",2),N(y("input",{type:"email",id:"email",class:F(a.emailInputClasses(i.email)),placeholder:"example@gmail.com","onUpdate:modelValue":e[6]||(e[6]=m=>i.email=m),maxlength:"255",autocomplete:"none",required:""},null,2),[[X,i.email]]),y("p",{class:F(a.emailErrorClass(i.email))},"The Email doesn't seem to be valid.",2)]),y("div",Hf,[y("label",{class:F(a.phoneErrorClass(i.phone)),for:"phone"},"Phone",2),N(y("input",{type:"tel",id:"phone",class:F(a.phoneInputClasses(i.phone)),placeholder:"(123) 456-7890","onUpdate:modelValue":e[7]||(e[7]=m=>i.phone=m),autocomplete:"none",required:""},null,2),[[h,"(###) ###-####"],[X,i.phone]])]),y("div",Of,[y("label",{class:F(a.zipErrorClass(i.zip)),for:"zip"},"ZIP Code",2),N(y("input",{type:"tel",id:"zip",class:F(a.zipInputClasses(i.zip)),placeholder:"00000","onUpdate:modelValue":e[8]||(e[8]=m=>i.zip=m),autocomplete:"none",required:""},null,2),[[h,"#####"],[X,i.zip]])])])]),y("div",Lf,[y("p",Ff,[e[34]||(e[34]=x("By submitting your phone number, you are opting in to receive text messages from us. Msg/data rates apply. Reply STOP to opt out. View our ")),y("a",{class:"cta text underline inline",href:this.root.entity.organizationId!==149?this.root.entity.url+"/privacy-policy":"https://queenssmile.com/privacy-policy/",target:"_blank"},"Privacy Policy",8,Bf),e[35]||(e[35]=x("."))]),e[37]||(e[37]=y("p",{class:"modal-text"},"Please let us know if there are any questions or comments you have regarding your appointment.",-1)),y("div",Vf,[y("div",Uf,[e[36]||(e[36]=y("label",{for:"comment"},"Questions/comments (optional)",-1)),N(y("textarea",{id:"comment",class:"form-textarea","onUpdate:modelValue":e[9]||(e[9]=m=>i.comment=m),maxlength:"3950",autocomplete:"none"},null,512),[[X,i.comment]])])])]),i.showExistingPatientText?(w(),T("div",zf,[e[41]||(e[41]=y("h2",null,"Additional family members",-1)),e[42]||(e[42]=y("p",{class:"modal-text"},"Please add up to four additional family members.",-1)),N((w(),T("a",Wf,e[38]||(e[38]=[x("Add family member")]))),[[f,a.addFamilyMember]]),i.additionalFamilyMembers?(w(!0),T(ne,{key:0},Ve(i.additionalFamilyMembers,(m,C)=>(w(),T("div",qf,[y("div",Gf,[y("label",{class:F(a.familyFirstNameErrorClass(C,m.first_name)),for:"first-name-"+(C+1)},"First name",10,Yf),N(y("input",{type:"text",id:"first-name-"+(C+1),class:F(a.familyFirstNameInputClasses(C,m.first_name)),placeholder:"First name",maxlength:"100","onUpdate:modelValue":g=>m.first_name=g,autocomplete:"none",required:""},null,10,jf),[[X,m.first_name]])]),y("div",Zf,[y("label",{class:F(a.familyLastNameErrorClass(C,m.last_name)),for:"last-name-"+(C+1)},"Last name",10,Xf),N(y("input",{type:"text",id:"last-name-"+(C+1),class:F(a.familyLastNameInputClasses(C,m.last_name)),placeholder:"Last name",maxlength:"100","onUpdate:modelValue":g=>m.last_name=g,autocomplete:"none",required:""},null,10,Kf),[[X,m.last_name]])]),y("div",Jf,[y("label",{class:F(a.familyDobErrorClass(C,m.dob)),for:"dob-"+(C+1)},"Date of birth",10,Qf),N(y("input",{type:"tel",id:"dob-"+(C+1),class:F(a.familyDobInputClasses(C,m.dob)),placeholder:"00/00/0000","onUpdate:modelValue":g=>m.dob=g,required:""},null,10,$f),[[h,["##/##/####"]],[X,m.dob]]),y("p",{class:F(a.familyDobErrorClass(C,m.dob))},"This isn't a valid date.",2)]),y("div",ep,[e[40]||(e[40]=y("label",{class:"remove-member-label"},"\xA0",-1)),y("a",{href:"#",class:"remove-member",onClick:g=>a.removeFamilyMember(C)},e[39]||(e[39]=[y("span",null,"\u2014",-1)]),8,tp)])]))),256)):B("",!0)])):B("",!0),y("div",rp,[y("div",np,[y("a",ip,[L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon-reverse"}),e[43]||(e[43]=y("span",null,"Are you a new patient?",-1))])]),y("a",ap,[e[44]||(e[44]=y("span",null,"Insurance information",-1)),L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon"})])])]),_:1}),L(u,null,{default:re(()=>[e[54]||(e[54]=y("header",null,[y("h2",{class:"h1"},"Insurance information"),y("p",{class:"modal-text"},"We work with most major dental insurance providers. Please indicate below if you plan on using insurance for your appointment.")],-1)),y("div",op,[e[51]||(e[51]=y("p",{class:"modal-text"},"Are you planning on using insurance for your visit?",-1)),y("div",sp,[N((w(),T("button",lp,e[45]||(e[45]=[x("Yes")]))),[[f,a.showInsurance]]),N((w(),T("button",up,e[46]||(e[46]=[x("No")]))),[[f,a.hideInsurance]])]),N(y("div",cp,[y("div",dp,[y("div",fp,[e[47]||(e[47]=y("label",{for:"insurance-name"},"Insurance name (optional)",-1)),N(y("input",{type:"text",id:"insurance-name",name:"insurance-name",class:F(a.insuranceMediumClasses(i.insuranceName)),placeholder:"Carrier name","onUpdate:modelValue":e[10]||(e[10]=m=>i.insuranceName=m),maxlength:"100",autocomplete:"none"},null,2),[[X,i.insuranceName]])]),y("div",pp,[e[48]||(e[48]=y("label",{for:"plan-name"},"Plan/Group number (optional)",-1)),N(y("input",{type:"text",id:"plan-name",name:"plan-name",class:F(a.insuranceSmallClasses(i.planName)),placeholder:"Gold","onUpdate:modelValue":e[11]||(e[11]=m=>i.planName=m),maxlength:"100",autocomplete:"none"},null,2),[[X,i.planName]])])]),y("div",hp,[y("div",vp,[e[49]||(e[49]=y("label",{for:"subscriber-name"},"Subscriber name (optional)",-1)),N(y("input",{type:"text",id:"subscriber-name",name:"subscriber-name",class:F(a.insuranceMediumClasses(i.subscriberName)),placeholder:"John Smith","onUpdate:modelValue":e[12]||(e[12]=m=>i.subscriberName=m),maxlength:"100",autocomplete:"none"},null,2),[[X,i.subscriberName]])]),y("div",mp,[e[50]||(e[50]=y("label",{for:"subscriber-id"},"Subscriber ID (optional)",-1)),N(y("input",{type:"tel",id:"subscriber-id",name:"subscriber-id",class:F(a.insuranceSmallClasses(i.subscriberId)),placeholder:"1234567890","onUpdate:modelValue":e[13]||(e[13]=m=>i.subscriberId=m),maxlength:"100",autocomplete:"none"},null,2),[[X,i.subscriberId]])])])],512),[[xt,i.showInsuranceInputs]])]),y("div",gp,[y("div",yp,[y("a",bp,[L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon-reverse"}),e[52]||(e[52]=y("span",null,"Personal information",-1))])]),N((w(),T("a",Ep,[e[53]||(e[53]=y("span",null,"Schedule your appointment",-1)),L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon"})])),[[f,a.onScheduleFromInsurance]])])]),_:1}),L(u,null,{default:re(()=>[y("header",null,[e[55]||(e[55]=y("h2",{class:"h1"},"Schedule your appointment",-1)),i.canScheduleNewPatientAppointments===!0?(w(),T("p",Cp,"Please use the interactive calendar to select your preferred appointment date and the specific time that works best for you.")):(w(),T("p",Sp,"Please let us know the preferred day(s) and time(s) for your appointment, and how you would like us to reach out to you."))]),i.canScheduleNewPatientAppointments===!0?(w(),T("div",wp,[L(d,{ref:"fullCalendar",options:i.calendarOptions},null,8,["options"]),y("div",Dp,[N(y("p",Tp,[e[56]||(e[56]=x("Click submit to schedule an appointment for ")),y("span",{class:"appointment-date",innerHTML:i.formattedDate},null,8,_p)],512),[[xt,i.appointmentMessage]]),N(y("p",{class:"error",innerHTML:i.responseError},null,8,Rp),[[xt,i.responseError]])])])):(w(),T("div",Mp,[y("div",Pp,[y("div",Np,[e[62]||(e[62]=y("p",{class:"modal-text"},"Preferred contact method",-1)),y("div",Ip,[N((w(),T("button",kp,e[57]||(e[57]=[x("Email")]))),[[f,a.selectedEmailContact]]),N((w(),T("button",xp,e[58]||(e[58]=[x("Call")]))),[[f,a.selectedCallContact]]),N((w(),T("button",Ap,e[59]||(e[59]=[x("Text")]))),[[f,a.selectedTextContact]])]),y("p",Hp,[e[60]||(e[60]=x("By submitting your phone number, you are opting in to receive text messages from us. Msg/data rates apply. Reply STOP to opt out. View our ")),y("a",{href:this.root.entity.organizationId!==149?this.root.entity.url+"/privacy-policy":"https://queenssmile.com/privacy-policy/",class:"cta text underline inline",target:"_blank"},"Privacy Policy",8,Op),e[61]||(e[61]=x("."))])])]),y("div",Lp,[y("div",Fp,[e[69]||(e[69]=y("p",{class:"modal-text"},"Preferred day",-1)),y("div",Bp,[N((w(),T("button",Vp,e[63]||(e[63]=[x("Any")]))),[[f,a.selectedAnyDay]]),y("div",Up,[N((w(),T("button",zp,e[64]||(e[64]=[x("Mo")]))),[[f,a.selectedMonday]]),N((w(),T("button",Wp,e[65]||(e[65]=[x("Tu")]))),[[f,a.selectedTuesday]]),N((w(),T("button",qp,e[66]||(e[66]=[x("We")]))),[[f,a.selectedWednesday]]),N((w(),T("button",Gp,e[67]||(e[67]=[x("Th")]))),[[f,a.selectedThursday]]),N((w(),T("button",Yp,e[68]||(e[68]=[x("Fr")]))),[[f,a.selectedFriday]])])])]),y("div",jp,[e[74]||(e[74]=y("p",{class:"modal-text"},"Preferred time",-1)),y("div",Zp,[N((w(),T("button",Xp,e[70]||(e[70]=[x("Any")]))),[[f,a.selectedAnyTime]]),N((w(),T("button",Kp,e[71]||(e[71]=[x("Early")]))),[[f,a.selectedEarly]]),N((w(),T("button",Jp,e[72]||(e[72]=[x("Afternoon")]))),[[f,a.selectedAfternoon]]),N((w(),T("button",Qp,e[73]||(e[73]=[x("Late")]))),[[f,a.selectedLate]])])])])])),y("div",{class:"cf-turnstile","data-sitekey":a.root.entity.turnstileKey},null,8,$p),y("div",eh,[y("div",th,[N((w(),T("a",rh,[L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon-reverse"}),e[75]||(e[75]=y("span",null,"Insurance information",-1))])),[[f,a.onInsuranceFromSchedule]])]),N((w(),T("a",nh,[e[76]||(e[76]=y("span",null,"Submit",-1)),L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon"})])),[[f,a.submitAppointmentExperience]])])]),_:1}),L(u,null,{default:re(()=>[y("header",null,[y("h2",{class:"h1",innerHTML:a.thankYouText},null,8,ih)]),y("div",ah,[y("div",oh,[L(l,{type:"icon",name:"icon-circle-check",class:"circle-check-icon"}),y("div",sh,[y("h3",lh,[i.firstName?(w(),T("span",{key:0,innerHTML:i.firstName},null,8,uh)):B("",!0),e[77]||(e[77]=x()),i.lastName?(w(),T("span",{key:1,innerHTML:i.lastName},null,8,ch)):B("",!0),i.newPatientReason?(w(),T("span",{key:2,innerHTML:"<br/>"+a.getReasonTypeOverwrite(i.newPatientReason)},null,8,dh)):i.existingPatientReason&&a.root.entity.organizationId===149?(w(),T("span",{key:3,innerHTML:"<br/>"+i.existingPatientReason},null,8,fh)):B("",!0),i.appointmentSet?(w(),T("span",{key:4,innerHTML:"<br/>"+i.appointmentSet},null,8,ph)):B("",!0)]),i.selectedLocation.patient_registration_url?(w(),T("p",hh,"Please complete the patient registration paperwork prior to your appointment.")):B("",!0),i.selectedLocation.patient_registration_url?(w(),kt(s,{key:1,href:i.selectedLocation.patient_registration_url,class:"cta secondary with-circle-next",rel:"noopener",target:"_blank"},{default:re(()=>[e[78]||(e[78]=y("span",null,"Complete paperwork",-1)),L(l,{type:"icon",name:"icon-circle-arrow",class:"circle-arrow-icon"})]),_:1},8,["href"])):B("",!0)])]),y("div",vh,[y("h3",{class:F("h2 "+(a.root.entity.organizationId!==149?"tertiary":"white")),innerHTML:i.selectedLocation.name},null,10,mh),y("address",{class:F("h2 "+(a.root.entity.organizationId!==149?"tertiary":"white")),innerHTML:i.selectedLocation.address},null,10,gh),L(s,{href:i.selectedLocation.directions_url,class:F("cta text "+(a.root.entity.organizationId!==149?"tertiary":"white")),rel:"noopener",target:"_blank"},{default:re(()=>e[79]||(e[79]=[x("Get directions")])),_:1},8,["href","class"])])]),e[80]||(e[80]=y("div",{class:"bottom-buttons"},null,-1))]),_:1})]),_:1},8,["allowTouchMove","autoHeight","autoplay","breakpoints","initialSlide","loop","navigation","pagination","slidesPerView","spaceBetween","onSwiper","onSlideChange"])):B("",!0)])])])}const Ch=Ra(Zd,[["render",yh],["__scopeId","data-v-6c9998e4"]]);export{Ch as default};