/*! FullCalendar v5.11.0 Docs & License: https://fullcalendar.io/ (c) 2021 Adam Shaw */ var FullCalendar=function(e){"use strict";var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function t(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>1,1),n.i.removeChild(e)}}),ae(z(Te,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(new D).__e=function(n){var r=this,o=we(r.__v),i=r.o.get(n);return i[0]++,function(e){function t(){r.props.revealOrder?(i.push(e),Re(r,n,i)):e()}o?o(t):t()}};var ke="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,xe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Me=(D.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(D.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}),b.event);function Ie(){}function Pe(){return this.cancelBubble}function Ne(){return this.defaultPrevented}b.event=function(e){return(e=Me?Me(e):e).persist=Ie,e.isPropagationStopped=Pe,e.isDefaultPrevented=Ne,e.nativeEvent=e};var He={configurable:!0,get:function(){return this.class}},Oe=b.vnode,Ae=(b.vnode=function(e){var t,n=e.type,r=e.props,o=r;if("string"==typeof n){for(var i in o={},r){var a=r[i];"value"===i&&"defaultValue"in r&&null==a||("defaultValue"===i&&"value"in r&&null==r.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&(t=r.type,!("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t))?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():xe.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),o[i]=a)}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=K(r.children).forEach(function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)})),"select"==n&&null!=o.defaultValue&&(o.value=K(r.children).forEach(function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value})),e.props=o}n&&r.class!=r.className&&(He.enumerable="className"in r,null!=r.className&&(o.class=r.className),Object.defineProperty(o,"className",He)),e.$$typeof=ke,Oe&&Oe(e)},b.__r),Le=(b.__r=function(e){Ae&&Ae(e)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance),"undefined"!=typeof globalThis?globalThis:window);Le.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):Le.FullCalendarVDom={Component:D,createElement:z,render:ae,createRef:function(){return{current:null}},Fragment:G,createContext:function(e){var e=function(e,r){return(e={__c:r="__cC"+ce++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,t;return this.getChildContext||(n=[],((t={})[r]=this).getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(Y)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}}).Provider.__=e.Consumer.contextType=e}(e),o=e.Provider;return e.Provider=function(){var n,e=this,t=!this.getChildContext,r=o.apply(this,arguments);return t&&(n=[],this.shouldComponentUpdate=function(t){e.props.value!==t.value&&n.forEach(function(e){e.context=t.value,e.forceUpdate()})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),r},e},createPortal:function(e,t){return z(_e,{__v:e,i:t})},flushSync:function(e){e();var e=b.debounceRendering,t=[];b.debounceRendering=function(e){t.push(e)},ae(z(We,{}),document.createElement("div"));for(;t.length;)t.shift()();b.debounceRendering=e},unmountComponentAtNode:function(e){ae(null,e)}};t(Ve,Ue=D),Ve.prototype.render=function(){return z("div",{})},Ve.prototype.componentDidMount=function(){this.setState({})};var Ue,We=Ve;function Ve(){return null!==Ue&&Ue.apply(this,arguments)||this}Be.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},Be.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(Be.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0});var Fe=Be;function Be(e,t){this.context=e,this.internalEventSource=t}function ze(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(je(e,t))return e}while(null!==(e=e.parentElement||e.parentNode)&&1===e.nodeType);return null}function je(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function Ge(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o=p(t)&&(o=d(o,1))),e.start&&(r=g(e.start),o&&o<=r&&(o=d(r,1))),{start:r,end:o}}function Qn(e){e=Jn(e);return 1i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return it.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function sr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t=(n||t.end),isToday:t&&sr(t,e.start)}}function br(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Dr(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function Cr(e,t){var e=e.eventRange,n=e.def,r=e.instance,e=n.url;if(e)return{href:e};var o=t.emitter,e=t.options.eventInteractive;return(e=null==e&&null==(e=n.interactive)?Boolean(o.hasHandlers("eventClick")):e)?ot(function(e){o.trigger("eventClick",{el:e.target,event:new N(t,n,r),jsEvent:e,view:t.viewApi})}):{}}var wr={start:n,end:n,allDay:Boolean};function Rr(e,t,n){var e=function(e,t){var e=Pn(e,wr),n=e.refined,e=e.extra,r=n.start?t.createMarkerMeta(n.start):null,t=n.end?t.createMarkerMeta(n.end):null,n=n.allDay;null==n&&(n=r&&r.isTimeUnspecified&&(!t||t.isTimeUnspecified));return I({range:{start:r?r.marker:null,end:t?t.marker:null},allDay:n},e)}(e,t),r=e.range;if(!r.start)return null;if(!r.end){if(null==n)return null;r.end=t.add(r.start,n)}return e}function Tr(e,t){return or(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)}function _r(e,t,n){return I(I({},kr(e,t,n)),{timeZone:t.timeZone})}function kr(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function xr(e,t,n){n.emitter.trigger("select",I(I({},Mr(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Mr(e,t){for(var n,r,o={},i=0,a=t.pluginHooks.dateSpanTransforms;i=t.left&&e.left=t.top&&e.top
",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=0=t.end)}}function ho(e,t){var n=["fc-day","fc-day-"+Dt[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}var go=a({year:"numeric",month:"long",day:"numeric"}),vo=a({week:"long"});function mo(e,n,r,t){void 0===r&&(r="day"),void 0===t&&(t=!0);var o,i,a=e.dateEnv,s=e.options,l=e.calendarApi,e=a.format(n,"week"===r?vo:go);return s.navLinks?(o=a.toDate(n),i=function(e){var t="day"===r?s.navLinkDayClick:"week"===r?s.navLinkWeekClick:null;"function"==typeof t?t.call(l,a.toDate(n),e):("string"==typeof t&&(r=t),l.zoomTo(n,r))},I({title:yt(s.navLinkHint,[e,o],e),"data-navlink":""},t?rt(i):{onClick:i})):{"aria-label":e}}var yo,Eo=null;function So(){var e,t;return null===Eo&&(Ye(e=document.createElement("div"),{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="
",document.body.appendChild(e),t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left,ze(e),Eo=t),Eo}function bo(){var e,t;return yo||((e=document.createElement("div")).style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t=Do(e),document.body.removeChild(e),yo=t),yo}function Do(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Co(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,e=Do(e),s=e.y-r-o,r={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:e.x-i-a,scrollbarLeft:0,scrollbarRight:0};return So()&&"rtl"===n.direction?r.scrollbarLeft=s:r.scrollbarRight=s,t&&(r.paddingLeft=parseInt(n.paddingLeft,10)||0,r.paddingRight=parseInt(n.paddingRight,10)||0,r.paddingTop=parseInt(n.paddingTop,10)||0,r.paddingBottom=parseInt(n.paddingBottom,10)||0),r}function wo(e,t,n){void 0===t&&(t=!1);n=n?e.getBoundingClientRect():Ro(e),e=Co(e,t),n={left:n.left+e.borderLeft+e.scrollbarLeft,right:n.right-e.borderRight-e.scrollbarRight,top:n.top+e.borderTop,bottom:n.bottom-e.borderBottom-e.scrollbarBottom};return t&&(n.left+=e.paddingLeft,n.right-=e.paddingRight,n.top+=e.paddingTop,n.bottom-=e.paddingBottom),n}function Ro(e){e=e.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function To(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function _o(e,t,n){function r(){i||(i=!0,t.apply(this,arguments))}function o(){i||(i=!0,n&&n.apply(this,arguments))}var i=!1,e=e(r,o);e&&"function"==typeof e.then&&e.then(r,o)}xo.prototype.setThisContext=function(e){this.thisContext=e},xo.prototype.setOptions=function(e){this.options=e},xo.prototype.on=function(e,t){var n;n=this.handlers,t=t,(n[e=e]||(n[e]=[])).push(t)},xo.prototype.off=function(e,t){var n,r;n=this.handlers,e=e,(r=t)?n[e]&&(n[e]=n[e].filter(function(e){return e!==r})):delete n[e]},xo.prototype.trigger=function(e){for(var t=[],n=1;n=t[o]&&e=t[o]&&e=o.end?new Date(o.end.valueOf()-1):n),o=this.buildCurrentRangeInfo(e,t),n=/^(year|month|week|day)$/.test(o.unit),e=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,n),t=e=this.trimHiddenDays(e),i.showNonCurrentDates||(t=rr(t,o.range)),t=rr(t=this.adjustActiveRange(t),a),r=ir(o.range,a),{validRange:a,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:n,activeRange:t,renderRange:e,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:r,dateIncrement:this.buildDateIncrement(o.duration)}},T.prototype.buildValidRange=function(){var e=this.props.validRangeInput,e="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(e)||{start:null,end:null}},T.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,a=null;return r.duration?(o=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=en(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},T.prototype.getFallbackDuration=function(){return v({day:1})},T.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,t=t.slotMaxTime,i=e.start,e=e.end;return r&&(Jt(o)<0&&(i=g(i),i=n.add(i,o)),1e.fetchRange.end:!e.latestFetchId;var t,n}),r,!1,o)}function Ui(e,t,n,r,o){var i,a={};for(i in e){var s=e[i];t[i]?a[i]=function(n,r,e,o){var i=o.options,a=o.calendarApi,t=o.pluginHooks.eventSourceDefs[n.sourceDefId],s=at();return t.fetch({eventSource:n,range:r,isRefetch:e,context:o},function(e){var t=e.rawEvents;i.eventSourceSuccess&&(t=i.eventSourceSuccess.call(a,t,e.xhr)||t),n.success&&(t=n.success.call(a,t,e.xhr)||t),o.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:s,fetchRange:r,rawEvents:t})},function(e){console.warn(e.message,e),i.eventSourceFailure&&i.eventSourceFailure.call(a,e),n.failure&&n.failure(e),o.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:s,fetchRange:r,error:e})}),I(I({},n),{isFetching:!0,latestFetchId:s})}(s,n,r,o):a[i]=s}return a}function Wi(e,t){return Wt(e,function(e){return Vi(e,t)})}function Vi(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Fi(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":var i=e,a=n[t.sourceId],s=t.fetchId,l=t.fetchRange,u=t.rawEvents,c=o;return a&&s===a.latestFetchId?(s=Nn(function(e,t,n){n=n.options.eventDataTransform,t=t?t.eventDataTransform:null;t&&(e=Bi(e,t));n&&(e=Bi(e,n));return e}(u,a,c),a,c),l&&(s=qt(s,l,c)),An(zi(i,a.sourceId),s)):i;case"ADD_EVENTS":u=e,l=t.eventStore,c=r?r.activeRange:null,a=o;return c&&(l=qt(l,c,a)),An(u,l);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return An(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?qt(e,r.activeRange,o):e;case"REMOVE_EVENTS":var d,p,s=e,f=t.eventStore,h=s.defs,g=s.instances,v={},m={};for(d in h)f.defs[d]||(v[d]=h[d]);for(p in g)!f.instances[p]&&v[g[p].defId]&&(m[p]=g[p]);return{defs:v,instances:m};case"REMOVE_EVENT_SOURCE":return zi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Ln(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return C();default:return e}}function Bi(e,t){if(t)for(var n=[],r=0,o=e;rt.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:t.end,end:i.end}},o)),r?(n.push.apply(n,h([{index:e.index,thickness:e.thickness,span:Ca(t,i)}],o)),r):(n.push(e),0)},ya.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(wa(r,t.level,t.levelCoord),wa(n,t.level,[e])):wa(n[t.level],t.lateral,e),this.stackCnts[Sa(e)]=t.stackCnt},ya.prototype.findInsertion=function(e){for(var t=this.levelCoords,n=this.entriesByLevel,r=this.strictOrder,o=this.stackCnts,i=t.length,a=0,s=-1,l=-1,u=null,c=0,d=0;d=a+e.thickness)break;for(var f,h=n[d],g=Ra(h,e.span.start,Ea),v=g[0]+g[1];(f=h[v])&&f.span.startn(e[o-1]))return[o,0];for(;r=t.length?t[t.length-1]+1:t[e]};var Ds=Cs;function Cs(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;nt)return!0;return!1},Ls.prototype.needsYScrolling=function(){if(Os.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;rt)return!0;return!1},Ls.prototype.getXScrollbarWidth=function(){return Os.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},Ls.prototype.getYScrollbarWidth=function(){return Os.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},Ls);function Ls(){var t=null!==Hs&&Hs.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,f(t.props.elRef,e)},t}Ws.prototype.createRef=function(t){var n=this;return this.callbackMap[t]||(this.callbackMap[t]=function(e){n.handleValue(e,String(t))})},Ws.prototype.collect=function(e,t,n){return Gt(this.currentMap,e,t,n)},Ws.prototype.getAll=function(){return Ft(this.currentMap)};var Us=Ws;function Ws(e){var a=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,t){var n=a.depths,r=a.currentMap,o=!1,i=!1;null!==e?(o=t in r,r[t]=e,n[t]=(n[t]||0)+1,i=!0):(--n[t],n[t]||(delete r[t],delete a.callbackMap[t],o=!0)),a.masterCallback&&(o&&a.masterCallback(null,String(t)),i&&a.masterCallback(e,String(t)))}}function Vs(e){for(var t=0,n=0,r=Ge(e,".fc-scrollgrid-shrink");nt.eventRange.range.end?e:t}t(k,Al=Le),Object.defineProperty(k.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),k.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},k.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},k.prototype.updateSize=function(){var e=this;qo(function(){Al.prototype.updateSize.call(e)})},k.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},k.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},k.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},k.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},k.prototype.setClassNames=function(e){if(!an(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;nc)&&(r={scrollCache:a,name:"top",distance:c}),s<=n&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>s)&&(r={scrollCache:a,name:"bottom",distance:s}),l<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:a,name:"left",distance:l}),u<=n&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"right",distance:u}))}return r},tu.prototype.buildCaches=function(e){return this.queryScrollEls(e).map(function(e){return e===window?new $l(!1):new Zl(e,!1)})},tu.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;ni.layer)&&(c.componentId=n,c.context=d.context,c.rect.left+=a,c.rect.right+=a,c.rect.top+=s,c.rect.bottom+=s,i=c)))}return i};var au=su;function su(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new ko}function lu(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&Tr(e.dateSpan,t.dateSpan)}function uu(e,t){for(var n,r,o={},i=0,a=t.pluginHooks.datePointTransforms;ir.start)return{endDelta:i};return null}(i,e,n.subjectEl.classList.contains("fc-event-resizer-start"),a.range))&&(l=Pr(o,r.getCurrentData().eventUiBases,s,r),c.mutatedEvents=l,ks(c,e.dateProfile,r)||(u=!0,c.mutatedEvents=l=s=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:c}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),(u?st:lt)(),t||(s&&lu(i,e)&&(s=null),d.validMutation=s,d.mutatedRelevantEvents=l)},d.handleDragEnd=function(e){var t=d.component.context,n=d.eventRange.def,r=d.eventRange.instance,o=new N(t,n,r),i=d.relevantEvents,a=d.mutatedRelevantEvents;t.emitter.trigger("eventResizeStop",{el:d.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),d.validMutation?(n=new N(t,a.defs[n.defId],r?a.instances[r.instanceId]:null),t.dispatch({type:"MERGE_EVENTS",eventStore:a}),o={oldEvent:o,event:n,relatedEvents:Vr(a,t,r),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:i})}},t.emitter.trigger("eventResize",I(I({},o),{el:d.draggingSegEl,startDelta:d.validMutation.startDelta||v(0),endDelta:d.validMutation.endDelta||v(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",o)):t.emitter.trigger("_noEventResize"),d.draggingSeg=null,d.relevantEvents=null,d.validMutation=null},e.component),n=d.dragging=new ru(e.el),n=(n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll,d.hitDragging=new au(d.dragging,ka(e)));return n.emitter.on("pointerdown",d.handlePointerDown),n.emitter.on("dragstart",d.handleDragStart),n.emitter.on("hitupdate",d.handleHitUpdate),n.emitter.on("dragend",d.handleDragEnd),d}Du.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()};var bu=Du;function Du(e){var o=this,t=(this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(o.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var t=o.context.options.unselectCancel,e=Xe(e.origEvent);o.matchesCancel=!!l(e,t),o.matchesEvent=!!l(e,vu.SELECTOR)},this.onDocumentPointerUp=function(e){var t=o.context,n=o.documentPointer,r=t.getCurrentData();n.wasTouchScroll||(r.dateSelection&&!o.isRecentPointerDateSelect&&t.options.unselectAuto&&!o.matchesCancel&&t.calendarApi.unselect(e),r.eventSelection&&!o.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})),o.isRecentPointerDateSelect=!1},this.documentPointer=new Fl(document));t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}var Cu={fixedMirrorParent:n},wu={dateClick:n,eventDragStart:n,eventDragStop:n,eventDrop:n,eventResizeStart:n,eventResizeStop:n,eventResize:n,drop:n,eventReceive:n,eventLeave:n},Ru=(Tu.prototype.buildDragMeta=function(e){return"object"==typeof this.suppliedDragMeta?Ha(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?Ha(this.suppliedDragMeta(e)):Ha((e=function(e,t){var n=Pa.dataAttrPrefix,n=(n?n+"-":"")+t;return e.getAttribute("data-"+n)||""}(e,"event"))?JSON.parse(e):{create:!1})},Tu.prototype.displayDrag=function(e,t){var n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},Tu.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},Tu.prototype.canDropElOnCalendar=function(e,t){var n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||Boolean(je(e,n))},Tu);function Tu(e,t){var l=this,e=(this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){l.dragMeta=l.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,n){var r=l.hitDragging.dragging,o=null,i=null,a=!1,s={affectedEvents:C(),mutatedEvents:C(),isEvent:l.dragMeta.create};e&&(o=e.context,l.canDropElOnCalendar(n.subjectEl,o)&&(i=function(e,t,n){for(var r=I({},t.leftoverProps),o=0,i=n.pluginHooks.externalDefTransforms;o=p(t.slotMinTime)&&e