KUJUNTI.ID MINISH3LL
Path : /var/www/html/jewelry-pos/public/admin-asset/js/miscellaneous/fullcalendar/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/jewelry-pos/public/admin-asset/js/miscellaneous/fullcalendar/fullcalendar.bundle.js


!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).FullCalendar={})}(this,function(e){"use strict";var o={className:!0,colSpan:!0,rowSpan:!0},t={"<tr":"tbody","<td":"tr"};function s(e,t,n){var r=document.createElement(e);if(t)for(var i in t)"style"===i?f(r,t[i]):o[i]?r[i]=t[i]:r.setAttribute(i,t[i]);return"string"==typeof n?r.innerHTML=n:null!=n&&b(r,n),r}function S(e){e=e.trim();var t=document.createElement(n(e));return t.innerHTML=e,t.firstChild}function a(e){return Array.prototype.slice.call(function(e){e=e.trim();var t=document.createElement(n(e));return t.innerHTML=e,t.childNodes}(e))}function n(e){return t[e.substr(0,3)]||"div"}function b(e,t){for(var n=l(t),r=0;r<n.length;r++)e.appendChild(n[r])}function m(e,t){for(var n=l(t),r=e.firstChild||null,i=0;i<n.length;i++)e.insertBefore(n[i],r)}function l(e){var t="string"==typeof e?a(e):e instanceof Node?[e]:Array.prototype.slice.call(e);return t}function r(e){e.parentNode&&e.parentNode.removeChild(e)}var i=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,c=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(u(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};function d(e,t){return c.call(e,t)}function u(e,t){return i.call(e,t)}function p(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].querySelectorAll(t),s=0;s<o.length;s++)r.push(o[s]);return r}var h=/(top|left|right|bottom|width|height)$/i;function f(e,t){for(var n in t)g(e,n,t[n])}function g(e,t,n){null==n?e.style[t]="":"number"==typeof n&&h.test(t)?e.style[t]=n+"px":e.style[t]=n}function v(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}var y=null;function E(){return null===y&&(y=function(){var e=s("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return r(e),t}()),y}function D(e){return e=Math.max(0,e),e=Math.round(e)}function w(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=D(e.offsetWidth-e.clientWidth-r-i),l={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:D(e.offsetHeight-e.clientHeight-o-s),scrollbarLeft:0,scrollbarRight:0};return E()&&"rtl"===n.direction?l.scrollbarLeft=a:l.scrollbarRight=a,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function T(e,t){void 0===t&&(t=!1);var n=C(e),r=w(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function C(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function R(e){return e.getBoundingClientRect().height+I(e)}function I(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function M(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function P(e){e.preventDefault()}function k(e,t,n,r){function i(e){var t=d(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}var x=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];var H=["sun","mon","tue","wed","thu","fri","sat"];function _(e,t){var n=G(e);return n[2]+=t,j(n)}function O(e,t){var n=G(e);return n[6]+=t,j(n)}function N(e,t){return(t.valueOf()-e.valueOf())/864e5}function z(e,t){var n=B(e),r=B(t);return{years:0,months:0,days:Math.round(N(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function L(e,t){var n=V(e,t);return null!==n&&n%7==0?n/7:null}function V(e,t){return Y(e)===Y(t)?Math.round(N(e,t)):null}function B(e){return j([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function A(e,t,n,r){var i,o,s=j([t,0,1+(-(7+j([t,0,o=7+(i=n)-r]).getUTCDay()-i)%7+o-1)]),a=B(e),l=Math.round(N(s,a));return Math.floor(l/7)+1}function U(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function F(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function G(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function j(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function W(e){return!isNaN(e.valueOf())}function Y(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var q=["years","months","days","milliseconds"],Z=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function X(e,t){var n;return"string"==typeof e?function(e){var t=Z.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?K(e):"number"==typeof e?K(((n={})[t||"milliseconds"]=e,n)):null}function K(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*J(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function J(e){return e.weeks||e.week||0}function Q(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function $(e){return ee(e)/864e5}function ee(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function te(e,t){var n=e.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return e.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function ne(e){e.forEach(function(e){e.style.height=""})}function re(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t++)"string"==typeof(n=i[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function ie(e,t,n){for(var r,i=0;i<n.length;i++)if(r=oe(e,t,n[i]))return r;return 0}function oe(e,t,n){return n.func?n.func(e,t):se(e[n.field],t[n.field])*(n.order||1)}function se(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function ae(e){return e.charAt(0).toUpperCase()+e.slice(1)}function le(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function ce(e){return e%1==0}function de(e,t,n){if("function"==typeof e&&(e=[e]),e){for(var r=void 0,i=void 0,r=0;r<e.length;r++)i=e[r].apply(t,n)||i;return i}}function ue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]}function pe(t,n){var r,i,o,s,a,l=function(){var e=(new Date).valueOf()-s;e<n?r=setTimeout(l,n-e):(r=null,a=t.apply(o,i),o=i=null)};return function(){return o=this,i=arguments,s=(new Date).valueOf(),r=r||setTimeout(l,n),a}}function he(e,t,n,r){void 0===n&&(n={});var i={};for(var o in t){var s=t[o];void 0!==e[o]?s===Function?i[o]="function"==typeof e[o]?e[o]:null:i[o]=s?s(e[o]):e[o]:void 0!==n[o]?i[o]=n[o]:s===String?i[o]="":s&&s!==Number&&s!==Boolean&&s!==Function?i[o]=s(null):i[o]=null}if(r)for(var o in e)void 0===t[o]&&(r[o]=e[o]);return i}function fe(e){var t=Math.floor(N(e.start,e.end))||1,n=B(e.start);return{start:n,end:_(n,t)}}function ge(e,t){void 0===t&&(t=X(0));var n,r=null,i=null;return e.end&&(i=B(e.end),(n=e.end.valueOf()-i.valueOf())&&n>=ee(t)&&(i=_(i,1))),e.start&&(r=B(e.start),i&&i<=r&&(i=_(r,1))),{start:r,end:i}}function ve(e,t,n,r){return"year"===r?X(n.diffWholeYears(e,t),"year"):"month"===r?X(n.diffWholeMonths(e,t),"month"):z(e,t)}var me=function(e,t){return(me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ye(e,t){function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var Se=Object.prototype.hasOwnProperty;function be(e,t){var n,r,i,o,s,a,l={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;0<=o;o--)if("object"==typeof(s=e[o][r])&&s)i.unshift(s);else if(void 0!==s){l[r]=s;break}i.length&&(l[r]=be(i))}for(n=e.length-1;0<=n;n--)for(r in a=e[n])r in l||(l[r]=a[r]);return l}function De(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function we(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Te(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function Ce(e){var t=[];for(var n in e)t.push(e[n]);return t}function Re(e,t){for(var n in e)if(Se.call(e,n)&&!(n in t))return!1;for(var n in t)if(Se.call(t,n)&&e[n]!==t[n])return!1;return!0}function Ie(e,t,n,r){for(var i=He(),o=0,s=e;o<s.length;o++){var a=Wt(s[o],t,n,r);a&&Me(a,i)}return i}function Me(e,t){return void 0===t&&(t=He()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Pe(e,t,n){var r,i,o,s,a,l,c=n.dateEnv,d=e.defs,u=De(u=e.instances,function(e){return!d[e.defId].recurringDef});for(var p in d){var h=d[p];if(h.recurringDef)for(var f=(f=h.recurringDef.duration)||(h.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration),g=0,v=(r=h,i=f,o=t,s=n.dateEnv,a=n.pluginSystem.hooks.recurringTypes,l=void 0,l=a[r.recurringDef.typeId].expand(r.recurringDef.typeData,{start:s.subtract(o.start,i),end:o.end},s),r.allDay&&(l=l.map(B)),l);g<v.length;g++){var m=v[g],y=qt(p,{start:m,end:c.add(m,f)});u[y.instanceId]=y}}return{defs:d,instances:u}}function ke(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=Oe(e,function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n});return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return He()}function xe(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],s=t(o);s?n.push(s):null==s&&n.push(o)}}else n=e;return n}function He(){return{defs:{},instances:{}}}function _e(e,t){return{defs:Ee({},e.defs,t.defs),instances:Ee({},e.instances,t.instances)}}function Oe(e,t){var n=De(e.defs,t),r=De(e.instances,function(e){return n[e.defId]});return{defs:n,instances:r}}function Ne(e,t){var n,r,i=[],o=t.start;for(e.sort(ze),n=0;n<e.length;n++)(r=e[n]).start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function ze(e,t){return e.start.valueOf()-t.start.valueOf()}function Le(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function Ve(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function Be(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Ae(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Ue(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Fe(e,t){var n,r=e.length;if(r!==t.length)return!1;for(n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Ge(e){var t,n;return function(){return t&&Fe(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}function je(t,n){var r=null;return function(){var e=t.apply(this,arguments);return null!==r&&(r===e||n(r,e))||(r=e),r}}var We={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ye={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},qe=/\s*([ap])\.?m\.?/i,Ze=/,/g,Xe=/\s+/g,Ke=/\u200e/g,Je=/UTC|GMT/,Qe=($e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},$e.prototype.formatRange=function(e,t,n){var r,i,o,s=this.standardDateProps,a=this.extendedSettings,l=(r=e.marker,i=t.marker,(o=n.calendarSystem).getMarkerYear(r)===o.getMarkerYear(i)?o.getMarkerMonth(r)===o.getMarkerMonth(i)?o.getMarkerDay(r)===o.getMarkerDay(i)?Y(r)===Y(i)?0:1:2:4:5);if(!l)return this.format(e,n);var c=l;!(1<c)||"numeric"!==s.year&&"2-digit"!==s.year||"numeric"!==s.month&&"2-digit"!==s.month||"numeric"!==s.day&&"2-digit"!==s.day||(c=1);var d=this.format(e,n),u=this.format(t,n);if(d===u)return d;var p=et(function(e,t){var n={};for(var r in e)r in Ye&&!(Ye[r]<=t)||(n[r]=e[r]);return n}(s,c),a,n),h=p(e),f=p(t),g=function(e,t,n,r){for(var i=0;i<e.length;){var o=e.indexOf(t,i);if(-1===o)break;var s=e.substr(0,o);i=o+t.length;for(var a=e.substr(i),l=0;l<n.length;){var c=n.indexOf(r,l);if(-1===c)break;var d=n.substr(0,c);l=c+r.length;var u=n.substr(l);if(s===d&&a===u)return{before:s,after:a}}}return null}(d,h,u,f),v=a.separator||"";return g?g.before+h+v+f+g.after:d+v+u},$e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},$e);function $e(e){var t={},n={},r=0;for(var i in e)i in We?(n[i]=e[i],r=Math.max(We[i],r)):(t[i]=e[i],i in Ye&&(r=Math.max(Ye[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Ge(et)}function et(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return st(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r){var i=[];"narrow"===r?i.push(t):"short"===r&&i.push(t," ");i.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:function(r,i,o){r=Ee({},r),i=Ee({},i),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(r,i),r.timeZone="UTC";var s,a=new Intl.DateTimeFormat(o.locale.codes,r);{var e;i.omitZeroMinute&&(delete(e=Ee({},r)).minute,s=new Intl.DateTimeFormat(o.locale.codes,e))}return function(e){var t=e.marker,n=s&&!t.getUTCMinutes()?s:a;return function(e,t,n,r,i){e=e.replace(Ke,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(Je,function(){return n=!0,t}),n||(e+=" "+t);return e}(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":st(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Ze,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(qe,"").trim():"narrow"===r.meridiem?e=e.replace(qe,function(e,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace(qe,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace(qe,function(e){return e.toLocaleLowerCase()}));return e=(e=e.replace(Xe," ")).trim()}(n.format(t),e,r,i,o)}}(e,t,n)}var tt=(nt.prototype.format=function(e,t){return t.cmdFormatter(this.cmdStr,at(e,null,t,this.separator))},nt.prototype.formatRange=function(e,t,n){return n.cmdFormatter(this.cmdStr,at(e,t,n,this.separator))},nt);function nt(e,t){this.cmdStr=e,this.separator=t}var rt=(it.prototype.format=function(e,t){return this.func(at(e,null,t))},it.prototype.formatRange=function(e,t,n){return this.func(at(e,t,n))},it);function it(e){this.func=e}function ot(e,t){return"object"==typeof e&&e?("string"==typeof t&&(e=Ee({separator:t},e)),new Qe(e)):"string"==typeof e?new tt(e,t):"function"==typeof e?new rt(e):void 0}function st(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?n+le(i,2)+":"+le(o,2):"GMT"+n+i+(o?":"+le(o,2):"")}function at(e,t,n,r){var i=lt(e,n.calendarSystem);return{date:i,start:i,end:t?lt(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function lt(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}var ct=(dt.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},dt.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(dt.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(dt.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),dt);function dt(e,t){this.calendar=e,this.internalEventSource=t}var ut=(pt.prototype.setProp=function(e,t){var n,r,i;e in Gt||(e in Ft?("function"==typeof Ft[e]&&(t=Ft[e](t)),this.mutate({standardProps:((n={})[e]=t,n)})):e in zt&&(i=void 0,"function"==typeof zt[e]&&(t=zt[e](t)),i="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:((r={})[e]=t,r),this.mutate({standardProps:{ui:i}})))},pt.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:((n={})[e]=t,n)})},pt.prototype.setStart=function(e,t){void 0===t&&(t={});var n,r=this._calendar.dateEnv,i=r.createMarker(e);i&&this._instance&&(n=ve(this._instance.range.start,i,r,t.granularity),t.maintainDuration?this.mutate({datesDelta:n}):this.mutate({startDelta:n}))},pt.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r,i=this._calendar.dateEnv;(null==e||(n=i.createMarker(e)))&&this._instance&&(n?(r=ve(this._instance.range.end,n,i,t.granularity),this.mutate({endDelta:r})):this.mutate({standardProps:{hasEnd:!1}}))},pt.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,i,o,s,a=this._calendar.dateEnv,l={allDay:n.allDay},c=a.createMarker(e);c&&(null==t||(r=a.createMarker(t)))&&this._instance&&(i=this._instance.range,!0===n.allDay&&(i=fe(i)),o=ve(i.start,c,a,n.granularity),r?Q(o,s=ve(i.end,r,a,n.granularity))?this.mutate({datesDelta:o,standardProps:l}):this.mutate({startDelta:o,endDelta:s,standardProps:l}):(l.hasEnd=!1,this.mutate({datesDelta:o,standardProps:l})))},pt.prototype.moveStart=function(e){var t=X(e);t&&this.mutate({startDelta:t})},pt.prototype.moveEnd=function(e){var t=X(e);t&&this.mutate({endDelta:t})},pt.prototype.moveDates=function(e){var t=X(e);t&&this.mutate({datesDelta:t})},pt.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},pt.prototype.formatRange=function(e){var t=this._calendar.dateEnv,n=this._instance,r=ot(e,this._calendar.opt("defaultRangeSeparator"));return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},pt.prototype.mutate=function(e){var t,n=this._def,r=this._instance;r&&(this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:r.instanceId,mutation:e,fromApi:!0}),t=this._calendar.state.eventStore,this._def=t.defs[n.defId],this._instance=t.instances[r.instanceId])},pt.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(pt.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new ct(this._calendar,this._calendar.state.eventSources[e]):null},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(pt.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),pt);function pt(e,t,n){this._calendar=e,this._def=t,this._instance=n||null}function ht(e,t,n,r){var i={},o={},s={},a=[],l=[],c=vt(e.defs,t);for(var d in e.defs){"inverse-background"===(S=e.defs[d]).rendering&&(S.groupId?(i[S.groupId]=[],s[S.groupId]||(s[S.groupId]=S)):o[d]=[])}for(var u in e.instances){var p=e.instances[u],h=c[(S=e.defs[p.defId]).defId],f=p.range,g=!S.allDay&&r?ge(f,r):f,v=Le(g,n);v&&("inverse-background"===S.rendering?S.groupId?i[S.groupId].push(v):o[p.defId].push(v):("background"===S.rendering?a:l).push({def:S,ui:h,instance:p,range:v,isStart:g.start&&g.start.valueOf()===v.start.valueOf(),isEnd:g.end&&g.end.valueOf()===v.end.valueOf()}))}for(var m in i)for(var y=0,E=Ne(i[m],n);y<E.length;y++){var S,b=E[y],h=c[(S=s[m]).defId];a.push({def:S,ui:h,instance:null,range:b,isStart:!1,isEnd:!1})}for(var d in o)for(var D=0,w=Ne(o[d],n);D<w.length;D++){b=w[D];a.push({def:e.defs[d],ui:c[d],instance:null,range:b,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function ft(e,t,n){var r=e.calendar,i=e.view;r.hasPublicHandlers("eventRender")&&(t=t.filter(function(e){var t=r.publiclyTrigger("eventRender",[{event:new ut(r,e.eventRange.def,e.eventRange.instance),isMirror:n,isStart:e.isStart,isEnd:e.isEnd,el:e.el,view:i}]);return!1!==t&&(t&&!0!==t&&(e.el=t),!0)}));for(var o,s,a=0,l=t;a<l.length;a++){var c=l[a];o=c.el,s=c,o.fcSeg=s}return t}function gt(e){return e.fcSeg||null}function vt(e,t){return we(e,function(e){return mt(e,t)})}function mt(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),At(n)}function yt(e,t,n){var r=e.calendar,i=e.view;if(r.hasPublicHandlers("eventPositioned"))for(var o=0,s=t;o<s.length;o++){var a=s[o];r.publiclyTriggerAfterSizing("eventPositioned",[{event:new ut(r,a.eventRange.def,a.eventRange.instance),isMirror:n,isStart:a.isStart,isEnd:a.isEnd,el:a.el,view:i}])}r.state.loadingLevel||(r.afterSizingTriggers._eventsPositioned=[null])}function Et(e,t,n){for(var r=e.calendar,i=e.view,o=0,s=t;o<s.length;o++){var a=s[o];r.trigger("eventElRemove",a.el)}if(r.hasPublicHandlers("eventDestroy"))for(var l=0,c=t;l<c.length;l++){a=c[l];r.publiclyTrigger("eventDestroy",[{event:new ut(r,a.eventRange.def,a.eventRange.instance),isMirror:n,el:a.el,view:i}])}}function St(e,t,n,r){var i=vt(e.defs,t),o=He();for(var s in e.defs){var a=e.defs[s];o.defs[s]=bt(a,i[s],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(var l in e.instances){var c=e.instances[l],a=o.defs[c.defId];o.instances[l]=Dt(c,a,i[c.defId],n,r)}return o}function bt(e,t,n,r,i){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var s=Ee({},e,o,{ui:Ee({},e.ui,o.ui)});n.extendedProps&&(s.extendedProps=Ee({},s.extendedProps,n.extendedProps));for(var a=0,l=r;a<l.length;a++){(0,l[a])(s,n,i)}return!s.hasEnd&&i.opt("forceEventDuration")&&(s.hasEnd=!0),s}function Dt(e,t,n,r,i){var o=i.dateEnv,s=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Ee({},e);return s&&(l.range=fe(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:i.getDefaultEventEnd(t.allDay,l.range.start)}),t.allDay&&(l.range={start:B(l.range.start),end:B(l.range.end)}),l.range.end<l.range.start&&(l.range.end=i.getDefaultEventEnd(t.allDay,l.range.start)),l}function wt(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,o){if(t&&n===t.latestFetchId){var s=Ie(function(e,t,n){var r=n.opt("eventDataTransform"),i=t?t.eventDataTransform:null;return i&&(e=xe(e,i)),r&&(e=xe(e,r)),e}(i,t,o),t.sourceId,o);return r&&(s=Pe(s,r,o)),_e(Tt(e,t.sourceId),s)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Pe(t,n,r));return _e(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"MERGE_EVENTS":return _e(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?Pe(e,r.activeRange,i):e;case"CHANGE_TIMEZONE":return p=e,h=t.oldDateEnv,f=i.dateEnv,g=p.defs,v=we(p.instances,function(e){var t=g[e.defId];return t.allDay||t.recurringDef?e:Ee({},e,{range:{start:f.createMarker(h.toDate(e.range.start,e.forcedStartTzo)),end:f.createMarker(h.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:f.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:f.canComputeOffset?null:e.forcedEndTzo})}),{defs:g,instances:v};case"MUTATE_EVENTS":return o=e,s=t.instanceId,a=t.mutation,l=t.fromApi,c=i,d=ke(o,s),u=l?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:c.eventUiBases,d=St(d,u,a,c),_e(o,d);case"REMOVE_EVENT_INSTANCES":return Ct(e,t.instances);case"REMOVE_EVENT_DEF":return Oe(e,function(e){return e.defId!==t.defId});case"REMOVE_EVENT_SOURCE":return Tt(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Oe(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return He();case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:return e}var o,s,a,l,c,d,u,p,h,f,g,v}function Tt(e,t){return Oe(e,function(e){return e.sourceId!==t})}function Ct(e,t){return{defs:e.defs,instances:De(e.instances,function(e){return!t[e.instanceId]})}}function Rt(e,t){return It({eventDrag:e},t)}function It(e,t){var n=t.view,r=Ee({businessHours:n?n.props.businessHours:He(),dateSelection:"",eventStore:t.state.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginSystem.hooks.isPropsValid||Mt)(r,t)}function Mt(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){var i=e.eventDrag,o=i.mutatedEvents,s=o.defs,a=o.instances,l=vt(s,i.isEvent?e.eventUiBases:{"":t.selectionConfig});r&&(l=we(l,r));var c=Ct(e.eventStore,i.affectedEvents.instances),d=c.defs,u=c.instances,p=vt(d,e.eventUiBases);for(var h in a){var f=a[h],g=f.range,v=l[f.defId],m=s[f.defId];if(!Pt(v.constraints,g,c,e.businessHours,t))return;var y=t.opt("eventOverlap");for(var E in"function"!=typeof y&&(y=null),u){var S=u[E];if(Be(g,S.range)){if(!1===p[S.defId].overlap&&i.isEvent)return;if(!1===v.overlap)return;if(y&&!y(new ut(t,d[S.defId],S),new ut(t,m,f)))return}}for(var b=t.state.eventStore,D=0,w=v.allows;D<w.length;D++){var T=w[D],C=Ee({},n,{range:f.range,allDay:m.allDay}),R=b.defs[m.defId],I=b.instances[h],M=void 0;if(M=R?new ut(t,R,I):new ut(t,m),!T(t.buildDateSpanApi(C),M))return}}return 1}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var i=e.eventStore,o=i.defs,s=i.instances,a=e.dateSelection,l=a.range,c=t.selectionConfig;r&&(c=r(c));if(!Pt(c.constraints,l,i,e.businessHours,t))return;var d=t.opt("selectOverlap");"function"!=typeof d&&(d=null);for(var u in s){var p=s[u];if(Be(l,p.range)){if(!1===c.overlap)return;if(d&&!d(new ut(t,o[p.defId],p)))return}}for(var h=0,f=c.allows;h<f.length;h++){var g=f[h],v=Ee({},n,a);if(!g(t.buildDateSpanApi(v),null))return}return 1}(e,t,n,r))}function Pt(e,t,n,r,i){for(var o=0,s=e;o<s.length;o++){if(!Ht(kt(s[o],t,n,r,i),t))return}return 1}function kt(t,e,n,r,i){return"businessHours"===t?xt(Pe(r,e,i)):"string"==typeof t?xt(Oe(n,function(e){return e.groupId===t})):"object"==typeof t&&t?xt(Pe(t,e,i)):[]}function xt(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Ht(e,t){for(var n=0,r=e;n<r.length;n++){if(Ae(r[n],t))return 1}}function _t(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function Ot(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function Nt(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var zt={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:Nt,classNames:Nt,color:String,backgroundColor:String,borderColor:String,textColor:String};function Lt(e,t,n){var r,i,o=he(e,zt,{},n),s=(r=o.constraint,i=t,Array.isArray(r)?Ie(r,"",i,!0):"object"==typeof r&&r?Ie([r],"",i,!0):null!=r?String(r):null);return{startEditable:null!=o.startEditable?o.startEditable:o.editable,durationEditable:null!=o.durationEditable?o.durationEditable:o.editable,constraints:null!=s?[s]:[],overlap:o.overlap,allows:null!=o.allow?[o.allow]:[],backgroundColor:o.backgroundColor||o.color,borderColor:o.borderColor||o.color,textColor:o.textColor,classNames:o.classNames.concat(o.className)}}function Vt(e,t,n,r){var i={},o={};for(var s in zt){var a=e+ae(s);i[s]=t[a],o[a]=!0}if("event"===e&&(i.editable=t.editable),r)for(var s in t)o[s]||(r[s]=t[s]);return Lt(i,n)}var Bt={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function At(e){return e.reduce(Ut,Bt)}function Ut(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var Ft={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},Gt={start:null,date:null,end:null,allDay:null},jt=0;function Wt(e,t,n,r){var i=function(e,t){var n=null;{var r;e&&(r=t.state.eventSources[e],n=r.allDayDefault)}null==n&&(n=t.opt("allDayDefault"));return n}(t,n),o={},s=function(e,t,n,r,i){for(var o=0;o<r.length;o++){var s={},a=r[o].parse(e,s,n);if(a){var l=s.allDay;return delete s.allDay,null==l&&null==(l=t)&&null==(l=a.allDayGuess)&&(l=!1),Ee(i,s),{allDay:l,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}(e,i,n.dateEnv,n.pluginSystem.hooks.recurringTypes,o);if(s)return(a=Yt(o,t,s.allDay,Boolean(s.duration),n)).recurringDef={typeId:s.typeId,typeData:s.typeData,duration:s.duration},{def:a,instance:null};var a,l={},c=function(e,t,n,r,i){var o,s,a=function(e,t){var n=he(e,Gt,{},t);return n.start=null!==n.start?n.start:n.date,delete n.date,n}(e,r),l=a.allDay,c=null,d=!1,u=null;if(o=n.dateEnv.createMarkerMeta(a.start))c=o.marker;else if(!i)return null;null!=a.end&&(s=n.dateEnv.createMarkerMeta(a.end));null==l&&(l=null!=t?t:(!o||o.isTimeUnspecified)&&(!s||s.isTimeUnspecified));l&&c&&(c=B(c));s&&(u=s.marker,l&&(u=B(u)),c&&u<=c&&(u=null));u?d=!0:i||(d=n.opt("forceEventDuration")||!1,u=n.dateEnv.add(c,l?n.defaultAllDayEventDuration:n.defaultTimedEventDuration));return{allDay:l,hasEnd:d,range:{start:c,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(e,i,n,l,r);return c?{def:a=Yt(l,t,c.allDay,c.hasEnd,n),instance:qt(a.defId,c.range,c.forcedStartTzo,c.forcedEndTzo)}:null}function Yt(e,t,n,r,i){var o,s,a,l,c,d={},u=(o=i,s=d,l=he(e,Ft,{},a={}),c=Lt(a,o,s),l.publicId=l.id,delete l.id,l.ui=c,l);u.defId=String(jt++),u.sourceId=t,u.allDay=n,u.hasEnd=r;for(var p=0,h=i.pluginSystem.hooks.eventDefParsers;p<h.length;p++){var f={};(0,h[p])(u,d,f),d=f}return u.extendedProps=Ee(d,u.extendedProps||{}),Object.freeze(u.ui.classNames),Object.freeze(u.extendedProps),u}function qt(e,t,n,r){return{instanceId:String(jt++),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var Zt={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"};function Xt(e,t){return Ie(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter(function(e){return e.daysOfWeek}):"object"==typeof e&&e?[e]:[];return t=t.map(function(e){return Ee({},Zt,e)})}(e),"",t)}function Kt(e,n,t){void 0===t&&(t=[]);var r,i,o=[];function s(){if(i){for(var e=0,t=o;e<t.length;e++){t[e].unrender()}n&&n.apply(r,i),i=null}}function a(){i&&Fe(i,arguments)||(s(),r=this,i=arguments,e.apply(this,arguments))}a.dependents=o,a.unrender=s;for(var l=0,c=t;l<c.length;l++){c[l].dependents.push(a)}return a}var Jt=He(),Qt=($t.prototype.splitProps=function(e){var n=this,t=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),s=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),c={};for(var d in this.eventUiBuilders=we(t,function(e,t){return n.eventUiBuilders[t]||Ge(en)}),t){var u=t[d],p=s[d]||Jt,h=this.eventUiBuilders[d];c[d]={businessHours:u.businessHours||e.businessHours,dateSelection:i[d]||null,eventStore:p,eventUiBases:h(e.eventUiBases[""],u.ui,o[d]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[d]||null,eventResize:l[d]||null}}return c},$t.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++)t[r[n]]=e;return t},$t.prototype._getKeysForEventDefs=function(e){var t=this;return we(e.defs,function(e){return t.getKeysForEventDef(e)})},$t.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var o in n)for(var s=0,a=t[o];s<a.length;s++)i[c=a[s]]||(i[c]=He()),i[c].defs[o]=n[o];for(var l in r)for(var c,d=r[l],u=0,p=t[d.defId];u<p.length;u++)i[c=p[u]]&&(i[c].instances[l]=d);return i},$t.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,o=t[r];i<o.length;i++){var s=o[i];n[s]||(n[s]={}),n[s][r]=e[r]}return n},$t.prototype._splitInteraction=function(t){var n={};if(t){var r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),e=this._getKeysForEventDefs(t.mutatedEvents),i=this._splitEventStore(t.mutatedEvents,e),o=function(e){n[e]||(n[e]={affectedEvents:r[e]||Jt,mutatedEvents:i[e]||Jt,isEvent:t.isEvent,origSeg:t.origSeg})};for(var s in r)o(s);for(var s in i)o(s)}return n},$t);function $t(){this.getKeysForEventDefs=Ge(this._getKeysForEventDefs),this.splitDateSelection=Ge(this._splitDateSpan),this.splitEventStore=Ge(this._splitEventStore),this.splitIndividualUi=Ge(this._splitIndividualUi),this.splitEventDrag=Ge(this._splitInteraction),this.splitEventResize=Ge(this._splitInteraction),this.eventUiBuilders={}}function en(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":At(r)};return n&&Ee(i,n),i}function tn(e,t,n,r,i){var o,s,a,l;return n instanceof Date?o=n:(o=n.date,s=n.type,a=n.forceOff),l={date:t.formatIso(o,{omitTime:!0}),type:s||"day"},"string"==typeof r&&(i=r,r=null),r=r?" "+function(e){var t=[];for(var n in e){var r=e[n];null!=r&&t.push(n+'="'+_t(r)+'"')}return t.join(" ")}(r):"",i=i||"",!a&&e.navLinks?"<a"+r+' data-goto="'+_t(JSON.stringify(l))+'">'+i+"</a>":"<span"+r+">"+i+"</span>"}function nn(e,t,n,r){var i,o,s=n.calendar,a=n.options,l=n.theme,c=n.dateEnv,d=[];return Ue(t.activeRange,e)?(d.push("fc-"+H[e.getUTCDay()]),a.monthMode&&c.getMonth(e)!==c.getMonth(t.currentRange.start)&&d.push("fc-other-month"),o=_(i=B(s.getNow()),1),e<i?d.push("fc-past"):o<=e?d.push("fc-future"):(d.push("fc-today"),!0!==r&&d.push(l.getClass("today")))):d.push("fc-disabled-day"),d}function rn(e,t,n){function r(){o||(o=!0,t.apply(this,arguments))}function i(){o||(o=!0,n&&n.apply(this,arguments))}var o=!1,s=e(r,i);s&&"function"==typeof s.then&&s.then(r,i)}var on=(sn.mixInto=function(e){this.mixIntoObj(e.prototype)},sn.mixIntoObj=function(t){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(e){t[e]||(t[e]=n.prototype[e])})},sn.mixOver=function(t){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(e){t.prototype[e]=n.prototype[e]})},sn);function sn(){}var an,ln=(ye(cn,an=on),cn.prototype.on=function(e,t){return dn(this._handlers||(this._handlers={}),e,t),this},cn.prototype.one=function(e,t){return dn(this._oneHandlers||(this._oneHandlers={}),e,t),this},cn.prototype.off=function(e,t){return this._handlers&&un(this._handlers,e,t),this._oneHandlers&&un(this._oneHandlers,e,t),this},cn.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.triggerWith(e,this,t),this},cn.prototype.triggerWith=function(e,t,n){return this._handlers&&de(this._handlers[e],t,n),this._oneHandlers&&(de(this._oneHandlers[e],t,n),delete this._oneHandlers[e]),this},cn.prototype.hasHandlers=function(e){return this._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},cn);function cn(){return null!==an&&an.apply(this,arguments)||this}function dn(e,t,n){(e[t]||(e[t]=[])).push(n)}function un(e,t,n){n?e[t]&&(e[t]=e[t].filter(function(e){return e!==n})):delete e[t]}var pn=(hn.prototype.build=function(){var e=this.originEl,t=this.originClientRect=e.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(t.left),this.isVertical&&this.buildElVerticals(t.top)},hn.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},hn.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r].getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},hn.prototype.leftToIndex=function(e){for(var t=this.lefts,n=this.rights,r=t.length,i=0;i<r;i++)if(e>=t[i]&&e<n[i])return i},hn.prototype.topToIndex=function(e){for(var t=this.tops,n=this.bottoms,r=t.length,i=0;i<r;i++)if(e>=t[i]&&e<n[i])return i},hn.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},hn.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},hn);function hn(e,t,n,r){this.originEl=e,this.els=t,this.isHorizontal=n,this.isVertical=r}var fn=(gn.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},gn.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},gn.prototype.canScrollVertically=function(){return 0<this.getMaxScrollTop()},gn.prototype.canScrollHorizontally=function(){return 0<this.getMaxScrollLeft()},gn.prototype.canScrollUp=function(){return 0<this.getScrollTop()},gn.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},gn.prototype.canScrollLeft=function(){return 0<this.getScrollLeft()},gn.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},gn);function gn(){}var vn,mn=(ye(yn,vn=fn),yn.prototype.getScrollTop=function(){return this.el.scrollTop},yn.prototype.getScrollLeft=function(){return this.el.scrollLeft},yn.prototype.setScrollTop=function(e){this.el.scrollTop=e},yn.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},yn.prototype.getScrollWidth=function(){return this.el.scrollWidth},yn.prototype.getScrollHeight=function(){return this.el.scrollHeight},yn.prototype.getClientHeight=function(){return this.el.clientHeight},yn.prototype.getClientWidth=function(){return this.el.clientWidth},yn);function yn(e){var t=vn.call(this)||this;return t.el=e,t}var En,Sn=(ye(bn,En=fn),bn.prototype.getScrollTop=function(){return window.pageYOffset},bn.prototype.getScrollLeft=function(){return window.pageXOffset},bn.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},bn.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},bn.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},bn.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},bn.prototype.getClientHeight=function(){return document.documentElement.clientHeight},bn.prototype.getClientWidth=function(){return document.documentElement.clientWidth},bn);function bn(){return null!==En&&En.apply(this,arguments)||this}var Dn,wn=(ye(Tn,Dn=mn),Tn.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},Tn.prototype.destroy=function(){r(this.el)},Tn.prototype.applyOverflow=function(){f(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},Tn.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),f(this.el,{overflowX:t,overflowY:n})},Tn.prototype.setHeight=function(e){g(this.el,"height",e)},Tn.prototype.getScrollbarWidths=function(){var e=w(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},Tn);function Tn(e,t){var n=Dn.call(this,s("div",{className:"fc-scroller"}))||this;return n.overflowX=e,n.overflowY=t,n.applyOverflow(),n}var Cn=(Rn.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},Rn.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=Ee({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},Rn.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},Rn.prototype.getClass=function(e){return this.classes[e]||""},Rn.prototype.getIconClass=function(e){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},Rn.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},Rn);function Rn(e){this.calendarOptions=e,this.processIconOverride()}Cn.prototype.classes={},Cn.prototype.iconClasses={},Cn.prototype.baseIconClass="",Cn.prototype.iconOverridePrefix="";var In=0,Mn=(Pn.prototype.extend=function(e,t){return new Pn(this.calendar,this.theme,this.dateEnv,e||this.options,t||this.view)},Pn);function Pn(e,t,n,r,i){this.calendar=e,this.theme=t,this.dateEnv=n,this.options=r,this.view=i,this.isRtl="rtl"===r.dir,this.eventOrderSpecs=re(r.eventOrder),this.nextDayThreshold=X(r.nextDayThreshold)}var kn=(xn.addEqualityFuncs=function(e){this.prototype.equalityFuncs=Ee({},this.prototype.equalityFuncs,e)},xn.prototype.receiveProps=function(e,t){var n=this.context;this.context=t,n||this.firstContext(t);var r=function(e,t,n){var r={},i=!1;for(var o in t)o in e&&(e[o]===t[o]||n[o]&&n[o](e[o],t[o]))?r[o]=e[o]:(r[o]=t[o],i=!0);for(var o in e)if(!(o in t)){i=!0;break}return{anyChanges:i,comboProps:r}}(this.props||{},e,this.equalityFuncs),i=r.anyChanges,o=r.comboProps;this.props=o,i&&(n&&this.beforeUpdate(),this.render(o,t),n&&this.afterUpdate())},xn.prototype.render=function(e,t){},xn.prototype.firstContext=function(e){},xn.prototype.beforeUpdate=function(){},xn.prototype.afterUpdate=function(){},xn.prototype.destroy=function(){},xn);function xn(){this.uid=String(In++)}kn.prototype.equalityFuncs={};var Hn,_n=(ye(On,Hn=kn),On.prototype.destroy=function(){Hn.prototype.destroy.call(this),r(this.el)},On.prototype.buildPositionCaches=function(){},On.prototype.queryHit=function(e,t,n,r){return null},On.prototype.isInteractionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile,r=e.mutatedEvents.instances;if(n)for(var i in r)if(!Ae(n.validRange,r[i].range))return!1;return Rt(e,t)},On.prototype.isDateSelectionValid=function(e){var t=this.context.calendar,n=this.props.dateProfile;return!(n&&!Ae(n.validRange,e.range))&&It({dateSelection:e},t)},On.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!d(e,".fc-mirror")&&(this.isPopover()||!this.isInPopover(e))},On.prototype.isValidDateDownEl=function(e){var t=d(e,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!d(e,".fc-more")&&!d(e,"a[data-goto]")&&!this.isInPopover(e)},On.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},On.prototype.isInPopover=function(e){return Boolean(d(e,".fc-popover"))},On);function On(e){var t=Hn.call(this)||this;return t.el=e,t}_n.prototype.fgSegSelector=".fc-event-container > *",_n.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var Nn=0;function zn(e){return{id:String(Nn++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}var Ln=(Vn.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,n=e.deps;t<n.length;t++){var r=n[t];this.add(r)}this.hooks=(i=this.hooks,o=e,{reducers:i.reducers.concat(o.reducers),eventDefParsers:i.eventDefParsers.concat(o.eventDefParsers),isDraggableTransformers:i.isDraggableTransformers.concat(o.isDraggableTransformers),eventDragMutationMassagers:i.eventDragMutationMassagers.concat(o.eventDragMutationMassagers),eventDefMutationAppliers:i.eventDefMutationAppliers.concat(o.eventDefMutationAppliers),dateSelectionTransformers:i.dateSelectionTransformers.concat(o.dateSelectionTransformers),datePointTransforms:i.datePointTransforms.concat(o.datePointTransforms),dateSpanTransforms:i.dateSpanTransforms.concat(o.dateSpanTransforms),views:Ee({},i.views,o.views),viewPropsTransformers:i.viewPropsTransformers.concat(o.viewPropsTransformers),isPropsValid:o.isPropsValid||i.isPropsValid,externalDefTransforms:i.externalDefTransforms.concat(o.externalDefTransforms),eventResizeJoinTransforms:i.eventResizeJoinTransforms.concat(o.eventResizeJoinTransforms),viewContainerModifiers:i.viewContainerModifiers.concat(o.viewContainerModifiers),eventDropTransformers:i.eventDropTransformers.concat(o.eventDropTransformers),calendarInteractions:i.calendarInteractions.concat(o.calendarInteractions),componentInteractions:i.componentInteractions.concat(o.componentInteractions),themeClasses:Ee({},i.themeClasses,o.themeClasses),eventSourceDefs:i.eventSourceDefs.concat(o.eventSourceDefs),cmdFormatter:o.cmdFormatter||i.cmdFormatter,recurringTypes:i.recurringTypes.concat(o.recurringTypes),namedTimeZonedImpl:o.namedTimeZonedImpl||i.namedTimeZonedImpl,defaultView:i.defaultView||o.defaultView,elementDraggingImpl:i.elementDraggingImpl||o.elementDraggingImpl,optionChangeHandlers:Ee({},i.optionChangeHandlers,o.optionChangeHandlers)})}var i,o},Vn);function Vn(){this.hooks={reducers:[],eventDefParsers:[],isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}var Bn=zn({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),An=zn({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e?e:"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.calendar.dateEnv;rn(e.eventSource.meta.bind(null,{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}),function(e){t({rawEvents:e})},n)}}]});function Un(e,t,n,r,i){var o,s,a=null;"GET"===(e=e.toUpperCase())?(s=n,t=(o=t)+(-1===o.indexOf("?")?"?":"&")+Fn(s)):a=Fn(n);var l=new XMLHttpRequest;l.open(e,t,!0),"GET"!==e&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.onload=function(){if(200<=l.status&&l.status<400)try{var e=JSON.parse(l.responseText);r(e,l)}catch(e){i("Failure parsing JSON",l)}else i("Request failed",l)},l.onerror=function(){i("Request failed",l)},l.send(a)}function Fn(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var Gn=zn({eventSourceDefs:[{parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,n,r){var t=e.eventSource.meta,i=function(e,t,n){var r,i,o,s,a=n.dateEnv,l={};null==(r=e.startParam)&&(r=n.opt("startParam"));null==(i=e.endParam)&&(i=n.opt("endParam"));null==(o=e.timeZoneParam)&&(o=n.opt("timeZoneParam"));s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Ee(l,s),l[r]=a.formatIso(t.start),l[i]=a.formatIso(t.end),"local"!==a.timeZone&&(l[o]=a.timeZone);return l}(t,e.range,e.calendar);Un(t.method,t.url,i,function(e,t){n({rawEvents:e,xhr:t})},function(e,t){r({message:e,xhr:t})})}}]});var jn=zn({recurringTypes:[{parse:function(e,t,n){var r,i,o=n.createMarker.bind(n),s=he(e,{daysOfWeek:null,startTime:X,endTime:X,startRecur:o,endRecur:o},{},t),a=!1;for(var l in s)if(null!=s[l]){a=!0;break}if(a){var c=null;return"duration"in t&&(c=X(t.duration),delete t.duration),!c&&s.startTime&&s.endTime&&(r=s.endTime,i=s.startTime,c={years:r.years-i.years,months:r.months-i.months,days:r.days-i.days,milliseconds:r.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!s.startTime&&!s.endTime),duration:c,typeData:s}}return null},expand:function(e,t,n){var r=Le(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var i=e?Te(e):null,o=B(n.start),s=n.end,a=[];for(;o<s;){var l=void 0;i&&!i[o.getUTCDay()]||(l=t?r.add(o,t):o,a.push(l)),o=_(o,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}]});var Wn=zn({optionChangeHandlers:{events:function(e,t,n){Yn([e],t,n)},eventSources:Yn,plugins:function(e,t){t.addPluginInputs(e)}}});function Yn(e,t,n){for(var r=Ce(t.state.eventSources),i=[],o=0,s=e;o<s.length;o++){for(var a=s[o],l=!1,c=0;c<r.length;c++)if(n(r[c]._raw,a)){r.splice(c,1),l=!0;break}l||i.push(a)}for(var d=0,u=r;d<u.length;d++){var p=u[d];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:p.sourceId})}for(var h=0,f=i;h<f.length;h++){var g=f[h];t.addEventSource(g)}}var qn={defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},Zn={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},Xn=["header","footer","buttonText","buttonIcons"];var Kn=[Bn,An,Gn,jn,Wn];var Jn={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"};function Qn(e){for(var t=0<e.length?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},i=n.concat(Ce(r),e),o={en:Jn},s=0,a=i;s<a.length;s++){var l=a[s];o[l.code]=l}return{map:o,defaultCode:t}}function $n(e,t){return"object"!=typeof e||Array.isArray(e)?(r=t,i=[].concat((n=e)||[]),o=function(e,t){for(var n=0;n<e.length;n++)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;0<i;i--){var o=r.slice(0,i).join("-");if(t[o])return t[o]}return null}(i,r)||Jn,er(n,i,o)):er(e.code,[e.code],e);var n,r,i,o}function er(e,t,n){var r=be([Jn,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var tr=(nr.prototype.mutate=function(e,t,n){if(Object.keys(e).length||t.length){var r=n?this.dynamicOverrides:this.overrides;Ee(r,e);for(var i=0,o=t;i<o.length;i++)delete r[o[i]];this.compute()}},nr.prototype.compute=function(){var e=ue(this.dynamicOverrides.locales,this.overrides.locales,qn.locales),t=ue(this.dynamicOverrides.locale,this.overrides.locale,qn.locale),n=Qn(e),r=$n(t||n.defaultCode,n.map).options,i="rtl"===ue(this.dynamicOverrides.dir,this.overrides.dir,r.dir)?Zn:{};this.dirDefaults=i,this.localeDefaults=r,this.computed=be([qn,i,r,this.overrides,this.dynamicOverrides],Xn)},nr);function nr(e){this.overrides=Ee({},e),this.dynamicOverrides={},this.compute()}var rr={};var ir,or=(sr.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},sr.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},sr.prototype.getMarkerDay=function(e){return e.getUTCDate()},sr.prototype.arrayToMarker=j,sr.prototype.markerToArray=G,sr);function sr(){}ir=or,rr["gregory"]=ir;var ar=/^\s*(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function lr(e){var t=ar.exec(e);if(t){var n=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]?1e3*Number("0."+t[12]):0));if(W(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var cr=(dr.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},dr.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):j(U(new Date))},dr.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=j(e)),null!==t&&W(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},dr.prototype.parse=function(e){var t=lr(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},dr.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},dr.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},dr.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},dr.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},dr.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},dr.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},dr.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return Y(e)===Y(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},dr.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return Y(e)===Y(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},dr.prototype.greatestWholeUnit=function(e,t){var n,r,i,o=this.diffWholeYears(e,t);return null!==o?{unit:"year",value:o}:null!==(o=this.diffWholeMonths(e,t))?{unit:"month",value:o}:null!==(o=L(e,t))?{unit:"week",value:o}:null!==(o=V(e,t))?{unit:"day",value:o}:(n=e,ce(o=(t.valueOf()-n.valueOf())/36e5)?{unit:"hour",value:o}:(r=e,ce(o=(t.valueOf()-r.valueOf())/6e4)?{unit:"minute",value:o}:(i=e,ce(o=(t.valueOf()-i.valueOf())/1e3)?{unit:"second",value:o}:{unit:"millisecond",value:t.valueOf()-e.valueOf()})))},dr.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/($(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/($(n)/30):n.days&&null!==(r=V(e,t))?r/$(n):(t.valueOf()-e.valueOf())/ee(n)},dr.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?B(e):"hour"===t?j([(i=e).getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),i.getUTCHours()]):"minute"===t?j([(r=e).getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes()]):"second"===t?j([(n=e).getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()]):void 0;var n,r,i},dr.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},dr.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},dr.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},dr.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),i=A(e,r,t,n);if(i<1)return A(e,r-1,t,n);var o=A(e,r+1,t,n);return 1<=o?Math.min(i,o):i}(e,this.weekDow,this.weekDoy)},dr.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},dr.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=O(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},dr.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,n){void 0===n&&(n=!1);var r=(r=e.toISOString()).replace(".000","");return n&&(r=r.replace("T00:00:00Z","")),10<r.length&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",st(t,!0)))),r}(e,n,t.omitTime)},dr.prototype.timestampToMarker=function(e){return"local"===this.timeZone?j(U(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?j(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},dr.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-F(G(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(G(e)):null},dr.prototype.toDate=function(e,t){return"local"===this.timeZone?F(G(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(G(e))*60):new Date(e.valueOf()-(t||0))},dr);function dr(e){var t,n=this.timeZone=e.timeZone,r="local"!==n&&"UTC"!==n;e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=(t=e.calendarSystem,new rr[t]),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}var ur={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},pr=0;function hr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function fr(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;0<=r;r--){var i=n[r].parseMeta(e);if(i){var o=gr("object"==typeof e?e:{},i,r,t);return o._raw=e,o}}return null}function gr(e,t,n,r){var i={},o=he(e,ur,{},i),s={},a=Lt(i,r,s);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(pr++),o.sourceDefId=n,o.meta=t,o.ui=a,o.extendedProps=s,o}function vr(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,n,r){for(var i={},o=0,s=t;o<s.length;o++){var a=s[o];i[a.sourceId]=a}n&&(i=yr(i,n,r));return Ee({},e,i)}(e,t.sources,n?n.activeRange:null,r);case"REMOVE_EVENT_SOURCE":return o=e,s=t.sourceId,De(o,function(e){return e.sourceId!==s});case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return n?yr(e,n.activeRange,r):e;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return Er(e,t.sourceIds?Te(t.sourceIds):(i=r,De(e,function(e){return hr(e,i)})),n?n.activeRange:null,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var i,o=e[t];if(o&&n===o.latestFetchId)return Ee({},e,((i={})[t]=Ee({},o,{isFetching:!1,fetchRange:r}),i));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var i,o,s}var mr=0;function yr(e,i,o){return Er(e,De(e,function(e){return n=i,hr(t=e,r=o)?!r.opt("lazyFetching")||!t.fetchRange||t.isFetching||n.start<t.fetchRange.start||n.end>t.fetchRange.end:!t.latestFetchId;var t,n,r}),i,o)}function Er(e,t,n,r){var i={};for(var o in e){var s=e[o];t[o]?i[o]=Sr(s,n,r):i[o]=s}return i}function Sr(o,s,a){var e=a.pluginSystem.hooks.eventSourceDefs[o.sourceDefId],l=String(mr++);return e.fetch({eventSource:o,calendar:a,range:s},function(e){var t,n,r=e.rawEvents,i=a.opt("eventSourceSuccess");o.success&&(n=o.success(r,e.xhr)),i&&(t=i(r,e.xhr)),r=n||t||r,a.dispatch({type:"RECEIVE_EVENTS",sourceId:o.sourceId,fetchId:l,fetchRange:s,rawEvents:r})},function(e){var t=a.opt("eventSourceFailure");console.warn(e.message,e),o.failure&&o.failure(e),t&&t(e),a.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:o.sourceId,fetchId:l,fetchRange:s,error:e})}),Ee({},o,{isFetching:!0,latestFetchId:l})}var br=(Dr.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},Dr.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},Dr.prototype.build=function(e,t,n){void 0===n&&(n=!1);var r,i,o,s,a,l,c,d,u,p=this.buildValidRange();return p=this.trimHiddenDays(p),n&&(d=e,e=null!=(u=p).start&&d<u.start?u.start:null!=u.end&&d>=u.end?new Date(u.end.valueOf()-1):d),o=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(o.unit),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,s),l=a=this.trimHiddenDays(a),this.options.showNonCurrentDates||(l=Le(l,o.range)),r=X(this.options.minTime),i=X(this.options.maxTime),l=Le(l=this.adjustActiveRange(l,r,i),p),c=Be(o.range,p),{validRange:p,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:s,activeRange:l,renderRange:a,minTime:r,maxTime:i,isValid:c,dateIncrement:this.buildDateIncrement(o.duration)}},Dr.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},Dr.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.viewSpec,i=this.dateEnv,o=null,s=null,a=null;return r.duration?(o=r.duration,s=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,s)):(n=this.options.dayCount)?(s="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?s=i.greatestWholeUnit(a.start,a.end).unit:(s=te(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,s)),{duration:o,unit:s,range:a}},Dr.prototype.getFallbackDuration=function(){return X({day:1})},Dr.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&($(t)<0&&(i=B(i),i=r.add(i,t)),1<$(n)&&(o=_(o=B(o),-1),o=r.add(o,n))),{start:i,end:o}},Dr.prototype.buildRangeFromDuration=function(e,t,n,r){var i,o,s,a,l,c=this.dateEnv,d=this.options.dateAlignment;function u(){s=c.startOf(e,d),a=c.add(s,n),l={start:s,end:a}}return d||(i=this.options.dateIncrement,d=i&&ee(o=X(i))<ee(n)?te(o,!J(i)).unit:r),$(n)<=1&&this.isHiddenDay(s)&&(s=B(s=this.skipHiddenDays(s,t))),u(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,t),u()),l},Dr.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.dateEnv,o=this.options.dateAlignment,s=0,a=e;for(o&&(a=i.startOf(a,o)),a=B(a),r=a=this.skipHiddenDays(a,t);r=_(r,1),this.isHiddenDay(r)||s++,s<n;);return{start:a,end:r}},Dr.prototype.buildCustomVisibleRange=function(e){var t=this.dateEnv,n=this.getRangeOption("visibleRange",t.toDate(e));return!n||null!=n.start&&null!=n.end?n:null},Dr.prototype.buildRenderRange=function(e,t,n){return e},Dr.prototype.buildDateIncrement=function(e){var t,n=this.options.dateIncrement;return n?X(n):(t=this.options.dateAlignment)?X(1,t):e||X({days:1})},Dr.prototype.getRangeOption=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i,o,s,a=this.options[e];return"function"==typeof a&&(a=a.apply(null,t)),a&&(r=a,i=this.dateEnv,s=o=null,r.start&&(o=i.createMarker(r.start)),r.end&&(s=i.createMarker(r.end)),a=!o&&!s||o&&s&&s<o?null:{start:o,end:s}),a=a&&ge(a)},Dr.prototype.initHiddenDays=function(){var e,t=this.options.hiddenDays||[],n=[],r=0;for(!1===this.options.weekends&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==t.indexOf(e))||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},Dr.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end,t=t&&this.skipHiddenDays(t),n=n&&this.skipHiddenDays(n,-1,!0);return null==t||null==n||t<n?{start:t,end:n}:null},Dr.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},Dr.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=_(e,t);return e},Dr);function Dr(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}function wr(e,t,n){for(var r=function(e,t){switch(t.type){case"SET_VIEW_TYPE":return t.viewType;default:return e}}(e.viewType,t),i=function(e,t,n,r,i){var o;switch(t.type){case"PREV":o=i.dateProfileGenerators[r].buildPrev(e,n);break;case"NEXT":o=i.dateProfileGenerators[r].buildNext(e,n);break;case"SET_DATE":e.activeRange&&Ue(e.currentRange,t.dateMarker)||(o=i.dateProfileGenerators[r].build(t.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":var s=i.dateProfileGenerators[r];if(!s)throw new Error(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=s.build(t.dateMarker||n,void 0,!0)}return!o||!o.isValid||e&&function(e,t){return Ve(e.validRange,t.validRange)&&Ve(e.activeRange,t.activeRange)&&Ve(e.renderRange,t.renderRange)&&Q(e.minTime,t.minTime)&&Q(e.maxTime,t.maxTime)}(e,o)?e:o}(e.dateProfile,t,e.currentDate,r,n),o=vr(e.eventSources,t,i,n),s=Ee({},e,{viewType:r,dateProfile:i,currentDate:function(e,t,n){switch(t.type){case"PREV":case"NEXT":return Ue(n.currentRange,e)?e:n.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var r=t.dateMarker||e;return n.activeRange&&!Ue(n.activeRange,r)?n.currentRange.start:r;default:return e}}(e.currentDate,t,i),eventSources:o,eventStore:wt(e.eventStore,t,o,i,n),dateSelection:function(e,t){switch(t.type){case"SELECT_DATES":return t.selection;case"UNSELECT_DATES":return null;default:return e}}(e.dateSelection,t),eventSelection:function(e,t){switch(t.type){case"SELECT_EVENT":return t.eventInstanceId;case"UNSELECT_EVENT":return"";default:return e}}(e.eventSelection,t),eventDrag:function(e,t){switch(t.type){case"SET_EVENT_DRAG":var n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent,origSeg:n.origSeg};case"UNSET_EVENT_DRAG":return null;default:return e}}(e.eventDrag,t),eventResize:function(e,t){switch(t.type){case"SET_EVENT_RESIZE":var n=t.state;return{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent,origSeg:n.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return e}}(e.eventResize,t),eventSourceLoadingLevel:Tr(o),loadingLevel:Tr(o)}),a=0,l=n.pluginSystem.hooks.reducers;a<l.length;a++)s=(0,l[a])(s,t,n);return s}function Tr(e){var t=0;for(var n in e)e[n].isFetching&&t++;return t}var Cr={start:null,end:null,allDay:Boolean};function Rr(e,t,n){var r=function(e,t){var n={},r=he(e,Cr,{},n),i=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,s=r.allDay;null==s&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified));return n.range={start:i?i.marker:null,end:o?o.marker:null},n.allDay=s,n}(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function Ir(e,t,n,r){if(t[e])return t[e];var i=function(e,t,n,r){function i(e){return o&&null!==o[e]?o[e]:s&&null!==s[e]?s[e]:null}var o=n[e],s=r[e],a=i("class"),l=i("superType");!l&&a&&(l=Mr(a,r)||Mr(a,n));var c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=Ir(l,t,n,r)}!a&&c&&(a=c.class);return a?{type:e,class:a,defaults:Ee({},c?c.defaults:{},o?o.options:{}),overrides:Ee({},c?c.overrides:{},s?s.options:{})}:null}(e,t,n,r);return i&&(t[e]=i),i}function Mr(e,t){var n=Object.getPrototypeOf(e.prototype);for(var r in t){var i=t[r];if(i.class&&i.class.prototype===n)return r}return""}function Pr(e){return we(e,xr)}var kr={type:String,class:null};function xr(e){"function"==typeof e&&(e={class:e});var t={},n=he(e,kr,{},t);return{superType:n.type,class:n.class,options:t}}function Hr(e,t){var n=Pr(e),r=Pr(t.overrides.views);return we(function(e,t){var n,r={};for(n in e)Ir(n,r,e,t);for(n in t)Ir(n,r,e,t);return r}(n,r),function(e){return function(r,e,t){var n=r.overrides.duration||r.defaults.duration||t.dynamicOverrides.duration||t.overrides.duration,i=null,o="",s="",a={};{var l;n&&(i=X(n))&&(l=te(i,!J(n)),o=l.unit,1===l.value&&(a=e[s=o]?e[o].options:{}))}function c(e){var t=e.buttonText||{},n=r.defaults.buttonTextKey;return null!=n&&null!=t[n]?t[n]:null!=t[r.type]?t[r.type]:null!=t[s]?t[s]:void 0}return{type:r.type,class:r.class,duration:i,durationUnit:o,singleUnit:s,options:Ee({},qn,r.defaults,t.dirDefaults,t.localeDefaults,t.overrides,a,r.overrides,t.dynamicOverrides),buttonTextOverride:c(t.dynamicOverrides)||c(t.overrides)||r.overrides.buttonText,buttonTextDefault:c(t.localeDefaults)||c(t.dirDefaults)||r.defaults.buttonText||c(qn)||r.type}}(e,r,t)})}var _r,Or=(ye(Nr,_r=kn),Nr.prototype.destroy=function(){_r.prototype.destroy.call(this),this._renderLayout.unrender(),r(this.el)},Nr.prototype.render=function(e){this._renderLayout(e.layout),this._updateTitle(e.title),this._updateActiveButton(e.activeButton),this._updateToday(e.isTodayEnabled),this._updatePrev(e.isPrevEnabled),this._updateNext(e.isNextEnabled)},Nr.prototype.renderLayout=function(e){var t=this.el;this.viewsWithButtons=[],b(t,this.renderSection("left",e.left)),b(t,this.renderSection("center",e.center)),b(t,this.renderSection("right",e.right))},Nr.prototype.unrenderLayout=function(){this.el.innerHTML=""},Nr.prototype.renderSection=function(e,t){var h=this,n=this.context,f=n.theme,g=n.calendar,r=g.optionsManager,v=g.viewSpecs,i=s("div",{className:"fc-"+e}),m=r.computed.customButtons||{},y=r.overrides.buttonText||{},E=r.computed.buttonText||{};return t&&t.split(" ").forEach(function(e,t){var n,r,u=[],p=!0;e.split(",").forEach(function(e,t){var n,r,i,o,s,a,l,c,d;"title"===e?(u.push(S("<h2>&nbsp;</h2>")),p=!1):((n=m[e])?(i=function(e){n.click&&n.click.call(c,e)},(o=f.getCustomButtonIconClass(n))||(o=f.getIconClass(e))||(s=n.text)):(r=v[e])?(h.viewsWithButtons.push(e),i=function(){g.changeView(e)},(s=r.buttonTextOverride)||(o=f.getIconClass(e))||(s=r.buttonTextDefault)):g[e]&&(i=function(){g[e]()},(s=y[e])||(o=f.getIconClass(e))||(s=E[e])),i&&(l=["fc-"+e+"-button",f.getClass("button")],s?(a=_t(s),d=""):o&&(a="<span class='"+o+"'></span>",d=' aria-label="'+e+'"'),(c=S('<button type="button" class="'+l.join(" ")+'"'+d+">"+a+"</button>")).addEventListener("click",i),u.push(c)))}),1<u.length?(n=document.createElement("div"),r=f.getClass("buttonGroup"),p&&r&&n.classList.add(r),b(n,u),i.appendChild(n)):b(i,u)}),i},Nr.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},Nr.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},Nr.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},Nr.prototype.updateTitle=function(t){p(this.el,"h2").forEach(function(e){e.innerText=t})},Nr.prototype.updateActiveButton=function(t){var n=this.context.theme.getClass("buttonActive");p(this.el,"button").forEach(function(e){t&&e.classList.contains("fc-"+t+"-button")?e.classList.add(n):e.classList.remove(n)})},Nr.prototype.toggleButtonEnabled=function(e,t){p(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t})},Nr);function Nr(e){var t=_r.call(this)||this;return t._renderLayout=Kt(t.renderLayout,t.unrenderLayout),t._updateTitle=Kt(t.updateTitle,null,[t._renderLayout]),t._updateActiveButton=Kt(t.updateActiveButton,null,[t._renderLayout]),t._updateToday=Kt(t.updateToday,null,[t._renderLayout]),t._updatePrev=Kt(t.updatePrev,null,[t._renderLayout]),t._updateNext=Kt(t.updateNext,null,[t._renderLayout]),t.el=s("div",{className:"fc-toolbar "+e}),t}var zr,Lr=(ye(Vr,zr=kn),Vr.prototype.render=function(e,t){this.freezeHeight();var n=this.computeTitle(e.dateProfile,e.viewSpec.options);this.renderSkeleton(t),this.renderToolbars(e.viewSpec,e.dateProfile,e.currentDate,n),this.renderView(e,n),this.updateSize(),this.thawHeight()},Vr.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.renderSkeleton.unrender(),zr.prototype.destroy.call(this)},Vr.prototype._renderSkeleton=function(e){this.updateElClassNames(e),m(this.el,this.contentEl=s("div",{className:"fc-view-container"}));for(var t=e.calendar,n=0,r=t.pluginSystem.hooks.viewContainerModifiers;n<r.length;n++)(0,r[n])(this.contentEl,t)},Vr.prototype._unrenderSkeleton=function(){this.view&&(this.savedScroll=this.view.queryScroll(),this.view.destroy(),this.view=null),r(this.contentEl),this.removeElClassNames()},Vr.prototype.removeElClassNames=function(){for(var e=this.el.classList,t=0,n=this.elClassNames;t<n.length;t++){var r=n[t];e.remove(r)}this.elClassNames=[]},Vr.prototype.updateElClassNames=function(e){this.removeElClassNames();var t=e.theme,n=e.options;this.elClassNames=["fc","fc-"+n.dir,t.getClass("widget")];for(var r=this.el.classList,i=0,o=this.elClassNames;i<o.length;i++){var s=o[i];r.add(s)}},Vr.prototype._renderToolbars=function(e,t,n,r){var i=this.context,o=this.header,s=this.footer,a=i.options,l=i.calendar,c=a.header,d=a.footer,u=this.props.dateProfileGenerator,p=l.getNow(),h=u.build(p),f=u.buildPrev(t,n),g=u.buildNext(t,n),v={title:r,activeButton:e.type,isTodayEnabled:h.isValid&&!Ue(t.currentRange,p),isPrevEnabled:f.isValid,isNextEnabled:g.isValid};c?(o||(o=this.header=new Or("fc-header-toolbar"),m(this.el,o.el)),o.receiveProps(Ee({layout:c},v),i)):o&&(o.destroy(),o=this.header=null),d?(s||(s=this.footer=new Or("fc-footer-toolbar"),b(this.el,s.el)),s.receiveProps(Ee({layout:d},v),i)):s&&(s.destroy(),s=this.footer=null)},Vr.prototype._unrenderToolbars=function(){this.header&&(this.header.destroy(),this.header=null),this.footer&&(this.footer.destroy(),this.footer=null)},Vr.prototype.renderView=function(e,t){var n=this.view,r=this.context,i=r.calendar,o=r.options,s=e.viewSpec,a=e.dateProfileGenerator;n&&n.viewSpec===s||(n&&n.destroy(),n=this.view=new s.class(s,this.contentEl),this.savedScroll&&(n.addScroll(this.savedScroll,!0),this.savedScroll=null)),n.title=t;for(var l={dateProfileGenerator:a,dateProfile:e.dateProfile,businessHours:this.parseBusinessHours(s.options.businessHours),eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize},c=0,d=this.buildViewPropTransformers(i.pluginSystem.hooks.viewPropsTransformers);c<d.length;c++){var u=d[c];Ee(l,u.transform(l,s,e,o))}n.receiveProps(l,this.buildComponentContext(this.context,s,n))},Vr.prototype.updateSize=function(e){void 0===e&&(e=!1);var t=this.view;t&&(!e&&null!=this.isHeightAuto||this.computeHeightVars(),t.updateSize(e,this.viewHeight,this.isHeightAuto),t.updateNowIndicator(),t.popScroll(e))},Vr.prototype.computeHeightVars=function(){var e,t=this.context.calendar,n=t.opt("height"),r=t.opt("contentHeight");this.isHeightAuto="auto"===n||"auto"===r,"number"==typeof r?this.viewHeight=r:"function"==typeof r?this.viewHeight=r():"number"==typeof n?this.viewHeight=n-this.queryToolbarsHeight():"function"==typeof n?this.viewHeight=n()-this.queryToolbarsHeight():"parent"===n?(e=this.el.parentNode,this.viewHeight=e.getBoundingClientRect().height-this.queryToolbarsHeight()):this.viewHeight=Math.round(this.contentEl.getBoundingClientRect().width/Math.max(t.opt("aspectRatio"),.5))},Vr.prototype.queryToolbarsHeight=function(){var e=0;return this.header&&(e+=R(this.header.el)),this.footer&&(e+=R(this.footer.el)),e},Vr.prototype.freezeHeight=function(){f(this.el,{height:this.el.getBoundingClientRect().height,overflow:"hidden"})},Vr.prototype.thawHeight=function(){f(this.el,{height:"",overflow:""})},Vr);function Vr(e){var t=zr.call(this)||this;return t.elClassNames=[],t.renderSkeleton=Kt(t._renderSkeleton,t._unrenderSkeleton),t.renderToolbars=Kt(t._renderToolbars,t._unrenderToolbars,[t.renderSkeleton]),t.buildComponentContext=Ge(Ar),t.buildViewPropTransformers=Ge(Ur),t.el=e,t.computeTitle=Ge(Br),t.parseBusinessHours=Ge(function(e){return Xt(e,t.context.calendar)}),t}function Br(e,t){var n=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange;return this.context.dateEnv.formatRange(n.start,n.end,ot(t.titleFormat||function(e){var t=e.currentRangeUnit;{if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=V(e.currentRange.start,e.currentRange.end);return null!==n&&1<n?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function Ar(e,t,n){return e.extend(t.options,n)}function Ur(e){return e.map(function(e){return new e})}var Fr=(Gr.prototype.destroy=function(){},Gr);function Gr(e){this.component=e.component}var jr,Wr={},Yr=(ye(qr,jr=Fr),qr);function qr(e){var c=jr.call(this,e)||this;c.handleSegClick=function(e,t){var n,r,i=c.component,o=i.context,s=o.calendar,a=o.view,l=gt(t);l&&i.isValidSegDownEl(e.target)&&(r=(n=d(e.target,".fc-has-url"))?n.querySelector("a[href]").href:"",s.publiclyTrigger("eventClick",[{el:t,event:new ut(i.context.calendar,l.eventRange.def,l.eventRange.instance),jsEvent:e,view:a}]),r&&!e.defaultPrevented&&(window.location.href=r))};var t=e.component;return c.destroy=k(t.el,"click",t.fgSegSelector+","+t.bgSegSelector,c.handleSegClick),c}var Zr,Xr=(ye(Kr,Zr=Fr),Kr.prototype.destroy=function(){this.removeHoverListeners(),this.component.context.calendar.off("eventElRemove",this.handleEventElRemove)},Kr.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,o=i.calendar,s=i.view,a=gt(n);t&&!r.isValidSegDownEl(t.target)||o.publiclyTrigger(e,[{el:n,event:new ut(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:s}])},Kr);function Kr(e){var n=Zr.call(this,e)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){gt(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var t,r,i,o,s,a=e.component;return n.removeHoverListeners=(t=a.el,r=a.fgSegSelector+","+a.bgSegSelector,i=n.handleSegEnter,o=n.handleSegLeave,k(t,"mouseover",r,function(e,t){var n;t!==s&&(i(e,s=t),n=function(e){s=null,o(e,t),t.removeEventListener("mouseleave",n)},t.addEventListener("mouseleave",n))})),a.context.calendar.on("eventElRemove",n.handleEventElRemove),n}var Jr,Qr=(ye($r,Jr=Cn),$r);function $r(){return null!==Jr&&Jr.apply(this,arguments)||this}Qr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Qr.prototype.baseIconClass="fc-icon",Qr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Qr.prototype.iconOverrideOption="buttonIcons",Qr.prototype.iconOverrideCustomButtonOption="icon",Qr.prototype.iconOverridePrefix="fc-icon-";var ei=(ti.prototype.addPluginInputs=function(e){for(var t=0,n=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i,o=r[n];"string"==typeof o?(i="FullCalendar"+ae(o),window[i]?t.push(window[i].default):console.warn("Plugin file not loaded for "+o)):t.push(o)}return Kn.concat(t)}(e);t<n.length;t++){var r=n[t];this.pluginSystem.add(r)}},Object.defineProperty(ti.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),ti.prototype.render=function(){this.component?this.requestRerender():(this.component=new Lr(this.el),this.renderableEventStore=He(),this.bindHandlers(),this.executeRender())},ti.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(var e=0,t=this.calendarInteractions;e<t.length;e++)t[e].destroy();this.publiclyTrigger("_destroyed")}},ti.prototype.bindHandlers=function(){var a=this;this.removeNavLinkListener=k(this.el,"click","a[data-goto]",function(e,t){var n=(n=t.getAttribute("data-goto"))?JSON.parse(n):{},r=a.dateEnv,i=r.createMarker(n.date),o=n.type,s=a.viewOpt("navLink"+ae(o)+"Click");"function"==typeof s?s(r.toDate(i),e):("string"==typeof s&&(o=s),a.zoomTo(i,o))}),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=pe(this.windowResize.bind(this),this.opt("windowResizeDelay")))},ti.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},ti.prototype.hydrate=function(){var e=this;this.state=this.buildInitialState();var t=this.opt("eventSources")||[],n=this.opt("events"),r=[];n&&t.unshift(n);for(var i=0,o=t;i<o.length;i++){var s=fr(o[i],this);s&&r.push(s)}this.batchRendering(function(){e.dispatch({type:"INIT"}),e.dispatch({type:"ADD_EVENT_SOURCES",sources:r}),e.dispatch({type:"SET_VIEW_TYPE",viewType:e.opt("defaultView")||e.pluginSystem.hooks.defaultView})})},ti.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:He(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},ti.prototype.dispatch=function(e){if(this.actionQueue.push(e),!this.isReducing){this.isReducing=!0;for(var t=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);var n=this.state;this.isReducing=!1,!t.loadingLevel&&n.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!n.loadingLevel&&this.publiclyTrigger("loading",[!1]);var r=this.component&&this.component.view;t.eventStore!==n.eventStore&&t.eventStore&&(this.isEventsUpdated=!0),t.dateProfile!==n.dateProfile&&(t.dateProfile&&r&&this.publiclyTrigger("datesDestroy",[{view:r,el:r.el}]),this.isDatesUpdated=!0),t.viewType!==n.viewType&&(t.viewType&&r&&this.publiclyTrigger("viewSkeletonDestroy",[{view:r,el:r.el}]),this.isViewUpdated=!0),this.requestRerender()}},ti.prototype.reduce=wr,ti.prototype.requestRerender=function(){this.needsRerender=!0,this.delayedRerender()},ti.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},ti.prototype.batchRendering=function(e){this.renderingPauseDepth++,e(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},ti.prototype.executeRender=function(){this.needsRerender=!1,this.isRendering=!0,this.renderComponent(),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},ti.prototype.renderComponent=function(){var e=this.state,t=this.component,n=e.viewType,r=this.viewSpecs[n];if(!r)throw new Error('View type "'+n+'" is not valid');var i=this.renderableEventStore=e.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:e.eventStore,o=this.buildEventUiSingleBase(r.options),s=this.buildEventUiBySource(e.eventSources),a=this.eventUiBases=this.buildEventUiBases(i.defs,o,s);t.receiveProps(Ee({},e,{viewSpec:r,dateProfileGenerator:this.dateProfileGenerators[n],dateProfile:e.dateProfile,eventStore:i,eventUiBases:a,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize}),this.buildComponentContext(this.theme,this.dateEnv,this.optionsManager.computed)),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:t.view,el:t.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:t.view,el:t.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},ti.prototype.setOption=function(e,t){var n;this.mutateOptions(((n={})[e]=t,n),[],!0)},ti.prototype.getOption=function(e){return this.optionsManager.computed[e]},ti.prototype.opt=function(e){return this.optionsManager.computed[e]},ti.prototype.viewOpt=function(e){return this.viewOpts()[e]},ti.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},ti.prototype.mutateOptions=function(e,t,n,r){var i=this,o=this.pluginSystem.hooks.optionChangeHandlers,s={},a={},l=this.dateEnv,c=!1,d=!1,u=Boolean(t.length);for(var p in e)o[p]?a[p]=e[p]:s[p]=e[p];for(var h in s)/^(height|contentHeight|aspectRatio)$/.test(h)?d=!0:/^(defaultDate|defaultView)$/.test(h)||(u=!0,"timeZone"===h&&(c=!0));this.optionsManager.mutate(s,t,n),u&&this.handleOptions(this.optionsManager.computed),this.batchRendering(function(){if(u?(c&&i.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:l}),i.dispatch({type:"SET_VIEW_TYPE",viewType:i.state.viewType})):d&&i.updateSize(),r)for(var e in a)o[e](a[e],i,r)})},ti.prototype.handleOptions=function(e){var t=this,n=this.pluginSystem.hooks;this.defaultAllDayEventDuration=X(e.defaultAllDayEventDuration),this.defaultTimedEventDuration=X(e.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(e.rerenderDelay),this.theme=this.buildTheme(e);var r=this.parseRawLocales(e.locales);this.availableRawLocales=r.map;var i=this.buildLocale(e.locale||r.defaultCode,r.map);this.dateEnv=this.buildDateEnv(i,e.timeZone,n.namedTimeZonedImpl,e.firstDay,e.weekNumberCalculation,e.weekLabel,n.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(e),this.viewSpecs=Hr(n.views,this.optionsManager),this.dateProfileGenerators=we(this.viewSpecs,function(e){return new e.class.prototype.dateProfileGeneratorClass(e,t)})},ti.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},ti.prototype._buildSelectionConfig=function(e){return Vt("select",e,this)},ti.prototype._buildEventUiSingleBase=function(e){return e.editable&&(e=Ee({},e,{eventEditable:!0})),Vt("event",e,this)},ti.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},ti.prototype.publiclyTrigger=function(e,t){var n=this.opt(e);if(this.triggerWith(e,this,t),n)return n.apply(this,t)},ti.prototype.publiclyTriggerAfterSizing=function(e,t){var n=this.afterSizingTriggers;(n[e]||(n[e]=[])).push(t)},ti.prototype.releaseAfterSizingTriggers=function(){var e=this.afterSizingTriggers;for(var t in e)for(var n=0,r=e[t];n<r.length;n++){var i=r[n];this.publiclyTrigger(t,i)}this.afterSizingTriggers={}},ti.prototype.isValidViewType=function(e){return Boolean(this.viewSpecs[e])},ti.prototype.changeView=function(e,t){var n=null;t&&(t.start&&t.end?(this.optionsManager.mutate({visibleRange:t},[]),this.handleOptions(this.optionsManager.computed)):n=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:e,dateMarker:n})},ti.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"SET_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"SET_DATE",dateMarker:e})},ti.prototype.getUnitViewSpec=function(e){var t,n,r=this.component,i=[];for(var o in r.header&&i.push.apply(i,r.header.viewsWithButtons),r.footer&&i.push.apply(i,r.footer.viewsWithButtons),this.viewSpecs)i.push(o);for(t=0;t<i.length;t++)if((n=this.viewSpecs[i[t]])&&n.singleUnit===e)return n},ti.prototype.getInitialDate=function(){var e=this.opt("defaultDate");return null!=e?this.dateEnv.createMarker(e):this.getNow()},ti.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},ti.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},ti.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},ti.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},ti.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},ti.prototype.gotoDate=function(e){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(e)})},ti.prototype.incrementDate=function(e){var t=X(e);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},ti.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},ti.prototype.formatDate=function(e,t){var n=this.dateEnv;return n.format(n.createMarker(e),ot(t))},ti.prototype.formatRange=function(e,t,n){var r=this.dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),ot(n,this.opt("defaultRangeSeparator")),n)},ti.prototype.formatIso=function(e,t){var n=this.dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},ti.prototype.windowResize=function(e){!this.isHandlingWindowResize&&this.component&&e.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},ti.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},ti.prototype.registerInteractiveComponent=function(e,t){var n,r={component:e,el:(n=t).el,useEventCenter:null==n.useEventCenter||n.useEventCenter},i=[Yr,Xr].concat(this.pluginSystem.hooks.componentInteractions).map(function(e){return new e(r)});this.interactionsStore[e.uid]=i,Wr[e.uid]=r},ti.prototype.unregisterInteractiveComponent=function(e){for(var t=0,n=this.interactionsStore[e.uid];t<n.length;t++)n[t].destroy();delete this.interactionsStore[e.uid],delete Wr[e.uid]},ti.prototype.select=function(e,t){var n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t},r=Rr(n,this.dateEnv,X({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),this.triggerDateSelect(r))},ti.prototype.unselect=function(e){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(e))},ti.prototype.triggerDateSelect=function(e,t){var n=Ee({},this.buildDateSpanApi(e),{jsEvent:t?t.origEvent:null,view:this.view});this.publiclyTrigger("select",[n])},ti.prototype.triggerDateUnselect=function(e){this.publiclyTrigger("unselect",[{jsEvent:e?e.origEvent:null,view:this.view}])},ti.prototype.triggerDateClick=function(e,t,n,r){var i=Ee({},this.buildDatePointApi(e),{dayEl:t,jsEvent:r,view:n});this.publiclyTrigger("dateClick",[i])},ti.prototype.buildDatePointApi=function(e){for(var t,n,r={},i=0,o=this.pluginSystem.hooks.datePointTransforms;i<o.length;i++){var s=o[i];Ee(r,s(e,this))}return Ee(r,(t=e,{date:(n=this.dateEnv).toDate(t.range.start),dateStr:n.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay})),r},ti.prototype.buildDateSpanApi=function(e){for(var t,n,r={},i=0,o=this.pluginSystem.hooks.dateSpanTransforms;i<o.length;i++){var s=o[i];Ee(r,s(e,this))}return Ee(r,(t=e,{start:(n=this.dateEnv).toDate(t.range.start),end:n.toDate(t.range.end),startStr:n.formatIso(t.range.start,{omitTime:t.allDay}),endStr:n.formatIso(t.range.end,{omitTime:t.allDay}),allDay:t.allDay})),r},ti.prototype.getNow=function(){var e=this.opt("now");return"function"==typeof e&&(e=e()),null==e?this.dateEnv.createNowMarker():this.dateEnv.createMarker(e)},ti.prototype.getDefaultEventEnd=function(e,t){var n=t;return n=e?(n=B(n),this.dateEnv.add(n,this.defaultAllDayEventDuration)):this.dateEnv.add(n,this.defaultTimedEventDuration)},ti.prototype.addEvent=function(e,t){if(e instanceof ut){var n=e._def,r=e._instance;return this.state.eventStore.defs[n.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:Me({def:n,instance:r})}),e}var i;if(t instanceof ct)i=t.internalEventSource.sourceId;else if(null!=t){var o=this.getEventSourceById(t);if(!o)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=o.internalEventSource.sourceId}var s=Wt(e,i,this);return s?(this.dispatch({type:"ADD_EVENTS",eventStore:Me(s)}),new ut(this,s.def,s.def.recurringDef?null:s.instance)):null},ti.prototype.getEventById=function(e){var t=this.state.eventStore,n=t.defs,r=t.instances;for(var i in e=String(e),n){var o=n[i];if(o.publicId===e){if(o.recurringDef)return new ut(this,o,null);for(var s in r){var a=r[s];if(a.defId===o.defId)return new ut(this,o,a)}}}return null},ti.prototype.getEvents=function(){var e=this.state.eventStore,t=e.defs,n=e.instances,r=[];for(var i in n){var o=n[i],s=t[o.defId];r.push(new ut(this,s,o))}return r},ti.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},ti.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},ti.prototype.getEventSources=function(){var e=this.state.eventSources,t=[];for(var n in e)t.push(new ct(this,e[n]));return t},ti.prototype.getEventSourceById=function(e){var t=this.state.eventSources;for(var n in e=String(e),t)if(t[n].publicId===e)return new ct(this,t[n]);return null},ti.prototype.addEventSource=function(e){if(e instanceof ct)return this.state.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var t=fr(e,this);return t?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new ct(this,t)):null},ti.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},ti.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},ti.prototype.scrollToTime=function(e){var t=X(e);t&&this.component.view.scrollToDuration(t)},ti);function ti(e,t){var n=this;this.buildComponentContext=Ge(ni),this.parseRawLocales=Ge(Qn),this.buildLocale=Ge($n),this.buildDateEnv=Ge(ri),this.buildTheme=Ge(ii),this.buildEventUiSingleBase=Ge(this._buildEventUiSingleBase),this.buildSelectionConfig=Ge(this._buildSelectionConfig),this.buildEventUiBySource=je(si,Re),this.buildEventUiBases=Ge(ai),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=Ge(oi),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new tr(t||{}),this.pluginSystem=new Ln,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(e){return new e(n)})}function ni(e,t,n){return new Mn(this,e,t,n,null)}function ri(e,t,n,r,i,o,s){return new cr({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:n,locale:e,weekNumberCalculation:i,firstDay:r,weekLabel:o,cmdFormatter:s})}function ii(e){return new(this.pluginSystem.hooks.themeClasses[e.themeSystem]||Qr)(e)}function oi(e){var t=this.tryRerender.bind(this);return null!=e&&(t=pe(t,e)),t}function si(e){return we(e,function(e){return e.ui})}function ai(e,t,n){var r={"":t};for(var i in e){var o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}ln.mixInto(ei);var li,ci=(ye(di,li=_n),di.prototype.initialize=function(){},Object.defineProperty(di.prototype,"activeStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"activeEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"currentStart",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(di.prototype,"currentEnd",{get:function(){return this.context.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),di.prototype.render=function(e,t){this.renderDatesMem(e.dateProfile),this.renderBusinessHoursMem(e.businessHours),this.renderDateSelectionMem(e.dateSelection),this.renderEventsMem(e.eventStore),this.renderEventSelectionMem(e.eventSelection),this.renderEventDragMem(e.eventDrag),this.renderEventResizeMem(e.eventResize)},di.prototype.beforeUpdate=function(){this.addScroll(this.queryScroll())},di.prototype.destroy=function(){li.prototype.destroy.call(this),this.renderDatesMem.unrender()},di.prototype.updateSize=function(e,t,n){var r=this.context.calendar;e&&this.addScroll(this.queryScroll()),(e||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(e,t,n)},di.prototype.updateBaseSize=function(e,t,n){},di.prototype.renderDatesWrap=function(e){this.renderDates(e),this.addScroll({duration:X(this.context.options.scrollTime)})},di.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},di.prototype.renderDates=function(e){},di.prototype.unrenderDates=function(){},di.prototype.renderBusinessHours=function(e){},di.prototype.unrenderBusinessHours=function(){},di.prototype.renderDateSelectionWrap=function(e){e&&this.renderDateSelection(e)},di.prototype.unrenderDateSelectionWrap=function(e){e&&this.unrenderDateSelection(e)},di.prototype.renderDateSelection=function(e){},di.prototype.unrenderDateSelection=function(e){},di.prototype.renderEvents=function(e){},di.prototype.unrenderEvents=function(){},di.prototype.sliceEvents=function(e,t){var n=this.props;return ht(e,n.eventUiBases,n.dateProfile.activeRange,t?this.context.nextDayThreshold:null).fg},di.prototype.renderEventSelectionWrap=function(e){e&&this.renderEventSelection(e)},di.prototype.unrenderEventSelectionWrap=function(e){e&&this.unrenderEventSelection(e)},di.prototype.renderEventSelection=function(e){},di.prototype.unrenderEventSelection=function(e){},di.prototype.renderEventDragWrap=function(e){e&&this.renderEventDrag(e)},di.prototype.unrenderEventDragWrap=function(e){e&&this.unrenderEventDrag(e)},di.prototype.renderEventDrag=function(e){},di.prototype.unrenderEventDrag=function(e){},di.prototype.renderEventResizeWrap=function(e){e&&this.renderEventResize(e)},di.prototype.unrenderEventResizeWrap=function(e){e&&this.unrenderEventResize(e)},di.prototype.renderEventResize=function(e){},di.prototype.unrenderEventResize=function(e){},di.prototype.startNowIndicator=function(e,t){var n,r,i,o=this,s=this.context,a=s.calendar,l=s.dateEnv;s.options.nowIndicator&&!this.initialNowDate&&(n=this.getNowIndicatorUnit(e,t))&&(r=this.updateNowIndicator.bind(this),this.initialNowDate=a.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),i=l.add(l.startOf(this.initialNowDate,n),X(1,n)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){o.nowIndicatorTimeoutID=null,r(),i="second"===n?1e3:6e4,o.nowIndicatorIntervalID=setInterval(r,i)},i))},di.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(O(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},di.prototype.stopNowIndicator=function(){this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},di.prototype.getNowIndicatorUnit=function(e,t){},di.prototype.renderNowIndicator=function(e){},di.prototype.unrenderNowIndicator=function(){},di.prototype.addScroll=function(e,t){t&&(e.isForced=t),Ee(this.queuedScroll||(this.queuedScroll={}),e)},di.prototype.popScroll=function(e){this.applyQueuedScroll(e),this.queuedScroll=null},di.prototype.applyQueuedScroll=function(e){this.queuedScroll&&this.applyScroll(this.queuedScroll,e)},di.prototype.queryScroll=function(){var e={};return this.props.dateProfile&&Ee(e,this.queryDateScroll()),e},di.prototype.applyScroll=function(e,t){var n=e.duration,r=e.isForced;null==n||r||(delete e.duration,this.props.dateProfile&&Ee(e,this.computeDateScroll(n))),this.props.dateProfile&&this.applyDateScroll(e)},di.prototype.computeDateScroll=function(e){return{}},di.prototype.queryDateScroll=function(){return{}},di.prototype.applyDateScroll=function(e){},di.prototype.scrollToDuration=function(e){this.applyScroll({duration:e},!1)},di);function di(e,t){var n=li.call(this,s("div",{className:"fc-view fc-"+e.type+"-view"}))||this;return n.renderDatesMem=Kt(n.renderDatesWrap,n.unrenderDatesWrap),n.renderBusinessHoursMem=Kt(n.renderBusinessHours,n.unrenderBusinessHours,[n.renderDatesMem]),n.renderDateSelectionMem=Kt(n.renderDateSelectionWrap,n.unrenderDateSelectionWrap,[n.renderDatesMem]),n.renderEventsMem=Kt(n.renderEvents,n.unrenderEvents,[n.renderDatesMem]),n.renderEventSelectionMem=Kt(n.renderEventSelectionWrap,n.unrenderEventSelectionWrap,[n.renderEventsMem]),n.renderEventDragMem=Kt(n.renderEventDragWrap,n.unrenderEventDragWrap,[n.renderDatesMem]),n.renderEventResizeMem=Kt(n.renderEventResizeWrap,n.unrenderEventResizeWrap,[n.renderDatesMem]),n.viewSpec=e,n.type=e.type,t.appendChild(n.el),n.initialize(),n}ln.mixInto(ci),ci.prototype.usesMinMaxTime=!1,ci.prototype.dateProfileGeneratorClass=br;var ui=(pi.prototype.renderSegs=function(e,t,n){this.context=e,this.rangeUpdated(),t=this.renderSegEls(t,n),this.segs=t,this.attachSegs(t,n),this.isSizeDirty=!0,yt(this.context,this.segs,Boolean(n))},pi.prototype.unrender=function(e,t,n){Et(this.context,this.segs,Boolean(n)),this.detachSegs(this.segs),this.segs=[]},pi.prototype.rangeUpdated=function(){var e,t,n=this.context.options;this.eventTimeFormat=ot(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),null==(e=n.displayEventTime)&&(e=this.computeDisplayEventTime()),null==(t=n.displayEventEnd)&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},pi.prototype.renderSegEls=function(r,e){var t,n="";if(r.length){for(t=0;t<r.length;t++)n+=this.renderSegHtml(r[t],e);a(n).forEach(function(e,t){var n=r[t];e&&(n.el=e)}),r=ft(this.context,r,Boolean(e))}return r},pi.prototype.getSegClasses=function(e,t,n,r){var i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(e.eventRange.ui.classNames);return t&&i.push("fc-draggable"),n&&i.push("fc-resizable"),r&&(i.push("fc-mirror"),r.isDragging&&i.push("fc-dragging"),r.isResizing&&i.push("fc-resizing")),i},pi.prototype.getTimeText=function(e,t,n){var r=e.def,i=e.instance;return this._getTimeText(i.range.start,r.hasEnd?i.range.end:null,r.allDay,t,n,i.forcedStartTzo,i.forcedEndTzo)},pi.prototype._getTimeText=function(e,t,n,r,i,o,s){var a=this.context.dateEnv;return null==r&&(r=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&t?a.formatRange(e,t,r,{forcedStartTzo:o,forcedEndTzo:s}):a.format(e,r,{forcedTzo:o}):""},pi.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},pi.prototype.computeDisplayEventTime=function(){return!0},pi.prototype.computeDisplayEventEnd=function(){return!0},pi.prototype.getSkinCss=function(e){return{"background-color":e.backgroundColor,"border-color":e.borderColor,color:e.textColor}},pi.prototype.sortEventSegs=function(e){var n=this.context.eventOrderSpecs,t=e.map(hi);return t.sort(function(e,t){return ie(e,t,n)}),t.map(function(e){return e._seg})},pi.prototype.computeSizes=function(e){(e||this.isSizeDirty)&&this.computeSegSizes(this.segs)},pi.prototype.assignSizes=function(e){(e||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},pi.prototype.computeSegSizes=function(e){},pi.prototype.assignSegSizes=function(e){},pi.prototype.hideByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")}},pi.prototype.showByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")}},pi.prototype.selectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t],i=r.eventRange.instance;i&&i.instanceId===e&&r.el&&r.el.classList.add("fc-selected")}},pi.prototype.unselectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];r.el&&r.el.classList.remove("fc-selected")}},pi);function pi(){this.segs=[],this.isSizeDirty=!1}function hi(e){var t=e.eventRange.def,n=e.eventRange.instance.range,r=n.start?n.start.valueOf():0,i=n.end?n.end.valueOf():0;return Ee({},t.extendedProps,t,{id:t.publicId,start:r,end:i,duration:i-r,allDay:Number(t.allDay),_seg:e})}var fi=(gi.prototype.getSegsByType=function(e){return this.segsByType[e]||[]},gi.prototype.renderSegs=function(e,t,n){var r;this.context=t;var i=this.renderSegEls(e,n),o=this.attachSegs(e,i);o&&(r=this.containerElsByType[e]||(this.containerElsByType[e]=[])).push.apply(r,o),this.segsByType[e]=i,"bgEvent"===e&&yt(t,i,!1),this.dirtySizeFlags[e]=!0},gi.prototype.unrender=function(e,t){var n=this.segsByType[e];n&&("bgEvent"===e&&Et(t,n,!1),this.detachSegs(e,n))},gi.prototype.renderSegEls=function(e,r){var t,n=this,i="";if(r.length){for(t=0;t<r.length;t++)i+=this.renderSegHtml(e,r[t]);a(i).forEach(function(e,t){var n=r[t];e&&(n.el=e)}),"bgEvent"===e&&(r=ft(this.context,r,!1)),r=r.filter(function(e){return u(e.el,n.fillSegTag)})}return r},gi.prototype.renderSegHtml=function(e,t){var n=null,r=[];return"highlight"!==e&&"businessHours"!==e&&(n={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==e&&(r=r.concat(t.eventRange.ui.classNames)),"businessHours"===e?r.push("fc-bgevent"):r.push("fc-"+e.toLowerCase()),"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(n?' style="'+Ot(n)+'"':"")+"></"+this.fillSegTag+">"},gi.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(r),delete this.containerElsByType[e])},gi.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},gi.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},gi.prototype.computeSegSizes=function(e){},gi.prototype.assignSegSizes=function(e){},gi);function gi(){this.fillSegTag="div",this.dirtySizeFlags={},this.containerElsByType={},this.segsByType={}}function vi(e){this.timeZoneName=e}var mi=(yi.prototype.destroy=function(){},yi.prototype.setMirrorIsVisible=function(e){},yi.prototype.setMirrorNeedsRevert=function(e){},yi.prototype.setAutoScrollEnabled=function(e){},yi);function yi(e){this.emitter=new ln}function Ei(e){var t=$n(e.locale||"en",Qn([]).map);return e=Ee({timeZone:qn.timeZone,calendarSystem:"gregory"},e,{locale:t}),new cr(e)}var Si={startTime:X,duration:X,create:Boolean,sourceId:String},bi={create:!0};function Di(e,t){return!e||10<t?{weekday:"short"}:1<t?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function wi(e,t,n,r,i,o,s,a){var l=o.dateEnv,c=o.theme,d=o.options,u=Ue(t.activeRange,e),p=["fc-day-header",c.getClass("widgetHeader")],h="function"==typeof d.columnHeaderHtml?d.columnHeaderHtml(l.toDate(e)):"function"==typeof d.columnHeaderText?_t(d.columnHeaderText(l.toDate(e))):_t(l.format(e,i));return n?p=p.concat(nn(e,t,o,!0)):p.push("fc-"+H[e.getUTCDay()]),'<th class="'+p.join(" ")+'"'+(u&&n?' data-date="'+l.formatIso(e,{omitTime:!0})+'"':"")+(1<s?' colspan="'+s+'"':"")+(a?" "+a:"")+">"+(u?tn(d,l,{date:e,forceOff:!n||1===r},h):h)+"</th>"}var Ti,Ci=(ye(Ri,Ti=kn),Ri.prototype.render=function(e,t){var n=e.dates,r=e.datesRepDistinctDays,i=[];this.renderSkeleton(t),e.renderIntroHtml&&i.push(e.renderIntroHtml());for(var o=ot(t.options.columnHeaderFormat||Di(r,n.length)),s=0,a=n;s<a.length;s++){var l=a[s];i.push(wi(l,e.dateProfile,r,n.length,o,t))}t.isRtl&&i.reverse(),this.thead.innerHTML="<tr>"+i.join("")+"</tr>"},Ri.prototype.destroy=function(){Ti.prototype.destroy.call(this),this.renderSkeleton.unrender()},Ri.prototype._renderSkeleton=function(e){var t=e.theme,n=this.parentEl;n.innerHTML="",n.appendChild(this.el=S('<div class="fc-row '+t.getClass("headerRow")+'"><table class="'+t.getClass("tableGrid")+'"><thead></thead></table></div>')),this.thead=this.el.querySelector("thead")},Ri.prototype._unrenderSkeleton=function(){r(this.el)},Ri);function Ri(e){var t=Ti.call(this)||this;return t.renderSkeleton=Kt(t._renderSkeleton,t._unrenderSkeleton),t.parentEl=e,t}var Ii=(Mi.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(_(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(i=Math.floor(i))?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},Mi.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(N(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},Mi);function Mi(e,t){for(var n=e.start,r=e.end,i=[],o=[],s=-1;n<r;)t.isHiddenDay(n)?i.push(s+.5):(s++,i.push(s),o.push(n)),n=_(n,1);this.dates=o,this.indices=i,this.cnt=o.length}var Pi=(ki.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t++){for(var n=[],r=0;r<this.colCnt;r++)n.push(this.buildCell(t,r));e.push(n)}return e},ki.prototype.buildCell=function(e,t){return{date:this.daySeries.dates[e*this.colCnt+t]}},ki.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t++)e.push(this.cells[0][t].date);return e},ki.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,o=n.lastIndex,s=i;s<=o;){var a=Math.floor(s/t),l=Math.min((a+1)*t,o+1);r.push({row:a,firstCol:s%t,lastCol:(l-1)%t,isStart:n.isStart&&s===i,isEnd:n.isEnd&&l-1===o}),s=l}return r},ki);function ki(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n++);i=Math.ceil(o.length/n)}else i=1,n=o.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}var xi=(Hi.prototype.sliceProps=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];var a=e.eventUiBases,l=this.sliceEventStore.apply(this,[e.eventStore,a,t,n,i].concat(o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,a,i].concat(o)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,n,r,i].concat(o)),fgEventSegs:l.fg,bgEventSegs:l.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,a,t,n,i].concat(o)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,a,t,n,i].concat(o)),eventSelection:e.eventSelection}},Hi.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,[{range:{start:e,end:O(e,1)},allDay:!1},{},t].concat(n))},Hi.prototype._sliceBusinessHours=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];return e?this._sliceEventStore.apply(this,[Pe(e,_i(t,Boolean(n)),r),{},t,n,i].concat(o)).bg:[]},Hi.prototype._sliceEventStore=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(e){var a=ht(e,t,_i(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,i,o),fg:this.sliceEventRanges(a.fg,i,o)}}return{bg:[],fg:[]}},Hi.prototype._sliceInteraction=function(e,t,n,r,i){for(var o=[],s=5;s<arguments.length;s++)o[s-5]=arguments[s];if(!e)return null;var a=ht(e.mutatedEvents,t,_i(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,i,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent,sourceSeg:e.origSeg}},Hi.prototype._sliceDateSpan=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(var o,s,a,l,c=(o=e,s=t,a=n.context.calendar,{def:l=Yt({editable:!1},"",o.allDay,!0,a),ui:mt(l,s),instance:qt(l.defId,o.range),range:o.range,isStart:!0,isEnd:!0}),d=this.sliceRange.apply(this,[e.range].concat(r)),u=0,p=d;u<p.length;u++){var h=p[u];h.component=n,h.eventRange=c}return d},Hi.prototype.sliceEventRanges=function(e,t,n){for(var r=[],i=0,o=e;i<o.length;i++){var s=o[i];r.push.apply(r,this.sliceEventRange(s,t,n))}return r},Hi.prototype.sliceEventRange=function(e,t,n){for(var r=this.sliceRange.apply(this,[e.range].concat(n)),i=0,o=r;i<o.length;i++){var s=o[i];s.component=t,s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return r},Hi);function Hi(){this.sliceBusinessHours=Ge(this._sliceBusinessHours),this.sliceDateSelection=Ge(this._sliceDateSpan),this.sliceEventStore=Ge(this._sliceEventStore),this.sliceEventDrag=Ge(this._sliceInteraction),this.sliceEventResize=Ge(this._sliceInteraction)}function _i(e,t){var n=e.activeRange;return t?n:{start:O(n.start,e.minTime.milliseconds),end:O(n.end,e.maxTime.milliseconds-864e5)}}e.Calendar=ei,e.Component=kn,e.ComponentContext=Mn,e.DateComponent=_n,e.DateEnv=cr,e.DateProfileGenerator=br,e.DayHeader=Ci,e.DaySeries=Ii,e.DayTable=Pi,e.ElementDragging=mi,e.ElementScrollController=mn,e.EmitterMixin=ln,e.EventApi=ut,e.FgEventRenderer=ui,e.FillRenderer=fi,e.Interaction=Fr,e.Mixin=on,e.NamedTimeZoneImpl=vi,e.PositionCache=pn,e.ScrollComponent=wn,e.ScrollController=fn,e.Slicer=xi,e.Splitter=Qt,e.Theme=Cn,e.View=ci,e.WindowScrollController=Sn,e.addDays=_,e.addDurations=function(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}},e.addMs=O,e.addWeeks=function(e,t){var n=G(e);return n[2]+=7*t,j(n)},e.allowContextMenu=function(e){e.removeEventListener("contextmenu",P)},e.allowSelection=function(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",P)},e.appendToElement=b,e.applyAll=de,e.applyMutationToEventStore=St,e.applyStyle=f,e.applyStyleProp=g,e.asRoughMinutes=function(e){return ee(e)/6e4},e.asRoughMs=ee,e.asRoughSeconds=function(e){return ee(e)/1e3},e.buildGotoAnchorHtml=tn,e.buildSegCompareObj=hi,e.capitaliseFirstLetter=ae,e.combineEventUis=At,e.compareByFieldSpec=oe,e.compareByFieldSpecs=ie,e.compareNumbers=function(e,t){return e-t},e.compensateScroll=function(e,t){t.left&&f(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&f(e,{borderRightWidth:1,marginRight:t.right-1})},e.computeClippingRect=function(e){return M(e).map(function(e){return T(e)}).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce(function(e,t){return v(e,t)||t})},e.computeEdges=w,e.computeEventDraggable=function(e,t,n){for(var r=e.calendar,i=e.view,o=r.pluginSystem.hooks.isDraggableTransformers,s=n.startEditable,a=0,l=o;a<l.length;a++)s=(0,l[a])(s,t,n,i);return s},e.computeEventEndResizable=function(e,t,n){return n.durationEditable},e.computeEventStartResizable=function(e,t,n){return n.durationEditable&&e.options.eventResizableFromStart},e.computeFallbackHeaderFormat=Di,e.computeHeightAndMargins=R,e.computeInnerRect=T,e.computeRect=C,e.computeVisibleDayRange=ge,e.config={},e.constrainPoint=function(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}},e.createDuration=X,e.createElement=s,e.createEmptyEventStore=He,e.createEventInstance=qt,e.createFormatter=ot,e.createPlugin=zn,e.cssToStr=Ot,e.debounce=pe,e.diffDates=ve,e.diffDayAndTime=z,e.diffDays=N,e.diffPoints=function(e,t){return{left:e.left-t.left,top:e.top-t.top}},e.diffWeeks=function(e,t){return N(e,t)/7},e.diffWholeDays=V,e.diffWholeWeeks=L,e.disableCursor=function(){document.body.classList.add("fc-not-allowed")},e.distributeHeight=function(o,e,t){var s=Math.floor(e/o.length),a=Math.floor(e-s*(o.length-1)),l=[],c=[],d=[],u=0;ne(o),o.forEach(function(e,t){var n=t===o.length-1?a:s,r=e.getBoundingClientRect().height,i=r+I(e);i<n?(l.push(e),c.push(i),d.push(r)):u+=i}),t&&(e-=u,s=Math.floor(e/l.length),a=Math.floor(e-s*(l.length-1))),l.forEach(function(e,t){var n=t===l.length-1?a:s,r=c[t],i=n-(r-d[t]);r<n&&(e.style.height=i+"px")})},e.elementClosest=d,e.elementMatches=u,e.enableCursor=function(){document.body.classList.remove("fc-not-allowed")},e.eventTupleToStore=Me,e.filterEventStoreDefs=Oe,e.filterHash=De,e.findChildren=function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].children,s=0;s<o.length;s++){var a=o[s];t&&!u(a,t)||r.push(a)}return r},e.findElements=p,e.flexibleCompare=se,e.forceClassName=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.formatDate=function(e,t){void 0===t&&(t={});var n=Ei(t),r=ot(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""},e.formatIsoTimeString=function(e){return le(e.getUTCHours(),2)+":"+le(e.getUTCMinutes(),2)+":"+le(e.getUTCSeconds(),2)},e.formatRange=function(e,t,n){var r=Ei("object"==typeof n&&n?n:{}),i=ot(n,qn.defaultRangeSeparator),o=r.createMarkerMeta(e),s=r.createMarkerMeta(t);return o&&s?r.formatRange(o.marker,s.marker,i,{forcedStartTzo:o.forcedTzo,forcedEndTzo:s.forcedTzo,isEndExclusive:n.isEndExclusive}):""},e.getAllDayHtml=function(e){return e.allDayHtml||_t(e.allDayText)},e.getClippingParents=M,e.getDayClasses=nn,e.getElSeg=gt,e.getRectCenter=function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}},e.getRelevantEvents=ke,e.globalDefaults=qn,e.greatestDurationDenominator=te,e.hasBgRendering=function(e){return"background"===e.rendering||"inverse-background"===e.rendering},e.htmlEscape=_t,e.htmlToElement=S,e.insertAfterElement=function(e,t){for(var n=l(t),r=e.nextSibling||null,i=0;i<n.length;i++)e.parentNode.insertBefore(n[i],r)},e.interactionSettingsStore=Wr,e.interactionSettingsToStore=function(e){var t={};return t[e.component.uid]=e,t},e.intersectRanges=Le,e.intersectRects=v,e.isArraysEqual=Fe,e.isDateSpansEqual=function(e,t){return Ve(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)},e.isInt=ce,e.isInteractionValid=Rt,e.isMultiDayRange=function(e){var t=ge(e);return 1<N(t.start,t.end)},e.isPropsEqual=Re,e.isPropsValid=Mt,e.isSingleDay=function(e){return 0===e.years&&0===e.months&&1===e.days&&0===e.milliseconds},e.isValidDate=W,e.listenBySelector=k,e.mapHash=we,e.matchCellWidths=function(e){var r=0;return e.forEach(function(e){var t,n=e.firstChild;n instanceof HTMLElement&&(t=n.getBoundingClientRect().width,r<t&&(r=t))}),r++,e.forEach(function(e){e.style.width=r+"px"}),r},e.memoize=Ge,e.memoizeOutput=je,e.memoizeRendering=Kt,e.mergeEventStores=_e,e.multiplyDuration=function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}},e.padStart=le,e.parseBusinessHours=Xt,e.parseDragMeta=function(e){var t={},n=he(e,Si,bi,t);return n.leftoverProps=t,n},e.parseEventDef=Yt,e.parseFieldSpecs=re,e.parseMarker=lr,e.pointInsideRect=function(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom},e.prependToElement=m,e.preventContextMenu=function(e){e.addEventListener("contextmenu",P)},e.preventDefault=P,e.preventSelection=function(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",P)},e.processScopedUiProps=Vt,e.rangeContainsMarker=Ue,e.rangeContainsRange=Ae,e.rangesEqual=Ve,e.rangesIntersect=Be,e.refineProps=he,e.removeElement=r,e.removeExact=function(e,t){for(var n=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n++):r++;return n},e.renderDateCell=wi,e.requestJson=Un,e.sliceEventStore=ht,e.startOfDay=B,e.subtractInnerElHeight=function(e,t){var n={position:"relative",left:-1};f(e,n),f(t,n);var r=e.getBoundingClientRect().height-t.getBoundingClientRect().height,i={position:"",left:""};return f(e,i),f(t,i),r},e.translateRect=function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},e.uncompensateScroll=function(e){f(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})},e.undistributeHeight=ne,e.unpromisify=rn,e.version="4.4.0",e.whenTransitionDone=function(t,n){var r=function(e){n(e),x.forEach(function(e){t.removeEventListener(e,r)})};x.forEach(function(e){t.addEventListener(e,r)})},e.wholeDivideDurations=function(e,t){for(var n=null,r=0;r<q.length;r++){var i=q[r];if(t[i]){var o=e[i]/t[i];if(!ce(o)||null!==n&&n!==o)return null;n=o}else if(e[i])return null}return n},Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarDayGrid={},e.FullCalendar)}(this,function(e,R){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c,d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n=(t(i,c=R.DateProfileGenerator),i.prototype.buildRenderRange=function(e,t,n){var r,i,o=this.dateEnv,s=c.prototype.buildRenderRange.call(this,e,t,n),a=s.start,l=s.end;return/^(year|month)$/.test(t)&&(a=o.startOfWeek(a),(r=o.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=R.addWeeks(r,1))),this.options.monthMode&&this.options.fixedWeekCount&&(i=Math.ceil(R.diffWeeks(a,l)),l=R.addWeeks(l,6-i)),{start:a,end:l}},i);function i(){return null!==c&&c.apply(this,arguments)||this}var f=(o.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.style.display="",this.position(),this.isHidden=!1,this.trigger("show"))},o.prototype.hide=function(){this.isHidden||(this.el.style.display="none",this.isHidden=!0,this.trigger("hide"))},o.prototype.render=function(){var t=this,e=this.options,n=this.el=R.createElement("div",{className:"fc-popover "+(e.className||""),style:{top:"0",left:"0"}});"function"==typeof e.content&&e.content(n),e.parentEl.appendChild(n),R.listenBySelector(n,"click",".fc-close",function(e){t.hide()}),e.autoHide&&document.addEventListener("mousedown",this.documentMousedown)},o.prototype.destroy=function(){this.hide(),this.el&&(R.removeElement(this.el),this.el=null),document.removeEventListener("mousedown",this.documentMousedown)},o.prototype.position=function(){var e=this.options,t=this.el,n=t.getBoundingClientRect(),r=R.computeRect(t.offsetParent),i=R.computeClippingRect(e.parentEl),o=e.top||0,s=void 0!==e.left?e.left:void 0!==e.right?e.right-n.width:0;o=Math.min(o,i.bottom-n.height-this.margin),o=Math.max(o,i.top+this.margin),s=Math.min(s,i.right-n.width-this.margin),s=Math.max(s,i.left+this.margin),R.applyStyle(t,{top:o-r.top,left:s-r.left})},o.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},o);function o(e){var t=this;this.isHidden=!0,this.margin=10,this.documentMousedown=function(e){t.el&&!t.el.contains(e.target)&&t.hide()},this.options=e}var s,a=(t(l,s=R.FgEventRenderer),l.prototype.renderSegHtml=function(e,t){var n,r,i=this.context,o=e.eventRange,s=o.def,a=o.ui,l=s.allDay,c=R.computeEventDraggable(i,s,a),d=l&&e.isStart&&R.computeEventStartResizable(i,s,a),u=l&&e.isEnd&&R.computeEventEndResizable(i,s,a),p=this.getSegClasses(e,c,d||u,t),h=R.cssToStr(this.getSkinCss(a)),f="";return p.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getTimeText(o))&&(f='<span class="fc-time">'+R.htmlEscape(n)+"</span>"),r='<span class="fc-title">'+(R.htmlEscape(s.title||"")||"&nbsp;")+"</span>",'<a class="'+p.join(" ")+'"'+(s.url?' href="'+R.htmlEscape(s.url)+'"':"")+(h?' style="'+h+'"':"")+'><div class="fc-content">'+("rtl"===i.options.dir?r+" "+f:f+" "+r)+"</div>"+(d?'<div class="fc-resizer fc-start-resizer"></div>':"")+(u?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},l.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}},l.prototype.computeDisplayEventEnd=function(){return!1},l);function l(){return null!==s&&s.apply(this,arguments)||this}var u,p=(t(h,u=a),h.prototype.attachSegs=function(e,t){var n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){e.querySelector(".fc-content-skeleton > table").appendChild(n[t].tbodyEl)}),t||this.dayGrid.removeSegPopover()},h.prototype.detachSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)R.removeElement(e.tbodyEl);this.rowStructs=null},h.prototype.renderSegRows=function(e){for(var t=[],n=this.groupSegRows(e),r=0;r<n.length;r++)t.push(this.renderSegRow(r,n[r]));return t},h.prototype.renderSegRow=function(e,t){var n,r,i,o,s,a,l,c=this.context.isRtl,d=this.dayGrid,u=d.colCnt,p=this.buildSegLevels(t),h=Math.max(1,p.length),f=document.createElement("tbody"),g=[],v=[],m=[];function y(e){for(;i<e;)(l=(m[n-1]||[])[i])?l.rowSpan=(l.rowSpan||1)+1:(l=document.createElement("td"),o.appendChild(l)),v[n][i]=l,m[n][i]=l,i++}for(n=0;n<h;n++){if(r=p[n],i=0,o=document.createElement("tr"),g.push([]),v.push([]),m.push([]),r)for(s=0;s<r.length;s++){a=r[s];var E=c?u-1-a.lastCol:a.firstCol,S=c?u-1-a.firstCol:a.lastCol;for(y(E),l=R.createElement("td",{className:"fc-event-container"},a.el),E!==S?l.colSpan=S-E+1:m[n][i]=l;i<=S;)v[n][i]=l,g[n][i]=a,i++;o.appendChild(l)}y(u);var b=d.renderProps.renderIntroHtml();b&&(c?R.appendToElement(o,b):R.prependToElement(o,b)),f.appendChild(o)}return{row:e,tbodyEl:f,cellMatrix:v,segMatrix:g,segLevels:p,segs:t}},h.prototype.buildSegLevels=function(e){var t,n,r,i=this.context.isRtl,o=this.dayGrid.colCnt,s=[];for(e=this.sortEventSegs(e),t=0;t<e.length;t++){for(n=e[t],r=0;r<s.length&&g(n,s[r]);r++);n.level=r,n.leftCol=i?o-1-n.lastCol:n.firstCol,n.rightCol=i?o-1-n.firstCol:n.lastCol,(s[r]||(s[r]=[])).push(n)}for(r=0;r<s.length;r++)s[r].sort(v);return s},h.prototype.groupSegRows=function(e){for(var t=[],n=0;n<this.dayGrid.rowCnt;n++)t.push([]);for(n=0;n<e.length;n++)t[e[n].row].push(e[n]);return t},h.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},h);function h(e){var t=u.call(this)||this;return t.dayGrid=e,t}function g(e,t){for(var n,r=0;r<t.length;r++)if((n=t[r]).firstCol<=e.lastCol&&n.lastCol>=e.firstCol)return 1}function v(e,t){return e.leftCol-t.leftCol}var m,y=(t(E,m=p),E.prototype.attachSegs=function(e,t){var o=t.sourceSeg,s=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.forEach(function(e,t){var n=R.htmlToElement('<div class="fc-mirror-skeleton"><table></table></div>'),r=o&&o.row===t?o.el:(r=e.querySelector(".fc-content-skeleton tbody"))||e.querySelector(".fc-content-skeleton table"),i=r.getBoundingClientRect().top-e.getBoundingClientRect().top;n.style.top=i+"px",n.querySelector("table").appendChild(s[t].tbodyEl),e.appendChild(n)})},E);function E(){return null!==m&&m.apply(this,arguments)||this}var S,b='<td style="pointer-events:none"></td>',D=(t(w,S=R.FillRenderer),w.prototype.renderSegs=function(e,t,n){"bgEvent"===e&&(n=n.filter(function(e){return e.eventRange.def.allDay})),S.prototype.renderSegs.call(this,e,t,n)},w.prototype.attachSegs=function(e,t){for(var n,r,i=[],o=0;o<t.length;o++)n=t[o],r=this.renderFillRow(e,n),this.dayGrid.rowEls[n.row].appendChild(r),i.push(r);return i},w.prototype.renderFillRow=function(e,t){var n=this.dayGrid,r=this.context.isRtl,i=n.colCnt,o=r?i-1-t.lastCol:t.firstCol,s=(r?i-1-t.firstCol:t.lastCol)+1,a="businessHours"===e?"bgevent":e.toLowerCase(),l=R.htmlToElement('<div class="fc-'+a+'-skeleton"><table><tr></tr></table></div>'),c=l.getElementsByTagName("tr")[0];0<o&&R.appendToElement(c,new Array(o+1).join(b)),t.el.colSpan=s-o,c.appendChild(t.el),s<i&&R.appendToElement(c,new Array(i-s+1).join(b));var d=n.renderProps.renderIntroHtml();return d&&(r?R.appendToElement(c,d):R.prependToElement(c,d)),l},w);function w(e){var t=S.call(this)||this;return t.fillSegTag="td",t.dayGrid=e,t}var T,C=(t(I,T=R.DateComponent),I.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el,useEventCenter:!1})},I.prototype.render=function(e,t){this.renderFrame(e.date),this.renderFgEvents(t,e.fgSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDragInstances),this.renderEventResize(e.eventResizeInstances)},I.prototype.destroy=function(){T.prototype.destroy.call(this),this.renderFrame.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},I.prototype._renderFrame=function(e){var t=this.context,n=t.theme,r=t.dateEnv,i=t.options,o=r.format(e,R.createFormatter(i.dayPopoverFormat));this.el.innerHTML='<div class="fc-header '+n.getClass("popoverHeader")+'"><span class="fc-title">'+R.htmlEscape(o)+'</span><span class="fc-close '+n.getIconClass("close")+'"></span></div><div class="fc-body '+n.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>',this.segContainerEl=this.el.querySelector(".fc-event-container")},I.prototype.queryHit=function(e,t,n,r){var i=this.props.date;if(e<n&&t<r)return{component:this,dateSpan:{allDay:!0,range:{start:i,end:R.addDays(i,1)}},dayEl:this.el,rect:{left:0,top:0,right:n,bottom:r},layer:1}},I);function I(e){var t=T.call(this,e)||this,n=t.eventRenderer=new P(t),r=t.renderFrame=R.memoizeRendering(t._renderFrame);return t.renderFgEvents=R.memoizeRendering(n.renderSegs.bind(n),n.unrender.bind(n),[r]),t.renderEventSelection=R.memoizeRendering(n.selectByInstanceId.bind(n),n.unselectByInstanceId.bind(n),[t.renderFgEvents]),t.renderEventDrag=R.memoizeRendering(n.hideByHash.bind(n),n.showByHash.bind(n),[r]),t.renderEventResize=R.memoizeRendering(n.hideByHash.bind(n),n.showByHash.bind(n),[r]),t}var M,P=(t(k,M=a),k.prototype.attachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.dayTile.segContainerEl.appendChild(r.el)}},k.prototype.detachSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];R.removeElement(r.el)}},k);function k(e){var t=M.call(this)||this;return t.dayTile=e,t}var x=(H.prototype.renderHtml=function(e){var t=[];e.renderIntroHtml&&t.push(e.renderIntroHtml());for(var n=0,r=e.cells;n<r.length;n++){var i=r[n];t.push(_(i.date,e.dateProfile,this.context,i.htmlAttrs))}return e.cells.length||t.push('<td class="fc-day '+this.context.theme.getClass("widgetContent")+'"></td>'),"rtl"===this.context.options.dir&&t.reverse(),"<tr>"+t.join("")+"</tr>"},H);function H(e){this.context=e}function _(e,t,n,r){var i=n.dateEnv,o=n.theme,s=R.rangeContainsMarker(t.activeRange,e),a=R.getDayClasses(e,t,n);return a.unshift("fc-day",o.getClass("widgetContent")),'<td class="'+a.join(" ")+'"'+(s?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+(r?" "+r:"")+"></td>"}var O,N=R.createFormatter({day:"numeric"}),z=R.createFormatter({week:"numeric"}),L=(t(V,O=R.DateComponent),V.prototype.render=function(e,t){var n=e.cells;this.rowCnt=n.length,this.colCnt=n[0].length,this.renderCells(n,e.isRigid),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(t,e.dateSelectionSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize),this.segPopoverTile&&this.updateSegPopoverTile()},V.prototype.destroy=function(){O.prototype.destroy.call(this),this.renderCells.unrender()},V.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:R.addDays(n,1)}},V.prototype.updateSegPopoverTile=function(e,t){var n=this.props;this.segPopoverTile.receiveProps({date:e||this.segPopoverTile.props.date,fgSegs:t||this.segPopoverTile.props.fgSegs,eventSelection:n.eventSelection,eventDragInstances:n.eventDrag?n.eventDrag.affectedInstances:null,eventResizeInstances:n.eventResize?n.eventResize.affectedInstances:null},this.context)},V.prototype._renderCells=function(e,t){for(var n,r=this.context,i=r.calendar,o=r.view,s=r.isRtl,a=r.dateEnv,l=this.rowCnt,c=this.colCnt,d="",u=0;u<l;u++)d+=this.renderDayRowHtml(u,t);for(this.el.innerHTML=d,this.rowEls=R.findElements(this.el,".fc-row"),this.cellEls=R.findElements(this.el,".fc-day, .fc-disabled-day"),s&&this.cellEls.reverse(),this.rowPositions=new R.PositionCache(this.el,this.rowEls,!1,!0),this.colPositions=new R.PositionCache(this.el,this.cellEls.slice(0,c),!0,!1),u=0;u<l;u++)for(n=0;n<c;n++)i.publiclyTrigger("dayRender",[{date:a.toDate(e[u][n].date),el:this.getCellEl(u,n),view:o}]);this.isCellSizesDirty=!0},V.prototype._unrenderCells=function(){this.removeSegPopover()},V.prototype.renderDayRowHtml=function(e,t){var n=this.context.theme,r=["fc-row","fc-week",n.getClass("dayRow")];t&&r.push("fc-rigid");var i=new x(this.context);return'<div class="'+r.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+i.renderHtml({cells:this.props.cells[e],dateProfile:this.props.dateProfile,renderIntroHtml:this.renderProps.renderBgIntroHtml})+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},V.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.renderProps.cellWeekNumbersVisible||this.renderProps.colWeekNumbersVisible},V.prototype.getIsDayNumbersVisible=function(){return 1<this.rowCnt},V.prototype.renderNumberTrHtml=function(e){var t=this.context.isRtl,n=this.renderProps.renderNumberIntroHtml(e,this);return"<tr>"+(t?"":n)+this.renderNumberCellsHtml(e)+(t?n:"")+"</tr>"},V.prototype.renderNumberCellsHtml=function(e){for(var t,n=[],r=0;r<this.colCnt;r++)t=this.props.cells[e][r].date,n.push(this.renderNumberCellHtml(t));return this.context.isRtl&&n.reverse(),n.join("")},V.prototype.renderNumberCellHtml=function(e){var t,n,r=this.context,i=r.dateEnv,o=r.options,s="",a=R.rangeContainsMarker(this.props.dateProfile.activeRange,e),l=this.getIsDayNumbersVisible()&&a;return l||this.renderProps.cellWeekNumbersVisible?((t=R.getDayClasses(e,this.props.dateProfile,this.context)).unshift("fc-day-top"),this.renderProps.cellWeekNumbersVisible&&(n=i.weekDow),s+='<td class="'+t.join(" ")+'"'+(a?' data-date="'+i.formatIso(e,{omitTime:!0})+'"':"")+">",this.renderProps.cellWeekNumbersVisible&&e.getUTCDay()===n&&(s+=R.buildGotoAnchorHtml(o,i,{date:e,type:"week"},{class:"fc-week-number"},i.format(e,z))),l&&(s+=R.buildGotoAnchorHtml(o,i,e,{class:"fc-day-number"},i.format(e,N))),s+="</td>"):"<td></td>"},V.prototype.updateSize=function(e){var t=this.context.calendar,n=this.fillRenderer,r=this.eventRenderer,i=this.mirrorRenderer;(e||this.isCellSizesDirty||t.isEventsUpdated)&&(this.buildPositionCaches(),this.isCellSizesDirty=!1),n.computeSizes(e),r.computeSizes(e),i.computeSizes(e),n.assignSizes(e),r.assignSizes(e),i.assignSizes(e)},V.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildRowPositions()},V.prototype.buildColPositions=function(){this.colPositions.build()},V.prototype.buildRowPositions=function(){this.rowPositions.build(),this.rowPositions.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},V.prototype.positionToHit=function(e,t){var n=this.colPositions,r=this.rowPositions,i=n.leftToIndex(e),o=r.topToIndex(t);if(null!=o&&null!=i)return{row:o,col:i,dateSpan:{range:this.getCellRange(o,i),allDay:!0},dayEl:this.getCellEl(o,i),relativeRect:{left:n.lefts[i],right:n.rights[i],top:r.tops[o],bottom:r.bottoms[o]}}},V.prototype.getCellEl=function(e,t){return this.cellEls[e*this.colCnt+t]},V.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs))},V.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context))},V.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.fillRenderer.renderSegs("highlight",this.context,e.segs),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},V.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.fillRenderer.unrender("highlight",this.context),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},V.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},V.prototype.limitRows=function(e){for(var t,n=this.eventRenderer.rowStructs||[],r=0;r<n.length;r++)this.unlimitRow(r),!1!==(t=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(r)))&&this.limitRow(r,t)},V.prototype.computeRowLevelLimit=function(e){for(var t,n=this.rowEls[e].getBoundingClientRect().bottom,r=R.findChildren(this.eventRenderer.rowStructs[e].tbodyEl),i=0;i<r.length;i++)if((t=r[i]).classList.remove("fc-limited"),t.getBoundingClientRect().bottom>n)return i;return!1},V.prototype.limitRow=function(t,n){function e(e){for(;w<e;)(l=y.getCellSegs(t,w,n)).length&&(u=i[n-1][w],m=y.renderMoreLink(t,w,l),v=R.createElement("div",null,m),u.appendChild(v),D.push(v)),w++}var r,i,o,s,a,l,c,d,u,p,h,f,g,v,m,y=this,E=this.colCnt,S=this.context.isRtl,b=this.eventRenderer.rowStructs[t],D=[],w=0;if(n&&n<b.segLevels.length){for(r=b.segLevels[n-1],i=b.cellMatrix,(o=R.findChildren(b.tbodyEl).slice(n)).forEach(function(e){e.classList.add("fc-limited")}),s=0;s<r.length;s++){a=r[s];var T=S?E-1-a.lastCol:a.firstCol,C=S?E-1-a.firstCol:a.lastCol;for(e(T),d=[],c=0;w<=C;)l=this.getCellSegs(t,w,n),d.push(l),c+=l.length,w++;if(c){for(p=(u=i[n-1][T]).rowSpan||1,h=[],f=0;f<d.length;f++)g=R.createElement("td",{className:"fc-more-cell",rowSpan:p}),l=d[f],m=this.renderMoreLink(t,T+f,[a].concat(l)),v=R.createElement("div",null,m),g.appendChild(v),h.push(g),D.push(g);u.classList.add("fc-limited"),R.insertAfterElement(u,h),o.push(u)}}e(this.colCnt),b.moreEls=D,b.limitedEls=o}},V.prototype.unlimitRow=function(e){var t=this.eventRenderer.rowStructs[e];t.moreEls&&(t.moreEls.forEach(R.removeElement),t.moreEls=null),t.limitedEls&&(t.limitedEls.forEach(function(e){e.classList.remove("fc-limited")}),t.limitedEls=null)},V.prototype.renderMoreLink=function(c,d,u){var p=this,e=this.context,h=e.calendar,f=e.view,g=e.dateEnv,v=e.options,m=e.isRtl,t=R.createElement("a",{className:"fc-more"});return t.innerText=this.getMoreLinkText(u.length),t.addEventListener("click",function(e){var t=v.eventLimitClick,n=m?p.colCnt-d-1:d,r=p.props.cells[c][n].date,i=e.currentTarget,o=p.getCellEl(c,d),s=p.getCellSegs(c,d),a=p.resliceDaySegs(s,r),l=p.resliceDaySegs(u,r);"function"==typeof t&&(t=h.publiclyTrigger("eventLimitClick",[{date:g.toDate(r),allDay:!0,dayEl:o,moreEl:i,segs:a,hiddenSegs:l,jsEvent:e,view:f}])),"popover"===t?p.showSegPopover(c,d,i,a):"string"==typeof t&&h.zoomTo(r,t)}),t},V.prototype.showSegPopover=function(t,e,n,r){var i=this,o=this.context,s=o.calendar,a=o.view,l=o.theme,c=o.isRtl,d=c?this.colCnt-e-1:e,u=n.parentNode,p=1===this.rowCnt?a.el:this.rowEls[t],h={className:"fc-more-popover "+l.getClass("popover"),parentEl:a.el,top:R.computeRect(p).top,autoHide:!0,content:function(e){i.segPopoverTile=new C(e),i.updateSegPopoverTile(i.props.cells[t][d].date,r)},hide:function(){i.segPopoverTile.destroy(),i.segPopoverTile=null,i.segPopover.destroy(),i.segPopover=null}};c?h.right=R.computeRect(u).right+1:h.left=R.computeRect(u).left-1,this.segPopover=new f(h),this.segPopover.show(),s.releaseAfterSizingTriggers()},V.prototype.resliceDaySegs=function(e,t){for(var n={start:t,end:R.addDays(t,1)},r=[],i=0,o=e;i<o.length;i++){var s=o[i],a=s.eventRange,l=a.range,c=R.intersectRanges(l,n);c&&r.push(d({},s,{eventRange:{def:a.def,ui:d({},a.ui,{durationEditable:!1}),instance:a.instance,range:c},isStart:s.isStart&&c.start.valueOf()===l.start.valueOf(),isEnd:s.isEnd&&c.end.valueOf()===l.end.valueOf()}))}return r},V.prototype.getMoreLinkText=function(e){var t=this.context.options.eventLimitText;return"function"==typeof t?t(e):"+"+e+" "+t},V.prototype.getCellSegs=function(e,t,n){for(var r,i=this.eventRenderer.rowStructs[e].segMatrix,o=n||0,s=[];o<i.length;)(r=i[o][t])&&s.push(r),o++;return s},V);function V(e,t){var n=O.call(this,e)||this;n.bottomCoordPadding=0,n.isCellSizesDirty=!1,n.renderProps=t;var r=n.eventRenderer=new p(n),i=n.fillRenderer=new D(n);n.mirrorRenderer=new y(n);var o=n.renderCells=R.memoizeRendering(n._renderCells,n._unrenderCells);return n.renderBusinessHours=R.memoizeRendering(i.renderSegs.bind(i,"businessHours"),i.unrender.bind(i,"businessHours"),[o]),n.renderDateSelection=R.memoizeRendering(i.renderSegs.bind(i,"highlight"),i.unrender.bind(i,"highlight"),[o]),n.renderBgEvents=R.memoizeRendering(i.renderSegs.bind(i,"bgEvent"),i.unrender.bind(i,"bgEvent"),[o]),n.renderFgEvents=R.memoizeRendering(r.renderSegs.bind(r),r.unrender.bind(r),[o]),n.renderEventSelection=R.memoizeRendering(r.selectByInstanceId.bind(r),r.unselectByInstanceId.bind(r),[n.renderFgEvents]),n.renderEventDrag=R.memoizeRendering(n._renderEventDrag,n._unrenderEventDrag,[o]),n.renderEventResize=R.memoizeRendering(n._renderEventResize,n._unrenderEventResize,[o]),n}var B,A=R.createFormatter({week:"numeric"}),U=(t(F,B=R.View),F.prototype._processOptions=function(e){e.weekNumbers?e.weekNumbersWithinDays?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0):(this.colWeekNumbersVisible=!1,this.cellWeekNumbersVisible=!1)},F.prototype.render=function(e,t){B.prototype.render.call(this,e,t),this.processOptions(t.options),this.renderSkeleton(t)},F.prototype.destroy=function(){B.prototype.destroy.call(this),this.renderSkeleton.unrender()},F.prototype._renderSkeleton=function(e){this.el.classList.add("fc-dayGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new R.ScrollComponent("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-day-grid-container");var n=R.createElement("div",{className:"fc-day-grid"});t.appendChild(n),this.dayGrid=new L(n,{renderNumberIntroHtml:this.renderDayGridNumberIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:this.colWeekNumbersVisible,cellWeekNumbersVisible:this.cellWeekNumbersVisible})},F.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-dayGrid-view"),this.dayGrid.destroy(),this.scroller.destroy()},F.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'"></td></tr></tbody></table>'},F.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},F.prototype.hasRigidRows=function(){var e=this.context.options.eventLimit;return e&&"number"!=typeof e},F.prototype.updateSize=function(e,t,n){B.prototype.updateSize.call(this,e,t,n),this.dayGrid.updateSize(e)},F.prototype.updateBaseSize=function(e,t,n){var r,i,o=this.dayGrid,s=this.context.options.eventLimit,a=this.header?this.header.el:null;o.rowEls?(this.colWeekNumbersVisible&&(this.weekNumberWidth=R.matchCellWidths(R.findElements(this.el,".fc-week-number"))),this.scroller.clear(),a&&R.uncompensateScroll(a),o.removeSegPopover(),s&&"number"==typeof s&&o.limitRows(s),r=this.computeScrollerHeight(t),this.setGridHeight(r,n),s&&"number"!=typeof s&&o.limitRows(s),n||(this.scroller.setHeight(r),((i=this.scroller.getScrollbarWidths()).left||i.right)&&(a&&R.compensateScroll(a,i),r=this.computeScrollerHeight(t),this.scroller.setHeight(r)),this.scroller.lockOverflow(i))):n||(r=this.computeScrollerHeight(t),this.scroller.setHeight(r))},F.prototype.computeScrollerHeight=function(e){return e-R.subtractInnerElHeight(this.el,this.scroller.el)},F.prototype.setGridHeight=function(e,t){this.context.options.monthMode?(t&&(e*=this.dayGrid.rowCnt/6),R.distributeHeight(this.dayGrid.rowEls,e,!t)):t?R.undistributeHeight(this.dayGrid.rowEls):R.distributeHeight(this.dayGrid.rowEls,e,!0)},F.prototype.computeDateScroll=function(e){return{top:0}},F.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},F.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},F);function F(){var s=null!==B&&B.apply(this,arguments)||this;return s.processOptions=R.memoize(s._processOptions),s.renderSkeleton=R.memoizeRendering(s._renderSkeleton,s._unrenderSkeleton),s.renderHeadIntroHtml=function(){var e=s.context,t=e.theme,n=e.options;return s.colWeekNumbersVisible?'<th class="fc-week-number '+t.getClass("widgetHeader")+'" '+s.weekNumberStyleAttr()+"><span>"+R.htmlEscape(n.weekLabel)+"</span></th>":""},s.renderDayGridNumberIntroHtml=function(e,t){var n=s.context,r=n.options,i=n.dateEnv,o=t.props.cells[e][0].date;return s.colWeekNumbersVisible?'<td class="fc-week-number" '+s.weekNumberStyleAttr()+">"+R.buildGotoAnchorHtml(r,i,{date:o,type:"week",forceOff:1===t.colCnt},i.format(o,A))+"</td>":""},s.renderDayGridBgIntroHtml=function(){var e=s.context.theme;return s.colWeekNumbersVisible?'<td class="fc-week-number '+e.getClass("widgetContent")+'" '+s.weekNumberStyleAttr()+"></td>":""},s.renderDayGridIntroHtml=function(){return s.colWeekNumbersVisible?'<td class="fc-week-number" '+s.weekNumberStyleAttr()+"></td>":""},s}U.prototype.dateProfileGeneratorClass=n;var G,j=(t(W,G=R.DateComponent),W.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.dayGrid.el})},W.prototype.destroy=function(){G.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},W.prototype.render=function(e,t){var n=this.dayGrid,r=e.dateProfile,i=e.dayTable;n.receiveProps(d({},this.slicer.sliceProps(e,r,e.nextDayThreshold,t.calendar,n,i),{dateProfile:r,cells:i.cells,isRigid:e.isRigid}),t)},W.prototype.buildPositionCaches=function(){this.dayGrid.buildPositionCaches()},W.prototype.queryHit=function(e,t){var n=this.dayGrid.positionToHit(e,t);if(n)return{component:this.dayGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},W);function W(e){var t=G.call(this,e.el)||this;return t.slicer=new q,t.dayGrid=e,t}var Y,q=(t(Z,Y=R.Slicer),Z.prototype.sliceRange=function(e,t){return t.sliceRange(e)},Z);function Z(){return null!==Y&&Y.apply(this,arguments)||this}var X,K=(t(J,X=U),J.prototype.render=function(e,t){X.prototype.render.call(this,e,t);var n=this.props.dateProfile,r=this.dayTable=this.buildDayTable(n,e.dateProfileGenerator);this.header&&this.header.receiveProps({dateProfile:n,dates:r.headerDates,datesRepDistinctDays:1===r.rowCnt,renderIntroHtml:this.renderHeadIntroHtml},t),this.simpleDayGrid.receiveProps({dateProfile:n,dayTable:r,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isRigid:this.hasRigidRows(),nextDayThreshold:this.context.nextDayThreshold},t)},J.prototype._renderSkeleton=function(e){X.prototype._renderSkeleton.call(this,e),e.options.columnHeader&&(this.header=new R.DayHeader(this.el.querySelector(".fc-head-container"))),this.simpleDayGrid=new j(this.dayGrid)},J.prototype._unrenderSkeleton=function(){X.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleDayGrid.destroy()},J);function J(){var e=null!==X&&X.apply(this,arguments)||this;return e.buildDayTable=R.memoize(Q),e}function Q(e,t){var n=new R.DaySeries(e.renderRange,t);return new R.DayTable(n,/year|month|week/.test(e.currentRangeUnit))}var $=R.createPlugin({defaultView:"dayGridMonth",views:{dayGrid:K,dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});e.AbstractDayGridView=U,e.DayBgRow=x,e.DayGrid=L,e.DayGridSlicer=q,e.DayGridView=K,e.SimpleDayGrid=j,e.buildBasicDayTable=Q,e.default=$,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarList={},e.FullCalendar)}(this,function(e,p){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var n,i=(t(o,n=p.FgEventRenderer),o.prototype.attachSegs=function(e){e.length?this.listView.renderSegList(e):this.listView.renderEmptyMessage()},o.prototype.detachSegs=function(){},o.prototype.renderSegHtml=function(e){var t=this.context,n=t.theme,r=t.options,i=e.eventRange,o=i.def,s=i.instance,a=i.ui,l=o.url,c=["fc-list-item"].concat(a.classNames),d=a.backgroundColor,u=o.allDay?p.getAllDayHtml(r):p.isMultiDayRange(i.range)?e.isStart?p.htmlEscape(this._getTimeText(s.range.start,e.end,!1)):e.isEnd?p.htmlEscape(this._getTimeText(e.start,s.range.end,!1)):p.getAllDayHtml(r):p.htmlEscape(this.getTimeText(i));return l&&c.push("fc-has-url"),'<tr class="'+c.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+n.getClass("widgetContent")+'">'+(u||"")+"</td>":"")+'<td class="fc-list-item-marker '+n.getClass("widgetContent")+'"><span class="fc-event-dot"'+(d?' style="background-color:'+d+'"':"")+'></span></td><td class="fc-list-item-title '+n.getClass("widgetContent")+'"><a'+(l?' href="'+p.htmlEscape(l)+'"':"")+">"+p.htmlEscape(o.title||"")+"</a></td></tr>"},o.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:"short"}},o);function o(e){var t=n.call(this)||this;return t.listView=e,t}var s,a=(t(l,s=p.View),l.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.el})},l.prototype.render=function(e,t){s.prototype.render.call(this,e,t);var n=this.computeDateVars(e.dateProfile),r=n.dayDates,i=n.dayRanges;this.dayDates=r,this.renderSkeleton(t),this.renderContent(t,this.eventStoreToSegs(e.eventStore,e.eventUiBases,i))},l.prototype.destroy=function(){s.prototype.destroy.call(this),this.renderSkeleton.unrender(),this.renderContent.unrender(),this.context.calendar.unregisterInteractiveComponent(this)},l.prototype._renderSkeleton=function(e){var t=e.theme;this.el.classList.add("fc-list-view");for(var n=0,r=(t.getClass("listView")||"").split(" ");n<r.length;n++){var i=r[n];i&&this.el.classList.add(i)}this.scroller=new p.ScrollComponent("hidden","auto"),this.el.appendChild(this.scroller.el),this.contentEl=this.scroller.el},l.prototype._unrenderSkeleton=function(){this.scroller.destroy()},l.prototype.updateSize=function(e,t,n){s.prototype.updateSize.call(this,e,t,n),this.eventRenderer.computeSizes(e),this.eventRenderer.assignSizes(e),this.scroller.clear(),n||this.scroller.setHeight(this.computeScrollerHeight(t))},l.prototype.computeScrollerHeight=function(e){return e-p.subtractInnerElHeight(this.el,this.scroller.el)},l.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(p.sliceEventStore(e,t,this.props.dateProfile.activeRange,this.context.nextDayThreshold).fg,n)},l.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];n.push.apply(n,this.eventRangeToSegs(o,t))}return n},l.prototype.eventRangeToSegs=function(e,t){for(var n,r,i=this.context,o=i.dateEnv,s=i.nextDayThreshold,a=e.range,l=e.def.allDay,c=[],d=0;d<t.length;d++)if((n=p.intersectRanges(a,t[d]))&&(r={component:this,eventRange:e,start:n.start,end:n.end,isStart:e.isStart&&n.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&n.end.valueOf()===a.end.valueOf(),dayIndex:d},c.push(r),!r.isEnd&&!l&&d+1<t.length&&a.end<o.add(t[d+1].start,s))){r.end=a.end,r.isEnd=!0;break}return c},l.prototype.renderEmptyMessage=function(){this.contentEl.innerHTML='<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+p.htmlEscape(this.context.options.noEventsMessage)+"</div></div></div>"},l.prototype.renderSegList=function(e){for(var t,n,r=this.context.theme,i=this.groupSegsByDay(e),o=p.htmlToElement('<table class="fc-list-table '+r.getClass("tableList")+'"><tbody></tbody></table>'),s=o.querySelector("tbody"),a=0;a<i.length;a++)if(t=i[a])for(s.appendChild(this.buildDayHeaderRow(this.dayDates[a])),t=this.eventRenderer.sortEventSegs(t),n=0;n<t.length;n++)s.appendChild(t[n].el);this.contentEl.innerHTML="",this.contentEl.appendChild(o)},l.prototype.groupSegsByDay=function(e){for(var t,n=[],r=0;r<e.length;r++)(n[(t=e[r]).dayIndex]||(n[t.dayIndex]=[])).push(t);return n},l.prototype.buildDayHeaderRow=function(e){var t=this.context,n=t.theme,r=t.dateEnv,i=t.options,o=p.createFormatter(i.listDayFormat),s=p.createFormatter(i.listDayAltFormat);return p.createElement("tr",{className:"fc-list-heading","data-date":r.formatIso(e,{omitTime:!0})},'<td class="'+(n.getClass("tableListHeading")||n.getClass("widgetHeader"))+'" colspan="3">'+(o?p.buildGotoAnchorHtml(i,r,e,{class:"fc-list-heading-main"},p.htmlEscape(r.format(e,o))):"")+(s?p.buildGotoAnchorHtml(i,r,e,{class:"fc-list-heading-alt"},p.htmlEscape(r.format(e,s))):"")+"</td>")},l);function l(e,t){var n=s.call(this,e,t)||this;n.computeDateVars=p.memoize(c),n.eventStoreToSegs=p.memoize(n._eventStoreToSegs),n.renderSkeleton=p.memoizeRendering(n._renderSkeleton,n._unrenderSkeleton);var r=n.eventRenderer=new i(n);return n.renderContent=p.memoizeRendering(r.renderSegs.bind(r),r.unrender.bind(r),[n.renderSkeleton]),n}function c(e){for(var t=p.startOfDay(e.renderRange.start),n=e.renderRange.end,r=[],i=[];t<n;)r.push(t),i.push({start:t,end:p.addDays(t,1)}),t=p.addDays(t,1);return{dayDates:r,dayRanges:i}}a.prototype.fgSegSelector=".fc-list-item";var d=p.createPlugin({views:{list:{class:a,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDayAltFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDayAltFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDayAltFormat:{weekday:"long"}}}});e.ListView=a,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core"),require("@fullcalendar/daygrid")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core","@fullcalendar/daygrid"],t):t((e=e||self).FullCalendarTimeGrid={},e.FullCalendar,e.FullCalendarDayGrid)}(this,function(e,v,d){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=(t(n,i=v.FgEventRenderer),n.prototype.renderSegs=function(e,t,n){i.prototype.renderSegs.call(this,e,t,n),this.fullTimeFormat=v.createFormatter({hour:"numeric",minute:"2-digit",separator:this.context.options.defaultRangeSeparator})},n.prototype.attachSegs=function(e,t){for(var n=this.timeGrid.groupSegsByCol(e),r=0;r<n.length;r++)n[r]=this.sortEventSegs(n[r]);this.segsByCol=n,this.timeGrid.attachSegsByCol(n,this.timeGrid.fgContainerEls)},n.prototype.detachSegs=function(e){e.forEach(function(e){v.removeElement(e.el)}),this.segsByCol=null},n.prototype.computeSegSizes=function(e){var t=this.timeGrid,n=this.segsByCol,r=t.colCnt;if(t.computeSegVerticals(e),n)for(var i=0;i<r;i++)this.computeSegHorizontals(n[i])},n.prototype.assignSegSizes=function(e){var t=this.timeGrid,n=this.segsByCol,r=t.colCnt;if(t.assignSegVerticals(e),n)for(var i=0;i<r;i++)this.assignSegCss(n[i])},n.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",meridiem:!1}},n.prototype.computeDisplayEventEnd=function(){return!0},n.prototype.renderSegHtml=function(e,t){var n,r,i,o,s,a=e.eventRange,l=a.def,c=a.ui,d=l.allDay,u=v.computeEventDraggable(this.context,l,c),p=e.isStart&&v.computeEventStartResizable(this.context,l,c),h=e.isEnd&&v.computeEventEndResizable(this.context,l,c),f=this.getSegClasses(e,u,p||h,t),g=v.cssToStr(this.getSkinCss(c));return f.unshift("fc-time-grid-event"),v.isMultiDayRange(a.range)?(e.isStart||e.isEnd)&&(n=e.start,r=e.end,i=this._getTimeText(n,r,d),o=this._getTimeText(n,r,d,this.fullTimeFormat),s=this._getTimeText(n,r,d,null,!1)):(i=this.getTimeText(a),o=this.getTimeText(a,this.fullTimeFormat),s=this.getTimeText(a,null,!1)),'<a class="'+f.join(" ")+'"'+(l.url?' href="'+v.htmlEscape(l.url)+'"':"")+(g?' style="'+g+'"':"")+'><div class="fc-content">'+(i?'<div class="fc-time" data-start="'+v.htmlEscape(s)+'" data-full="'+v.htmlEscape(o)+'"><span>'+v.htmlEscape(i)+"</span></div>":"")+(l.title?'<div class="fc-title">'+v.htmlEscape(l.title)+"</div>":"")+"</div>"+(h?'<div class="fc-resizer fc-end-resizer"></div>':"")+"</a>"},n.prototype.computeSegHorizontals=function(e){var t,n,r=function(e){var t,n,r,i=[];for(t=0;t<e.length;t++){for(n=e[t],r=0;r<i.length&&a(n,i[r]).length;r++);n.level=r,(i[r]||(i[r]=[])).push(n)}return i}(e);if(function(e){var t,n,r,i,o;for(t=0;t<e.length;t++)for(n=e[t],r=0;r<n.length;r++)for((i=n[r]).forwardSegs=[],o=t+1;o<e.length;o++)a(i,e[o],i.forwardSegs)}(r),t=r[0]){for(n=0;n<t.length;n++)o(t[n]);for(n=0;n<t.length;n++)this.computeSegForwardBack(t[n],0,0)}},n.prototype.computeSegForwardBack=function(e,t,n){var r,i=e.forwardSegs;if(void 0===e.forwardCoord)for(i.length?(this.sortForwardSegs(i),this.computeSegForwardBack(i[0],t+1,n),e.forwardCoord=i[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-n)/(t+1),r=0;r<i.length;r++)this.computeSegForwardBack(i[r],0,e.forwardCoord)},n.prototype.sortForwardSegs=function(e){var t=e.map(c),n=[{field:"forwardPressure",order:-1},{field:"backwardCoord",order:1}].concat(this.context.eventOrderSpecs);return t.sort(function(e,t){return v.compareByFieldSpecs(e,t,n)}),t.map(function(e){return e._seg})},n.prototype.assignSegCss=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];v.applyStyle(r.el,this.generateSegCss(r)),0<r.level&&r.el.classList.add("fc-time-grid-event-inset"),r.eventRange.def.title&&r.bottom-r.top<30&&r.el.classList.add("fc-short")}},n.prototype.generateSegCss=function(e){var t,n,r=this.context.options.slotEventOverlap,i=e.backwardCoord,o=e.forwardCoord,s=this.timeGrid.generateSegVerticalCss(e),a=this.context.isRtl;return r&&(o=Math.min(1,i+2*(o-i))),n=a?(t=1-o,i):(t=i,1-o),s.zIndex=e.level+1,s.left=100*t+"%",s.right=100*n+"%",r&&e.forwardPressure&&(s[a?"marginLeft":"marginRight"]=20),s},n);function n(e){var t=i.call(this)||this;return t.timeGrid=e,t}function o(e){var t,n,r=e.forwardSegs,i=0;if(void 0===e.forwardPressure){for(t=0;t<r.length;t++)o(n=r[t]),i=Math.max(i,1+n.forwardPressure);e.forwardPressure=i}}function a(e,t,n){void 0===n&&(n=[]);for(var r,i,o=0;o<t.length;o++)r=e,i=t[o],r.bottom>i.top&&r.top<i.bottom&&n.push(t[o]);return n}function c(e){var t=v.buildSegCompareObj(e);return t.forwardPressure=e.forwardPressure,t.backwardCoord=e.backwardCoord,t}var u,p=(t(h,u=s),h.prototype.attachSegs=function(e,t){this.segsByCol=this.timeGrid.groupSegsByCol(e),this.timeGrid.attachSegsByCol(this.segsByCol,this.timeGrid.mirrorContainerEls),this.sourceSeg=t.sourceSeg},h.prototype.generateSegCss=function(e){var t,n=u.prototype.generateSegCss.call(this,e),r=this.sourceSeg;return r&&r.col===e.col&&(t=u.prototype.generateSegCss.call(this,r),n.left=t.left,n.right=t.right,n.marginLeft=t.marginLeft,n.marginRight=t.marginRight),n},h);function h(){return null!==u&&u.apply(this,arguments)||this}var f,g=(t(m,f=v.FillRenderer),m.prototype.attachSegs=function(e,t){var n,r=this.timeGrid;return"bgEvent"===e?n=r.bgContainerEls:"businessHours"===e?n=r.businessContainerEls:"highlight"===e&&(n=r.highlightContainerEls),r.attachSegsByCol(r.groupSegsByCol(t),n),t.map(function(e){return e.el})},m.prototype.computeSegSizes=function(e){this.timeGrid.computeSegVerticals(e)},m.prototype.assignSegSizes=function(e){this.timeGrid.assignSegVerticals(e)},m);function m(e){var t=f.call(this)||this;return t.timeGrid=e,t}var y,E=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],S=(t(b,y=v.DateComponent),b.prototype._processOptions=function(e){var t,n=e.slotDuration,r=e.snapDuration,n=v.createDuration(n),r=r?v.createDuration(r):n,i=v.wholeDivideDurations(n,r);null===i&&(r=n,i=1),this.slotDuration=n,this.snapDuration=r,this.snapsPerSlot=i,t=e.slotLabelFormat,Array.isArray(t)&&(t=t[t.length-1]),this.labelFormat=v.createFormatter(t||{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),t=e.slotLabelInterval,this.labelInterval=t?v.createDuration(t):this.computeLabelInterval(n)},b.prototype.computeLabelInterval=function(e){for(var t,n,r=E.length-1;0<=r;r--)if(t=v.createDuration(E[r]),null!==(n=v.wholeDivideDurations(t,e))&&1<n)return t;return e},b.prototype.render=function(e,t){this.processOptions(t.options);var n=e.cells;this.colCnt=n.length,this.renderSkeleton(t.theme),this.renderSlats(e.dateProfile),this.renderColumns(e.cells,e.dateProfile),this.renderBusinessHours(t,e.businessHourSegs),this.renderDateSelection(e.dateSelectionSegs),this.renderFgEvents(t,e.fgEventSegs),this.renderBgEvents(t,e.bgEventSegs),this.renderEventSelection(e.eventSelection),this.renderEventDrag(e.eventDrag),this.renderEventResize(e.eventResize)},b.prototype.destroy=function(){y.prototype.destroy.call(this),this.renderSlats.unrender(),this.renderColumns.unrender(),this.renderSkeleton.unrender()},b.prototype.updateSize=function(e){var t=this.fillRenderer,n=this.eventRenderer,r=this.mirrorRenderer;(e||this.isSlatSizesDirty)&&(this.buildSlatPositions(),this.isSlatSizesDirty=!1),(e||this.isColSizesDirty)&&(this.buildColPositions(),this.isColSizesDirty=!1),t.computeSizes(e),n.computeSizes(e),r.computeSizes(e),t.assignSizes(e),n.assignSizes(e),r.assignSizes(e)},b.prototype._renderSkeleton=function(e){var t=this.el;t.innerHTML='<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+e.getClass("widgetHeader")+'" style="display:none" />',this.rootBgContainerEl=t.querySelector(".fc-bg"),this.slatContainerEl=t.querySelector(".fc-slats"),this.bottomRuleEl=t.querySelector(".fc-divider")},b.prototype._renderSlats=function(e){var t=this.context.theme;this.slatContainerEl.innerHTML='<table class="'+t.getClass("tableGrid")+'">'+this.renderSlatRowHtml(e)+"</table>",this.slatEls=v.findElements(this.slatContainerEl,"tr"),this.slatPositions=new v.PositionCache(this.el,this.slatEls,!1,!0),this.isSlatSizesDirty=!0},b.prototype.renderSlatRowHtml=function(e){for(var t,n,r,i=this.context,o=i.dateEnv,s=i.theme,a=i.isRtl,l="",c=v.startOfDay(e.renderRange.start),d=e.minTime,u=v.createDuration(0);v.asRoughMs(d)<v.asRoughMs(e.maxTime);)t=o.add(c,d),n=null!==v.wholeDivideDurations(u,this.labelInterval),r='<td class="fc-axis fc-time '+s.getClass("widgetContent")+'">'+(n?"<span>"+v.htmlEscape(o.format(t,this.labelFormat))+"</span>":"")+"</td>",l+='<tr data-time="'+v.formatIsoTimeString(t)+'"'+(n?"":' class="fc-minor"')+">"+(a?"":r)+'<td class="'+s.getClass("widgetContent")+'"></td>'+(a?r:"")+"</tr>",d=v.addDurations(d,this.slotDuration),u=v.addDurations(u,this.slotDuration);return l},b.prototype._renderColumns=function(e,t){var n=this.context,r=n.calendar,i=n.view,o=n.isRtl,s=n.theme,a=n.dateEnv,l=new d.DayBgRow(this.context);this.rootBgContainerEl.innerHTML='<table class="'+s.getClass("tableGrid")+'">'+l.renderHtml({cells:e,dateProfile:t,renderIntroHtml:this.renderProps.renderBgIntroHtml})+"</table>",this.colEls=v.findElements(this.el,".fc-day, .fc-disabled-day");for(var c=0;c<this.colCnt;c++)r.publiclyTrigger("dayRender",[{date:a.toDate(e[c].date),el:this.colEls[c],view:i}]);o&&this.colEls.reverse(),this.colPositions=new v.PositionCache(this.el,this.colEls,!0,!1),this.renderContentSkeleton(),this.isColSizesDirty=!0},b.prototype._unrenderColumns=function(){this.unrenderContentSkeleton()},b.prototype.renderContentSkeleton=function(){var e,t=this.context.isRtl,n=[];n.push(this.renderProps.renderIntroHtml());for(var r=0;r<this.colCnt;r++)n.push('<td><div class="fc-content-col"><div class="fc-event-container fc-mirror-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>');t&&n.reverse(),e=this.contentSkeletonEl=v.htmlToElement('<div class="fc-content-skeleton"><table><tr>'+n.join("")+"</tr></table></div>"),this.colContainerEls=v.findElements(e,".fc-content-col"),this.mirrorContainerEls=v.findElements(e,".fc-mirror-container"),this.fgContainerEls=v.findElements(e,".fc-event-container:not(.fc-mirror-container)"),this.bgContainerEls=v.findElements(e,".fc-bgevent-container"),this.highlightContainerEls=v.findElements(e,".fc-highlight-container"),this.businessContainerEls=v.findElements(e,".fc-business-container"),t&&(this.colContainerEls.reverse(),this.mirrorContainerEls.reverse(),this.fgContainerEls.reverse(),this.bgContainerEls.reverse(),this.highlightContainerEls.reverse(),this.businessContainerEls.reverse()),this.el.appendChild(e)},b.prototype.unrenderContentSkeleton=function(){v.removeElement(this.contentSkeletonEl)},b.prototype.groupSegsByCol=function(e){for(var t=[],n=0;n<this.colCnt;n++)t.push([]);for(n=0;n<e.length;n++)t[e[n].col].push(e[n]);return t},b.prototype.attachSegsByCol=function(e,t){for(var n,r,i=0;i<this.colCnt;i++)for(n=e[i],r=0;r<n.length;r++)t[i].appendChild(n[r].el)},b.prototype.getNowIndicatorUnit=function(){return"minute"},b.prototype.renderNowIndicator=function(e,t){if(this.colContainerEls){for(var n,r=this.computeDateTop(t),i=[],o=0;o<e.length;o++){var s=v.createElement("div",{className:"fc-now-indicator fc-now-indicator-line"});s.style.top=r+"px",this.colContainerEls[e[o].col].appendChild(s),i.push(s)}0<e.length&&((n=v.createElement("div",{className:"fc-now-indicator fc-now-indicator-arrow"})).style.top=r+"px",this.contentSkeletonEl.appendChild(n),i.push(n)),this.nowIndicatorEls=i}},b.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.forEach(v.removeElement),this.nowIndicatorEls=null)},b.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.getBoundingClientRect().height},b.prototype.computeDateTop=function(e,t){return t=t||v.startOfDay(e),this.computeTimeTop(v.createDuration(e.valueOf()-t.valueOf()))},b.prototype.computeTimeTop=function(e){var t,n,r=this.slatEls.length,i=this.props.dateProfile,o=(e.milliseconds-v.asRoughMs(i.minTime))/v.asRoughMs(this.slotDuration),o=Math.max(0,o);return o=Math.min(r,o),t=Math.floor(o),n=o-(t=Math.min(t,r-1)),this.slatPositions.tops[t]+this.slatPositions.getHeight(t)*n},b.prototype.computeSegVerticals=function(e){for(var t,n,r=this.context.options.timeGridEventMinHeight,i=0;i<e.length;i++)t=e[i],n=this.props.cells[t.col].date,t.top=this.computeDateTop(t.start,n),t.bottom=Math.max(t.top+r,this.computeDateTop(t.end,n))},b.prototype.assignSegVerticals=function(e){for(var t,n=0;n<e.length;n++)t=e[n],v.applyStyle(t.el,this.generateSegVerticalCss(t))},b.prototype.generateSegVerticalCss=function(e){return{top:e.top,bottom:-e.bottom}},b.prototype.buildPositionCaches=function(){this.buildColPositions(),this.buildSlatPositions()},b.prototype.buildColPositions=function(){this.colPositions.build()},b.prototype.buildSlatPositions=function(){this.slatPositions.build()},b.prototype.positionToHit=function(e,t){var n=this.context.dateEnv,r=this.snapsPerSlot,i=this.slatPositions,o=this.colPositions,s=o.leftToIndex(e),a=i.topToIndex(t);if(null!=s&&null!=a){var l=i.tops[a],c=i.getHeight(a),d=(t-l)/c,u=a*r+Math.floor(d*r),p=this.props.cells[s].date,h=v.addDurations(this.props.dateProfile.minTime,v.multiplyDuration(this.snapDuration,u)),f=n.add(p,h);return{col:s,dateSpan:{range:{start:f,end:n.add(f,this.snapDuration)},allDay:!1},dayEl:this.colEls[s],relativeRect:{left:o.lefts[s],right:o.rights[s],top:l,bottom:l+c}}}},b.prototype._renderEventDrag=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),e.isEvent?this.mirrorRenderer.renderSegs(this.context,e.segs,{isDragging:!0,sourceSeg:e.sourceSeg}):this.fillRenderer.renderSegs("highlight",this.context,e.segs))},b.prototype._unrenderEventDrag=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),e.isEvent?this.mirrorRenderer.unrender(this.context,e.segs,{isDragging:!0,sourceSeg:e.sourceSeg}):this.fillRenderer.unrender("highlight",this.context))},b.prototype._renderEventResize=function(e){e&&(this.eventRenderer.hideByHash(e.affectedInstances),this.mirrorRenderer.renderSegs(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},b.prototype._unrenderEventResize=function(e){e&&(this.eventRenderer.showByHash(e.affectedInstances),this.mirrorRenderer.unrender(this.context,e.segs,{isResizing:!0,sourceSeg:e.sourceSeg}))},b.prototype._renderDateSelection=function(e){e&&(this.context.options.selectMirror?this.mirrorRenderer.renderSegs(this.context,e,{isSelecting:!0}):this.fillRenderer.renderSegs("highlight",this.context,e))},b.prototype._unrenderDateSelection=function(e){e&&(this.context.options.selectMirror?this.mirrorRenderer.unrender(this.context,e,{isSelecting:!0}):this.fillRenderer.unrender("highlight",this.context))},b);function b(e,t){var n=y.call(this,e)||this;n.isSlatSizesDirty=!1,n.isColSizesDirty=!1,n.processOptions=v.memoize(n._processOptions),n.renderSkeleton=v.memoizeRendering(n._renderSkeleton),n.renderSlats=v.memoizeRendering(n._renderSlats,null,[n.renderSkeleton]),n.renderColumns=v.memoizeRendering(n._renderColumns,n._unrenderColumns,[n.renderSkeleton]),n.renderProps=t;var r=n.renderColumns,i=n.eventRenderer=new s(n),o=n.fillRenderer=new g(n);return n.mirrorRenderer=new p(n),n.renderBusinessHours=v.memoizeRendering(o.renderSegs.bind(o,"businessHours"),o.unrender.bind(o,"businessHours"),[r]),n.renderDateSelection=v.memoizeRendering(n._renderDateSelection,n._unrenderDateSelection,[r]),n.renderFgEvents=v.memoizeRendering(i.renderSegs.bind(i),i.unrender.bind(i),[r]),n.renderBgEvents=v.memoizeRendering(o.renderSegs.bind(o,"bgEvent"),o.unrender.bind(o,"bgEvent"),[r]),n.renderEventSelection=v.memoizeRendering(i.selectByInstanceId.bind(i),i.unselectByInstanceId.bind(i),[n.renderFgEvents]),n.renderEventDrag=v.memoizeRendering(n._renderEventDrag,n._unrenderEventDrag,[r]),n.renderEventResize=v.memoizeRendering(n._renderEventResize,n._unrenderEventResize,[r]),n}var D,w=(t(T,D=v.Splitter),T.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},T.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},T.prototype.getKeysForEventDef=function(e){return e.allDay?v.hasBgRendering(e)?["timed","allDay"]:["allDay"]:["timed"]},T);function T(){return null!==D&&D.apply(this,arguments)||this}var C,R=v.createFormatter({week:"short"}),I=(t(M,C=v.View),M.prototype.render=function(e,t){C.prototype.render.call(this,e,t),this.renderSkeleton(t)},M.prototype.destroy=function(){C.prototype.destroy.call(this),this.renderSkeleton.unrender()},M.prototype._renderSkeleton=function(e){this.el.classList.add("fc-timeGrid-view"),this.el.innerHTML=this.renderSkeletonHtml(),this.scroller=new v.ScrollComponent("hidden","auto");var t=this.scroller.el;this.el.querySelector(".fc-body > tr > td").appendChild(t),t.classList.add("fc-time-grid-container");var n,r=v.createElement("div",{className:"fc-time-grid"});t.appendChild(r),this.timeGrid=new S(r,{renderBgIntroHtml:this.renderTimeGridBgIntroHtml,renderIntroHtml:this.renderTimeGridIntroHtml}),e.options.allDaySlot&&(this.dayGrid=new d.DayGrid(this.el.querySelector(".fc-day-grid"),{renderNumberIntroHtml:this.renderDayGridIntroHtml,renderBgIntroHtml:this.renderDayGridBgIntroHtml,renderIntroHtml:this.renderDayGridIntroHtml,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1}),n=this.el.querySelector(".fc-divider"),this.dayGrid.bottomCoordPadding=n.getBoundingClientRect().height)},M.prototype._unrenderSkeleton=function(){this.el.classList.remove("fc-timeGrid-view"),this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),this.scroller.destroy()},M.prototype.renderSkeletonHtml=function(){var e=this.context,t=e.theme,n=e.options;return'<table class="'+t.getClass("tableGrid")+'">'+(n.columnHeader?'<thead class="fc-head"><tr><td class="fc-head-container '+t.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+t.getClass("widgetContent")+'">'+(n.allDaySlot?'<div class="fc-day-grid"></div><hr class="fc-divider '+t.getClass("widgetHeader")+'" />':"")+"</td></tr></tbody></table>"},M.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},M.prototype.unrenderNowIndicator=function(){this.timeGrid.unrenderNowIndicator()},M.prototype.updateSize=function(e,t,n){C.prototype.updateSize.call(this,e,t,n),this.timeGrid.updateSize(e),this.dayGrid&&this.dayGrid.updateSize(e)},M.prototype.updateBaseSize=function(e,t,n){var r,i,o,s,a=this;this.axisWidth=v.matchCellWidths(v.findElements(this.el,".fc-axis")),this.timeGrid.colEls?(s=v.findElements(this.el,".fc-row").filter(function(e){return!a.scroller.el.contains(e)}),this.timeGrid.bottomRuleEl.style.display="none",this.scroller.clear(),s.forEach(v.uncompensateScroll),this.dayGrid&&(this.dayGrid.removeSegPopover(),(r=this.context.options.eventLimit)&&"number"!=typeof r&&(r=5),r&&this.dayGrid.limitRows(r)),n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(s.forEach(function(e){v.compensateScroll(e,o)}),i=this.computeScrollerHeight(t),this.scroller.setHeight(i)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<i&&(this.timeGrid.bottomRuleEl.style.display=""))):n||(i=this.computeScrollerHeight(t),this.scroller.setHeight(i))},M.prototype.computeScrollerHeight=function(e){return e-v.subtractInnerElHeight(this.el,this.scroller.el)},M.prototype.computeDateScroll=function(e){var t=this.timeGrid.computeTimeTop(e);return(t=Math.ceil(t))&&t++,{top:t}},M.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},M.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},M.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},M);function M(){var a=null!==C&&C.apply(this,arguments)||this;return a.splitter=new w,a.renderSkeleton=v.memoizeRendering(a._renderSkeleton,a._unrenderSkeleton),a.renderHeadIntroHtml=function(){var e,t=a.context,n=t.theme,r=t.dateEnv,i=t.options,o=a.props.dateProfile.renderRange,s=v.diffDays(o.start,o.end);return i.weekNumbers?(e=r.format(o.start,R),'<th class="fc-axis fc-week-number '+n.getClass("widgetHeader")+'" '+a.axisStyleAttr()+">"+v.buildGotoAnchorHtml(i,r,{date:o.start,type:"week",forceOff:1<s},v.htmlEscape(e))+"</th>"):'<th class="fc-axis '+n.getClass("widgetHeader")+'" '+a.axisStyleAttr()+"></th>"},a.renderTimeGridBgIntroHtml=function(){return'<td class="fc-axis '+a.context.theme.getClass("widgetContent")+'" '+a.axisStyleAttr()+"></td>"},a.renderTimeGridIntroHtml=function(){return'<td class="fc-axis" '+a.axisStyleAttr()+"></td>"},a.renderDayGridBgIntroHtml=function(){var e=a.context,t=e.theme,n=e.options;return'<td class="fc-axis '+t.getClass("widgetContent")+'" '+a.axisStyleAttr()+"><span>"+v.getAllDayHtml(n)+"</span></td>"},a.renderDayGridIntroHtml=function(){return'<td class="fc-axis" '+a.axisStyleAttr()+"></td>"},a}I.prototype.usesMinMaxTime=!0;var P,k=(t(x,P=v.DateComponent),x.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.timeGrid.el})},x.prototype.destroy=function(){P.prototype.destroy.call(this),this.context.calendar.unregisterInteractiveComponent(this)},x.prototype.render=function(e,t){var n=this.context.dateEnv,r=e.dateProfile,i=e.dayTable,o=this.dayRanges=this.buildDayRanges(i,r,n);this.timeGrid.receiveProps(l({},this.slicer.sliceProps(e,r,null,t.calendar,this.timeGrid,o),{dateProfile:r,cells:i.cells[0]}),t)},x.prototype.renderNowIndicator=function(e){this.timeGrid.renderNowIndicator(this.slicer.sliceNowDate(e,this.timeGrid,this.dayRanges),e)},x.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches()},x.prototype.queryHit=function(e,t){var n=this.timeGrid.positionToHit(e,t);if(n)return{component:this.timeGrid,dateSpan:n.dateSpan,dayEl:n.dayEl,rect:{left:n.relativeRect.left,right:n.relativeRect.right,top:n.relativeRect.top,bottom:n.relativeRect.bottom},layer:0}},x);function x(e){var t=P.call(this,e.el)||this;return t.buildDayRanges=v.memoize(H),t.slicer=new O,t.timeGrid=e,t}function H(e,t,n){for(var r=[],i=0,o=e.headerDates;i<o.length;i++){var s=o[i];r.push({start:n.add(s,t.minTime),end:n.add(s,t.maxTime)})}return r}var _,O=(t(N,_=v.Slicer),N.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r++){var i=v.intersectRanges(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n},N);function N(){return null!==_&&_.apply(this,arguments)||this}var z,L=(t(V,z=I),V.prototype.render=function(e,t){z.prototype.render.call(this,e,t);var n=this.props,r=n.dateProfile,i=n.dateProfileGenerator,o=t.nextDayThreshold,s=this.buildDayTable(r,i),a=this.splitter.splitProps(e);this.header&&this.header.receiveProps({dateProfile:r,dates:s.headerDates,datesRepDistinctDays:!0,renderIntroHtml:this.renderHeadIntroHtml},t),this.simpleTimeGrid.receiveProps(l({},a.timed,{dateProfile:r,dayTable:s}),t),this.simpleDayGrid&&this.simpleDayGrid.receiveProps(l({},a.allDay,{dateProfile:r,dayTable:s,nextDayThreshold:o,isRigid:!1}),t),this.startNowIndicator(r,i)},V.prototype._renderSkeleton=function(e){z.prototype._renderSkeleton.call(this,e),e.options.columnHeader&&(this.header=new v.DayHeader(this.el.querySelector(".fc-head-container"))),this.simpleTimeGrid=new k(this.timeGrid),this.dayGrid&&(this.simpleDayGrid=new d.SimpleDayGrid(this.dayGrid))},V.prototype._unrenderSkeleton=function(){z.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.simpleTimeGrid.destroy(),this.simpleDayGrid&&this.simpleDayGrid.destroy()},V.prototype.renderNowIndicator=function(e){this.simpleTimeGrid.renderNowIndicator(e)},V);function V(){var e=null!==z&&z.apply(this,arguments)||this;return e.buildDayTable=v.memoize(B),e}function B(e,t){var n=new v.DaySeries(e.renderRange,t);return new v.DayTable(n,!1)}var A=v.createPlugin({defaultView:"timeGridWeek",views:{timeGrid:{class:L,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});e.AbstractTimeGridView=I,e.TimeGrid=S,e.TimeGridSlicer=O,e.TimeGridView=L,e.buildDayRanges=H,e.buildDayTable=B,e.default=A,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarInteraction={},e.FullCalendar)}(this,function(e,E){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};E.config.touchMouseIgnoreWait=500;var n=0,i=0,o=!1,a=(s.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),--i||window.removeEventListener("touchmove",l,{passive:!1})},s.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!E.elementClosest(n,this.handleSelector)||(this.subjectEl=t,this.downEl=n,this.isDragging=!0,this.wasTouchScroll=!1))},s.prototype.cleanup=function(){o=!1,this.isDragging=!1,this.subjectEl=null,this.downEl=null,this.destroyScrollWatch()},s.prototype.querySubjectEl=function(e){return this.selector?E.elementClosest(e.target,this.selector):this.containerEl},s.prototype.shouldIgnoreMouse=function(){return n||this.isTouchDragging},s.prototype.cancelTouchScroll=function(){this.isDragging&&(o=!0)},s.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},s.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},s.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},s.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},s.prototype.createEventFromTouch=function(e,t){var n,r=e.touches,i=0,o=0,s=r&&r.length?(n=r[0].pageX,r[0].pageY):(n=e.pageX,e.pageY);return t?(this.origPageX=n,this.origPageY=s):(i=n-this.origPageX,o=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:s,deltaX:i,deltaY:o}},s);function s(e){var r=this;this.subjectEl=null,this.downEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){var t,n;r.shouldIgnoreMouse()||(0!==(n=e).button||n.ctrlKey)||!r.tryStart(e)||(t=r.createEventFromMouse(e,!0),r.emitter.trigger("pointerdown",t),r.initScrollWatch(t),r.shouldIgnoreMove||document.addEventListener("mousemove",r.handleMouseMove),document.addEventListener("mouseup",r.handleMouseUp))},this.handleMouseMove=function(e){var t=r.createEventFromMouse(e);r.recordCoords(t),r.emitter.trigger("pointermove",t)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",r.handleMouseMove),document.removeEventListener("mouseup",r.handleMouseUp),r.emitter.trigger("pointerup",r.createEventFromMouse(e)),r.cleanup()},this.handleTouchStart=function(e){var t,n;r.tryStart(e)&&(r.isTouchDragging=!0,t=r.createEventFromTouch(e,!0),r.emitter.trigger("pointerdown",t),r.initScrollWatch(t),n=e.target,r.shouldIgnoreMove||n.addEventListener("touchmove",r.handleTouchMove),n.addEventListener("touchend",r.handleTouchEnd),n.addEventListener("touchcancel",r.handleTouchEnd),window.addEventListener("scroll",r.handleTouchScroll,!0))},this.handleTouchMove=function(e){var t=r.createEventFromTouch(e);r.recordCoords(t),r.emitter.trigger("pointermove",t)},this.handleTouchEnd=function(e){var t;r.isDragging&&((t=e.target).removeEventListener("touchmove",r.handleTouchMove),t.removeEventListener("touchend",r.handleTouchEnd),t.removeEventListener("touchcancel",r.handleTouchEnd),window.removeEventListener("scroll",r.handleTouchScroll,!0),r.emitter.trigger("pointerup",r.createEventFromTouch(e)),r.cleanup(),r.isTouchDragging=!1,n++,setTimeout(function(){n--},E.config.touchMouseIgnoreWait))},this.handleTouchScroll=function(){r.wasTouchScroll=!0},this.handleScroll=function(e){var t,n;r.shouldIgnoreMove||(t=window.pageXOffset-r.prevScrollX+r.prevPageX,n=window.pageYOffset-r.prevScrollY+r.prevPageY,r.emitter.trigger("pointermove",{origEvent:e,isTouch:r.isTouchDragging,subjectEl:r.subjectEl,pageX:t,pageY:n,deltaX:t-r.origPageX,deltaY:n-r.origPageY}))},this.containerEl=e,this.emitter=new E.EmitterMixin,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),i++||window.addEventListener("touchmove",l,{passive:!1})}function l(e){o&&e.preventDefault()}var c=(d.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},d.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},d.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},d.prototype.stop=function(e,t){function n(){r.cleanup(),t()}var r=this;e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)},d.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",E.applyStyle(n,{left:r.left,top:r.top}),E.whenTransitionDone(n,function(){n.style.transition="",e()})},d.prototype.cleanup=function(){this.mirrorEl&&(E.removeElement(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},d.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&E.applyStyle(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},d.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).classList.add("fc-unselectable"),t.classList.add("fc-dragging"),E.applyStyle(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},d);function d(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}var u,p=(t(h,u=E.ScrollController),h.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},h.prototype.getScrollTop=function(){return this.scrollTop},h.prototype.getScrollLeft=function(){return this.scrollLeft},h.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},h.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},h.prototype.getClientWidth=function(){return this.clientWidth},h.prototype.getClientHeight=function(){return this.clientHeight},h.prototype.getScrollWidth=function(){return this.scrollWidth},h.prototype.getScrollHeight=function(){return this.scrollHeight},h.prototype.handleScrollChange=function(){},h);function h(e,t){var n=u.call(this)||this;return n.handleScroll=function(){n.scrollTop=n.scrollController.getScrollTop(),n.scrollLeft=n.scrollController.getScrollLeft(),n.handleScrollChange()},n.scrollController=e,n.doesListening=t,n.scrollTop=n.origScrollTop=e.getScrollTop(),n.scrollLeft=n.origScrollLeft=e.getScrollLeft(),n.scrollWidth=e.getScrollWidth(),n.scrollHeight=e.getScrollHeight(),n.clientWidth=e.getClientWidth(),n.clientHeight=e.getClientHeight(),n.clientRect=n.computeClientRect(),n.doesListening&&n.getEventTarget().addEventListener("scroll",n.handleScroll),n}var f,g=(t(v,f=p),v.prototype.getEventTarget=function(){return this.scrollController.el},v.prototype.computeClientRect=function(){return E.computeInnerRect(this.scrollController.el)},v);function v(e,t){return f.call(this,new E.ElementScrollController(e),t)||this}var m,y=(t(b,m=p),b.prototype.getEventTarget=function(){return window},b.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},b.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},b);function b(e){return m.call(this,new E.WindowScrollController,e)||this}var D="function"==typeof performance?performance.now:Date.now,w=(T.prototype.start=function(e,t){this.isEnabled&&(this.scrollCaches=this.buildCaches(),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},T.prototype.handleMove=function(e,t){var n,r,i,o;this.isEnabled&&(n=e-window.pageXOffset,r=t-window.pageYOffset,i=null===this.pointerScreenY?0:r-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX,i<0?this.everMovedUp=!0:0<i&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:0<o&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(D())))},T.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++)t[e].destroy();this.scrollCaches=null}},T.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},T.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,i=r-e.distance,o=i*i/(r*r)*this.maxVelocity*t,s=1;switch(e.name){case"left":s=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*s);break;case"top":s=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*s)}},T.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,i=0,o=this.scrollCaches;i<o.length;i++){var s=o[i],a=s.clientRect,l=e-a.left,c=a.right-e,d=t-a.top,u=a.bottom-t;0<=l&&0<=c&&0<=d&&0<=u&&(d<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>d)&&(r={scrollCache:s,name:"top",distance:d}),u<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>u)&&(r={scrollCache:s,name:"bottom",distance:u}),l<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>l)&&(r={scrollCache:s,name:"left",distance:l}),c<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"right",distance:c}))}return r},T.prototype.buildCaches=function(){return this.queryScrollEls().map(function(e){return e===window?new y(!1):new g(e,!1)})},T.prototype.queryScrollEls=function(){for(var e=[],t=0,n=this.scrollQuery;t<n.length;t++){var r=n[t];"object"==typeof r?e.push(r):e.push.apply(e,Array.prototype.slice.call(document.querySelectorAll(r)))}return e},T);function T(){var n=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){var e,t;n.isAnimating&&((e=n.computeBestEdge(n.pointerScreenX+window.pageXOffset,n.pointerScreenY+window.pageYOffset))?(t=D(),n.handleSide(e,(t-n.msSinceRequest)/1e3),n.requestAnimation(t)):n.isAnimating=!1)}}var C,R=(t(I,C=E.ElementDragging),I.prototype.destroy=function(){this.pointer.destroy()},I.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null,t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},I.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},I.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},I.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},I.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},I.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},I.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},I.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},I.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},I.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},I);function I(e){var i=C.call(this,e)||this;i.delay=null,i.minDistance=0,i.touchScrollAllowed=!0,i.mirrorNeedsRevert=!1,i.isInteracting=!1,i.isDragging=!1,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,i.delayTimeoutId=null,i.onPointerDown=function(e){i.isDragging||(i.isInteracting=!0,i.isDelayEnded=!1,i.isDistanceSurpassed=!1,E.preventSelection(document.body),E.preventContextMenu(document.body),e.isTouch||e.origEvent.preventDefault(),i.emitter.trigger("pointerdown",e),i.pointer.shouldIgnoreMove||(i.mirror.setIsVisible(!1),i.mirror.start(e.subjectEl,e.pageX,e.pageY),i.startDelay(e),i.minDistance||i.handleDistanceSurpassed(e)))},i.onPointerMove=function(e){var t,n,r;i.isInteracting&&(i.emitter.trigger("pointermove",e),i.isDistanceSurpassed||(t=i.minDistance)*t<=(n=e.deltaX)*n+(r=e.deltaY)*r&&i.handleDistanceSurpassed(e),i.isDragging&&("scroll"!==e.origEvent.type&&(i.mirror.handleMove(e.pageX,e.pageY),i.autoScroller.handleMove(e.pageX,e.pageY)),i.emitter.trigger("dragmove",e)))},i.onPointerUp=function(e){i.isInteracting&&(i.isInteracting=!1,E.allowSelection(document.body),E.allowContextMenu(document.body),i.emitter.trigger("pointerup",e),i.isDragging&&(i.autoScroller.stop(),i.tryStopDrag(e)),i.delayTimeoutId&&(clearTimeout(i.delayTimeoutId),i.delayTimeoutId=null))};var t=i.pointer=new a(e);return t.emitter.on("pointerdown",i.onPointerDown),t.emitter.on("pointermove",i.onPointerMove),t.emitter.on("pointerup",i.onPointerUp),i.mirror=new c,i.autoScroller=new w,i}var M=(P.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++)t[e].destroy()},P.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},P.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},P.prototype.isWithinClipping=function(e,t){for(var n,r,i={left:e,top:t},o=0,s=this.scrollCaches;o<s.length;o++){var a=s[o];if(n=a.getEventTarget(),"HTML"!==(r=n.tagName)&&"BODY"!==r&&!E.pointInsideRect(i,a.clientRect))return!1}return!0},P);function P(e){this.origRect=E.computeRect(e),this.scrollCaches=E.getClippingParents(e).map(function(e){return new g(e,!0)})}var k=(x.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl;i!==document&&(t=E.computeRect(i),r=E.constrainPoint(r,t));var o,s=this.initialHit=this.queryHitForOffset(r.left,r.top);s?(this.useSubjectCenter&&t&&(o=E.intersectRects(t,s.rect))&&(r=E.getRectCenter(o)),this.coordAdjust=E.diffPoints(r,n)):this.coordAdjust={left:0,top:0}},x.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&H(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},x.prototype.prepareHits=function(){this.offsetTrackers=E.mapHash(this.droppableStore,function(e){return e.component.buildPositionCaches(),new M(e.el)})},x.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},x.prototype.queryHitForOffset=function(e,t){var n=this.droppableStore,r=this.offsetTrackers,i=null;for(var o in n){var s,a,l,c,d,u,p,h,f=n[o].component,g=r[o];g.isWithinClipping(e,t)&&(l=e-(s=g.computeLeft()),c=t-(a=g.computeTop()),u=(d=g.origRect).right-d.left,p=d.bottom-d.top,0<=l&&l<u&&0<=c&&c<p&&(!(h=f.queryHit(l,c,u,p))||f.props.dateProfile&&!E.rangeContainsRange(f.props.dateProfile.activeRange,h.dateSpan.range)||i&&!(h.layer>i.layer)||(h.rect.left+=s,h.rect.right+=s,h.rect.top+=a,h.rect.bottom+=a,i=h)))}return i},x);function x(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new E.EmitterMixin}function H(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&E.isDateSpansEqual(e.dateSpan,t.dateSpan)}var _,O=(t(N,_=E.Interaction),N.prototype.destroy=function(){this.dragging.destroy()},N);function N(e){var a=_.call(this,e)||this;a.handlePointerDown=function(e){var t=a.dragging;t.setIgnoreMove(!a.component.isValidDateDownEl(t.pointer.downEl))},a.handleDragEnd=function(e){var t,n,r,i=a.component.context,o=i.calendar,s=i.view;a.dragging.pointer.wasTouchScroll||(n=(t=a.hitDragging).initialHit,r=t.finalHit,n&&r&&H(n,r)&&o.triggerDateClick(n.dateSpan,n.dayEl,s,e.origEvent))};var t=e.component;a.dragging=new R(t.el),a.dragging.autoScroller.isEnabled=!1;var n=a.hitDragging=new k(a.dragging,E.interactionSettingsToStore(e));return n.emitter.on("pointerdown",a.handlePointerDown),n.emitter.on("dragend",a.handleDragEnd),a}var z,L=(t(V,z=E.Interaction),V.prototype.destroy=function(){this.dragging.destroy()},V);function V(e){var o=z.call(this,e)||this;o.dragSelection=null,o.handlePointerDown=function(e){var t=o.component,n=o.dragging,r=t.context.options.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!r),n.delay=e.isTouch?function(e){var t=e.context.options,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null},o.handleDragStart=function(e){o.component.context.calendar.unselect(e)},o.handleHitUpdate=function(e,t){var n=o.component.context.calendar,r=null,i=!1;e&&((r=function(e,t,n){var r=e.dateSpan,i=t.dateSpan,o=[r.range.start,r.range.end,i.range.start,i.range.end];o.sort(E.compareNumbers);for(var s={},a=0,l=n;a<l.length;a++){var c=(0,l[a])(e,t);if(!1===c)return null;c&&S(s,c)}return s.range={start:o[0],end:o[3]},s.allDay=r.allDay,s}(o.hitDragging.initialHit,e,n.pluginSystem.hooks.dateSelectionTransformers))&&o.component.isDateSelectionValid(r)||(i=!0,r=null)),r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),i?E.disableCursor():E.enableCursor(),t||(o.dragSelection=r)},o.handlePointerUp=function(e){o.dragSelection&&(o.component.context.calendar.triggerDateSelect(o.dragSelection,e),o.dragSelection=null)};var t=e.component,n=t.context.options,r=o.dragging=new R(t.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;var i=o.hitDragging=new k(o.dragging,E.interactionSettingsToStore(e));return i.emitter.on("pointerdown",o.handlePointerDown),i.emitter.on("dragstart",o.handleDragStart),i.emitter.on("hitupdate",o.handleHitUpdate),i.emitter.on("pointerup",o.handlePointerUp),o}var B,A=(t(U,B=E.Interaction),U.prototype.destroy=function(){this.dragging.destroy()},U.prototype.displayDrag=function(e,t){var n=this.component.context.calendar,r=this.receivingCalendar;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:E.createEmptyEventStore(),isEvent:!0,origSeg:t.origSeg}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},U.prototype.clearDrag=function(){var e=this.component.context.calendar,t=this.receivingCalendar;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},U.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingCalendar=null,this.validMutation=null,this.mutatedRelevantEvents=null},U.SELECTOR=".fc-draggable, .fc-resizable",U);function U(e){var y=B.call(this,e)||this;y.subjectSeg=null,y.isDragging=!1,y.eventRange=null,y.relevantEvents=null,y.receivingCalendar=null,y.validMutation=null,y.mutatedRelevantEvents=null,y.handlePointerDown=function(e){var t=e.origEvent.target,n=y.component,r=y.dragging,i=r.mirror,o=n.context.options,s=n.context.calendar,a=y.subjectSeg=E.getElSeg(e.subjectEl),l=(y.eventRange=a.eventRange).instance.instanceId;y.relevantEvents=E.getRelevantEvents(s.state.eventStore,l),r.minDistance=e.isTouch?0:o.eventDragMinDistance,r.delay=e.isTouch&&l!==n.props.eventSelection?function(e){var t=e.context.options,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,i.parentNode=s.el,i.revertDuration=o.dragRevertDuration;var c=n.isValidSegDownEl(t)&&!E.elementClosest(t,".fc-resizer");r.setIgnoreMove(!c),y.isDragging=c&&e.subjectEl.classList.contains("fc-draggable")},y.handleDragStart=function(e){var t=y.component.context,n=t.calendar,r=y.eventRange,i=r.instance.instanceId;e.isTouch?i!==y.component.props.eventSelection&&n.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):n.dispatch({type:"UNSELECT_EVENT"}),y.isDragging&&(n.unselect(e),n.publiclyTrigger("eventDragStart",[{el:y.subjectSeg.el,event:new E.EventApi(n,r.def,r.instance),jsEvent:e.origEvent,view:t.view}]))},y.handleHitUpdate=function(e,t){var n,r,i,o,s,a,l,c,d,u;y.isDragging&&(n=y.relevantEvents,r=y.hitDragging.initialHit,i=y.component.context.calendar,s=o=d=null,a=!1,l={affectedEvents:n,mutatedEvents:E.createEmptyEventStore(),isEvent:!0,origSeg:y.subjectSeg},e&&(d=(c=e.component).context.calendar,u=c.context.options,i===d||u.editable&&u.droppable?(o=function(e,t,n){var r=e.dateSpan,i=t.dateSpan,o=r.range.start,s=i.range.start,a={};r.allDay!==i.allDay&&(a.allDay=i.allDay,a.hasEnd=t.component.context.options.allDayMaintainDuration,i.allDay&&(o=E.startOfDay(o)));var l=E.diffDates(o,s,e.component.context.dateEnv,e.component===t.component?e.component.largeUnit:null);l.milliseconds&&(a.allDay=!1);for(var c={datesDelta:l,standardProps:a},d=0,u=n;d<u.length;d++){(0,u[d])(c,e,t)}return c}(r,e,d.pluginSystem.hooks.eventDragMutationMassagers))&&(s=E.applyMutationToEventStore(n,d.eventUiBases,o,d),l.mutatedEvents=s,c.isInteractionValid(l)||(a=!0,s=o=null,l.mutatedEvents=E.createEmptyEventStore())):d=null),y.displayDrag(d,l),a?E.disableCursor():E.enableCursor(),t||(i===d&&H(r,e)&&(o=null),y.dragging.setMirrorNeedsRevert(!o),y.dragging.setMirrorIsVisible(!e||!document.querySelector(".fc-mirror")),y.receivingCalendar=d,y.validMutation=o,y.mutatedRelevantEvents=s))},y.handlePointerUp=function(){y.isDragging||y.cleanup()},y.handleDragEnd=function(e){if(y.isDragging){var t,n=y.component.context,r=n.calendar,i=n.view,o=y.receivingCalendar,s=y.validMutation,a=y.eventRange.def,l=y.eventRange.instance,c=new E.EventApi(r,a,l),d=y.relevantEvents,u=y.mutatedRelevantEvents,p=y.hitDragging.finalHit;if(y.clearDrag(),r.publiclyTrigger("eventDragStop",[{el:y.subjectSeg.el,event:c,jsEvent:e.origEvent,view:i}]),s)if(o===r){r.dispatch({type:"MERGE_EVENTS",eventStore:u});for(var h={},f=0,g=r.pluginSystem.hooks.eventDropTransformers;f<g.length;f++){var v=g[f];S(h,v(s,r))}var m=S({},h,{el:e.subjectEl,delta:s.datesDelta,oldEvent:c,event:new E.EventApi(r,u.defs[a.defId],l?u.instances[l.instanceId]:null),revert:function(){r.dispatch({type:"MERGE_EVENTS",eventStore:d})},jsEvent:e.origEvent,view:i});r.publiclyTrigger("eventDrop",[m])}else{o&&(r.publiclyTrigger("eventLeave",[{draggedEl:e.subjectEl,event:c,view:i}]),r.dispatch({type:"REMOVE_EVENT_INSTANCES",instances:y.mutatedRelevantEvents.instances}),o.dispatch({type:"MERGE_EVENTS",eventStore:y.mutatedRelevantEvents}),e.isTouch&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:l.instanceId}),t=S({},o.buildDatePointApi(p.dateSpan),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:p.component}),o.publiclyTrigger("drop",[t]),o.publiclyTrigger("eventReceive",[{draggedEl:e.subjectEl,event:new E.EventApi(o,u.defs[a.defId],u.instances[l.instanceId]),view:p.component}]))}else r.publiclyTrigger("_noEventDrop")}y.cleanup()};var t=y.component,n=t.context.options,r=y.dragging=new R(t.el);r.pointer.selector=U.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;var i=y.hitDragging=new k(y.dragging,E.interactionSettingsStore);return i.useSubjectCenter=e.useEventCenter,i.emitter.on("pointerdown",y.handlePointerDown),i.emitter.on("dragstart",y.handleDragStart),i.emitter.on("hitupdate",y.handleHitUpdate),i.emitter.on("pointerup",y.handlePointerUp),i.emitter.on("dragend",y.handleDragEnd),y}var F,G=(t(j,F=E.Interaction),j.prototype.destroy=function(){this.dragging.destroy()},j.prototype.querySeg=function(e){return E.getElSeg(E.elementClosest(e.subjectEl,this.component.fgSegSelector))},j);function j(e){var u=F.call(this,e)||this;u.draggingSeg=null,u.eventRange=null,u.relevantEvents=null,u.validMutation=null,u.mutatedRelevantEvents=null,u.handlePointerDown=function(e){var t=u.component,n=u.querySeg(e),r=u.eventRange=n.eventRange;u.dragging.minDistance=t.context.options.eventDragMinDistance,u.dragging.setIgnoreMove(!u.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&u.component.props.eventSelection!==r.instance.instanceId)},u.handleDragStart=function(e){var t=u.component.context,n=t.calendar,r=t.view,i=u.eventRange;u.relevantEvents=E.getRelevantEvents(n.state.eventStore,u.eventRange.instance.instanceId),u.draggingSeg=u.querySeg(e),n.unselect(),n.publiclyTrigger("eventResizeStart",[{el:u.draggingSeg.el,event:new E.EventApi(n,i.def,i.instance),jsEvent:e.origEvent,view:r}])},u.handleHitUpdate=function(e,t,n){var r=u.component.context.calendar,i=u.relevantEvents,o=u.hitDragging.initialHit,s=u.eventRange.instance,a=null,l=null,c=!1,d={affectedEvents:i,mutatedEvents:E.createEmptyEventStore(),isEvent:!0,origSeg:u.draggingSeg};e&&(a=function(e,t,n,r,i){for(var o=e.component.context.dateEnv,s=e.dateSpan.range.start,a=t.dateSpan.range.start,l=E.diffDates(s,a,o,e.component.largeUnit),c={},d=0,u=i;d<u.length;d++){var p=(0,u[d])(e,t);if(!1===p)return null;p&&S(c,p)}if(n){if(o.add(r.start,l)<r.end)return c.startDelta=l,c}else if(o.add(r.end,l)>r.start)return c.endDelta=l,c;return null}(o,e,n.subjectEl.classList.contains("fc-start-resizer"),s.range,r.pluginSystem.hooks.eventResizeJoinTransforms)),a&&(l=E.applyMutationToEventStore(i,r.eventUiBases,a,r),d.mutatedEvents=l,u.component.isInteractionValid(d)||(c=!0,l=a=null,d.mutatedEvents=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:d}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),c?E.disableCursor():E.enableCursor(),t||(a&&H(o,e)&&(a=null),u.validMutation=a,u.mutatedRelevantEvents=l)},u.handleDragEnd=function(e){var t=u.component.context,n=t.calendar,r=t.view,i=u.eventRange.def,o=u.eventRange.instance,s=new E.EventApi(n,i,o),a=u.relevantEvents,l=u.mutatedRelevantEvents;n.publiclyTrigger("eventResizeStop",[{el:u.draggingSeg.el,event:s,jsEvent:e.origEvent,view:r}]),u.validMutation?(n.dispatch({type:"MERGE_EVENTS",eventStore:l}),n.publiclyTrigger("eventResize",[{el:u.draggingSeg.el,startDelta:u.validMutation.startDelta||E.createDuration(0),endDelta:u.validMutation.endDelta||E.createDuration(0),prevEvent:s,event:new E.EventApi(n,l.defs[i.defId],o?l.instances[o.instanceId]:null),revert:function(){n.dispatch({type:"MERGE_EVENTS",eventStore:a})},jsEvent:e.origEvent,view:r}])):n.publiclyTrigger("_noEventResize"),u.draggingSeg=null,u.relevantEvents=null,u.validMutation=null};var t=e.component,n=u.dragging=new R(t.el);n.pointer.selector=".fc-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;var r=u.hitDragging=new k(u.dragging,E.interactionSettingsToStore(e));return r.emitter.on("pointerdown",u.handlePointerDown),r.emitter.on("dragstart",u.handleDragStart),r.emitter.on("hitupdate",u.handleHitUpdate),r.emitter.on("dragend",u.handleDragEnd),u}var W=(Y.prototype.destroy=function(){this.calendar.off("select",this.onSelect),this.documentPointer.destroy()},Y);function Y(e){var s=this;this.isRecentPointerDateSelect=!1,this.onSelect=function(e){e.jsEvent&&(s.isRecentPointerDateSelect=!0)},this.onDocumentPointerUp=function(e){var t,n,r=s.calendar,i=s.documentPointer,o=r.state;i.wasTouchScroll||(o.dateSelection&&!s.isRecentPointerDateSelect&&(t=r.viewOpt("unselectAuto"),n=r.viewOpt("unselectCancel"),!t||t&&E.elementClosest(i.downEl,n)||r.unselect(e)),o.eventSelection&&!E.elementClosest(i.downEl,A.SELECTOR)&&r.dispatch({type:"UNSELECT_EVENT"})),s.isRecentPointerDateSelect=!1},this.calendar=e;var t=this.documentPointer=new a(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerup",this.onDocumentPointerUp),e.on("select",this.onSelect)}var q=(Z.prototype.buildDragMeta=function(e){return"object"==typeof this.suppliedDragMeta?E.parseDragMeta(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?E.parseDragMeta(this.suppliedDragMeta(e)):(t=function(e,t){var n=E.config.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}(e,"event"),n=t?JSON.parse(t):{create:!1},E.parseDragMeta(n));var t,n},Z.prototype.displayDrag=function(e,t){var n=this.receivingCalendar;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},Z.prototype.clearDrag=function(){this.receivingCalendar&&this.receivingCalendar.dispatch({type:"UNSET_EVENT_DRAG"})},Z.prototype.canDropElOnCalendar=function(e,t){var n=t.opt("dropAccept");return"function"==typeof n?n(e):"string"!=typeof n||!n||Boolean(E.elementMatches(e,n))},Z);function Z(e,t){var l=this;this.receivingCalendar=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){l.dragMeta=l.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,n){var r=l.hitDragging.dragging,i=null,o=null,s=!1,a={affectedEvents:E.createEmptyEventStore(),mutatedEvents:E.createEmptyEventStore(),isEvent:l.dragMeta.create,origSeg:null};e&&(i=e.component.context.calendar,l.canDropElOnCalendar(n.subjectEl,i)&&(o=function(e,t,n){for(var r=S({},t.leftoverProps),i=0,o=n.pluginSystem.hooks.externalDefTransforms;i<o.length;i++){var s=o[i];S(r,s(e,t))}var a=E.parseEventDef(r,t.sourceId,e.allDay,n.opt("forceEventDuration")||Boolean(t.duration),n),l=e.range.start;e.allDay&&t.startTime&&(l=n.dateEnv.add(l,t.startTime));var c=t.duration?n.dateEnv.add(l,t.duration):n.getDefaultEventEnd(e.allDay,l),d=E.createEventInstance(a.defId,{start:l,end:c});return{def:a,instance:d}}(e.dateSpan,l.dragMeta,i),a.mutatedEvents=E.eventTupleToStore(o),(s=!E.isInteractionValid(a,i))&&(a.mutatedEvents=E.createEmptyEventStore(),o=null))),l.displayDrag(i,a),r.setMirrorIsVisible(t||!o||!document.querySelector(".fc-mirror")),s?E.disableCursor():E.enableCursor(),t||(r.setMirrorNeedsRevert(!o),l.receivingCalendar=i,l.droppableEvent=o)},this.handleDragEnd=function(e){var t,n,r,i,o=l.receivingCalendar,s=l.droppableEvent;l.clearDrag(),o&&s&&(n=(t=l.hitDragging.finalHit).component.context.view,r=l.dragMeta,i=S({},o.buildDatePointApi(t.dateSpan),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:n}),o.publiclyTrigger("drop",[i]),r.create&&(o.dispatch({type:"MERGE_EVENTS",eventStore:E.eventTupleToStore(s)}),e.isTouch&&o.dispatch({type:"SELECT_EVENT",eventInstanceId:s.instance.instanceId}),o.publiclyTrigger("eventReceive",[{draggedEl:e.subjectEl,event:new E.EventApi(o,s.def,s.instance),view:n}]))),l.receivingCalendar=null,l.droppableEvent=null};var n=this.hitDragging=new k(e,E.interactionSettingsStore);n.requireInitial=!1,n.emitter.on("dragstart",this.handleDragStart),n.emitter.on("hitupdate",this.handleHitUpdate),n.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}E.config.dataAttrPrefix="";var X=(K.prototype.destroy=function(){this.dragging.destroy()},K);function K(e,t){var o=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=o.dragging,n=o.settings,r=n.minDistance,i=n.longPressDelay;t.minDistance=null!=r?r:e.isTouch?0:E.globalDefaults.eventDragMinDistance,t.delay=e.isTouch?null!=i?i:E.globalDefaults.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&o.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&o.dragging.mirror.getMirrorEl().classList.add("fc-selected")},this.settings=t;var n=this.dragging=new R(e);n.touchScrollAllowed=!1,null!=t.itemSelector&&(n.pointer.selector=t.itemSelector),null!=t.appendTo&&(n.mirror.parentNode=t.appendTo),n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragstart",this.handleDragStart),new q(n,t.eventData)}var J,Q=(t($,J=E.ElementDragging),$.prototype.destroy=function(){this.pointer.destroy()},$.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},$.prototype.setMirrorIsVisible=function(e){var t;e?this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null):(t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null)&&((this.currentMirrorEl=t).style.visibility="hidden")},$);function $(e){var t=J.call(this,e)||this;t.shouldIgnoreMove=!1,t.mirrorSelector="",t.currentMirrorEl=null,t.handlePointerDown=function(e){t.emitter.trigger("pointerdown",e),t.shouldIgnoreMove||t.emitter.trigger("dragstart",e)},t.handlePointerMove=function(e){t.shouldIgnoreMove||t.emitter.trigger("dragmove",e)},t.handlePointerUp=function(e){t.emitter.trigger("pointerup",e),t.shouldIgnoreMove||t.emitter.trigger("dragend",e)};var n=t.pointer=new a(e);return n.emitter.on("pointerdown",t.handlePointerDown),n.emitter.on("pointermove",t.handlePointerMove),n.emitter.on("pointerup",t.handlePointerUp),t}var ee=(te.prototype.destroy=function(){this.dragging.destroy()},te);function te(e,t){var n=document;t=e===document||e instanceof Element?(n=e,t||{}):e||{};var r=this.dragging=new Q(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new q(r,t.eventData)}var ne=E.createPlugin({componentInteractions:[O,L,A,G],calendarInteractions:[W],elementDraggingImpl:R});e.Draggable=X,e.FeaturefulElementDragging=R,e.PointerDragging=a,e.ThirdPartyDraggable=ee,e.default=ne,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@fullcalendar/core")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core"],t):t((e=e||self).FullCalendarBootstrap={},e.FullCalendar)}(this,function(e,t){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var r,i,o,s=(r=t.Theme,n(i=l,o=r),i.prototype=null===o?Object.create(o):(a.prototype=o.prototype,new a),l);function a(){this.constructor=i}function l(){return null!==r&&r.apply(this,arguments)||this}s.prototype.classes={widget:"fc-bootstrap",tableGrid:"table-bordered",tableList:"table",tableListHeading:"table-active",buttonGroup:"btn-group",button:"btn btn-default",buttonActive:"active",today:"alert alert-info",popover:"card card-primary",popoverHeader:"card-header",popoverContent:"card-body",headerRow:"table-bordered",dayRow:"table-bordered",listView:"card card-primary"},s.prototype.baseIconClass="fal",s.prototype.iconClasses={close:"fa-times",prev:"fa-chevron-left",next:"fa-chevron-right",prevYear:"fa-angle-double-left",nextYear:"fa-angle-double-right"},s.prototype.iconOverrideOption="bootstrapFontAwesome",s.prototype.iconOverrideCustomButtonOption="bootstrapFontAwesome",s.prototype.iconOverridePrefix="fa-";var c=t.createPlugin({themeClasses:{bootstrap:s}});e.BootstrapTheme=s,e.default=c,Object.defineProperty(e,"__esModule",{value:!0})});

© KUJUNTI.ID