2 lines
253 KiB
JavaScript
2 lines
253 KiB
JavaScript
import{M as Vi,_ as at,r as F,b5 as Ar,w as ve,O as K,P as ae,Q as M,aF as On,aG as Nn,aw as Ye,b6 as Pn,a1 as je,H as E,aE as Tt,T as Hn,S as fe,aH as Ce,b7 as zl,Y as Wl,Z as Bn,a2 as Fl,U as Vn,$ as Li,b8 as ji,p as X,a6 as Wt,a7 as Ln,ai as Ui,B as J,am as zi,aX as Wi,aN as jn,c as N,s as le,e as Fi,F as ne,au as Gl,a5 as mn,C as Ze,o as Un,J as Gi,E as ie,a0 as Yl,b as kt,b9 as Ql,i as Yi,ba as ql,a9 as Qi,z as $l,bb as Zl,bc as Xl,ac as Jl,ae as Kl,af as ea,bd as ta,be as na,ag as ra,az as zn,a8 as ia,an as sa,aq as la,ar as aa,bf as oa,bg as ca,as as ua,a_ as da,I as fa,R as Sr,L as ha,aO as ga,aL as Xe,bh as ot,bi as Dr,b2 as ct,bj as pa,bk as va,aP as ma,aa as ya,bl as qi,bm as Dt,bn as ba,a as Ea,N as Aa,bo as Sa,aW as Da,X as gt,W as Kt,aV as _a}from"./index-53e1788c.js";import{V as Wn,a as wa,u as $i,m as Zi,b as Xi,c as Ca,d as yn}from"./group-4e814be0.js";import{V as $,b as bn,d as Ra,c as Ta,u as _r,a as ka}from"./ssrBoot-915c1248.js";const Ia=Vi(),Ma={setup(){const t=F([]),e=F(!1),n=Pn.slice(0,-1),r=i=>i.split(" ").slice(0,10).join(" ");return Ar("api/navigation/news/",t),ve(()=>Ia.cod2user,(i,s)=>{i&&Ar("api/navigation/news/",t)},{deep:!0}),{newss:t,show:e,burl:n,limitText:r}}};function xa(t,e,n,r,i,s){return K(),ae(Wn,{class:"py-1 newsVH bg-transparent overflow-auto"},{default:M(()=>[(K(!0),On(Ye,null,Nn(r.newss,(l,a)=>(K(),ae(je,{class:"mx-auto mb-0",key:a},{default:M(()=>[E(Tt,{src:`${r.burl}${l.link}`,height:"164px",cover:""},null,8,["src"]),E(Hn,null,{default:M(()=>[fe(Ce(l.title),1)]),_:2},1024),E(zl,null,{default:M(()=>[fe(Ce(r.limitText(l.text)),1)]),_:2},1024),E(Wl,null,{default:M(()=>[E($,{color:"teal-accent-4",variant:"text"},{default:M(()=>[fe(Ce(l.author.fio),1)]),_:2},1024),E(bn),E($,{icon:l.show?"mdi-chevron-up":"mdi-chevron-down",onClick:o=>l.show=!l.show},null,8,["icon","onClick"])]),_:2},1024),E(wa,null,{default:M(()=>[Bn(Fl("div",null,[E(Ra),E(Vn,null,{default:M(()=>[fe(Ce(l.text),1)]),_:2},1024)],512),[[Li,l.show]])]),_:2},1024)]),_:2},1024))),128))]),_:1})}const Oa=at(Ma,[["render",xa]]);const Na=t=>{const{touchstartX:e,touchendX:n,touchstartY:r,touchendY:i}=t,s=.5,l=16;t.offsetX=n-e,t.offsetY=i-r,Math.abs(t.offsetY)<s*Math.abs(t.offsetX)&&(t.left&&n<e-l&&t.left(t),t.right&&n>e+l&&t.right(t)),Math.abs(t.offsetX)<s*Math.abs(t.offsetY)&&(t.up&&i<r-l&&t.up(t),t.down&&i>r+l&&t.down(t))};function Pa(t,e){var r;const n=t.changedTouches[0];e.touchstartX=n.clientX,e.touchstartY=n.clientY,(r=e.start)==null||r.call(e,{originalEvent:t,...e})}function Ha(t,e){var r;const n=t.changedTouches[0];e.touchendX=n.clientX,e.touchendY=n.clientY,(r=e.end)==null||r.call(e,{originalEvent:t,...e}),Na(e)}function Ba(t,e){var r;const n=t.changedTouches[0];e.touchmoveX=n.clientX,e.touchmoveY=n.clientY,(r=e.move)==null||r.call(e,{originalEvent:t,...e})}function Va(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:n=>Pa(n,e),touchend:n=>Ha(n,e),touchmove:n=>Ba(n,e)}}function La(t,e){var a;const n=e.value,r=n!=null&&n.parent?t.parentElement:t,i=(n==null?void 0:n.options)??{passive:!0},s=(a=e.instance)==null?void 0:a.$.uid;if(!r||!s)return;const l=Va(e.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[s]=l,ji(l).forEach(o=>{r.addEventListener(o,l[o],i)})}function ja(t,e){var s,l;const n=(s=e.value)!=null&&s.parent?t.parentElement:t,r=(l=e.instance)==null?void 0:l.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const i=n._touchHandlers[r];ji(i).forEach(a=>{n.removeEventListener(a,i[a])}),delete n._touchHandlers[r]}const Ji={mounted:La,unmounted:ja},Ki=Symbol.for("vuetify:v-window"),es=Symbol.for("vuetify:v-window-group"),ts=X({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||t==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{default:"force"},...Wt(),...Ln(),...Ui()},"VWindow"),wr=J()({name:"VWindow",directives:{Touch:Ji},props:ts(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{themeClasses:r}=zi(t),{isRtl:i}=Wi(),{t:s}=jn(),l=$i(t,es),a=F(),o=N(()=>i.value?!t.reverse:t.reverse),u=le(!1),c=N(()=>{const D=t.direction==="vertical"?"y":"x",k=(o.value?!u.value:u.value)?"-reverse":"";return`v-window-${D}${k}-transition`}),f=le(0),h=F(void 0),d=N(()=>l.items.value.findIndex(D=>l.selected.value.includes(D.id)));ve(d,(D,R)=>{const k=l.items.value.length,b=k-1;k<=2?u.value=D<R:D===b&&R===0?u.value=!0:D===0&&R===b?u.value=!1:u.value=D<R}),Fi(Ki,{transition:c,isReversed:u,transitionCount:f,transitionHeight:h,rootRef:a});const p=N(()=>t.continuous||d.value!==0),y=N(()=>t.continuous||d.value!==l.items.value.length-1);function m(){p.value&&l.prev()}function A(){y.value&&l.next()}const _=N(()=>{const D=[],R={icon:i.value?t.nextIcon:t.prevIcon,class:`v-window__${o.value?"right":"left"}`,onClick:l.prev,ariaLabel:s("$vuetify.carousel.prev")};D.push(p.value?n.prev?n.prev({props:R}):E($,R,null):E("div",null,null));const k={icon:i.value?t.prevIcon:t.nextIcon,class:`v-window__${o.value?"left":"right"}`,onClick:l.next,ariaLabel:s("$vuetify.carousel.next")};return D.push(y.value?n.next?n.next({props:k}):E($,k,null):E("div",null,null)),D}),w=N(()=>t.touch===!1?t.touch:{...{left:()=>{o.value?m():A()},right:()=>{o.value?A():m()},start:R=>{let{originalEvent:k}=R;k.stopPropagation()}},...t.touch===!0?{}:t.touch});return ne(()=>Bn(E(t.tag,{ref:a,class:["v-window",{"v-window--show-arrows-on-hover":t.showArrows==="hover"},r.value,t.class],style:t.style},{default:()=>{var D,R;return[E("div",{class:"v-window__container",style:{height:h.value}},[(D=n.default)==null?void 0:D.call(n,{group:l}),t.showArrows!==!1&&E("div",{class:"v-window__controls"},[_.value])]),(R=n.additional)==null?void 0:R.call(n,{group:l})]}}),[[Gl("touch"),w.value]])),{group:l}}}),Ua=X({color:String,cycle:Boolean,delimiterIcon:{type:mn,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:t=>Number(t)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...ts({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),za=J()({name:"VCarousel",props:Ua(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=Ze(t,"modelValue"),{t:i}=jn(),s=F();let l=-1;ve(r,o),ve(()=>t.interval,o),ve(()=>t.cycle,u=>{u?o():window.clearTimeout(l)}),Un(a);function a(){!t.cycle||!s.value||(l=window.setTimeout(s.value.group.next,+t.interval>0?+t.interval:6e3))}function o(){window.clearTimeout(l),window.requestAnimationFrame(a)}return ne(()=>{const[u]=wr.filterProps(t);return E(wr,ie({ref:s},u,{modelValue:r.value,"onUpdate:modelValue":c=>r.value=c,class:["v-carousel",{"v-carousel--hide-delimiter-background":t.hideDelimiterBackground,"v-carousel--vertical-delimiters":t.verticalDelimiters},t.class],style:[{height:kt(t.height)},t.style]}),{default:n.default,additional:c=>{let{group:f}=c;return E(Ye,null,[!t.hideDelimiters&&E("div",{class:"v-carousel__controls",style:{left:t.verticalDelimiters==="left"&&t.verticalDelimiters?0:"auto",right:t.verticalDelimiters==="right"?0:"auto"}},[f.items.value.length>0&&E(Gi,{defaults:{VBtn:{color:t.color,icon:t.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[f.items.value.map((h,d)=>{const p={id:`carousel-item-${h.id}`,"aria-label":i("$vuetify.carousel.ariaLabel.delimiter",d+1,f.items.value.length),class:[f.isSelected(h.id)&&"v-btn--active"],onClick:()=>f.select(h.id,!0)};return n.item?n.item({props:p,item:h}):E($,ie(h,p),null)})]})]),t.progress&&E(Yl,{class:"v-carousel__progress",color:typeof t.progress=="string"?t.progress:void 0,modelValue:(f.getItemIndex(r.value)+1)/f.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),ns=X({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Wt(),...Zi(),...Ql()},"VWindowItem"),Cr=J()({name:"VWindowItem",directives:{Touch:Ji},props:ns(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const r=Yi(Ki),i=Xi(t,es),{isBooted:s}=Ta();if(!r||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const l=le(!1),a=N(()=>s.value&&(r.isReversed.value?t.reverseTransition!==!1:t.transition!==!1));function o(){!l.value||!r||(l.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){var p;l.value||!r||(l.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=kt((p=r.rootRef.value)==null?void 0:p.clientHeight)),r.transitionCount.value+=1)}function c(){o()}function f(p){l.value&&$l(()=>{!a.value||!l.value||!r||(r.transitionHeight.value=kt(p.clientHeight))})}const h=N(()=>{const p=r.isReversed.value?t.reverseTransition:t.transition;return a.value?{name:typeof p!="string"?r.transition.value:p,onBeforeEnter:u,onAfterEnter:o,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:o,onLeaveCancelled:c,onEnter:f}:!1}),{hasContent:d}=ql(t,i.isSelected);return ne(()=>E(Qi,{transition:h.value,disabled:!s.value},{default:()=>{var p;return[Bn(E("div",{class:["v-window-item",i.selectedClass.value,t.class],style:t.style},[d.value&&((p=n.default)==null?void 0:p.call(n))]),[[Li,i.isSelected.value]])]}})),{}}}),Wa=X({...Zl(),...ns()},"VCarouselItem"),Fa=J()({name:"VCarouselItem",inheritAttrs:!1,props:Wa(),setup(t,e){let{slots:n,attrs:r}=e;ne(()=>{const[i]=Tt.filterProps(t),[s]=Cr.filterProps(t);return E(Cr,ie({class:"v-carousel-item"},s),{default:()=>[E(Tt,ie(r,i),n)]})})}}),Ga={setup(){const t=Pn.slice(0,-1),e=F([{link:""}]);return Xl("api/navigation/carousels/",e),{burl:t,carous:e}}};function Ya(t,e,n,r,i,s){return K(),ae(za,{cover:"",height:"500","hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white"},{default:M(()=>[(K(!0),On(Ye,null,Nn(r.carous,(l,a)=>(K(),ae(Fa,{key:a,src:`${r.burl}${l.link}`,cover:"",eager:""},{default:M(()=>[E(Wn,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:M(()=>[E(je,{class:"bgCard h-100 d-flex flex-column"},{default:M(()=>[E(Hn,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-6"},{default:M(()=>[fe(Ce(l.title),1)]),_:2},1024),E(Vn,{class:"ml-2 mb-2 text-black w-50 flex-grow-0 py-3 text-text_carous text-h5 bgText overflow-auto font-weight-medium"},{default:M(()=>[fe(Ce(l.text),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1})}const Qa=at(Ga,[["render",Ya]]);const rs=X({color:String,...Jl(),...Wt(),...Kl(),...ea(),...ta(),...na(),...ra(),...Ln(),...Ui()},"VSheet"),En=J()({name:"VSheet",props:rs(),setup(t,e){let{slots:n}=e;const{themeClasses:r}=zi(t),{backgroundColorClasses:i,backgroundColorStyles:s}=zn(ia(t,"color")),{borderClasses:l}=sa(t),{dimensionStyles:a}=la(t),{elevationClasses:o}=aa(t),{locationStyles:u}=oa(t),{positionClasses:c}=ca(t),{roundedClasses:f}=ua(t);return ne(()=>E(t.tag,{class:["v-sheet",r.value,i.value,l.value,o.value,c.value,f.value,t.class],style:[s.value,a.value,u.value,t.style]},n)),{}}});function Rr(t){const n=Math.abs(t);return Math.sign(t)*(n/((1/.501-2)*(1-n)+1))}function Tr(t){let{selectedElement:e,containerSize:n,contentSize:r,isRtl:i,currentScrollOffset:s,isHorizontal:l}=t;const a=l?e.clientWidth:e.clientHeight,o=l?e.offsetLeft:e.offsetTop,u=i&&l?r-o-a:o,c=n+s,f=a+u,h=a*.4;return u<=s?s=Math.max(u-h,0):c<=f&&(s=Math.min(s-(c-f-h),r-n)),s}function qa(t){let{selectedElement:e,containerSize:n,contentSize:r,isRtl:i,isHorizontal:s}=t;const l=s?e.clientWidth:e.clientHeight,a=s?e.offsetLeft:e.offsetTop,o=i&&s?r-a-l/2-n/2:a+l/2-n/2;return Math.min(r-n,Math.max(0,o))}const is=Symbol.for("vuetify:v-slide-group"),$a=X({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:is},nextIcon:{type:mn,default:"$next"},prevIcon:{type:mn,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...Wt(),...Ln(),...Ca({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Za=J()({name:"VSlideGroup",props:$a(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isRtl:r}=Wi(),{mobile:i}=da(),s=$i(t,t.symbol),l=le(!1),a=le(0),o=le(0),u=le(0),c=N(()=>t.direction==="horizontal"),{resizeRef:f,contentRect:h}=_r(),{resizeRef:d,contentRect:p}=_r(),y=N(()=>s.selected.value.length?s.items.value.findIndex(T=>T.id===s.selected.value[0]):-1),m=N(()=>s.selected.value.length?s.items.value.findIndex(T=>T.id===s.selected.value[s.selected.value.length-1]):-1);if(fa){let T=-1;ve(()=>[s.selected.value,h.value,p.value,c.value],()=>{cancelAnimationFrame(T),T=requestAnimationFrame(()=>{if(h.value&&p.value){const P=c.value?"width":"height";o.value=h.value[P],u.value=p.value[P],l.value=o.value+1<u.value}if(y.value>=0&&d.value){const P=d.value.children[m.value];y.value===0||!l.value?a.value=0:t.centerActive?a.value=qa({selectedElement:P,containerSize:o.value,contentSize:u.value,isRtl:r.value,isHorizontal:c.value}):l.value&&(a.value=Tr({selectedElement:P,containerSize:o.value,contentSize:u.value,isRtl:r.value,currentScrollOffset:a.value,isHorizontal:c.value}))}})})}const A=le(!1);let _=0,w=0;function D(T){const P=c.value?"clientX":"clientY";w=(r.value&&c.value?-1:1)*a.value,_=T.touches[0][P],A.value=!0}function R(T){if(!l.value)return;const P=c.value?"clientX":"clientY",ee=r.value&&c.value?-1:1;a.value=ee*(w+_-T.touches[0][P])}function k(T){const P=u.value-o.value;a.value<0||!l.value?a.value=0:a.value>=P&&(a.value=P),A.value=!1}function b(){f.value&&(f.value[c.value?"scrollLeft":"scrollTop"]=0)}const S=le(!1);function I(T){if(S.value=!0,!(!l.value||!d.value)){for(const P of T.composedPath())for(const ee of d.value.children)if(ee===P){a.value=Tr({selectedElement:ee,containerSize:o.value,contentSize:u.value,isRtl:r.value,currentScrollOffset:a.value,isHorizontal:c.value});return}}}function j(T){S.value=!1}function z(T){var P;!S.value&&!(T.relatedTarget&&((P=d.value)!=null&&P.contains(T.relatedTarget)))&&H()}function W(T){d.value&&(c.value?T.key==="ArrowRight"?H(r.value?"prev":"next"):T.key==="ArrowLeft"&&H(r.value?"next":"prev"):T.key==="ArrowDown"?H("next"):T.key==="ArrowUp"&&H("prev"),T.key==="Home"?H("first"):T.key==="End"&&H("last"))}function H(T){var P,ee,yr,br,Er;if(d.value)if(!T)(P=ha(d.value)[0])==null||P.focus();else if(T==="next"){const Be=(ee=d.value.querySelector(":focus"))==null?void 0:ee.nextElementSibling;Be?Be.focus():H("first")}else if(T==="prev"){const Be=(yr=d.value.querySelector(":focus"))==null?void 0:yr.previousElementSibling;Be?Be.focus():H("last")}else T==="first"?(br=d.value.firstElementChild)==null||br.focus():T==="last"&&((Er=d.value.lastElementChild)==null||Er.focus())}function de(T){const P=a.value+(T==="prev"?-1:1)*o.value;a.value=ga(P,0,u.value-o.value)}const $e=N(()=>{let T=a.value>u.value-o.value?-(u.value-o.value)+Rr(u.value-o.value-a.value):-a.value;a.value<=0&&(T=Rr(-a.value));const P=r.value&&c.value?-1:1;return{transform:`translate${c.value?"X":"Y"}(${P*T}px)`,transition:A.value?"none":"",willChange:A.value?"transform":""}}),Se=N(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),He=N(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!i.value;case!0:return l.value||Math.abs(a.value)>0;case"mobile":return i.value||l.value||Math.abs(a.value)>0;default:return!i.value&&(l.value||Math.abs(a.value)>0)}}),Jt=N(()=>Math.abs(a.value)>0),Ul=N(()=>u.value>Math.abs(a.value)+o.value);return ne(()=>E(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!c.value,"v-slide-group--has-affixes":He.value,"v-slide-group--is-overflowing":l.value},t.class],style:t.style,tabindex:S.value||s.selected.value.length?-1:0,onFocus:z},{default:()=>{var T,P,ee;return[He.value&&E("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!Jt.value}],onClick:()=>de("prev")},[((T=n.prev)==null?void 0:T.call(n,Se.value))??E(yn,null,{default:()=>[E(Sr,{icon:r.value?t.nextIcon:t.prevIcon},null)]})]),E("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:b},[E("div",{ref:d,class:"v-slide-group__content",style:$e.value,onTouchstartPassive:D,onTouchmovePassive:R,onTouchendPassive:k,onFocusin:I,onFocusout:j,onKeydown:W},[(P=n.default)==null?void 0:P.call(n,Se.value)])]),He.value&&E("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Ul.value}],onClick:()=>de("next")},[((ee=n.next)==null?void 0:ee.call(n,Se.value))??E(yn,null,{default:()=>[E(Sr,{icon:r.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:s.selected,scrollTo:de,scrollOffset:a,focus:H}}}),Xa=J()({name:"VSlideGroupItem",props:Zi(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const r=Xi(t,is);return()=>{var i;return(i=n.default)==null?void 0:i.call(n,{isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}}}),Ja={props:{digitalData:{type:Object,default:{}}},setup(){const t=Pn.slice(0,-1);return{model:F(!1),burl:t}}};function Ka(t,e,n,r,i,s){const l=Xe("vue3-autocounter");return K(),ae(je,{class:"d-flex ml-3"},{default:M(()=>[E(En,{class:"mx-auto",elevation:"0","max-width":"813"},{default:M(()=>[E(Za,{modelValue:r.model,"onUpdate:modelValue":e[0]||(e[0]=a=>r.model=a),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:M(()=>[(K(!0),On(Ye,null,Nn(n.digitalData,a=>(K(),ae(Xa,{key:a},{default:M(()=>[E(je,{class:"ma-2 mt-4 d-flex flex-column",height:"100",width:"169",elevation:"0"},{default:M(()=>[E(Tt,{height:"100",src:`${r.burl}${a.img}`,cover:"",class:"text-white"},{default:M(()=>[E(je,{class:"h-100 text-center g text-numeral"},{default:M(()=>[E(Hn,{class:"statstyle my-2 py-0 text-overline font-weight-bold"},{default:M(()=>[fe(Ce(a.status),1)]),_:2},1024),E(Vn,{class:"numstyle mt-4 py-0 font-weight-bold"},{default:M(()=>[E(l,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(a.num),duration:1},null,8,["endAmount"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})}const eo=at(Ja,[["render",Ka]]);const Fn=X({modelValue:{type:null,default:()=>[]},displayDate:{type:null,default:null},inputMode:{type:String,default:"calendar"},viewMode:{type:String,default:"month"},format:String},"date"),Gn={"update:modelValue":t=>!0,"update:displayDate":t=>!0,"update:focused":t=>!0,"update:inputMode":t=>!0,"update:viewMode":t=>!0};function to(t,e){const n=ot(),r=Ze(t,"modelValue",[],o=>o==null?[]:Dr(o).filter(c=>!!c).map(n.date),o=>{const u=Dr(o),c=t.format?u.map(f=>n.format(f,t.format)):u;return e?c:c[0]}),i=Ze(t,"inputMode"),s=Ze(t,"viewMode"),l=Ze(t,"displayDate",r.value.length?r.value[0]:n.date());function a(o,u){const c=n.date(o);return n.isValid(c)?c:u}return{model:r,adapter:n,inputMode:i,viewMode:s,displayDate:l,parseKeyboardDate:a}}const ss=X({nextIcon:{type:[String],default:"$next"},prevIcon:{type:[String],default:"$prev"},expandIcon:{type:[String],default:"$expand"},collapseIcon:{type:[String],default:"$collapse"},range:{default:!1,type:[Boolean,String],validator:t=>t===!1||["start","end"].includes(t)},...ct(Fn(),["modelValue","inputMode"])},"VDatePickerControls"),kr=J()({name:"VDatePickerControls",props:ss(),emits:{...ct(Gn,["update:modelValue","update:inputMode"])},setup(t,e){let{emit:n}=e;const r=ot(),i=N(()=>{const s=t.range==="end"?r.addMonths(t.displayDate,1):t.displayDate;return r.format(s,"monthAndYear")});return ne(()=>{const s=E($,{variant:"text",icon:t.prevIcon,onClick:()=>n("update:displayDate",r.addMonths(t.displayDate,-1))},null),l=E($,{variant:"text",icon:t.nextIcon,onClick:()=>n("update:displayDate",r.addMonths(t.displayDate,1))},null);return E("div",{class:"v-date-picker-controls"},[t.viewMode==="month"&&t.range==="start"&&s,!!t.range&&E(bn,{key:"range-spacer"},null),E("div",{class:"v-date-picker-controls__date"},[i.value]),E($,{key:"expand-btn",variant:"text",icon:t.viewMode==="month"?t.expandIcon:t.collapseIcon,onClick:()=>n("update:viewMode",t.viewMode==="month"?"year":"month")},null),E(bn,null,null),t.viewMode==="month"&&!t.range&&E("div",{class:"v-date-picker-controls__month",key:"month-buttons"},[s,l]),t.viewMode==="month"&&t.range==="end"&&l])}),{}}});const ls=Symbol.for("vuetify:date-picker");function no(t){const e=F(),n=F(),r=F(!1),i=F(null),s=F(!1);Fi(ls,{hoverDate:e,hoverMonth:n,isDragging:r,dragHandle:i,hasScrolled:s});const{model:l,displayDate:a,viewMode:o,inputMode:u}=to(t,!!t.multiple);return{hoverDate:e,hoverMonth:n,isDragging:r,dragHandle:i,hasScrolled:s,model:l,displayDate:a,viewMode:o,inputMode:u}}function ro(){const t=Yi(ls);if(!t)throw new Error("foo");return t}const as=X({color:String,showAdjacentMonths:Boolean,hideWeekdays:Boolean,showWeek:Boolean,hoverDate:null,multiple:Boolean,side:{type:String},...ct(Fn(),["inputMode","viewMode"])},"VDatePickerMonth"),Ir=J()({name:"VDatePickerMonth",props:as({color:"surface-variant"}),emits:{...ct(Gn,["update:inputMode","update:viewMode"]),"update:hoverDate":t=>!0},setup(t,e){let{emit:n,slots:r}=e;const i=ot(),{isDragging:s,dragHandle:l,hasScrolled:a}=ro(),o=N(()=>t.displayDate),u=(b,S)=>{const{isSameDay:I,getDiff:j}=i,[z,W]=S;if(I(z,W))return j(b,z,"days")>0?W:z;const H=Math.abs(j(b,z)),de=Math.abs(j(b,W));return H<de?z:W},c=N(()=>{const b=i.getWeekArray(o.value),S=b.flat(),I=6*7;if(S.length<I&&t.showAdjacentMonths){const j=S[S.length-1];let z=[];for(let W=1;W<=I-S.length;W++)z.push(i.addDays(j,W)),W%7===0&&(b.push(z),z=[])}return b}),f=N(()=>{const b=t.modelValue.filter(H=>!!H),S=b.length>1,I=c.value.flat(),j=i.date(),z=b[0],W=b[1];return I.map((H,de)=>{const $e=z&&i.isSameDay(H,z),Se=W&&i.isSameDay(H,W),He=!i.isSameMonth(H,o.value),Jt=b.length===2&&i.isSameDay(z,W);return{date:H,isoDate:pa(i,H),formatted:i.format(H,"keyboardDate"),year:i.getYear(H),month:i.getMonth(H),isWeekStart:de%7===0,isWeekEnd:de%7===6,isSelected:$e||Se,isStart:$e,isEnd:Se,isToday:i.isSameDay(H,j),isAdjacent:He,isHidden:He&&!t.showAdjacentMonths,inRange:S&&!Jt&&($e||Se||b.length===2&&i.isWithinRange(H,b)),isHovered:!1,inHover:!1,localized:i.format(H,"dayOfMonth")}})}),h=N(()=>c.value.map(b=>va(i,b[0]))),{backgroundColorClasses:d,backgroundColorStyles:p}=zn(t,"color");function y(b){let S=t.modelValue.slice();if(t.multiple)if(s.value&&l.value!=null){const I=(l.value+1)%2;i[I===0?"isBefore":"isAfter"](b,S[I])?(S[l.value]=S[I],S[I]=b,l.value=I):S[l.value]=b}else if(S.find(I=>i.isSameDay(I,b)))S=S.filter(I=>!i.isSameDay(I,b));else if(S.length===2){let I;if(!t.side||i.isSameMonth(S[0],S[1])){const j=u(b,S);I=S.indexOf(j)}else I=t.side==="start"?0:t.side==="end"?1:void 0;S=S.map((j,z)=>z===I?b:j)}else S[0]&&i.isBefore(S[0],b)?S=[S[0],b]:S=[b,S[0]];else S=[b];n("update:modelValue",S.filter(I=>!!I))}const m=F();function A(b){return!b||b===m.value?null:"vDate"in b.dataset?i.date(b.dataset.vDate):A(b.parentElement)}function _(b){var z,W;const S="changedTouches"in b?(z=b.changedTouches[0])==null?void 0:z.clientX:b.clientX,I="changedTouches"in b?(W=b.changedTouches[0])==null?void 0:W.clientY:b.clientY,j=document.elementFromPoint(S,I);return A(j)}let w=!1;function D(b){a.value=!1;const S=_(b);if(!S)return;const I=t.modelValue.findIndex(j=>i.isEqual(j,S));I>=0&&(w=!0,l.value=I,window.addEventListener("touchmove",R,{passive:!1}),window.addEventListener("mousemove",R,{passive:!1}),b.preventDefault()),window.addEventListener("touchend",k,{passive:!1}),window.addEventListener("mouseup",k,{passive:!1})}function R(b){if(!w)return;b.preventDefault(),s.value=!0;const S=_(b);S&&y(S)}function k(b){b.cancelable&&b.preventDefault(),window.removeEventListener("touchmove",R),window.removeEventListener("mousemove",R),window.removeEventListener("touchend",k),window.removeEventListener("mouseup",k);const S=_(b);S&&(a.value||y(S),s.value=!1,l.value=null,w=!1)}return()=>E("div",{class:"v-date-picker-month"},[t.showWeek&&E("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!t.hideWeekdays&&E("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[fe(" ")]),h.value.map(b=>E("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[b]))]),E("div",{ref:m,class:"v-date-picker-month__days",onMousedown:D,onTouchstart:D},[!t.hideWeekdays&&i.getWeekdays().map(b=>E("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[b.charAt(0)])),f.value.map((b,S)=>E("div",{class:["v-date-picker-month__day",{"v-date-picker-month__day--selected":b.isSelected,"v-date-picker-month__day--start":b.isStart,"v-date-picker-month__day--end":b.isEnd,"v-date-picker-month__day--adjacent":b.isAdjacent,"v-date-picker-month__day--hide-adjacent":b.isHidden,"v-date-picker-month__day--week-start":b.isWeekStart,"v-date-picker-month__day--week-end":b.isWeekEnd,"v-date-picker-month__day--hovered":b.isHovered}],"data-v-date":b.isHidden?void 0:b.isoDate},[b.inRange&&E("div",{key:"in-range",class:["v-date-picker-month__day--range",d.value],style:p.value},null),b.inHover&&!b.isStart&&!b.isEnd&&!b.isHovered&&!b.inRange&&E("div",{key:"in-hover",class:"v-date-picker-month__day--hover"},null),(t.showAdjacentMonths||!b.isAdjacent)&&E($,{icon:!0,ripple:!1,variant:(b.isToday||b.isHovered)&&!b.isSelected?"outlined":"flat",active:b.isSelected,color:b.isSelected||b.isToday?t.color:b.isHovered?void 0:"transparent"},{default:()=>[b.localized]})]))])])}});const os=X({color:String,min:Number,max:Number,height:[String,Number],displayDate:null},"VDatePickerYears"),Mr=J()({name:"VDatePickerYears",props:os(),emits:{"update:displayDate":t=>!0,"update:viewMode":t=>!0},setup(t,e){let{emit:n}=e;const r=ot(),i=N(()=>r.getYear(t.displayDate??new Date)),s=N(()=>{const a=t.min??i.value-50-2,o=t.max??i.value+50;return ma(o-a,a)}),l=F();return Un(()=>{var a;(a=l.value)==null||a.$el.scrollIntoView({block:"center"})}),ne(()=>E("div",{class:"v-date-picker-years",style:{height:kt(t.height)}},[E("div",{class:"v-date-picker-years__content"},[s.value.map(a=>E($,{ref:a===i.value?l:void 0,variant:a===i.value?"flat":"text",rounded:"xl",active:a===i.value,color:a===i.value?t.color:void 0,onClick:()=>{n("update:displayDate",r.setYear(t.displayDate,a)),n("update:viewMode","month")}},{default:()=>[a]}))])])),{}}});const io=X({appendIcon:String,color:String,header:String,transition:String},"VDatePickerHeader"),so=J()({name:"VDatePickerHeader",props:io(),emits:{"click:append":()=>!0},setup(t,e){let{emit:n,slots:r}=e;const{backgroundColorClasses:i,backgroundColorStyles:s}=zn(t,"color");function l(){n("click:append")}return ne(()=>{const a=!!(r.default||t.header),o=!!(r.append||t.appendIcon);return E("div",{class:["v-date-picker-header",i.value],style:s.value},[r.prepend&&E("div",{key:"prepend",class:"v-date-picker-header__prepend"},[r.prepend()]),a&&E(Qi,{key:"content",name:t.transition},{default:()=>{var u;return[E("div",{key:t.header,class:"v-date-picker-header__content"},[((u=r.default)==null?void 0:u.call(r))??t.header])]}}),o&&E("div",{class:"v-date-picker-header__append"},[r.append?E(Gi,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VBtn:{icon:t.appendIcon,variant:"text"}}},{default:()=>{var u;return[(u=r.append)==null?void 0:u.call(r)]}}):E($,{key:"append-btn",icon:t.appendIcon,variant:"text",onClick:l},null)])])}),{}}});const lo=ya("v-picker-title"),cs=X({landscape:Boolean,title:String,...ct(rs(),["color"])},"VPicker"),xr=J()({name:"VPicker",props:cs(),setup(t,e){let{slots:n}=e;return ne(()=>{const[r]=En.filterProps(t),i=!!(t.title||n.title);return E(En,ie(r,{class:["v-picker",{"v-picker--landscape":t.landscape,"v-picker--with-actions":!!n.actions},t.class],style:t.style}),{default:()=>{var s;return[i&&E(lo,{key:"picker-title"},{default:()=>{var l;return[((l=n.title)==null?void 0:l.call(n))??t.title]}}),n.header&&E("div",{class:"v-picker__header"},[n.header()]),E("div",{class:"v-picker__body"},[(s=n.default)==null?void 0:s.call(n)]),n.actions&&E("div",{class:"v-picker__actions"},[n.actions()])]}})}),{}}}),ao=X({calendarIcon:{type:String,default:"$calendar"},keyboardIcon:{type:String,default:"$edit"},cancelText:{type:String,default:"$vuetify.datePicker.cancel"},okText:{type:String,default:"$vuetify.datePicker.ok"},inputText:{type:String,default:"$vuetify.datePicker.input.placeholder"},header:{type:String,default:"$vuetify.datePicker.header"},hideActions:Boolean,...Fn(),...ss(),...as(),...os(),...cs({title:"$vuetify.datePicker.title"})},"VDatePicker"),oo=J()({name:"VDatePicker",props:ao(),emits:{"click:cancel":()=>!0,"click:save":()=>!0,...Gn},setup(t,e){let{emit:n,slots:r}=e;const i=ot(),{t:s}=jn(),{model:l,displayDate:a,viewMode:o,inputMode:u}=no(t),c=F(!1),f=N(()=>l.value.length?i.format(l.value[0],"keyboardDate"):""),h=N(()=>s(t.title)),d=N(()=>l.value.length?i.format(l.value[0],"normalDateWithWeekday"):s(t.header)),p=N(()=>u.value==="calendar"?t.keyboardIcon:t.calendarIcon),y=N(()=>`date-picker-header${c.value?"-reverse":""}-transition`);ve(f,()=>{const{isValid:D,date:R}=i;l.value=D(f.value)?[R(f.value)]:[]}),ve(l,(D,R)=>{t.hideActions&&n("update:modelValue",D),D[0]&&R[0]&&(c.value=i.isBefore(D[0],R[0]))});function m(){n("click:cancel")}function A(){n("click:save"),n("update:modelValue",l.value)}function _(){u.value=u.value==="calendar"?"keyboard":"calendar"}const w=N(()=>({header:d.value,appendIcon:p.value,transition:y.value,"onClick:append":_}));return ne(()=>{const[D]=xr.filterProps(t),[R]=kr.filterProps(t),[k]=Ir.filterProps(t),[b]=Mr.filterProps(t);return E(xr,ie(D,{class:["v-date-picker",t.class],style:t.style,title:h.value,width:t.showWeek?408:360}),{header:()=>{var S;return((S=r.header)==null?void 0:S.call(r,w.value))??E(so,ie({key:"header"},w.value),null)},default:()=>u.value==="calendar"?E(Ye,null,[E(kr,ie(R,{displayDate:a.value,"onUpdate:displayDate":S=>a.value=S,viewMode:o.value,"onUpdate:viewMode":S=>o.value=S}),null),E(yn,{hideOnLeave:!0},{default:()=>[o.value==="month"?E(Ir,ie({key:"date-picker-month"},k,{modelValue:l.value,"onUpdate:modelValue":S=>l.value=S,displayDate:a.value,"onUpdate:displayDate":S=>a.value=S}),null):E(Mr,ie({key:"date-picker-years"},b,{displayDate:a.value,"onUpdate:displayDate":S=>a.value=S,viewMode:o.value,"onUpdate:viewMode":S=>o.value=S}),null)]})]):E("div",{class:"v-date-picker__input"},[E(ka,{modelValue:f.value,"onUpdate:modelValue":S=>f.value=S,label:s(t.inputText),placeholder:"dd/mm/yyyy"},null)]),actions:t.hideActions?void 0:()=>E("div",null,[E($,{variant:"text",color:t.color,onClick:m,text:s(t.cancelText)},null),E($,{variant:"text",color:t.color,onClick:A,text:s(t.okText)},null)])})}),{}}});var Ft,C,us,We,we,Or,ds,fs,It={},hs=[],co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function he(t,e){for(var n in e)t[n]=e[n];return t}function gs(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var r,i,s,l={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?Ft.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return _t(t,l,r,i,null)}function _t(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++us};return i==null&&C.vnode!=null&&C.vnode(s),s}function oe(){return{current:null}}function U(t){return t.children}function uo(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||Mt(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||Mt(t,s,e[s],n[s],r)}function Nr(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||co.test(e)?n:n+"px"}function Mt(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Nr(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Nr(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r||t.addEventListener(e,s?Hr:Pr,s):t.removeEventListener(e,s?Hr:Pr,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Pr(t){We=!0;try{return this.l[t.type+!1](C.event?C.event(t):t)}finally{We=!1}}function Hr(t){We=!0;try{return this.l[t.type+!0](C.event?C.event(t):t)}finally{We=!1}}function Z(t,e){this.props=t,this.context=e}function rt(t,e){if(e==null)return t.__?rt(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?rt(t):null}function ps(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return ps(t)}}function fo(t){We?setTimeout(t):ds(t)}function An(t){(!t.__d&&(t.__d=!0)&&we.push(t)&&!xt.__r++||Or!==C.debounceRendering)&&((Or=C.debounceRendering)||fo)(xt)}function xt(){var t,e,n,r,i,s,l,a;for(we.sort(function(o,u){return o.__v.__b-u.__v.__b});t=we.shift();)t.__d&&(e=we.length,r=void 0,i=void 0,l=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=he({},s)).__v=s.__v+1,Yn(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[l]:null,r,l??rt(s),s.__h),Es(r,s),s.__e!=l&&ps(s)),we.length>e&&we.sort(function(o,u){return o.__v.__b-u.__v.__b}));xt.__r=0}function vs(t,e,n,r,i,s,l,a,o,u){var c,f,h,d,p,y,m,A=r&&r.__k||hs,_=A.length;for(n.__k=[],c=0;c<e.length;c++)if((d=n.__k[c]=(d=e[c])==null||typeof d=="boolean"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?_t(null,d,null,null,d):Array.isArray(d)?_t(U,{children:d},null,null,null):d.__b>0?_t(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(h=A[c])===null||h&&d.key==h.key&&d.type===h.type)A[c]=void 0;else for(f=0;f<_;f++){if((h=A[f])&&d.key==h.key&&d.type===h.type){A[f]=void 0;break}h=null}Yn(t,d,h=h||It,i,s,l,a,o,u),p=d.__e,(f=d.ref)&&h.ref!=f&&(m||(m=[]),h.ref&&m.push(h.ref,null,d),m.push(f,d.__c||p,d)),p!=null?(y==null&&(y=p),typeof d.type=="function"&&d.__k===h.__k?d.__d=o=ms(d,o,t):o=ys(t,d,h,A,p,o),typeof n.type=="function"&&(n.__d=o)):o&&h.__e==o&&o.parentNode!=t&&(o=rt(h))}for(n.__e=y,c=_;c--;)A[c]!=null&&(typeof n.type=="function"&&A[c].__e!=null&&A[c].__e==n.__d&&(n.__d=bs(r).nextSibling),Ss(A[c],A[c]));if(m)for(c=0;c<m.length;c++)As(m[c],m[++c],m[++c])}function ms(t,e,n){for(var r,i=t.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=t,e=typeof r.type=="function"?ms(r,e,n):ys(n,r,r,i,r.__e,e));return e}function Ot(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Ot(n,e)}):e.push(t)),e}function ys(t,e,n,r,i,s){var l,a,o;if(e.__d!==void 0)l=e.__d,e.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(i),l=null;else{for(a=s,o=0;(a=a.nextSibling)&&o<r.length;o+=1)if(a==i)break e;t.insertBefore(i,s),l=s}return l!==void 0?l:i.nextSibling}function bs(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=bs(n)))return r}return null}function Yn(t,e,n,r,i,s,l,a,o){var u,c,f,h,d,p,y,m,A,_,w,D,R,k,b,S=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(u=C.__b)&&u(e);try{e:if(typeof S=="function"){if(m=e.props,A=(u=S.contextType)&&r[u.__c],_=u?A?A.props.value:u.__:r,n.__c?y=(c=e.__c=n.__c).__=c.__E:("prototype"in S&&S.prototype.render?e.__c=c=new S(m,_):(e.__c=c=new Z(m,_),c.constructor=S,c.render=go),A&&A.sub(c),c.props=m,c.state||(c.state={}),c.context=_,c.__n=r,f=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),S.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=he({},c.__s)),he(c.__s,S.getDerivedStateFromProps(m,c.__s))),h=c.props,d=c.state,c.__v=e,f)S.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S.getDerivedStateFromProps==null&&m!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,_),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,_)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(I){I&&(I.__=e)}),w=0;w<c._sb.length;w++)c.__h.push(c._sb[w]);c._sb=[],c.__h.length&&l.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,_),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,d,p)})}if(c.context=_,c.props=m,c.__P=t,D=C.__r,R=0,"prototype"in S&&S.prototype.render){for(c.state=c.__s,c.__d=!1,D&&D(e),u=c.render(c.props,c.state,c.context),k=0;k<c._sb.length;k++)c.__h.push(c._sb[k]);c._sb=[]}else do c.__d=!1,D&&D(e),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++R<25);c.state=c.__s,c.getChildContext!=null&&(r=he(he({},r),c.getChildContext())),f||c.getSnapshotBeforeUpdate==null||(p=c.getSnapshotBeforeUpdate(h,d)),b=u!=null&&u.type===U&&u.key==null?u.props.children:u,vs(t,Array.isArray(b)?b:[b],e,n,r,i,s,l,a,o),c.base=e.__e,e.__h=null,c.__h.length&&l.push(c),y&&(c.__E=c.__=null),c.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=ho(n.__e,e,n,r,i,s,l,o);(u=C.diffed)&&u(e)}catch(I){e.__v=null,(o||s!=null)&&(e.__e=a,e.__h=!!o,s[s.indexOf(a)]=null),C.__e(I,e,n)}}function Es(t,e){C.__c&&C.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){C.__e(r,n.__v)}})}function ho(t,e,n,r,i,s,l,a){var o,u,c,f=n.props,h=e.props,d=e.type,p=0;if(d==="svg"&&(i=!0),s!=null){for(;p<s.length;p++)if((o=s[p])&&"setAttribute"in o==!!d&&(d?o.localName===d:o.nodeType===3)){t=o,s[p]=null;break}}if(t==null){if(d===null)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),s=null,a=!1}if(d===null)f===h||a&&t.data===h||(t.data=h);else{if(s=s&&Ft.call(t.childNodes),u=(f=n.props||It).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!a){if(s!=null)for(f={},p=0;p<t.attributes.length;p++)f[t.attributes[p].name]=t.attributes[p].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(uo(t,h,f,i,a),c)e.__k=[];else if(p=e.props.children,vs(t,Array.isArray(p)?p:[p],e,n,r,i&&d!=="foreignObject",s,l,s?s[0]:n.__k&&rt(n,0),a),s!=null)for(p=s.length;p--;)s[p]!=null&&gs(s[p]);a||("value"in h&&(p=h.value)!==void 0&&(p!==t.value||d==="progress"&&!p||d==="option"&&p!==f.value)&&Mt(t,"value",p,f.value,!1),"checked"in h&&(p=h.checked)!==void 0&&p!==t.checked&&Mt(t,"checked",p,f.checked,!1))}return t}function As(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){C.__e(r,n)}}function Ss(t,e,n){var r,i;if(C.unmount&&C.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||As(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){C.__e(s,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Ss(r[i],e,n||typeof t.type!="function");n||t.__e==null||gs(t.__e),t.__=t.__e=t.__d=void 0}function go(t,e,n){return this.constructor(t,n)}function it(t,e,n){var r,i,s;C.__&&C.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,s=[],Yn(e,t=(!r&&n||e).__k=v(U,null,[t]),i||It,It,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?Ft.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),Es(s,t)}function po(t,e){var n={__c:e="__cC"+fs++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&i.some(function(a){a.__e=!0,An(a)})},this.sub=function(l){i.push(l);var a=l.componentWillUnmount;l.componentWillUnmount=function(){i.splice(i.indexOf(l),1),a&&a.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Ft=hs.slice,C={__e:function(t,e,n,r){for(var i,s,l;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),l=i.__d),l)return i.__E=i}catch(a){t=a}throw t}},us=0,We=!1,Z.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=he({},this.state),typeof t=="function"&&(t=t(he({},n),this.props)),t&&he(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),An(this))},Z.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),An(this))},Z.prototype.render=U,we=[],ds=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xt.__r=0,fs=0;var re,en,Br,Ds=[],tn=[],Vr=C.__b,Lr=C.__r,jr=C.diffed,Ur=C.__c,zr=C.unmount;function vo(){for(var t;t=Ds.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(wt),t.__H.__h.forEach(Sn),t.__H.__h=[]}catch(e){t.__H.__h=[],C.__e(e,t.__v)}}C.__b=function(t){re=null,Vr&&Vr(t)},C.__r=function(t){Lr&&Lr(t);var e=(re=t.__c).__H;e&&(en===re?(e.__h=[],re.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=tn,n.__N=n.i=void 0})):(e.__h.forEach(wt),e.__h.forEach(Sn),e.__h=[])),en=re},C.diffed=function(t){jr&&jr(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ds.push(e)!==1&&Br===C.requestAnimationFrame||((Br=C.requestAnimationFrame)||mo)(vo)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==tn&&(n.__=n.__V),n.i=void 0,n.__V=tn})),en=re=null},C.__c=function(t,e){e.some(function(n){try{n.__h.forEach(wt),n.__h=n.__h.filter(function(r){return!r.__||Sn(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],C.__e(r,n.__v)}}),Ur&&Ur(t,e)},C.unmount=function(t){zr&&zr(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{wt(r)}catch(i){e=i}}),n.__H=void 0,e&&C.__e(e,n.__v))};var Wr=typeof requestAnimationFrame=="function";function mo(t){var e,n=function(){clearTimeout(r),Wr&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Wr&&(e=requestAnimationFrame(n))}function wt(t){var e=re,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),re=e}function Sn(t){var e=re;t.__c=t.__(),re=e}function yo(t,e){for(var n in e)t[n]=e[n];return t}function Fr(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Gr(t){this.props=t}(Gr.prototype=new Z).isPureReactComponent=!0,Gr.prototype.shouldComponentUpdate=function(t,e){return Fr(this.props,t)||Fr(this.state,e)};var Yr=C.__b;C.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Yr&&Yr(t)};var bo=C.__e;C.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}bo(t,e,n,r)};var Qr=C.unmount;function _s(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=yo({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return _s(r,e,n)})),t}function ws(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return ws(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function nn(){this.__u=0,this.t=null,this.__b=null}function Cs(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function pt(){this.u=null,this.o=null}C.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Qr&&Qr(t)},(nn.prototype=new Z).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Cs(r.__v),s=!1,l=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=l;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=ws(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},o=e.__h===!0;r.__u++||o||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(l,l)},nn.prototype.componentWillUnmount=function(){this.t=[]},nn.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=_s(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&v(U,null,t.fallback);return i&&(i.__h=null),[v(U,null,e.__a?null:t.children),i]};var qr=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Eo(t){return this.getChildContext=function(){return t.context},t.children}function Ao(t){var e=this,n=t.i;e.componentWillUnmount=function(){it(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),it(v(Eo,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function So(t,e){var n=v(Ao,{__v:t,i:e});return n.containerInfo=e,n}(pt.prototype=new Z).__a=function(t){var e=this,n=Cs(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),qr(e,t,r)):i()};n?n(s):s()}},pt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ot(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},pt.prototype.componentDidUpdate=pt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){qr(t,n,e)})};var Do=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,_o=/^(?: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]/,wo=typeof document<"u",Co=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Z.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var $r=C.event;function Ro(){}function To(){return this.cancelBubble}function ko(){return this.defaultPrevented}C.event=function(t){return $r&&(t=$r(t)),t.persist=Ro,t.isPropagationStopped=To,t.isDefaultPrevented=ko,t.nativeEvent=t};var Zr={configurable:!0,get:function(){return this.class}},Xr=C.vnode;C.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var l=n[s];wo&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&l==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!Co(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&_o.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=l)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ot(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Ot(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(Zr.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Zr))}t.$$typeof=Do,Xr&&Xr(t)};var Jr=C.__r;C.__r=function(t){Jr&&Jr(t),t.__c};const Rs=[],Dn=new Map;function Ts(t){Rs.push(t),Dn.forEach(e=>{Is(e,t)})}function Io(t){t.isConnected&&ks(t.getRootNode())}function ks(t){let e=Dn.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=xo();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}Dn.set(t,e),Mo(e)}}function Mo(t){for(const e of Rs)Is(t,e)}function Is(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let rn;function xo(){return rn===void 0&&(rn=Oo()),rn}function Oo(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&ks(document);var No=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Ts(No);function Qn(t){t.parentNode&&t.parentNode.removeChild(t)}function Y(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Po(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Po(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Ho(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(e);for(let l=0;l<s.length;l+=1)r.push(s[l])}return r}const Bo=/(top|left|right|bottom|width|height)$/i;function Je(t,e){for(let n in e)Ms(t,n,e[n])}function Ms(t,e,n){n==null?t.style[e]="":typeof n=="number"&&Bo.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function xs(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let Kr=0;function Gt(){return Kr+=1,"fc-dom-"+Kr}function Yt(t){t.preventDefault()}function Vo(t,e){return n=>{let r=Y(n.target,t);r&&e.call(r,n,r)}}function Os(t,e,n,r){let i=Vo(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function Lo(t,e,n,r){let i;return Os(t,"mouseover",e,(s,l)=>{if(l!==i){i=l,n(s,l);let a=o=>{i=null,r(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const ei=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function jo(t,e){let n=r=>{e(r),ei.forEach(i=>{t.removeEventListener(i,n)})};ei.forEach(r=>{t.addEventListener(r,n)})}function Ns(t){return Object.assign({onClick:t},Ps(t))}function Ps(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let ti=0;function Me(){return ti+=1,String(ti)}function qn(){document.body.classList.add("fc-not-allowed")}function $n(){document.body.classList.remove("fc-not-allowed")}function Uo(t){t.style.userSelect="none",t.addEventListener("selectstart",Yt)}function zo(t){t.style.userSelect="",t.removeEventListener("selectstart",Yt)}function Wo(t){t.addEventListener("contextmenu",Yt)}function Fo(t){t.removeEventListener("contextmenu",Yt)}function Go(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function Yo(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=Qo(t,e,n[r]),i)return i;return 0}function Qo(t,e,n){return n.func?n.func(t,e):qo(t[n.field],e[n.field])*(n.order||1)}function qo(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 sn(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Ke(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function $o(t,e){return t-e}function ln(t){return t%1===0}function Zo(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Xo=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function x(t,e){return typeof t=="string"?Jo(t):typeof t=="object"&&t?ni(t):typeof t=="number"?ni({[e||"milliseconds"]:t}):null}function Jo(t){let e=Xo.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function ni(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Ko(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function ec(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function tc(t){return Ue(t)/365}function nc(t){return Ue(t)/30}function Ue(t){return st(t)/864e5}function st(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function _n(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}const{hasOwnProperty:Nt}=Object.prototype;function Zn(t,e){let n={};if(e){for(let r in e)if(e[r]===_e){let i=[];for(let s=t.length-1;s>=0;s-=1){let l=t[s][r];if(typeof l=="object"&&l)i.unshift(l);else if(l!==void 0){n[r]=l;break}}i.length&&(n[r]=Zn(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function ke(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function xe(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Hs(t){let e={};for(let n of t)e[n]=!0;return e}function Xn(t){let e=[];for(let n in t)e.push(t[n]);return e}function se(t,e){if(t===e)return!0;for(let n in t)if(Nt.call(t,n)&&!(n in e))return!1;for(let n in e)if(Nt.call(e,n)&&t[n]!==e[n])return!1;return!0}const rc=/^on[A-Z]/;function ic(t,e){const n=wn(t,e);for(let r of n)if(!rc.test(r))return!1;return!0}function wn(t,e){let n=[];for(let r in t)Nt.call(t,r)&&(r in e||n.push(r));for(let r in e)Nt.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function an(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&sc(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function sc(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function lc(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=r){let l=t[s];l!==void 0&&i.push(l)}return i}function ye(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const ac=["sun","mon","tue","wed","thu","fri","sat"];function ri(t,e){let n=ge(t);return n[2]+=e*7,q(n)}function Q(t,e){let n=ge(t);return n[2]+=e,q(n)}function be(t,e){let n=ge(t);return n[6]+=e,q(n)}function oc(t,e){return Qe(t,e)/7}function Qe(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function cc(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function uc(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function dc(t,e){return(e.valueOf()-t.valueOf())/1e3}function fc(t,e){let n=B(t),r=B(e);return{years:0,months:0,days:Math.round(Qe(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function hc(t,e){let n=Pt(t,e);return n!==null&&n%7===0?n/7:null}function Pt(t,e){return pe(t)===pe(e)?Math.round(Qe(t,e)):null}function B(t){return q([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function gc(t){return q([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function pc(t){return q([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function vc(t){return q([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function mc(t,e,n){let r=t.getUTCFullYear(),i=on(t,r,e,n);if(i<1)return on(t,r-1,e,n);let s=on(t,r+1,e,n);return s>=1?Math.min(i,s):i}function on(t,e,n,r){let i=q([e,0,1+yc(e,n,r)]),s=B(t),l=Math.round(Qe(i,s));return Math.floor(l/7)+1}function yc(t,e,n){let r=7+e-n;return-((7+q([t,0,r]).getUTCDay()-e)%7)+r-1}function ii(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function si(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 ge(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function q(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Bs(t){return!isNaN(t.valueOf())}function pe(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function bc(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",Kn(e,!0)))),r}function Jn(t){return t.toISOString().replace(/T.*$/,"")}function Ec(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Kn(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+sn(i,2)}:${sn(s,2)}`:`GMT${n}${i}${s?`:${sn(s,2)}`:""}`}function O(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!ye(r,s)){n&&n(i);let l=t.apply(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}function Ct(t,e,n){let r,i;return s=>{if(!r)i=t.call(this,s);else if(!se(r,s)){n&&n(i);let l=t.call(this,s);(!e||!e(l,i))&&(i=l)}return r=s,i}}const li={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ht={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},vt=/\s*([ap])\.?m\.?/i,Ac=/,/g,Sc=/\s+/g,Dc=/\u200e/g,_c=/UTC|GMT/;class wc{constructor(e){let n={},r={},i=0;for(let s in e)s in li?(r[s]=e[s],i=Math.max(li[s],i)):(n[s]=e[s],s in Ht&&(i=Math.max(Ht[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=O(ai)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:l}=this,a=Mc(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let u=this.format(e,r),c=this.format(n,r);if(u===c)return u;let f=xc(s,o),h=ai(f,l,r),d=h(e),p=h(n),y=Oc(u,d,c,p),m=l.separator||i||r.defaultSeparator||"";return y?y.before+d+m+p+y.after:u+m+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function ai(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>Kn(i.timeZoneOffset):r===0&&e.week?i=>Ic(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):Cc(t,e,n)}function Cc(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Rc(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,a;i&&!l.getUTCMinutes()?a=i:a=r;let o=a.format(l);return Tc(o,s,t,e,n)}}function Rc(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 Tc(t,e,n,r,i){return t=t.replace(Dc,""),n.timeZoneName==="short"&&(t=kc(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Kn(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Ac,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(vt,"").trim():r.meridiem==="narrow"?t=t.replace(vt,(s,l)=>l.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(vt,(s,l)=>`${l.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(vt,s=>s.toLocaleLowerCase())),t=t.replace(Sc," "),t=t.trim(),t}function kc(t,e){let n=!1;return t=t.replace(_c,()=>(n=!0,e)),n||(t+=` ${e}`),t}function Ic(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function Mc(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:pe(t)!==pe(e)?1:0}function xc(t,e){let n={};for(let r in t)(!(r in Ht)||Ht[r]<=e)&&(n[r]=t[r]);return n}function Oc(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let l=t.substr(0,s);i=s+e.length;let a=t.substr(i),o=0;for(;o<n.length;){let u=n.indexOf(r,o);if(u===-1)break;let c=n.substr(0,u);o=u+r.length;let f=n.substr(o);if(l===c&&a===f)return{before:l,after:a}}}return null}function oi(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Bt(t,e,n,r){let i=oi(t,n.calendarSystem),s=e?oi(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Nc{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,Bt(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,Bt(e,n,r,i))}}class Pc{constructor(e){this.func=e}format(e,n,r){return this.func(Bt(e,null,n,r))}formatRange(e,n,r,i){return this.func(Bt(e,n,r,i))}}function G(t){return typeof t=="object"&&t?new wc(t):typeof t=="string"?new Nc(t):typeof t=="function"?new Pc(t):null}const ci={navLinkDayClick:g,navLinkWeekClick:g,duration:x,bootstrapFontAwesome:g,buttonIcons:g,customButtons:g,defaultAllDayEventDuration:x,defaultTimedEventDuration:x,nextDayThreshold:x,scrollTime:x,scrollTimeReset:Boolean,slotMinTime:x,slotMaxTime:x,dayPopoverFormat:G,slotDuration:x,snapDuration:x,headerToolbar:g,footerToolbar:g,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:G,dayHeaderClassNames:g,dayHeaderContent:g,dayHeaderDidMount:g,dayHeaderWillUnmount:g,dayCellClassNames:g,dayCellContent:g,dayCellDidMount:g,dayCellWillUnmount:g,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:g,weekNumbers:Boolean,weekNumberClassNames:g,weekNumberContent:g,weekNumberDidMount:g,weekNumberWillUnmount:g,editable:Boolean,viewClassNames:g,viewDidMount:g,viewWillUnmount:g,nowIndicator:Boolean,nowIndicatorClassNames:g,nowIndicatorContent:g,nowIndicatorDidMount:g,nowIndicatorWillUnmount:g,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:g,locale:g,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:g,eventOrder:Go,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:g,contentHeight:g,direction:String,weekNumberFormat:G,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:g,initialDate:g,now:g,eventDataTransform:g,stickyHeaderDates:g,stickyFooterScrollbar:g,viewHeight:g,defaultAllDay:Boolean,eventSourceFailure:g,eventSourceSuccess:g,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:g,eventConstraint:g,eventAllow:g,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:g,eventContent:g,eventDidMount:g,eventWillUnmount:g,selectConstraint:g,selectOverlap:g,selectAllow:g,droppable:Boolean,unselectCancel:String,slotLabelFormat:g,slotLaneClassNames:g,slotLaneContent:g,slotLaneDidMount:g,slotLaneWillUnmount:g,slotLabelClassNames:g,slotLabelContent:g,slotLabelDidMount:g,slotLabelWillUnmount:g,dayMaxEvents:g,dayMaxEventRows:g,dayMinWidth:Number,slotLabelInterval:x,allDayText:String,allDayClassNames:g,allDayContent:g,allDayDidMount:g,allDayWillUnmount:g,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:G,rerenderDelay:Number,moreLinkText:g,moreLinkHint:g,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:g,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:x,hiddenDays:g,fixedWeekCount:Boolean,validRange:g,visibleRange:g,titleFormat:g,eventInteractive:Boolean,noEventsText:String,viewHint:g,navLinkHint:g,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:g,moreLinkClassNames:g,moreLinkContent:g,moreLinkDidMount:g,moreLinkWillUnmount:g,monthStartFormat:G,handleCustomRendering:g,customRenderingMetaMap:g,customRenderingReplacesEl:Boolean},et={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},ui={datesSet:g,eventsSet:g,eventAdd:g,eventChange:g,eventRemove:g,windowResize:g,eventClick:g,eventMouseEnter:g,eventMouseLeave:g,select:g,unselect:g,loading:g,_unmount:g,_beforeprint:g,_afterprint:g,_noEventDrop:g,_noEventResize:g,_resize:g,_scrollRequest:g},di={buttonText:g,buttonHints:g,views:g,plugins:g,initialEvents:g,events:g,eventSources:g},De={headerToolbar:_e,footerToolbar:_e,buttonText:_e,buttonHints:_e,buttonIcons:_e,dateIncrement:_e,plugins:mt,events:mt,eventSources:mt,resources:mt};function _e(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?se(t,e):t===e}function mt(t,e){return Array.isArray(t)&&Array.isArray(e)?ye(t,e):t===e}const Hc={type:String,component:g,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:g,usesMinMaxTime:Boolean,classNames:g,content:g,didMount:g,willUnmount:g};function cn(t){return Zn(t,De)}function er(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function g(t){return t}function tr(t,e,n,r){return{instanceId:Me(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function Bc(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:l}=t;return l==null&&(l=e,l==null&&(l=s.allDayGuess,l==null&&(l=!1))),{allDay:l,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function Ie(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:l,instances:a}=t;a=ke(a,o=>!l[o.defId].recurringDef);for(let o in l){let u=l[o];if(u.recurringDef){let{duration:c}=u.recurringDef;c||(c=u.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let f=Vc(u,c,e,r,i.recurringTypes);for(let h of f){let d=tr(o,{start:h,end:r.add(h,c)});a[d.instanceId]=d}}}return{defs:l,instances:a}}function Vc(t,e,n,r,i){let l=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(l=l.map(B)),l}function lt(t,e,n,r,i,s){let l=te(),a=ir(n);for(let o of t){let u=Ls(o,e,n,r,a,i,s);u&&Cn(u,l)}return l}function Cn(t,e=te()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function nr(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Qt(t,s=>Lc(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return te()}function Lc(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function te(){return{defs:{},instances:{}}}function rr(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Qt(t,e){let n=ke(t.defs,e),r=ke(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function jc(t,e){let{defs:n,instances:r}=t,i={},s={};for(let l in n)e.defs[l]||(i[l]=n[l]);for(let l in r)!e.instances[l]&&i[r[l].defId]&&(s[l]=r[l]);return{defs:i,instances:s}}function Uc(t,e){return Array.isArray(t)?lt(t,null,e,!0):typeof t=="object"&&t?lt([t],null,e,!0):t!=null?String(t):null}function fi(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Vt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:g,overlap:g,allow:g,className:fi,classNames:fi,color:String,backgroundColor:String,borderColor:String,textColor:String},zc={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Lt(t,e){let n=Uc(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Wc(t){return t.reduce(Fc,zc)}function Fc(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const Rt={id:String,groupId:String,title:String,url:String,interactive:Boolean},Vs={start:g,end:g,date:g,allDay:Boolean},Gc=Object.assign(Object.assign(Object.assign({},Rt),Vs),{extendedProps:g});function Ls(t,e,n,r,i=ir(n),s,l){let{refined:a,extra:o}=js(t,n,i),u=Qc(e,n),c=Bc(a,u,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let h=Rn(a,o,e?e.sourceId:"",c.allDay,!!c.duration,n,s);return h.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:h,instance:null}}let f=Yc(a,u,n,r);if(f){let h=Rn(a,o,e?e.sourceId:"",f.allDay,f.hasEnd,n,s),d=tr(h.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(d.instanceId=l[h.publicId]),{def:h,instance:d}}return null}function js(t,e,n=ir(e)){return er(t,n)}function ir(t){return Object.assign(Object.assign(Object.assign({},Vt),Gc),t.pluginHooks.eventRefiners)}function Rn(t,e,n,r,i,s,l){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||Me(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:Lt(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Yc(t,e,n,r){let{allDay:i}=t,s,l=null,a=!1,o,u=null,c=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(c),s)l=s.marker;else if(!r)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),i&&l&&(l=B(l)),o&&(u=o.marker,i&&(u=B(u)),l&&u<=l&&(u=null)),u?a=!0:r||(a=n.options.forceEventDuration||!1,u=n.dateEnv.add(l,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:l,end:u},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function Qc(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}const qc={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function $c(t,e){return lt(Zc(t),null,e)}function Zc(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},qc),n)),e}function Us(t){let e=Math.floor(Qe(t.start,t.end))||1,n=B(t.start),r=Q(n,e);return{start:n,end:r}}function zs(t,e=x(0)){let n=null,r=null;if(t.end){r=B(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=st(e)&&(r=Q(r,1))}return t.start&&(n=B(t.start),r&&r<=n&&(r=Q(n,1))),{start:n,end:r}}function Le(t,e,n,r){return r==="year"?x(n.diffWholeYears(t,e),"year"):r==="month"?x(n.diffWholeMonths(t,e),"month"):fc(t,e)}function Xc(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Ws(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function Jc(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 Kc(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function eu(t,e){return{left:t.left-e.left,top:t.top-e.top}}let un;function Fs(){return un==null&&(un=tu()),un}function tu(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}function nu(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function hi(t,e){let n=[],{start:r}=e,i,s;for(t.sort(ru),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function ru(t,e){return t.start.valueOf()-e.start.valueOf()}function Fe(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function iu(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 qt(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function me(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function su(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 Gs(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!me(r.activeRange,t)),isOther:!!(r&&!me(r.currentRange,t)),isToday:!!(e&&me(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function lr(t,e){let n=["fc-day",`fc-day-${ac[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const lu=G({year:"numeric",month:"long",day:"numeric"}),au=G({week:"long"});function Tn(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:l}=t;let a=i.format(e,n==="week"?au:lu);if(s.navLinks){let o=i.toDate(e);const u=c=>{let f=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof f=="function"?f.call(l,i.toDate(e),c):(typeof f=="string"&&(n=f),l.zoomTo(e,n))};return Object.assign({title:Ke(s.navLinkHint,[a,o],a),"data-navlink":""},r?Ns(u):{onClick:u})}return{"aria-label":a}}let dn=null;function ou(){return dn===null&&(dn=cu()),dn}function cu(){let t=document.createElement("div");Je(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Qn(t),n}let fn;function uu(){return fn||(fn=du()),fn}function du(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Ys(t);return document.body.removeChild(t),e}function Ys(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function fu(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,a=Ys(t),o=a.y-r-i,u=a.x-s-l,c={borderLeft:r,borderRight:i,borderTop:s,borderBottom:l,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return ou()&&n.direction==="rtl"?c.scrollbarLeft=o:c.scrollbarRight=o,e&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function hu(t,e=!1,n){let r=n?t.getBoundingClientRect():ar(t),i=fu(t,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function ar(t){let 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 gu(t){let e=Qs(t),n=t.getBoundingClientRect();for(let r of e){let i=Ws(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function Qs(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}function pu(t,e,n){let r=!1,i=function(a){r||(r=!0,e(a))},s=function(a){r||(r=!0,n(a))},l=t(i,s);l&&typeof l.then=="function"&&l.then(i,s)}class $t{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){vu(this.handlers,e,n)}off(e,n){mu(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let l of s)l.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function vu(t,e,n){(t[e]||(t[e]=[])).push(n)}function mu(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}class jt{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return yt(this.tops||[],e.tops||[])&&yt(this.bottoms||[],e.bottoms||[])&&yt(this.lefts||[],e.lefts||[])&&yt(this.rights||[],e.rights||[])}}function yt(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class or{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class yu extends or{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class bu extends or{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ut{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}ut.prototype.classes={};ut.prototype.iconClasses={};ut.prototype.baseIconClass="";ut.prototype.iconOverridePrefix="";function gi(t){t();let e=C.debounceRendering,n=[];function r(i){n.push(i)}for(C.debounceRendering=r,it(v(Eu,{}),document.createElement("div"));n.length;)n.shift()();C.debounceRendering=e}class Eu extends Z{render(){return v("div",{})}componentDidMount(){this.setState({})}}function qs(t){let e=po(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=l=>{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return i},e}class Au{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Oe=qs({});function Su(t,e,n,r,i,s,l,a,o,u,c,f,h){return{dateEnv:i,options:n,pluginHooks:l,emitter:u,dispatch:a,getCurrentData:o,calendarApi:c,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(d){u.on("_resize",d)},removeResizeHandler(d){u.off("_resize",d)},createScrollResponder(d){return new Au(d,u,x(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class Ne extends Z{shouldComponentUpdate(e,n){return this.debug&&console.log(wn(e,this.props),wn(n,this.state)),!an(this.props,e,this.propEquality)||!an(this.state,n,this.stateEquality)}safeSetState(e){an(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ne.addPropsEquality=Du;Ne.addStateEquality=_u;Ne.contextType=Oe;Ne.prototype.propEquality={};Ne.prototype.stateEquality={};class L extends Ne{}L.contextType=Oe;function Du(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function _u(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function ce(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class Pe extends L{constructor(){super(...arguments),this.uid=Me()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Y(e,".fc-event-mirror")}isValidDateDownEl(e){return!Y(e,".fc-event:not(.fc-bg-event)")&&!Y(e,".fc-more-link")&&!Y(e,"a[data-navlink]")&&!Y(e,".fc-popover")}}function wu(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Cu(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):dt(t.now,e)}function dt(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class $s{constructor(e){this.props=e,this.nowDate=dt(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,l,a,o,u,c;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=su(e,s)),l=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),u=o,i.showNonCurrentDates||(u=Fe(u,l.range)),u=this.adjustActiveRange(u),u=Fe(u,s),c=sr(l.range,s),me(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:u,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,l=null,a;return r.duration?(i=r.duration,s=r.durationUnit,l=this.buildRangeFromDuration(e,n,i,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,a)):(l=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(l.start,l.end).unit:(i=this.getFallbackDuration(),s=_n(i).unit,l=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:l}}getFallbackDuration(){return x({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:l,end:a}=e;return r&&(Ue(i)<0&&(l=B(l),l=n.add(l,i)),Ue(s)>1&&(a=B(a),a=Q(a,-1),a=n.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:l}=this.props,a,o,u;if(!l){let{dateIncrement:f}=this.props;f&&st(f)<st(r)?l=_n(f).unit:l=i}Ue(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=B(a));function c(){a=s.startOf(e,l),o=s.add(a,r),u={start:a,end:o}}return c(),this.trimHiddenDays(u)||(e=this.skipHiddenDays(e,n),c()),u}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,l=0,a=e,o;s&&(a=i.startOf(a,s)),a=B(a),a=this.skipHiddenDays(a,n),o=a;do o=Q(o,1),this.isHiddenDay(o)||(l+=1);while(l<r);return{start:a,end:o}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?x(1,r):e||x({days:1}))}refineRange(e){if(e){let n=nu(e,this.props.dateEnv);return n&&(n=zs(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=Q(e,n);return e}}function Zs(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},cr(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Ru(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function cr(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,zu(t,e.dateEnv)),n}function pi(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=B(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function ur(t,e,n,r){let i=Ut(t.defs,e),s=te();for(let l in t.defs){let a=t.defs[l];s.defs[l]=Tu(a,i[l],n,r)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=ku(a,o,i[a.defId],n,r)}return s}function Tu(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of r.pluginHooks.eventDefMutationAppliers)l(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function ku(t,e,n,r,i){let{dateEnv:s}=i,l=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},t);return l&&(o.range=Us(o.range)),r.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,r.datesDelta),end:s.add(o.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,r.endDelta)}),a&&(o.range={start:o.range.start,end:pi(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:B(o.range.start),end:B(o.range.end)}),o.range.end<o.range.start&&(o.range.end=pi(e.allDay,o.range.start,i)),o}class Ve{constructor(e,n){this.context=e,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class V{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in Vs)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Rt[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Rt)n=Rt[e](n),this.mutate({standardProps:{[e]:n}});else if(e in Vt){let r=Vt[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,l=Le(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:l}):this.mutate({startDelta:l})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=Le(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},l=i.createMarker(e),a;if(l&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let o=this._instance.range;r.allDay===!0&&(o=Us(o));let u=Le(o.start,l,i,r.granularity);if(a){let c=Le(o.end,a,i,r.granularity);Ko(u,c)?this.mutate({datesDelta:u,standardProps:s}):this.mutate({startDelta:u,endDelta:c,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:u,standardProps:s})}}moveStart(e){let n=x(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=x(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=x(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=G(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),l=nr(s,n.instanceId);l=ur(l,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let o=new V(i,r,n);this._def=l.defs[r.defId],this._instance=l.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:l}),i.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Te(l,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=Xs(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new Ve(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:s}=this,l={allDay:n.allDay};return n.title&&(l.title=n.title),i&&(l.start=i),s&&(l.end=s),n.publicId&&(l.id=n.publicId),n.groupId&&(l.groupId=n.groupId),n.url&&(l.url=n.url),r.display&&r.display!=="auto"&&(l.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?l.color=r.backgroundColor:(r.backgroundColor&&(l.backgroundColor=r.backgroundColor),r.borderColor&&(l.borderColor=r.borderColor)),r.textColor&&(l.textColor=r.textColor),r.classNames.length&&(l.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(l,n.extendedProps):l.extendedProps=n.extendedProps),l}toJSON(){return this.toPlainObject()}}function Xs(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Te(t,e,n){let{defs:r,instances:i}=t,s=[],l=n?n.instanceId:"";for(let a in i){let o=i[a],u=r[o.defId];o.instanceId!==l&&s.push(new V(e,u,o))}return s}function vi(t,e,n,r){let i={},s={},l={},a=[],o=[],u=Ut(t.defs,e);for(let c in t.defs){let f=t.defs[c];u[f.defId].display==="inverse-background"&&(f.groupId?(i[f.groupId]=[],l[f.groupId]||(l[f.groupId]=f)):s[c]=[])}for(let c in t.instances){let f=t.instances[c],h=t.defs[f.defId],d=u[h.defId],p=f.range,y=!h.allDay&&r?zs(p,r):p,m=Fe(y,n);m&&(d.display==="inverse-background"?h.groupId?i[h.groupId].push(m):s[f.defId].push(m):d.display!=="none"&&(d.display==="background"?a:o).push({def:h,ui:d,instance:f,range:m,isStart:y.start&&y.start.valueOf()===m.start.valueOf(),isEnd:y.end&&y.end.valueOf()===m.end.valueOf()}))}for(let c in i){let f=i[c],h=hi(f,n);for(let d of h){let p=l[c],y=u[p.defId];a.push({def:p,ui:y,instance:null,range:d,isStart:!1,isEnd:!1})}}for(let c in s){let f=s[c],h=hi(f,n);for(let d of h)a.push({def:t.defs[c],ui:u[c],instance:null,range:d,isStart:!1,isEnd:!1})}return{bg:a,fg:o}}function mi(t,e){t.fcSeg=e}function Ge(t){return t.fcSeg||t.parentNode.fcSeg||null}function Ut(t,e){return xe(t,n=>Js(n,e))}function Js(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Wc(n)}function Iu(t,e){let n=t.map(Mu);return n.sort((r,i)=>Yo(r,i,e)),n.map(r=>r._seg)}function Mu(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function xu(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,l=s.startEditable;for(let a of r)l=a(l,i,s,e);return l}function Ou(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function Nu(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Ks(t,e,n,r,i,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:u,displayEventEnd:c}=o,f=t.eventRange.def,h=t.eventRange.instance;u==null&&(u=r!==!1),c==null&&(c=i!==!1);let d=h.range.start,p=h.range.end,y=s||t.start||t.eventRange.range.start,m=l||t.end||t.eventRange.range.end,A=B(d).valueOf()===B(y).valueOf(),_=B(be(p,-1)).valueOf()===B(be(m,-1)).valueOf();return u&&!f.allDay&&(A||_)?(y=A?d:y,m=_?p:m,c&&f.hasEnd?a.formatRange(y,m,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(y,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function tt(t,e,n){let r=t.eventRange.range;return{isPast:r.end<(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&me(e,r.start)}}function Pu(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function Hu(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function el(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?Ps(o=>{s.trigger("eventClick",{el:o.target,event:new V(e,n,r),jsEvent:o,view:e.viewApi})}):{}}const Bu={start:g,end:g,allDay:Boolean};function Vu(t,e,n){let r=Lu(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function Lu(t,e){let{refined:n,extra:r}=er(t,Bu),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:l},r)}function ju(t,e){return iu(t.range,e.range)&&t.allDay===e.allDay&&Uu(t,e)}function Uu(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function zu(t,e){return Object.assign(Object.assign({},nl(t.range,e,t.allDay)),{allDay:t.allDay})}function tl(t,e,n){return Object.assign(Object.assign({},nl(t,e,n)),{timeZone:e.timeZone})}function nl(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function Wu(t,e,n){let r=js({editable:!1},n),i=Rn(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:Js(i,e),instance:tr(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}let rl={};function Fu(t,e){rl[t]=e}function Gu(t){return new rl[t]}class Yu{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return q(e)}markerToArray(e){return ge(e)}}Fu("gregory",Yu);const Qu=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function qu(t){let e=Qu.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Bs(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class $u{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=Gu(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):q(ii(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=q(e)),n===null||!Bs(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=qu(e);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return pe(e)===pe(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return pe(e)===pe(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=hc(e,n),r!==null?{unit:"week",value:r}:(r=Pt(e,n),r!==null?{unit:"day",value:r}:(r=cc(e,n),ln(r)?{unit:"hour",value:r}:(r=uc(e,n),ln(r)?{unit:"minute",value:r}:(r=dc(e,n),ln(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/tc(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/nc(r):r.days&&(i=Pt(e,n),i!==null)?i/Ue(r):(n.valueOf()-e.valueOf())/st(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?B(e):n==="hour"?gc(e):n==="minute"?pc(e):n==="second"?vc(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):mc(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=be(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),bc(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?q(ii(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):q(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-si(ge(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ge(e)):null}toDate(e,n){return this.timeZone==="local"?si(ge(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(ge(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class Zu{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);return this.isInsertionValid(r,e)?(this.insertEntryAt(e,r),1):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+n.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){return this.allowReslicing&&e.touchingEntry?this.splitEntry(n,e.touchingEntry,r):(r.push(n),0)}splitEntry(e,n,r){let i=0,s=[],l=e.span,a=n.span;return l.start<a.start&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.start,end:a.start}},s)),l.end>a.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:l.end}},s)),i?(r.push({index:e.index,thickness:e.thickness,span:il(a,l)},...s),i):(r.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(hn(i,n.level,n.levelCoord),hn(r,n.level,[e])):hn(r[n.level],n.lateral,e),this.stackCnts[nt(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,l=n.length,a=0,o=-1,u=-1,c=null,f=0;for(let p=0;p<l;p+=1){let y=n[p];if(!i&&y>=a+e.thickness)break;let m=r[p],A,_=bi(m,e.span.start,yi),w=_[0]+_[1];for(;(A=m[w])&&A.span.start<e.span.end;){let D=y+A.thickness;D>a&&(a=D,c=A,o=p,u=w),D===a&&(f=Math.max(f,s[nt(A)]+1)),w+=1}}let h=0;if(c)for(h=o+1;h<l&&n[h]<a;)h+=1;let d=-1;return h<l&&n[h]===a&&(d=bi(r[h],e.span.end,yi)[0]),{touchingLevel:o,touchingLateral:u,touchingEntry:c,stackCnt:f,levelCoord:a,level:h,lateral:d}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let l=e[s],a=n[s];for(let o of l)i.push(Object.assign(Object.assign({},o),{levelCoord:a}))}return i}}function yi(t){return t.span.end}function nt(t){return t.index+":"+t.span.start}function il(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function hn(t,e,n){t.splice(e,0,n)}function bi(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),l=n(t[s]);if(e<l)i=s;else if(e>l)r=s+1;else return[s,1]}return[r,0]}class qe{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Xu(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function dr(t){return{[t.component.uid]:t}}const kn={};class Ju{constructor(e,n){this.emitter=new $t}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const fr={};class Ku extends L{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",l=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Fs()||l.push("fc-liquid-hack"),e.children(l,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}function ed(t,e){return!t||e>10?G({weekday:"short"}):e>1?G({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):G({weekday:"long"})}const sl="fc-col-header-cell";function ll(t){return t.text}class hr extends L{constructor(){super(...arguments),this.id=Me(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{this.props.elRef&&ce(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:l}=e,a=ol(e);let o=!1,u,c=[],f;if(i!=null){const h=typeof i=="function"?i(l,v):i;if(h===!0)o=!0;else{const d=h&&typeof h=="object";d&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:d&&"domNodes"in h?c=Array.prototype.slice.call(h.domNodes):!d&&typeof h!="function"?u=h:f=h}}else o=!al(e.generatorName,r);return o&&s&&(u=s(l)),this.queuedDomNodes=c,this.currentGeneratorMeta=f,v(e.elTag,a,u)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=i.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[r.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(td)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!ye(e,n)){n.forEach(Qn);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}hr.addPropsEquality({elClasses:ye,elStyle:se,elAttrs:ic,renderProps:se});function al(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function ol(t,e){const n=Object.assign(Object.assign({},t.elAttrs),{ref:t.elRef});return(t.elClasses||e)&&(n.className=(t.elClasses||[]).concat(e||[]).concat(n.className||[]).filter(Boolean).join(" ")),t.elStyle&&(n.style=t.elStyle),n}function td(t){return!!t}const cl=qs(0);class ue extends Z{constructor(){super(...arguments),this.InnerContent=nd.bind(void 0,this),this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&ce(this.props.elRef,e)}}render(){const{props:e}=this,n=rd(e.classNameGenerator,e.renderProps);if(e.children){const r=ol(e,n),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?v(e.elTag,r,i):i}else return v(hr,Object.assign(Object.assign({},e),{elRef:this.handleRootEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.rootEl||this.base}))}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.rootEl||this.base}))}}ue.contextType=cl;function nd(t,e){const n=t.props;return v(hr,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function rd(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class id extends L{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=Gs(l,s.todayRange,null,a),u=[sl].concat(lr(o,r)),c=e.format(l,s.dayHeaderFormat),f=!o.isDisabled&&s.colCnt>1?Tn(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:i},s.extraRenderProps),{text:c}),o);return v(ue,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:Jn(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:ll,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},d=>v("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&v(d,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const sd=G({weekday:"long"});class ld extends L{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,l=Q(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(l,e.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:i}),e.extraRenderProps),{text:o});return v(ue,{elTag:"th",elClasses:[sl,...lr(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:ll,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},c=>v("div",{className:"fc-scrollgrid-sync-inner"},v(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,sd)}})))}}class gr extends Z{constructor(e,n){super(e,n),this.initialNowDate=dt(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=be(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,x(1,e.unit)),l=s.valueOf()-r.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:i,todayRange:Ei(i)},nextState:{nowDate:s,todayRange:Ei(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}gr.contextType=Oe;function Ei(t){let e=B(t),n=Q(e,1);return{start:e,end:n}}class ad extends L{constructor(){super(...arguments),this.createDayHeaderFormatter=O(od)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return v(gr,{unit:"day"},(a,o)=>v("tr",{role:"row"},s&&s("day"),n.map(u=>i?v(id,{key:u.toISOString(),date:u,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):v(ld,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:l}))))}}function od(t,e,n){return t||ed(e,n)}class cd{constructor(e,n){let r=e.start,{end:i}=e,s=[],l=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),l.push(r)),r=Q(r,1);this.dates=l,this.indices=s,this.cnt=l.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(Q(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(Qe(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class ud{constructor(e,n){let{dates:r}=e,i,s,l;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);l=Math.ceil(r.length/i)}else l=1,i=r.length;this.rowCnt=l,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:l}=r,a=s;for(;a<=l;){let o=Math.floor(a/n),u=Math.min((o+1)*n,l+1);i.push({row:o,firstCol:a%n,lastCol:(u-1)%n,isStart:r.isStart&&a===s,isEnd:r.isEnd&&u-1===l}),a=u}}return i}}class dd{constructor(){this.sliceBusinessHours=O(this._sliceBusinessHours),this.sliceDateSelection=O(this._sliceDateSpan),this.sliceEventStore=O(this._sliceEventStore),this.sliceEventDrag=O(this._sliceInteraction),this.sliceEventResize=O(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:l}=e,a=this.sliceEventStore(e.eventStore,l,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,l,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,l,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,l,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:be(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(Ie(e,bt(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let l=vi(e,n,bt(r,!!i),i);return{bg:this.sliceEventRanges(l.bg,s),fg:this.sliceEventRanges(l.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let l=vi(e.mutatedEvents,n,bt(r,!!i),i);return{segs:this.sliceEventRanges(l.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...l){if(!e)return[];let a=bt(n,!!r),o=Fe(e.range,a);if(o){e=Object.assign(Object.assign({},e),{range:o});let u=Wu(e,i,s),c=this.sliceRange(e.range,...l);for(let f of c)f.eventRange=u;return c}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:Q(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function bt(t,e){let n=t.activeRange;return e?n:{start:be(n.start,t.slotMinTime.milliseconds),end:be(n.end,t.slotMaxTime.milliseconds-864e5)}}function fd(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return hd(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return gd(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return pd(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return rr(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Ie(t,r.activeRange,i):t;case"REMOVE_EVENTS":return jc(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return dl(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Qt(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return te();default:return t}}function hd(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let l=lt(ul(i,e,s),e,s);return r&&(l=Ie(l,r,s)),rr(dl(t,e.sourceId),l)}return t}function gd(t,e,n,r,i){const{defIdMap:s,instanceIdMap:l}=md(t);let a=lt(ul(n,e,i),e,i,!1,s,l);return Ie(a,r,i)}function ul(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Ai(t,i)),r&&(t=Ai(t,r)),t}function Ai(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function pd(t,e,n,r){return n&&(e=Ie(e,n,r)),rr(t,e)}function Si(t,e,n){let{defs:r}=t,i=xe(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function dl(t,e){return Qt(t,n=>n.sourceId!==e)}function vd(t,e){return{defs:t.defs,instances:ke(t.instances,n=>!e[n.instanceId])}}function md(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(r[a]=s)}for(let s in n){const l=n[s],a=e[l.defId],{publicId:o}=a;o&&(i[o]=s)}return{defIdMap:r,instanceIdMap:i}}function fl(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!qt(e.validRange,r[i].range))return!1;return hl({eventDrag:t},n)}function yd(t,e,n){return qt(e.validRange,t.range)?hl({dateSelection:t},n):!1}function hl(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||bd)(r,e)}function bd(t,e,n={},r){return!(t.eventDrag&&!Ed(t,e,n,r)||t.dateSelection&&!Ad(t,e,n,r))}function Ed(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,l=s.mutatedEvents,a=l.defs,o=l.instances,u=Ut(a,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(u=xe(u,r));let c=vd(t.eventStore,s.affectedEvents.instances),f=c.defs,h=c.instances,d=Ut(f,t.eventUiBases);for(let p in o){let y=o[p],m=y.range,A=u[y.defId],_=a[y.defId];if(!gl(A.constraints,m,c,t.businessHours,e))return!1;let{eventOverlap:w}=e.options,D=typeof w=="function"?w:null;for(let k in h){let b=h[k];if(sr(m,b.range)&&(d[b.defId].overlap===!1&&s.isEvent||A.overlap===!1||D&&!D(new V(e,f[b.defId],b),new V(e,_,y))))return!1}let R=i.eventStore;for(let k of A.allows){let b=Object.assign(Object.assign({},n),{range:y.range,allDay:_.allDay}),S=R.defs[_.defId],I=R.instances[p],j;if(S?j=new V(e,S,I):j=new V(e,_),!k(cr(b,e),j))return!1}}return!0}function Ad(t,e,n,r){let i=t.eventStore,s=i.defs,l=i.instances,a=t.dateSelection,o=a.range,{selectionConfig:u}=e.getCurrentData();if(r&&(u=r(u)),!gl(u.constraints,o,i,t.businessHours,e))return!1;let{selectOverlap:c}=e.options,f=typeof c=="function"?c:null;for(let h in l){let d=l[h];if(sr(o,d.range)&&(u.overlap===!1||f&&!f(new V(e,s[d.defId],d),null)))return!1}for(let h of u.allows){let d=Object.assign(Object.assign({},n),a);if(!h(cr(d,e),null))return!1}return!0}function gl(t,e,n,r,i){for(let s of t)if(!Dd(Sd(s,e,n,r,i),e))return!1;return!0}function Sd(t,e,n,r,i){return t==="businessHours"?gn(Ie(r,e,i)):typeof t=="string"?gn(Qt(n,s=>s.groupId===t)):typeof t=="object"&&t?gn(Ie(t,e,i)):[]}function gn(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Dd(t,e){for(let n of t)if(qt(n,e))return!0;return!1}class Di extends Error{constructor(e,n){super(e),this.response=n}}function _d(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new Di("Failure parsing JSON",i)});throw new Di("Request failed",i)})}class pr{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}const Et=/^(visible|hidden)$/;class wd extends L{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,ce(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),v("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Et.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Et.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Et.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Et.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Re{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,l=!1,a=!1;n!==null?(l=r in s,s[r]=n,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(r)),a&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return lc(this.currentMap,e,n,r)}getAll(){return Xn(this.currentMap)}}function Cd(t){let e=Ho(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Zo(r));return Math.ceil(n)}function pl(t,e){return t.liquid&&e.liquid}function Rd(t,e){return e.maxHeight!=null||pl(t,e)}function Td(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):v("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,v(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function kd(t,e){return ye(t,e,se)}function Id(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(v("col",{style:{width:r.width==="shrink"?Md(e):r.width||"",minWidth:r.minWidth||""}}))}return v("colgroup",{},...n)}function Md(t){return t??4}function xd(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function Od(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Nd(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Pd(t){return v("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function _i(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Hd(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class vl extends L{constructor(){super(...arguments),this.processCols=O(e=>e,kd),this.renderMicroColGroup=O(Id),this.scrollerRefs=new Re,this.scrollerElRefs=new Re(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),a=Od(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=i.length,u=0,c,f=[],h=[],d=[];for(;u<o&&(c=i[u]).type==="header";)f.push(this.renderSection(c,l,!0)),u+=1;for(;u<o&&(c=i[u]).type==="body";)h.push(this.renderSection(c,l,!1)),u+=1;for(;u<o&&(c=i[u]).type==="footer";)d.push(this.renderSection(c,l,!0)),u+=1;let p=!Fs();const y={role:"rowgroup"};return v("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!p&&f.length)&&v("thead",y,...f),!!(!p&&h.length)&&v("tbody",y,...h),!!(!p&&d.length)&&v("tfoot",y,...d),p&&v("tbody",y,...f,...h,...d))}renderSection(e,n,r){return"outerContent"in e?v(U,{key:e.key},e.outerContent):v("tr",{key:e.key,role:"presentation",className:Nd(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:l,scrollerClientWidths:a,scrollerClientHeights:o}=this.state,u=Rd(s,e),c=pl(s,e),f=s.liquid?l?"scroll":u?"auto":"hidden":"visible",h=e.key,d=Td(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:o[h]!==void 0?o[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return v(i?"th":"td",{ref:r.elRef,role:"presentation"},v("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},v(wd,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:f,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},d)))}_handleScrollerEl(e,n){let r=Bd(this.props.sections,n);r&&ce(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return xd(this.props.cols)?Cd(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=uu(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},l={};for(let a in n.currentMap){let o=n.currentMap[a];if(o&&o.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let o=a.key,u=r.currentMap[o];if(u){let c=u.parentNode;s[o]=Math.floor(c.getBoundingClientRect().width-(i?e.y:0)),l[o]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:l}}}vl.addStateEquality({scrollerClientWidths:se,scrollerClientHeights:se});function Bd(t,e){for(let n of t)if(n.key===e)return n;return null}class vr extends L{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&mi(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:l}=s,a={event:new V(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&xu(i,n),isStartResizable:!e.disableResizing&&Ou(i,n),isEndResizable:!e.disableResizing&&Nu(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return v(ue,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Pu(a),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&mi(this.el,this.props.seg)}}class Vd extends L{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,l=r.eventTimeFormat||e.defaultTimeFormat,a=Ks(i,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return v(vr,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:el(i,n),defaultGenerator:Ld,timeText:a}),(o,u)=>v(U,null,v(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&v("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Ld(t){return v("div",{className:"fc-event-main-frame"},t.timeText&&v("div",{className:"fc-event-time"},t.timeText),v("div",{className:"fc-event-title-container"},v("div",{className:"fc-event-title fc-sticky"},t.event.title||v(U,null," "))))}const jd=G({day:"numeric"});class ml extends L{constructor(){super(...arguments),this.refineRenderProps=Ct(Ud)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return v(ue,Object.assign({},e,{elClasses:[...lr(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Jn(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function yl(t){return!!(t.dayCellContent||al("dayCellContent",t))}function Ud(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=Gs(e,t.todayRange,null,r),l=t.showDayNumber?n.format(e,i?t.monthStartFormat:jd):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:l}),t.extraRenderProps)}class zd extends L{render(){let{props:e}=this,{seg:n}=e;return v(vr,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Wd,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Wd(t){let{title:e}=t.event;return e&&v("div",{className:"fc-event-title"},t.event.title)}function Fd(t){return v("div",{className:`fc-${t}`})}const Gd=t=>v(Oe.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(i),a=n.format(i,s);return v(ue,Object.assign({},t,{renderProps:{num:l,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Yd,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function Yd(t){return t.text}const pn=10;class Qd extends L{constructor(){super(...arguments),this.state={titleId:Gt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&ce(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=xs(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return So(v("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),v("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},v("span",{className:"fc-popover-title",id:i.titleId},r.title),v("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),v("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,s=gu(n);if(s){let l=i.getBoundingClientRect(),a=r?Y(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,pn),o=Math.min(o,document.documentElement.clientWidth-pn-l.width),o=Math.max(o,pn);let u=i.offsetParent.getBoundingClientRect();Je(i,{top:a-u.top,left:o-u.left})}}}class qd extends Pe{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:l}=r,a=n.format(i,e.dayPopoverFormat);return v(ml,{elRef:this.handleRootEl,date:i,dateProfile:l,todayRange:s},(o,u,c)=>v(Qd,{elRef:c.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},yl(e)&&v(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:l}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:l.dateProfile,dateSpan:Object.assign({allDay:!l.forceTimed,range:{start:l.startDate,end:l.endDate}},l.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class $d extends L{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Gt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&ce(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=wi(n).start;function l(a){let{def:o,instance:u,range:c}=a.eventRange;return{event:new V(r,o,u),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return v(Oe.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:l}=r,{moreLinkText:a}=s,{moreCnt:o}=e,u=wi(e),c=typeof a=="function"?a.call(l,o):`+${o} ${a}`,f=Ke(s.moreLinkHint,[o],c),h={num:o,shortText:`+${o}`,text:c,view:i};return v(U,null,!!e.moreCnt&&v(ue,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Ns(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Zd,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&v(qd,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Y(this.linkEl,".fc-view-harness"))}}function Zd(t){return t.text}function wi(t){if(t.allDayDate)return{start:t.allDayDate,end:Q(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Xd(e),end:Kd(e)}}function Xd(t){return t.reduce(Jd).eventRange.range.start}function Jd(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Kd(t){return t.reduce(ef).eventRange.range.end}function ef(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Ci extends L{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return v(ue,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...bl(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function bl(t){return[`fc-${t.type}-view`,"fc-view"]}const tf={id:String,defaultAllDay:Boolean,url:String,format:String,events:g,eventDataTransform:g,success:g,failure:g};function El(t,e,n=Al(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=er(r,n),l=nf(i,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Me(),sourceDefId:l.sourceDefId,meta:l.meta,ui:Lt(i,e),extendedProps:s}}return null}function Al(t){return Object.assign(Object.assign(Object.assign({},Vt),tf),t.pluginHooks.eventSourceRefiners)}function nf(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}class rf{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,l;for(let a in n)i.push(a);for(s=0;s<i.length;s+=1)if(l=n[i[s]],l&&l.singleUnit===e)return l;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:dt(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=x(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),G(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),G(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),s=Vu(r,i.dateEnv,x({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Zs(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Ru(e,n))}addEvent(e,n){if(e instanceof V){let l=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[l.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Cn({def:l,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Ve)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=Xn(r.eventSources));else if(n!=null){let l=this.getEventSourceById(n);if(!l)return console.warn(`Could not find an event source with ID "${n}"`),null;i=l.internalEventSource}let s=Ls(e,i,r,!1);if(s){let l=new V(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Cn(s)}),this.triggerEventAdd(l),l}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Xs(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let l=r[s];if(l.publicId===e){if(l.recurringDef)return new V(n,l,null);for(let a in i){let o=i[a];if(o.defId===l.defId)return new V(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Te(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new Ve(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new Ve(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Ve)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=El(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Ve(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=x(e);n&&this.trigger("_scrollRequest",{time:n})}}class sf{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class lf extends sf{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const af=[],Sl={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"},Dl=Object.assign(Object.assign({},Sl),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function of(t){let e=t.length>0?t[0].code:"en",n=af.concat(t),r={en:Dl};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function _l(t,e){return typeof t=="object"&&!Array.isArray(t)?wl(t.code,[t.code],t):cf(t,e)}function cf(t,e){let n=[].concat(t||[]),r=uf(n,e)||Dl;return wl(t,n,r)}function uf(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function wl(t,e,n){let r=Zn([Sl,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function Ee(t){return{id:Me(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function df(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(s){for(let l of s){const a=l.name,o=n[a];o===void 0?(n[a]=l.id,i(l.deps),r=hf(r,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function ff(){let t=[],e=[],n;return(r,i)=>((!n||!ye(r,t)||!ye(i,e))&&(n=df(r,i)),t=r,e=i,n)}function hf(t,e){return{premiumReleaseDate:gf(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function gf(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Ae extends ut{}Ae.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Ae.prototype.baseIconClass="fc-icon";Ae.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"};Ae.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Ae.prototype.iconOverrideOption="buttonIcons";Ae.prototype.iconOverrideCustomButtonOption="icon";Ae.prototype.iconOverridePrefix="fc-icon-";function pf(t,e){let n={},r;for(r in t)In(r,n,t,e);for(r in e)In(r,n,t,e);return n}function In(t,e,n,r){if(e[t])return e[t];let i=vf(t,e,n,r);return i&&(e[t]=i),i}function vf(t,e,n,r){let i=n[t],s=r[t],l=c=>i&&i[c]!==null?i[c]:s&&s[c]!==null?s[c]:null,a=l("component"),o=l("superType"),u=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");u=In(o,e,n,r)}return!a&&u&&(a=u.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),s?s.rawOptions:{})}:null}function Ri(t){return xe(t,mf)}function mf(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Ti(e):n&&!(n.prototype instanceof L)&&(n=Ti(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Ti(t){return e=>v(Oe.Consumer,null,n=>v(ue,{elTag:"div",elClasses:bl(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function yf(t,e,n,r){let i=Ri(t),s=Ri(e.views),l=pf(i,s);return xe(l,a=>bf(a,s,e,n,r))}function bf(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,l=null,a="",o="",u={};if(s&&(l=Ef(s),l)){let h=_n(l);a=h.unit,h.value===1&&(o=a,u=e[a]?e[a].rawOptions:{})}let c=h=>{let d=h.buttonText||{},p=t.defaults.buttonTextKey;return p!=null&&d[p]!=null?d[p]:d[t.type]!=null?d[t.type]:d[o]!=null?d[o]:null},f=h=>{let d=h.buttonHints||{},p=t.defaults.buttonTextKey;return p!=null&&d[p]!=null?d[p]:d[t.type]!=null?d[t.type]:d[o]!=null?d[o]:null};return{type:t.type,component:t.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},u),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(i)||t.defaults.buttonText||c(et)||t.type,buttonTitleOverride:f(r)||f(n)||t.overrides.buttonHint,buttonTitleDefault:f(i)||t.defaults.buttonHint||f(et)}}let ki={};function Ef(t){let e=JSON.stringify(t),n=ki[e];return n===void 0&&(n=x(t),ki[e]=n),n}function Af(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Sf(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Df(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function _f(t,e,n){let r=e?e.activeRange:null;return Rl({},Mf(t,n),r,n)}function wf(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Rl(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Rf(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Tl(t,i,r):t;case"FETCH_EVENT_SOURCES":return mr(t,e.sourceIds?Hs(e.sourceIds):kl(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return If(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Cf(t,e,n){let r=e?e.activeRange:null;return mr(t,kl(t,n),r,!0,n)}function Cl(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Rl(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Tl(i,n,r)),Object.assign(Object.assign({},t),i)}function Rf(t,e){return ke(t,n=>n.sourceId!==e)}function Tl(t,e,n){return mr(t,ke(t,r=>Tf(r,e,n)),e,!1,n)}function Tf(t,e,n){return Il(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function mr(t,e,n,r,i){let s={};for(let l in t){let a=t[l];e[l]?s[l]=kf(a,n,r,i):s[l]=a}return s}function kf(t,e,n,r){let{options:i,calendarApi:s}=r,l=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=Me();return l.fetch({eventSource:t,range:e,isRefetch:n,context:r},o=>{let{rawEvents:u}=o;i.eventSourceSuccess&&(u=i.eventSourceSuccess.call(s,u,o.response)||u),t.success&&(u=t.success.call(s,u,o.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:u})},o=>{let u=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,o),u=!0),t.failure&&(t.failure(o),u=!0),u||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function If(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function kl(t,e){return ke(t,n=>Il(n,e))}function Mf(t,e){let n=Al(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let l=El(s,e,n);l&&i.push(l)}return i}function Il(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function xf(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function Of(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function Nf(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Pf(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Hf(t,e,n,r,i){let s=t.headerToolbar?Ii(t.headerToolbar,t,e,n,r,i):null,l=t.footerToolbar?Ii(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:l}}function Ii(t,e,n,r,i,s){let l={},a=[],o=!1;for(let u in t){let c=t[u],f=Bf(c,e,n,r,i,s);l[u]=f.widgets,a.push(...f.viewsWithButtons),o=o||f.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function Bf(t,e,n,r,i,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},u=e.buttonText||{},c=n.buttonHints||{},f=e.buttonHints||{},h=t?t.split(" "):[],d=[],p=!1;return{widgets:h.map(m=>m.split(",").map(A=>{if(A==="title")return p=!0,{buttonName:A};let _,w,D,R,k,b;if(_=a[A])D=S=>{_.click&&_.click.call(S.target,S,S.target)},(R=r.getCustomButtonIconClass(_))||(R=r.getIconClass(A,l))||(k=_.text),b=_.hint||_.text;else if(w=i[A]){d.push(A),D=()=>{s.changeView(A)},(k=w.buttonTextOverride)||(R=r.getIconClass(A,l))||(k=w.buttonTextDefault);let S=w.buttonTextOverride||w.buttonTextDefault;b=Ke(w.buttonTitleOverride||w.buttonTitleDefault||e.viewHint,[S,A],S)}else if(s[A])if(D=()=>{s[A]()},(k=o[A])||(R=r.getIconClass(A,l))||(k=u[A]),A==="prevYear"||A==="nextYear"){let S=A==="prevYear"?"prev":"next";b=Ke(c[S]||f[S],[u.year||"year","year"],u[A])}else b=S=>Ke(c[A]||f[A],[u[S]||S,S],u[A]);return{buttonName:A,buttonClick:D,buttonIcon:R,buttonText:k,buttonHint:b}})),viewsWithButtons:d,hasTitle:p}}class Vf{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let Lf={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const jf=Ee({name:"array-event-source",eventSourceDefs:[Lf]});let Uf={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;pu(i.bind(null,tl(t.range,r)),s=>e({rawEvents:s}),n)}};const zf=Ee({name:"func-event-source",eventSourceDefs:[Uf]}),Wf={method:String,extraParams:g,startParam:String,endParam:String,timeZoneParam:String};let Ff={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=Yf(r,t.range,t.context);_d(r.method,r.url,i).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const Gf=Ee({name:"json-event-source",eventSourceRefiners:Wf,eventSourceDefs:[Ff]});function Yf(t,e,n){let{dateEnv:r,options:i}=n,s,l,a,o,u={};return s=t.startParam,s==null&&(s=i.startParam),l=t.endParam,l==null&&(l=i.endParam),a=t.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(u,o),u[s]=r.formatIso(e.start),u[l]=r.formatIso(e.end),r.timeZone!=="local"&&(u[a]=r.timeZone),u}const Qf={daysOfWeek:g,startTime:x,endTime:x,duration:x,startRecur:g,endRecur:g};let qf={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=ec(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Fe(e,{start:t.startRecur,end:t.endRecur});return r?Zf(t.daysOfWeek,t.startTime,r,n):[]}};const $f=Ee({name:"simple-recurring-event",recurringTypes:[qf],eventRefiners:Qf});function Zf(t,e,n,r){let i=t?Hs(t):null,s=B(n.start),l=n.end,a=[];for(;s<l;){let o;(!i||i[s.getUTCDay()])&&(e?o=r.add(s,e):o=s,a.push(o)),s=Q(s,1)}return a}const Xf=Ee({name:"change-handler",optionChangeHandlers:{events(t,e){Mi([t],e)},eventSources:Mi}});function Mi(t,e){let n=Xn(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let s=!1;for(let l=0;l<n.length;l+=1)if(n[l]._raw===i){n.splice(l,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function Jf(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},tl(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Kf(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Te(t,e))}const eh=[jf,zf,Gf,$f,Xf,Ee({name:"misc",isLoadingFuncs:[t=>Cl(t.eventSources)],propSetHandlers:{dateProfile:Jf,eventStore:Kf}})];class th{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new pr(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function nh(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,G(e.titleFormat||rh(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function rh(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Pt(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class ih{constructor(e){this.computeCurrentViewData=O(this._computeCurrentViewData),this.organizeRawLocales=O(of),this.buildLocale=O(_l),this.buildPluginHooks=ff(),this.buildDateEnv=O(sh),this.buildTheme=O(lh),this.parseToolbars=O(Hf),this.buildViewSpecs=O(yf),this.buildDateProfileGenerator=Ct(ah),this.buildViewApi=O(oh),this.buildViewUiProps=Ct(dh),this.buildEventUiBySource=O(ch,se),this.buildEventUiBases=O(uh),this.parseContextBusinessHours=Ct(fh),this.buildTitle=O(nh),this.emitter=new $t,this.actionRunner=new th(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=Cu(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(l);me(a.activeRange,l)||(l=a.currentRange.start);let o={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of r.pluginHooks.contextInit)h(o);let u=_f(r.calendarOptions,a,o),c={dynamicOptionOverrides:n,currentViewType:i,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:u,eventUiBases:{},eventStore:te(),renderableEventStore:te(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},f=Object.assign(Object.assign({},o),c);for(let h of r.pluginHooks.reducers)Object.assign(c,h(null,null,f));vn(c,o)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=Sf(r.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=Af(r.currentViewType,e),o=this.computeCurrentViewData(a,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(o.options);let u={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:f}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(f=o.dateProfileGenerator.build(c)),c=wu(c,e),f=Df(f,e,c,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!me(f.currentRange,c))&&(c=f.currentRange.start);let h=wf(r.eventSources,e,f,u),d=fd(r.eventStore,e,h,f,u),y=Cl(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||d,{eventUiSingleBase:m,selectionConfig:A}=this.buildViewUiProps(u),_=this.buildEventUiBySource(h),w=this.buildEventUiBases(y.defs,m,_),D={dynamicOptionOverrides:s,currentViewType:a,currentDate:c,dateProfile:f,eventSources:h,eventStore:d,renderableEventStore:y,selectionConfig:A,eventUiBases:w,businessHours:this.parseContextBusinessHours(u),dateSelection:xf(r.dateSelection,e),eventSelection:Of(r.eventSelection,e),eventDrag:Nf(r.eventDrag,e),eventResize:Pf(r.eventResize,e)},R=Object.assign(Object.assign({},u),D);for(let S of l.pluginHooks.reducers)Object.assign(D,S(r,e,R));let k=vn(r,u),b=vn(D,u);!k&&b?i.trigger("loading",!0):k&&!b&&i.trigger("loading",!1),this.state=D,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),a=i.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,u=i.calendarOptions;if(o&&o!==u){o.timeZone!==u.timeZone&&(n.eventSources=l.eventSources=Cf(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=Si(l.eventStore,r.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=Si(l.renderableEventStore,r.dateEnv,l.dateEnv));for(let c in a)(this.optionsForHandling.indexOf(c)!==-1||o[c]!==u[c])&&a[c](u[c],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,n);xi(o);let u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),c=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),f=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,f,c,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:u,viewSpecs:c,theme:f,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=cn([et,e,n]),s=this.organizeRawLocales(r),l=s.map,a=this.buildLocale(i||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],eh),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ci),ui),di),o.listenerRefiners),o.optionRefiners),c={},f=cn([et,a,e,n]),h={},d=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,y=!1;for(let m in f)this.optionsForRefining.indexOf(m)===-1&&(f[m]===d[m]||De[m]&&m in d&&De[m](d[m],f[m]))?h[m]=p[m]:u[m]?(h[m]=u[m](f[m]),y=!0):c[m]=d[m];return y&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:a,extra:c}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);xi(a);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:u}}processRawViewOptions(e,n,r,i,s){let l=cn([et,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ci),ui),di),Hc),n.listenerRefiners),n.optionRefiners),o={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,f=!1,h={};for(let d in l)l[d]===u[d]||De[d]&&De[d](l[d],u[d])?o[d]=c[d]:(l[d]===this.currentCalendarOptionsInput[d]||De[d]&&De[d](l[d],this.currentCalendarOptionsInput[d])?d in this.currentCalendarOptionsRefined&&(o[d]=this.currentCalendarOptionsRefined[d]):a[d]?o[d]=a[d](l[d]):h[d]=l[d],f=!0);return f&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function sh(t,e,n,r,i,s,l,a){let o=_l(e||l.defaultCode,l.map);return new $u({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function lh(t,e){let n=e.themeClasses[t.themeSystem]||Ae;return new n(t)}function ah(t){let e=t.dateProfileGeneratorClass||$s;return new e(t)}function oh(t,e,n){return new Vf(t,e,n)}function ch(t){return xe(t,e=>e.ui)}function uh(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function dh(t){let{options:e}=t;return{eventUiSingleBase:Lt({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:Lt({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function vn(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function fh(t){return $c(t.options.businessHours,t)}function xi(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class hh extends L{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return v("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:u,buttonIcon:c,buttonHint:f}=l;if(a==="title")s=!1,i.push(v("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,d=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",p=[`fc-${a}-button`,r.getClass("button")];h&&p.push(r.getClass("buttonActive")),i.push(v("button",{type:"button",title:typeof f=="function"?f(n.navUnit):f,disabled:d,"aria-pressed":h,className:p.join(" "),onClick:o},u||(c?v("span",{className:c}):"")))}}if(i.length>1){let l=s&&r.getClass("buttonGroup")||"";return v("div",{className:l},...i)}return i[0]}}class Oi extends L{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,l=e.sectionWidgets,a=l.center;return l.left?(r=!0,i=l.left):i=l.start,l.right?(r=!0,s=l.right):s=l.end,v("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return v(hh,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class gh extends L{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,ce(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return r?n.availableWidth!==null?s=n.availableWidth/r:l=`${1/r*100}%`:s=e.height||"",v("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class ph extends qe{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,l=Ge(r);if(l&&i.isValidSegDownEl(n.target)){let a=Y(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new V(i.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=Os(e.el,"click",".fc-event",this.handleSegClick)}}class vh extends qe{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Ge(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=Lo(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,l=Ge(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new V(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class mh extends Ne{constructor(){super(...arguments),this.buildViewContext=O(Su),this.buildViewPropTransformers=O(bh),this.buildToolbarProps=O(yh),this.headerRef=oe(),this.footerRef=oe(),this.interactionsStore={},this.state={viewLabelId:Gt()},this.registerInteractiveComponent=(e,n)=>{let r=Xu(e,n),l=[ph,vh].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=l,kn[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete kn[e.uid]},this.resizeRunner=new pr(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,dt(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",a;e.isHeightAuto||e.forPrint?l="":r.height!=null?s=!0:r.contentHeight!=null?l=r.contentHeight:a=Math.max(r.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return v(Oe.Provider,{value:o},n.header&&v(Oi,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},i)),v(gh,{liquid:s,height:l,aspectRatio:a,labeledById:u},this.renderView(e),this.buildAppendContent()),n.footer&&v(Oi,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return v(U,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(i,a.transform(i,e));let l=r.component;return v(l,Object.assign({},i))}}function yh(t,e,n,r,i,s){let l=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),o=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!me(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function bh(t){return t.map(e=>new e)}let Eh=class extends rf{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;gi(()=>{it(v(Ku,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,l,a)=>(this.setClassNames(i),this.setHeight(s),v(cl.Provider,{value:this.customContentRenderId},v(mh,Object.assign({isHeightAuto:l,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,it(null,this.el),this.setClassNames([]),this.setHeight(""))},Io(e),this.el=e,this.renderRunner=new pr(this.handleRenderRequest),new ih({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){gi(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!ye(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Ms(this.el,"height",e)}};const Ah={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Sh=qi({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:Ch(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(Dt(_h,{key:e.id,customRendering:e}));return Dt("div",{attrs:{"data-fc-render-id":this.renderId}},Dt(Ye,t))},mounted(){const t=new lf;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new Eh(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:wh()}),Dh=Sh,_h=qi({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return Dt(ba,{to:t.containerEl},e)}});function wh(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in Ah)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function Ch(t){const e={};for(const n in t)e[Rh(n)]=t[n];return e}function Rh(t){return t.split("-").map((e,n)=>n?Th(e):e).join("")}function Th(t){return t.charAt(0).toUpperCase()+t.slice(1)}var kh=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';Ts(kh);function At(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function St(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function Ni(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const Ml=G({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function xl(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Ol extends L{render(){let{props:e}=this;return v(Vd,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Ml,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Nl extends L{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||Ml,l=Ks(i,s,n,!0,e.defaultDisplayEventEnd);return v(vr,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:el(e.seg,n),defaultGenerator:Ih,timeText:l,isResizing:!1,isDateSelecting:!1}))}}function Ih(t){return v(U,null,v("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&v("div",{className:"fc-event-time"},t.timeText),v("div",{className:"fc-event-title"},t.event.title||v(U,null," ")))}class Mh extends L{constructor(){super(...arguments),this.compileSegs=O(xh)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return v($d,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return v(U,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return v("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:i[l]?"hidden":""}},xl(s)?v(Nl,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},tt(s,e.todayRange))):v(Ol,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},tt(s,e.todayRange))))}))}})}}function xh(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const Oh=G({week:"narrow"});class Nh extends Pe{constructor(){super(...arguments),this.rootElRef=oe(),this.state={dayNumberId:Gt()},this.handleRootEl=e=>{ce(this.rootElRef,e),ce(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=n;const u=n.showDayNumber&&Hh(a,o.currentRange,l);return v(ml,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Ph,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:u,extraRenderProps:n.extraRenderProps},(c,f)=>v("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&v(Gd,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Tn(e,a,"week"),date:a,defaultFormat:Oh}),!f.isDisabled&&(n.showDayNumber||yl(s)||n.forceDayTop)?v("div",{className:"fc-daygrid-day-top"},v(c,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Tn(e,a)),{id:r.dayNumberId})})):n.showDayNumber?v("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},v("a",{className:"fc-daygrid-day-number"}," ")):void 0,v("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,v("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},v(Mh,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),v("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Ph(t){return t.dayNumberText||v(U,null," ")}function Hh(t,e,n){const{start:r,end:i}=e,s=be(i,-1),l=n.getYear(r),a=n.getMonth(r),o=n.getYear(s),u=n.getMonth(s);return!(l===o&&a===u)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function Bh(t,e,n,r,i,s,l){let a=new jh;a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let o=[],u=[];for(let A=0;A<t.length;A+=1){let _=t[A],{instanceId:w}=_.eventRange.instance,D=i[w];D!=null?o.push({index:A,thickness:D,span:{start:_.firstCol,end:_.lastCol+1}}):u.push(_)}let c=a.addSegs(o),f=a.toRects(),{singleColPlacements:h,multiColPlacements:d,leftoverMargins:p}=Vh(f,t,l),y=[],m=[];for(let A of u){d[A.firstCol].push({seg:A,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let _=A.firstCol;_<=A.lastCol;_+=1)h[_].push({seg:ze(A,_,_+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<l.length;A+=1)y.push(0);for(let A of c){let _=t[A.index],w=A.span;d[w.start].push({seg:ze(_,w.start,w.end,l),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let D=w.start;D<w.end;D+=1)y[D]+=1,h[D].push({seg:ze(_,D,D+1,l),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<l.length;A+=1)m.push(p[A]);return{singleColPlacements:h,multiColPlacements:d,moreCnts:y,moreMarginTops:m}}function Vh(t,e,n){let r=Lh(t,n.length),i=[],s=[],l=[];for(let a=0;a<n.length;a+=1){let o=r[a],u=[],c=0,f=0;for(let d of o){let p=e[d.index];u.push({seg:ze(p,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:d.levelCoord,marginTop:d.levelCoord-c}),c=d.levelCoord+d.thickness}let h=[];c=0,f=0;for(let d of o){let p=e[d.index],y=d.span.end-d.span.start>1,m=d.span.start===a;f+=d.levelCoord-c,c=d.levelCoord+d.thickness,y?(f+=d.thickness,m&&h.push({seg:ze(p,d.span.start,d.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:d.levelCoord,marginTop:0})):m&&(h.push({seg:ze(p,d.span.start,d.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:d.levelCoord,marginTop:f}),f=0)}i.push(u),s.push(h),l.push(f)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:l}}function Lh(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function ze(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,l=Fe(s,{start:r[e].date,end:Q(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:l},isStart:t.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===s.end.valueOf()})}class jh extends Zu{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[nt(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:l,touchingLevel:a,touchingLateral:o}=e;if(this.hiddenConsumes&&l){const u=nt(l);if(!s[u])if(this.allowReslicing){const c=Object.assign(Object.assign({},l),{span:il(l.span,n.span)}),f=nt(c);s[f]=!0,i[a][o]=c,this.splitEntry(l,n,r)}else s[u]=!0,r.push(l)}return super.handleInvalidInsertion(e,n,r)}}class Pl extends Pe{constructor(){super(...arguments),this.cellElRefs=new Re,this.frameElRefs=new Re,this.fgElRefs=new Re,this.segHarnessRefs=new Re,this.rootElRef=oe(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,l=St(e.businessHourSegs,s),a=St(e.bgEventSegs,s),o=St(this.getHighlightSegs(),s),u=St(this.getMirrorSegs(),s),{singleColPlacements:c,multiColPlacements:f,moreCnts:h,moreMarginTops:d}=Bh(Iu(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,e.cells),p=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return v("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((y,m)=>{let A=this.renderFgSegs(m,e.forPrint?c[m]:f[m],e.todayRange,p),_=this.renderFgSegs(m,Uh(u[m],f),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return v(Nh,{key:y.key,elRef:this.cellElRefs.createRef(y.key),innerElRef:this.frameElRefs.createRef(y.key),dateProfile:e.dateProfile,date:y.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&m===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:y.extraRenderProps,extraDataAttrs:y.extraDataAttrs,extraClassNames:y.extraClassNames,extraDateSpan:y.extraDateSpan,moreCnt:h[m],moreMarginTop:d[m],singlePlacements:c[m],fgContentElRef:this.fgElRefs.createRef(y.key),fgContent:v(U,null,v(U,null,A),v(U,null,_)),bgContent:v(U,null,this.renderFillSegs(o[m],"highlight"),this.renderFillSegs(l[m],"non-business"),this.renderFillSegs(a[m],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!se(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,s,l,a){let{context:o}=this,{eventSelection:u}=this.props,{framePositions:c}=this.state,f=this.props.cells.length===1,h=s||l||a,d=[];if(c)for(let p of n){let{seg:y}=p,{instanceId:m}=y.eventRange.instance,A=m+":"+e,_=p.isVisible&&!i[m],w=p.isAbsolute,D="",R="";w&&(o.isRtl?(R=0,D=c.lefts[y.lastCol]-c.lefts[y.firstCol]):(D=0,R=c.rights[y.firstCol]-c.rights[y.lastCol])),d.push(v("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:A,ref:h?null:this.segHarnessRefs.createRef(A),style:{visibility:_?"":"hidden",marginTop:w?"":p.marginTop,top:w?p.absoluteTop:"",left:D,right:R}},xl(y)?v(Nl,Object.assign({seg:y,isDragging:s,isSelected:m===u,defaultDisplayEventEnd:f},tt(y,r))):v(Ol,Object.assign({seg:y,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:m===u,defaultDisplayEventEnd:f},tt(y,r)))))}return d}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=r?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(v("div",{key:Hu(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?v(zd,Object.assign({seg:a},tt(a,i))):Fd(n)))}return v(U,{},...l)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(u=>i.currentMap[u.key]);if(o.length){let u=this.rootElRef.current,c=new jt(u,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new jt(u,o,!0,!1)})}}const s=this.state.eventInstanceHeights,l=this.queryEventInstanceHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height),s=r.split(":")[0];n[s]=Math.max(n[s]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Pl.addStateEquality({eventInstanceHeights:se});function Uh(t,e){if(!t.length)return[];let n=zh(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function zh(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class Wh extends Pe{constructor(){super(...arguments),this.splitBusinessHourSegs=O(At),this.splitBgEventSegs=O(At),this.splitFgEventSegs=O(At),this.splitDateSelectionSegs=O(At),this.splitEventDrag=O(Ni),this.splitEventResize=O(Ni),this.rowRefs=new Re}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),u=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return v(gr,{unit:"day"},(f,h)=>v(U,null,e.cells.map((d,p)=>v(Pl,{ref:this.rowRefs.createRef(p),key:d.length?d[0].date.toISOString():p,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:d,renderIntro:e.renderRowIntro,businessHourSegs:i[p],eventSelection:e.eventSelection,bgEventSegs:s[p].filter(Fh),fgEventSegs:l[p],dateSelectionSegs:a[p],eventDrag:o[p],eventResize:u[p],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){const e=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=e?e.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new jt(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new jt(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),l=i.topToIndex(n);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[l],bottom:i.bottoms[l]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=Q(r,1);return{start:r,end:i}}}function Fh(t){return t.eventRange.def.allDay}class Gh extends Pe{constructor(){super(...arguments),this.elRef=oe(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return v("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},v("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,v("tbody",{role:"presentation"},v(Wh,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Yh(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function Yh(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Ec(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Jn(e.currentDate)}"]`)),n}class Qh extends dd{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class qh extends Pe{constructor(){super(...arguments),this.slicer=new Qh,this.tableRef=oe()}render(){let{props:e,context:n}=this;return v(Gh,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class $h extends $s{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return Zh({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function Zh(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=ri(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(Q(n.end,-1))),a=Math.ceil(oc(l,i));i=ri(i,6-a)}return{start:r,end:i}}class Xh extends Pe{constructor(){super(...arguments),this.headerElRef=oe()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],l=_i(i.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),v(Ci,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},v(vl,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&_i(a.options),u=!l.forPrint&&Hd(a.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),u&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Pd}]}),v(Ci,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},v(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:c}))}}class Jh extends Xh{constructor(){super(...arguments),this.buildDayTableModel=O(Kh),this.headerRef=oe(),this.tableRef=oe()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&v(ad,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),l=a=>v(qh,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function Kh(t,e){let n=new cd(t.renderRange,e);return new ud(n,/year|month|week/.test(t.currentRangeUnit))}var Pi=Ee({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Jh,dateProfileGeneratorClass:$h},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});fr.touchMouseIgnoreWait=500;let Mn=0,zt=0,xn=!1;class Hl{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&eg(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,tg()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.pageXOffset-this.prevScrollX+this.prevPageX,i=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new $t,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),ng()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),rg()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Y(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){xn=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Y(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Mn||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(xn=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,l=0,a=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(l=i-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:l,deltaY:a}}}function eg(t){return t.button===0&&!t.ctrlKey}function tg(){Mn+=1,setTimeout(()=>{Mn-=1},fr.touchMouseIgnoreWait)}function ng(){zt+=1,zt===1&&window.addEventListener("touchmove",Bl,{passive:!1})}function rg(){zt-=1,zt||window.removeEventListener("touchmove",Bl,{passive:!1})}function Bl(t){xn&&t.preventDefault()}class ig{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=r-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",Je(r,{left:i.left,top:i.top}),jo(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(Qn(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Je(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.classList.add("fc-event-dragging"),Je(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class Vl extends or{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Ll extends Vl{constructor(e,n){super(new yu(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return hu(this.scrollController.el)}}class sg extends Vl{constructor(e){super(new bu,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Hi=typeof performance=="function"?performance.now:Date.now;class lg{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=Hi();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.pageXOffset,i=n-window.pageYOffset,s=this.pointerScreenY===null?0:i-this.pointerScreenY,l=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Hi()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,l=s*s/(i*i)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+l*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,u=a.right-e,c=n-a.top,f=a.bottom-n;o>=0&&u>=0&&c>=0&&f>=0&&(c<=r&&this.everMovedUp&&l.canScrollUp()&&(!i||i.distance>c)&&(i={scrollCache:l,name:"top",distance:c}),f<=r&&this.everMovedDown&&l.canScrollDown()&&(!i||i.distance>f)&&(i={scrollCache:l,name:"bottom",distance:f}),o<=r&&this.everMovedLeft&&l.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:l,name:"left",distance:o}),u<=r&&this.everMovedRight&&l.canScrollRight()&&(!i||i.distance>u)&&(i={scrollCache:l,name:"right",distance:u}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new sg(!1):new Ll(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class ft extends Ju{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Uo(document.body),Wo(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=i;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,zo(document.body),Fo(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new Hl(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new ig,this.autoScroller=new lg}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class ag{constructor(e){this.origRect=ar(e),this.scrollCaches=Qs(e).map(n=>new Ll(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!og(i.getEventTarget())&&!Xc(r,i.clientRect))return!1;return!0}}function og(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Zt{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new $t}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=ar(i),r=Jc(r,s));let l=this.initialHit=this.queryHitForOffset(r.left,r.top);if(l){if(this.useSubjectCenter&&s){let a=Ws(s,l.rect);a&&(r=Kc(a))}this.coordAdjust=eu(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!Xt(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=xe(this.droppableStore,e=>(e.component.prepareHits(),new ag(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let l in r){let a=r[l].component,o=i[l];if(o&&o.isWithinClipping(e,n)){let u=o.computeLeft(),c=o.computeTop(),f=e-u,h=n-c,{origRect:d}=o,p=d.right-d.left,y=d.bottom-d.top;if(f>=0&&f<p&&h>=0&&h<y){let m=a.queryHit(f,h,p,y);m&&qt(m.dateProfile.activeRange,m.dateSpan.range)&&(!s||m.layer>s.layer)&&(m.componentId=l,m.context=a.context,m.rect.left+=u,m.rect.right+=u,m.rect.top+=c,m.rect.bottom+=c,s=m)}}}return s}}function Xt(t,e){return!t&&!e?!0:!!t!=!!e?!1:ju(t.dateSpan,e.dateSpan)}function jl(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,cg(t,e.dateEnv)),n}function cg(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class ug extends qe{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&Xt(l,a)){let{context:o}=i,u=Object.assign(Object.assign({},jl(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",u)}}},this.dragging=new ft(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Zt(this.dragging,dr(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class dg extends qe{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:u}=a.context,c=u.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!c),o.delay=l.isTouch?fg(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,u=null,c=!1;if(l){let f=this.hitDragging.initialHit;l.componentId===f.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(f,l)||(u=hg(f,l,o.pluginHooks.dateSelectionTransformers)),(!u||!yd(u,l.dateProfile,o))&&(c=!0,u=null)}u?o.dispatch({type:"SELECT_DATES",selection:u}):a||o.dispatch({type:"UNSELECT_DATES"}),c?qn():$n(),a||(this.dragSelection=u)},this.handlePointerUp=l=>{this.dragSelection&&(Zs(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new ft(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Zt(this.dragging,dr(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function fg(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function hg(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort($o);let l={};for(let a of n){let o=a(t,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=r.allDay,l}class ht extends qe{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let a=l.origEvent.target,{component:o,dragging:u}=this,{mirror:c}=u,{options:f}=o.context,h=o.context;this.subjectEl=l.subjectEl;let d=this.subjectSeg=Ge(l.subjectEl),y=(this.eventRange=d.eventRange).instance.instanceId;this.relevantEvents=nr(h.getCurrentData().eventStore,y),u.minDistance=l.isTouch?0:f.eventDragMinDistance,u.delay=l.isTouch&&y!==o.props.eventSelection?pg(o):null,f.fixedMirrorParent?c.parentNode=f.fixedMirrorParent:c.parentNode=Y(a,".fc"),c.revertDuration=f.dragRevertDuration;let m=o.isValidSegDownEl(a)&&!Y(a,".fc-event-resizer");u.setIgnoreMove(!m),this.isDragging=m&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,u=o.instance.instanceId;l.isTouch?u!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:u}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new V(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,u=this.hitDragging.initialHit,c=this.component.context,f=null,h=null,d=null,p=!1,y={affectedEvents:o,mutatedEvents:te(),isEvent:!0};if(l){f=l.context;let m=f.options;c===f||m.editable&&m.droppable?(h=gg(u,l,f.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(d=ur(o,f.getCurrentData().eventUiBases,h,f),y.mutatedEvents=d,fl(y,l.dateProfile,f)||(p=!0,h=null,d=null,y.mutatedEvents=te()))):f=null}this.displayDrag(f,y),p?qn():$n(),a||(c===f&&Xt(u,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=f,this.validMutation=h,this.mutatedRelevantEvents=d)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:u,validMutation:c}=this,f=this.eventRange.def,h=this.eventRange.instance,d=new V(a,f,h),p=this.relevantEvents,y=this.mutatedRelevantEvents,{finalHit:m}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:d,jsEvent:l.origEvent,view:o}),c){if(u===a){let A=new V(a,y.defs[f.defId],h?y.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:y});let _={oldEvent:d,event:A,relatedEvents:Te(y,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:p})}},w={};for(let D of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(w,D(c,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},_),w),{el:l.subjectEl,delta:c.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",_)}else if(u){let A={event:d,relatedEvents:Te(p,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:p})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},A),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:p}),a.emitter.trigger("eventRemove",A);let _=y.defs[f.defId],w=y.instances[h.instanceId],D=new V(u,_,w);u.dispatch({type:"MERGE_EVENTS",eventStore:y});let R={event:D,relatedEvents:Te(y,u,w),revert(){u.dispatch({type:"REMOVE_EVENTS",eventStore:y})}};u.emitter.trigger("eventAdd",R),l.isTouch&&u.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),u.emitter.trigger("drop",Object.assign(Object.assign({},jl(m.dateSpan,u)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:m.context.viewApi})),u.emitter.trigger("eventReceive",Object.assign(Object.assign({},R),{draggedEl:l.subjectEl,view:m.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new ft(e.el);i.pointer.selector=ht.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Zt(this.dragging,kn);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:te(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}ht.SELECTOR=".fc-event-draggable, .fc-event-resizable";function gg(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=r.range.start,l=i.range.start,a={};r.allDay!==i.allDay&&(a.allDay=i.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,i.allDay&&(s=B(s)));let o=Le(s,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);o.milliseconds&&(a.allDay=!1);let u={datesDelta:o,standardProps:a};for(let c of n)c(u,t,e);return u}function pg(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class vg extends qe{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,a=this.querySegEl(s),o=Ge(a),u=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==u.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=nr(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=Ge(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new V(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,u=this.relevantEvents,c=this.hitDragging.initialHit,f=this.eventRange.instance,h=null,d=null,p=!1,y={affectedEvents:u,mutatedEvents:te(),isEvent:!0};s&&(s.componentId===c.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(c,s)||(h=mg(c,s,a.subjectEl.classList.contains("fc-event-resizer-start"),f.range))),h&&(d=ur(u,o.getCurrentData().eventUiBases,h,o),y.mutatedEvents=d,fl(y,s.dateProfile,o)||(p=!0,h=null,d=null,y.mutatedEvents=null)),d?o.dispatch({type:"SET_EVENT_RESIZE",state:y}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),p?qn():$n(),l||(h&&Xt(c,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=d)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,u=new V(l,a,o),c=this.relevantEvents,f=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:u,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new V(l,f.defs[a.defId],o?f.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:f});let d={oldEvent:u,event:h,relatedEvents:Te(f,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:c})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},d),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||x(0),endDelta:this.validMutation.endDelta||x(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",d)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new ft(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Zt(this.dragging,dr(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Y(e.subjectEl,".fc-event")}}function mg(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=Le(s,l,i,t.largeUnit);if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}class yg{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=xs(r.origEvent);this.matchesCancel=!!Y(s,i),this.matchesEvent=!!Y(s,ht.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,l=i.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=i.options.unselectAuto;a&&(!a||!this.matchesCancel)&&i.calendarApi.unselect(r)}l.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new Hl(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const bg={fixedMirrorParent:g},Eg={dateClick:g,eventDragStart:g,eventDragStop:g,eventDrop:g,eventResizeStart:g,eventResizeStop:g,eventResize:g,drop:g,eventReceive:g,eventLeave:g};fr.dataAttrPrefix="";var Bi=Ee({name:"@fullcalendar/interaction",componentInteractions:[ug,dg,ht,vg],calendarInteractions:[yg],elementDraggingImpl:ft,optionRefiners:bg,listenerRefiners:Eg});const Ag={name:"Calendar",components:{FullCalendar:Dh},setup(){return{calendarOptions:Ea({plugins:[Pi,Bi,Bi,Pi],initialView:"dayGridMonth",locale:"ru",events:[{title:"event 1",date:"2023-09-21"},{title:"event 2",date:"2023-09-22"}],editable:!0,headerToolbar:{left:"prev, next, today",center:"title",right:"dayGridMonth, dayGridWeek, listDay"},dateClick:e=>{console.log(e.date)}})}}};function Sg(t,e,n,r,i,s){const l=Xe("full-calendar");return K(),ae(l,{options:r.calendarOptions},null,8,["options"])}const Dg=at(Ag,[["render",Sg]]);const _g={components:{NewsList:Oa,CarouselList:Qa,CarouselNumbers:eo,VDatePicker:oo,Calendar:Dg},setup(){const t=F([]),e=F(["2023-09-19","2023-09-18","2023-09-1"]);Un(()=>{a()});const n=Aa();Sa();const r=null,i=Vi(),s=[{status:"Работа",num:"57",img:"/media/newsimage/default.jpg"},{status:"Отпуск",num:"13",img:"/media/newsimage/numbers/vacation.jpg"},{status:"Болеют",num:"3",img:"/media/newsimage/numbers/med.jpg"},{status:"На море",num:"45",img:"/media/newsimage/numbers/vacation.jpg"},{status:"Дома",num:"1",img:"/media/newsimage/numbers/med.jpg"}],l=F([{status:"Всего",num:n.countvisitor.totalvisit,img:"/media/newsimage/numbers/calendar.jpg"},{status:"Сегодня",num:n.countvisitor.visittoday,img:"/media/newsimage/numbers/sept.jpg"},{status:"Уникальных",num:n.countvisitor.uniqtoday,img:"/media/newsimage/numbers/uni.jpg"}]);function a(){Da.get("api/feedback/feedbackdata/").then(o=>{console.log(o.data),t.value=o.data.results})}return{accountStore:i,stat:s,model:r,onlines:l,appStore:n,proba:a,date1:e}}};function wg(t,e,n,r,i,s){const l=Xe("Carousel-list"),a=Xe("calendar"),o=Xe("News-list");return K(),ae(Wn,{fluid:"",class:"d-flex mx-0"},{default:M(()=>[E(Kt,null,{default:M(()=>[E(gt,{class:"d-flex flex-column"},{default:M(()=>[E(Kt,{class:"flex-grow-0"},{default:M(()=>[E(gt,{class:"pr-0"},{default:M(()=>[E(l)]),_:1})]),_:1}),E(Kt,null,{default:M(()=>[E(gt,{class:"pt-1 pr-0 pb-0 flex-col"},{default:M(()=>[E(a)]),_:1})]),_:1})]),_:1}),E(gt,{class:"d-flex flex-column justify-space-between px-0 py-2 pb-0",lg:"3"},{default:M(()=>[E(je,{class:"h-100 bg-transparent",elevation:"0"},{default:M(()=>[r.accountStore.cod2user?(K(),ae(o,{key:0})):_a("",!0)]),_:1})]),_:1})]),_:1})]),_:1})}const Ig=at(_g,[["render",wg]]);export{Ig as default};
|