From 70388806c6ab6420bb3d0bf7dbdffcf52de6fb8c Mon Sep 17 00:00:00 2001 From: Bohung Date: Thu, 9 Dec 2021 13:30:33 +0800 Subject: [PATCH] Fix bug when screen is larger.(it will trigger maximum call statck size exceeded) --- .../javascripts/property_hire_fullcalendar.js | 34 +++++++++++-------- .../property_hire_fullcalendar.min.js | 2 +- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/app/assets/javascripts/property_hire_fullcalendar.js b/app/assets/javascripts/property_hire_fullcalendar.js index a1988a6..96918d4 100644 --- a/app/assets/javascripts/property_hire_fullcalendar.js +++ b/app/assets/javascripts/property_hire_fullcalendar.js @@ -7603,10 +7603,12 @@ var FullCalendar = (function (exports) { return parseBusinessHours(calendarContext.options.businessHours, calendarContext); } function warnUnknownOptions(options, viewName) { + if(!viewName) return 0; for (var optionName in options) { console.warn("Unknown option '" + optionName + "'" + (viewName ? " for view '" + viewName + "'" : '')); } + return 0; } // TODO: move this to react plugin? @@ -7692,29 +7694,31 @@ var FullCalendar = (function (exports) { // returns number of new entries inserted SegHierarchy.prototype.handleInvalidInsertion = function (insertion, entry, hiddenEntries) { if (this.allowReslicing && insertion.touchingEntry) { - return this.splitEntry(entry, insertion.touchingEntry, hiddenEntries); + return this.splitEntry(entry, insertion.touchingEntry, hiddenEntries, true); } hiddenEntries.push(entry); return 0; }; - SegHierarchy.prototype.splitEntry = function (entry, barrier, hiddenEntries) { + SegHierarchy.prototype.splitEntry = function (entry, barrier, hiddenEntries, invalid_call) { var partCnt = 0; var splitHiddenEntries = []; var entrySpan = entry.span; var barrierSpan = barrier.span; - if (entrySpan.start < barrierSpan.start) { - partCnt += this.insertEntry({ - index: entry.index, - thickness: entry.thickness, - span: { start: entrySpan.start, end: barrierSpan.start }, - }, splitHiddenEntries); - } - if (entrySpan.end > barrierSpan.end) { - partCnt += this.insertEntry({ - index: entry.index, - thickness: entry.thickness, - span: { start: barrierSpan.end, end: entrySpan.end }, - }, splitHiddenEntries); + if(!invalid_call){ + if (entrySpan.start < barrierSpan.start) { + partCnt += this.insertEntry({ + index: entry.index, + thickness: entry.thickness, + span: { start: entrySpan.start, end: barrierSpan.start }, + }, splitHiddenEntries); + } + if (entrySpan.end > barrierSpan.end) { + partCnt += this.insertEntry({ + index: entry.index, + thickness: entry.thickness, + span: { start: barrierSpan.end, end: entrySpan.end }, + }, splitHiddenEntries); + } } if (partCnt) { hiddenEntries.push.apply(hiddenEntries, __spreadArray([{ diff --git a/app/assets/javascripts/property_hire_fullcalendar.min.js b/app/assets/javascripts/property_hire_fullcalendar.min.js index a85e2e0..341f14e 100644 --- a/app/assets/javascripts/property_hire_fullcalendar.min.js +++ b/app/assets/javascripts/property_hire_fullcalendar.min.js @@ -16,4 +16,4 @@ var ie_args=navigator&&navigator.userAgent.match(/MSIE\s+(\d+)/),is_below_es6=!1 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -function u(n,t){function i(){this.constructor=n}if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vh(n,t);n.__proto__=t;n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}function l(n,t){for(var i=0,u=t.length,r=n.length;i3)for(i=[i],r=3;r0?re(c.type,c.props,c.key,null,c.__v):c)){if(c.__=i,c.__b=i.__b+1,null===(a=v[l])||a&&c.key==a.key&&c.type===a.type)v[l]=void 0;else for(p=0;p>>1,1);t.i.removeChild(n)}}),cu(si(cft,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount()}function aft(n,t){return si(lft,{__v:n,i:t})}function wft(){}function bft(){return this.cancelBubble}function kft(){return this.defaultPrevented}function dft(){function i(t){n.push(t)}var t=o.debounceRendering,n=[];for(o.debounceRendering=i,cu(si(ub,{}),document.createElement("div"));n.length;)n.shift()();o.debounceRendering=t}function gft(n){var t=oft(n),i=t.Provider;return t.Provider=function(){var t=this,r=!this.getChildContext,u=i.apply(this,arguments),n;return r&&(n=[],this.shouldComponentUpdate=function(i){t.props.value!==i.value&&n.forEach(function(n){n.context=i.value;n.forceUpdate()})},this.sub=function(t){n.push(t);var i=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1);i&&i.call(t)}}),u},t}function net(n){cu(null,n)}function vr(n){n.parentNode&&n.parentNode.removeChild(n)}function d(n,t){if(n.closest)return n.closest(t);if(!document.documentElement.contains(n))return null;do{if(he(n,t))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}function he(n,t){var i=n.matches||n.matchesSelector||n.msMatchesSelector;return i.call(n,t)}function dt(n,t){for(var u,i,f=n instanceof HTMLElement?[n]:n,e=[],r=0;r=1)?Math.min(u,f):u}function wc(n,t,i,r){var u=et([t,0,1+cet(t,i,r)]),f=a(n),e=Math.round(ni(u,f));return Math.floor(e/7)+1}function cet(n,t,i){var r=7+t-i,u=(7+et([n,0,r]).getUTCDay()-t)%7;return-u+r-1}function db(n){return[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds(),]}function gb(n){return new Date(n[0],n[1]||0,n[2]==null?1:n[2],n[3]||0,n[4]||0,n[5]||0)}function ai(n){return[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds(),]}function et(n){return n.length===1&&(n=n.concat([0])),new Date(Date.UTC.apply(Date,n))}function le(n){return!isNaN(n.valueOf())}function vi(n){return n.getUTCHours()*36e5+n.getUTCMinutes()*6e4+n.getUTCSeconds()*1e3+n.getUTCMilliseconds()}function yu(n,t,i,r){return{instanceId:vt(),defId:n,range:t,forcedStartTzo:i==null?null:i,forcedEndTzo:r==null?null:r}}function bc(n,t){var u={},f,e,r,i,s,o;if(t)for(f in t){for(e=[],i=n.length-1;i>=0;i-=1)if(r=n[i][f],typeof r=="object"&&r)e.unshift(r);else if(r!==undefined){u[f]=r;break}e.length&&(u[f]=bc(e))}for(i=n.length-1;i>=0;i-=1){s=n[i];for(o in s)o in u||(u[o]=s[o])}return u}function pt(n,t){var r={};for(var i in n)t(n[i],i)&&(r[i]=n[i]);return r}function w(n,t){var r={};for(var i in n)r[i]=t(n[i],i);return r}function nk(n){for(var u,i={},t=0,r=n;t10&&(t==null?r=r.replace("Z",""):t!==0&&(r=r.replace("Z",rl(t,!0)))),r}function br(n){return n.toISOString().replace(/T.*$/,"")}function fk(n){return yt(n.getUTCHours(),2)+":"+yt(n.getUTCMinutes(),2)+":"+yt(n.getUTCSeconds(),2)}function rl(n,t){t===void 0&&(t=!1);var r=n<0?"-":"+",u=Math.abs(n),f=Math.floor(u/60),i=Math.round(u%60);return t?r+yt(f,2)+":"+yt(i,2):"GMT"+r+f+(i?":"+yt(i,2):"")}function ek(n,t){for(var r=0,i=0;i=tt(t)&&(i=p(i,1))),n.start&&(r=a(n.start),i&&i<=r&&(i=p(r,1))),{start:r,end:i}}function dk(n){var t=tf(n);return ni(t.start,t.end)>1}function tr(n,t,i,r){return r==="year"?s(i.diffWholeYears(n,t),"year"):r==="month"?s(i.diffWholeMonths(n,t),"month"):bb(n,t)}function got(n,t){var i=null,r=null;return(n.start&&(i=t.createMarker(n.start)),n.end&&(r=t.createMarker(n.end)),!i&&!r)?null:i&&r&&ri&&f.push({start:i,end:r.start}),r.end>i&&(i=r.end);return it.start)&&(n.start===null||t.end===null||n.start=n.start)&&(n.end===null||t.end!==null&&t.end<=n.end)}function wt(n,t){return(n.start===null||t>=n.start)&&(n.end===null||t=t.end?new Date(t.end.valueOf()-1):n}function ff(n,t,i,r){var h={},c={},k={},l=[],it=[],a=ro(n.defs,t),u,e,rt,d,w,g,f,y,p,b,tt,nt;for(f in n.defs)u=n.defs[f],e=a[u.defId],e.display==="inverse-background"&&(u.groupId?(h[u.groupId]=[],k[u.groupId]||(k[u.groupId]=u)):c[f]=[]);for(rt in n.instances){var v=n.instances[rt],u=n.defs[v.defId],e=a[u.defId],ut=v.range,s=!u.allDay&&r?tf(ut,r):ut,o=ui(s,i);o&&(e.display==="inverse-background"?u.groupId?h[u.groupId].push(o):c[v.defId].push(o):e.display!=="none"&&(e.display==="background"?l:it).push({def:u,ui:e,instance:v,range:o,isStart:s.start&&s.start.valueOf()===o.start.valueOf(),isEnd:s.end&&s.end.valueOf()===o.end.valueOf()}))}for(d in h)for(y=h[d],p=gk(y,i),w=0,g=p;w=(i||t.end),isToday:t&&wt(t,r.start)}}function ed(n){var t=["fc-event"];return n.isMirror&&t.push("fc-event-mirror"),n.isDraggable&&t.push("fc-event-draggable"),(n.isStartResizable||n.isEndResizable)&&t.push("fc-event-resizable"),n.isDragging&&t.push("fc-event-dragging"),n.isResizing&&t.push("fc-event-resizing"),n.isSelected&&t.push("fc-event-selected"),n.isStart&&t.push("fc-event-start"),n.isEnd&&t.push("fc-event-end"),n.isPast&&t.push("fc-event-past"),n.isToday&&t.push("fc-event-today"),n.isFuture&&t.push("fc-event-future"),t}function uo(n){return n.instance?n.instance.instanceId:n.def.defId+":"+n.range.start.toISOString()}function ist(n,t,i){var u=rst(n,t),r=u.range;if(!r.start)return null;if(!r.end){if(i==null)return null;r.end=t.add(r.start,i)}return u}function rst(n,t){var o=nr(n,od),r=o.refined,s=o.extra,u=r.start?t.createMarkerMeta(r.start):null,f=r.end?t.createMarkerMeta(r.end):null,e=r.allDay;return e==null&&(e=u&&u.isTimeUnspecified&&(!f||f.isTimeUnspecified)),i({range:{start:u?u.marker:null,end:f?f.marker:null},allDay:e},s)}function sd(n,t){return hl(n.range,t.range)&&n.allDay===t.allDay&&ust(n,t)}function ust(n,t){for(var i in t)if(i!=="range"&&i!=="allDay"&&n[i]!==t[i])return!1;for(i in n)if(!(i in t))return!1;return!0}function fst(n,t){return i(i({},cd(n.range,t,n.allDay)),{allDay:n.allDay})}function hd(n,t,r){return i(i({},cd(n,t,r)),{timeZone:t.timeZone})}function cd(n,t,i){return{start:t.toDate(n.start),end:t.toDate(n.end),startStr:t.formatIso(n.start,{omitTime:i}),endStr:t.formatIso(n.end,{omitTime:i})}}function est(n,t,i){var u=io({editable:!1},i),r=nf(u.refined,u.extra,"",n.allDay,!0,i);return{def:r,ui:td(r,t),instance:yu(r.defId,n.range),range:n.range,isStart:!0,isEnd:!0}}function ll(n,t,r){r.emitter.trigger("select",i(i({},al(n,r)),{jsEvent:t?t.origEvent:null,view:r.viewApi||r.calendarApi.view}))}function ost(n,t){t.emitter.trigger("unselect",{jsEvent:n?n.origEvent:null,view:t.viewApi||t.calendarApi.view})}function al(n,t){for(var e,r={},u=0,f=t.pluginHooks.dateSpanTransforms;u=0;i-=1)if(f=u[i],r=f.parseMeta(n),r)return{sourceDefId:i,meta:r};return null}function lst(n,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return n}}function ast(n,t){var i=n.initialDate;return i!=null?t.createMarker(i):of(n.now,t)}function of(n,t){return(typeof n=="function"&&(n=n()),n==null)?t.createNowMarker():t.createMarker(n)}function yd(n){var t,i,u=n._def,r=n._instance;return{defs:(t={},t[u.defId]=u,t),instances:r?(i={},i[r.instanceId]=r,i):{}}}function wi(n,t,i){var s=n.defs,u=n.instances,f=[],h=i?i.instanceId:"",e,r,o;for(e in u)r=u[e],o=s[r.defId],r.instanceId!==h&&f.push(new v(t,o,r));return f}function vst(n,t){yl[n]=t}function yst(n){return new yl[n]}function bd(n){var t=wd.exec(n),i,r;return t&&(i=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number("0."+t[12])*1e3:0)),le(i))?(r=null,t[13]&&(r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:i,isTimeUnspecified:!t[6],timeZoneOffset:r}):null}function dd(n){for(var i,f=n.length>0?n[0].code:"en",e=kd.concat(n),r={en:wl},t=0,u=e;t0;r-=1)if(f=u.slice(0,r).join("-"),t[f])return t[f];return null}function gd(n,t,i){var r=bc([wl,i],["buttonText"]),u;return delete r.code,u=r.week,delete r.week,{codeArg:n,codes:t,week:u,simpleNumberFormat:new Intl.NumberFormat(n),options:r}}function bst(n,t){t===void 0&&(t={});var r=ng(t),u=y(t),i=r.createMarkerMeta(n);return i?r.format(i.marker,u,{forcedTzo:i.forcedTzo}):""}function kst(n,t,i){var r=ng(typeof i=="object"&&i?i:{}),e=y(i),u=r.createMarkerMeta(n),f=r.createMarkerMeta(t);return!u||!f?"":r.formatRange(u.marker,f.marker,e,{forcedStartTzo:u.forcedTzo,forcedEndTzo:f.forcedTzo,isEndExclusive:i.isEndExclusive,defaultSeparator:ri.defaultRangeSeparator})}function ng(n){var t=bl(n.locale||"en",dd([]).map);return new pl(i(i({timeZone:ri.timeZone,calendarSystem:"gregory"},n),{locale:t}))}function kl(n,t){return de(dst(n),null,t)}function dst(n){var t;return t=n===!0?[{}]:Array.isArray(n)?n.filter(function(n){return n.daysOfWeek}):typeof n=="object"&&n?[n]:[],t.map(function(n){return i(i({},tg),n)})}function ig(n,t){return n.left>=t.left&&n.left=t.top&&n.top
<\/div><\/td><\/tr><\/table>",n.querySelector("table").style.height="100px",n.querySelector("div").style.height="100%",document.body.appendChild(n),t=n.querySelector("div"),i=t.offsetHeight>0,document.body.removeChild(n),i)}function nht(n,t,r){var u=[],f;return n&&u.push(n),t&&u.push(t),f={"":no(u)},r&&i(f,r),f}function nu(n,t,i,r){return{dow:n.getUTCDay(),isDisabled:Boolean(r&&!wt(r.activeRange,n)),isOther:Boolean(r&&!wt(r.currentRange,n)),isToday:Boolean(t&&wt(t,n)),isPast:Boolean(i?ni:t?n>=t.end:!1)}}function rr(n,t){var i=["fc-day","fc-day-"+yc[n.dow],];return n.isDisabled?i.push("fc-day-disabled"):(n.isToday&&(i.push("fc-day-today"),i.push(t.getClass("today"))),n.isPast&&i.push("fc-day-past"),n.isFuture&&i.push("fc-day-future"),n.isOther&&i.push("fc-day-other")),i}function ta(n,t){var i=["fc-slot","fc-slot-"+yc[n.dow],];return n.isDisabled?i.push("fc-slot-disabled"):(n.isToday&&(i.push("fc-slot-today"),i.push(t.getClass("today"))),n.isPast&&i.push("fc-slot-past"),n.isFuture&&i.push("fc-slot-future")),i}function ur(n,t){return t===void 0&&(t="day"),JSON.stringify({date:br(n),type:t})}function hf(){return ho===null&&(ho=tht()),ho}function tht(){var n=document.createElement("div"),t,i;return ci(n,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),n.innerHTML="
<\/div>",document.body.appendChild(n),t=n.firstChild,i=t.getBoundingClientRect().left>n.getBoundingClientRect().left,vr(n),i}function ra(){return ia||(ia=iht()),ia}function iht(){var n=document.createElement("div"),t;return n.style.overflow="scroll",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",document.body.appendChild(n),t=eg(n),document.body.removeChild(n),t}function eg(n){return{x:n.offsetHeight-n.clientHeight,y:n.offsetWidth-n.clientWidth}}function ua(n,t){t===void 0&&(t=!1);var i=window.getComputedStyle(n),u=parseInt(i.borderLeftWidth,10)||0,f=parseInt(i.borderRightWidth,10)||0,e=parseInt(i.borderTopWidth,10)||0,o=parseInt(i.borderBottomWidth,10)||0,s=eg(n),h=s.y-u-f,c=s.x-e-o,r={borderLeft:u,borderRight:f,borderTop:e,borderBottom:o,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return hf()&&i.direction==="rtl"?r.scrollbarLeft=h:r.scrollbarRight=h,t&&(r.paddingLeft=parseInt(i.paddingLeft,10)||0,r.paddingRight=parseInt(i.paddingRight,10)||0,r.paddingTop=parseInt(i.paddingTop,10)||0,r.paddingBottom=parseInt(i.paddingBottom,10)||0),r}function fa(n,t,i){t===void 0&&(t=!1);var f=i?n.getBoundingClientRect():co(n),r=ua(n,t),u={left:f.left+r.borderLeft+r.scrollbarLeft,right:f.right-r.borderRight-r.scrollbarRight,top:f.top+r.borderTop,bottom:f.bottom-r.borderBottom-r.scrollbarBottom};return t&&(u.left+=r.paddingLeft,u.right-=r.paddingRight,u.top+=r.paddingTop,u.bottom-=r.paddingBottom),u}function co(n){var t=n.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function rht(n){for(var f,r,e=ea(n),t=n.getBoundingClientRect(),i=0,u=e;in.fetchRange.end:!n.latestFetchId}function la(n,t,i,r,u){var o={},f,e;for(f in n)e=n[f],o[f]=t[f]?sct(e,i,r,u):e;return o}function sct(n,t,r,u){var f=u.options,e=u.calendarApi,s=u.pluginHooks.eventSourceDefs[n.sourceDefId],o=vt();return s.fetch({eventSource:n,range:t,isRefetch:r,context:u},function(i){var r=i.rawEvents;f.eventSourceSuccess&&(r=f.eventSourceSuccess.call(e,r,i.xhr)||r);n.success&&(r=n.success.call(e,r,i.xhr)||r);u.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:o,fetchRange:t,rawEvents:r})},function(i){console.warn(i.message,i);f.eventSourceFailure&&f.eventSourceFailure.call(e,i);n.failure&&n.failure(i);u.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:o,fetchRange:t,error:i})}),i(i({},n),{isFetching:!0,latestFetchId:o})}function hct(n,t,r,u){var f,e=n[t];return e&&r===e.latestFetchId?i(i({},n),(f={},f[t]=i(i({},e),{isFetching:!1,fetchRange:u}),f)):n}function gg(n,t){return pt(n,function(n){return nn(n,t)})}function cct(n,t){var s=vd(t),r=[].concat(n.eventSources||[]),e=[],i,u,o,f;for(n.initialEvents&&r.unshift(n.initialEvents),n.events&&r.unshift(n.events),i=0,u=r;i=200&&f.status<400){var n=!1,t=void 0;try{t=JSON.parse(f.responseText);n=!0}catch(i){}n?r(t,f):u("Failure parsing JSON",f)}else u("Request failed",f)};f.onerror=function(){u("Request failed",f)};f.send(e)}function elt(n,t){return n+(n.indexOf("?")===-1?"?":"&")+fn(t)}function fn(n){var t=[];for(var i in n)t.push(encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return t.join("&")}function clt(n,t,r){var f=r.dateEnv,h=r.options,e,o,s,c,u={};return e=n.startParam,e==null&&(e=h.startParam),o=n.endParam,o==null&&(o=h.endParam),s=n.timeZoneParam,s==null&&(s=h.timeZoneParam),c=typeof n.extraParams=="function"?n.extraParams():n.extraParams||{},i(u,c),u[e]=f.formatIso(t.start),u[o]=f.formatIso(t.end),f.timeZone!=="local"&&(u[s]=f.timeZone),u}function ylt(n,t,i,r){for(var e=n?nk(n):null,u=a(i.start),s=i.end,o=[],f;u1)?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}function nat(n,t,i,r,u,f,e,o){var s=bl(t||e.defaultCode,e.map);return new pl({calendarSystem:"gregory",timeZone:n,namedTimeZoneImpl:f.namedTimeZonedImpl,locale:s,weekNumberCalculation:i,firstDay:r,weekText:u,cmdFormatter:f.cmdFormatter,defaultSeparator:o})}function tat(n,t){var i=t.themeClasses[n.themeSystem]||ei;return new i(n)}function iat(n){var t=n.dateProfileGeneratorClass||yo;return new t(n)}function rat(n,t,i){return new vl(n,t,i)}function uat(n){return w(n,function(n){return n.ui})}function fat(n,t,i){var f={"":t},u,r;for(u in n)r=n[u],r.sourceId&&i[r.sourceId]&&(f[u]=i[r.sourceId]);return f}function eat(n){var t=n.options;return{eventUiSingleBase:dr({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap=="boolean"?t.eventOverlap:undefined,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},n),selectionConfig:dr({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:undefined,allow:t.selectAllow},n)}}function aa(n,t){for(var u,i=0,r=t.pluginHooks.isLoadingFuncs;ii(n[u-1]))return[u,0];while(re)r=f+1;else return[f,1];return[r,0]}function hat(n,t){return{component:n,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}function go(n){var t;return t={},t[n.component.uid]=n,t}function ns(n){var i=nr(n,cat),t=i.refined,r=i.extra;return{startTime:t.startTime||null,duration:t.duration||null,create:t.create!=null?t.create:!0,sourceId:t.sourceId,leftoverProps:r}}function pat(n,t,i,r,u,f){var e=i.build(u,undefined,!1),o=i.buildPrev(t,r,!1),s=i.buildNext(t,r,!1);return{title:f,activeButton:n.type,isTodayEnabled:e.isValid&&!wt(t.currentRange,u),isPrevEnabled:o.isValid,isNextEnabled:s.isValid}}function wat(n){return n.map(function(n){return new n})}function da(n,t){return!n||t>10?y({weekday:"short"}):t>1?y({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):y({weekday:"long"})}function pn(n){return n.text}function wn(n){var t=a(n),i=p(t,1);return{start:t,end:i}}function bat(n,t,i){return n||da(t,i)}function uv(n,t){var i=n.activeRange;return t?i:{start:gt(i.start,n.slotMinTime.milliseconds),end:gt(i.end,n.slotMaxTime.milliseconds-864e5)}}function rs(n,t,i){var r=n.mutatedEvents.instances;for(var u in r)if(!uf(t.validRange,r[u].range))return!1;return kn({eventDrag:n},i)}function bn(n,t,i){return uf(t.validRange,n.range)?kn({dateSelection:n},i):!1}function kn(n,t){var r=t.getCurrentData(),u=i({businessHours:r.businessHours,dateSelection:"",eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},n);return(t.pluginHooks.isPropsValid||fv)(u,t)}function fv(n,t,i,r){return(i===void 0&&(i={}),n.eventDrag&&!kat(n,t,i,r))?!1:n.dateSelection&&!dat(n,t,i,r)?!1:!0}function kat(n,t,r,u){var g=t.getCurrentData(),o=n.eventDrag,nt=o.mutatedEvents,tt=nt.defs,it=nt.instances,c=ro(tt,o.isEvent?n.eventUiBases:{"":g.selectionConfig}),a,p,b,et,e,ot,k,h,d;u&&(c=w(c,u));var l=wct(n.eventStore,o.affectedEvents.instances),rt=l.defs,ut=l.instances,ct=ro(rt,n.eventUiBases);for(a in it){var f=it[a],ft=f.range,y=c[f.defId],s=tt[f.defId];if(!dn(y.constraints,ft,l,n.businessHours,t))return!1;p=t.options.eventOverlap;b=typeof p=="function"?p:null;for(et in ut)if(e=ut[et],rf(ft,e.range)&&((ot=ct[e.defId].overlap,ot===!1&&o.isEvent)||y.overlap===!1||b&&!b(new v(t,rt[e.defId],e),new v(t,s,f))))return!1;for(k=g.eventStore,h=0,d=y.allows;ht.eventRange.range.end?n:t}function vvt(n){return n.button===0&&!n.ctrlKey}function yvt(){bv+=1;setTimeout(function(){bv-=1},ot.touchMouseIgnoreWait)}function pvt(){ls+=1;ls===1&&window.addEventListener("touchmove",rtt,{passive:!1})}function wvt(){ls-=1;ls||window.removeEventListener("touchmove",rtt,{passive:!1})}function rtt(n){kv&&n.preventDefault()}function nyt(n){var t=n.tagName;return t==="HTML"||t==="BODY"}function vs(n,t){return!n&&!t?!0:Boolean(n)!==Boolean(t)?!1:sd(n.dateSpan,t.dateSpan)}function dv(n,t){for(var e,r={},u=0,f=t.pluginHooks.datePointTransforms;ur.start)return{endDelta:u};return null}function cyt(n,t,r){for(var s,l,a,e=i({},t.leftoverProps),f=0,o=r.pluginHooks.externalDefTransforms;f1,k=r.span.start===u;f+=r.levelCoord-e;e=r.levelCoord+r.thickness;g?(f+=r.thickness,k&&h.push({seg:fu(s,r.span.start,r.span.end,i),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):k&&(h.push({seg:fu(s,r.span.start,r.span.end,i),isVisible:!0,isAbsolute:!1,absoluteTop:0,marginTop:f}),f=0)}v.push(b);y.push(h);p.push(f)}return{singleColPlacements:v,multiColPlacements:y,leftoverMargins:p}}function ipt(n,t){for(var r,e,u,f=[],i=0;i=0;t-=1)if(i=s(vy[t]),r=ti(i,n),r!==null&&r>1)return i;return n}function wy(n,t){var i=new iv(n.renderRange,t);return new rv(i,!1)}function ywt(n){var r=n.navLinkData?{"data-navlink":n.navLinkData,tabIndex:0}:{};return t(c,null,n.text&&t("a",i({className:"fc-list-day-text"},r),n.text),n.sideText&&t("a",i({className:"fc-list-day-side-text"},r),n.sideText))}function pwt(n){var r=n.event,u=r.url,f=u?{href:u}:{};return t("a",i({},f),r.title)}function wwt(n,i,r){var u=r.options,s;if(u.displayEventTime!==!1){var h=n.eventRange.def,o=n.eventRange.instance,e=!1,f=void 0;return(h.allDay?e=!0:dk(n.eventRange.range)?n.isStart?f=gr(n,i,r,null,null,o.range.start,n.end):n.isEnd?f=gr(n,i,r,null,null,n.start,o.range.end):e=!0:f=gr(n,i,r),e)?(s={text:r.options.allDayText,view:r.viewApi},t(b,{hookProps:s,classNames:u.allDayClassNames,content:u.allDayContent,defaultContent:bwt,didMount:u.allDayDidMount,willUnmount:u.allDayWillUnmount},function(n,i,r,u){return t("td",{className:["fc-list-event-time"].concat(i).join(" "),ref:n},u)})):t("td",{className:"fc-list-event-time"},f)}return null}function bwt(n){return n.text}function kwt(n){return n.text}function dwt(n){for(var t=a(n.renderRange.start),u=n.renderRange.end,i=[],r=[];t0?t="positive":(n.scrollLeft=1,t=n.scrollLeft>0?"reverse":"negative"),vr(n),t}function nkt(n,t,i,r,u){n.forEach(function(n,f){var h=t[f],c=h.naturalBound,e=h.parentBound,l=e.right-e.left,a=e.bottom-e.bottom,o,s;l>r||a>u?(o=i[f].left-c.left,s=i[f].top-c.top):(o="",s="");ci(n,{position:"relative",left:o,right:-o,top:s})})}function tkt(n,t,i){n.forEach(function(n,r){var u=t[r],o=u.textAlign,s=u.elWidth,e=u.parentBound,h=e.right-e.left,f;f=o==="center"&&h>i?(i-s)/2:"";ci(n,{left:f,right:f,top:0})})}function ikt(){var n=document.createElement("div"),t;return(n.className="fc-sticky",document.body.appendChild(n),t=window.getComputedStyle(n).position,vr(n),t.indexOf("sticky")!==-1)?t:null}function fkt(n){for(var u,i=0,t=0,r=n;t .fc-scroller")}function kkt(n){return n.map(function(n){var t=window.getComputedStyle(n);return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,overflowX:t.overflowX,overflowY:t.overflowY,marginBottom:t.marginBottom}})}function dkt(n,t){n.forEach(function(n,i){n.style.overflowX="visible";n.style.overflowY="visible";n.style.marginBottom="";n.style.left=-t[i].scrollLeft+"px"})}function gkt(n,t){n.forEach(function(n,i){var r=t[i];n.style.overflowX=r.overflowX;n.style.overflowY=r.overflowY;n.style.marginBottom=r.marginBottom;n.style.left="";n.scrollLeft=r.scrollLeft;n.scrollTop=r.scrollTop})}function ky(n,t,i,r){var u={labelInterval:i.slotLabelInterval,slotDuration:i.slotDuration},e,g,v,w,b,c,l,k,f;rdt(u,n,t);srt(u,n,t);udt(u,n,t);e=i.slotLabelFormat;g=Array.isArray(e)?e:e!=null?[e]:fdt(u,n,t,i);u.headerFormats=g.map(function(n){return y(n)});u.isTimeScale=Boolean(u.slotDuration.milliseconds);v=null;u.isTimeScale||(w=ii(u.slotDuration).unit,/year|month|week/.test(w)&&(v=w));u.largeUnit=v;u.emphasizeWeeks=tl(u.slotDuration)===1&&ou("weeks",n,t)>=2&&!i.businessHours;b=i.snapDuration;b&&(c=s(b),l=ti(u.slotDuration,c));l==null&&(c=u.slotDuration,l=1);u.snapDuration=c;u.snapsPerSlot=l;var rt=tt(n.slotMaxTime)-tt(n.slotMinTime),o=ort(n.renderRange.start,u,t),h=ort(n.renderRange.end,u,t);for(u.isTimeScale&&(o=t.add(o,n.slotMinTime),h=t.add(p(h,-1),n.slotMaxTime)),u.timeWindowMs=rt,u.normalizedRange={start:o,end:h},k=[],f=o;fot.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),n.labelInterval=null));n.slotDuration&&(e=i.countDurationsBetween(r.start,r.end,n.slotDuration),e>ot.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),n.slotDuration=null));n.labelInterval&&n.slotDuration&&(u=ti(n.labelInterval,n.slotDuration),(u===null||u<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),n.slotDuration=null))}function srt(n,t,i){var a=t.currentRange,r=n.labelInterval,u,f,o,h,c,e,l,v;if(!r){if(u=void 0,n.slotDuration){for(f=0,o=th;f=ndt)break;n.labelInterval=r}return r}function udt(n,t,i){var h=t.currentRange,r=n.slotDuration,f,u,e,l;if(!r){for(f=srt(n,t,i),u=0,e=th;u1&&o<=nh){r=c;break}}r&&(l=i.countDurationsBetween(h.start,h.end,r),l>tdt&&(r=null));r||(r=f);n.slotDuration=r}return r}function fdt(n,t,i,r){var f,e,o=n.labelInterval,s=ii(o).unit,h=r.weekNumbers,u=f=e=null;s!=="week"||h||(s="day");switch(s){case"year":u={year:"numeric"};break;case"month":ou("years",t,i)>1&&(u={year:"numeric"});f={month:"short"};break;case"week":ou("years",t,i)>1&&(u={year:"numeric"});f={week:"narrow"};break;case"day":ou("years",t,i)>1?u={year:"numeric",month:"long"}:ou("months",t,i)>1&&(u={month:"long"});h&&(f={week:"short"});e={weekday:"narrow",day:"numeric"};break;case"hour":h&&(u={week:"short"});ou("days",t,i)>1&&(f={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0});e={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":rk(o)/60>=nh?(u={hour:"numeric",meridiem:"short"},f=function(n){return":"+yt(n.date.minute,2)}):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":uk(o)/60>=nh?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},f=function(n){return":"+yt(n.date.second,2)}):u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};f=function(n){return"."+yt(n.millisecond,3)}}return[].concat(u||[],f||[],e||[])}function ou(n,t,i){var r=t.currentRange,u=null;return n==="years"?u=i.diffWholeYears(r.start,r.end):n==="months"?u=i.diffWholeMonths(r.start,r.end):n==="weeks"?u=i.diffWholeMonths(r.start,r.end):n==="days"&&(u=yr(r.start,r.end)),u||0}function edt(n,t){for(var o=n.slotDates,s=n.emphasizeWeeks,i=null,u=[],r=0,f=o;r1&&!p,e=null,w=k[i]||(p?b:null);d?(o=t.format(u,y),f&&f.text===o?f.colspan+=1:e=hrt(u,o,w)):!f||li(t.countDurationsBetween(n.normalizedRange.start,u,n.labelInterval))?(o=t.format(u,y),e=hrt(u,o,w)):f.colspan+=1;e&&(e.weekStart=v,h.push(e))}return l}function hrt(n,t,i){return{date:n,text:t,rowUnit:i,colspan:1,isWeekStart:!1}}function sdt(n){return n.text}function hdt(n){return{level:n.level,date:n.dateEnv.toDate(n.dateMarker),view:n.viewApi,text:n.text}}function dy(n,t,i){var u=i.countDurationsBetween(t.normalizedRange.start,n,t.snapDuration),f,r;return u<0?0:u>=t.snapDiffToIndex.length?t.snapCnt:(f=Math.floor(u),r=t.snapDiffToIndex[f],li(r)?r+=u-f:r=Math.ceil(r),r)}function rh(n,t){return n===null?{left:"",right:""}:t?{right:n,left:""}:{left:n,right:""}}function uh(n,t){return n?t?{right:n.start,left:-n.end}:{left:n.start,right:-n.end}:{left:"",right:""}}function vdt(n,t){return t.map(function(t){var i=t.toISOString();return n[i]})}function vrt(n,t,i){var o=[],r,u;if(i)for(r=0,u=n;r=0;t-=1)if(u=r[t],i=u.parseMeta(n),i)return{meta:i,sourceDefId:t};return null}function agt(n){for(var t in n)console.warn("Unknown resource prop '"+t+"'")}function vgt(n,t,i){var r=i.options,u=i.dateProfile;if(!n||!t)return nut(r.initialResources||r.resources,u.activeRange,r.refetchResourcesOnNavigate,i);switch(t.type){case"RESET_RESOURCE_SOURCE":return nut(t.resourceSourceInput,u.activeRange,r.refetchResourcesOnNavigate,i);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return ygt(n,u.activeRange,r.refetchResourcesOnNavigate,i);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return wgt(n,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return op(n,u.activeRange,i);default:return n}}function nut(n,t,i,r){if(n){var u=cgt(n);return op(u,i?t:null,r)}return null}function ygt(n,t,i,r){return i&&!pgt(n)&&(!n.fetchRange||!hl(n.fetchRange,t))?op(n,t,r):n}function pgt(n){return Boolean(drt(n.sourceDefId).ignoreRange)}function op(n,t,r){var f=drt(n.sourceDefId),u=vt();return f.fetch({resourceSource:n,range:t,context:r},function(n){r.dispatch({type:"RECEIVE_RESOURCES",fetchId:u,fetchRange:t,rawResources:n.rawResources})},function(n){r.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:u,fetchRange:t,error:n})}),i(i({},n),{isFetching:!0,latestFetchId:u})}function wgt(n,t,r){return t===n.latestFetchId?i(i({},n),{isFetching:!1,fetchRange:r}):n}function hp(n,t,r,u){var o,s,c;t===void 0&&(t="");var h=nr(n,tut),f=h.refined,l=h.extra,e={id:f.id||sp+vt(),parentId:f.parentId||t,title:f.title||"",businessHours:f.businessHours?kl(f.businessHours,u):null,ui:dr({editable:f.eventEditable,startEditable:f.eventStartEditable,durationEditable:f.eventDurationEditable,constraint:f.eventConstraint,overlap:f.eventOverlap,allow:f.eventAllow,classNames:f.eventClassNames,backgroundColor:f.eventBackgroundColor,borderColor:f.eventBorderColor,textColor:f.eventTextColor,color:f.eventColor},u),extendedProps:i(i({},l),f.extendedProps)};if(Object.freeze(e.ui.classNames),Object.freeze(e.extendedProps),!r[e.id]&&(r[e.id]=e,f.children))for(o=0,s=f.children;o0)break;t.splice(r,0,n)}function kp(n){var t=i(i(i({},n.extendedProps),n.ui),n);return delete t.ui,delete t.extendedProps,t}function cut(n,t){return n.spec===t.spec&&n.value===t.value}function rti(n,t,i,r,u){var f=oy(n,t);return r?new vp(f,i,u):new ap(f,i,u)}function eti(n,t,i,r,u){var f=wy(n,t);return r?new vp(f,i,u):new ap(f,i,u)}function put(n){for(var i,e=n.depth,u=n.hasChildren,o=n.isExpanded,s=n.onExpanderClick,r=[],f=0;f3;)i.pop()();if(i[1]1&&(u.year==="numeric"||u.year==="2-digit")&&(u.month==="numeric"||u.month==="2-digit")&&(u.day==="numeric"||u.day==="2-digit")&&(e=1),f=this.format(n,i),o=this.format(t,i),f===o)return f;var w=lot(u,e),a=sk(w,c,i),v=a(n),y=a(t),s=aot(f,v,o,y),p=c.separator||r||i.defaultSeparator||"";return s?s.before+v+p+y+s.after:f+p+o},n.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},n}();ck=function(){function n(n){this.cmdStr=n}return n.prototype.format=function(n,t,i){return t.cmdFormatter(this.cmdStr,be(n,null,t,i))},n.prototype.formatRange=function(n,t,i,r){return i.cmdFormatter(this.cmdStr,be(n,t,i,r))},n}();lk=function(){function n(n){this.func=n}return n.prototype.format=function(n,t,i){return this.func(be(n,null,t,i))},n.prototype.formatRange=function(n,t,i,r){return this.func(be(n,t,i,r))},n}();var fl={navLinkDayClick:r,navLinkWeekClick:r,duration:s,bootstrapFontAwesome:r,buttonIcons:r,customButtons:r,defaultAllDayEventDuration:s,defaultTimedEventDuration:s,nextDayThreshold:s,scrollTime:s,scrollTimeReset:Boolean,slotMinTime:s,slotMaxTime:s,dayPopoverFormat:y,slotDuration:s,snapDuration:s,headerToolbar:r,footerToolbar:r,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:y,dayHeaderClassNames:r,dayHeaderContent:r,dayHeaderDidMount:r,dayHeaderWillUnmount:r,dayCellClassNames:r,dayCellContent:r,dayCellDidMount:r,dayCellWillUnmount:r,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:r,weekNumbers:Boolean,weekNumberClassNames:r,weekNumberContent:r,weekNumberDidMount:r,weekNumberWillUnmount:r,editable:Boolean,viewClassNames:r,viewDidMount:r,viewWillUnmount:r,nowIndicator:Boolean,nowIndicatorClassNames:r,nowIndicatorContent:r,nowIndicatorDidMount:r,nowIndicatorWillUnmount:r,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:r,locale:r,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:r,eventOrder:ce,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:r,contentHeight:r,direction:String,weekNumberFormat:y,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:r,initialDate:r,now:r,eventDataTransform:r,stickyHeaderDates:r,stickyFooterScrollbar:r,viewHeight:r,defaultAllDay:Boolean,eventSourceFailure:r,eventSourceSuccess:r,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:r,eventConstraint:r,eventAllow:r,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:r,eventContent:r,eventDidMount:r,eventWillUnmount:r,selectConstraint:r,selectOverlap:r,selectAllow:r,droppable:Boolean,unselectCancel:String,slotLabelFormat:r,slotLaneClassNames:r,slotLaneContent:r,slotLaneDidMount:r,slotLaneWillUnmount:r,slotLabelClassNames:r,slotLabelContent:r,slotLabelDidMount:r,slotLabelWillUnmount:r,dayMaxEvents:r,dayMaxEventRows:r,dayMinWidth:Number,slotLabelInterval:s,allDayText:String,allDayClassNames:r,allDayContent:r,allDayDidMount:r,allDayWillUnmount:r,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:y,rerenderDelay:Number,moreLinkText:r,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:r,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:s,hiddenDays:r,monthMode:Boolean,fixedWeekCount:Boolean,validRange:r,visibleRange:r,titleFormat:r,noEventsText:String,moreLinkClick:r,moreLinkClassNames:r,moreLinkContent:r,moreLinkDidMount:r,moreLinkWillUnmount:r},ri={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},ak={datesSet:r,eventsSet:r,eventAdd:r,eventChange:r,eventRemove:r,windowResize:r,eventClick:r,eventMouseEnter:r,eventMouseLeave:r,select:r,unselect:r,loading:r,_unmount:r,_beforeprint:r,_afterprint:r,_noEventDrop:r,_noEventResize:r,_resize:r,_scrollRequest:r},vk={buttonText:r,views:r,plugins:r,initialEvents:r,events:r,eventSources:r},el={headerToolbar:ke,footerToolbar:ke,buttonText:ke,buttonIcons:ke};yk={type:String,component:r,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:r,usesMinMaxTime:Boolean,classNames:r,content:r,didMount:r,willUnmount:r};gu={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:r,overlap:r,allow:r,className:du,classNames:du,color:String,backgroundColor:String,borderColor:String,textColor:String};pk={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};var to={id:String,groupId:String,title:String,url:String},wk={start:r,end:r,date:r,allDay:Boolean},bot=i(i(i({},to),wk),{extendedProps:r});od={start:r,end:r,allDay:Boolean};vl=function(){function n(n,t,i){this.type=n;this.getCurrentData=t;this.dateEnv=i}return Object.defineProperty(n.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),n.prototype.getOption=function(n){return this.getCurrentData().options[n]},n}();ld={id:String,defaultAllDay:Boolean,url:String,format:String,events:r,eventDataTransform:r,success:r,failure:r};pi=function(){function n(){}return n.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},n.prototype.dispatch=function(n){return this.currentDataManager.dispatch(n)},Object.defineProperty(n.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),n.prototype.batchRendering=function(n){n()},n.prototype.updateSize=function(){this.trigger("_resize",!0)},n.prototype.setOption=function(n,t){this.dispatch({type:"SET_OPTION",optionName:n,rawOptionValue:t})},n.prototype.getOption=function(n){return this.currentDataManager.currentCalendarOptionsInput[n]},n.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},n.prototype.on=function(n,t){var i=this.currentDataManager;if(i.currentCalendarOptionsRefiners[n])i.emitter.on(n,t);else console.warn("Unknown listener name '"+n+"'")},n.prototype.off=function(n,t){this.currentDataManager.emitter.off(n,t)},n.prototype.trigger=function(n){for(var i,r=[],t=1;t=r[t]&&n=r[t]&&n0},n.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},n.prototype.canScrollUp=function(){return this.getScrollTop()>0},n.prototype.canScrollDown=function(){return this.getScrollTop()0},n.prototype.canScrollRight=function(){return this.getScrollLeft()1&&(t=a(t),t=p(t,-1),t=u.add(t,e))),{start:i,end:t}},n.prototype.buildRangeFromDuration=function(n,t,i,r){function l(){u=h.startOf(n,e);c=h.add(u,i);o={start:u,end:c}}var s=this.props,h=s.dateEnv,e=s.dateAlignment,u,c,o,f;return e||(f=this.props.dateIncrement,e=f?tt(f)u.end&&(f+=this.insertEntry({index:n.index,thickness:n.thickness,span:{start:u.end,end:r.end}},e)),f)?(i.push.apply(i,l([{index:n.index,thickness:n.thickness,span:ko(u,r)}],e)),f):(i.push(n),0)},n.prototype.insertEntryAt=function(n,t){var u=this,f=u.entriesByLevel,r=u.levelCoords,i=t.level;i>=r.length||r[i]>t.levelCoord?(pa(r,i,t.levelCoord),pa(f,i,[n])):pa(f[i],t.lateralEnd,n);this.stackCnts[ki(n)]=t.stackCnt},n.prototype.findInsertion=function(n){for(var r,f=this,h=f.levelCoords,p=f.entriesByLevel,w=f.stackCnts,c=f.strictOrder,b=h.length,t=0,l=0,s=0,e=0,a=-1,o=null,i=0;i=t+n.thickness)break;var v=p[i],u=void 0,y=wa(v,n.span.start,va);for(s=y[0]+y[1],e=s;(u=v[e])&&u.span.startr)&&(t=r+u.thickness,a=i,o=u),e+=1;r1?(w=a&&o.getClass("buttonGroup")||"",t.apply(void 0,l(["div",{className:w}],f))):f[0]},r}(e),vn=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var f=this.props,n=f.model,o=f.extraClassName,i=!1,r,u,s=n.center,e;return n.left?(i=!0,r=n.left):r=n.start,n.right?(i=!0,u=n.right):u=n.end,e=[o||"","fc-toolbar",i?"fc-toolbar-ltr":"",],t("div",{className:e.join(" ")},this.renderSection("start",r||[]),this.renderSection("center",s||[]),this.renderSection("end",u||[]))},i.prototype.renderSection=function(n,i){var r=this.props;return t(lat,{key:n,widgetGroups:i,title:r.title,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled})},i}(e),aat=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(n){t.el=n;g(t.props.elRef,n);t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return u(i,n),i.prototype.render=function(){var u=this,n=u.props,f=u.state,i=n.aspectRatio,o=["fc-view-harness",i||n.liquid||n.height?"fc-view-harness-active":"fc-view-harness-passive",],r="",e="";return i?f.availableWidth!==null?r=f.availableWidth/i:e=100/i+"%":r=n.height||"",t("div",{ref:this.handleEl,onClick:n.onClick,className:o.join(" "),style:{height:r,paddingBottom:e}},n.children)},i.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},i.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},i.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},i}(e),vat=function(n){function t(t){var i=n.call(this,t)||this;return i.handleSegClick=function(n,t){var r=i.component,o=r.context,u=ir(t),f,e;u&&r.isValidSegDownEl(n.target)&&(f=d(n.target,".fc-event-forced-url"),e=f?f.querySelector("a[href]").href:"",o.emitter.trigger("eventClick",{el:t,event:new v(r.context,u.eventRange.def,u.eventRange.instance),jsEvent:n,view:o.viewApi}),e&&!n.defaultPrevented&&(window.location.href=e))},i.destroy=hc(t.el,"click",".fc-event",i.handleSegClick),i}return u(t,n),t}(di),yat=function(n){function t(t){var i=n.call(this,t)||this;return i.handleEventElRemove=function(n){n===i.currentSegEl&&i.handleSegLeave(null,i.currentSegEl)},i.handleSegEnter=function(n,t){ir(t)&&(i.currentSegEl=t,i.triggerEvent("eventMouseEnter",n,t))},i.handleSegLeave=function(n,t){i.currentSegEl&&(i.currentSegEl=null,i.triggerEvent("eventMouseLeave",n,t))},i.removeHoverListeners=iet(t.el,".fc-event",i.handleSegEnter,i.handleSegLeave),i}return u(t,n),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(n,t,i){var u=this.component,r=u.context,f=ir(i);(!t||u.isValidSegDownEl(t.target))&&r.emitter.trigger(n,{el:i,event:new v(r,f.eventRange.def,f.eventRange.instance),jsEvent:t,view:r.viewApi})},t}(di),yn=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildViewContext=f(sht),t.buildViewPropTransformers=f(wat),t.buildToolbarProps=f(pat),t.handleNavLinkClick=ob("a[data-navlink]",t._handleNavLinkClick.bind(t)),t.headerRef=h(),t.footerRef=h(),t.interactionsStore={},t.registerInteractiveComponent=function(n,i){var r=hat(n,i),u=[vat,yat,],f=u.concat(t.props.pluginHooks.componentInteractions),e=f.map(function(n){return new n(r)});t.interactionsStore[n.uid]=e;vf[n.uid]=r},t.unregisterInteractiveComponent=function(n){for(var u,i=0,r=t.interactionsStore[n.uid];i1?{"data-navlink":ur(u),tabIndex:0}:{},y=i(i(i({date:o.toDate(u),view:h},n.extraHookProps),{text:a}),f);return t(b,{hookProps:y,classNames:r.dayHeaderClassNames,content:r.dayHeaderContent,defaultContent:pn,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},function(r,e,o,s){return t("th",i({ref:r,className:l.concat(e).join(" "),"data-date":f.isDisabled?undefined:br(u),colSpan:n.colSpan},n.extraDataAttrs),t("div",{className:"fc-scrollgrid-sync-inner"},!f.isDisabled&&t("a",i({ref:o,className:["fc-col-header-cell-cushion",n.isSticky?"fc-sticky":"",].join(" ")},v),s)))})},r}(e),tv=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this.props,r=this.context,o=r.dateEnv,s=r.theme,h=r.viewApi,u=r.options,f=p(new Date(2592e5),n.dow),e={dow:n.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[ga].concat(rr(e,s),n.extraClassNames||[]),l=o.format(f,n.dayHeaderFormat),a=i(i(i(i({date:f},e),{view:h}),n.extraHookProps),{text:l});return t(b,{hookProps:a,classNames:u.dayHeaderClassNames,content:u.dayHeaderContent,defaultContent:pn,didMount:u.dayHeaderDidMount,willUnmount:u.dayHeaderWillUnmount},function(r,u,f,e){return t("th",i({ref:r,className:c.concat(u).join(" "),colSpan:n.colSpan},n.extraDataAttrs),t("div",{className:"fc-scrollgrid-sync-inner"},t("a",{className:["fc-col-header-cell-cushion",n.isSticky?"fc-sticky":"",].join(" "),ref:f},e)))})},r}(e),at=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.initialNowDate=of(i.options.now,i.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return u(t,n),t.prototype.render=function(){var n=this,i=n.props,t=n.state;return i.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(n){n.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var r=this,u=r.props,f=r.context,e=gt(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),n=f.dateEnv.startOf(e,u.unit),t=f.dateEnv.add(n,s(1,u.unit)),i=t.valueOf()-e.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:n,todayRange:wn(n)},nextState:{nowDate:t,todayRange:wn(t)},waitMs:i}},t.prototype.setTimeout=function(){var n=this,t=this.computeTiming(),i=t.nextState,r=t.waitMs;this.timeoutId=setTimeout(function(){n.setState(i,function(){n.setTimeout()})},r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=lt,t}(ao);ts=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.createDayHeaderFormatter=f(bat),t}return u(i,n),i.prototype.render=function(){var e=this.context,n=this.props,i=n.dates,o=n.dateProfile,r=n.datesRepDistinctDays,u=n.renderIntro,f=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,i.length);return t(at,{unit:"day"},function(n,e){return t("tr",null,u&&u("day"),i.map(function(n){return r?t(nv,{key:n.toISOString(),date:n,dateProfile:o,todayRange:e,colCnt:i.length,dayHeaderFormat:f}):t(tv,{key:n.getUTCDay(),dow:n.getUTCDay(),dayHeaderFormat:f})}))})},i}(e);var iv=function(){function n(n,t){for(var i=n.start,e=n.end,r=[],u=[],f=-1;i=t.length?t[t.length-1]+1:t[i]},n}(),rv=function(){function n(n,t){var r=n.dates,i,f,u;if(t){for(f=r[0].getUTCDay(),i=1;iu)return!0;return!1},i.prototype.needsYScrolling=function(){var n,i;if(us.test(this.props.overflowY))return!1;var r=this.el,u=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),t=r.children;for(n=0;nu)return!0;return!1},i.prototype.getXScrollbarWidth=function(){return us.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},i.prototype.getYScrollbarWidth=function(){return us.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},i}(e),nt=function(){function n(n){var t=this;this.masterCallback=n;this.currentMap={};this.depths={};this.callbackMap={};this.handleValue=function(n,i){var e=t,r=e.depths,u=e.currentMap,f=!1,o=!1;n!==null?(f=i in u,u[i]=n,r[i]=(r[i]||0)+1,o=!0):(r[i]-=1,r[i]||(delete u[i],delete t.callbackMap[i],f=!0));t.masterCallback&&(f&&t.masterCallback(null,String(i)),o&&t.masterCallback(n,String(i)))}}return n.prototype.createRef=function(n){var i=this,t=this.callbackMap[n];return t||(t=this.callbackMap[n]=function(t){i.handleValue(t,String(n))}),t},n.prototype.collect=function(n,t,i){return gc(this.currentMap,n,t,i)},n.prototype.getAll=function(){return kc(this.currentMap)},n}();pf=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.processCols=f(function(n){return n},cv),t.renderMicroColGroup=f(lv),t.scrollerRefs=new nt,t.scrollerElRefs=new nt(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState(i({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return u(r,n),r.prototype.render=function(){var h=this,r=h.props,y=h.state,p=h.context,f=r.sections||[],w=this.processCols(r.cols),c=this.renderMicroColGroup(w,y.shrinkWidth),v=yv(r.liquid,p),u;r.collapsibleWidth&&v.push("fc-scrollgrid-collapsible");for(var a=f.length,n=0,i,e=[],o=[],s=[];n=0&&n=0&&t0&&(this.everMovedDown=!0);f<0?this.everMovedLeft=!0:f>0&&(this.everMovedRight=!0);this.pointerScreenX=i;this.pointerScreenY=r;this.isAnimating||(this.isAnimating=!0,this.requestAnimation(ett()))}},n.prototype.stop=function(){var n,t,i;if(this.isEnabled){for(this.isAnimating=!1,n=0,t=this.scrollCaches;n=0&&o>=0&&s>=0&&h>=0&&(s<=u&&this.everMovedUp&&r.canScrollUp()&&(!i||i.distance>s)&&(i={scrollCache:r,name:"top",distance:s}),h<=u&&this.everMovedDown&&r.canScrollDown()&&(!i||i.distance>h)&&(i={scrollCache:r,name:"bottom",distance:h}),e<=u&&this.everMovedLeft&&r.canScrollLeft()&&(!i||i.distance>e)&&(i={scrollCache:r,name:"left",distance:e}),o<=u&&this.everMovedRight&&r.canScrollRight()&&(!i||i.distance>o)&&(i={scrollCache:r,name:"right",distance:o}))}return i},n.prototype.buildCaches=function(){return this.queryScrollEls().map(function(n){return n===window?new kvt(!1):new ftt(n,!1)})},n.prototype.queryScrollEls=function(){for(var t,n=[],i=0,r=this.scrollQuery;i=t*t&&r.handleDistanceSurpassed(n)}r.isDragging&&(n.origEvent.type!=="scroll"&&(r.mirror.handleMove(n.pageX,n.pageY),r.autoScroller.handleMove(n.pageX,n.pageY)),r.emitter.trigger("dragmove",n))}};r.onPointerUp=function(n){r.isInteracting&&(r.isInteracting=!1,cb(document.body),ab(document.body),r.emitter.trigger("pointerup",n),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(n)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};u=r.pointer=new as(t);u.emitter.on("pointerdown",r.onPointerDown);u.emitter.on("pointermove",r.onPointerMove);u.emitter.on("pointerup",r.onPointerUp);return i&&(u.selector=i),r.mirror=new bvt,r.autoScroller=new dvt,r}return u(t,n),t.prototype.destroy=function(){this.pointer.destroy();this.onPointerUp({})},t.prototype.startDelay=function(n){var t=this;typeof this.delay=="number"?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null;t.handleDelayEnd(n)},this.delay):this.handleDelayEnd(n)},t.prototype.handleDelayEnd=function(n){this.isDelayEnded=!0;this.tryStartDrag(n)},t.prototype.handleDistanceSurpassed=function(n){this.isDistanceSurpassed=!0;this.tryStartDrag(n)},t.prototype.tryStartDrag=function(n){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(n.pageX,n.pageY),this.emitter.trigger("dragstart",n),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())},t.prototype.tryStopDrag=function(n){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,n))},t.prototype.stopDrag=function(n){this.isDragging=!1;this.emitter.trigger("dragend",n)},t.prototype.setIgnoreMove=function(n){this.pointer.shouldIgnoreMove=n},t.prototype.setMirrorIsVisible=function(n){this.mirror.setIsVisible(n)},t.prototype.setMirrorNeedsRevert=function(n){this.mirrorNeedsRevert=n},t.prototype.setAutoScrollEnabled=function(n){this.autoScroller.isEnabled=n},t}(ba),gvt=function(){function n(n){this.origRect=co(n);this.scrollCaches=ea(n).map(function(n){return new ftt(n,!0)})}return n.prototype.destroy=function(){for(var i,n=0,t=this.scrollCaches;n=0&&c=0&&lu.layer)&&(i.componentId=f,i.context=o.context,i.rect.left+=s,i.rect.right+=s,i.rect.top+=h,i.rect.bottom+=h,u=i))}return u},n}();ott=function(n){function t(t){var r=n.call(this,t)||this,u;r.handlePointerDown=function(n){var t=r.dragging,i=n.origEvent.target;t.setIgnoreMove(!r.component.isValidDateDownEl(i))};r.handleDragEnd=function(n){var s=r.component,h=r.dragging.pointer,t,o;if(!h.wasTouchScroll){var f=r.hitDragging,u=f.initialHit,e=f.finalHit;u&&e&&vs(u,e)&&(t=s.context,o=i(i({},dv(u.dateSpan,t)),{dayEl:u.dayEl,jsEvent:n.origEvent,view:t.viewApi||t.calendarApi.view}),t.emitter.trigger("dateClick",o))}};r.dragging=new lr(t.el);r.dragging.autoScroller.isEnabled=!1;u=r.hitDragging=new uu(r.dragging,go(t));u.emitter.on("pointerdown",r.handlePointerDown);u.emitter.on("dragend",r.handleDragEnd);return r}return u(t,n),t.prototype.destroy=function(){this.dragging.destroy()},t}(di);stt=function(n){function t(t){var i=n.call(this,t)||this,r;i.dragSelection=null;i.handlePointerDown=function(n){var r=i,t=r.component,u=r.dragging,f=t.context.options,e=f.selectable&&t.isValidDateDownEl(n.origEvent.target);u.setIgnoreMove(!e);u.delay=n.isTouch?iyt(t):null};i.handleDragStart=function(n){i.component.context.calendarApi.unselect(n)};i.handleHitUpdate=function(n,t){var u=i.component.context,r=null,e=!1,f,o;n&&(f=i.hitDragging.initialHit,o=n.componentId===f.componentId&&i.isHitComboAllowed&&!i.isHitComboAllowed(f,n),o||(r=ryt(f,n,u.pluginHooks.dateSelectionTransformers)),r&&bn(r,n.dateProfile,u)||(e=!0,r=null));r?u.dispatch({type:"SELECT_DATES",selection:r}):t||u.dispatch({type:"UNSELECT_DATES"});e?au():vu();t||(i.dragSelection=r)};i.handlePointerUp=function(n){i.dragSelection&&(ll(i.dragSelection,n,i.component.context),i.dragSelection=null)};var e=t.component,f=e.context.options,u=i.dragging=new lr(t.el);u.touchScrollAllowed=!1;u.minDistance=f.selectMinDistance||0;u.autoScroller.isEnabled=f.dragScroll;r=i.hitDragging=new uu(i.dragging,go(t));r.emitter.on("pointerdown",i.handlePointerDown);r.emitter.on("dragstart",i.handleDragStart);r.emitter.on("hitupdate",i.handleHitUpdate);r.emitter.on("pointerup",i.handlePointerUp);return i}return u(t,n),t.prototype.destroy=function(){this.dragging.destroy()},t}(di);gv=function(n){function t(r){var u=n.call(this,r)||this,f;u.subjectEl=null;u.subjectSeg=null;u.isDragging=!1;u.eventRange=null;u.relevantEvents=null;u.receivingContext=null;u.validMutation=null;u.mutatedRelevantEvents=null;u.handlePointerDown=function(n){var f=n.origEvent.target,o=u,t=o.component,i=o.dragging,s=i.mirror,r=t.context.options,c=t.context,e;u.subjectEl=n.subjectEl;var l=u.subjectSeg=ir(n.subjectEl),a=u.eventRange=l.eventRange,h=a.instance.instanceId;u.relevantEvents=ge(c.getCurrentData().eventStore,h);i.minDistance=n.isTouch?0:r.eventDragMinDistance;i.delay=n.isTouch&&h!==t.props.eventSelection?fyt(t):null;s.parentNode=r.fixedMirrorParent?r.fixedMirrorParent:d(f,".fc");s.revertDuration=r.dragRevertDuration;e=t.isValidSegDownEl(f)&&!d(f,".fc-event-resizer");i.setIgnoreMove(!e);u.isDragging=e&&n.subjectEl.classList.contains("fc-event-draggable")};u.handleDragStart=function(n){var t=u.component.context,i=u.eventRange,r=i.instance.instanceId;n.isTouch?r!==u.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"});u.isDragging&&(t.calendarApi.unselect(n),t.emitter.trigger("eventDragStart",{el:u.subjectEl,event:new v(t,i.def,i.instance),jsEvent:n.origEvent,view:t.viewApi}))};u.handleHitUpdate=function(n,t){var o;if(u.isDragging){var s=u.relevantEvents,h=u.hitDragging.initialHit,c=u.component.context,i=null,r=null,f=null,l=!1,e={affectedEvents:s,mutatedEvents:it(),isEvent:!0};n&&(i=n.context,o=i.options,c===i||o.editable&&o.droppable?(r=uyt(h,n,i.getCurrentData().pluginHooks.eventDragMutationMassagers),r&&(f=eo(s,i.getCurrentData().eventUiBases,r,i),e.mutatedEvents=f,rs(e,n.dateProfile,i)||(l=!0,r=null,f=null,e.mutatedEvents=it()))):i=null);u.displayDrag(i,e);l?au():vu();t||(c===i&&vs(h,n)&&(r=null),u.dragging.setMirrorNeedsRevert(!r),u.dragging.setMirrorIsVisible(!n||!document.querySelector(".fc-event-mirror")),u.receivingContext=i,u.validMutation=r,u.mutatedRelevantEvents=f)}};u.handlePointerUp=function(){u.isDragging||u.cleanup()};u.handleDragEnd=function(n){var nt,p,w,s,b,tt,k,d;if(u.isDragging){var t=u.component.context,h=t.viewApi,g=u,r=g.receivingContext,c=g.validMutation,l=u.eventRange.def,e=u.eventRange.instance,a=new v(t,l,e),o=u.relevantEvents,f=u.mutatedRelevantEvents,y=u.hitDragging.finalHit;if(u.clearDrag(),t.emitter.trigger("eventDragStop",{el:u.subjectEl,event:a,jsEvent:n.origEvent,view:h}),c){if(r===t){for(nt=new v(t,f.defs[l.defId],e?f.instances[e.instanceId]:null),t.dispatch({type:"MERGE_EVENTS",eventStore:f}),p={oldEvent:a,event:nt,relatedEvents:wi(f,t,e),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:o})}},w={},s=0,b=t.getCurrentData().pluginHooks.eventDropTransformers;s=0)for(o=t.lateralStart;o1,showWeekNumbers:n.showWeekNumbers,todayRange:o,dateProfile:h,cells:f,renderIntro:n.renderRowIntro,businessHourSegs:l[e],eventSelection:n.eventSelection,bgEventSegs:a[e].filter(fpt),fgEventSegs:v[e],dateSelectionSegs:y[e],eventDrag:p[e],eventResize:w[e],dayMaxEvents:u,dayMaxEventRows:r,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint})}))))}))},r.prototype.prepareHits=function(){this.rowPositions=new fi(this.rootEl,this.rowRefs.collect().map(function(n){return n.getCellEls()[0]}),!1,!0);this.colPositions=new fi(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},r.prototype.queryHit=function(n,t){var o=this,f=o.colPositions,e=o.rowPositions,r=f.leftToIndex(n),u=e.topToIndex(t),s;return u!=null&&r!=null?(s=this.props.cells[u][r],{dateProfile:this.props.dateProfile,dateSpan:i({range:this.getCellRange(u,r),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(u,r),rect:{left:f.lefts[r],right:f.rights[r],top:e.tops[u],bottom:e.bottoms[u]},layer:0}):null},r.prototype.getCellEl=function(n,t){return this.rowRefs.currentMap[n].getCellEls()[t]},r.prototype.getCellRange=function(n,t){var i=this.props.cells[n][t].date,r=p(i,1);return{start:i,end:r}},r}(rt);var fy=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return u(t,n),t.prototype.sliceRange=function(n,t){return t.sliceRange(n)},t}(is),ey=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.slicer=new fy,t.tableRef=h(),t}return u(r,n),r.prototype.render=function(){var r=this,n=r.props,u=r.context;return t(ws,i({ref:this.tableRef},this.slicer.sliceProps(n,n.dateProfile,n.nextDayThreshold,u,n.dayTableModel),{dateProfile:n.dateProfile,cells:n.dayTableModel.cells,colGroupNode:n.colGroupNode,tableMinWidth:n.tableMinWidth,renderRowIntro:n.renderRowIntro,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.showWeekNumbers,expandRows:n.expandRows,headerAlignElRef:n.headerAlignElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint}))},r}(rt),ktt=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildDayTableModel=f(oy),t.headerRef=h(),t.tableRef=h(),t}return u(i,n),i.prototype.render=function(){var u=this,f=this.context,i=f.options,s=f.dateProfileGenerator,n=this.props,r=this.buildDayTableModel(n.dateProfile,s),e=i.dayHeaders&&t(ts,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),o=function(f){return t(ey,{ref:u.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:i.nextDayThreshold,colGroupNode:f.tableColGroupNode,tableMinWidth:f.tableMinWidth,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:u.headerElRef,clientWidth:f.clientWidth,clientHeight:f.clientHeight,forPrint:n.forPrint})};return i.dayMinWidth?this.renderHScrollLayout(e,o,r.colCnt,i.dayMinWidth):this.renderSimpleLayout(e,o)},i}(ny);var ept=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.buildRenderRange=function(t,i,r){var o=this.props.dateEnv,s=n.prototype.buildRenderRange.call(this,t,i,r),f=s.start,u=s.end,e,h;return/^(year|month)$/.test(i)&&(f=o.startOfWeek(f),e=o.startOfWeek(u),e.valueOf()!==u.valueOf()&&(u=pc(e,1))),this.props.monthMode&&this.props.fixedWeekCount&&(h=Math.ceil(wb(f,u)),u=pc(u,6-h)),{start:f,end:u}},t}(yo),dtt=k({initialView:"dayGridMonth",views:{dayGrid:{component:ktt,dateProfileGeneratorClass:ept},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),opt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(n){return n.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(n){return n.allDay?nd(n)?["timed","allDay"]:["allDay"]:["timed"]},t}(sf),spt=y({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});var cpt=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){return this.props.slatMetas.map(function(n){return t("tr",{key:n.key},t(gtt,i({},n)))})},r}(e),lpt=y({week:"short"}),apt=5,sy=function(n){function r(){var r=n!==null&&n.apply(this,arguments)||this;return r.allDaySplitter=new opt,r.headerElRef=h(),r.rootElRef=h(),r.scrollerElRef=h(),r.state={slatCoords:null},r.handleScrollTopRequest=function(n){var t=r.scrollerElRef.current;t&&(t.scrollTop=n)},r.renderHeadAxis=function(n,u){u===void 0&&(u="");var e=r.context.options,o=r.props.dateProfile,f=o.renderRange,s=ni(f.start,f.end),h=e.navLinks&&s===1?{"data-navlink":ur(f.start,"week"),tabIndex:0}:{};return e.weekNumbers&&n==="day"?t(hs,{date:f.start,defaultFormat:lpt},function(n,r,f,e){return t("th",{ref:n,className:["fc-timegrid-axis","fc-scrollgrid-shrink",].concat(r).join(" ")},t("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:u}},t("a",i({ref:f,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},h),e)))}):t("th",{className:"fc-timegrid-axis"},t("div",{className:"fc-timegrid-axis-frame",style:{height:u}}))},r.renderTableRowAxis=function(n){var u=r.context,i=u.options,f=u.viewApi,e={text:i.allDayText,view:f};return t(b,{hookProps:e,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:vpt,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},function(i,r,u,f){return t("td",{ref:i,className:["fc-timegrid-axis","fc-scrollgrid-shrink",].concat(r).join(" ")},t("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(n==null?" fc-timegrid-axis-frame-liquid":""),style:{height:n}},t("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:u},f)))})},r.handleSlatCoords=function(n){r.setState({slatCoords:n})},r}return u(r,n),r.prototype.renderSimpleLayout=function(n,i,r){var o=this,f=o.context,e=o.props,u=[],s=hr(f.options);return n&&u.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}}),i&&(u.push({type:"body",key:"all-day",chunk:{content:i}}),u.push({type:"body",key:"all-day-divider",outerContent:t("tr",{className:"fc-scrollgrid-section"},t("td",{className:"fc-timegrid-divider "+f.theme.getClass("tableCellShaded")}))})),u.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(f.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:r}}),t(bt,{viewSpec:f.viewSpec,elRef:this.rootElRef},function(n,i){return t("div",{className:["fc-timegrid"].concat(i).join(" "),ref:n},t(pf,{liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:e.forPrint,cols:[{width:"shrink"}],sections:u}))})},r.prototype.renderHScrollLayout=function(n,i,r,u,f,e,o){var a=this,v=this.context.pluginHooks.scrollGridImpl,l;if(!v)throw new Error("No ScrollGrid implementation");var y=this,s=y.context,c=y.props,p=!c.forPrint&&hr(s.options),w=!c.forPrint&&yf(s.options),h=[];return n&&h.push({type:"header",key:"header",isSticky:p,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(n){return t("tr",null,a.renderHeadAxis("day",n.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n},]}),i&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(n){return t("tr",null,a.renderTableRowAxis(n.rowSyncHeights[0]))}},{key:"cols",content:i},]}),h.push({key:"all-day-divider",type:"body",outerContent:t("tr",{className:"fc-scrollgrid-section"},t("td",{colSpan:2,className:"fc-timegrid-divider "+s.theme.getClass("tableCellShaded")}))})),l=s.options.nowIndicator,h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(s.options.expandRows),chunks:[{key:"axis",content:function(n){return t("div",{className:"fc-timegrid-axis-chunk"},t("table",{style:{height:n.expandRows?n.clientHeight:""}},n.tableColGroupNode,t("tbody",null,t(cpt,{slatMetas:e}))),t("div",{className:"fc-timegrid-now-indicator-container"},t(at,{unit:l?"minute":"day"},function(n){var i=l&&o&&o.safeComputeTop(n);return typeof i=="number"?t(cr,{isAxis:!0,date:n},function(n,r,u,f){return t("div",{ref:n,className:["fc-timegrid-now-indicator-arrow"].concat(r).join(" "),style:{top:i}},f)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:r},]}),w&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:sr},{key:"cols",content:sr},]}),t(bt,{viewSpec:s.viewSpec,elRef:this.rootElRef},function(n,i){return t("div",{className:["fc-timegrid"].concat(i).join(" "),ref:n},t(v,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:u,minWidth:f}]},],sections:h}))})},r.prototype.getAllDayMaxEventProps=function(){var i=this.context.options,n=i.dayMaxEvents,t=i.dayMaxEventRows;return(n===!0||t===!0)&&(n=undefined,t=apt),{dayMaxEvents:n,dayMaxEventRows:t}},r}(rt);var nit=function(){function n(n,t,i){this.positions=n;this.dateProfile=t;this.slotDuration=i}return n.prototype.safeComputeTop=function(n){var i=this.dateProfile,r,t;return wt(i.currentRange,n)&&(r=a(n),t=n.valueOf()-r.valueOf(),t>=tt(i.slotMinTime)&&t0,b=Boolean(o)&&o.span.end-o.span.start0?r.renderSegList(e,s):r.renderEmptyMessage()))})},r.prototype.renderEmptyMessage=function(){var i=this.context,n=i.options,r=i.viewApi,u={text:n.noEventsText,view:r};return t(b,{hookProps:u,classNames:n.noEventsClassNames,content:n.noEventsContent,defaultContent:kwt,didMount:n.noEventsDidMount,willUnmount:n.noEventsWillUnmount},function(n,i,r,u){return t("div",{className:["fc-list-empty"].concat(i).join(" "),ref:n},t("div",{className:"fc-list-empty-cushion",ref:r},u))})},r.prototype.renderSegList=function(n,r){var u=this.context,e=u.theme,o=u.options,f=gwt(n);return t(at,{unit:"day"},function(n,u){for(var h,v,c,y,l,a=[],s=0;sthis.lastSizingDate.valueOf()+ot.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=n,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10},r.prototype.computeShrinkWidths=function(){var r=this,u=this.compileColGroupStats(this.props.colGroups.map(function(n){return[n]})),n=this.getDims(),f=n[0],t=n[1],e=f*t,i=[];return u.forEach(function(n,u){if(n.hasShrinkCol){var f=r.chunkElRefs.collect(u,e,t);i[u]=ov(f)}}),i},r.prototype.computeSectionRowMaxHeights=function(){for(var u,f,i,s,h,d,c,g,r,a,v,it,n,y=new Map,p=this.getDims(),rt=p[0],t=p[1],w=[],o=0;o1)?t(kut,{key:o,colSpec:e,fieldValue:h,rowSpan:s}):t(but,{key:o,colSpec:e,resource:i,fieldValue:h,depth:u,hasChildren:n.hasChildren,isExpanded:n.isExpanded,innerHeight:n.innerHeight})}))},i}(e);ah.addPropsEquality({rowSpans:ht});gp=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.innerInnerRef=h(),t.onExpanderClick=function(){var n=t.props;t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:n.id,isExpanded:!n.isExpanded})},t}return u(i,n),i.prototype.render=function(){var r=this,u=this,n=u.props,f=u.context,e={groupValue:n.group.value,view:f.viewApi},i=n.group.spec;return t("tr",null,t(b,{hookProps:e,classNames:i.labelClassNames,content:i.labelContent,defaultContent:cti,didMount:i.labelDidMount,willUnmount:i.labelWillUnmount},function(i,u,e,o){return t("td",{ref:i,colSpan:n.spreadsheetColCnt,className:["fc-datagrid-cell","fc-resource-group",f.theme.getClass("tableCellShaded"),].concat(u).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:n.innerHeight}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:r.innerInnerRef},t(put,{depth:0,hasChildren:!0,isExpanded:n.isExpanded,onExpanderClick:r.onExpanderClick}),t("span",{className:"fc-datagrid-cell-main",ref:e},o))))}))},i}(e);gp.addPropsEquality({group:cut});var lti=20,ati=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.resizerElRefs=new nt(t._handleColResizerEl.bind(t)),t.colDraggings={},t}return u(i,n),i.prototype.render=function(){var h=this,r=this.props,u=r.colSpecs,n=r.superHeaderRendering,i=r.rowInnerHeights,e={view:this.context.viewApi},f=[],o,s;return i=i.slice(),n&&(o=i.shift(),f.push(t("tr",{key:"row-super"},t(b,{hookProps:e,classNames:n.headerClassNames,content:n.headerContent,didMount:n.headerDidMount,willUnmount:n.headerWillUnmount},function(n,i,r,f){return t("th",{colSpan:u.length,ref:n,className:["fc-datagrid-cell","fc-datagrid-cell-super",].concat(i).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:o}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:r},f)))})))),s=i.shift(),f.push(t("tr",{key:"row"},u.map(function(n,i){var r=i===u.length-1;return t(b,{key:i,hookProps:e,classNames:n.headerClassNames,content:n.headerContent,didMount:n.headerDidMount,willUnmount:n.headerWillUnmount},function(u,f,e,o){return t("th",{ref:u,className:["fc-datagrid-cell"].concat(f).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:s}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&t("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},t("span",{className:"fc-icon"})),t("span",{className:"fc-datagrid-cell-main",ref:e},o)),!r&&t("div",{className:"fc-datagrid-cell-resizer",ref:h.resizerElRefs.createRef(i)})))})}))),t(c,null,f)},i.prototype._handleColResizerEl=function(n,t){var r=this.colDraggings,i;n?(i=this.initColResizing(n,parseInt(t,10)),i&&(r[t]=i)):(i=r[t],i&&(i.destroy(),delete r[t]))},i.prototype.initColResizing=function(n,t){var u=this.context,s=u.pluginHooks,h=u.isRtl,f=this.props.onColWidthChange,e=s.elementDraggingImpl,i,o,r;if(e){i=new e(n);i.emitter.on("dragstart",function(){var i=dt(d(n,"tr"),"th");r=i.map(function(n){return n.getBoundingClientRect().width});o=r[t]});i.emitter.on("dragmove",function(n){r[t]=Math.max(o+n.deltaX*(h?-1:1),lti);f&&f(r.slice())});return i.setAutoScrollEnabled(!1),i}return null},i}(e),vti=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var n=this,r=n.props,i=n.context,u={resource:new ft(i,r.resource)};return t(tu,{hookProps:u,content:i.options.resourceLaneContent},function(n,i){return i&&t("div",{className:"fc-timeline-lane-misc",ref:n},i)})},i}(e),dut=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.refineHookProps=yi(yti),t.normalizeClassNames=iu(),t.handleHeightChange=function(n,i){if(t.props.onHeightChange)t.props.onHeightChange(d(n,"tr"),i)},t}return u(i,n),i.prototype.render=function(){var e=this,r=this,n=r.props,u=r.context,i=u.options,f=this.refineHookProps({resource:n.resource,context:u}),o=this.normalizeClassNames(i.resourceLaneClassNames,f);return t("tr",{ref:n.elRef},t(bi,{hookProps:f,didMount:i.resourceLaneDidMount,willUnmount:i.resourceLaneWillUnmount},function(i){return t("td",{ref:i,className:["fc-timeline-lane","fc-resource"].concat(o).join(" "),"data-resource-id":n.resource.id},t("div",{className:"fc-timeline-lane-frame",style:{height:n.innerHeight}},t(vti,{resource:n.resource}),t(fh,{dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,nextDayThreshold:n.nextDayThreshold,businessHours:n.businessHours,eventStore:n.eventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,timelineCoords:n.timelineCoords,onHeightChange:e.handleHeightChange,resourceId:n.resource.id})))}))},i}(e);var pti=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var r=this,i=this.props,n=this.props.renderingHooks,u={groupValue:i.groupValue,view:this.context.viewApi};return t("tr",{ref:i.elRef},t(b,{hookProps:u,classNames:n.laneClassNames,content:n.laneContent,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},function(n,u,f,e){return t("td",{ref:n,className:["fc-timeline-lane","fc-resource-group",r.context.theme.getClass("tableCellShaded"),].concat(u).join(" ")},t("div",{style:{height:i.innerHeight},ref:f},e))}))},i}(e),wti=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var r=this,n=r.props,e=r.context,u=n.rowElRefs,f=n.innerHeights;return t("tbody",null,n.rowNodes.map(function(r,o){if(r.group)return t(pti,{key:r.id,elRef:u.createRef(r.id),groupValue:r.group.value,renderingHooks:r.group.spec,innerHeight:f[o]||""});if(r.resource){var s=r.resource;return t(dut,i({key:r.id,elRef:u.createRef(r.id)},n.splitProps[s.id],{resource:s,dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,nextDayThreshold:e.options.nextDayThreshold,businessHours:s.businessHours||n.fallbackBusinessHours,innerHeight:f[o]||"",timelineCoords:n.slatCoords,onHeightChange:n.onRowHeightChange}))}return null}))},r}(e),bti=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t.rowElRefs=new nt,t}return u(i,n),i.prototype.render=function(){var i=this,n=i.props,r=i.context;return t("table",{ref:this.rootElRef,className:"fc-scrollgrid-sync-table "+r.theme.getClass("table"),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:n.minHeight}},t(wti,{rowElRefs:this.rowElRefs,rowNodes:n.rowNodes,dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,splitProps:n.splitProps,fallbackBusinessHours:n.fallbackBusinessHours,slatCoords:n.slatCoords,innerHeights:n.innerHeights,onRowHeightChange:n.onRowHeightChange}))},i.prototype.componentDidMount=function(){this.updateCoords()},i.prototype.componentDidUpdate=function(){this.updateCoords()},i.prototype.componentWillUnmount=function(){if(this.props.onRowCoords)this.props.onRowCoords(null)},i.prototype.updateCoords=function(){var n=this.props;if(n.onRowCoords&&n.clientWidth!==null)this.props.onRowCoords(new fi(this.rootElRef.current,kti(this.rowElRefs.currentMap,n.rowNodes),!1,!0))},i}(e);gut=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.computeHasResourceBusinessHours=f(dti),t.resourceSplitter=new oh,t.bgSlicer=new ip,t.slatsRef=h(),t.state={slatCoords:null},t.handleEl=function(n){n?t.context.registerInteractiveComponent(t,{el:n}):t.context.unregisterInteractiveComponent(t)},t.handleSlatCoords=function(n){if(t.setState({slatCoords:n}),t.props.onSlatCoords)t.props.onSlatCoords(n)},t.handleRowCoords=function(n){if(t.rowCoords=n,t.props.onRowCoords)t.props.onRowCoords(n)},t}return u(i,n),i.prototype.render=function(){var o=this,s=this,n=s.props,h=s.state,i=s.context,f=n.dateProfile,e=n.tDateProfile,v=ii(e.slotDuration).unit,l=this.computeHasResourceBusinessHours(n.rowNodes),a=this.resourceSplitter.splitProps(n),y=a[""],r=this.bgSlicer.sliceProps(y,f,e.isTimeScale?null:n.nextDayThreshold,i,f,i.dateProfileGenerator,e,i.dateEnv),u=h.slatCoords&&h.slatCoords.dateProfile===n.dateProfile?h.slatCoords:null;return t("div",{ref:this.handleEl,className:["fc-timeline-body",n.expandRows?"fc-timeline-body-expandrows":"",].join(" "),style:{minWidth:n.tableMinWidth}},t(at,{unit:v},function(s,h){return t(c,null,t(np,{ref:o.slatsRef,dateProfile:f,tDateProfile:e,nowDate:s,todayRange:h,clientWidth:n.clientWidth,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,onCoords:o.handleSlatCoords,onScrollLeftRequest:n.onScrollLeftRequest}),t(tp,{businessHourSegs:l?null:r.businessHourSegs,bgEventSegs:r.bgEventSegs,timelineCoords:u,eventResizeSegs:r.eventResize?r.eventResize.segs:[],dateSelectionSegs:r.dateSelectionSegs,nowDate:s,todayRange:h}),t(bti,{rowNodes:n.rowNodes,dateProfile:f,tDateProfile:n.tDateProfile,nowDate:s,todayRange:h,splitProps:a,fallbackBusinessHours:l?n.businessHours:null,clientWidth:n.clientWidth,minHeight:n.expandRows?n.clientHeight:"",tableMinWidth:n.tableMinWidth,innerHeights:n.rowInnerHeights,slatCoords:u,onRowCoords:o.handleRowCoords,onRowHeightChange:n.onRowHeightChange}),i.options.nowIndicator&&u&&u.isDateInRange(s)&&t("div",{className:"fc-timeline-now-indicator-container"},t(cr,{isAxis:!1,date:s},function(n,r,f,e){return t("div",{ref:n,className:["fc-timeline-now-indicator-line"].concat(r).join(" "),style:rh(u.dateToCoord(s),i.isRtl)},e)})))}))},i.prototype.queryHit=function(n,t){var u=this.rowCoords,r=u.topToIndex(t),f,i;return r!=null&&(f=this.props.rowNodes[r].resource,f&&(i=this.slatsRef.current.positionToHit(n),i))?{dateProfile:this.props.dateProfile,dateSpan:{range:i.dateSpan.range,allDay:i.dateSpan.allDay,resourceId:f.id},rect:{left:i.left,right:i.right,top:u.tops[r],bottom:u.bottoms[r]},dayEl:i.dayEl,layer:0}:null},i}(rt);var nft=30,gti=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.scrollGridRef=h(),t.timeBodyScrollerElRef=h(),t.spreadsheetHeaderChunkElRef=h(),t.rootElRef=h(),t.ensureScrollGridResizeId=0,t.state={resourceAreaWidthOverride:null},t.ensureScrollGridResize=function(){t.ensureScrollGridResizeId&&clearTimeout(t.ensureScrollGridResizeId);t.ensureScrollGridResizeId=setTimeout(function(){t.scrollGridRef.current.handleSizing(!1)},ot.SCROLLGRID_RESIZE_INTERVAL+1)},t}return u(i,n),i.prototype.render=function(){var u=this,n=u.props,f=u.state,i=u.context,r=i.options,s=!n.forPrint&&hr(r),h=!n.forPrint&&yf(r),e=[{type:"header",key:"header",syncRowHeights:!0,isSticky:s,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:n.spreadsheetHeaderRows},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",content:n.timeHeaderContent},]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:n.spreadsheetBodyRows},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:n.timeBodyContent},]},],o;return h&&e.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:sr},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",content:sr},]}),o=f.resourceAreaWidthOverride!=null?f.resourceAreaWidthOverride:r.resourceAreaWidth,t(ne,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:!1,colGroups:[{cols:n.spreadsheetCols,width:o},{cols:[]},{cols:n.timeCols},],sections:e})},i.prototype.forceTimeScroll=function(n){var t=this.scrollGridRef.current;t.forceScrollLeft(2,n)},i.prototype.forceResourceScroll=function(n){var t=this.scrollGridRef.current;t.forceScrollTop(1,n)},i.prototype.getResourceScroll=function(){var n=this.timeBodyScrollerElRef.current;return n.scrollTop},i.prototype.componentDidMount=function(){this.initSpreadsheetResizing()},i.prototype.componentWillUnmount=function(){this.destroySpreadsheetResizing()},i.prototype.initSpreadsheetResizing=function(){var i=this,r=this.context,o=r.isRtl,s=r.pluginHooks,u=s.elementDraggingImpl,h=this.spreadsheetHeaderChunkElRef.current,t,n,f,e;if(u){t=this.rootElRef.current;n=this.spreadsheetResizerDragging=new u(t,".fc-resource-timeline-divider");n.emitter.on("dragstart",function(){f=h.getBoundingClientRect().width;e=t.getBoundingClientRect().width});n.emitter.on("dragmove",function(n){var t=f+n.deltaX*(o?-1:1);t=Math.max(t,nft);t=Math.min(t,e-nft);i.setState({resourceAreaWidthOverride:t},i.ensureScrollGridResize)});n.setAutoScrollEnabled(!1)}},i.prototype.destroySpreadsheetResizing=function(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()},i}(e),nw=function(n){function i(t,i){var r=n.call(this,t,i)||this;return r.processColOptions=f(rii),r.buildTimelineDateProfile=f(ky),r.hasNesting=f(iii),r.buildRowNodes=f(bp),r.layoutRef=h(),r.rowNodes=[],r.renderedRowNodes=[],r.buildRowIndex=f(nii),r.handleSlatCoords=function(n){r.setState({slatCoords:n})},r.handleRowCoords=function(n){r.rowCoords=n;r.scrollResponder.update(!1)},r.handleMaxCushionWidth=function(n){r.setState({slotCushionMaxWidth:Math.ceil(n)})},r.handleScrollLeftRequest=function(n){var t=r.layoutRef.current;t.forceTimeScroll(n)},r.handleScrollRequest=function(n){var i=r.rowCoords,o=r.layoutRef.current,u=n.rowId||n.resourceId,f,t,e;return i?(u&&(f=r.buildRowIndex(r.renderedRowNodes),t=f[u],t!=null&&(e=n.fromBottom!=null?i.bottoms[t]-n.fromBottom:i.tops[t],o.forceResourceScroll(e))),!0):null},r.handleColWidthChange=function(n){r.setState({spreadsheetColWidths:n})},r.state={resourceAreaWidth:i.options.resourceAreaWidth,spreadsheetColWidths:[]},r}return u(i,n),i.prototype.render=function(){var i=this,o=this,n=o.props,l=o.state,r=o.context,f=r.options,v=r.viewSpec,u=this.processColOptions(r.options),y=u.superHeaderRendering,p=u.groupSpecs,w=u.orderSpecs,b=u.isVGrouping,s=u.colSpecs,e=this.buildTimelineDateProfile(n.dateProfile,r.dateEnv,f,r.dateProfileGenerator),h=this.rowNodes=this.buildRowNodes(n.resourceStore,p,w,b,n.resourceEntityExpansions,f.resourcesInitiallyExpanded),k=["fc-resource-timeline",this.hasNesting(h)?"":"fc-resource-timeline-flat","fc-timeline",f.eventOverlap===!1?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled",],a=f.slotMinWidth,d=up(e,a||this.computeFallbackSlotMinWidth(e));return t(bt,{viewSpec:v},function(u,f){return t("div",{ref:u,className:k.concat(f).join(" ")},t(gti,{ref:i.layoutRef,forPrint:n.forPrint,isHeightAuto:n.isHeightAuto,spreadsheetCols:tii(s,l.spreadsheetColWidths,""),spreadsheetHeaderRows:function(n){return t(ati,{superHeaderRendering:y,colSpecs:s,onColWidthChange:i.handleColWidthChange,rowInnerHeights:n.rowSyncHeights})},spreadsheetBodyRows:function(n){return t(c,null,i.renderSpreadsheetRows(h,s,n.rowSyncHeights))},timeCols:d,timeHeaderContent:function(r){return t(gy,{clientWidth:r.clientWidth,clientHeight:r.clientHeight,tableMinWidth:r.tableMinWidth,tableColGroupNode:r.tableColGroupNode,dateProfile:n.dateProfile,tDateProfile:e,slatCoords:l.slatCoords,rowInnerHeights:r.rowSyncHeights,onMaxCushionWidth:a?null:i.handleMaxCushionWidth})},timeBodyContent:function(u){return t(gut,{dateProfile:n.dateProfile,clientWidth:u.clientWidth,clientHeight:u.clientHeight,tableMinWidth:u.tableMinWidth,tableColGroupNode:u.tableColGroupNode,expandRows:u.expandRows,tDateProfile:e,rowNodes:h,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,resourceStore:n.resourceStore,nextDayThreshold:r.options.nextDayThreshold,rowInnerHeights:u.rowSyncHeights,onSlatCoords:i.handleSlatCoords,onRowCoords:i.handleRowCoords,onScrollLeftRequest:i.handleScrollLeftRequest,onRowHeightChange:u.reportRowHeightChange})}}))})},i.prototype.renderSpreadsheetRows=function(n,i,r){return n.map(function(n,u){return n.group?t(gp,{key:n.id,id:n.id,spreadsheetColCnt:i.length,isExpanded:n.isExpanded,group:n.group,innerHeight:r[u]||""}):n.resource?t(ah,{key:n.id,colSpecs:i,rowSpans:n.rowSpans,depth:n.depth,isExpanded:n.isExpanded,hasChildren:n.hasChildren,resource:n.resource,innerHeight:r[u]||""}):null})},i.prototype.componentDidMount=function(){this.renderedRowNodes=this.rowNodes;this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},i.prototype.getSnapshotBeforeUpdate=function(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}},i.prototype.componentDidUpdate=function(n,t,i){this.renderedRowNodes=this.rowNodes;this.scrollResponder.update(n.dateProfile!==this.props.dateProfile);i.resourceScroll&&this.handleScrollRequest(i.resourceScroll)},i.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},i.prototype.computeFallbackSlotMinWidth=function(n){return Math.max(30,(this.state.slotCushionMaxWidth||0)/n.slotsPerLabel)},i.prototype.queryResourceScroll=function(){var r=this,u=r.rowCoords,o=r.renderedRowNodes,n,e,i;if(u){var s=this.layoutRef.current,f=u.bottoms,h=s.getResourceScroll(),t={};for(n=0;n0){t.rowId=e.id;t.fromBottom=i;break}return t}return null},i}(e);return nw.addStateEquality({spreadsheetColWidths:ht}),tft=k({deps:[ar,lh,fp,],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:nw,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}}),wo.push(wyt,dtt,sit,vit,nbt,lbt,urt,lkt,fp,lh,uti,yut,tft),n.AbstractResourceDayTableModel=lp,n.BASE_OPTION_DEFAULTS=ri,n.BASE_OPTION_REFINERS=fl,n.BaseComponent=e,n.BgEvent=kf,n.BootstrapTheme=kt,n.Calendar=itt,n.CalendarApi=pi,n.CalendarContent=yn,n.CalendarDataManager=bo,n.CalendarDataProvider=cn,n.CalendarRoot=ka,n.Component=ao,n.ContentHook=tu,n.CustomContentRenderContext=vo,n.DEFAULT_RESOURCE_ORDER=te,n.DateComponent=rt,n.DateEnv=pl,n.DateProfileGenerator=yo,n.DayCellContent=os,n.DayCellRoot=bf,n.DayGridView=ktt,n.DayHeader=ts,n.DayResourceTableModel=vp,n.DaySeriesModel=iv,n.DayTable=ey,n.DayTableModel=rv,n.DayTableSlicer=fy,n.DayTimeCols=ly,n.DayTimeColsSlicer=ks,n.DayTimeColsView=py,n.DelayedRunner=or,n.Draggable=vyt,n.ElementDragging=ba,n.ElementScrollController=og,n.Emitter=fr,n.EventApi=v,n.EventRoot=ru,n.EventSourceApi=hi,n.FeaturefulElementDragging=lr,n.Fragment=c,n.Interaction=di,n.ListView=by,n.MoreLinkRoot=cs,n.MountHook=bi,n.NamedTimeZoneImpl=ln,n.NowIndicatorRoot=cr,n.NowTimer=at,n.PointerDragging=as,n.PositionCache=fi,n.RefMap=nt,n.RenderHook=b,n.ResourceApi=ft,n.ResourceDayHeader=hh,n.ResourceDayTable=dp,n.ResourceDayTableModel=ap,n.ResourceDayTableView=lut,n.ResourceDayTimeCols=aut,n.ResourceDayTimeColsView=vut,n.ResourceLabelRoot=eut,n.ResourceSplitter=oh,n.ResourceTimelineLane=dut,n.ResourceTimelineView=nw,n.ScrollController=lo,n.ScrollGrid=ne,n.ScrollResponder=ag,n.Scroller=fs,n.SegHierarchy=af,n.SimpleScrollGrid=pf,n.Slicer=is,n.Splitter=sf,n.SpreadsheetRow=ah,n.StandardEvent=wf,n.Table=ws,n.TableDateCell=nv,n.TableDowCell=tv,n.TableView=ny,n.Theme=er,n.ThirdPartyDraggable=pyt,n.TimeCols=bs,n.TimeColsSlatsCoords=nit,n.TimeColsView=sy,n.TimelineCoords=art,n.TimelineHeader=gy,n.TimelineHeaderRows=lrt,n.TimelineLane=fh,n.TimelineLaneBg=tp,n.TimelineLaneSlicer=ip,n.TimelineSlats=np,n.TimelineView=rp,n.VResourceJoiner=yp,n.VResourceSplitter=pp,n.ViewApi=vl,n.ViewContextType=lt,n.ViewRoot=bt,n.WeekNumberRoot=hs,n.WindowScrollController=sg,n.addDays=p,n.addDurations=ve,n.addMs=gt,n.addWeeks=pc,n.allowContextMenu=ab,n.allowSelection=cb,n.applyMutationToEventStore=eo,n.applyStyle=ci,n.applyStyleProp=sc,n.asCleanDays=tl,n.asRoughMinutes=rk,n.asRoughMs=tt,n.asRoughSeconds=uk,n.binarySearch=wa,n.buildClassNameNormalizer=iu,n.buildDayRanges=ay,n.buildDayTableModel=oy,n.buildEntryKey=ki,n.buildEventApis=wi,n.buildEventRangeKey=uo,n.buildHashFromArray=aet,n.buildIsoString=wu,n.buildNavLinkData=ur,n.buildResourceFields=kp,n.buildRowNodes=bp,n.buildSegCompareObj=id,n.buildSegTimeText=gr,n.buildSlatCols=up,n.buildSlatMetas=yy,n.buildTimeColsModel=wy,n.buildTimelineDateProfile=ky,n.collectFromHash=gc,n.combineEventUis=no,n.compareByFieldSpec=vb,n.compareByFieldSpecs=ac,n.compareNumbers=yb,n.compareObjs=ae,n.computeEarliestSegStart=df,n.computeEdges=ua,n.computeFallbackHeaderFormat=da,n.computeHeightAndMargins=uht,n.computeInnerRect=fa,n.computeRect=co,n.computeSegDraggable=rd,n.computeSegEndResizable=fd,n.computeSegStartResizable=ud,n.computeShrinkWidth=ov,n.computeSmallestCellWidth=pb,n.computeVisibleDayRange=tf,n.config=ot,n.constrainPoint=rg,n.coordToCss=rh,n.coordsToCss=uh,n.createContext=sa,n.createDuration=s,n.createElement=t,n.createEmptyEventStore=it,n.createEventInstance=yu,n.createEventUi=dr,n.createFormatter=y,n.createPlugin=k,n.createPortal=cg,n.createRef=h,n.diffDates=tr,n.diffDayAndTime=bb,n.diffDays=ni,n.diffPoints=fg,n.diffWeeks=wb,n.diffWholeDays=yr,n.diffWholeWeeks=kb,n.disableCursor=au,n.elementClosest=d,n.elementMatches=he,n.enableCursor=vu,n.eventTupleToStore=kr,n.filterEventStoreDefs=ku,n.filterHash=pt,n.findDirectChildren=fb,n.findElements=dt,n.flattenResources=wp,n.flexibleCompare=vc,n.flushToDom=cf,n.formatDate=bst,n.formatDayString=br,n.formatIsoTimeString=fk,n.formatRange=kst,n.getAllowYScrolling=sv,n.getCanVGrowWithinCell=oo,n.getClippingParents=ea,n.getDateMeta=nu,n.getDayClassNames=rr,n.getDefaultEventEnd=fo,n.getElSeg=ir,n.getEntrySpanEnd=va,n.getEventClassNames=ed,n.getIsRtlScrollbarOnLeft=hf,n.getPublicId=cp,n.getRectCenter=ug,n.getRelevantEvents=ge,n.getScrollGridClassNames=yv,n.getScrollbarWidths=ra,n.getSectionClassNames=pv,n.getSectionHasLiquidHeight=es,n.getSegMeta=st,n.getSlotClassNames=ta,n.getStickyFooterScrollbar=yf,n.getStickyHeaderDates=hr,n.getUnequalProps=dc,n.globalLocales=kd,n.globalPlugins=wo,n.greatestDurationDenominator=ii,n.groupIntersectingEntries=ya,n.guid=vt,n.hasBgRendering=nd,n.hasShrinkWidth=vv,n.identity=r,n.interactionSettingsStore=vf,n.interactionSettingsToStore=go,n.intersectRanges=ui,n.intersectRects=dl,n.intersectSpans=ko,n.isArraysEqual=ht,n.isColPropsEqual=cv,n.isDateSelectionValid=bn,n.isDateSpansEqual=sd,n.isGroupsEqual=cut,n.isInt=li,n.isInteractionValid=rs,n.isMultiDayRange=dk,n.isPropsEqual=ut,n.isPropsValid=fv,n.isValidDate=le,n.joinSpans=an,n.listenBySelector=hc,n.mapHash=w,n.memoize=f,n.memoizeArraylike=ye,n.memoizeHashlike=ul,n.memoizeObjArg=yi,n.mergeEventStores=bu,n.multiplyDuration=il,n.padStart=yt,n.parseBusinessHours=kl,n.parseClassNames=du,n.parseDragMeta=ns,n.parseEventDef=nf,n.parseFieldSpecs=ce,n.parseMarker=bd,n.pointInsideRect=ig,n.preventContextMenu=lb,n.preventDefault=lu,n.preventSelection=hb,n.rangeContainsMarker=wt,n.rangeContainsRange=uf,n.rangesEqual=hl,n.rangesIntersect=rf,n.refineEventDef=io,n.refineProps=nr,n.removeElement=vr,n.removeExact=ek,n.render=hg,n.renderChunkContent=hv,n.renderFill=ss,n.renderMicroColGroup=lv,n.renderScrollShim=sr,n.requestJson=po,n.sanitizeShrinkWidth=av,n.setElSeg=cl,n.setRef=g,n.setScrollFromLeftEdge=bit,n.sliceEventStore=ff,n.sliceEvents=sat,n.sortEventSegs=ef,n.startOfDay=a,n.translateRect=gl,n.triggerDateSelect=ll,n.unmountComponentAtNode=lg,n.unpromisify=oa,n.version=ttt,n.whenTransitionDone=sb,n.wholeDivideDurations=ti,Object.defineProperty(n,"__esModule",{value:!0}),n}({}); \ No newline at end of file +function u(n,t){function i(){this.constructor=n}if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vh(n,t);n.__proto__=t;n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}function l(n,t){for(var i=0,u=t.length,r=n.length;i3)for(i=[i],r=3;r0?re(c.type,c.props,c.key,null,c.__v):c)){if(c.__=i,c.__b=i.__b+1,null===(a=v[l])||a&&c.key==a.key&&c.type===a.type)v[l]=void 0;else for(p=0;p>>1,1);t.i.removeChild(n)}}),cu(si(cft,{context:t.context},n.__v),t.l)):t.l&&t.componentWillUnmount()}function aft(n,t){return si(lft,{__v:n,i:t})}function wft(){}function bft(){return this.cancelBubble}function kft(){return this.defaultPrevented}function dft(){function i(t){n.push(t)}var t=o.debounceRendering,n=[];for(o.debounceRendering=i,cu(si(ub,{}),document.createElement("div"));n.length;)n.shift()();o.debounceRendering=t}function gft(n){var t=oft(n),i=t.Provider;return t.Provider=function(){var t=this,r=!this.getChildContext,u=i.apply(this,arguments),n;return r&&(n=[],this.shouldComponentUpdate=function(i){t.props.value!==i.value&&n.forEach(function(n){n.context=i.value;n.forceUpdate()})},this.sub=function(t){n.push(t);var i=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1);i&&i.call(t)}}),u},t}function net(n){cu(null,n)}function vr(n){n.parentNode&&n.parentNode.removeChild(n)}function d(n,t){if(n.closest)return n.closest(t);if(!document.documentElement.contains(n))return null;do{if(he(n,t))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}function he(n,t){var i=n.matches||n.matchesSelector||n.msMatchesSelector;return i.call(n,t)}function dt(n,t){for(var u,i,f=n instanceof HTMLElement?[n]:n,e=[],r=0;r=1)?Math.min(u,f):u}function wc(n,t,i,r){var u=et([t,0,1+cet(t,i,r)]),f=a(n),e=Math.round(ni(u,f));return Math.floor(e/7)+1}function cet(n,t,i){var r=7+t-i,u=(7+et([n,0,r]).getUTCDay()-t)%7;return-u+r-1}function db(n){return[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds(),]}function gb(n){return new Date(n[0],n[1]||0,n[2]==null?1:n[2],n[3]||0,n[4]||0,n[5]||0)}function ai(n){return[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds(),]}function et(n){return n.length===1&&(n=n.concat([0])),new Date(Date.UTC.apply(Date,n))}function le(n){return!isNaN(n.valueOf())}function vi(n){return n.getUTCHours()*36e5+n.getUTCMinutes()*6e4+n.getUTCSeconds()*1e3+n.getUTCMilliseconds()}function yu(n,t,i,r){return{instanceId:vt(),defId:n,range:t,forcedStartTzo:i==null?null:i,forcedEndTzo:r==null?null:r}}function bc(n,t){var u={},f,e,r,i,s,o;if(t)for(f in t){for(e=[],i=n.length-1;i>=0;i-=1)if(r=n[i][f],typeof r=="object"&&r)e.unshift(r);else if(r!==undefined){u[f]=r;break}e.length&&(u[f]=bc(e))}for(i=n.length-1;i>=0;i-=1){s=n[i];for(o in s)o in u||(u[o]=s[o])}return u}function pt(n,t){var r={};for(var i in n)t(n[i],i)&&(r[i]=n[i]);return r}function w(n,t){var r={};for(var i in n)r[i]=t(n[i],i);return r}function nk(n){for(var u,i={},t=0,r=n;t10&&(t==null?r=r.replace("Z",""):t!==0&&(r=r.replace("Z",rl(t,!0)))),r}function br(n){return n.toISOString().replace(/T.*$/,"")}function fk(n){return yt(n.getUTCHours(),2)+":"+yt(n.getUTCMinutes(),2)+":"+yt(n.getUTCSeconds(),2)}function rl(n,t){t===void 0&&(t=!1);var r=n<0?"-":"+",u=Math.abs(n),f=Math.floor(u/60),i=Math.round(u%60);return t?r+yt(f,2)+":"+yt(i,2):"GMT"+r+f+(i?":"+yt(i,2):"")}function ek(n,t){for(var r=0,i=0;i=tt(t)&&(i=p(i,1))),n.start&&(r=a(n.start),i&&i<=r&&(i=p(r,1))),{start:r,end:i}}function dk(n){var t=tf(n);return ni(t.start,t.end)>1}function tr(n,t,i,r){return r==="year"?s(i.diffWholeYears(n,t),"year"):r==="month"?s(i.diffWholeMonths(n,t),"month"):bb(n,t)}function got(n,t){var i=null,r=null;return(n.start&&(i=t.createMarker(n.start)),n.end&&(r=t.createMarker(n.end)),!i&&!r)?null:i&&r&&ri&&f.push({start:i,end:r.start}),r.end>i&&(i=r.end);return it.start)&&(n.start===null||t.end===null||n.start=n.start)&&(n.end===null||t.end!==null&&t.end<=n.end)}function wt(n,t){return(n.start===null||t>=n.start)&&(n.end===null||t=t.end?new Date(t.end.valueOf()-1):n}function ff(n,t,i,r){var h={},c={},k={},l=[],it=[],a=ro(n.defs,t),u,e,rt,d,w,g,f,y,p,b,tt,nt;for(f in n.defs)u=n.defs[f],e=a[u.defId],e.display==="inverse-background"&&(u.groupId?(h[u.groupId]=[],k[u.groupId]||(k[u.groupId]=u)):c[f]=[]);for(rt in n.instances){var v=n.instances[rt],u=n.defs[v.defId],e=a[u.defId],ut=v.range,s=!u.allDay&&r?tf(ut,r):ut,o=ui(s,i);o&&(e.display==="inverse-background"?u.groupId?h[u.groupId].push(o):c[v.defId].push(o):e.display!=="none"&&(e.display==="background"?l:it).push({def:u,ui:e,instance:v,range:o,isStart:s.start&&s.start.valueOf()===o.start.valueOf(),isEnd:s.end&&s.end.valueOf()===o.end.valueOf()}))}for(d in h)for(y=h[d],p=gk(y,i),w=0,g=p;w=(i||t.end),isToday:t&&wt(t,r.start)}}function ed(n){var t=["fc-event"];return n.isMirror&&t.push("fc-event-mirror"),n.isDraggable&&t.push("fc-event-draggable"),(n.isStartResizable||n.isEndResizable)&&t.push("fc-event-resizable"),n.isDragging&&t.push("fc-event-dragging"),n.isResizing&&t.push("fc-event-resizing"),n.isSelected&&t.push("fc-event-selected"),n.isStart&&t.push("fc-event-start"),n.isEnd&&t.push("fc-event-end"),n.isPast&&t.push("fc-event-past"),n.isToday&&t.push("fc-event-today"),n.isFuture&&t.push("fc-event-future"),t}function uo(n){return n.instance?n.instance.instanceId:n.def.defId+":"+n.range.start.toISOString()}function ist(n,t,i){var u=rst(n,t),r=u.range;if(!r.start)return null;if(!r.end){if(i==null)return null;r.end=t.add(r.start,i)}return u}function rst(n,t){var o=nr(n,od),r=o.refined,s=o.extra,u=r.start?t.createMarkerMeta(r.start):null,f=r.end?t.createMarkerMeta(r.end):null,e=r.allDay;return e==null&&(e=u&&u.isTimeUnspecified&&(!f||f.isTimeUnspecified)),i({range:{start:u?u.marker:null,end:f?f.marker:null},allDay:e},s)}function sd(n,t){return hl(n.range,t.range)&&n.allDay===t.allDay&&ust(n,t)}function ust(n,t){for(var i in t)if(i!=="range"&&i!=="allDay"&&n[i]!==t[i])return!1;for(i in n)if(!(i in t))return!1;return!0}function fst(n,t){return i(i({},cd(n.range,t,n.allDay)),{allDay:n.allDay})}function hd(n,t,r){return i(i({},cd(n,t,r)),{timeZone:t.timeZone})}function cd(n,t,i){return{start:t.toDate(n.start),end:t.toDate(n.end),startStr:t.formatIso(n.start,{omitTime:i}),endStr:t.formatIso(n.end,{omitTime:i})}}function est(n,t,i){var u=io({editable:!1},i),r=nf(u.refined,u.extra,"",n.allDay,!0,i);return{def:r,ui:td(r,t),instance:yu(r.defId,n.range),range:n.range,isStart:!0,isEnd:!0}}function ll(n,t,r){r.emitter.trigger("select",i(i({},al(n,r)),{jsEvent:t?t.origEvent:null,view:r.viewApi||r.calendarApi.view}))}function ost(n,t){t.emitter.trigger("unselect",{jsEvent:n?n.origEvent:null,view:t.viewApi||t.calendarApi.view})}function al(n,t){for(var e,r={},u=0,f=t.pluginHooks.dateSpanTransforms;u=0;i-=1)if(f=u[i],r=f.parseMeta(n),r)return{sourceDefId:i,meta:r};return null}function lst(n,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return n}}function ast(n,t){var i=n.initialDate;return i!=null?t.createMarker(i):of(n.now,t)}function of(n,t){return(typeof n=="function"&&(n=n()),n==null)?t.createNowMarker():t.createMarker(n)}function yd(n){var t,i,u=n._def,r=n._instance;return{defs:(t={},t[u.defId]=u,t),instances:r?(i={},i[r.instanceId]=r,i):{}}}function wi(n,t,i){var s=n.defs,u=n.instances,f=[],h=i?i.instanceId:"",e,r,o;for(e in u)r=u[e],o=s[r.defId],r.instanceId!==h&&f.push(new v(t,o,r));return f}function vst(n,t){yl[n]=t}function yst(n){return new yl[n]}function bd(n){var t=wd.exec(n),i,r;return t&&(i=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?Number("0."+t[12])*1e3:0)),le(i))?(r=null,t[13]&&(r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:i,isTimeUnspecified:!t[6],timeZoneOffset:r}):null}function dd(n){for(var i,f=n.length>0?n[0].code:"en",e=kd.concat(n),r={en:wl},t=0,u=e;t0;r-=1)if(f=u.slice(0,r).join("-"),t[f])return t[f];return null}function gd(n,t,i){var r=bc([wl,i],["buttonText"]),u;return delete r.code,u=r.week,delete r.week,{codeArg:n,codes:t,week:u,simpleNumberFormat:new Intl.NumberFormat(n),options:r}}function bst(n,t){t===void 0&&(t={});var r=ng(t),u=y(t),i=r.createMarkerMeta(n);return i?r.format(i.marker,u,{forcedTzo:i.forcedTzo}):""}function kst(n,t,i){var r=ng(typeof i=="object"&&i?i:{}),e=y(i),u=r.createMarkerMeta(n),f=r.createMarkerMeta(t);return!u||!f?"":r.formatRange(u.marker,f.marker,e,{forcedStartTzo:u.forcedTzo,forcedEndTzo:f.forcedTzo,isEndExclusive:i.isEndExclusive,defaultSeparator:ri.defaultRangeSeparator})}function ng(n){var t=bl(n.locale||"en",dd([]).map);return new pl(i(i({timeZone:ri.timeZone,calendarSystem:"gregory"},n),{locale:t}))}function kl(n,t){return de(dst(n),null,t)}function dst(n){var t;return t=n===!0?[{}]:Array.isArray(n)?n.filter(function(n){return n.daysOfWeek}):typeof n=="object"&&n?[n]:[],t.map(function(n){return i(i({},tg),n)})}function ig(n,t){return n.left>=t.left&&n.left=t.top&&n.top
<\/div><\/td><\/tr><\/table>",n.querySelector("table").style.height="100px",n.querySelector("div").style.height="100%",document.body.appendChild(n),t=n.querySelector("div"),i=t.offsetHeight>0,document.body.removeChild(n),i)}function nht(n,t,r){var u=[],f;return n&&u.push(n),t&&u.push(t),f={"":no(u)},r&&i(f,r),f}function nu(n,t,i,r){return{dow:n.getUTCDay(),isDisabled:Boolean(r&&!wt(r.activeRange,n)),isOther:Boolean(r&&!wt(r.currentRange,n)),isToday:Boolean(t&&wt(t,n)),isPast:Boolean(i?ni:t?n>=t.end:!1)}}function rr(n,t){var i=["fc-day","fc-day-"+yc[n.dow],];return n.isDisabled?i.push("fc-day-disabled"):(n.isToday&&(i.push("fc-day-today"),i.push(t.getClass("today"))),n.isPast&&i.push("fc-day-past"),n.isFuture&&i.push("fc-day-future"),n.isOther&&i.push("fc-day-other")),i}function ta(n,t){var i=["fc-slot","fc-slot-"+yc[n.dow],];return n.isDisabled?i.push("fc-slot-disabled"):(n.isToday&&(i.push("fc-slot-today"),i.push(t.getClass("today"))),n.isPast&&i.push("fc-slot-past"),n.isFuture&&i.push("fc-slot-future")),i}function ur(n,t){return t===void 0&&(t="day"),JSON.stringify({date:br(n),type:t})}function hf(){return ho===null&&(ho=tht()),ho}function tht(){var n=document.createElement("div"),t,i;return ci(n,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),n.innerHTML="
<\/div>",document.body.appendChild(n),t=n.firstChild,i=t.getBoundingClientRect().left>n.getBoundingClientRect().left,vr(n),i}function ra(){return ia||(ia=iht()),ia}function iht(){var n=document.createElement("div"),t;return n.style.overflow="scroll",n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",document.body.appendChild(n),t=eg(n),document.body.removeChild(n),t}function eg(n){return{x:n.offsetHeight-n.clientHeight,y:n.offsetWidth-n.clientWidth}}function ua(n,t){t===void 0&&(t=!1);var i=window.getComputedStyle(n),u=parseInt(i.borderLeftWidth,10)||0,f=parseInt(i.borderRightWidth,10)||0,e=parseInt(i.borderTopWidth,10)||0,o=parseInt(i.borderBottomWidth,10)||0,s=eg(n),h=s.y-u-f,c=s.x-e-o,r={borderLeft:u,borderRight:f,borderTop:e,borderBottom:o,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return hf()&&i.direction==="rtl"?r.scrollbarLeft=h:r.scrollbarRight=h,t&&(r.paddingLeft=parseInt(i.paddingLeft,10)||0,r.paddingRight=parseInt(i.paddingRight,10)||0,r.paddingTop=parseInt(i.paddingTop,10)||0,r.paddingBottom=parseInt(i.paddingBottom,10)||0),r}function fa(n,t,i){t===void 0&&(t=!1);var f=i?n.getBoundingClientRect():co(n),r=ua(n,t),u={left:f.left+r.borderLeft+r.scrollbarLeft,right:f.right-r.borderRight-r.scrollbarRight,top:f.top+r.borderTop,bottom:f.bottom-r.borderBottom-r.scrollbarBottom};return t&&(u.left+=r.paddingLeft,u.right-=r.paddingRight,u.top+=r.paddingTop,u.bottom-=r.paddingBottom),u}function co(n){var t=n.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function rht(n){for(var f,r,e=ea(n),t=n.getBoundingClientRect(),i=0,u=e;in.fetchRange.end:!n.latestFetchId}function la(n,t,i,r,u){var o={},f,e;for(f in n)e=n[f],o[f]=t[f]?sct(e,i,r,u):e;return o}function sct(n,t,r,u){var f=u.options,e=u.calendarApi,s=u.pluginHooks.eventSourceDefs[n.sourceDefId],o=vt();return s.fetch({eventSource:n,range:t,isRefetch:r,context:u},function(i){var r=i.rawEvents;f.eventSourceSuccess&&(r=f.eventSourceSuccess.call(e,r,i.xhr)||r);n.success&&(r=n.success.call(e,r,i.xhr)||r);u.dispatch({type:"RECEIVE_EVENTS",sourceId:n.sourceId,fetchId:o,fetchRange:t,rawEvents:r})},function(i){console.warn(i.message,i);f.eventSourceFailure&&f.eventSourceFailure.call(e,i);n.failure&&n.failure(i);u.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:n.sourceId,fetchId:o,fetchRange:t,error:i})}),i(i({},n),{isFetching:!0,latestFetchId:o})}function hct(n,t,r,u){var f,e=n[t];return e&&r===e.latestFetchId?i(i({},n),(f={},f[t]=i(i({},e),{isFetching:!1,fetchRange:u}),f)):n}function gg(n,t){return pt(n,function(n){return nn(n,t)})}function cct(n,t){var s=vd(t),r=[].concat(n.eventSources||[]),e=[],i,u,o,f;for(n.initialEvents&&r.unshift(n.initialEvents),n.events&&r.unshift(n.events),i=0,u=r;i=200&&f.status<400){var n=!1,t=void 0;try{t=JSON.parse(f.responseText);n=!0}catch(i){}n?r(t,f):u("Failure parsing JSON",f)}else u("Request failed",f)};f.onerror=function(){u("Request failed",f)};f.send(e)}function elt(n,t){return n+(n.indexOf("?")===-1?"?":"&")+fn(t)}function fn(n){var t=[];for(var i in n)t.push(encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return t.join("&")}function clt(n,t,r){var f=r.dateEnv,h=r.options,e,o,s,c,u={};return e=n.startParam,e==null&&(e=h.startParam),o=n.endParam,o==null&&(o=h.endParam),s=n.timeZoneParam,s==null&&(s=h.timeZoneParam),c=typeof n.extraParams=="function"?n.extraParams():n.extraParams||{},i(u,c),u[e]=f.formatIso(t.start),u[o]=f.formatIso(t.end),f.timeZone!=="local"&&(u[s]=f.timeZone),u}function ylt(n,t,i,r){for(var e=n?nk(n):null,u=a(i.start),s=i.end,o=[],f;u1)?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}function nat(n,t,i,r,u,f,e,o){var s=bl(t||e.defaultCode,e.map);return new pl({calendarSystem:"gregory",timeZone:n,namedTimeZoneImpl:f.namedTimeZonedImpl,locale:s,weekNumberCalculation:i,firstDay:r,weekText:u,cmdFormatter:f.cmdFormatter,defaultSeparator:o})}function tat(n,t){var i=t.themeClasses[n.themeSystem]||ei;return new i(n)}function iat(n){var t=n.dateProfileGeneratorClass||yo;return new t(n)}function rat(n,t,i){return new vl(n,t,i)}function uat(n){return w(n,function(n){return n.ui})}function fat(n,t,i){var f={"":t},u,r;for(u in n)r=n[u],r.sourceId&&i[r.sourceId]&&(f[u]=i[r.sourceId]);return f}function eat(n){var t=n.options;return{eventUiSingleBase:dr({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap=="boolean"?t.eventOverlap:undefined,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},n),selectionConfig:dr({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:undefined,allow:t.selectAllow},n)}}function aa(n,t){for(var u,i=0,r=t.pluginHooks.isLoadingFuncs;ii(n[u-1]))return[u,0];while(re)r=f+1;else return[f,1];return[r,0]}function hat(n,t){return{component:n,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}function go(n){var t;return t={},t[n.component.uid]=n,t}function ns(n){var i=nr(n,cat),t=i.refined,r=i.extra;return{startTime:t.startTime||null,duration:t.duration||null,create:t.create!=null?t.create:!0,sourceId:t.sourceId,leftoverProps:r}}function pat(n,t,i,r,u,f){var e=i.build(u,undefined,!1),o=i.buildPrev(t,r,!1),s=i.buildNext(t,r,!1);return{title:f,activeButton:n.type,isTodayEnabled:e.isValid&&!wt(t.currentRange,u),isPrevEnabled:o.isValid,isNextEnabled:s.isValid}}function wat(n){return n.map(function(n){return new n})}function da(n,t){return!n||t>10?y({weekday:"short"}):t>1?y({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):y({weekday:"long"})}function pn(n){return n.text}function wn(n){var t=a(n),i=p(t,1);return{start:t,end:i}}function bat(n,t,i){return n||da(t,i)}function uv(n,t){var i=n.activeRange;return t?i:{start:gt(i.start,n.slotMinTime.milliseconds),end:gt(i.end,n.slotMaxTime.milliseconds-864e5)}}function rs(n,t,i){var r=n.mutatedEvents.instances;for(var u in r)if(!uf(t.validRange,r[u].range))return!1;return kn({eventDrag:n},i)}function bn(n,t,i){return uf(t.validRange,n.range)?kn({dateSelection:n},i):!1}function kn(n,t){var r=t.getCurrentData(),u=i({businessHours:r.businessHours,dateSelection:"",eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},n);return(t.pluginHooks.isPropsValid||fv)(u,t)}function fv(n,t,i,r){return(i===void 0&&(i={}),n.eventDrag&&!kat(n,t,i,r))?!1:n.dateSelection&&!dat(n,t,i,r)?!1:!0}function kat(n,t,r,u){var g=t.getCurrentData(),o=n.eventDrag,nt=o.mutatedEvents,tt=nt.defs,it=nt.instances,c=ro(tt,o.isEvent?n.eventUiBases:{"":g.selectionConfig}),a,p,b,et,e,ot,k,h,d;u&&(c=w(c,u));var l=wct(n.eventStore,o.affectedEvents.instances),rt=l.defs,ut=l.instances,ct=ro(rt,n.eventUiBases);for(a in it){var f=it[a],ft=f.range,y=c[f.defId],s=tt[f.defId];if(!dn(y.constraints,ft,l,n.businessHours,t))return!1;p=t.options.eventOverlap;b=typeof p=="function"?p:null;for(et in ut)if(e=ut[et],rf(ft,e.range)&&((ot=ct[e.defId].overlap,ot===!1&&o.isEvent)||y.overlap===!1||b&&!b(new v(t,rt[e.defId],e),new v(t,s,f))))return!1;for(k=g.eventStore,h=0,d=y.allows;ht.eventRange.range.end?n:t}function vvt(n){return n.button===0&&!n.ctrlKey}function yvt(){bv+=1;setTimeout(function(){bv-=1},ot.touchMouseIgnoreWait)}function pvt(){ls+=1;ls===1&&window.addEventListener("touchmove",rtt,{passive:!1})}function wvt(){ls-=1;ls||window.removeEventListener("touchmove",rtt,{passive:!1})}function rtt(n){kv&&n.preventDefault()}function nyt(n){var t=n.tagName;return t==="HTML"||t==="BODY"}function vs(n,t){return!n&&!t?!0:Boolean(n)!==Boolean(t)?!1:sd(n.dateSpan,t.dateSpan)}function dv(n,t){for(var e,r={},u=0,f=t.pluginHooks.datePointTransforms;ur.start)return{endDelta:u};return null}function cyt(n,t,r){for(var s,l,a,e=i({},t.leftoverProps),f=0,o=r.pluginHooks.externalDefTransforms;f1,k=r.span.start===u;f+=r.levelCoord-e;e=r.levelCoord+r.thickness;g?(f+=r.thickness,k&&h.push({seg:fu(s,r.span.start,r.span.end,i),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):k&&(h.push({seg:fu(s,r.span.start,r.span.end,i),isVisible:!0,isAbsolute:!1,absoluteTop:0,marginTop:f}),f=0)}v.push(b);y.push(h);p.push(f)}return{singleColPlacements:v,multiColPlacements:y,leftoverMargins:p}}function ipt(n,t){for(var r,e,u,f=[],i=0;i=0;t-=1)if(i=s(vy[t]),r=ti(i,n),r!==null&&r>1)return i;return n}function wy(n,t){var i=new iv(n.renderRange,t);return new rv(i,!1)}function ywt(n){var r=n.navLinkData?{"data-navlink":n.navLinkData,tabIndex:0}:{};return t(c,null,n.text&&t("a",i({className:"fc-list-day-text"},r),n.text),n.sideText&&t("a",i({className:"fc-list-day-side-text"},r),n.sideText))}function pwt(n){var r=n.event,u=r.url,f=u?{href:u}:{};return t("a",i({},f),r.title)}function wwt(n,i,r){var u=r.options,s;if(u.displayEventTime!==!1){var h=n.eventRange.def,o=n.eventRange.instance,e=!1,f=void 0;return(h.allDay?e=!0:dk(n.eventRange.range)?n.isStart?f=gr(n,i,r,null,null,o.range.start,n.end):n.isEnd?f=gr(n,i,r,null,null,n.start,o.range.end):e=!0:f=gr(n,i,r),e)?(s={text:r.options.allDayText,view:r.viewApi},t(b,{hookProps:s,classNames:u.allDayClassNames,content:u.allDayContent,defaultContent:bwt,didMount:u.allDayDidMount,willUnmount:u.allDayWillUnmount},function(n,i,r,u){return t("td",{className:["fc-list-event-time"].concat(i).join(" "),ref:n},u)})):t("td",{className:"fc-list-event-time"},f)}return null}function bwt(n){return n.text}function kwt(n){return n.text}function dwt(n){for(var t=a(n.renderRange.start),u=n.renderRange.end,i=[],r=[];t0?t="positive":(n.scrollLeft=1,t=n.scrollLeft>0?"reverse":"negative"),vr(n),t}function nkt(n,t,i,r,u){n.forEach(function(n,f){var h=t[f],c=h.naturalBound,e=h.parentBound,l=e.right-e.left,a=e.bottom-e.bottom,o,s;l>r||a>u?(o=i[f].left-c.left,s=i[f].top-c.top):(o="",s="");ci(n,{position:"relative",left:o,right:-o,top:s})})}function tkt(n,t,i){n.forEach(function(n,r){var u=t[r],o=u.textAlign,s=u.elWidth,e=u.parentBound,h=e.right-e.left,f;f=o==="center"&&h>i?(i-s)/2:"";ci(n,{left:f,right:f,top:0})})}function ikt(){var n=document.createElement("div"),t;return(n.className="fc-sticky",document.body.appendChild(n),t=window.getComputedStyle(n).position,vr(n),t.indexOf("sticky")!==-1)?t:null}function fkt(n){for(var u,i=0,t=0,r=n;t .fc-scroller")}function kkt(n){return n.map(function(n){var t=window.getComputedStyle(n);return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,overflowX:t.overflowX,overflowY:t.overflowY,marginBottom:t.marginBottom}})}function dkt(n,t){n.forEach(function(n,i){n.style.overflowX="visible";n.style.overflowY="visible";n.style.marginBottom="";n.style.left=-t[i].scrollLeft+"px"})}function gkt(n,t){n.forEach(function(n,i){var r=t[i];n.style.overflowX=r.overflowX;n.style.overflowY=r.overflowY;n.style.marginBottom=r.marginBottom;n.style.left="";n.scrollLeft=r.scrollLeft;n.scrollTop=r.scrollTop})}function ky(n,t,i,r){var u={labelInterval:i.slotLabelInterval,slotDuration:i.slotDuration},e,g,v,w,b,c,l,k,f;rdt(u,n,t);srt(u,n,t);udt(u,n,t);e=i.slotLabelFormat;g=Array.isArray(e)?e:e!=null?[e]:fdt(u,n,t,i);u.headerFormats=g.map(function(n){return y(n)});u.isTimeScale=Boolean(u.slotDuration.milliseconds);v=null;u.isTimeScale||(w=ii(u.slotDuration).unit,/year|month|week/.test(w)&&(v=w));u.largeUnit=v;u.emphasizeWeeks=tl(u.slotDuration)===1&&ou("weeks",n,t)>=2&&!i.businessHours;b=i.snapDuration;b&&(c=s(b),l=ti(u.slotDuration,c));l==null&&(c=u.slotDuration,l=1);u.snapDuration=c;u.snapsPerSlot=l;var rt=tt(n.slotMaxTime)-tt(n.slotMinTime),o=ort(n.renderRange.start,u,t),h=ort(n.renderRange.end,u,t);for(u.isTimeScale&&(o=t.add(o,n.slotMinTime),h=t.add(p(h,-1),n.slotMaxTime)),u.timeWindowMs=rt,u.normalizedRange={start:o,end:h},k=[],f=o;fot.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),n.labelInterval=null));n.slotDuration&&(e=i.countDurationsBetween(r.start,r.end,n.slotDuration),e>ot.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),n.slotDuration=null));n.labelInterval&&n.slotDuration&&(u=ti(n.labelInterval,n.slotDuration),(u===null||u<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),n.slotDuration=null))}function srt(n,t,i){var a=t.currentRange,r=n.labelInterval,u,f,o,h,c,e,l,v;if(!r){if(u=void 0,n.slotDuration){for(f=0,o=th;f=ndt)break;n.labelInterval=r}return r}function udt(n,t,i){var h=t.currentRange,r=n.slotDuration,f,u,e,l;if(!r){for(f=srt(n,t,i),u=0,e=th;u1&&o<=nh){r=c;break}}r&&(l=i.countDurationsBetween(h.start,h.end,r),l>tdt&&(r=null));r||(r=f);n.slotDuration=r}return r}function fdt(n,t,i,r){var f,e,o=n.labelInterval,s=ii(o).unit,h=r.weekNumbers,u=f=e=null;s!=="week"||h||(s="day");switch(s){case"year":u={year:"numeric"};break;case"month":ou("years",t,i)>1&&(u={year:"numeric"});f={month:"short"};break;case"week":ou("years",t,i)>1&&(u={year:"numeric"});f={week:"narrow"};break;case"day":ou("years",t,i)>1?u={year:"numeric",month:"long"}:ou("months",t,i)>1&&(u={month:"long"});h&&(f={week:"short"});e={weekday:"narrow",day:"numeric"};break;case"hour":h&&(u={week:"short"});ou("days",t,i)>1&&(f={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0});e={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":rk(o)/60>=nh?(u={hour:"numeric",meridiem:"short"},f=function(n){return":"+yt(n.date.minute,2)}):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":uk(o)/60>=nh?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},f=function(n){return":"+yt(n.date.second,2)}):u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};f=function(n){return"."+yt(n.millisecond,3)}}return[].concat(u||[],f||[],e||[])}function ou(n,t,i){var r=t.currentRange,u=null;return n==="years"?u=i.diffWholeYears(r.start,r.end):n==="months"?u=i.diffWholeMonths(r.start,r.end):n==="weeks"?u=i.diffWholeMonths(r.start,r.end):n==="days"&&(u=yr(r.start,r.end)),u||0}function edt(n,t){for(var o=n.slotDates,s=n.emphasizeWeeks,i=null,u=[],r=0,f=o;r1&&!p,e=null,w=k[i]||(p?b:null);d?(o=t.format(u,y),f&&f.text===o?f.colspan+=1:e=hrt(u,o,w)):!f||li(t.countDurationsBetween(n.normalizedRange.start,u,n.labelInterval))?(o=t.format(u,y),e=hrt(u,o,w)):f.colspan+=1;e&&(e.weekStart=v,h.push(e))}return l}function hrt(n,t,i){return{date:n,text:t,rowUnit:i,colspan:1,isWeekStart:!1}}function sdt(n){return n.text}function hdt(n){return{level:n.level,date:n.dateEnv.toDate(n.dateMarker),view:n.viewApi,text:n.text}}function dy(n,t,i){var u=i.countDurationsBetween(t.normalizedRange.start,n,t.snapDuration),f,r;return u<0?0:u>=t.snapDiffToIndex.length?t.snapCnt:(f=Math.floor(u),r=t.snapDiffToIndex[f],li(r)?r+=u-f:r=Math.ceil(r),r)}function rh(n,t){return n===null?{left:"",right:""}:t?{right:n,left:""}:{left:n,right:""}}function uh(n,t){return n?t?{right:n.start,left:-n.end}:{left:n.start,right:-n.end}:{left:"",right:""}}function vdt(n,t){return t.map(function(t){var i=t.toISOString();return n[i]})}function vrt(n,t,i){var o=[],r,u;if(i)for(r=0,u=n;r=0;t-=1)if(u=r[t],i=u.parseMeta(n),i)return{meta:i,sourceDefId:t};return null}function agt(n){for(var t in n)console.warn("Unknown resource prop '"+t+"'")}function vgt(n,t,i){var r=i.options,u=i.dateProfile;if(!n||!t)return nut(r.initialResources||r.resources,u.activeRange,r.refetchResourcesOnNavigate,i);switch(t.type){case"RESET_RESOURCE_SOURCE":return nut(t.resourceSourceInput,u.activeRange,r.refetchResourcesOnNavigate,i);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return ygt(n,u.activeRange,r.refetchResourcesOnNavigate,i);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return wgt(n,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return op(n,u.activeRange,i);default:return n}}function nut(n,t,i,r){if(n){var u=cgt(n);return op(u,i?t:null,r)}return null}function ygt(n,t,i,r){return i&&!pgt(n)&&(!n.fetchRange||!hl(n.fetchRange,t))?op(n,t,r):n}function pgt(n){return Boolean(drt(n.sourceDefId).ignoreRange)}function op(n,t,r){var f=drt(n.sourceDefId),u=vt();return f.fetch({resourceSource:n,range:t,context:r},function(n){r.dispatch({type:"RECEIVE_RESOURCES",fetchId:u,fetchRange:t,rawResources:n.rawResources})},function(n){r.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:u,fetchRange:t,error:n})}),i(i({},n),{isFetching:!0,latestFetchId:u})}function wgt(n,t,r){return t===n.latestFetchId?i(i({},n),{isFetching:!1,fetchRange:r}):n}function hp(n,t,r,u){var o,s,c;t===void 0&&(t="");var h=nr(n,tut),f=h.refined,l=h.extra,e={id:f.id||sp+vt(),parentId:f.parentId||t,title:f.title||"",businessHours:f.businessHours?kl(f.businessHours,u):null,ui:dr({editable:f.eventEditable,startEditable:f.eventStartEditable,durationEditable:f.eventDurationEditable,constraint:f.eventConstraint,overlap:f.eventOverlap,allow:f.eventAllow,classNames:f.eventClassNames,backgroundColor:f.eventBackgroundColor,borderColor:f.eventBorderColor,textColor:f.eventTextColor,color:f.eventColor},u),extendedProps:i(i({},l),f.extendedProps)};if(Object.freeze(e.ui.classNames),Object.freeze(e.extendedProps),!r[e.id]&&(r[e.id]=e,f.children))for(o=0,s=f.children;o0)break;t.splice(r,0,n)}function kp(n){var t=i(i(i({},n.extendedProps),n.ui),n);return delete t.ui,delete t.extendedProps,t}function cut(n,t){return n.spec===t.spec&&n.value===t.value}function rti(n,t,i,r,u){var f=oy(n,t);return r?new vp(f,i,u):new ap(f,i,u)}function eti(n,t,i,r,u){var f=wy(n,t);return r?new vp(f,i,u):new ap(f,i,u)}function put(n){for(var i,e=n.depth,u=n.hasChildren,o=n.isExpanded,s=n.onExpanderClick,r=[],f=0;f3;)i.pop()();if(i[1]1&&(u.year==="numeric"||u.year==="2-digit")&&(u.month==="numeric"||u.month==="2-digit")&&(u.day==="numeric"||u.day==="2-digit")&&(e=1),f=this.format(n,i),o=this.format(t,i),f===o)return f;var w=lot(u,e),a=sk(w,c,i),v=a(n),y=a(t),s=aot(f,v,o,y),p=c.separator||r||i.defaultSeparator||"";return s?s.before+v+p+y+s.after:f+p+o},n.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},n}();ck=function(){function n(n){this.cmdStr=n}return n.prototype.format=function(n,t,i){return t.cmdFormatter(this.cmdStr,be(n,null,t,i))},n.prototype.formatRange=function(n,t,i,r){return i.cmdFormatter(this.cmdStr,be(n,t,i,r))},n}();lk=function(){function n(n){this.func=n}return n.prototype.format=function(n,t,i){return this.func(be(n,null,t,i))},n.prototype.formatRange=function(n,t,i,r){return this.func(be(n,t,i,r))},n}();var fl={navLinkDayClick:r,navLinkWeekClick:r,duration:s,bootstrapFontAwesome:r,buttonIcons:r,customButtons:r,defaultAllDayEventDuration:s,defaultTimedEventDuration:s,nextDayThreshold:s,scrollTime:s,scrollTimeReset:Boolean,slotMinTime:s,slotMaxTime:s,dayPopoverFormat:y,slotDuration:s,snapDuration:s,headerToolbar:r,footerToolbar:r,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:y,dayHeaderClassNames:r,dayHeaderContent:r,dayHeaderDidMount:r,dayHeaderWillUnmount:r,dayCellClassNames:r,dayCellContent:r,dayCellDidMount:r,dayCellWillUnmount:r,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:r,weekNumbers:Boolean,weekNumberClassNames:r,weekNumberContent:r,weekNumberDidMount:r,weekNumberWillUnmount:r,editable:Boolean,viewClassNames:r,viewDidMount:r,viewWillUnmount:r,nowIndicator:Boolean,nowIndicatorClassNames:r,nowIndicatorContent:r,nowIndicatorDidMount:r,nowIndicatorWillUnmount:r,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:r,locale:r,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:r,eventOrder:ce,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:r,contentHeight:r,direction:String,weekNumberFormat:y,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,progressiveEventRendering:Boolean,businessHours:r,initialDate:r,now:r,eventDataTransform:r,stickyHeaderDates:r,stickyFooterScrollbar:r,viewHeight:r,defaultAllDay:Boolean,eventSourceFailure:r,eventSourceSuccess:r,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:r,eventConstraint:r,eventAllow:r,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:r,eventContent:r,eventDidMount:r,eventWillUnmount:r,selectConstraint:r,selectOverlap:r,selectAllow:r,droppable:Boolean,unselectCancel:String,slotLabelFormat:r,slotLaneClassNames:r,slotLaneContent:r,slotLaneDidMount:r,slotLaneWillUnmount:r,slotLabelClassNames:r,slotLabelContent:r,slotLabelDidMount:r,slotLabelWillUnmount:r,dayMaxEvents:r,dayMaxEventRows:r,dayMinWidth:Number,slotLabelInterval:s,allDayText:String,allDayClassNames:r,allDayContent:r,allDayDidMount:r,allDayWillUnmount:r,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:y,rerenderDelay:Number,moreLinkText:r,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:r,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:s,hiddenDays:r,monthMode:Boolean,fixedWeekCount:Boolean,validRange:r,visibleRange:r,titleFormat:r,noEventsText:String,moreLinkClick:r,moreLinkClassNames:r,moreLinkContent:r,moreLinkDidMount:r,moreLinkWillUnmount:r},ri={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},ak={datesSet:r,eventsSet:r,eventAdd:r,eventChange:r,eventRemove:r,windowResize:r,eventClick:r,eventMouseEnter:r,eventMouseLeave:r,select:r,unselect:r,loading:r,_unmount:r,_beforeprint:r,_afterprint:r,_noEventDrop:r,_noEventResize:r,_resize:r,_scrollRequest:r},vk={buttonText:r,views:r,plugins:r,initialEvents:r,events:r,eventSources:r},el={headerToolbar:ke,footerToolbar:ke,buttonText:ke,buttonIcons:ke};yk={type:String,component:r,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:r,usesMinMaxTime:Boolean,classNames:r,content:r,didMount:r,willUnmount:r};gu={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:r,overlap:r,allow:r,className:du,classNames:du,color:String,backgroundColor:String,borderColor:String,textColor:String};pk={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};var to={id:String,groupId:String,title:String,url:String},wk={start:r,end:r,date:r,allDay:Boolean},bot=i(i(i({},to),wk),{extendedProps:r});od={start:r,end:r,allDay:Boolean};vl=function(){function n(n,t,i){this.type=n;this.getCurrentData=t;this.dateEnv=i}return Object.defineProperty(n.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),n.prototype.getOption=function(n){return this.getCurrentData().options[n]},n}();ld={id:String,defaultAllDay:Boolean,url:String,format:String,events:r,eventDataTransform:r,success:r,failure:r};pi=function(){function n(){}return n.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},n.prototype.dispatch=function(n){return this.currentDataManager.dispatch(n)},Object.defineProperty(n.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),n.prototype.batchRendering=function(n){n()},n.prototype.updateSize=function(){this.trigger("_resize",!0)},n.prototype.setOption=function(n,t){this.dispatch({type:"SET_OPTION",optionName:n,rawOptionValue:t})},n.prototype.getOption=function(n){return this.currentDataManager.currentCalendarOptionsInput[n]},n.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},n.prototype.on=function(n,t){var i=this.currentDataManager;if(i.currentCalendarOptionsRefiners[n])i.emitter.on(n,t);else console.warn("Unknown listener name '"+n+"'")},n.prototype.off=function(n,t){this.currentDataManager.emitter.off(n,t)},n.prototype.trigger=function(n){for(var i,r=[],t=1;t=r[t]&&n=r[t]&&n0},n.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},n.prototype.canScrollUp=function(){return this.getScrollTop()>0},n.prototype.canScrollDown=function(){return this.getScrollTop()0},n.prototype.canScrollRight=function(){return this.getScrollLeft()1&&(t=a(t),t=p(t,-1),t=u.add(t,e))),{start:i,end:t}},n.prototype.buildRangeFromDuration=function(n,t,i,r){function l(){u=h.startOf(n,e);c=h.add(u,i);o={start:u,end:c}}var s=this.props,h=s.dateEnv,e=s.dateAlignment,u,c,o,f;return e||(f=this.props.dateIncrement,e=f?tt(f)f.end&&(e+=this.insertEntry({index:n.index,thickness:n.thickness,span:{start:f.end,end:u.end}},o))),e)?(i.push.apply(i,l([{index:n.index,thickness:n.thickness,span:ko(f,u)}],o)),e):(i.push(n),0)},n.prototype.insertEntryAt=function(n,t){var u=this,f=u.entriesByLevel,r=u.levelCoords,i=t.level;i>=r.length||r[i]>t.levelCoord?(pa(r,i,t.levelCoord),pa(f,i,[n])):pa(f[i],t.lateralEnd,n);this.stackCnts[ki(n)]=t.stackCnt},n.prototype.findInsertion=function(n){for(var r,f=this,h=f.levelCoords,p=f.entriesByLevel,w=f.stackCnts,c=f.strictOrder,b=h.length,t=0,l=0,s=0,e=0,a=-1,o=null,i=0;i=t+n.thickness)break;var v=p[i],u=void 0,y=wa(v,n.span.start,va);for(s=y[0]+y[1],e=s;(u=v[e])&&u.span.startr)&&(t=r+u.thickness,a=i,o=u),e+=1;r1?(w=a&&o.getClass("buttonGroup")||"",t.apply(void 0,l(["div",{className:w}],f))):f[0]},r}(e),vn=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var f=this.props,n=f.model,o=f.extraClassName,i=!1,r,u,s=n.center,e;return n.left?(i=!0,r=n.left):r=n.start,n.right?(i=!0,u=n.right):u=n.end,e=[o||"","fc-toolbar",i?"fc-toolbar-ltr":"",],t("div",{className:e.join(" ")},this.renderSection("start",r||[]),this.renderSection("center",s||[]),this.renderSection("end",u||[]))},i.prototype.renderSection=function(n,i){var r=this.props;return t(lat,{key:n,widgetGroups:i,title:r.title,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled})},i}(e),aat=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(n){t.el=n;g(t.props.elRef,n);t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return u(i,n),i.prototype.render=function(){var u=this,n=u.props,f=u.state,i=n.aspectRatio,o=["fc-view-harness",i||n.liquid||n.height?"fc-view-harness-active":"fc-view-harness-passive",],r="",e="";return i?f.availableWidth!==null?r=f.availableWidth/i:e=100/i+"%":r=n.height||"",t("div",{ref:this.handleEl,onClick:n.onClick,className:o.join(" "),style:{height:r,paddingBottom:e}},n.children)},i.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},i.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},i.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},i}(e),vat=function(n){function t(t){var i=n.call(this,t)||this;return i.handleSegClick=function(n,t){var r=i.component,o=r.context,u=ir(t),f,e;u&&r.isValidSegDownEl(n.target)&&(f=d(n.target,".fc-event-forced-url"),e=f?f.querySelector("a[href]").href:"",o.emitter.trigger("eventClick",{el:t,event:new v(r.context,u.eventRange.def,u.eventRange.instance),jsEvent:n,view:o.viewApi}),e&&!n.defaultPrevented&&(window.location.href=e))},i.destroy=hc(t.el,"click",".fc-event",i.handleSegClick),i}return u(t,n),t}(di),yat=function(n){function t(t){var i=n.call(this,t)||this;return i.handleEventElRemove=function(n){n===i.currentSegEl&&i.handleSegLeave(null,i.currentSegEl)},i.handleSegEnter=function(n,t){ir(t)&&(i.currentSegEl=t,i.triggerEvent("eventMouseEnter",n,t))},i.handleSegLeave=function(n,t){i.currentSegEl&&(i.currentSegEl=null,i.triggerEvent("eventMouseLeave",n,t))},i.removeHoverListeners=iet(t.el,".fc-event",i.handleSegEnter,i.handleSegLeave),i}return u(t,n),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(n,t,i){var u=this.component,r=u.context,f=ir(i);(!t||u.isValidSegDownEl(t.target))&&r.emitter.trigger(n,{el:i,event:new v(r,f.eventRange.def,f.eventRange.instance),jsEvent:t,view:r.viewApi})},t}(di),yn=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildViewContext=f(sht),t.buildViewPropTransformers=f(wat),t.buildToolbarProps=f(pat),t.handleNavLinkClick=ob("a[data-navlink]",t._handleNavLinkClick.bind(t)),t.headerRef=h(),t.footerRef=h(),t.interactionsStore={},t.registerInteractiveComponent=function(n,i){var r=hat(n,i),u=[vat,yat,],f=u.concat(t.props.pluginHooks.componentInteractions),e=f.map(function(n){return new n(r)});t.interactionsStore[n.uid]=e;vf[n.uid]=r},t.unregisterInteractiveComponent=function(n){for(var u,i=0,r=t.interactionsStore[n.uid];i1?{"data-navlink":ur(u),tabIndex:0}:{},y=i(i(i({date:o.toDate(u),view:h},n.extraHookProps),{text:a}),f);return t(b,{hookProps:y,classNames:r.dayHeaderClassNames,content:r.dayHeaderContent,defaultContent:pn,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},function(r,e,o,s){return t("th",i({ref:r,className:l.concat(e).join(" "),"data-date":f.isDisabled?undefined:br(u),colSpan:n.colSpan},n.extraDataAttrs),t("div",{className:"fc-scrollgrid-sync-inner"},!f.isDisabled&&t("a",i({ref:o,className:["fc-col-header-cell-cushion",n.isSticky?"fc-sticky":"",].join(" ")},v),s)))})},r}(e),tv=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var n=this.props,r=this.context,o=r.dateEnv,s=r.theme,h=r.viewApi,u=r.options,f=p(new Date(2592e5),n.dow),e={dow:n.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[ga].concat(rr(e,s),n.extraClassNames||[]),l=o.format(f,n.dayHeaderFormat),a=i(i(i(i({date:f},e),{view:h}),n.extraHookProps),{text:l});return t(b,{hookProps:a,classNames:u.dayHeaderClassNames,content:u.dayHeaderContent,defaultContent:pn,didMount:u.dayHeaderDidMount,willUnmount:u.dayHeaderWillUnmount},function(r,u,f,e){return t("th",i({ref:r,className:c.concat(u).join(" "),colSpan:n.colSpan},n.extraDataAttrs),t("div",{className:"fc-scrollgrid-sync-inner"},t("a",{className:["fc-col-header-cell-cushion",n.isSticky?"fc-sticky":"",].join(" "),ref:f},e)))})},r}(e),at=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.initialNowDate=of(i.options.now,i.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return u(t,n),t.prototype.render=function(){var n=this,i=n.props,t=n.state;return i.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(n){n.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var r=this,u=r.props,f=r.context,e=gt(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),n=f.dateEnv.startOf(e,u.unit),t=f.dateEnv.add(n,s(1,u.unit)),i=t.valueOf()-e.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:n,todayRange:wn(n)},nextState:{nowDate:t,todayRange:wn(t)},waitMs:i}},t.prototype.setTimeout=function(){var n=this,t=this.computeTiming(),i=t.nextState,r=t.waitMs;this.timeoutId=setTimeout(function(){n.setState(i,function(){n.setTimeout()})},r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=lt,t}(ao);ts=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.createDayHeaderFormatter=f(bat),t}return u(i,n),i.prototype.render=function(){var e=this.context,n=this.props,i=n.dates,o=n.dateProfile,r=n.datesRepDistinctDays,u=n.renderIntro,f=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,i.length);return t(at,{unit:"day"},function(n,e){return t("tr",null,u&&u("day"),i.map(function(n){return r?t(nv,{key:n.toISOString(),date:n,dateProfile:o,todayRange:e,colCnt:i.length,dayHeaderFormat:f}):t(tv,{key:n.getUTCDay(),dow:n.getUTCDay(),dayHeaderFormat:f})}))})},i}(e);var iv=function(){function n(n,t){for(var i=n.start,e=n.end,r=[],u=[],f=-1;i=t.length?t[t.length-1]+1:t[i]},n}(),rv=function(){function n(n,t){var r=n.dates,i,f,u;if(t){for(f=r[0].getUTCDay(),i=1;iu)return!0;return!1},i.prototype.needsYScrolling=function(){var n,i;if(us.test(this.props.overflowY))return!1;var r=this.el,u=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),t=r.children;for(n=0;nu)return!0;return!1},i.prototype.getXScrollbarWidth=function(){return us.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},i.prototype.getYScrollbarWidth=function(){return us.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},i}(e),nt=function(){function n(n){var t=this;this.masterCallback=n;this.currentMap={};this.depths={};this.callbackMap={};this.handleValue=function(n,i){var e=t,r=e.depths,u=e.currentMap,f=!1,o=!1;n!==null?(f=i in u,u[i]=n,r[i]=(r[i]||0)+1,o=!0):(r[i]-=1,r[i]||(delete u[i],delete t.callbackMap[i],f=!0));t.masterCallback&&(f&&t.masterCallback(null,String(i)),o&&t.masterCallback(n,String(i)))}}return n.prototype.createRef=function(n){var i=this,t=this.callbackMap[n];return t||(t=this.callbackMap[n]=function(t){i.handleValue(t,String(n))}),t},n.prototype.collect=function(n,t,i){return gc(this.currentMap,n,t,i)},n.prototype.getAll=function(){return kc(this.currentMap)},n}();pf=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.processCols=f(function(n){return n},cv),t.renderMicroColGroup=f(lv),t.scrollerRefs=new nt,t.scrollerElRefs=new nt(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.setState(i({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return u(r,n),r.prototype.render=function(){var h=this,r=h.props,y=h.state,p=h.context,f=r.sections||[],w=this.processCols(r.cols),c=this.renderMicroColGroup(w,y.shrinkWidth),v=yv(r.liquid,p),u;r.collapsibleWidth&&v.push("fc-scrollgrid-collapsible");for(var a=f.length,n=0,i,e=[],o=[],s=[];n=0&&n=0&&t0&&(this.everMovedDown=!0);f<0?this.everMovedLeft=!0:f>0&&(this.everMovedRight=!0);this.pointerScreenX=i;this.pointerScreenY=r;this.isAnimating||(this.isAnimating=!0,this.requestAnimation(ett()))}},n.prototype.stop=function(){var n,t,i;if(this.isEnabled){for(this.isAnimating=!1,n=0,t=this.scrollCaches;n=0&&o>=0&&s>=0&&h>=0&&(s<=u&&this.everMovedUp&&r.canScrollUp()&&(!i||i.distance>s)&&(i={scrollCache:r,name:"top",distance:s}),h<=u&&this.everMovedDown&&r.canScrollDown()&&(!i||i.distance>h)&&(i={scrollCache:r,name:"bottom",distance:h}),e<=u&&this.everMovedLeft&&r.canScrollLeft()&&(!i||i.distance>e)&&(i={scrollCache:r,name:"left",distance:e}),o<=u&&this.everMovedRight&&r.canScrollRight()&&(!i||i.distance>o)&&(i={scrollCache:r,name:"right",distance:o}))}return i},n.prototype.buildCaches=function(){return this.queryScrollEls().map(function(n){return n===window?new kvt(!1):new ftt(n,!1)})},n.prototype.queryScrollEls=function(){for(var t,n=[],i=0,r=this.scrollQuery;i=t*t&&r.handleDistanceSurpassed(n)}r.isDragging&&(n.origEvent.type!=="scroll"&&(r.mirror.handleMove(n.pageX,n.pageY),r.autoScroller.handleMove(n.pageX,n.pageY)),r.emitter.trigger("dragmove",n))}};r.onPointerUp=function(n){r.isInteracting&&(r.isInteracting=!1,cb(document.body),ab(document.body),r.emitter.trigger("pointerup",n),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(n)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};u=r.pointer=new as(t);u.emitter.on("pointerdown",r.onPointerDown);u.emitter.on("pointermove",r.onPointerMove);u.emitter.on("pointerup",r.onPointerUp);return i&&(u.selector=i),r.mirror=new bvt,r.autoScroller=new dvt,r}return u(t,n),t.prototype.destroy=function(){this.pointer.destroy();this.onPointerUp({})},t.prototype.startDelay=function(n){var t=this;typeof this.delay=="number"?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null;t.handleDelayEnd(n)},this.delay):this.handleDelayEnd(n)},t.prototype.handleDelayEnd=function(n){this.isDelayEnded=!0;this.tryStartDrag(n)},t.prototype.handleDistanceSurpassed=function(n){this.isDistanceSurpassed=!0;this.tryStartDrag(n)},t.prototype.tryStartDrag=function(n){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(n.pageX,n.pageY),this.emitter.trigger("dragstart",n),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())},t.prototype.tryStopDrag=function(n){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,n))},t.prototype.stopDrag=function(n){this.isDragging=!1;this.emitter.trigger("dragend",n)},t.prototype.setIgnoreMove=function(n){this.pointer.shouldIgnoreMove=n},t.prototype.setMirrorIsVisible=function(n){this.mirror.setIsVisible(n)},t.prototype.setMirrorNeedsRevert=function(n){this.mirrorNeedsRevert=n},t.prototype.setAutoScrollEnabled=function(n){this.autoScroller.isEnabled=n},t}(ba),gvt=function(){function n(n){this.origRect=co(n);this.scrollCaches=ea(n).map(function(n){return new ftt(n,!0)})}return n.prototype.destroy=function(){for(var i,n=0,t=this.scrollCaches;n=0&&c=0&&lu.layer)&&(i.componentId=f,i.context=o.context,i.rect.left+=s,i.rect.right+=s,i.rect.top+=h,i.rect.bottom+=h,u=i))}return u},n}();ott=function(n){function t(t){var r=n.call(this,t)||this,u;r.handlePointerDown=function(n){var t=r.dragging,i=n.origEvent.target;t.setIgnoreMove(!r.component.isValidDateDownEl(i))};r.handleDragEnd=function(n){var s=r.component,h=r.dragging.pointer,t,o;if(!h.wasTouchScroll){var f=r.hitDragging,u=f.initialHit,e=f.finalHit;u&&e&&vs(u,e)&&(t=s.context,o=i(i({},dv(u.dateSpan,t)),{dayEl:u.dayEl,jsEvent:n.origEvent,view:t.viewApi||t.calendarApi.view}),t.emitter.trigger("dateClick",o))}};r.dragging=new lr(t.el);r.dragging.autoScroller.isEnabled=!1;u=r.hitDragging=new uu(r.dragging,go(t));u.emitter.on("pointerdown",r.handlePointerDown);u.emitter.on("dragend",r.handleDragEnd);return r}return u(t,n),t.prototype.destroy=function(){this.dragging.destroy()},t}(di);stt=function(n){function t(t){var i=n.call(this,t)||this,r;i.dragSelection=null;i.handlePointerDown=function(n){var r=i,t=r.component,u=r.dragging,f=t.context.options,e=f.selectable&&t.isValidDateDownEl(n.origEvent.target);u.setIgnoreMove(!e);u.delay=n.isTouch?iyt(t):null};i.handleDragStart=function(n){i.component.context.calendarApi.unselect(n)};i.handleHitUpdate=function(n,t){var u=i.component.context,r=null,e=!1,f,o;n&&(f=i.hitDragging.initialHit,o=n.componentId===f.componentId&&i.isHitComboAllowed&&!i.isHitComboAllowed(f,n),o||(r=ryt(f,n,u.pluginHooks.dateSelectionTransformers)),r&&bn(r,n.dateProfile,u)||(e=!0,r=null));r?u.dispatch({type:"SELECT_DATES",selection:r}):t||u.dispatch({type:"UNSELECT_DATES"});e?au():vu();t||(i.dragSelection=r)};i.handlePointerUp=function(n){i.dragSelection&&(ll(i.dragSelection,n,i.component.context),i.dragSelection=null)};var e=t.component,f=e.context.options,u=i.dragging=new lr(t.el);u.touchScrollAllowed=!1;u.minDistance=f.selectMinDistance||0;u.autoScroller.isEnabled=f.dragScroll;r=i.hitDragging=new uu(i.dragging,go(t));r.emitter.on("pointerdown",i.handlePointerDown);r.emitter.on("dragstart",i.handleDragStart);r.emitter.on("hitupdate",i.handleHitUpdate);r.emitter.on("pointerup",i.handlePointerUp);return i}return u(t,n),t.prototype.destroy=function(){this.dragging.destroy()},t}(di);gv=function(n){function t(r){var u=n.call(this,r)||this,f;u.subjectEl=null;u.subjectSeg=null;u.isDragging=!1;u.eventRange=null;u.relevantEvents=null;u.receivingContext=null;u.validMutation=null;u.mutatedRelevantEvents=null;u.handlePointerDown=function(n){var f=n.origEvent.target,o=u,t=o.component,i=o.dragging,s=i.mirror,r=t.context.options,c=t.context,e;u.subjectEl=n.subjectEl;var l=u.subjectSeg=ir(n.subjectEl),a=u.eventRange=l.eventRange,h=a.instance.instanceId;u.relevantEvents=ge(c.getCurrentData().eventStore,h);i.minDistance=n.isTouch?0:r.eventDragMinDistance;i.delay=n.isTouch&&h!==t.props.eventSelection?fyt(t):null;s.parentNode=r.fixedMirrorParent?r.fixedMirrorParent:d(f,".fc");s.revertDuration=r.dragRevertDuration;e=t.isValidSegDownEl(f)&&!d(f,".fc-event-resizer");i.setIgnoreMove(!e);u.isDragging=e&&n.subjectEl.classList.contains("fc-event-draggable")};u.handleDragStart=function(n){var t=u.component.context,i=u.eventRange,r=i.instance.instanceId;n.isTouch?r!==u.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"});u.isDragging&&(t.calendarApi.unselect(n),t.emitter.trigger("eventDragStart",{el:u.subjectEl,event:new v(t,i.def,i.instance),jsEvent:n.origEvent,view:t.viewApi}))};u.handleHitUpdate=function(n,t){var o;if(u.isDragging){var s=u.relevantEvents,h=u.hitDragging.initialHit,c=u.component.context,i=null,r=null,f=null,l=!1,e={affectedEvents:s,mutatedEvents:it(),isEvent:!0};n&&(i=n.context,o=i.options,c===i||o.editable&&o.droppable?(r=uyt(h,n,i.getCurrentData().pluginHooks.eventDragMutationMassagers),r&&(f=eo(s,i.getCurrentData().eventUiBases,r,i),e.mutatedEvents=f,rs(e,n.dateProfile,i)||(l=!0,r=null,f=null,e.mutatedEvents=it()))):i=null);u.displayDrag(i,e);l?au():vu();t||(c===i&&vs(h,n)&&(r=null),u.dragging.setMirrorNeedsRevert(!r),u.dragging.setMirrorIsVisible(!n||!document.querySelector(".fc-event-mirror")),u.receivingContext=i,u.validMutation=r,u.mutatedRelevantEvents=f)}};u.handlePointerUp=function(){u.isDragging||u.cleanup()};u.handleDragEnd=function(n){var nt,p,w,s,b,tt,k,d;if(u.isDragging){var t=u.component.context,h=t.viewApi,g=u,r=g.receivingContext,c=g.validMutation,l=u.eventRange.def,e=u.eventRange.instance,a=new v(t,l,e),o=u.relevantEvents,f=u.mutatedRelevantEvents,y=u.hitDragging.finalHit;if(u.clearDrag(),t.emitter.trigger("eventDragStop",{el:u.subjectEl,event:a,jsEvent:n.origEvent,view:h}),c){if(r===t){for(nt=new v(t,f.defs[l.defId],e?f.instances[e.instanceId]:null),t.dispatch({type:"MERGE_EVENTS",eventStore:f}),p={oldEvent:a,event:nt,relatedEvents:wi(f,t,e),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:o})}},w={},s=0,b=t.getCurrentData().pluginHooks.eventDropTransformers;s=0)for(o=t.lateralStart;o1,showWeekNumbers:n.showWeekNumbers,todayRange:o,dateProfile:h,cells:f,renderIntro:n.renderRowIntro,businessHourSegs:l[e],eventSelection:n.eventSelection,bgEventSegs:a[e].filter(fpt),fgEventSegs:v[e],dateSelectionSegs:y[e],eventDrag:p[e],eventResize:w[e],dayMaxEvents:u,dayMaxEventRows:r,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint})}))))}))},r.prototype.prepareHits=function(){this.rowPositions=new fi(this.rootEl,this.rowRefs.collect().map(function(n){return n.getCellEls()[0]}),!1,!0);this.colPositions=new fi(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},r.prototype.queryHit=function(n,t){var o=this,f=o.colPositions,e=o.rowPositions,r=f.leftToIndex(n),u=e.topToIndex(t),s;return u!=null&&r!=null?(s=this.props.cells[u][r],{dateProfile:this.props.dateProfile,dateSpan:i({range:this.getCellRange(u,r),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(u,r),rect:{left:f.lefts[r],right:f.rights[r],top:e.tops[u],bottom:e.bottoms[u]},layer:0}):null},r.prototype.getCellEl=function(n,t){return this.rowRefs.currentMap[n].getCellEls()[t]},r.prototype.getCellRange=function(n,t){var i=this.props.cells[n][t].date,r=p(i,1);return{start:i,end:r}},r}(rt);var fy=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return u(t,n),t.prototype.sliceRange=function(n,t){return t.sliceRange(n)},t}(is),ey=function(n){function r(){var t=n!==null&&n.apply(this,arguments)||this;return t.slicer=new fy,t.tableRef=h(),t}return u(r,n),r.prototype.render=function(){var r=this,n=r.props,u=r.context;return t(ws,i({ref:this.tableRef},this.slicer.sliceProps(n,n.dateProfile,n.nextDayThreshold,u,n.dayTableModel),{dateProfile:n.dateProfile,cells:n.dayTableModel.cells,colGroupNode:n.colGroupNode,tableMinWidth:n.tableMinWidth,renderRowIntro:n.renderRowIntro,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.showWeekNumbers,expandRows:n.expandRows,headerAlignElRef:n.headerAlignElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint}))},r}(rt),ktt=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.buildDayTableModel=f(oy),t.headerRef=h(),t.tableRef=h(),t}return u(i,n),i.prototype.render=function(){var u=this,f=this.context,i=f.options,s=f.dateProfileGenerator,n=this.props,r=this.buildDayTableModel(n.dateProfile,s),e=i.dayHeaders&&t(ts,{ref:this.headerRef,dateProfile:n.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),o=function(f){return t(ey,{ref:u.tableRef,dateProfile:n.dateProfile,dayTableModel:r,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:i.nextDayThreshold,colGroupNode:f.tableColGroupNode,tableMinWidth:f.tableMinWidth,dayMaxEvents:i.dayMaxEvents,dayMaxEventRows:i.dayMaxEventRows,showWeekNumbers:i.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:u.headerElRef,clientWidth:f.clientWidth,clientHeight:f.clientHeight,forPrint:n.forPrint})};return i.dayMinWidth?this.renderHScrollLayout(e,o,r.colCnt,i.dayMinWidth):this.renderSimpleLayout(e,o)},i}(ny);var ept=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.buildRenderRange=function(t,i,r){var o=this.props.dateEnv,s=n.prototype.buildRenderRange.call(this,t,i,r),f=s.start,u=s.end,e,h;return/^(year|month)$/.test(i)&&(f=o.startOfWeek(f),e=o.startOfWeek(u),e.valueOf()!==u.valueOf()&&(u=pc(e,1))),this.props.monthMode&&this.props.fixedWeekCount&&(h=Math.ceil(wb(f,u)),u=pc(u,6-h)),{start:f,end:u}},t}(yo),dtt=k({initialView:"dayGridMonth",views:{dayGrid:{component:ktt,dateProfileGeneratorClass:ept},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),opt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return u(t,n),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(n){return n.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(n){return n.allDay?nd(n)?["timed","allDay"]:["allDay"]:["timed"]},t}(sf),spt=y({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});var cpt=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){return this.props.slatMetas.map(function(n){return t("tr",{key:n.key},t(gtt,i({},n)))})},r}(e),lpt=y({week:"short"}),apt=5,sy=function(n){function r(){var r=n!==null&&n.apply(this,arguments)||this;return r.allDaySplitter=new opt,r.headerElRef=h(),r.rootElRef=h(),r.scrollerElRef=h(),r.state={slatCoords:null},r.handleScrollTopRequest=function(n){var t=r.scrollerElRef.current;t&&(t.scrollTop=n)},r.renderHeadAxis=function(n,u){u===void 0&&(u="");var e=r.context.options,o=r.props.dateProfile,f=o.renderRange,s=ni(f.start,f.end),h=e.navLinks&&s===1?{"data-navlink":ur(f.start,"week"),tabIndex:0}:{};return e.weekNumbers&&n==="day"?t(hs,{date:f.start,defaultFormat:lpt},function(n,r,f,e){return t("th",{ref:n,className:["fc-timegrid-axis","fc-scrollgrid-shrink",].concat(r).join(" ")},t("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:u}},t("a",i({ref:f,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},h),e)))}):t("th",{className:"fc-timegrid-axis"},t("div",{className:"fc-timegrid-axis-frame",style:{height:u}}))},r.renderTableRowAxis=function(n){var u=r.context,i=u.options,f=u.viewApi,e={text:i.allDayText,view:f};return t(b,{hookProps:e,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:vpt,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},function(i,r,u,f){return t("td",{ref:i,className:["fc-timegrid-axis","fc-scrollgrid-shrink",].concat(r).join(" ")},t("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(n==null?" fc-timegrid-axis-frame-liquid":""),style:{height:n}},t("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:u},f)))})},r.handleSlatCoords=function(n){r.setState({slatCoords:n})},r}return u(r,n),r.prototype.renderSimpleLayout=function(n,i,r){var o=this,f=o.context,e=o.props,u=[],s=hr(f.options);return n&&u.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}}),i&&(u.push({type:"body",key:"all-day",chunk:{content:i}}),u.push({type:"body",key:"all-day-divider",outerContent:t("tr",{className:"fc-scrollgrid-section"},t("td",{className:"fc-timegrid-divider "+f.theme.getClass("tableCellShaded")}))})),u.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(f.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:r}}),t(bt,{viewSpec:f.viewSpec,elRef:this.rootElRef},function(n,i){return t("div",{className:["fc-timegrid"].concat(i).join(" "),ref:n},t(pf,{liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:e.forPrint,cols:[{width:"shrink"}],sections:u}))})},r.prototype.renderHScrollLayout=function(n,i,r,u,f,e,o){var a=this,v=this.context.pluginHooks.scrollGridImpl,l;if(!v)throw new Error("No ScrollGrid implementation");var y=this,s=y.context,c=y.props,p=!c.forPrint&&hr(s.options),w=!c.forPrint&&yf(s.options),h=[];return n&&h.push({type:"header",key:"header",isSticky:p,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(n){return t("tr",null,a.renderHeadAxis("day",n.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n},]}),i&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(n){return t("tr",null,a.renderTableRowAxis(n.rowSyncHeights[0]))}},{key:"cols",content:i},]}),h.push({key:"all-day-divider",type:"body",outerContent:t("tr",{className:"fc-scrollgrid-section"},t("td",{colSpan:2,className:"fc-timegrid-divider "+s.theme.getClass("tableCellShaded")}))})),l=s.options.nowIndicator,h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(s.options.expandRows),chunks:[{key:"axis",content:function(n){return t("div",{className:"fc-timegrid-axis-chunk"},t("table",{style:{height:n.expandRows?n.clientHeight:""}},n.tableColGroupNode,t("tbody",null,t(cpt,{slatMetas:e}))),t("div",{className:"fc-timegrid-now-indicator-container"},t(at,{unit:l?"minute":"day"},function(n){var i=l&&o&&o.safeComputeTop(n);return typeof i=="number"?t(cr,{isAxis:!0,date:n},function(n,r,u,f){return t("div",{ref:n,className:["fc-timegrid-now-indicator-arrow"].concat(r).join(" "),style:{top:i}},f)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:r},]}),w&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:sr},{key:"cols",content:sr},]}),t(bt,{viewSpec:s.viewSpec,elRef:this.rootElRef},function(n,i){return t("div",{className:["fc-timegrid"].concat(i).join(" "),ref:n},t(v,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:u,minWidth:f}]},],sections:h}))})},r.prototype.getAllDayMaxEventProps=function(){var i=this.context.options,n=i.dayMaxEvents,t=i.dayMaxEventRows;return(n===!0||t===!0)&&(n=undefined,t=apt),{dayMaxEvents:n,dayMaxEventRows:t}},r}(rt);var nit=function(){function n(n,t,i){this.positions=n;this.dateProfile=t;this.slotDuration=i}return n.prototype.safeComputeTop=function(n){var i=this.dateProfile,r,t;return wt(i.currentRange,n)&&(r=a(n),t=n.valueOf()-r.valueOf(),t>=tt(i.slotMinTime)&&t0,b=Boolean(o)&&o.span.end-o.span.start0?r.renderSegList(e,s):r.renderEmptyMessage()))})},r.prototype.renderEmptyMessage=function(){var i=this.context,n=i.options,r=i.viewApi,u={text:n.noEventsText,view:r};return t(b,{hookProps:u,classNames:n.noEventsClassNames,content:n.noEventsContent,defaultContent:kwt,didMount:n.noEventsDidMount,willUnmount:n.noEventsWillUnmount},function(n,i,r,u){return t("div",{className:["fc-list-empty"].concat(i).join(" "),ref:n},t("div",{className:"fc-list-empty-cushion",ref:r},u))})},r.prototype.renderSegList=function(n,r){var u=this.context,e=u.theme,o=u.options,f=gwt(n);return t(at,{unit:"day"},function(n,u){for(var h,v,c,y,l,a=[],s=0;sthis.lastSizingDate.valueOf()+ot.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=n,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10},r.prototype.computeShrinkWidths=function(){var r=this,u=this.compileColGroupStats(this.props.colGroups.map(function(n){return[n]})),n=this.getDims(),f=n[0],t=n[1],e=f*t,i=[];return u.forEach(function(n,u){if(n.hasShrinkCol){var f=r.chunkElRefs.collect(u,e,t);i[u]=ov(f)}}),i},r.prototype.computeSectionRowMaxHeights=function(){for(var u,f,i,s,h,d,c,g,r,a,v,it,n,y=new Map,p=this.getDims(),rt=p[0],t=p[1],w=[],o=0;o1)?t(kut,{key:o,colSpec:e,fieldValue:h,rowSpan:s}):t(but,{key:o,colSpec:e,resource:i,fieldValue:h,depth:u,hasChildren:n.hasChildren,isExpanded:n.isExpanded,innerHeight:n.innerHeight})}))},i}(e);ah.addPropsEquality({rowSpans:ht});gp=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.innerInnerRef=h(),t.onExpanderClick=function(){var n=t.props;t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:n.id,isExpanded:!n.isExpanded})},t}return u(i,n),i.prototype.render=function(){var r=this,u=this,n=u.props,f=u.context,e={groupValue:n.group.value,view:f.viewApi},i=n.group.spec;return t("tr",null,t(b,{hookProps:e,classNames:i.labelClassNames,content:i.labelContent,defaultContent:cti,didMount:i.labelDidMount,willUnmount:i.labelWillUnmount},function(i,u,e,o){return t("td",{ref:i,colSpan:n.spreadsheetColCnt,className:["fc-datagrid-cell","fc-resource-group",f.theme.getClass("tableCellShaded"),].concat(u).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:n.innerHeight}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:r.innerInnerRef},t(put,{depth:0,hasChildren:!0,isExpanded:n.isExpanded,onExpanderClick:r.onExpanderClick}),t("span",{className:"fc-datagrid-cell-main",ref:e},o))))}))},i}(e);gp.addPropsEquality({group:cut});var lti=20,ati=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.resizerElRefs=new nt(t._handleColResizerEl.bind(t)),t.colDraggings={},t}return u(i,n),i.prototype.render=function(){var h=this,r=this.props,u=r.colSpecs,n=r.superHeaderRendering,i=r.rowInnerHeights,e={view:this.context.viewApi},f=[],o,s;return i=i.slice(),n&&(o=i.shift(),f.push(t("tr",{key:"row-super"},t(b,{hookProps:e,classNames:n.headerClassNames,content:n.headerContent,didMount:n.headerDidMount,willUnmount:n.headerWillUnmount},function(n,i,r,f){return t("th",{colSpan:u.length,ref:n,className:["fc-datagrid-cell","fc-datagrid-cell-super",].concat(i).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:o}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:r},f)))})))),s=i.shift(),f.push(t("tr",{key:"row"},u.map(function(n,i){var r=i===u.length-1;return t(b,{key:i,hookProps:e,classNames:n.headerClassNames,content:n.headerContent,didMount:n.headerDidMount,willUnmount:n.headerWillUnmount},function(u,f,e,o){return t("th",{ref:u,className:["fc-datagrid-cell"].concat(f).join(" ")},t("div",{className:"fc-datagrid-cell-frame",style:{height:s}},t("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&t("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},t("span",{className:"fc-icon"})),t("span",{className:"fc-datagrid-cell-main",ref:e},o)),!r&&t("div",{className:"fc-datagrid-cell-resizer",ref:h.resizerElRefs.createRef(i)})))})}))),t(c,null,f)},i.prototype._handleColResizerEl=function(n,t){var r=this.colDraggings,i;n?(i=this.initColResizing(n,parseInt(t,10)),i&&(r[t]=i)):(i=r[t],i&&(i.destroy(),delete r[t]))},i.prototype.initColResizing=function(n,t){var u=this.context,s=u.pluginHooks,h=u.isRtl,f=this.props.onColWidthChange,e=s.elementDraggingImpl,i,o,r;if(e){i=new e(n);i.emitter.on("dragstart",function(){var i=dt(d(n,"tr"),"th");r=i.map(function(n){return n.getBoundingClientRect().width});o=r[t]});i.emitter.on("dragmove",function(n){r[t]=Math.max(o+n.deltaX*(h?-1:1),lti);f&&f(r.slice())});return i.setAutoScrollEnabled(!1),i}return null},i}(e),vti=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var n=this,r=n.props,i=n.context,u={resource:new ft(i,r.resource)};return t(tu,{hookProps:u,content:i.options.resourceLaneContent},function(n,i){return i&&t("div",{className:"fc-timeline-lane-misc",ref:n},i)})},i}(e),dut=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.refineHookProps=yi(yti),t.normalizeClassNames=iu(),t.handleHeightChange=function(n,i){if(t.props.onHeightChange)t.props.onHeightChange(d(n,"tr"),i)},t}return u(i,n),i.prototype.render=function(){var e=this,r=this,n=r.props,u=r.context,i=u.options,f=this.refineHookProps({resource:n.resource,context:u}),o=this.normalizeClassNames(i.resourceLaneClassNames,f);return t("tr",{ref:n.elRef},t(bi,{hookProps:f,didMount:i.resourceLaneDidMount,willUnmount:i.resourceLaneWillUnmount},function(i){return t("td",{ref:i,className:["fc-timeline-lane","fc-resource"].concat(o).join(" "),"data-resource-id":n.resource.id},t("div",{className:"fc-timeline-lane-frame",style:{height:n.innerHeight}},t(vti,{resource:n.resource}),t(fh,{dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,nextDayThreshold:n.nextDayThreshold,businessHours:n.businessHours,eventStore:n.eventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,timelineCoords:n.timelineCoords,onHeightChange:e.handleHeightChange,resourceId:n.resource.id})))}))},i}(e);var pti=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return u(i,n),i.prototype.render=function(){var r=this,i=this.props,n=this.props.renderingHooks,u={groupValue:i.groupValue,view:this.context.viewApi};return t("tr",{ref:i.elRef},t(b,{hookProps:u,classNames:n.laneClassNames,content:n.laneContent,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},function(n,u,f,e){return t("td",{ref:n,className:["fc-timeline-lane","fc-resource-group",r.context.theme.getClass("tableCellShaded"),].concat(u).join(" ")},t("div",{style:{height:i.innerHeight},ref:f},e))}))},i}(e),wti=function(n){function r(){return n!==null&&n.apply(this,arguments)||this}return u(r,n),r.prototype.render=function(){var r=this,n=r.props,e=r.context,u=n.rowElRefs,f=n.innerHeights;return t("tbody",null,n.rowNodes.map(function(r,o){if(r.group)return t(pti,{key:r.id,elRef:u.createRef(r.id),groupValue:r.group.value,renderingHooks:r.group.spec,innerHeight:f[o]||""});if(r.resource){var s=r.resource;return t(dut,i({key:r.id,elRef:u.createRef(r.id)},n.splitProps[s.id],{resource:s,dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,nextDayThreshold:e.options.nextDayThreshold,businessHours:s.businessHours||n.fallbackBusinessHours,innerHeight:f[o]||"",timelineCoords:n.slatCoords,onHeightChange:n.onRowHeightChange}))}return null}))},r}(e),bti=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.rootElRef=h(),t.rowElRefs=new nt,t}return u(i,n),i.prototype.render=function(){var i=this,n=i.props,r=i.context;return t("table",{ref:this.rootElRef,className:"fc-scrollgrid-sync-table "+r.theme.getClass("table"),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:n.minHeight}},t(wti,{rowElRefs:this.rowElRefs,rowNodes:n.rowNodes,dateProfile:n.dateProfile,tDateProfile:n.tDateProfile,nowDate:n.nowDate,todayRange:n.todayRange,splitProps:n.splitProps,fallbackBusinessHours:n.fallbackBusinessHours,slatCoords:n.slatCoords,innerHeights:n.innerHeights,onRowHeightChange:n.onRowHeightChange}))},i.prototype.componentDidMount=function(){this.updateCoords()},i.prototype.componentDidUpdate=function(){this.updateCoords()},i.prototype.componentWillUnmount=function(){if(this.props.onRowCoords)this.props.onRowCoords(null)},i.prototype.updateCoords=function(){var n=this.props;if(n.onRowCoords&&n.clientWidth!==null)this.props.onRowCoords(new fi(this.rootElRef.current,kti(this.rowElRefs.currentMap,n.rowNodes),!1,!0))},i}(e);gut=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.computeHasResourceBusinessHours=f(dti),t.resourceSplitter=new oh,t.bgSlicer=new ip,t.slatsRef=h(),t.state={slatCoords:null},t.handleEl=function(n){n?t.context.registerInteractiveComponent(t,{el:n}):t.context.unregisterInteractiveComponent(t)},t.handleSlatCoords=function(n){if(t.setState({slatCoords:n}),t.props.onSlatCoords)t.props.onSlatCoords(n)},t.handleRowCoords=function(n){if(t.rowCoords=n,t.props.onRowCoords)t.props.onRowCoords(n)},t}return u(i,n),i.prototype.render=function(){var o=this,s=this,n=s.props,h=s.state,i=s.context,f=n.dateProfile,e=n.tDateProfile,v=ii(e.slotDuration).unit,l=this.computeHasResourceBusinessHours(n.rowNodes),a=this.resourceSplitter.splitProps(n),y=a[""],r=this.bgSlicer.sliceProps(y,f,e.isTimeScale?null:n.nextDayThreshold,i,f,i.dateProfileGenerator,e,i.dateEnv),u=h.slatCoords&&h.slatCoords.dateProfile===n.dateProfile?h.slatCoords:null;return t("div",{ref:this.handleEl,className:["fc-timeline-body",n.expandRows?"fc-timeline-body-expandrows":"",].join(" "),style:{minWidth:n.tableMinWidth}},t(at,{unit:v},function(s,h){return t(c,null,t(np,{ref:o.slatsRef,dateProfile:f,tDateProfile:e,nowDate:s,todayRange:h,clientWidth:n.clientWidth,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,onCoords:o.handleSlatCoords,onScrollLeftRequest:n.onScrollLeftRequest}),t(tp,{businessHourSegs:l?null:r.businessHourSegs,bgEventSegs:r.bgEventSegs,timelineCoords:u,eventResizeSegs:r.eventResize?r.eventResize.segs:[],dateSelectionSegs:r.dateSelectionSegs,nowDate:s,todayRange:h}),t(bti,{rowNodes:n.rowNodes,dateProfile:f,tDateProfile:n.tDateProfile,nowDate:s,todayRange:h,splitProps:a,fallbackBusinessHours:l?n.businessHours:null,clientWidth:n.clientWidth,minHeight:n.expandRows?n.clientHeight:"",tableMinWidth:n.tableMinWidth,innerHeights:n.rowInnerHeights,slatCoords:u,onRowCoords:o.handleRowCoords,onRowHeightChange:n.onRowHeightChange}),i.options.nowIndicator&&u&&u.isDateInRange(s)&&t("div",{className:"fc-timeline-now-indicator-container"},t(cr,{isAxis:!1,date:s},function(n,r,f,e){return t("div",{ref:n,className:["fc-timeline-now-indicator-line"].concat(r).join(" "),style:rh(u.dateToCoord(s),i.isRtl)},e)})))}))},i.prototype.queryHit=function(n,t){var u=this.rowCoords,r=u.topToIndex(t),f,i;return r!=null&&(f=this.props.rowNodes[r].resource,f&&(i=this.slatsRef.current.positionToHit(n),i))?{dateProfile:this.props.dateProfile,dateSpan:{range:i.dateSpan.range,allDay:i.dateSpan.allDay,resourceId:f.id},rect:{left:i.left,right:i.right,top:u.tops[r],bottom:u.bottoms[r]},dayEl:i.dayEl,layer:0}:null},i}(rt);var nft=30,gti=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.scrollGridRef=h(),t.timeBodyScrollerElRef=h(),t.spreadsheetHeaderChunkElRef=h(),t.rootElRef=h(),t.ensureScrollGridResizeId=0,t.state={resourceAreaWidthOverride:null},t.ensureScrollGridResize=function(){t.ensureScrollGridResizeId&&clearTimeout(t.ensureScrollGridResizeId);t.ensureScrollGridResizeId=setTimeout(function(){t.scrollGridRef.current.handleSizing(!1)},ot.SCROLLGRID_RESIZE_INTERVAL+1)},t}return u(i,n),i.prototype.render=function(){var u=this,n=u.props,f=u.state,i=u.context,r=i.options,s=!n.forPrint&&hr(r),h=!n.forPrint&&yf(r),e=[{type:"header",key:"header",syncRowHeights:!0,isSticky:s,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:n.spreadsheetHeaderRows},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",content:n.timeHeaderContent},]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:n.spreadsheetBodyRows},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:n.timeBodyContent},]},],o;return h&&e.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:sr},{key:"divider",outerContent:t("td",{className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",content:sr},]}),o=f.resourceAreaWidthOverride!=null?f.resourceAreaWidthOverride:r.resourceAreaWidth,t(ne,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:!1,colGroups:[{cols:n.spreadsheetCols,width:o},{cols:[]},{cols:n.timeCols},],sections:e})},i.prototype.forceTimeScroll=function(n){var t=this.scrollGridRef.current;t.forceScrollLeft(2,n)},i.prototype.forceResourceScroll=function(n){var t=this.scrollGridRef.current;t.forceScrollTop(1,n)},i.prototype.getResourceScroll=function(){var n=this.timeBodyScrollerElRef.current;return n.scrollTop},i.prototype.componentDidMount=function(){this.initSpreadsheetResizing()},i.prototype.componentWillUnmount=function(){this.destroySpreadsheetResizing()},i.prototype.initSpreadsheetResizing=function(){var i=this,r=this.context,o=r.isRtl,s=r.pluginHooks,u=s.elementDraggingImpl,h=this.spreadsheetHeaderChunkElRef.current,t,n,f,e;if(u){t=this.rootElRef.current;n=this.spreadsheetResizerDragging=new u(t,".fc-resource-timeline-divider");n.emitter.on("dragstart",function(){f=h.getBoundingClientRect().width;e=t.getBoundingClientRect().width});n.emitter.on("dragmove",function(n){var t=f+n.deltaX*(o?-1:1);t=Math.max(t,nft);t=Math.min(t,e-nft);i.setState({resourceAreaWidthOverride:t},i.ensureScrollGridResize)});n.setAutoScrollEnabled(!1)}},i.prototype.destroySpreadsheetResizing=function(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()},i}(e),nw=function(n){function i(t,i){var r=n.call(this,t,i)||this;return r.processColOptions=f(rii),r.buildTimelineDateProfile=f(ky),r.hasNesting=f(iii),r.buildRowNodes=f(bp),r.layoutRef=h(),r.rowNodes=[],r.renderedRowNodes=[],r.buildRowIndex=f(nii),r.handleSlatCoords=function(n){r.setState({slatCoords:n})},r.handleRowCoords=function(n){r.rowCoords=n;r.scrollResponder.update(!1)},r.handleMaxCushionWidth=function(n){r.setState({slotCushionMaxWidth:Math.ceil(n)})},r.handleScrollLeftRequest=function(n){var t=r.layoutRef.current;t.forceTimeScroll(n)},r.handleScrollRequest=function(n){var i=r.rowCoords,o=r.layoutRef.current,u=n.rowId||n.resourceId,f,t,e;return i?(u&&(f=r.buildRowIndex(r.renderedRowNodes),t=f[u],t!=null&&(e=n.fromBottom!=null?i.bottoms[t]-n.fromBottom:i.tops[t],o.forceResourceScroll(e))),!0):null},r.handleColWidthChange=function(n){r.setState({spreadsheetColWidths:n})},r.state={resourceAreaWidth:i.options.resourceAreaWidth,spreadsheetColWidths:[]},r}return u(i,n),i.prototype.render=function(){var i=this,o=this,n=o.props,l=o.state,r=o.context,f=r.options,v=r.viewSpec,u=this.processColOptions(r.options),y=u.superHeaderRendering,p=u.groupSpecs,w=u.orderSpecs,b=u.isVGrouping,s=u.colSpecs,e=this.buildTimelineDateProfile(n.dateProfile,r.dateEnv,f,r.dateProfileGenerator),h=this.rowNodes=this.buildRowNodes(n.resourceStore,p,w,b,n.resourceEntityExpansions,f.resourcesInitiallyExpanded),k=["fc-resource-timeline",this.hasNesting(h)?"":"fc-resource-timeline-flat","fc-timeline",f.eventOverlap===!1?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled",],a=f.slotMinWidth,d=up(e,a||this.computeFallbackSlotMinWidth(e));return t(bt,{viewSpec:v},function(u,f){return t("div",{ref:u,className:k.concat(f).join(" ")},t(gti,{ref:i.layoutRef,forPrint:n.forPrint,isHeightAuto:n.isHeightAuto,spreadsheetCols:tii(s,l.spreadsheetColWidths,""),spreadsheetHeaderRows:function(n){return t(ati,{superHeaderRendering:y,colSpecs:s,onColWidthChange:i.handleColWidthChange,rowInnerHeights:n.rowSyncHeights})},spreadsheetBodyRows:function(n){return t(c,null,i.renderSpreadsheetRows(h,s,n.rowSyncHeights))},timeCols:d,timeHeaderContent:function(r){return t(gy,{clientWidth:r.clientWidth,clientHeight:r.clientHeight,tableMinWidth:r.tableMinWidth,tableColGroupNode:r.tableColGroupNode,dateProfile:n.dateProfile,tDateProfile:e,slatCoords:l.slatCoords,rowInnerHeights:r.rowSyncHeights,onMaxCushionWidth:a?null:i.handleMaxCushionWidth})},timeBodyContent:function(u){return t(gut,{dateProfile:n.dateProfile,clientWidth:u.clientWidth,clientHeight:u.clientHeight,tableMinWidth:u.tableMinWidth,tableColGroupNode:u.tableColGroupNode,expandRows:u.expandRows,tDateProfile:e,rowNodes:h,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,resourceStore:n.resourceStore,nextDayThreshold:r.options.nextDayThreshold,rowInnerHeights:u.rowSyncHeights,onSlatCoords:i.handleSlatCoords,onRowCoords:i.handleRowCoords,onScrollLeftRequest:i.handleScrollLeftRequest,onRowHeightChange:u.reportRowHeightChange})}}))})},i.prototype.renderSpreadsheetRows=function(n,i,r){return n.map(function(n,u){return n.group?t(gp,{key:n.id,id:n.id,spreadsheetColCnt:i.length,isExpanded:n.isExpanded,group:n.group,innerHeight:r[u]||""}):n.resource?t(ah,{key:n.id,colSpecs:i,rowSpans:n.rowSpans,depth:n.depth,isExpanded:n.isExpanded,hasChildren:n.hasChildren,resource:n.resource,innerHeight:r[u]||""}):null})},i.prototype.componentDidMount=function(){this.renderedRowNodes=this.rowNodes;this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},i.prototype.getSnapshotBeforeUpdate=function(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}},i.prototype.componentDidUpdate=function(n,t,i){this.renderedRowNodes=this.rowNodes;this.scrollResponder.update(n.dateProfile!==this.props.dateProfile);i.resourceScroll&&this.handleScrollRequest(i.resourceScroll)},i.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},i.prototype.computeFallbackSlotMinWidth=function(n){return Math.max(30,(this.state.slotCushionMaxWidth||0)/n.slotsPerLabel)},i.prototype.queryResourceScroll=function(){var r=this,u=r.rowCoords,o=r.renderedRowNodes,n,e,i;if(u){var s=this.layoutRef.current,f=u.bottoms,h=s.getResourceScroll(),t={};for(n=0;n0){t.rowId=e.id;t.fromBottom=i;break}return t}return null},i}(e);return nw.addStateEquality({spreadsheetColWidths:ht}),tft=k({deps:[ar,lh,fp,],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:nw,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}}),wo.push(wyt,dtt,sit,vit,nbt,lbt,urt,lkt,fp,lh,uti,yut,tft),n.AbstractResourceDayTableModel=lp,n.BASE_OPTION_DEFAULTS=ri,n.BASE_OPTION_REFINERS=fl,n.BaseComponent=e,n.BgEvent=kf,n.BootstrapTheme=kt,n.Calendar=itt,n.CalendarApi=pi,n.CalendarContent=yn,n.CalendarDataManager=bo,n.CalendarDataProvider=cn,n.CalendarRoot=ka,n.Component=ao,n.ContentHook=tu,n.CustomContentRenderContext=vo,n.DEFAULT_RESOURCE_ORDER=te,n.DateComponent=rt,n.DateEnv=pl,n.DateProfileGenerator=yo,n.DayCellContent=os,n.DayCellRoot=bf,n.DayGridView=ktt,n.DayHeader=ts,n.DayResourceTableModel=vp,n.DaySeriesModel=iv,n.DayTable=ey,n.DayTableModel=rv,n.DayTableSlicer=fy,n.DayTimeCols=ly,n.DayTimeColsSlicer=ks,n.DayTimeColsView=py,n.DelayedRunner=or,n.Draggable=vyt,n.ElementDragging=ba,n.ElementScrollController=og,n.Emitter=fr,n.EventApi=v,n.EventRoot=ru,n.EventSourceApi=hi,n.FeaturefulElementDragging=lr,n.Fragment=c,n.Interaction=di,n.ListView=by,n.MoreLinkRoot=cs,n.MountHook=bi,n.NamedTimeZoneImpl=ln,n.NowIndicatorRoot=cr,n.NowTimer=at,n.PointerDragging=as,n.PositionCache=fi,n.RefMap=nt,n.RenderHook=b,n.ResourceApi=ft,n.ResourceDayHeader=hh,n.ResourceDayTable=dp,n.ResourceDayTableModel=ap,n.ResourceDayTableView=lut,n.ResourceDayTimeCols=aut,n.ResourceDayTimeColsView=vut,n.ResourceLabelRoot=eut,n.ResourceSplitter=oh,n.ResourceTimelineLane=dut,n.ResourceTimelineView=nw,n.ScrollController=lo,n.ScrollGrid=ne,n.ScrollResponder=ag,n.Scroller=fs,n.SegHierarchy=af,n.SimpleScrollGrid=pf,n.Slicer=is,n.Splitter=sf,n.SpreadsheetRow=ah,n.StandardEvent=wf,n.Table=ws,n.TableDateCell=nv,n.TableDowCell=tv,n.TableView=ny,n.Theme=er,n.ThirdPartyDraggable=pyt,n.TimeCols=bs,n.TimeColsSlatsCoords=nit,n.TimeColsView=sy,n.TimelineCoords=art,n.TimelineHeader=gy,n.TimelineHeaderRows=lrt,n.TimelineLane=fh,n.TimelineLaneBg=tp,n.TimelineLaneSlicer=ip,n.TimelineSlats=np,n.TimelineView=rp,n.VResourceJoiner=yp,n.VResourceSplitter=pp,n.ViewApi=vl,n.ViewContextType=lt,n.ViewRoot=bt,n.WeekNumberRoot=hs,n.WindowScrollController=sg,n.addDays=p,n.addDurations=ve,n.addMs=gt,n.addWeeks=pc,n.allowContextMenu=ab,n.allowSelection=cb,n.applyMutationToEventStore=eo,n.applyStyle=ci,n.applyStyleProp=sc,n.asCleanDays=tl,n.asRoughMinutes=rk,n.asRoughMs=tt,n.asRoughSeconds=uk,n.binarySearch=wa,n.buildClassNameNormalizer=iu,n.buildDayRanges=ay,n.buildDayTableModel=oy,n.buildEntryKey=ki,n.buildEventApis=wi,n.buildEventRangeKey=uo,n.buildHashFromArray=aet,n.buildIsoString=wu,n.buildNavLinkData=ur,n.buildResourceFields=kp,n.buildRowNodes=bp,n.buildSegCompareObj=id,n.buildSegTimeText=gr,n.buildSlatCols=up,n.buildSlatMetas=yy,n.buildTimeColsModel=wy,n.buildTimelineDateProfile=ky,n.collectFromHash=gc,n.combineEventUis=no,n.compareByFieldSpec=vb,n.compareByFieldSpecs=ac,n.compareNumbers=yb,n.compareObjs=ae,n.computeEarliestSegStart=df,n.computeEdges=ua,n.computeFallbackHeaderFormat=da,n.computeHeightAndMargins=uht,n.computeInnerRect=fa,n.computeRect=co,n.computeSegDraggable=rd,n.computeSegEndResizable=fd,n.computeSegStartResizable=ud,n.computeShrinkWidth=ov,n.computeSmallestCellWidth=pb,n.computeVisibleDayRange=tf,n.config=ot,n.constrainPoint=rg,n.coordToCss=rh,n.coordsToCss=uh,n.createContext=sa,n.createDuration=s,n.createElement=t,n.createEmptyEventStore=it,n.createEventInstance=yu,n.createEventUi=dr,n.createFormatter=y,n.createPlugin=k,n.createPortal=cg,n.createRef=h,n.diffDates=tr,n.diffDayAndTime=bb,n.diffDays=ni,n.diffPoints=fg,n.diffWeeks=wb,n.diffWholeDays=yr,n.diffWholeWeeks=kb,n.disableCursor=au,n.elementClosest=d,n.elementMatches=he,n.enableCursor=vu,n.eventTupleToStore=kr,n.filterEventStoreDefs=ku,n.filterHash=pt,n.findDirectChildren=fb,n.findElements=dt,n.flattenResources=wp,n.flexibleCompare=vc,n.flushToDom=cf,n.formatDate=bst,n.formatDayString=br,n.formatIsoTimeString=fk,n.formatRange=kst,n.getAllowYScrolling=sv,n.getCanVGrowWithinCell=oo,n.getClippingParents=ea,n.getDateMeta=nu,n.getDayClassNames=rr,n.getDefaultEventEnd=fo,n.getElSeg=ir,n.getEntrySpanEnd=va,n.getEventClassNames=ed,n.getIsRtlScrollbarOnLeft=hf,n.getPublicId=cp,n.getRectCenter=ug,n.getRelevantEvents=ge,n.getScrollGridClassNames=yv,n.getScrollbarWidths=ra,n.getSectionClassNames=pv,n.getSectionHasLiquidHeight=es,n.getSegMeta=st,n.getSlotClassNames=ta,n.getStickyFooterScrollbar=yf,n.getStickyHeaderDates=hr,n.getUnequalProps=dc,n.globalLocales=kd,n.globalPlugins=wo,n.greatestDurationDenominator=ii,n.groupIntersectingEntries=ya,n.guid=vt,n.hasBgRendering=nd,n.hasShrinkWidth=vv,n.identity=r,n.interactionSettingsStore=vf,n.interactionSettingsToStore=go,n.intersectRanges=ui,n.intersectRects=dl,n.intersectSpans=ko,n.isArraysEqual=ht,n.isColPropsEqual=cv,n.isDateSelectionValid=bn,n.isDateSpansEqual=sd,n.isGroupsEqual=cut,n.isInt=li,n.isInteractionValid=rs,n.isMultiDayRange=dk,n.isPropsEqual=ut,n.isPropsValid=fv,n.isValidDate=le,n.joinSpans=an,n.listenBySelector=hc,n.mapHash=w,n.memoize=f,n.memoizeArraylike=ye,n.memoizeHashlike=ul,n.memoizeObjArg=yi,n.mergeEventStores=bu,n.multiplyDuration=il,n.padStart=yt,n.parseBusinessHours=kl,n.parseClassNames=du,n.parseDragMeta=ns,n.parseEventDef=nf,n.parseFieldSpecs=ce,n.parseMarker=bd,n.pointInsideRect=ig,n.preventContextMenu=lb,n.preventDefault=lu,n.preventSelection=hb,n.rangeContainsMarker=wt,n.rangeContainsRange=uf,n.rangesEqual=hl,n.rangesIntersect=rf,n.refineEventDef=io,n.refineProps=nr,n.removeElement=vr,n.removeExact=ek,n.render=hg,n.renderChunkContent=hv,n.renderFill=ss,n.renderMicroColGroup=lv,n.renderScrollShim=sr,n.requestJson=po,n.sanitizeShrinkWidth=av,n.setElSeg=cl,n.setRef=g,n.setScrollFromLeftEdge=bit,n.sliceEventStore=ff,n.sliceEvents=sat,n.sortEventSegs=ef,n.startOfDay=a,n.translateRect=gl,n.triggerDateSelect=ll,n.unmountComponentAtNode=lg,n.unpromisify=oa,n.version=ttt,n.whenTransitionDone=sb,n.wholeDivideDurations=ti,Object.defineProperty(n,"__esModule",{value:!0}),n}({}); \ No newline at end of file