| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1571d450"],{"15d1":function(e,t,n){"use strict";var r,i,o,s,l=n("da65"),a=0,c=[],u=[],d=l["i"].__b,f=l["i"].__r,h=l["i"].diffed,p=l["i"].__c,g=l["i"].unmount;function m(e,t){l["i"].__h&&l["i"].__h(i,e,a||t),a=0;var n=i.__H||(i.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function b(e){return a=1,v(M,e)}function v(e,t,n){var o=m(r++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):M(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=i,!i.u)){i.u=!0;var s=i.shouldComponentUpdate;i.shouldComponentUpdate=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&o.__c.props===e)&&(!s||s.call(this,e,t,n))}}return o.__N||o.__}function y(e,t){var n=m(r++,3);!l["i"].__s&&I(n.__H,t)&&(n.__=e,n.i=t,i.__H.__h.push(n))}function A(e,t){var n=m(r++,4);!l["i"].__s&&I(n.__H,t)&&(n.__=e,n.i=t,i.__h.push(n))}function C(e){return a=5,_((function(){return{current:e}}),[])}function w(e,t,n){a=6,A((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function _(e,t){var n=m(r++,7);return I(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function S(e,t){return a=8,_((function(){return e}),t)}function E(e){var t=i.context[e.__c],n=m(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(i)),t.props.value):e.__}function O(e,t){l["i"].useDebugValue&&l["i"].useDebugValue(t?t(e):e)}function D(){var e=m(r++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function R(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(T),e.__H.__h=[]}catch(t){e.__H.__h=[],l["i"].__e(t,e.__v)}}l["i"].__b=function(e){i=null,d&&d(e)},l["i"].__r=function(e){f&&f(e),r=0;var t=(i=e.__c).__H;t&&(o===i?(t.__h=[],i.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0}))):(t.__h.forEach(j),t.__h.forEach(T),t.__h=[])),o=i},l["i"].diffed=function(e){h&&h(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&s===l["i"].requestAnimationFrame||((s=l["i"].requestAnimationFrame)||k)(R)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u}))),o=i=null},l["i"].__c=function(e,t){t.some((function(e){try{e.__h.forEach(j),e.__h=e.__h.filter((function(e){return!e.__||T(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l["i"].__e(n,e.__v)}})),p&&p(e,t)},l["i"].unmount=function(e){g&&g(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{j(e)}catch(e){t=e}})),n.__H=void 0,t&&l["i"].__e(t,n.__v))};var x="function"==typeof requestAnimationFrame;function k(e){var t,n=function(){clearTimeout(r),x&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);x&&(t=requestAnimationFrame(n))}function j(e){var t=i,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),i=t}function T(e){var t=i;e.__c=e.__(),i=t}function I(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function M(e,t){return"function"==typeof t?t(e):t}function N(e,t){for(var n in t)e[n]=t[n];return e}function P(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function H(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function B(e){this.props=e}function U(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:P(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Object(l["e"])(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}n.d(t,"a",(function(){return ne})),(B.prototype=new l["a"]).isPureReactComponent=!0,B.prototype.shouldComponentUpdate=function(e,t){return P(this.props,e)||P(this.state,t)};var W=l["i"].__b;l["i"].__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),W&&W(e)};var z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function L(e){function t(t){var n=N({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=z,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var G=function(e,t){return null==e?null:Object(l["k"])(Object(l["k"])(e).map(t))},F={map:G,forEach:G,count:function(e){return e?Object(l["k"])(e).length:0},only:function(e){var t=Object(l["k"])(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:l["k"]},V=l["i"].__e;l["i"].__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);V(e,t,n,r)};var Q=l["i"].unmount;function q(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=N({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return q(e,t,n)}))),e}function Z(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Z(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Y(){this.__u=0,this.t=null,this.__b=null}function J(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function X(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return Object(l["e"])(n,i)}return i.displayName="Lazy",i.__f=!0,i}function $(){this.u=null,this.o=null}l["i"].unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Q&&Q(e)},(Y.prototype=new l["a"]).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=J(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Z(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},a=!0===t.__h;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Y.prototype.componentWillUnmount=function(){this.t=[]},Y.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=q(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&Object(l["e"])(l["b"],null,e.fallback);return i&&(i.__h=null),[Object(l["e"])(l["b"],null,t.__a?null:e.children),i]};var K=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ee(e){return this.getChildContext=function(){return e.context},e.children}function te(e){var t=this,n=e.i;t.componentWillUnmount=function(){Object(l["j"])(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Object(l["j"])(Object(l["e"])(ee,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function ne(e,t){var n=Object(l["e"])(te,{__v:e,i:t});return n.containerInfo=t,n}($.prototype=new l["a"]).__a=function(e){var t=this,n=J(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),K(t,e,r)):i()};n?n(o):o()}},$.prototype.render=function(e){this.u=null,this.o=new Map;var t=Object(l["k"])(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},$.prototype.componentDidUpdate=$.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){K(e,n,t)}))};var re="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ie=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,oe="undefined"!=typeof document,se=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function le(e,t,n){return null==t.__k&&(t.textContent=""),Object(l["j"])(e,t),"function"==typeof n&&n(),e?e.__c:null}function ae(e,t,n){return Object(l["g"])(e,t),"function"==typeof n&&n(),e?e.__c:null}l["a"].prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(l["a"].prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ce=l["i"].event;function ue(){}function de(){return this.cancelBubble}function fe(){return this.defaultPrevented}l["i"].event=function(e){return ce&&(e=ce(e)),e.persist=ue,e.isPropagationStopped=de,e.isDefaultPrevented=fe,e.nativeEvent=e};var he,pe={configurable:!0,get:function(){return this.class}},ge=l["i"].vnode;l["i"].vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var o in r={},n){var s=n[o];oe&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==s||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!se(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&ie.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(l["k"])(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Object(l["k"])(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(pe.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",pe))}e.$$typeof=re,ge&&ge(e)};var me=l["i"].__r;l["i"].__r=function(e){me&&me(e),he=e.__c};var be={ReactCurrentDispatcher:{current:{readContext:function(e){return he.__n[e.__c].props.value}}}};function ve(e){return l["e"].bind(null,e)}function ye(e){return!!e&&e.$$typeof===re}function Ae(e){return ye(e)?l["c"].apply(null,arguments):e}function Ce(e){return!!e.__k&&(Object(l["j"])(null,e),!0)}function we(e){return e&&(e.base||1===e.nodeType&&e)||null}var _e=function(e,t){return e(t)},Se=function(e,t){return e(t)},Ee=l["b"];function Oe(e){e()}function De(e){return e}function Re(){return[!1,Oe]}var xe=A;function ke(e,t){var n=t(),r=b({h:{__:n,v:t}}),i=r[0].h,o=r[1];return A((function(){i.__=n,i.v=t,H(i.__,t())||o({h:i})}),[e,n,t]),y((function(){return H(i.__,i.v())||o({h:i}),e((function(){H(i.__,i.v())||o({h:i})}))}),[e]),n}l["e"],l["d"],l["f"],l["b"],l["a"]},"6b46":function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return Me})),n.d(t,"c",(function(){return Ft})),n.d(t,"d",(function(){return Kt})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return wt})),n.d(t,"g",(function(){return sr})),n.d(t,"h",(function(){return fn})),n.d(t,"i",(function(){return Nn})),n.d(t,"j",(function(){return Jn})),n.d(t,"k",(function(){return nr})),n.d(t,"l",(function(){return ht})),n.d(t,"m",(function(){return ot})),n.d(t,"n",(function(){return lt})),n.d(t,"o",(function(){return at})),n.d(t,"p",(function(){return ct})),n.d(t,"q",(function(){return ft})),n.d(t,"r",(function(){return Nt})),n.d(t,"s",(function(){return bn})),n.d(t,"t",(function(){return Gn})),n.d(t,"u",(function(){return Pt})),n.d(t,"v",(function(){return ur})),n.d(t,"w",(function(){return zt})),n.d(t,"x",(function(){return qt})),n.d(t,"y",(function(){return $r})),n.d(t,"z",(function(){return Er})),n.d(t,"A",(function(){return v})),n.d(t,"B",(function(){return Ar})),n.d(t,"C",(function(){return yt})),n.d(t,"D",(function(){return k})),n.d(t,"E",(function(){return Gt})),n.d(t,"F",(function(){return Lt})),n.d(t,"G",(function(){return D})),n.d(t,"H",(function(){return Kr})),n.d(t,"I",(function(){return ei})),n.d(t,"J",(function(){return ti})),n.d(t,"K",(function(){return ri})),n.d(t,"L",(function(){return Ht})),n.d(t,"M",(function(){return Xr})),n.d(t,"N",(function(){return Ne})),n.d(t,"O",(function(){return Pe})),n.d(t,"P",(function(){return oi})),n.d(t,"Q",(function(){return Ot})),n.d(t,"R",(function(){return Rt})),n.d(t,"S",(function(){return A})),n.d(t,"T",(function(){return C})),n.d(t,"U",(function(){return b})),n.d(t,"V",(function(){return _})),n.d(t,"W",(function(){return Wn})),n.d(t,"X",(function(){return Yr})),n.d(t,"Y",(function(){return Pn})),n.d(t,"Z",(function(){return Fn})),n.d(t,"ab",(function(){return li})),n.d(t,"bb",(function(){return ui})),n.d(t,"cb",(function(){return ci})),n.d(t,"db",(function(){return di})),n.d(t,"eb",(function(){return pi})),n.d(t,"fb",(function(){return $t})),n.d(t,"gb",(function(){return a})),n.d(t,"hb",(function(){return S})),n.d(t,"ib",(function(){return _r})),n.d(t,"jb",(function(){return pt})),n.d(t,"kb",(function(){return U})),n.d(t,"lb",(function(){return z})),n.d(t,"mb",(function(){return N})),n.d(t,"nb",(function(){return P})),n.d(t,"ob",(function(){return B})),n.d(t,"pb",(function(){return gn})),n.d(t,"qb",(function(){return rn})),n.d(t,"rb",(function(){return ao})),n.d(t,"sb",(function(){return _i})),n.d(t,"tb",(function(){return wi})),n.d(t,"ub",(function(){return cn})),n.d(t,"vb",(function(){return un})),n.d(t,"wb",(function(){return Di})),n.d(t,"xb",(function(){return Ii})),n.d(t,"yb",(function(){return Bi})),n.d(t,"zb",(function(){return Ui})),n.d(t,"Ab",(function(){return Li})),n.d(t,"Bb",(function(){return Fi})),n.d(t,"Cb",(function(){return Rr})),n.d(t,"Db",(function(){return Mr})),n.d(t,"Eb",(function(){return Pr})),n.d(t,"Fb",(function(){return Vi})),n.d(t,"Gb",(function(){return qi})),n.d(t,"Hb",(function(){return uo})),n.d(t,"Ib",(function(){return xi})),n.d(t,"Jb",(function(){return ce})),n.d(t,"Kb",(function(){return Re})),n.d(t,"Lb",(function(){return Y})),n.d(t,"Mb",(function(){return X})),n.d(t,"Nb",(function(){return te})),n.d(t,"Ob",(function(){return ne})),n.d(t,"Pb",(function(){return re})),n.d(t,"Qb",(function(){return ie})),n.d(t,"Rb",(function(){return je})),n.d(t,"Sb",(function(){return ke})),n.d(t,"Tb",(function(){return ki})),n.d(t,"Ub",(function(){return oe})),n.d(t,"Vb",(function(){return fo})),n.d(t,"Wb",(function(){return ho})),n.d(t,"Xb",(function(){return io})),n.d(t,"Yb",(function(){return oo})),n.d(t,"Zb",(function(){return so})),n.d(t,"ac",(function(){return ro})),n.d(t,"bc",(function(){return co})),n.d(t,"cc",(function(){return lo})),n.d(t,"dc",(function(){return po})),n.d(t,"ec",(function(){return mo})),n.d(t,"fc",(function(){return go})),n.d(t,"gc",(function(){return to})),n.d(t,"hc",(function(){return yi})),n.d(t,"ic",(function(){return no})),n.d(t,"jc",(function(){return bi})),n.d(t,"kc",(function(){return Ao})),n.d(t,"lc",(function(){return wo})),n.d(t,"mc",(function(){return xo})),n.d(t,"nc",(function(){return Do})),n.d(t,"oc",(function(){return Io})),n.d(t,"pc",(function(){return Po})),n.d(t,"qc",(function(){return nn})),n.d(t,"rc",(function(){return l})),n.d(t,"sc",(function(){return zo})),n.d(t,"tc",(function(){return V})),n.d(t,"uc",(function(){return st})),n.d(t,"vc",(function(){return At})),n.d(t,"wc",(function(){return M})),n.d(t,"xc",(function(){return vt})),n.d(t,"yc",(function(){return se})),n.d(t,"zc",(function(){return Zn})),n.d(t,"Ac",(function(){return W})),n.d(t,"Bc",(function(){return Lr})),n.d(t,"Cc",(function(){return bt})),n.d(t,"Dc",(function(){return gt})),n.d(t,"Ec",(function(){return an})),n.d(t,"Fc",(function(){return qn})),n.d(t,"Gc",(function(){return be})),n.d(t,"Hc",(function(){return qr})),n.d(t,"Ic",(function(){return J})),n.d(t,"Jc",(function(){return ae})),n.d(t,"Kc",(function(){return Vr})),n.d(t,"Lc",(function(){return Ct})),n.d(t,"Mc",(function(){return wr})),n.d(t,"Nc",(function(){return it})),n.d(t,"Oc",(function(){return me})),n.d(t,"Pc",(function(){return Ie}));var r=n("da65"),i=n("15d1");const o=[],s=new Map;function l(e){o.push(e),s.forEach(t=>{d(t,e)})}function a(e){e.isConnected&&e.getRootNode&&c(e.getRootNode())}function c(e){let t=s.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=h();n&&(t.nonce=n);const r=e===document?document.head:e,i=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,i)}s.set(e,t),u(t)}}function u(e){for(const t of o)d(e,t)}function d(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach((e,t)=>{e=e.trim(),e&&n.insertRule(e+"}",r+t)})}let f;function h(){return void 0===f&&(f=p()),f}function p(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}"undefined"!==typeof document&&c(document);var g=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';l(g);class m{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1;let t=n[e];t<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){this.isRunning=!0;while(this.isDirty)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function b(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(y(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function y(e,t){let n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function A(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i<n.length;i+=1){let e=n[i].querySelectorAll(t);for(let t=0;t<e.length;t+=1)r.push(e[t])}return r}function C(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i<n.length;i+=1){let e=n[i].children;for(let n=0;n<e.length;n+=1){let i=e[n];t&&!y(i,t)||r.push(i)}}return r}const w=/(top|left|right|bottom|width|height)$/i;function _(e,t){for(let n in t)S(e,n,t[n])}function S(e,t,n){null==n?e.style[t]="":"number"===typeof n&&w.test(t)?e.style[t]=n+"px":e.style[t]=n}function E(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}let O=0;function D(){return O+=1,"fc-dom-"+O}function R(e,t){return n=>{let r=v(n.target,e);r&&t.call(r,n,r)}}function x(e,t,n,r){let i=R(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function k(e,t,n,r){let i;return x(e,"mouseover",t,(e,t)=>{if(t!==i){i=t,n(e,t);let o=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",o)};t.addEventListener("mouseleave",o)}})}function j(e){return Object.assign({onClick:e},T(e))}function T(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let I=0;function M(){return I+=1,String(I)}function N(e){let 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+=1)n=i[t],"string"===typeof n?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 P(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=H(e,t,n[r]),i)return i;return 0}function H(e,t,n){return n.func?n.func(e,t):B(e[n.field],t[n.field])*(n.order||1)}function B(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 U(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function W(e,t,n){return"function"===typeof e?e(...t):"string"===typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function z(e){return e%1===0}function L(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const G=["years","months","days","milliseconds"],F=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function V(e,t){return"string"===typeof e?Q(e):"object"===typeof e&&e?q(e):"number"===typeof e?q({[t||"milliseconds"]:e}):null}function Q(e){let t=F.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(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}function q(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,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)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Z(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function Y(e){return e.years||e.months||e.milliseconds?0:e.days}function J(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function X(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function $(e){return ee(e)/365}function K(e){return ee(e)/30}function ee(e){return re(e)/864e5}function te(e){return re(e)/6e4}function ne(e){return re(e)/1e3}function re(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function ie(e,t){let n=null;for(let r=0;r<G.length;r+=1){let i=G[r];if(t[i]){let r=e[i]/t[i];if(!z(r)||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n}function oe(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%6e4!==0)return{unit:"second",value:t/1e3};if(t%36e5!==0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function se(e,t,n){if(e===t)return!0;let r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const le=["sun","mon","tue","wed","thu","fri","sat"];function ae(e,t){let n=Oe(e);return n[2]+=t,De(n)}function ce(e,t){let n=Oe(e);return n[6]+=t,De(n)}function ue(e,t){return(t.valueOf()-e.valueOf())/864e5}function de(e,t){return(t.valueOf()-e.valueOf())/36e5}function fe(e,t){return(t.valueOf()-e.valueOf())/6e4}function he(e,t){return(t.valueOf()-e.valueOf())/1e3}function pe(e,t){let n=be(e),r=be(t);return{years:0,months:0,days:Math.round(ue(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function ge(e,t){let n=me(e,t);return null!==n&&n%7===0?n/7:null}function me(e,t){return xe(e)===xe(t)?Math.round(ue(e,t)):null}function be(e){return De([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function ve(e){return De([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function ye(e){return De([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function Ae(e){return De([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function Ce(e,t,n){let r=e.getUTCFullYear(),i=we(e,r,t,n);if(i<1)return we(e,r-1,t,n);let o=we(e,r+1,t,n);return o>=1?Math.min(i,o):i}function we(e,t,n,r){let i=De([t,0,1+_e(t,n,r)]),o=be(e),s=Math.round(ue(i,o));return Math.floor(s/7)+1}function _e(e,t,n){let r=7+t-n,i=(7+De([e,0,r]).getUTCDay()-t)%7;return-i+r-1}function Se(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Ee(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 Oe(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function De(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Re(e){return!isNaN(e.valueOf())}function xe(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function ke(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Te(t,!0)))),r}function je(e){return e.toISOString().replace(/T.*$/,"")}function Te(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?`${n+U(i,2)}:${U(o,2)}`:`GMT${n}${i}${o?":"+U(o,2):""}`}function Ie(e,t,n){let r,i;return function(...o){if(r){if(!se(r,o)){n&&n(i);let r=e.apply(this,o);t&&t(r,i)||(i=r)}}else i=e.apply(this,o);return r=o,i}}function Me(e,t,n){let r,i;return o=>{if(r){if(!wt(r,o)){n&&n(i);let r=e.call(this,o);t&&t(r,i)||(i=r)}}else i=e.call(this,o);return r=o,i}}function Ne(e,t,n){let r=[],i=[];return o=>{let s=r.length,l=o.length,a=0;for(;a<s;a+=1)if(o[a]){if(!se(r[a],o[a])){n&&n(i[a]);let r=e.apply(this,o[a]);t&&t(r,i[a])||(i[a]=r)}}else n&&n(i[a]);for(;a<l;a+=1)i[a]=e.apply(this,o[a]);return r=o,i.splice(l),i}}function Pe(e,t,n){let r={},i={};return o=>{let s={};for(let l in o)if(i[l])if(se(r[l],o[l]))s[l]=i[l];else{n&&n(i[l]);let r=e.apply(this,o[l]);s[l]=t&&t(r,i[l])?i[l]:r}else s[l]=e.apply(this,o[l]);return r=o,i=s,s}}const He={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},Be={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ue=/\s*([ap])\.?m\.?/i,We=/,/g,ze=/\s+/g,Le=/\u200e/g,Ge=/UTC|GMT/;class Fe{constructor(e){let t={},n={},r=9;for(let i in e)if(i in He){n[i]=e[i];const t=He[i];t<9&&(r=Math.min(He[i],r))}else t[i]=e[i],i in Be&&(r=Math.min(Be[i],r));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=r,this.buildFormattingFunc=Ie(Ve)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:o}=this,s=Xe(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);let l=s;!(l>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(l=1);let a=this.format(e,n),c=this.format(t,n);if(a===c)return a;let u=$e(i,l),d=Ve(u,o,n),f=d(e),h=d(t),p=Ke(a,f,c,h),g=o.separator||r||n.defaultSeparator||"";return p?p.before+f+g+h+p.after:a+g+c}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Ve(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>Te(e.timeZoneOffset):0===r&&t.week?e=>Je(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):Qe(e,t,n)}function Qe(e,t,n){e=Object.assign({},e),t=Object.assign({},t),qe(e,t),e.timeZone="UTC";let r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return o=>{let s,{marker:l}=o;s=r&&!l.getUTCMinutes()?r:i;let a=s.format(l);return Ze(a,o,e,t,n)}}function qe(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}function Ze(e,t,n,r,i){return e=e.replace(Le,""),"short"===n.timeZoneName&&(e=Ye(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Te(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(We,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(Ue,"").trim():"narrow"===r.meridiem?e=e.replace(Ue,(e,t)=>t.toLocaleLowerCase()):"short"===r.meridiem?e=e.replace(Ue,(e,t)=>t.toLocaleLowerCase()+"m"):"lowercase"===r.meridiem&&(e=e.replace(Ue,e=>e.toLocaleLowerCase())),e=e.replace(ze," "),e=e.trim(),e}function Ye(e,t){let n=!1;return e=e.replace(Ge,()=>(n=!0,t)),n||(e+=" "+t),e}function Je(e,t,n,r,i){let o=[];return"long"===i?o.push(n):"short"!==i&&"narrow"!==i||o.push(t),"long"!==i&&"short"!==i||o.push(" "),o.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&o.reverse(),o.join("")}function Xe(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:xe(e)!==xe(t)?1:0}function $e(e,t){let n={};for(let r in e)(!(r in Be)||Be[r]<=t)&&(n[r]=e[r]);return n}function Ke(e,t,n,r){let i=0;while(i<e.length){let o=e.indexOf(t,i);if(-1===o)break;let s=e.substr(0,o);i=o+t.length;let l=e.substr(i),a=0;while(a<n.length){let e=n.indexOf(r,a);if(-1===e)break;let t=n.substr(0,e);a=e+r.length;let i=n.substr(a);if(s===t&&l===i)return{before:s,after:l}}}return null}function et(e,t){let 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]}}function tt(e,t,n,r){let i=et(e,n.calendarSystem),o=t?et(t,n.calendarSystem):null;return{date:i,start:i,end:o,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class nt{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,tt(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,tt(e,t,n,r))}}class rt{constructor(e){this.func=e}format(e,t,n){return this.func(tt(e,null,t,n))}formatRange(e,t,n,r){return this.func(tt(e,t,n,r))}}function it(e){return"object"===typeof e&&e?new Fe(e):"string"===typeof e?new nt(e):"function"===typeof e?new rt(e):null}const ot={navLinkDayClick:gt,navLinkWeekClick:gt,duration:V,bootstrapFontAwesome:gt,buttonIcons:gt,customButtons:gt,defaultAllDayEventDuration:V,defaultTimedEventDuration:V,nextDayThreshold:V,scrollTime:V,scrollTimeReset:Boolean,slotMinTime:V,slotMaxTime:V,dayPopoverFormat:it,slotDuration:V,snapDuration:V,headerToolbar:gt,footerToolbar:gt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:it,dayHeaderClassNames:gt,dayHeaderContent:gt,dayHeaderDidMount:gt,dayHeaderWillUnmount:gt,dayCellClassNames:gt,dayCellContent:gt,dayCellDidMount:gt,dayCellWillUnmount:gt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:gt,weekNumbers:Boolean,weekNumberClassNames:gt,weekNumberContent:gt,weekNumberDidMount:gt,weekNumberWillUnmount:gt,editable:Boolean,viewClassNames:gt,viewDidMount:gt,viewWillUnmount:gt,nowIndicator:Boolean,nowIndicatorClassNames:gt,nowIndicatorContent:gt,nowIndicatorDidMount:gt,nowIndicatorWillUnmount:gt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:gt,locale:gt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:gt,eventOrder:N,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:gt,contentHeight:gt,direction:String,weekNumberFormat:it,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:gt,initialDate:gt,now:gt,eventDataTransform:gt,stickyHeaderDates:gt,stickyFooterScrollbar:gt,viewHeight:gt,defaultAllDay:Boolean,eventSourceFailure:gt,eventSourceSuccess:gt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:gt,eventConstraint:gt,eventAllow:gt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:gt,eventContent:gt,eventDidMount:gt,eventWillUnmount:gt,selectConstraint:gt,selectOverlap:gt,selectAllow:gt,droppable:Boolean,unselectCancel:String,slotLabelFormat:gt,slotLaneClassNames:gt,slotLaneContent:gt,slotLaneDidMount:gt,slotLaneWillUnmount:gt,slotLabelClassNames:gt,slotLabelContent:gt,slotLabelDidMount:gt,slotLabelWillUnmount:gt,dayMaxEvents:gt,dayMaxEventRows:gt,dayMinWidth:Number,slotLabelInterval:V,allDayText:String,allDayClassNames:gt,allDayContent:gt,allDayDidMount:gt,allDayWillUnmount:gt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:it,rerenderDelay:Number,moreLinkText:gt,moreLinkHint:gt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:gt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:V,hiddenDays:gt,fixedWeekCount:Boolean,validRange:gt,visibleRange:gt,titleFormat:gt,eventInteractive:Boolean,noEventsText:String,viewHint:gt,navLinkHint:gt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:gt,moreLinkClassNames:gt,moreLinkContent:gt,moreLinkDidMount:gt,moreLinkWillUnmount:gt,monthStartFormat:it,handleCustomRendering:gt,customRenderingMetaMap:gt,customRenderingReplaces:Boolean},st={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},lt={datesSet:gt,eventsSet:gt,eventAdd:gt,eventChange:gt,eventRemove:gt,windowResize:gt,eventClick:gt,eventMouseEnter:gt,eventMouseLeave:gt,select:gt,unselect:gt,loading:gt,_unmount:gt,_beforeprint:gt,_afterprint:gt,_noEventDrop:gt,_noEventResize:gt,_resize:gt,_scrollRequest:gt},at={buttonText:gt,buttonHints:gt,views:gt,plugins:gt,initialEvents:gt,events:gt,eventSources:gt},ct={headerToolbar:ut,footerToolbar:ut,buttonText:ut,buttonHints:ut,buttonIcons:ut,dateIncrement:ut,plugins:dt,events:dt,eventSources:dt,["resources"]:dt};function ut(e,t){return"object"===typeof e&&"object"===typeof t&&e&&t?wt(e,t):e===t}function dt(e,t){return Array.isArray(e)&&Array.isArray(t)?se(e,t):e===t}const ft={type:String,component:gt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:gt,usesMinMaxTime:Boolean,classNames:gt,content:gt,didMount:gt,willUnmount:gt};function ht(e){return bt(e,ct)}function pt(e,t){let n={},r={};for(let i in t)i in e&&(n[i]=t[i](e[i]));for(let i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function gt(e){return e}const{hasOwnProperty:mt}=Object.prototype;function bt(e,t){let n={};if(t)for(let r in t)if(t[r]===ut){let t=[];for(let i=e.length-1;i>=0;i-=1){let o=e[i][r];if("object"===typeof o&&o)t.unshift(o);else if(void 0!==o){n[r]=o;break}}t.length&&(n[r]=bt(t))}for(let r=e.length-1;r>=0;r-=1){let t=e[r];for(let e in t)e in n||(n[e]=t[e])}return n}function vt(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function yt(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function At(e){let t={};for(let n of e)t[n]=!0;return t}function Ct(e){let t=[];for(let n in e)t.push(e[n]);return t}function wt(e,t){if(e===t)return!0;for(let n in e)if(mt.call(e,n)&&!(n in t))return!1;for(let n in t)if(mt.call(t,n)&&e[n]!==t[n])return!1;return!0}const _t=/^on[A-Z]/;function St(e,t){const n=Et(e,t);for(let r of n)if(!_t.test(r))return!1;return!0}function Et(e,t){let n=[];for(let r in e)mt.call(e,r)&&(r in t||n.push(r));for(let r in t)mt.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function Ot(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!Dt(e[r],t[r],n[r]))return!1;for(let r in e)if(!(r in t))return!1;return!0}function Dt(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Rt(e,t=0,n,r=1){let i=[];null==n&&(n=Object.keys(e).length);for(let o=t;o<n;o+=r){let t=e[o];void 0!==t&&i.push(t)}return i}let xt={};function kt(e,t){xt[e]=t}function jt(e){return new xt[e]}class Tt{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return De(e)}markerToArray(e){return Oe(e)}}kt("gregory",Tt);const It=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Mt(e){let t=It.exec(e);if(t){let e=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(Re(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}class Nt{constructor(e){let t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=jt(e.calendarSystem),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.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):De(Se(new Date))}createMarkerMeta(e){if("string"===typeof e)return this.parse(e);let 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=De(e)),null!==t&&Re(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=Mt(e);if(null===t)return null;let{marker:n}=t,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}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let 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)}subtract(e,t){let 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)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return xe(e)===xe(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return xe(e)===xe(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=ge(e,t),null!==n?{unit:"week",value:n}:(n=me(e,t),null!==n?{unit:"day",value:n}:(n=de(e,t),z(n)?{unit:"hour",value:n}:(n=fe(e,t),z(n)?{unit:"minute",value:n}:(n=he(e,t),z(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/$(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/K(n):n.days&&(r=me(e,t),null!==r)?r/ee(n):(t.valueOf()-e.valueOf())/re(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?be(e):"hour"===t?ve(e):"minute"===t?ye(e):"second"===t?Ae(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):Ce(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=ce(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,r.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),ke(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?De(Se(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?De(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-Ee(Oe(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Oe(e)):null}toDate(e,t){return"local"===this.timeZone?Ee(Oe(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(Oe(e))*60):new Date(e.valueOf()-(t||0))}}class Pt{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"===typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function Ht(e){e();let t=r["i"].debounceRendering,n=[];function i(e){n.push(e)}r["i"].debounceRendering=i,r["j"](r["e"](Bt,{}),document.createElement("div"));while(n.length)n.shift()();r["i"].debounceRendering=t}Pt.prototype.classes={},Pt.prototype.iconClasses={},Pt.prototype.baseIconClass="",Pt.prototype.iconOverridePrefix="";class Bt extends r["a"]{render(){return r["e"]("div",{})}componentDidMount(){this.setState({})}}function Ut(e){let t=r["d"](e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach(e=>{e.context=t.value,e.forceUpdate()})},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class Wt{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const zt=Ut({});function Lt(e,t,n,r,i,o,s,l,a,c,u,d,f,h){return{dateEnv:i,nowManager:o,options:n,pluginHooks:l,emitter:u,dispatch:a,getCurrentData:c,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:s,isRtl:"rtl"===n.direction,addResizeHandler(e){u.on("_resize",e)},removeResizeHandler(e){u.off("_resize",e)},createScrollResponder(e){return new Wt(e,u,V(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class Gt extends r["a"]{shouldComponentUpdate(e,t){return this.debug&&console.log(Et(e,this.props),Et(t,this.state)),!Ot(this.props,e,this.propEquality)||!Ot(this.state,t,this.stateEquality)}safeSetState(e){Ot(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Gt.addPropsEquality=Vt,Gt.addStateEquality=Qt,Gt.contextType=zt,Gt.prototype.propEquality={},Gt.prototype.stateEquality={};class Ft extends Gt{}function Vt(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function Qt(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function qt(e,t){"function"===typeof e?e(t):e&&(e.current=t)}Ft.contextType=zt;class Zt extends Ft{constructor(){super(...arguments),this.id=M(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&Yt(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&qt(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:i,defaultGenerator:o,renderProps:s}=e,l=Jt(e,[],this.handleEl);let a,c,u=!1,d=[];if(null!=i){const e="function"===typeof i?i(s,r["e"]):i;if(!0===e)u=!0;else{const t=e&&"object"===typeof e;t&&"html"in e?l.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?d=Array.prototype.slice.call(e.domNodes):(t?Object(r["h"])(e):"function"!==typeof e)?a=e:c=e}}else u=!Yt(e.generatorName,n);return u&&o&&(a=o(s)),this.queuedDomNodes=d,this.currentGeneratorMeta=c,Object(r["e"])(e.elTag,l,a)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:o}=r.options;if(i){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null===o||void 0===o?void 0:o[n.generatorName];r&&i(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(Xt)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!se(e,t)){t.forEach(b);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function Yt(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Jt(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function Xt(e){return Boolean(e)}Zt.addPropsEquality({elClasses:se,elStyle:wt,elAttrs:St,renderProps:wt});const $t=Ut(0);class Kt extends r["a"]{constructor(){super(...arguments),this.InnerContent=en.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(qt(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=tn(e.classNameGenerator,e.renderProps);if(e.children){const n=Jt(e,t,this.handleEl),i=e.children(this.InnerContent,e.renderProps,n);return e.elTag?Object(r["e"])(e.elTag,n,i):i}return Object(r["e"])(Zt,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function en(e,t){const n=e.props;return Object(r["e"])(Zt,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function tn(e,t){const n="function"===typeof e?e(t):e||[];return"string"===typeof n?[n]:n}Kt.contextType=$t;class nn extends Ft{render(){let{props:e,context:t}=this,{options:n}=t,i={view:t.viewApi};return Object(r["e"])(Kt,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...rn(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}}function rn(e){return[`fc-${e.type}-view`,"fc-view"]}function on(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function sn(e,t){let n,r,i=[],{start:o}=t;for(e.sort(ln),n=0;n<e.length;n+=1)r=e[n],r.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 ln(e,t){return e.start.valueOf()-t.start.valueOf()}function an(e,t){let{start:n,end:r}=e,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 cn(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 un(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function dn(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function fn(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function hn(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function pn(e){let t=Math.floor(ue(e.start,e.end))||1,n=be(e.start),r=ae(n,t);return{start:n,end:r}}function gn(e,t=V(0)){let n=null,r=null;if(e.end){r=be(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=re(t)&&(r=ae(r,1))}return e.start&&(n=be(e.start),r&&r<=n&&(r=ae(n,1))),{start:n,end:r}}function mn(e,t,n,r){return"year"===r?V(n.diffWholeYears(e,t),"year"):"month"===r?V(n.diffWholeMonths(e,t),"month"):pe(e,t)}class bn{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,o,s,l,a,{props:c}=this;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=hn(e,r)),i=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(i.unit),s=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),s=this.trimHiddenDays(s),l=s,c.showNonCurrentDates||(l=an(l,i.range)),l=this.adjustActiveRange(l),l=an(l,r),a=un(i.range,r),fn(s,e)||(e=s.start),{currentDate:e,validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:l,renderRange:s,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:a,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"===typeof e?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,i=null,o=null,s=null;return r.duration?(i=r.duration,o=r.durationUnit,s=this.buildRangeFromDuration(e,t,i,o)):(n=this.props.dayCount)?(o="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?o=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(i=this.getFallbackDuration(),o=oe(i).unit,s=this.buildRangeFromDuration(e,t,i,o)),{duration:i,unit:o,range:s}}getFallbackDuration(){return V({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:i}=this.props,{start:o,end:s}=e;return n&&(ee(r)<0&&(o=be(o),o=t.add(o,r)),ee(i)>1&&(s=be(s),s=ae(s,-1),s=t.add(s,i))),{start:o,end:s}}buildRangeFromDuration(e,t,n,r){let i,o,s,{dateEnv:l,dateAlignment:a}=this.props;if(!a){let{dateIncrement:e}=this.props;a=e&&re(e)<re(n)?oe(e).unit:r}function c(){i=l.startOf(e,a),o=l.add(i,n),s={start:i,end:o}}return ee(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=be(i)),c(),this.trimHiddenDays(s)||(e=this.skipHiddenDays(e,t),c()),s}buildRangeFromDayCount(e,t,n){let r,{dateEnv:i,dateAlignment:o}=this.props,s=0,l=e;o&&(l=i.startOf(l,o)),l=be(l),l=this.skipHiddenDays(l,t),r=l;do{r=ae(r,1),this.isHiddenDay(r)||(s+=1)}while(s<n);return{start:l,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"===typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?V(1,t):e||V({days:1}))}refineRange(e){if(e){let t=on(e,this.props.dateEnv);return t&&(t=gn(t)),t}return null}initHiddenDays(){let e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){while(this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7])e=ae(e,t);return e}}function vn(e,t,n,r){return{instanceId:M(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function yn(e,t,n,r){for(let i=0;i<r.length;i+=1){let o=r[i].parse(e,n);if(o){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=o.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}function An(e,t,n){let{dateEnv:r,pluginHooks:i,options:o}=n,{defs:s,instances:l}=e;l=vt(l,e=>!s[e.defId].recurringDef);for(let a in s){let e=s[a];if(e.recurringDef){let{duration:n}=e.recurringDef;n||(n=e.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let s=Cn(e,n,t,r,i.recurringTypes);for(let e of s){let t=vn(a,{start:e,end:r.add(e,n)});l[t.instanceId]=t}}}return{defs:s,instances:l}}function Cn(e,t,n,r,i){let o=i[e.recurringDef.typeId],s=o.expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(be)),s}const wn={id:String,groupId:String,title:String,url:String,interactive:Boolean},_n={start:gt,end:gt,date:gt,allDay:Boolean},Sn=Object.assign(Object.assign(Object.assign({},wn),_n),{extendedProps:gt});function En(e,t,n,r,i=Dn(n),o,s){let{refined:l,extra:a}=On(e,n,i),c=kn(t,n),u=yn(l,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let e=Rn(l,a,t?t.sourceId:"",u.allDay,Boolean(u.duration),n,o);return e.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:e,instance:null}}let d=xn(l,c,n,r);if(d){let e=Rn(l,a,t?t.sourceId:"",d.allDay,d.hasEnd,n,o),r=vn(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return s&&e.publicId&&s[e.publicId]&&(r.instanceId=s[e.publicId]),{def:e,instance:r}}return null}function On(e,t,n=Dn(t)){return pt(e,n)}function Dn(e){return Object.assign(Object.assign(Object.assign({},zn),Sn),e.pluginHooks.eventRefiners)}function Rn(e,t,n,r,i,o,s){let l={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(s&&e.id?s[e.id]:"")||M(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Gn(e,o),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let a of o.pluginHooks.eventDefMemberAdders)Object.assign(l,a(e));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function xn(e,t,n,r){let i,o,{allDay:s}=e,l=null,a=!1,c=null,u=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(u),i)l=i.marker;else if(!r)return null;return null!=e.end&&(o=n.dateEnv.createMarkerMeta(e.end)),null==s&&(s=null!=t?t:(!i||i.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),s&&l&&(l=be(l)),o&&(c=o.marker,s&&(c=be(c)),l&&c<=l&&(c=null)),c?a=!0:r||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:s,hasEnd:a,range:{start:l,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function kn(e,t){let n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function jn(e,t,n,r,i,o){let s=Nn(),l=Dn(n);for(let a of e){let e=En(a,t,n,r,l,i,o);e&&Tn(e,s)}return s}function Tn(e,t=Nn()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function In(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=Hn(e,e=>Mn(t,e));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return Nn()}function Mn(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function Nn(){return{defs:{},instances:{}}}function Pn(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function Hn(e,t){let n=vt(e.defs,t),r=vt(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}function Bn(e,t){let{defs:n,instances:r}=e,i={},o={};for(let s in n)t.defs[s]||(i[s]=n[s]);for(let s in r)!t.instances[s]&&i[r[s].defId]&&(o[s]=r[s]);return{defs:i,instances:o}}function Un(e,t){return Array.isArray(e)?jn(e,null,t,!0):"object"===typeof e&&e?jn([e],null,t,!0):null!=e?String(e):null}function Wn(e){return Array.isArray(e)?e:"string"===typeof e?e.split(/\s+/):[]}const zn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:gt,overlap:gt,allow:gt,className:Wn,classNames:Wn,color:String,backgroundColor:String,borderColor:String,textColor:String},Ln={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Gn(e,t){let n=Un(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Fn(e){return e.reduce(Vn,Ln)}function Vn(e,t){return{display:null!=t.display?t.display:e.display,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)}}const Qn={id:String,defaultAllDay:Boolean,url:String,format:String,events:gt,eventDataTransform:gt,success:gt,failure:gt};function qn(e,t,n=Zn(t)){let r;if("string"===typeof e?r={url:e}:"function"===typeof e||Array.isArray(e)?r={events:e}:"object"===typeof e&&e&&(r=e),r){let{refined:i,extra:o}=pt(r,n),s=Yn(i,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:M(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Gn(i,t),extendedProps:o}}return null}function Zn(e){return Object.assign(Object.assign(Object.assign({},zn),Qn),e.pluginHooks.eventSourceRefiners)}function Yn(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let t=n[r],i=t.parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}function Jn(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return Xn(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return $n(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return tr(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Pn(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?An(e,r.activeRange,i):e;case"REMOVE_EVENTS":return Bn(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return rr(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Hn(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return Nn();default:return e}}function Xn(e,t,n,r,i,o){if(t&&n===t.latestFetchId){let n=jn(Kn(i,t,o),t,o);return r&&(n=An(n,r,o)),Pn(rr(e,t.sourceId),n)}return e}function $n(e,t,n,r,i){const{defIdMap:o,instanceIdMap:s}=or(e);let l=jn(Kn(n,t,i),t,i,!1,o,s);return An(l,r,i)}function Kn(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=er(e,i)),r&&(e=er(e,r)),e}function er(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function tr(e,t,n,r){return n&&(t=An(t,n,r)),Pn(e,t)}function nr(e,t,n){let{defs:r}=e,i=yt(e.instances,e=>{let i=r[e.defId];return i.allDay?e:Object.assign(Object.assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})});return{defs:r,instances:i}}function rr(e,t){return Hn(e,e=>e.sourceId!==t)}function ir(e,t){return{defs:e.defs,instances:vt(e.instances,e=>!t[e.instanceId])}}function or(e){const{defs:t,instances:n}=e,r={},i={};for(let o in t){const e=t[o],{publicId:n}=e;n&&(r[n]=o)}for(let o in n){const e=n[o],r=t[e.defId],{publicId:s}=r;s&&(i[s]=o)}return{defIdMap:r,instanceIdMap:i}}class sr{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){lr(this.handlers,e,t)}off(e,t){ar(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],i=[].concat(r||[],n);for(let o of i)o.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function lr(e,t,n){(e[t]||(e[t]=[])).push(n)}function ar(e,t,n){n?e[t]&&(e[t]=e[t].filter(e=>e!==n)):delete e[t]}const cr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ur(e,t){return jn(dr(e),null,t)}function dr(e){let t;return t=!0===e?[{}]:Array.isArray(e)?e.filter(e=>e.daysOfWeek):"object"===typeof e&&e?[e]:[],t=t.map(e=>Object.assign(Object.assign({},cr),e)),t}function fr(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},pr(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function hr(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function pr(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,zr(e,t.dateEnv)),n}function gr(e,t,n){let{dateEnv:r,options:i}=n,o=t;return e?(o=be(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function mr(e,t,n,r){let i=Or(e.defs,t),o=Nn();for(let s in e.defs){let t=e.defs[s];o.defs[s]=br(t,i[s],n,r)}for(let s in e.instances){let t=e.instances[s],l=o.defs[t.defId];o.instances[s]=vr(t,l,i[t.defId],n,r)}return o}function br(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let o=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(o.extendedProps=Object.assign(Object.assign({},o.extendedProps),n.extendedProps));for(let s of r.pluginHooks.eventDefMutationAppliers)s(o,n,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function vr(e,t,n,r,i){let{dateEnv:o}=i,s=r.standardProps&&!0===r.standardProps.allDay,l=r.standardProps&&!1===r.standardProps.hasEnd,a=Object.assign({},e);return s&&(a.range=pn(a.range)),r.datesDelta&&n.startEditable&&(a.range={start:o.add(a.range.start,r.datesDelta),end:o.add(a.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(a.range={start:o.add(a.range.start,r.startDelta),end:a.range.end}),r.endDelta&&n.durationEditable&&(a.range={start:a.range.start,end:o.add(a.range.end,r.endDelta)}),l&&(a.range={start:a.range.start,end:gr(t.allDay,a.range.start,i)}),t.allDay&&(a.range={start:be(a.range.start),end:be(a.range.end)}),a.range.end<a.range.start&&(a.range.end=gr(t.allDay,a.range.start,i)),a}class yr{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Ar{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in _n)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=wn[e](t),this.mutate({standardProps:{publicId:t}});else if(e in wn)t=wn[e](t),this.mutate({standardProps:{[e]:t}});else if(e in zn){let n=zn[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=this._instance.range,i=mn(e.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=mn(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:i}=this._context,o={allDay:n.allDay},s=i.createMarker(e);if(s&&(null==t||(r=i.createMarker(t),r))&&this._instance){let e=this._instance.range;!0===n.allDay&&(e=pn(e));let t=mn(e.start,s,i,n.granularity);if(r){let s=mn(e.end,r,i,n.granularity);Z(t,s)?this.mutate({datesDelta:t,standardProps:o}):this.mutate({startDelta:t,endDelta:s,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:t,standardProps:o})}}moveStart(e){let t=V(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=V(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=V(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=it(e);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})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),o=In(i,t.instanceId),s={"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}};o=mr(o,s,e,r);let l=new Ar(r,n,t);this._def=o.defs[n.defId],this._instance=o.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:o}),r.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:wr(o,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=Cr(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new yr(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,o={allDay:t.allDay};return t.title&&(o.title=t.title),r&&(o.start=r),i&&(o.end=i),t.publicId&&(o.id=t.publicId),t.groupId&&(o.groupId=t.groupId),t.url&&(o.url=t.url),n.display&&"auto"!==n.display&&(o.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.color=n.backgroundColor:(n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.borderColor&&(o.borderColor=n.borderColor)),n.textColor&&(o.textColor=n.textColor),n.classNames.length&&(o.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(o,t.extendedProps):o.extendedProps=t.extendedProps),o}toJSON(){return this.toPlainObject()}}function Cr(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function wr(e,t,n){let{defs:r,instances:i}=e,o=[],s=n?n.instanceId:"";for(let l in i){let e=i[l],n=r[e.defId];e.instanceId!==s&&o.push(new Ar(t,n,e))}return o}function _r(e,t,n,r){let i={},o={},s={},l=[],a=[],c=Or(e.defs,t);for(let u in e.defs){let t=e.defs[u],n=c[t.defId];"inverse-background"===n.display&&(t.groupId?(i[t.groupId]=[],s[t.groupId]||(s[t.groupId]=t)):o[u]=[])}for(let u in e.instances){let t=e.instances[u],s=e.defs[t.defId],d=c[s.defId],f=t.range,h=!s.allDay&&r?gn(f,r):f,p=an(h,n);p&&("inverse-background"===d.display?s.groupId?i[s.groupId].push(p):o[t.defId].push(p):"none"!==d.display&&("background"===d.display?l:a).push({def:s,ui:d,instance:t,range:p,isStart:h.start&&h.start.valueOf()===p.start.valueOf(),isEnd:h.end&&h.end.valueOf()===p.end.valueOf()}))}for(let u in i){let e=i[u],t=sn(e,n);for(let n of t){let e=s[u],t=c[e.defId];l.push({def:e,ui:t,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let u in o){let t=o[u],r=sn(t,n);for(let n of r)l.push({def:e.defs[u],ui:c[u],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:l,fg:a}}function Sr(e,t){e.fcSeg=t}function Er(e){return e.fcSeg||e.parentNode.fcSeg||null}function Or(e,t){return yt(e,e=>Dr(e,t))}function Dr(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Fn(n)}function Rr(e,t){let n=e.map(xr);return n.sort((e,n)=>P(e,n,t)),n.map(e=>e._seg)}function xr(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:o,duration:o-i,allDay:Number(n.allDay),_seg:e})}function kr(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:o}=e.eventRange,s=o.startEditable;for(let l of r)s=l(s,i,o,t);return s}function jr(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Tr(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Ir(e,t,n,r,i,o,s){let{dateEnv:l,options:a}=n,{displayEventTime:c,displayEventEnd:u}=a,d=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==u&&(u=!1!==i);let h=f.range.start,p=f.range.end,g=o||e.start||e.eventRange.range.start,m=s||e.end||e.eventRange.range.end,b=be(h).valueOf()===be(g).valueOf(),v=be(ce(p,-1)).valueOf()===be(ce(m,-1)).valueOf();return c&&!d.allDay&&(b||v)?(g=b?h:g,m=v?p:m,u&&d.hasEnd?l.formatRange(g,m,t,{forcedStartTzo:o?null:f.forcedStartTzo,forcedEndTzo:s?null:f.forcedEndTzo}):l.format(g,t,{forcedTzo:o?null:f.forcedStartTzo})):""}function Mr(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&fn(t,r.start)}}function Nr(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function Pr(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Hr(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:o,options:s}=t,{eventInteractive:l}=s;return null==l&&(l=n.interactive,null==l&&(l=Boolean(o.hasHandlers("eventClick")))),l?T(e=>{o.trigger("eventClick",{el:e.target,event:new Ar(t,n,r),jsEvent:e,view:t.viewApi})}):{}}const Br={start:gt,end:gt,allDay:Boolean};function Ur(e,t,n){let r=Wr(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function Wr(e,t){let{refined:n,extra:r}=pt(e,Br),i=n.start?t.createMarkerMeta(n.start):null,o=n.end?t.createMarkerMeta(n.end):null,{allDay:s}=n;return null==s&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:o?o.marker:null},allDay:s},r)}function zr(e,t){return Object.assign(Object.assign({},Gr(e.range,t,e.allDay)),{allDay:e.allDay})}function Lr(e,t,n){return Object.assign(Object.assign({},Gr(e,t,n)),{timeZone:t.timeZone})}function Gr(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function Fr(e,t,n){let r=On({editable:!1},n),i=Rn(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:Dr(i,t),instance:vn(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Vr(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},o=function(e){r||(r=!0,n(e))},s=e(i,o);s&&"function"===typeof s.then&&s.then(i,o)}class Qr extends Error{constructor(e,t){super(e),this.response=t}}function qr(e,t,n){e=e.toUpperCase();const r={method:e};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(e=>{if(e.ok)return e.json().then(t=>[t,e],()=>{throw new Qr("Failure parsing JSON",e)});throw new Qr("Request failed",e)})}let Zr;function Yr(){return null==Zr&&(Zr=Jr()),Zr}function Jr(){if("undefined"===typeof document)return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let t=e.querySelector("div"),n=t.offsetHeight>0;return document.body.removeChild(e),n}class Xr extends Ft{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Ht(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Ht(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,o=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Yr()||o.push("fc-liquid-hack"),e.children(o,i,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class $r{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Kr(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}const ei={};class ti extends r["a"]{constructor(e,t){super(e,t),this.handleRefresh=()=>{let e=this.computeTiming();e.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(e.state),this.clearTimeout(),this.setTimeout(e.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:t}=this,n=t.nowManager.getDateMarker(),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,V(1,e.unit)),o=i.valueOf()-n.valueOf();return o=Math.min(864e5,o),{state:{nowDate:r,todayRange:ni(r)},waitMs:o}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const e=this.computeTiming();this.setState(e.state,()=>{this.setTimeout(e.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function ni(e){let t=be(e),n=ae(t,1);return{start:t,end:n}}ti.contextType=zt;class ri{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering(()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,t){let n,r=this.getCurrentData();t=t||"day",n=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:i}=this.getCurrentData(),o=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let s in r)o.push(s);for(t=0;t<o.length;t+=1)if(n=r[o[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=V(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),it(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),it(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),i=Ur(n,r.dateEnv,V({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),fr(i,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),hr(e,t))}addEvent(e,t){if(e instanceof Ar){let t=e._def,n=e._instance,r=this.getCurrentData();return r.eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Tn({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof yr)n=t.internalEventSource;else if("boolean"===typeof t)t&&([n]=Ct(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let i=En(e,n,r,!1);if(i){let e=new Ar(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Tn(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Cr(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let o=n[i];if(o.publicId===e){if(o.recurringDef)return new Ar(t,o,null);for(let e in r){let n=r[e];if(n.defId===o.defId)return new Ar(t,o,n)}}}return null}getEvents(){let e=this.getCurrentData();return wr(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new yr(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new yr(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof yr)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=qn(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new yr(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=V(e);t&&this.trigger("_scrollRequest",{time:t})}}function ii(e,t){let 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}function oi(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}const si=Nn();class li{constructor(){this.getKeysForEventDefs=Ie(this._getKeysForEventDefs),this.splitDateSelection=Ie(this._splitDateSpan),this.splitEventStore=Ie(this._splitEventStore),this.splitIndividualUi=Ie(this._splitIndividualUi),this.splitEventDrag=Ie(this._splitInteraction),this.splitEventResize=Ie(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),o=this.splitEventStore(e.eventStore,n),s=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),a={};this.eventUiBuilders=yt(t,(e,t)=>this.eventUiBuilders[t]||Ie(ai));for(let c in t){let n=t[c],u=o[c]||si,d=this.eventUiBuilders[c];a[c]={businessHours:n.businessHours||e.businessHours,dateSelection:r[c]||null,eventStore:u,eventUiBases:d(e.eventUiBases[""],n.ui,i[c]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:l[c]||null}}return a}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return yt(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let o in n)for(let e of t[o])i[e]||(i[e]=Nn()),i[e].defs[o]=n[o];for(let o in r){let e=r[o];for(let n of t[e.defId])i[n]&&(i[n].instances[o]=e)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),o=r=>{t[r]||(t[r]={affectedEvents:n[r]||si,mutatedEvents:i[r]||si,isEvent:e.isEvent})};for(let e in n)o(e);for(let e in i)o(e)}return t}}function ai(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":Fn(r)};return n&&Object.assign(i,n),i}function ci(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&(!r.activeRange||!fn(r.activeRange,e))),isOther:Boolean(r&&!fn(r.currentRange,e)),isToday:Boolean(t&&fn(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function ui(e,t){let n=["fc-day","fc-day-"+le[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function di(e,t){let n=["fc-slot","fc-slot-"+le[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}const fi=it({year:"numeric",month:"long",day:"numeric"}),hi=it({week:"long"});function pi(e,t,n="day",r=!0){const{dateEnv:i,options:o,calendarApi:s}=e;let l=i.format(t,"week"===n?hi:fi);if(o.navLinks){let e=i.toDate(t);const a=e=>{let r="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"===typeof r?r.call(s,i.toDate(t),e):("string"===typeof r&&(n=r),s.zoomTo(t,n))};return Object.assign({title:W(o.navLinkHint,[l,e],l),"data-navlink":""},r?j(a):{onClick:a})}return{"aria-label":l}}let gi,mi=null;function bi(){return null===mi&&(mi=vi()),mi}function vi(){let e=document.createElement("div");_(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild,n=t.getBoundingClientRect().left>e.getBoundingClientRect().left;return b(e),n}function yi(){return gi||(gi=Ai()),gi}function Ai(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=Ci(e);return document.body.removeChild(e),t}function Ci(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function wi(e,t=!1){let 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,l=Ci(e),a=l.y-r-i,c=l.x-o-s,u={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return bi()&&"rtl"===n.direction?u.scrollbarLeft=a:u.scrollbarRight=a,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function _i(e,t=!1,n){let r=n?e.getBoundingClientRect():Si(e),i=wi(e,t),o={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(o.left+=i.paddingLeft,o.right-=i.paddingRight,o.top+=i.paddingTop,o.bottom-=i.paddingBottom),o}function Si(e){let t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,right:t.right+window.scrollX,bottom:t.bottom+window.scrollY}}function Ei(e){let t=Oi(e),n=e.getBoundingClientRect();for(let r of t){let e=ii(n,r.getBoundingClientRect());if(!e)return null;n=e}return n}function Oi(e){let t=[];while(e instanceof HTMLElement){let 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}class Di{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Ri(this.tops||[],e.tops||[])&&Ri(this.bottoms||[],e.bottoms||[])&&Ri(this.lefts||[],e.lefts||[])&&Ri(this.rights||[],e.rights||[])}}function Ri(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class xi extends Ft{constructor(){super(...arguments),this.uid=M()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!v(e,".fc-event-mirror")}isValidDateDownEl(e){return!v(e,".fc-event:not(.fc-bg-event)")&&!v(e,".fc-more-link")&&!v(e,"a[data-navlink]")&&!v(e,".fc-popover")}}class ki{constructor(e=(e=>e.thickness||1)){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);this.isInsertionValid(n,e)?this.insertEntryAt(e,n):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+this.getEntryThickness(t)<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){if(this.allowReslicing&&e.touchingEntry){const r=Object.assign(Object.assign({},t),{span:Ni(t.span,e.touchingEntry.span)});n.push(r),this.splitEntry(t,e.touchingEntry,n)}else n.push(t)}splitEntry(e,t,n){let r=e.span,i=t.span;r.start<i.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:i.start}},n),r.end>i.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(Pi(r,t.level,t.levelCoord),Pi(n,t.level,[e])):Pi(n[t.level],t.lateral,e),this.stackCnts[Ti(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:i}=this,o=t.length,s=0,l=-1,a=-1,c=null,u=0;for(let h=0;h<o;h+=1){const o=t[h];if(!r&&o>=s+this.getEntryThickness(e))break;let d,f=n[h],p=Hi(f,e.span.start,ji),g=p[0]+p[1];while((d=f[g])&&d.span.start<e.span.end){let e=o+this.getEntryThickness(d);e>s&&(s=e,c=d,l=h,a=g),e===s&&(u=Math.max(u,i[Ti(d)]+1)),g+=1}}let d=0;if(c){d=l+1;while(d<o&&t[d]<s)d+=1}let f=-1;return d<o&&t[d]===s&&(f=Hi(n[d],e.span.end,ji)[0]),{touchingLevel:l,touchingLateral:a,touchingEntry:c,stackCnt:u,levelCoord:s,level:d,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let i=0;i<n;i+=1){let n=e[i],o=t[i];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:o}))}return r}}function ji(e){return e.span.end}function Ti(e){return e.index+":"+e.span.start}function Ii(e){let t=[];for(let n of e){let e=[],r={span:n.span,entries:[n]};for(let n of t)Ni(n.span,r.span)?r={entries:n.entries.concat(r.entries),span:Mi(n.span,r.span)}:e.push(n);e.push(r),t=e}return t}function Mi(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Ni(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function Pi(e,t,n){e.splice(t,0,n)}function Hi(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];while(r<i){let o=Math.floor(r+(i-r)/2),s=n(e[o]);if(t<s)i=o;else{if(!(t>s))return[o,1];r=o+1}}return[r,0]}const Bi={};Boolean;function Ui(e,t){return it(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}const Wi="fc-col-header-cell";function zi(e){return e.text}class Li extends Ft{render(){let{dateEnv:e,options:t,theme:n,viewApi:i}=this.context,{props:o}=this,{date:s,dateProfile:l}=o,a=ci(s,o.todayRange,null,l),c=[Wi].concat(ui(a,n)),u=e.format(s,o.dayHeaderFormat),d=!a.isDisabled&&o.colCnt>1?pi(this.context,s):{},f=e.toDate(s);e.namedTimeZoneImpl&&(f=ce(f,36e5));let h=Object.assign(Object.assign(Object.assign({date:f,view:i},o.extraRenderProps),{text:u}),a);return Object(r["e"])(Kt,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":a.isDisabled?void 0:je(s)},o.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:t.dayHeaderContent,defaultGenerator:zi,classNameGenerator:t.dayHeaderClassNames,didMount:t.dayHeaderDidMount,willUnmount:t.dayHeaderWillUnmount},e=>Object(r["e"])("div",{className:"fc-scrollgrid-sync-inner"},!a.isDisabled&&Object(r["e"])(e,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]})))}}const Gi=it({weekday:"long"});class Fi extends Ft{render(){let{props:e}=this,{dateEnv:t,theme:n,viewApi:i,options:o}=this.context,s=ae(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},a=t.format(s,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:s},l),{view:i}),e.extraRenderProps),{text:a});return Object(r["e"])(Kt,{elTag:"th",elClasses:[Wi,...ui(l,n),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:zi,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},n=>Object(r["e"])("div",{className:"fc-scrollgrid-sync-inner"},Object(r["e"])(n,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":t.format(s,Gi)}})))}}class Vi{constructor(){this.sliceBusinessHours=Ie(this._sliceBusinessHours),this.sliceDateSelection=Ie(this._sliceDateSpan),this.sliceEventStore=Ie(this._sliceEventStore),this.sliceEventDrag=Ie(this._sliceInteraction),this.sliceEventResize=Ie(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:o}=e,s=this.sliceEventStore(e.eventStore,o,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,o,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,o,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,o,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...i){return this._sliceDateSpan({range:{start:e,end:ce(e,1)},allDay:!1},t,n,{},r,...i)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(An(e,Qi(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let o=_r(e,t,Qi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(o.bg,i),fg:this.sliceEventRanges(o.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let o=_r(e.mutatedEvents,t,Qi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(o.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...o){if(!e)return[];let s=Qi(t,Boolean(n)),l=an(e.range,s);if(l){e=Object.assign(Object.assign({},e),{range:l});let t=Fr(e,r,i),n=this.sliceRange(e.range,...o);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:ae(n.start,1)});let r=this.sliceRange(n,...t);for(let i of r)i.eventRange=e,i.isStart=e.isStart&&i.isStart,i.isEnd=e.isEnd&&i.isEnd;return r}}function Qi(e,t){let n=e.activeRange;return t?n:{start:ce(n.start,e.slotMinTime.milliseconds),end:ce(n.end,e.slotMaxTime.milliseconds-864e5)}}function qi(e,t,n={},r){return!(e.eventDrag&&!Zi(e,t,n,r))&&!(e.dateSelection&&!Yi(e,t,n,r))}function Zi(e,t,n,r){let i=t.getCurrentData(),o=e.eventDrag,s=o.mutatedEvents,l=s.defs,a=s.instances,c=Or(l,o.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(c=yt(c,r));let u=ir(e.eventStore,o.affectedEvents.instances),d=u.defs,f=u.instances,h=Or(d,e.eventUiBases);for(let p in a){let r=a[p],s=r.range,g=c[r.defId],m=l[r.defId];if(!Ji(g.constraints,s,u,e.businessHours,t))return!1;let{eventOverlap:b}=t.options,v="function"===typeof b?b:null;for(let e in f){let n=f[e];if(un(s,n.range)){let e=h[n.defId].overlap;if(!1===e&&o.isEvent)return!1;if(!1===g.overlap)return!1;if(v&&!v(new Ar(t,d[n.defId],n),new Ar(t,m,r)))return!1}}let y=i.eventStore;for(let e of g.allows){let i,o=Object.assign(Object.assign({},n),{range:r.range,allDay:m.allDay}),s=y.defs[m.defId],l=y.instances[p];if(i=s?new Ar(t,s,l):new Ar(t,m),!e(pr(o,t),i))return!1}}return!0}function Yi(e,t,n,r){let i=e.eventStore,o=i.defs,s=i.instances,l=e.dateSelection,a=l.range,{selectionConfig:c}=t.getCurrentData();if(r&&(c=r(c)),!Ji(c.constraints,a,i,e.businessHours,t))return!1;let{selectOverlap:u}=t.options,d="function"===typeof u?u:null;for(let f in s){let e=s[f];if(un(a,e.range)){if(!1===c.overlap)return!1;if(d&&!d(new Ar(t,o[e.defId],e),null))return!1}}for(let f of c.allows){let e=Object.assign(Object.assign({},n),l);if(!f(pr(e,t),null))return!1}return!0}function Ji(e,t,n,r,i){for(let o of e)if(!Ki(Xi(o,t,n,r,i),t))return!1;return!0}function Xi(e,t,n,r,i){return"businessHours"===e?$i(An(r,t,i)):"string"===typeof e?$i(Hn(n,t=>t.groupId===e)):"object"===typeof e&&e?$i(An(e,t,i)):[]}function $i(e){let{instances:t}=e,n=[];for(let r in t)n.push(t[r].range);return n}function Ki(e,t){for(let n of e)if(dn(n,t))return!0;return!1}const eo=/^(visible|hidden)$/;class to extends Ft{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,qt(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,i=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),Object(r["e"])("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(eo.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let r=0;r<n.length;r+=1){let e=n[r];if(e.getBoundingClientRect().width>t)return!0}return!1}needsYScrolling(){if(eo.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let r=0;r<n.length;r+=1){let e=n[r];if(e.getBoundingClientRect().height>t)return!0}return!1}getXScrollbarWidth(){return eo.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return eo.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class no{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,i=!1,o=!1;null!==e?(i=t in r,r[t]=e,n[t]=(n[t]||0)+1,o=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(t)),o&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return Rt(this.currentMap,e,t,n)}getAll(){return Ct(this.currentMap)}}function ro(e){let t=A(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,L(r));return Math.ceil(n)}function io(e,t){return e.liquid&&t.liquid}function oo(e,t){return null!=t.maxHeight||io(e,t)}function so(e,t,n,i){let{expandRows:o}=n,s="function"===typeof t.content?t.content(n):Object(r["e"])("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,Object(r["e"])(i?"thead":"tbody",{role:"presentation"},"function"===typeof t.rowContent?t.rowContent(n):t.rowContent));return s}function lo(e,t){return se(e,t,wt)}function ao(e,t){let n=[];for(let i of e){let e=i.span||1;for(let o=0;o<e;o+=1)n.push(Object(r["e"])("col",{style:{width:"shrink"===i.width?co(t):i.width||"",minWidth:i.minWidth||""}}))}return Object(r["e"])("colgroup",{},...n)}function co(e){return null==e?4:e}function uo(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function fo(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function ho(e,t){let n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function po(e){return Object(r["e"])("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function go(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function mo(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}class bo extends Ft{constructor(){super(...arguments),this.processCols=Ie(e=>e,lo),this.renderMicroColGroup=Ie(ao),this.scrollerRefs=new no,this.scrollerElRefs=new no(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,i=e.sections||[],o=this.processCols(e.cols),s=this.renderMicroColGroup(o,t.shrinkWidth),l=fo(e.liquid,n);e.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");let a,c=i.length,u=0,d=[],f=[],h=[];while(u<c&&"header"===(a=i[u]).type)d.push(this.renderSection(a,s,!0)),u+=1;while(u<c&&"body"===(a=i[u]).type)f.push(this.renderSection(a,s,!1)),u+=1;while(u<c&&"footer"===(a=i[u]).type)h.push(this.renderSection(a,s,!0)),u+=1;let p=!Yr();const g={role:"rowgroup"};return Object(r["e"])("table",{role:"grid",className:l.join(" "),style:{height:e.height}},Boolean(!p&&d.length)&&Object(r["e"])("thead",g,...d),Boolean(!p&&f.length)&&Object(r["e"])("tbody",g,...f),Boolean(!p&&h.length)&&Object(r["e"])("tfoot",g,...h),p&&Object(r["e"])("tbody",g,...d,...f,...h))}renderSection(e,t,n){return"outerContent"in e?Object(r["e"])(r["b"],{key:e.key},e.outerContent):Object(r["e"])("tr",{key:e.key,role:"presentation",className:ho(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,i){if("outerContent"in n)return n.outerContent;let{props:o}=this,{forceYScrollbars:s,scrollerClientWidths:l,scrollerClientHeights:a}=this.state,c=oo(o,e),u=io(o,e),d=o.liquid?s?"scroll":c?"auto":"hidden":"visible",f=e.key,h=so(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===l[f]?null:l[f],clientHeight:void 0!==a[f]?a[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return Object(r["e"])(i?"th":"td",{ref:n.elRef,role:"presentation"},Object(r["e"])("div",{className:"fc-scroller-harness"+(u?" fc-scroller-harness-liquid":"")},Object(r["e"])(to,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,t){let n=vo(this.props.sections,t);n&&qt(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return uo(this.props.cols)?ro(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=yi(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,i={},o={};for(let s in t.currentMap){let e=t.currentMap[s];if(e&&e.needsYScrolling()){r=!0;break}}for(let s of this.props.sections){let t=s.key,l=n.currentMap[t];if(l){let n=l.parentNode;i[t]=Math.floor(n.getBoundingClientRect().width-(r?e.y:0)),o[t]=Math.floor(n.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:i,scrollerClientHeights:o}}}function vo(e,t){for(let n of e)if(n.key===t)return n;return null}bo.addStateEquality({scrollerClientWidths:wt,scrollerClientHeights:wt});class yo extends Ft{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Sr(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:i}=e,{eventRange:o}=i,{ui:s}=o,l={event:new Ar(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&kr(i,t),isStartResizable:!e.disableResizing&&jr(i,t),isEndResizable:!e.disableResizing&&Tr(i),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)};return Object(r["e"])(Kt,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Nr(l),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:l,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Sr(this.el,this.props.seg)}}class Ao extends Ft{render(){let{props:e,context:t}=this,{options:n}=t,{seg:i}=e,{ui:o}=i.eventRange,s=n.eventTimeFormat||e.defaultTimeFormat,l=Ir(i,s,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return Object(r["e"])(yo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Hr(i,t),defaultGenerator:Co,timeText:l}),(e,t)=>Object(r["e"])(r["b"],null,Object(r["e"])(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&Object(r["e"])("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&Object(r["e"])("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Co(e){return Object(r["e"])("div",{className:"fc-event-main-frame"},e.timeText&&Object(r["e"])("div",{className:"fc-event-time"},e.timeText),Object(r["e"])("div",{className:"fc-event-title-container"},Object(r["e"])("div",{className:"fc-event-title fc-sticky"},e.event.title||Object(r["e"])(r["b"],null," "))))}const wo=e=>Object(r["e"])(zt.Consumer,null,t=>{let{options:n}=t,i={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return Object(r["e"])(Kt,Object.assign({},e,{elTag:e.elTag||"div",renderProps:i,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),_o=it({day:"numeric"});class So extends Ft{constructor(){super(...arguments),this.refineRenderProps=Me(Oo)}render(){let{props:e,context:t}=this,{options:n}=t,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return Object(r["e"])(Kt,Object.assign({},e,{elClasses:[...ui(i,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":je(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function Eo(e){return Boolean(e.dayCellContent||Yt("dayCellContent",e))}function Oo(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,o=ci(t,e.todayRange,null,r),s=e.showDayNumber?n.format(t,i?e.monthStartFormat:_o):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},o),{isMonthStart:i,dayNumberText:s}),e.extraRenderProps)}class Do extends Ft{render(){let{props:e}=this,{seg:t}=e;return Object(r["e"])(yo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:Ro,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Ro(e){let{title:t}=e.event;return t&&Object(r["e"])("div",{className:"fc-event-title"},e.event.title)}function xo(e){return Object(r["e"])("div",{className:"fc-"+e})}const ko=10;class jo extends Ft{constructor(){super(...arguments),this.state={titleId:D()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&qt(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=E(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:o}=this,s=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return Object(i["a"])(Object(r["e"])("div",Object.assign({},n.extraAttrs,{id:n.id,className:s.join(" "),"aria-labelledby":o.titleId,ref:this.handleRootEl}),Object(r["e"])("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},Object(r["e"])("span",{className:"fc-popover-title",id:o.titleId},n.title),Object(r["e"])("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),Object(r["e"])("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,i=Ei(t);if(i){let o=r.getBoundingClientRect(),s=n?v(t,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-o.width:i.left;s=Math.max(s,ko),l=Math.min(l,document.documentElement.clientWidth-ko-o.width),l=Math.max(l,ko);let a=r.offsetParent.getBoundingClientRect();_(r,{top:s-a.top,left:l-a.left})}}}class To extends xi{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:i,todayRange:o,dateProfile:s}=n,l=t.format(i,e.dayPopoverFormat);return Object(r["e"])(So,{elRef:this.handleRootEl,date:i,dateProfile:s,todayRange:o},(t,i,o)=>Object(r["e"])(jo,{elRef:o.ref,id:n.id,title:l,extraClassNames:["fc-more-popover"].concat(o.className||[]),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},Eo(e)&&Object(r["e"])(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children))}queryHit(e,t,n,r){let{rootEl:i,props:o}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!o.forceTimed,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:i,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class Io extends Ft{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:D()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&qt(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,i=No(t).start;function o(e){let{def:t,instance:r,range:i}=e.eventRange;return{event:new Ar(n,t,r),start:n.dateEnv.toDate(i.start),end:n.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"===typeof r&&(r=r({date:i,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(o),hiddenSegs:t.hiddenSegs.map(o),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"===typeof r&&n.calendarApi.zoomTo(i,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return Object(r["e"])(zt.Consumer,null,n=>{let{viewApi:i,options:o,calendarApi:s}=n,{moreLinkText:l}=o,{moreCnt:a}=e,c=No(e),u="function"===typeof l?l.call(s,a):`+${a} ${l}`,d=W(o.moreLinkHint,[a],u),f={num:a,shortText:"+"+a,text:u,view:i};return Object(r["e"])(r["b"],null,Boolean(e.moreCnt)&&Object(r["e"])(Kt,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),j(this.handleClick)),{title:d,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:f,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||Mo,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),t.isPopoverOpen&&Object(r["e"])(To,{id:t.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=v(this.linkEl,".fc-view-harness"))}}function Mo(e){return e.text}function No(e){if(e.allDayDate)return{start:e.allDayDate,end:ae(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Po(t),end:Bo(t)}}function Po(e){return e.reduce(Ho).eventRange.range.start}function Ho(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Bo(e){return e.reduce(Uo).eventRange.range.end}function Uo(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class Wo{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}class zo extends Wo{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}},a101:function(e,t,n){"use strict";n.d(t,"a",(function(){return Le})),n.d(t,"b",(function(){return h}));var r=n("6b46"),i=n("da65");n("15d1");const o=[],s={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},l=Object.assign(Object.assign({},s),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${1===e?"":"s"}`}});function a(e){let t=e.length>0?e[0].code:"en",n=o.concat(e),r={en:l};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function c(e,t){return"object"!==typeof e||Array.isArray(e)?u(e,t):f(e.code,[e.code],e)}function u(e,t){let n=[].concat(e||[]),r=d(n,t)||l;return f(e,n,r)}function d(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}function f(e,t,n){let i=Object(r["Cc"])([s,n],["buttonText"]);delete i.code;let{week:o}=i;return delete i.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function h(e){return{id:Object(r["wc"])(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},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||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function p(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let t of e){const e=t.name,o=n[e];void 0===o?(n[e]=t.id,i(t.deps),r=m(r,t)):o!==t.id&&console.warn(`Duplicate plugin '${e}'`)}}return e&&i(e),i(t),r}function g(){let e,t=[],n=[];return(i,o)=>(e&&Object(r["yc"])(i,t)&&Object(r["yc"])(o,n)||(e=p(i,o)),t=i,n=o,e)}function m(e,t){return{premiumReleaseDate:b(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function b(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class v extends r["u"]{}function y(e,t){let n,r={};for(n in e)A(n,r,e,t);for(n in t)A(n,r,e,t);return r}function A(e,t,n,r){if(t[e])return t[e];let i=C(e,t,n,r);return i&&(t[e]=i),i}function C(e,t,n,r){let i=n[e],o=r[e],s=e=>i&&null!==i[e]?i[e]:o&&null!==o[e]?o[e]:null,l=s("component"),a=s("superType"),c=null;if(a){if(a===e)throw new Error("Can't have a custom view type that references itself");c=A(a,t,n,r)}return!l&&c&&(l=c.component),l?{type:e,component:l,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),o?o.rawOptions:{})}:null}function w(e){return Object(r["C"])(e,_)}function _(e){let t="function"===typeof e?{component:e}:e,{component:n}=t;return t.content?n=S(t):!n||n.prototype instanceof r["c"]||(n=S(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function S(e){return t=>Object(i["e"])(r["w"].Consumer,null,n=>Object(i["e"])(r["d"],{elTag:"div",elClasses:Object(r["qb"])(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function E(e,t,n,i){let o=w(e),s=w(t.views),l=y(o,s);return Object(r["C"])(l,e=>O(e,s,t,n,i))}function O(e,t,n,i,o){let s=e.overrides.duration||e.defaults.duration||i.duration||n.duration,l=null,a="",c="",u={};if(s&&(l=R(s),l)){let e=Object(r["Ub"])(l);a=e.unit,1===e.value&&(c=a,u=t[a]?t[a].rawOptions:{})}let d=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null},f=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null};return{type:e.type,component:e.component,duration:l,durationUnit:a,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},u),e.overrides),buttonTextOverride:d(i)||d(n)||e.overrides.buttonText,buttonTextDefault:d(o)||e.defaults.buttonText||d(r["uc"])||e.type,buttonTitleOverride:f(i)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(o)||e.defaults.buttonHint||f(r["uc"])}}v.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},v.prototype.baseIconClass="fc-icon",v.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"},v.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},v.prototype.iconOverrideOption="buttonIcons",v.prototype.iconOverrideCustomButtonOption="icon",v.prototype.iconOverridePrefix="fc-icon-";let D={};function R(e){let t=JSON.stringify(e),n=D[t];return void 0===n&&(n=Object(r["tc"])(e),D[t]=n),n}function x(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function k(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function j(e,t,n){let r=e.initialDate;return null!=r?t.createMarker(r):n.getDateMarker()}function T(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function I(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function M(e,t,n){let r=t?t.activeRange:null;return B({},Q(e,n),r,n)}function N(e,t,n,i){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return B(e,t.sources,o,i);case"REMOVE_EVENT_SOURCE":return U(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?W(e,o,i):e;case"FETCH_EVENT_SOURCES":return L(e,t.sourceIds?Object(r["vc"])(t.sourceIds):V(e,i),o,t.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return F(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function P(e,t,n){let r=t?t.activeRange:null;return L(e,V(e,n),r,!0,n)}function H(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function B(e,t,n,r){let i={};for(let o of t)i[o.sourceId]=o;return n&&(i=W(i,n,r)),Object.assign(Object.assign({},e),i)}function U(e,t){return Object(r["xc"])(e,e=>e.sourceId!==t)}function W(e,t,n){return L(e,Object(r["xc"])(e,e=>z(e,t,n)),t,!1,n)}function z(e,t,n){return q(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function L(e,t,n,r,i){let o={};for(let s in e){let l=e[s];t[s]?o[s]=G(l,n,r,i):o[s]=l}return o}function G(e,t,n,i){let{options:o,calendarApi:s}=i,l=i.pluginHooks.eventSourceDefs[e.sourceDefId],a=Object(r["wc"])();return l.fetch({eventSource:e,range:t,isRefetch:n,context:i},n=>{let{rawEvents:r}=n;o.eventSourceSuccess&&(r=o.eventSourceSuccess.call(s,r,n.response)||r),e.success&&(r=e.success.call(s,r,n.response)||r),i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:r})},n=>{let r=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(s,n),r=!0),e.failure&&(e.failure(n),r=!0),r||console.warn(n.message,n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function F(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function V(e,t){return Object(r["xc"])(e,e=>q(e,t))}function Q(e,t){let n=Object(r["zc"])(t),i=[].concat(e.eventSources||[]),o=[];e.initialEvents&&i.unshift(e.initialEvents),e.events&&i.unshift(e.events);for(let s of i){let e=Object(r["Fc"])(s,t,n);e&&o.push(e)}return o}function q(e,t){let n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function Z(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Y(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function J(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function X(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function $(e,t,n,r,i){let o=e.headerToolbar?K(e.headerToolbar,e,t,n,r,i):null,s=e.footerToolbar?K(e.footerToolbar,e,t,n,r,i):null;return{header:o,footer:s}}function K(e,t,n,r,i,o){let s={},l=[],a=!1;for(let c in e){let u=e[c],d=ee(u,t,n,r,i,o);s[c]=d.widgets,l.push(...d.viewsWithButtons),a=a||d.hasTitle}return{sectionWidgets:s,viewsWithButtons:l,hasTitle:a}}function ee(e,t,n,i,o,s){let l="rtl"===t.direction,a=t.customButtons||{},c=n.buttonText||{},u=t.buttonText||{},d=n.buttonHints||{},f=t.buttonHints||{},h=e?e.split(" "):[],p=[],g=!1,m=h.map(e=>e.split(",").map(e=>{if("title"===e)return g=!0,{buttonName:e};let n,h,m,b,v,y;if(n=a[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(b=i.getCustomButtonIconClass(n))||(b=i.getIconClass(e,l))||(v=n.text),y=n.hint||n.text;else if(h=o[e]){p.push(e),m=()=>{s.changeView(e)},(v=h.buttonTextOverride)||(b=i.getIconClass(e,l))||(v=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;y=Object(r["Ac"])(h.buttonTitleOverride||h.buttonTitleDefault||t.viewHint,[n,e],n)}else if(s[e])if(m=()=>{s[e]()},(v=c[e])||(b=i.getIconClass(e,l))||(v=u[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=Object(r["Ac"])(d[t]||f[t],[u.year||"year","year"],u[e])}else y=t=>Object(r["Ac"])(d[e]||f[e],[u[t]||t,t],u[e]);return{buttonName:e,buttonClick:m,buttonIcon:b,buttonText:v,buttonHint:y}}));return{widgets:m,viewsWithButtons:p,hasTitle:g}}class te{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let ne={ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}};const re=h({name:"array-event-source",eventSourceDefs:[ne]});let ie={parseMeta(e){return"function"===typeof e.events?e.events:null},fetch(e,t,n){const{dateEnv:i}=e.context,o=e.eventSource.meta;Object(r["Kc"])(o.bind(null,Object(r["Bc"])(e.range,i)),e=>t({rawEvents:e}),n)}};const oe=h({name:"func-event-source",eventSourceDefs:[ie]}),se={method:String,extraParams:r["Dc"],startParam:String,endParam:String,timeZoneParam:String};let le={parseMeta(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch(e,t,n){const{meta:i}=e.eventSource,o=ce(i,e.range,e.context);Object(r["Hc"])(i.method,i.url,o).then(([e,n])=>{t({rawEvents:e,response:n})},n)}};const ae=h({name:"json-event-source",eventSourceRefiners:se,eventSourceDefs:[le]});function ce(e,t,n){let r,i,o,s,{dateEnv:l,options:a}=n,c={};return r=e.startParam,null==r&&(r=a.startParam),i=e.endParam,null==i&&(i=a.endParam),o=e.timeZoneParam,null==o&&(o=a.timeZoneParam),s="function"===typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,s),c[r]=l.formatIso(t.start),c[i]=l.formatIso(t.end),"local"!==l.timeZone&&(c[o]=l.timeZone),c}const ue={daysOfWeek:r["Dc"],startTime:r["tc"],endTime:r["tc"],duration:r["tc"],startRecur:r["Dc"],endRecur:r["Dc"]};let de={parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n,i={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t};return e.duration&&(n=e.duration),!n&&e.startTime&&e.endTime&&(n=Object(r["Ic"])(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:n,typeData:i}}return null},expand(e,t,n){let i=Object(r["Ec"])(t,{start:e.startRecur,end:e.endRecur});return i?he(e.daysOfWeek,e.startTime,e.dateEnv,n,i):[]}};const fe=h({name:"simple-recurring-event",recurringTypes:[de],eventRefiners:ue});function he(e,t,n,i,o){let s=e?Object(r["vc"])(e):null,l=Object(r["Gc"])(o.start),a=o.end,c=[];while(l<a){let e;s&&!s[l.getUTCDay()]||(e=t?i.add(l,t):l,c.push(i.createMarker(n.toDate(e)))),l=Object(r["Jc"])(l,1)}return c}const pe=h({name:"change-handler",optionChangeHandlers:{events(e,t){ge([e],t)},eventSources:ge}});function ge(e,t){let n=Object(r["Lc"])(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let i=[];for(let r of e){let e=!1;for(let t=0;t<n.length;t+=1)if(n[t]._raw===r){n.splice(t,1),e=!0;break}e||i.push(r)}for(let r of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:r.sourceId});for(let r of i)t.calendarApi.addEventSource(r)}function me(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Object(r["Bc"])(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function be(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Object(r["Mc"])(e,t))}const ve=[re,oe,ae,fe,pe,h({name:"misc",isLoadingFuncs:[e=>H(e.eventSources)],propSetHandlers:{dateProfile:me,eventStore:be}})];class ye{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new r["e"](this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;while(e.length){let t,n=[];while(t=e.shift())this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Ae(e,t,n){let i;return i=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(i.start,i.end,Object(r["Nc"])(t.titleFormat||Ce(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function Ce(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=Object(r["Oc"])(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class we{constructor(){this.resetListeners=new Set}handleInput(e,t){const n=this.dateEnv;if(e!==n&&("function"===typeof t?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(const r of this.resetListeners.values())r()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class _e{constructor(e){this.computeCurrentViewData=Object(r["Pc"])(this._computeCurrentViewData),this.organizeRawLocales=Object(r["Pc"])(a),this.buildLocale=Object(r["Pc"])(c),this.buildPluginHooks=g(),this.buildDateEnv=Object(r["Pc"])(Se),this.buildTheme=Object(r["Pc"])(Ee),this.parseToolbars=Object(r["Pc"])($),this.buildViewSpecs=Object(r["Pc"])(E),this.buildDateProfileGenerator=Object(r["b"])(Oe),this.buildViewApi=Object(r["Pc"])(De),this.buildViewUiProps=Object(r["b"])(ke),this.buildEventUiBySource=Object(r["Pc"])(Re,r["f"]),this.buildEventUiBases=Object(r["Pc"])(xe),this.parseContextBusinessHours=Object(r["b"])(Te),this.buildTitle=Object(r["Pc"])(Ae),this.nowManager=new we,this.emitter=new r["g"],this.actionRunner=new ye(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause(),this.nowManager=new we;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),i=n.calendarOptions.initialView||n.pluginHooks.initialView,o=this.computeCurrentViewData(i,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let s={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},l=j(n.calendarOptions,n.dateEnv,this.nowManager),u=o.dateProfileGenerator.build(l);Object(r["h"])(u.activeRange,l)||(l=u.currentRange.start);for(let r of n.pluginHooks.contextInit)r(s);let d=M(n.calendarOptions,u,s),f={dynamicOptionOverrides:t,currentViewType:i,currentDate:l,dateProfile:u,businessHours:this.parseContextBusinessHours(s),eventSources:d,eventUiBases:{},eventStore:Object(r["i"])(),renderableEventStore:Object(r["i"])(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},h=Object.assign(Object.assign({},s),f);for(let r of n.pluginHooks.reducers)Object.assign(f,r(null,null,h));je(f,s)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:i}=this,o=T(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),l=x(n.currentViewType,e),a=this.computeCurrentViewData(l,s,t.optionOverrides,o);t.calendarApi.currentDataManager=this,i.setThisContext(t.calendarApi),i.setOptions(a.options);let c={nowManager:this.nowManager,dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:d}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(d=a.dateProfileGenerator.build(u)),u=k(u,e),d=I(d,e,u,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Object(r["h"])(d.currentRange,u)||(u=d.currentRange.start);let f=N(n.eventSources,e,d,c),h=Object(r["j"])(n.eventStore,e,f,d,c),p=H(f),g=p&&!a.options.progressiveEventRendering&&n.renderableEventStore||h,{eventUiSingleBase:m,selectionConfig:b}=this.buildViewUiProps(c),v=this.buildEventUiBySource(f),y=this.buildEventUiBases(g.defs,m,v),A={dynamicOptionOverrides:o,currentViewType:l,currentDate:u,dateProfile:d,eventSources:f,eventStore:h,renderableEventStore:g,selectionConfig:b,eventUiBases:y,businessHours:this.parseContextBusinessHours(c),dateSelection:Z(n.dateSelection,e),eventSelection:Y(n.eventSelection,e),eventDrag:J(n.eventDrag,e),eventResize:X(n.eventResize,e)},C=Object.assign(Object.assign({},c),A);for(let r of s.pluginHooks.reducers)Object.assign(A,r(n,e,C));let w=je(n,c),_=je(A,c);!w&&_?i.trigger("loading",!0):w&&!_&&i.trigger("loading",!1),this.state=A,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,o.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),t),l=i.pluginHooks.optionChangeHandlers,a=n&&n.calendarOptions,c=i.calendarOptions;if(a&&a!==c){a.timeZone!==c.timeZone&&(t.eventSources=s.eventSources=P(s.eventSources,t.dateProfile,s),t.eventStore=s.eventStore=Object(r["k"])(s.eventStore,n.dateEnv,s.dateEnv),t.renderableEventStore=s.renderableEventStore=Object(r["k"])(s.renderableEventStore,n.dateEnv,s.dateEnv));for(let e in l)-1===this.optionsForHandling.indexOf(e)&&a[e]===c[e]||l[e](c[e],s)}this.optionsForHandling=[],e.onData&&e.onData(s)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:o,availableLocaleData:s,extra:l}=this.processRawCalendarOptions(e,t);Ie(l);let a=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,s,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),u=this.buildTheme(r,i),d=this.parseToolbars(r,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:a,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:o,availableRawLocales:s.map}}processRawCalendarOptions(e,t){let{locales:n,locale:i}=Object(r["l"])([r["uc"],e,t]),o=this.organizeRawLocales(n),s=o.map,l=this.buildLocale(i||o.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],ve),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r["m"]),r["n"]),r["o"]),a.listenerRefiners),a.optionRefiners),u={},d=Object(r["l"])([r["uc"],l,e,t]),f={},h=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,g=!1;for(let m in d)-1===this.optionsForRefining.indexOf(m)&&(d[m]===h[m]||r["p"][m]&&m in h&&r["p"][m](h[m],d[m]))?f[m]=p[m]:c[m]?(f[m]=c[m](d[m]),g=!0):u[m]=h[m];return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=f,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:o,localeDefaults:l,extra:u}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:o,extra:s}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);Ie(s),this.nowManager.handleInput(t.dateEnv,o.now);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),a=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:i,options:o,dateProfileGenerator:l,viewApi:a}}processRawViewOptions(e,t,n,i,o){let s=Object(r["l"])([r["uc"],e.optionDefaults,n,i,e.optionOverrides,o]),l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r["m"]),r["n"]),r["o"]),r["q"]),t.listenerRefiners),t.optionRefiners),a={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,f={};for(let h in s)s[h]===c[h]||r["p"][h]&&r["p"][h](s[h],c[h])?a[h]=u[h]:(s[h]===this.currentCalendarOptionsInput[h]||r["p"][h]&&r["p"][h](s[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(a[h]=this.currentCalendarOptionsRefined[h]):l[h]?a[h]=l[h](s[h]):f[h]=s[h],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:f}}}function Se(e,t,n,i,o,s,l,a){let u=c(t||l.defaultCode,l.map);return new r["r"]({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:u,weekNumberCalculation:n,firstDay:i,weekText:o,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Ee(e,t){let n=t.themeClasses[e.themeSystem]||v;return new n(e)}function Oe(e){let t=e.dateProfileGeneratorClass||r["s"];return new t(e)}function De(e,t,n){return new te(e,t,n)}function Re(e){return Object(r["C"])(e,e=>e.ui)}function xe(e,t,n){let r={"":t};for(let i in e){let t=e[i];t.sourceId&&n[t.sourceId]&&(r[i]=n[t.sourceId])}return r}function ke(e){let{options:t}=e;return{eventUiSingleBase:Object(r["t"])({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"===typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Object(r["t"])({constraint:t.selectConstraint,overlap:"boolean"===typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function je(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Te(e){return Object(r["v"])(e.options.businessHours,e)}function Ie(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class Me extends r["c"]{render(){let e=this.props.widgetGroups.map(e=>this.renderWidgetGroup(e));return Object(i["e"])("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let s of e){let{buttonName:e,buttonClick:l,buttonText:a,buttonIcon:c,buttonHint:u}=s;if("title"===e)o=!1,r.push(Object(i["e"])("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,s=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];o&&d.push(n.getClass("buttonActive")),r.push(Object(i["e"])("button",{type:"button",title:"function"===typeof u?u(t.navUnit):u,disabled:s,"aria-pressed":o,className:d.join(" "),onClick:l},a||(c?Object(i["e"])("span",{className:c,role:"img"}):"")))}}if(r.length>1){let e=o&&n.getClass("buttonGroup")||"";return Object(i["e"])("div",{className:e},...r)}return r[0]}}class Ne extends r["c"]{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,s=n.sectionWidgets,l=s.center;s.left?(o=!0,e=s.left):e=s.start,s.right?(o=!0,t=s.right):t=s.end;let a=[r||"","fc-toolbar",o?"fc-toolbar-ltr":""];return Object(i["e"])("div",{className:a.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",l||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return Object(i["e"])(Me,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class Pe extends r["c"]{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,Object(r["x"])(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",s="";return n?null!==t.availableWidth?o=t.availableWidth/n:s=1/n*100+"%":o=e.height||"",Object(i["e"])("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class He extends r["y"]{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:i}=n,o=Object(r["z"])(t);if(o&&n.isValidSegDownEl(e.target)){let s=Object(r["A"])(e.target,".fc-event-forced-url"),l=s?s.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new r["B"](n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:i.viewApi}),l&&!e.defaultPrevented&&(window.location.href=l)}},this.destroy=Object(r["a"])(e.el,"click",".fc-event",this.handleSegClick)}}class Be extends r["y"]{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Object(r["z"])(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=Object(r["D"])(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:i}=this,{context:o}=i,s=Object(r["z"])(n);t&&!i.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new r["B"](o,s.eventRange.def,s.eventRange.instance),jsEvent:t,view:o.viewApi})}}class Ue extends r["E"]{constructor(){super(...arguments),this.buildViewContext=Object(r["Pc"])(r["F"]),this.buildViewPropTransformers=Object(r["Pc"])(ze),this.buildToolbarProps=Object(r["Pc"])(We),this.headerRef=Object(i["f"])(),this.footerRef=Object(i["f"])(),this.interactionsStore={},this.state={viewLabelId:Object(r["G"])()},this.registerInteractiveComponent=(e,t)=>{let n=Object(r["H"])(e,t),i=[He,Be],o=i.concat(this.props.pluginHooks.componentInteractions),s=o.map(e=>new e(n));this.interactionsStore[e.uid]=s,r["I"][e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete r["I"][e.uid]},this.resizeRunner=new r["e"](()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:o}=t,s=!1,l="";t.isHeightAuto||t.forPrint?l="":null!=o.height?s=!0:null!=o.contentHeight?l=o.contentHeight:e=Math.max(o.aspectRatio,.5);let a=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return Object(i["e"])(r["w"].Provider,{value:a},Object(i["e"])(r["J"],{unit:"day"},r=>{let o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,r,t.viewTitle);return Object(i["e"])(i["b"],null,n.header&&Object(i["e"])(Ne,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},o)),Object(i["e"])(Pe,{liquid:s,height:l,aspectRatio:e,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&Object(i["e"])(Ne,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map(t=>t(e));return Object(i["e"])(i["b"],{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=this.buildViewPropTransformers(t.viewPropsTransformers);for(let i of o)Object.assign(r,i.transform(r,e));let s=n.component;return Object(i["e"])(s,Object.assign({},r))}}function We(e,t,n,i,o,s){let l=n.build(o,void 0,!1),a=n.buildPrev(t,i,!1),c=n.buildNext(t,i,!1);return{title:s,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:l.isValid&&!Object(r["h"])(t.currentRange,o),isPrevEnabled:a.isValid,isNextEnabled:c.isValid}}function ze(e){return e.map(e=>new e)}class Le extends r["K"]{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;Object(r["L"])(()=>{Object(i["j"])(Object(i["e"])(r["M"],{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,o,s)=>(this.setClassNames(t),this.setHeight(n),Object(i["e"])(r["fb"].Provider,{value:this.customContentRenderId},Object(i["e"])(Ue,Object.assign({isHeightAuto:o,forPrint:s},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Object(i["j"])(null,this.el),this.setClassNames([]),this.setHeight(""))},Object(r["gb"])(e),this.el=e,this.renderRunner=new r["e"](this.handleRenderRequest),new _e({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Object(r["L"])(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!Object(r["yc"])(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Object(r["hb"])(this.el,"height",e)}}},a203:function(e,t,n){"use strict";var r=n("a101"),i=n("6b46"),o=n("da65");const s=372,l="https://fullcalendar.io/docs/schedulerLicenseKey#invalid",a="https://fullcalendar.io/docs/schedulerLicenseKey#outdated",c=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],u={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};function d(e){let t=e.options.schedulerLicenseKey,n="undefined"!==typeof window?window.location.href:"";if(!h(n)){let n=f(t,e.pluginHooks.premiumReleaseDate);if("valid"!==n)return Object(o["e"])("div",{className:"fc-license-message",style:u},"outdated"===n?Object(o["e"])(o["b"],null,"Your license key is too old to work with this version. ",Object(o["e"])("a",{href:a},"More Info")):Object(o["e"])(o["b"],null,"Your license key is invalid. ",Object(o["e"])("a",{href:l},"More Info")))}return null}function f(e,t){if(-1!==c.indexOf(e))return"valid";const n=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(n&&10===n[1].length){const e=new Date(1e3*parseInt(n[2],10)),r=i["yb"].mockSchedulerReleaseDate||t;if(Object(i["Kb"])(r)){const t=Object(i["Jc"])(r,-s);return t<e?"valid":"outdated"}}return"invalid"}function h(e){return/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(e)}const p={schedulerLicenseKey:String};var g=Object(r["b"])({name:"@fullcalendar/premium-common",premiumReleaseDate:"2025-04-02",optionRefiners:p,viewContainerAppends:[d]});function m(e){let t=e.getBoundingClientRect(),n=Object(i["tb"])(e);return{left:t.left+n.borderLeft+n.scrollbarLeft-b(e),top:t.top+n.borderTop-e.scrollTop}}function b(e){let t=e.scrollLeft,n=window.getComputedStyle(e);if("rtl"===n.direction)switch(A()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function v(e,t){let n=window.getComputedStyle(e);if("rtl"===n.direction)switch(A()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t);break}e.scrollLeft=t}let y;function A(){return y||(y=C())}function C(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";let t,n=document.createElement("div");return n.style.width="200px",n.style.height="200px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=1,t=e.scrollLeft>0?"reverse":"negative"),Object(i["U"])(e),t}const w=".fc-sticky";class _{constructor(e,t){this.scrollEl=e,this.isRtl=t,this.updateSize=()=>{let{scrollEl:e}=this,t=Object(i["S"])(e,w),n=this.queryElGeoms(t),r=e.clientWidth;S(t,n,r)}}queryElGeoms(e){let{scrollEl:t,isRtl:n}=this,r=m(t),o=[];for(let s of e){let e=Object(i["P"])(Object(i["sb"])(s.parentNode,!0,!0),-r.left,-r.top),t=s.getBoundingClientRect(),l=window.getComputedStyle(s),a=window.getComputedStyle(s.parentNode).textAlign,c=null;"start"===a?a=n?"right":"left":"end"===a&&(a=n?"left":"right"),"sticky"!==l.position&&(c=Object(i["P"])(t,-r.left-(parseFloat(l.left)||0),-r.top-(parseFloat(l.top)||0))),o.push({parentBound:e,naturalBound:c,elWidth:t.width,elHeight:t.height,textAlign:a})}return o}}function S(e,t,n){e.forEach((e,r)=>{let o,{textAlign:s,elWidth:l,parentBound:a}=t[r],c=a.right-a.left;o="center"===s&&c>n?(n-l)/2:"",Object(i["V"])(e,{left:o,right:o,top:0})})}class E extends i["c"]{constructor(){super(...arguments),this.elRef=Object(o["f"])(),this.state={xScrollbarWidth:0,yScrollbarWidth:0},this.handleScroller=e=>{this.scroller=e,Object(i["x"])(this.props.scrollerRef,e)},this.handleSizing=()=>{let{props:e}=this;"scroll-hidden"===e.overflowY&&this.setState({yScrollbarWidth:this.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&this.setState({xScrollbarWidth:this.scroller.getXScrollbarWidth()})}}render(){let{props:e,state:t,context:n}=this,r=n.isRtl&&Object(i["jc"])(),s=0,l=0,a=0,{overflowX:c,overflowY:u}=e;return e.forPrint&&(c="visible",u="visible"),"scroll-hidden"===c&&(a=t.xScrollbarWidth),"scroll-hidden"===u&&null!=t.yScrollbarWidth&&(r?s=t.yScrollbarWidth:l=t.yScrollbarWidth),Object(o["e"])("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},Object(o["e"])(i["gc"],{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===c?"scroll":c,overflowY:"scroll-hidden"===u?"scroll":u,overcomeLeft:s,overcomeRight:l,overcomeBottom:a,maxHeight:"number"===typeof e.maxHeight?e.maxHeight+("scroll-hidden"===c?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}getSnapshotBeforeUpdate(e){return this.props.forPrint&&!e.forPrint?{simulateScrollLeft:this.scroller.el.scrollLeft}:{}}componentDidUpdate(e,t,n){const{props:r,scroller:{el:o}}=this;if(Object(i["f"])(e,r)||this.handleSizing(),void 0!==n.simulateScrollLeft)o.style.left=-n.simulateScrollLeft+"px";else if(!r.forPrint&&e.forPrint){const e=-parseInt(o.style.left);o.style.left="",o.scrollLeft=e}}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}needsXScrolling(){return this.scroller.needsXScrolling()}needsYScrolling(){return this.scroller.needsYScrolling()}}const O="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class D{constructor(e){this.el=e,this.emitter=new i["g"],this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new i["e"](this._handleWheelWaited.bind(this)),this.scrollWaiter=new i["e"](this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of O)e.addEventListener(t,this.handleWheel)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of O)e.removeEventListener(t,this.handleWheel)}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class R{constructor(e,t){this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map(e=>this.bindScroller(e))}destroy(){for(let e of this.scrollListeners)e.destroy()}bindScroller(e){let{scrollEls:t,isVertical:n}=this,r=new D(e);const i=(r,i)=>{if(!this.isPaused&&((!this.masterEl||this.masterEl!==e&&(r||i))&&this.assignMaster(e),this.masterEl===e))for(let o of t)o!==e&&(n?o.scrollTop=e.scrollTop:o.scrollLeft=e.scrollLeft)},o=()=>{this.masterEl===e&&(this.masterEl=null)};return r.emitter.on("scroll",i),r.emitter.on("scrollEnd",o),r}assignMaster(e){this.masterEl=e;for(let t of this.scrollListeners)t.el!==e&&t.endScroll()}forceScrollLeft(e){this.isPaused=!0;for(let t of this.scrollListeners)v(t.el,e);this.isPaused=!1}forceScrollTop(e){this.isPaused=!0;for(let t of this.scrollListeners)t.el.scrollTop=e;this.isPaused=!1}}i["yb"].SCROLLGRID_RESIZE_INTERVAL=500;class x extends i["c"]{constructor(){super(...arguments),this.compileColGroupStats=Object(i["N"])(M,H),this.renderMicroColGroups=Object(i["N"])(i["rb"]),this.clippedScrollerRefs=new i["ic"],this.scrollerElRefs=new i["ic"](this._handleScrollerEl.bind(this)),this.chunkElRefs=new i["ic"](this._handleChunkEl.bind(this)),this.scrollSyncersBySection={},this.scrollSyncersByColumn={},this.rowUnstableMap=new Map,this.rowInnerMaxHeightMap=new Map,this.anyRowHeightsChanged=!1,this.recentSizingCnt=0,this.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},this.handleSizing=(e,t)=>{if(!this.allowSizing())return;t||(this.anyRowHeightsChanged=!0);let n={};(e||!t&&!this.rowUnstableMap.size)&&(n.sectionRowMaxHeights=this.computeSectionRowMaxHeights()),this.setState(Object.assign(Object.assign({shrinkWidths:this.computeShrinkWidths()},this.computeScrollerDims()),n),()=>{this.rowUnstableMap.size||this.updateStickyScrolling()})},this.handleRowHeightChange=(e,t)=>{let{rowUnstableMap:n,rowInnerMaxHeightMap:r}=this;if(t){n.delete(e);let t=j(e);r.has(e)&&r.get(e)===t||(r.set(e,t),this.anyRowHeightsChanged=!0),!n.size&&this.anyRowHeightsChanged&&(this.anyRowHeightsChanged=!1,this.setState({sectionRowMaxHeights:this.computeSectionRowMaxHeights()}))}else n.set(e,!0)}}render(){let{props:e,state:t,context:n}=this,{shrinkWidths:r}=t,s=this.compileColGroupStats(e.colGroups.map(e=>[e])),l=this.renderMicroColGroups(s.map((e,t)=>[e.cols,r[t]])),a=Object(i["Vb"])(e.liquid,n);this.getDims();let c,u=e.sections,d=u.length,f=0,h=[],p=[],g=[];while(f<d&&"header"===(c=u[f]).type)h.push(this.renderSection(c,f,s,l,t.sectionRowMaxHeights,!0)),f+=1;while(f<d&&"body"===(c=u[f]).type)p.push(this.renderSection(c,f,s,l,t.sectionRowMaxHeights,!1)),f+=1;while(f<d&&"footer"===(c=u[f]).type)g.push(this.renderSection(c,f,s,l,t.sectionRowMaxHeights,!0)),f+=1;const m=!Object(i["X"])(),b={role:"rowgroup"};return Object(o["e"])("table",{ref:e.elRef,role:"grid",className:a.join(" ")},I(s,r),Boolean(!m&&h.length)&&Object(o["e"])("thead",b,...h),Boolean(!m&&p.length)&&Object(o["e"])("tbody",b,...p),Boolean(!m&&g.length)&&Object(o["e"])("tfoot",b,...g),m&&Object(o["e"])("tbody",b,...h,...p,...g))}renderSection(e,t,n,r,s,l){return"outerContent"in e?Object(o["e"])(o["b"],{key:e.key},e.outerContent):Object(o["e"])("tr",{key:e.key,role:"presentation",className:Object(i["Wb"])(e,this.props.liquid).join(" ")},e.chunks.map((i,o)=>this.renderChunk(e,t,n[o],r[o],i,o,(s[t]||[])[o]||[],l)))}renderChunk(e,t,n,r,s,l,a,c){if("outerContent"in s)return Object(o["e"])(o["b"],{key:s.key},s.outerContent);let{state:u}=this,{scrollerClientWidths:d,scrollerClientHeights:f}=u,[h,p]=this.getDims(),g=t*p+l,m=!this.context.isRtl||Object(i["jc"])()?p-1:0,b=l===m,v=t===h-1,y=v&&u.forceXScrollbars,A=b&&u.forceYScrollbars,C=n&&n.allowXScrolling,w=Object(i["Yb"])(this.props,e),_=Object(i["Xb"])(this.props,e),S=e.expandRows&&_,O=n&&n.totalColMinWidth||"",D=Object(i["Zb"])(e,s,{tableColGroupNode:r,tableMinWidth:O,clientWidth:void 0!==d[g]?d[g]:null,clientHeight:void 0!==f[g]?f[g]:null,expandRows:S,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:a,reportRowHeightChange:this.handleRowHeightChange},c),R=y?v?"scroll":"scroll-hidden":C?v?"auto":"scroll-hidden":"hidden",x=A?b?"scroll":"scroll-hidden":w?b?"auto":"scroll-hidden":"hidden";return D=Object(o["e"])(E,{ref:this.clippedScrollerRefs.createRef(g),scrollerElRef:this.scrollerElRefs.createRef(g),overflowX:R,overflowY:x,forPrint:this.props.forPrint,liquid:_,maxHeight:e.maxHeight},D),Object(o["e"])(c?"th":"td",{key:s.key,ref:this.chunkElRefs.createRef(g),role:"presentation"},D)}componentDidMount(){this.getStickyScrolling=Object(i["N"])(W),this.getScrollSyncersBySection=Object(i["O"])(B.bind(this,!0),null,U),this.getScrollSyncersByColumn=Object(i["O"])(B.bind(this,!1),null,U),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}allowSizing(){let e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+i["yb"].SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}computeShrinkWidths(){let e=this.compileColGroupStats(this.props.colGroups.map(e=>[e])),[t,n]=this.getDims(),r=t*n,o=[];return e.forEach((e,t)=>{if(e.hasShrinkCol){let e=this.chunkElRefs.collect(t,r,n);o[t]=Object(i["ac"])(e)}}),o}computeSectionRowMaxHeights(){let e=new Map,[t,n]=this.getDims(),r=[];for(let o=0;o<t;o+=1){let t=this.props.sections[o],s=[];if(t&&t.syncRowHeights){let r=[];for(let t=0;t<n;t+=1){let s=o*n+t,l=[],a=this.chunkElRefs.currentMap[s];l=a?Object(i["S"])(a,".fc-scrollgrid-sync-table tr").map(t=>{let n=j(t);return e.set(t,n),n}):[],r.push(l)}let l=r[0].length,a=!0;for(let e=1;e<n;e+=1){let n=t.chunks[e]&&void 0!==t.chunks[e].outerContent;if(!n&&r[e].length!==l){a=!1;break}}if(a){for(let e=0;e<n;e+=1)s.push([]);for(let e=0;e<l;e+=1){let t=[];for(let o=0;o<n;o+=1){let n=r[o][e];null!=n&&t.push(n)}let i=Math.max(...t);for(let e=0;e<n;e+=1)s[e].push(i)}}else{let e=[];for(let i=0;i<n;i+=1)e.push(k(r[i])+r[i].length);let t=Math.max(...e);for(let i=0;i<n;i+=1){let e=r[i].length,n=t-e,o=Math.floor(n/e),l=n-o*(e-1),a=[],c=0;c<e&&(a.push(l),c+=1);while(c<e)a.push(o),c+=1;s.push(a)}}}r.push(s)}return this.rowInnerMaxHeightMap=e,r}computeScrollerDims(){let e=Object(i["hc"])(),[t,n]=this.getDims(),r=!this.context.isRtl||Object(i["jc"])()?n-1:0,o=t-1,s=this.clippedScrollerRefs.currentMap,l=this.scrollerElRefs.currentMap,a=!1,c=!1,u={},d={};for(let i=0;i<t;i+=1){let e=i*n+r,t=s[e];if(t&&t.needsYScrolling()){a=!0;break}}for(let i=0;i<n;i+=1){let e=o*n+i,t=s[e];if(t&&t.needsXScrolling()){c=!0;break}}for(let i=0;i<t;i+=1)for(let t=0;t<n;t+=1){let s=i*n+t,f=l[s];if(f){let n=f.parentNode;u[s]=Math.floor(n.getBoundingClientRect().width-(t===r&&a?e.y:0)),d[s]=Math.floor(n.getBoundingClientRect().height-(i===o&&c?e.x:0))}}return{forceYScrollbars:a,forceXScrollbars:c,scrollerClientWidths:u,scrollerClientHeights:d}}updateStickyScrolling(){let{isRtl:e}=this.context,t=this.scrollerElRefs.getAll().map(t=>[t,e]);this.getStickyScrolling(t).forEach(e=>e.updateSize())}updateScrollSyncers(){let[e,t]=this.getDims(),n=e*t,r={},o={},s=this.scrollerElRefs.currentMap;for(let l=0;l<e;l+=1){let e=l*t,n=e+t;r[l]=Object(i["R"])(s,e,n,1)}for(let i=0;i<t;i+=1)o[i]=this.scrollerElRefs.collect(i,n,t);this.scrollSyncersBySection=this.getScrollSyncersBySection(r),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(o)}destroyScrollSyncers(){Object(i["C"])(this.scrollSyncersBySection,U),Object(i["C"])(this.scrollSyncersByColumn,U)}getChunkConfigByIndex(e){let t=this.getDims()[1],n=Math.floor(e/t),r=e%t,i=this.props.sections[n];return i&&i.chunks[r]}forceScrollLeft(e,t){let n=this.scrollSyncersByColumn[e];n&&n.forceScrollLeft(t)}forceScrollTop(e,t){let n=this.scrollSyncersBySection[e];n&&n.forceScrollTop(t)}_handleChunkEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&Object(i["x"])(n.elRef,e)}_handleScrollerEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&Object(i["x"])(n.scrollerElRef,e)}getDims(){let e=this.props.sections.length,t=e?this.props.sections[0].chunks.length:0;return[e,t]}}function k(e){let t=0;for(let n of e)t+=n;return t}function j(e){let t=Object(i["S"])(e,".fc-scrollgrid-sync-inner").map(T);return t.length?Math.max(...t):0}function T(e){return e.offsetHeight}function I(e,t){let n=e.map((e,n)=>{let r=e.width;return"shrink"===r&&(r=e.totalColWidth+Object(i["bc"])(t[n])+1),Object(o["e"])("col",{style:{width:r}})});return Object(o["e"])("colgroup",{},...n)}function M(e){let t=N(e.cols,"width"),n=N(e.cols,"minWidth"),r=Object(i["Hb"])(e.cols),o="shrink"!==e.width&&Boolean(t||n||r);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:o,cols:e.cols,width:e.width}}function N(e,t){let n=0;for(let r of e){let e=r[t];"number"===typeof e&&(n+=e*(r.span||1))}return n}x.addStateEquality({shrinkWidths:i["yc"],scrollerClientWidths:i["f"],scrollerClientHeights:i["f"]});const P={cols:i["cc"]};function H(e,t){return Object(i["Q"])(e,t,P)}function B(e,...t){return new R(e,t)}function U(e){e.destroy()}function W(e,t){return new _(e,t)}var z='.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;pointer-events:none;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}';Object(i["rc"])(z);const L=18,G=6,F=200;i["yb"].MAX_TIMELINE_SLOTS=1e3;const V=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function Q(e,t,n,r){let o={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};J(o,e,t),X(o,e,t),$(o,e,t);let s=n.slotLabelFormat,l=Array.isArray(s)?s:null!=s?[s]:K(o,e,t,n);o.headerFormats=l.map(e=>Object(i["Nc"])(e)),o.isTimeScale=Boolean(o.slotDuration.milliseconds);let a=null;if(!o.isTimeScale){const e=Object(i["Ub"])(o.slotDuration).unit;/year|month|week/.test(e)&&(a=e)}o.largeUnit=a,o.emphasizeWeeks=1===Object(i["Lb"])(o.slotDuration)&&ee("weeks",e,t)>=2&&!n.businessHours;let c,u,d=n.snapDuration;d&&(c=Object(i["tc"])(d),u=Object(i["Qb"])(o.slotDuration,c)),null==u&&(c=o.slotDuration,u=1),o.snapDuration=c,o.snapsPerSlot=u;let f=Object(i["Pb"])(e.slotMaxTime)-Object(i["Pb"])(e.slotMinTime),h=q(e.renderRange.start,o,t),p=q(e.renderRange.end,o,t);o.isTimeScale&&(h=t.add(h,e.slotMinTime),p=t.add(Object(i["Jc"])(p,-1),e.slotMaxTime)),o.timeWindowMs=f,o.normalizedRange={start:h,end:p};let g=[],m=h;while(m<p)Y(m,o,e,r)&&g.push(m),m=t.add(m,o.slotDuration);o.slotDates=g;let b=-1,v=0;const y=[],A=[];m=h;while(m<p)Y(m,o,e,r)?(b+=1,y.push(b),A.push(v)):y.push(b+.5),m=t.add(m,o.snapDuration),v+=1;return o.snapDiffToIndex=y,o.snapIndexToDiff=A,o.snapCnt=b+1,o.slotCnt=o.snapCnt/o.snapsPerSlot,o.isWeekStarts=te(o,t),o.cellRows=ne(o,t),o.slotsPerLabel=Object(i["Qb"])(o.labelInterval,o.slotDuration),o}function q(e,t,n){let r=e;return t.isTimeScale||(r=Object(i["Gc"])(r),t.largeUnit&&(r=n.startOf(r,t.largeUnit))),r}function Z(e,t,n){if(!t.isTimeScale&&(e=Object(i["pb"])(e),t.largeUnit)){let r=e;e={start:n.startOf(e.start,t.largeUnit),end:n.startOf(e.end,t.largeUnit)},(e.end.valueOf()!==r.end.valueOf()||e.end<=e.start)&&(e={start:e.start,end:n.add(e.end,t.slotDuration)})}return e}function Y(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){let r=Object(i["Gc"])(e),o=e.valueOf()-r.valueOf(),s=o-Object(i["Pb"])(n.slotMinTime);return s=(s%864e5+864e5)%864e5,s<t.timeWindowMs}return!0}function J(e,t,n){const{currentRange:r}=t;if(e.labelInterval){const t=n.countDurationsBetween(r.start,r.end,e.labelInterval);t>i["yb"].MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),e.labelInterval=null)}if(e.slotDuration){const t=n.countDurationsBetween(r.start,r.end,e.slotDuration);t>i["yb"].MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){const t=Object(i["Qb"])(e.labelInterval,e.slotDuration);(null===t||t<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}function X(e,t,n){const{currentRange:r}=t;let{labelInterval:o}=e;if(!o){let t;if(e.slotDuration){for(t of V){const n=Object(i["tc"])(t),r=Object(i["Qb"])(n,e.slotDuration);if(null!==r&&r<=G){o=n;break}}o||(o=e.slotDuration)}else for(t of V){o=Object(i["tc"])(t);const e=n.countDurationsBetween(r.start,r.end,o);if(e>=L)break}e.labelInterval=o}return o}function $(e,t,n){const{currentRange:r}=t;let{slotDuration:o}=e;if(!o){const s=X(e,t,n);for(let e of V){const t=Object(i["tc"])(e),n=Object(i["Qb"])(s,t);if(null!==n&&n>1&&n<=G){o=t;break}}if(o){const e=n.countDurationsBetween(r.start,r.end,o);e>F&&(o=null)}o||(o=s),e.slotDuration=o}return o}function K(e,t,n,r){let o,s;const{labelInterval:l}=e;let a=Object(i["Ub"])(l).unit;const c=r.weekNumbers;let u=o=s=null;switch("week"!==a||c||(a="day"),a){case"year":u={year:"numeric"};break;case"month":ee("years",t,n)>1&&(u={year:"numeric"}),o={month:"short"};break;case"week":ee("years",t,n)>1&&(u={year:"numeric"}),o={week:"narrow"};break;case"day":ee("years",t,n)>1?u={year:"numeric",month:"long"}:ee("months",t,n)>1&&(u={month:"long"}),c&&(o={week:"short"}),s={weekday:"narrow",day:"numeric"};break;case"hour":c&&(u={week:"short"}),ee("days",t,n)>1&&(o={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),s={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":Object(i["Nb"])(l)/60>=G?(u={hour:"numeric",meridiem:"short"},o=e=>":"+Object(i["kb"])(e.date.minute,2)):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":Object(i["Ob"])(l)/60>=G?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},o=e=>":"+Object(i["kb"])(e.date.second,2)):u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},o=e=>"."+Object(i["kb"])(e.millisecond,3);break}return[].concat(u||[],o||[],s||[])}function ee(e,t,n){let r=t.currentRange,o=null;return"years"===e?o=n.diffWholeYears(r.start,r.end):"months"===e||"weeks"===e?o=n.diffWholeMonths(r.start,r.end):"days"===e&&(o=Object(i["Oc"])(r.start,r.end)),o||0}function te(e,t){let{slotDates:n,emphasizeWeeks:r}=e,i=null,o=[];for(let s of n){let e=t.computeWeekNumber(s),n=r&&null!==i&&i!==e;i=e,o.push(n)}return o}function ne(e,t){let n=e.slotDates,r=e.headerFormats,o=r.map(()=>[]),s=Object(i["Lb"])(e.slotDuration),l=7===s?"week":1===s?"day":null,a=r.map(e=>e.getSmallestUnit?e.getSmallestUnit():null);for(let c=0;c<n.length;c+=1){let s=n[c],u=e.isWeekStarts[c];for(let n=0;n<r.length;n+=1){let c=r[n],d=o[n],f=d[d.length-1],h=n===r.length-1,p=r.length>1&&!h,g=null,m=a[n]||(h?l:null);if(p){let e=t.format(s,c);f&&f.text===e?f.colspan+=1:g=re(s,e,m)}else if(!f||Object(i["lb"])(t.countDurationsBetween(e.normalizedRange.start,s,e.labelInterval))){let e=t.format(s,c);g=re(s,e,m)}else f.colspan+=1;g&&(g.weekStart=u,d.push(g))}}return o}function re(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}class ie extends i["c"]{constructor(){super(...arguments),this.refineRenderProps=Object(i["b"])(le),this.buildCellNavLinkAttrs=Object(i["Pc"])(oe)}render(){let{props:e,context:t}=this,{dateEnv:n,options:r}=t,{cell:s,dateProfile:l,tDateProfile:a}=e,c=Object(i["cb"])(s.date,e.todayRange,e.nowDate,l),u=this.refineRenderProps({level:e.rowLevel,dateMarker:s.date,text:s.text,dateEnv:t.dateEnv,viewApi:t.viewApi});return Object(o["e"])(i["d"],{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",s.isWeekStart&&"fc-timeline-slot-em",..."time"===s.rowUnit?Object(i["db"])(c,t.theme):Object(i["bb"])(c,t.theme)],elAttrs:{colSpan:s.colspan,"data-date":n.formatIso(s.date,{omitTime:!a.isTimeScale,omitTimeZoneOffset:!0})},renderProps:u,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:se,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},n=>Object(o["e"])("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},Object(o["e"])(n,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",e.isSticky&&"fc-sticky"],elAttrs:this.buildCellNavLinkAttrs(t,s.date,s.rowUnit)})))}}function oe(e,t,n){return n&&"time"!==n?Object(i["eb"])(e,t,n):{}}function se(e){return e.text}function le(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}class ae extends i["c"]{render(){let{dateProfile:e,tDateProfile:t,rowInnerHeights:n,todayRange:r,nowDate:i}=this.props,{cellRows:s}=t;return Object(o["e"])(o["b"],null,s.map((l,a)=>{let c=a===s.length-1,u=t.isTimeScale&&c,d=["fc-timeline-header-row",u?"fc-timeline-header-row-chrono":""];return Object(o["e"])("tr",{key:a,className:d.join(" ")},l.map(s=>Object(o["e"])(ie,{key:s.date.toISOString(),cell:s,rowLevel:a,dateProfile:e,tDateProfile:t,todayRange:r,nowDate:i,rowInnerHeight:n&&n[a],isSticky:!c})))}))}}class ce{constructor(e,t,n,r,o,s){this.slatRootEl=e,this.dateProfile=n,this.tDateProfile=r,this.dateEnv=o,this.isRtl=s,this.outerCoordCache=new i["wb"](e,t,!0,!1),this.innerCoordCache=new i["wb"](e,Object(i["T"])(t,"div"),!0,!1)}isDateInRange(e){return Object(i["h"])(this.dateProfile.currentRange,e)}dateToCoord(e){let{tDateProfile:t}=this,n=this.computeDateSnapCoverage(e),r=n/t.snapsPerSlot,i=Math.floor(r);i=Math.min(i,t.slotCnt-1);let o=r-i,{innerCoordCache:s,outerCoordCache:l}=this;return this.isRtl?l.originClientRect.width-(l.rights[i]-s.getWidth(i)*o):l.lefts[i]+s.getWidth(i)*o}rangeToCoords(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}durationToCoord(e){let{dateProfile:t,tDateProfile:n,dateEnv:r,isRtl:o}=this,s=0;if(t){let l=r.add(t.activeRange.start,e);n.isTimeScale||(l=Object(i["Gc"])(l)),s=this.dateToCoord(l),!o&&s&&(s+=1)}return s}coordFromLeft(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}computeDateSnapCoverage(e){return ue(e,this.tDateProfile,this.dateEnv)}}function ue(e,t,n){let r=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(r<0)return 0;if(r>=t.snapDiffToIndex.length)return t.snapCnt;let o=Math.floor(r),s=t.snapDiffToIndex[o];return Object(i["lb"])(s)?s+=r-o:s=Math.ceil(s),s}function de(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function fe(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}class he extends i["c"]{constructor(){super(...arguments),this.rootElRef=Object(o["f"])()}render(){let{props:e,context:t}=this,n=Object(i["Ub"])(e.tDateProfile.slotDuration).unit,r=e.slatCoords&&e.slatCoords.dateProfile===e.dateProfile?e.slatCoords:null;return Object(o["e"])(i["J"],{unit:n},(n,s)=>Object(o["e"])("div",{className:"fc-timeline-header",ref:this.rootElRef},Object(o["e"])("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,Object(o["e"])("tbody",null,Object(o["e"])(ae,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:n,todayRange:s,rowInnerHeights:e.rowInnerHeights}))),t.options.nowIndicator&&Object(o["e"])("div",{className:"fc-timeline-now-indicator-container"},r&&r.isDateInRange(n)&&Object(o["e"])(i["lc"],{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:de(r.dateToCoord(n),t.isRtl),isAxis:!0,date:n}))))}componentDidMount(){this.updateSize()}componentDidUpdate(){this.updateSize()}updateSize(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}computeMaxCushionWidth(){return Math.max(...Object(i["S"])(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map(e=>e.getBoundingClientRect().width))}}class pe extends i["c"]{render(){let{props:e,context:t}=this,{dateEnv:n,options:r,theme:s}=t,{date:l,tDateProfile:a,isEm:c}=e,u=Object(i["cb"])(e.date,e.todayRange,e.nowDate,e.dateProfile),d=Object.assign(Object.assign({date:n.toDate(e.date)},u),{view:t.viewApi});return Object(o["e"])(i["d"],{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",c&&"fc-timeline-slot-em",a.isTimeScale?Object(i["lb"])(n.countDurationsBetween(a.normalizedRange.start,e.date,a.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":"",...e.isDay?Object(i["bb"])(u,s):Object(i["db"])(u,s)],elAttrs:{"data-date":n.formatIso(l,{omitTimeZoneOffset:!0,omitTime:!a.isTimeScale})},renderProps:d,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},e=>Object(o["e"])(e,{elTag:"div"}))}}class ge extends i["c"]{render(){let{props:e}=this,{tDateProfile:t,cellElRefs:n}=e,{slotDates:r,isWeekStarts:i}=t,s=!t.isTimeScale&&!t.largeUnit;return Object(o["e"])("tbody",null,Object(o["e"])("tr",null,r.map((r,l)=>{let a=r.toISOString();return Object(o["e"])(pe,{key:a,elRef:n.createRef(a),date:r,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:i[l],isDay:s})})))}}class me extends i["c"]{constructor(){super(...arguments),this.rootElRef=Object(o["f"])(),this.cellElRefs=new i["ic"],this.handleScrollRequest=e=>{let{onScrollLeftRequest:t}=this.props,{coords:n}=this;if(t&&n){if(e.time){let r=n.coordFromLeft(n.durationToCoord(e.time));t(r)}return!0}return null}}render(){let{props:e,context:t}=this;return Object(o["e"])("div",{className:"fc-timeline-slots",ref:this.rootElRef},Object(o["e"])("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,Object(o["e"])(ge,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}componentDidMount(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{props:e,context:t}=this;if(null!==e.clientWidth&&this.scrollResponder){let n=this.rootElRef.current;n.offsetWidth&&(this.coords=new ce(this.rootElRef.current,be(this.cellElRefs.currentMap,e.tDateProfile.slotDates),e.dateProfile,e.tDateProfile,t.dateEnv,t.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))}}positionToHit(e){let{outerCoordCache:t}=this.coords,{dateEnv:n,isRtl:r}=this.context,{tDateProfile:o}=this.props,s=t.leftToIndex(e);if(null!=s){let l=t.getWidth(s),a=r?(t.rights[s]-e)/l:(e-t.lefts[s])/l,c=Math.floor(a*o.snapsPerSlot),u=n.add(o.slotDates[s],Object(i["Mb"])(o.snapDuration,c)),d=n.add(u,o.snapDuration);return{dateSpan:{range:{start:u,end:d},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[s],left:t.lefts[s],right:t.rights[s]}}return null}}function be(e,t){return t.map(t=>{let n=t.toISOString();return e[n]})}function ve(e,t,n){let r=[];if(n)for(let i of e){let e=n.rangeToCoords(i),o=Math.round(e.start),s=Math.round(e.end);s-o<t&&(s=o+t),r.push({start:o,end:s})}return r}function ye(e,t,n,r,o,s){let l=[],a=[];for(let i=0;i<e.length;i+=1){let r=e[i],o=r.eventRange.instance.instanceId,s=n[o],c=t[i];s&&c?l.push({index:i,span:c,thickness:s}):a.push({seg:r,hcoords:c,top:null})}let c=new i["Tb"];null!=o&&(c.strictOrder=o),null!=s&&(c.maxStackCnt=s);let u=c.addSegs(l),d=u.map(t=>({seg:e[t.index],hcoords:t.span,top:null})),f=Object(i["xb"])(u),h=[],p=[];const g=t=>e[t.index];for(let y=0;y<f.length;y+=1){let t=f[y],n=t.entries.map(g),o=r[Object(i["Sb"])(Object(i["pc"])(n))];null!=o?h.push({index:e.length+y,thickness:o,span:t.span}):p.push({seg:n,hcoords:t.span,top:null})}c.maxStackCnt=-1,c.addSegs(h);let m=c.toRects(),b=[],v=0;for(let i of m){let t=i.index;b.push({seg:t<e.length?e[t]:f[t-e.length].entries.map(g),hcoords:i.span,top:i.levelCoord}),v=Math.max(v,i.levelCoord+i.thickness)}return[b.concat(a,d,p),v]}class Ae extends i["c"]{render(){let{props:e}=this,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&Object(o["e"])("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))}renderSegs(e,t,n){let{todayRange:r,nowDate:s}=this.props,{isRtl:l}=this.context,a=ve(e,0,t),c=e.map((e,t)=>{let c=a[t],u=fe(c,l);return Object(o["e"])("div",{key:Object(i["Eb"])(e.eventRange),className:"fc-timeline-bg-harness",style:u},"bg-event"===n?Object(o["e"])(i["nc"],Object.assign({seg:e},Object(i["Db"])(e,r,s))):Object(i["mc"])(n))});return Object(o["e"])(o["b"],null,c)}}class Ce extends i["Fb"]{sliceRange(e,t,n,r,o){let s=Z(e,r,o),l=[];if(ue(s.start,r,o)<ue(s.end,r,o)){let e=Object(i["Ec"])(s,r.normalizedRange);e&&l.push({start:e.start,end:e.end,isStart:e.start.valueOf()===s.start.valueOf()&&Y(e.start,r,t,n),isEnd:e.end.valueOf()===s.end.valueOf()&&Y(Object(i["Jb"])(e.end,-1),r,t,n)})}return l}}const we=Object(i["Nc"])({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});class _e extends i["c"]{render(){let{props:e}=this;return Object(o["e"])(i["kc"],Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:we,defaultDisplayEventTime:!e.isTimeScale}))}}class Se extends i["c"]{render(){let{props:e,context:t}=this,{hiddenSegs:n,placement:r,resourceId:s}=e,{top:l,hcoords:a}=r,c=a&&null!==l,u=fe(a,t.isRtl),d=s?{resourceId:s}:{};return Object(o["e"])(i["oc"],{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:c?"":"hidden",top:l||0},u),allDayDate:null,moreCnt:n.length,allSegs:n,hiddenSegs:n,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:d,popoverContent:()=>Object(o["e"])(o["b"],null,n.map(t=>{let n=t.eventRange.instance.instanceId;return Object(o["e"])("div",{key:n,style:{visibility:e.isForcedInvisible[n]?"hidden":""}},Object(o["e"])(_e,Object.assign({isTimeScale:e.isTimeScale,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection},Object(i["Db"])(t,e.todayRange,e.nowDate))))}))},e=>Object(o["e"])(e,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]}))}}class Ee extends i["c"]{constructor(){super(...arguments),this.slicer=new Ce,this.sortEventSegs=Object(i["Pc"])(i["Cb"]),this.harnessElRefs=new i["ic"],this.moreElRefs=new i["ic"],this.innerElRef=Object(o["f"])(),this.state={eventInstanceHeights:{},moreLinkHeights:{}},this.handleResize=e=>{e&&this.updateSize()}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:i,tDateProfile:s}=e,l=this.slicer.sliceProps(e,i,s.isTimeScale?null:e.nextDayThreshold,n,i,n.dateProfileGenerator,s,n.dateEnv),a=(l.eventDrag?l.eventDrag.segs:null)||(l.eventResize?l.eventResize.segs:null)||[],c=this.sortEventSegs(l.fgEventSegs,r.eventOrder),u=ve(c,r.eventMinWidth,e.timelineCoords),[d,f]=ye(c,u,t.eventInstanceHeights,t.moreLinkHeights,r.eventOrderStrict,r.eventMaxStack),h=(l.eventDrag?l.eventDrag.affectedInstances:null)||(l.eventResize?l.eventResize.affectedInstances:null)||{};return Object(o["e"])(o["b"],null,Object(o["e"])(Ae,{businessHourSegs:l.businessHourSegs,bgEventSegs:l.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:l.eventResize?l.eventResize.segs:[],dateSelectionSegs:l.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),Object(o["e"])("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:f}},this.renderFgSegs(d,h,!1,!1,!1),this.renderFgSegs(Oe(a,e.timelineCoords,d),{},Boolean(l.eventDrag),Boolean(l.eventResize),!1)))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateSize(){let{props:e}=this,{timelineCoords:t}=e;const n=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(n,!1),t&&this.setState({eventInstanceHeights:Object(i["C"])(this.harnessElRefs.currentMap,e=>Math.round(e.getBoundingClientRect().height)),moreLinkHeights:Object(i["C"])(this.moreElRefs.currentMap,e=>Math.round(e.getBoundingClientRect().height))},()=>{e.onHeightChange&&e.onHeightChange(n,!0)}),e.syncParentMinHeight&&(n.parentElement.style.minHeight=n.style.height)}renderFgSegs(e,t,n,r,s){let{harnessElRefs:l,moreElRefs:a,props:c,context:u}=this,d=n||r||s;return Object(o["e"])(o["b"],null,e.map(e=>{let{seg:f,hcoords:h,top:p}=e;if(Array.isArray(f)){let n=Object(i["Sb"])(Object(i["pc"])(f));return Object(o["e"])(Se,{key:"m:"+n,elRef:a.createRef(n),hiddenSegs:f,placement:e,dateProfile:c.dateProfile,nowDate:c.nowDate,todayRange:c.todayRange,isTimeScale:c.tDateProfile.isTimeScale,eventSelection:c.eventSelection,resourceId:c.resourceId,isForcedInvisible:t})}let g=f.eventRange.instance.instanceId,m=d||Boolean(!t[g]&&h&&null!==p),b=fe(h,u.isRtl);return Object(o["e"])("div",{key:"e:"+g,ref:d?null:l.createRef(g),className:"fc-timeline-event-harness",style:Object.assign({visibility:m?"":"hidden",top:p||0},b)},Object(o["e"])(_e,Object.assign({isTimeScale:c.tDateProfile.isTimeScale,seg:f,isDragging:n,isResizing:r,isDateSelecting:s,isSelected:g===c.eventSelection},Object(i["Db"])(f,c.todayRange,c.nowDate))))}))}}function Oe(e,t,n){if(!e.length||!t)return[];let r=De(n);return e.map(e=>({seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]}))}function De(e){let t={};for(let n of e){let{seg:e}=n;Array.isArray(e)||(t[e.eventRange.instance.instanceId]=n.top)}return t}Ee.addStateEquality({eventInstanceHeights:i["f"],moreLinkHeights:i["f"]});class Re extends i["Ib"]{constructor(){super(...arguments),this.slatsRef=Object(o["f"])(),this.state={coords:null},this.handeEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleCoords=e=>{this.setState({coords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:s,tDateProfile:l}=e,a=Object(i["Ub"])(l.slotDuration).unit;return Object(o["e"])("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:e.tableMinWidth,height:e.clientHeight,width:e.clientWidth}},Object(o["e"])(i["J"],{unit:a},(a,c)=>Object(o["e"])(o["b"],null,Object(o["e"])(me,{ref:this.slatsRef,dateProfile:s,tDateProfile:l,nowDate:a,todayRange:c,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleCoords,onScrollLeftRequest:e.onScrollLeftRequest}),Object(o["e"])(Ee,{dateProfile:s,tDateProfile:e.tDateProfile,nowDate:a,todayRange:c,nextDayThreshold:r.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:t.coords,syncParentMinHeight:!0}),r.nowIndicator&&t.coords&&t.coords.isDateInRange(a)&&Object(o["e"])("div",{className:"fc-timeline-now-indicator-container"},Object(o["e"])(i["lc"],{elClasses:["fc-timeline-now-indicator-line"],elStyle:de(t.coords.dateToCoord(a),n.isRtl),isAxis:!1,date:a})))))}queryHit(e,t,n,r){let i=this.slatsRef.current,o=i.positionToHit(e);return o?{dateProfile:this.props.dateProfile,dateSpan:o.dateSpan,rect:{left:o.left,right:o.right,top:0,bottom:r},dayEl:o.dayEl,layer:0}:null}}class xe extends i["Ib"]{constructor(){super(...arguments),this.buildTimelineDateProfile=Object(i["Pc"])(Q),this.scrollGridRef=Object(o["f"])(),this.state={slatCoords:null,slotCushionMaxWidth:null},this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleScrollLeftRequest=e=>{let t=this.scrollGridRef.current;t.forceScrollLeft(0,e)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,s=!e.forPrint&&Object(i["fc"])(r),l=!e.forPrint&&Object(i["ec"])(r),a=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),{slotMinWidth:c}=r,u=ke(a,c||this.computeFallbackSlotMinWidth(a)),d=[{type:"header",key:"header",isSticky:s,chunks:[{key:"timeline",content:n=>Object(o["e"])(he,{dateProfile:e.dateProfile,clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,tDateProfile:a,slatCoords:t.slatCoords,onMaxCushionWidth:c?null:this.handleMaxCushionWidth})}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:t=>Object(o["e"])(Re,Object.assign({},e,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:a,onSlatCoords:this.handleSlatCoords,onScrollLeftRequest:this.handleScrollLeftRequest}))}]}];return l&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:i["dc"]}]}),Object(o["e"])(i["qc"],{elClasses:["fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":""],viewSpec:n.viewSpec},Object(o["e"])(x,{ref:this.scrollGridRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:u}],sections:d}))}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}}function ke(e,t){return[{span:e.slotCnt,minWidth:t||1}]}var je=Object(r["b"])({name:"@fullcalendar/timeline",premiumReleaseDate:"2025-04-02",deps:[g],initialView:"timelineDay",views:{timeline:{component:xe,usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}});const Te="_fc:",Ie={id:String,parentId:String,children:i["Dc"],title:String,businessHours:i["Dc"],extendedProps:i["Dc"],eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:i["Dc"],eventOverlap:Boolean,eventAllow:i["Dc"],eventClassNames:i["W"],eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function Me(e,t="",n,r){let{refined:o,extra:s}=Object(i["jb"])(e,Ie),l={id:o.id||Te+Object(i["wc"])(),parentId:o.parentId||t,title:o.title||"",businessHours:o.businessHours?Object(i["v"])(o.businessHours,r):null,ui:Object(i["t"])({editable:o.eventEditable,startEditable:o.eventStartEditable,durationEditable:o.eventDurationEditable,constraint:o.eventConstraint,overlap:o.eventOverlap,allow:o.eventAllow,classNames:o.eventClassNames,backgroundColor:o.eventBackgroundColor,borderColor:o.eventBorderColor,textColor:o.eventTextColor,color:o.eventColor},r),extendedProps:Object.assign(Object.assign({},s),o.extendedProps)};if(Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),n[l.id]);else if(n[l.id]=l,o.children)for(let i of o.children)Me(i,l.id,n,r);return l}function Ne(e){return 0===e.indexOf(Te)?"":e}class Pe{constructor(e,t){this._context=e,this._resource=t}setProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}setExtendedProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}sync(e){let t=this._context,n=e.id;this._resource=t.getCurrentData().resourceStore[n],t.emitter.trigger("resourceChange",{oldResource:new Pe(t,e),resource:this,revert(){t.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:e}})}})}remove(){let e=this._context,t=this._resource,n=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),e.emitter.trigger("resourceRemove",{resource:this,revert(){e.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:t}})}})}getParent(){let e=this._context,t=this._resource.parentId;return t?new Pe(e,e.getCurrentData().resourceStore[t]):null}getChildren(){let e=this._resource.id,t=this._context,{resourceStore:n}=t.getCurrentData(),r=[];for(let i in n)n[i].parentId===e&&r.push(new Pe(t,n[i]));return r}getEvents(){let e=this._resource.id,t=this._context,{defs:n,instances:r}=t.getCurrentData().eventStore,o=[];for(let s in r){let l=r[s],a=n[l.defId];-1!==a.resourceIds.indexOf(e)&&o.push(new i["B"](t,a,l))}return o}get id(){return Ne(this._resource.id)}get title(){return this._resource.title}get eventConstraint(){return this._resource.ui.constraints[0]||null}get eventOverlap(){return this._resource.ui.overlap}get eventAllow(){return this._resource.ui.allows[0]||null}get eventBackgroundColor(){return this._resource.ui.backgroundColor}get eventBorderColor(){return this._resource.ui.borderColor}get eventTextColor(){return this._resource.ui.textColor}get eventClassNames(){return this._resource.ui.classNames}get extendedProps(){return this._resource.extendedProps}toPlainObject(e={}){let t=this._resource,{ui:n}=t,r=this.id,i={};return r&&(i.id=r),t.title&&(i.title=t.title),e.collapseEventColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.eventColor=n.backgroundColor:(n.backgroundColor&&(i.eventBackgroundColor=n.backgroundColor),n.borderColor&&(i.eventBorderColor=n.borderColor)),n.textColor&&(i.eventTextColor=n.textColor),n.classNames.length&&(i.eventClassNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}toJSON(){return this.toPlainObject()}}function He(e,t){let n=[];for(let r in e)n.push(new Pe(t,e[r]));return n}class Be extends i["ab"]{getKeyInfo(e){return Object.assign({"":{}},e.resourceStore)}getKeysForDateSpan(e){return[e.resourceId||""]}getKeysForEventDef(e){let t=e.resourceIds;return t.length?t:[""]}}const Ue=Object(i["mb"])("id,title");function We(e,t){let{emitter:n}=t;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",He(e,t))}function ze(e){return{resource:new Pe(e.context,e.resource)}}i["c"];i["c"];i["c"];i["ab"];function Le(e,t,n,r,i,o){let s=Fe(e,r?-1:1,t,n),l=[];return Ge(s,l,r,[],0,i,o),l}function Ge(e,t,n,r,i,o,s){for(let l=0;l<e.length;l+=1){let a=e[l],c=a.group;if(c)if(n){let e=t.length,l=r.length;if(Ge(a.children,t,n,r.concat(0),i,o,s),e<t.length){let n=t[e],r=n.rowSpans=n.rowSpans.slice();r[l]=t.length-e}}else{let e=c.spec.field+":"+c.value,l=null!=o[e]?o[e]:s;t.push({id:e,group:c,isExpanded:l}),l&&Ge(a.children,t,n,r,i+1,o,s)}else if(a.resource){let e=a.resource.id,l=null!=o[e]?o[e]:s;t.push({id:e,rowSpans:r,depth:i,isExpanded:l,hasChildren:Boolean(a.children.length),resource:a.resource,resourceFields:a.resourceFields}),l&&Ge(a.children,t,n,r,i+1,o,s)}}}function Fe(e,t,n,r){let i=Ve(e,r),o=[];for(let s in i){let e=i[s];e.resource.parentId||Qe(e,o,n,0,t,r)}return o}function Ve(e,t){let n={};for(let r in e){let t=e[r];n[r]={resource:t,resourceFields:Ye(t),children:[]}}for(let r in e){let i=e[r];if(i.parentId){let e=n[i.parentId];e&&Ze(n[r],e.children,t)}}return n}function Qe(e,t,n,r,i,o){if(n.length&&(-1===i||r<=i)){let s=qe(e,t,n[0]);Qe(e,s.children,n.slice(1),r+1,i,o)}else Ze(e,t,o)}function qe(e,t,n){let r,o,s=e.resourceFields[n.field];if(n.order)for(o=0;o<t.length;o+=1){let e=t[o];if(e.group){let t=Object(i["ob"])(s,e.group.value)*n.order;if(0===t){r=e;break}if(t<0)break}}else for(o=0;o<t.length;o+=1){let e=t[o];if(e.group&&s===e.group.value){r=e;break}}return r||(r={group:{value:s,spec:n},children:[]},t.splice(o,0,r)),r}function Ze(e,t,n){let r;for(r=0;r<t.length;r+=1){let o=Object(i["nb"])(t[r].resourceFields,e.resourceFields,n);if(o>0)break}t.splice(r,0,e)}function Ye(e){let t=Object.assign(Object.assign(Object.assign({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}function Je(e,t){return e.spec===t.spec&&e.value===t.value}function Xe(e,t,n){let r=t.dateSpan.resourceId,i=n.dateSpan.resourceId;r&&i&&r!==i&&(e.resourceMutation={matchResourceId:r,setResourceId:i})}function $e(e,t,n){let r=t.resourceMutation;if(r&&Ke(e,n)){let t=e.resourceIds.indexOf(r.matchResourceId);if(-1!==t){let n=e.resourceIds.slice();n.splice(t,1),-1===n.indexOf(r.setResourceId)&&n.push(r.setResourceId),e.resourceIds=n}}}function Ke(e,t){let{resourceEditable:n}=e;if(null==n){let r=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];r&&(n=r.extendedProps.resourceEditable),null==n&&(n=t.options.eventResourceEditable,null==n&&(n=t.options.editable))}return n}function et(e,t){let{resourceMutation:n}=e;if(n){let{calendarApi:e}=t;return{oldResource:e.getResourceById(n.matchResourceId),newResource:e.getResourceById(n.setResourceId)}}return{oldResource:null,newResource:null}}class tt{constructor(){this.filterResources=Object(i["Pc"])(nt)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}}function nt(e,t,n,r){if(t){let t=rt(n.instances,r),o=it(t,n.defs);return Object.assign(o,ot(o,e)),Object(i["xc"])(e,(e,t)=>o[t])}return e}function rt(e,t){return Object(i["xc"])(e,e=>Object(i["vb"])(e.range,t))}function it(e,t){let n={};for(let r in e){let i=e[r];for(let e of t[i.defId].resourceIds)n[e]=!0}return n}function ot(e,t){let n={};for(let r in e){let e;while(e=t[r]){if(r=e.parentId,!r)break;n[r]=!0}}return n}function st(e,t,n,r){if(!e){let e=r.getCurrentData(),n=e.viewSpecs[e.currentViewType];if(n.optionDefaults.needsResourceData&&Ke(t,r))return!0}return e}class lt{constructor(){this.buildResourceEventUis=Object(i["Pc"])(at,i["f"]),this.injectResourceEventUis=Object(i["Pc"])(ct)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}}function at(e){return Object(i["C"])(e,e=>e.ui)}function ct(e,t,n){return Object(i["C"])(e,(e,r)=>r?ut(e,t[r],n):e)}function ut(e,t,n){let r=[];for(let i of t.resourceIds)n[i]&&r.unshift(n[i]);return r.unshift(e),Object(i["Z"])(r)}let dt=[];function ft(e){dt.push(e)}function ht(e){return dt[e]}function pt(){return dt}const gt={id:String,resources:i["Dc"],url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:i["Dc"]};function mt(e){let t;if("string"===typeof e?t={url:e}:"function"===typeof e||Array.isArray(e)?t={resources:e}:"object"===typeof e&&e&&(t=e),t){let{refined:n,extra:r}=Object(i["jb"])(t,gt);vt(r);let o=bt(n);if(o)return{_raw:e,sourceId:Object(i["wc"])(),sourceDefId:o.sourceDefId,meta:o.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function bt(e){let t=pt();for(let n=t.length-1;n>=0;n-=1){let r=t[n],i=r.parseMeta(e);if(i)return{meta:i,sourceDefId:n}}return null}function vt(e){for(let t in e)console.warn(`Unknown resource prop '${t}'`)}function yt(e,t,n){let{options:r,dateProfile:i}=n;if(!e||!t)return At(r.initialResources||r.resources,i.activeRange,r.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return At(t.resourceSourceInput,i.activeRange,r.refetchResourcesOnNavigate,n);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return Ct(e,i.activeRange,r.refetchResourcesOnNavigate,n);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return St(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return _t(e,i.activeRange,n);default:return e}}function At(e,t,n,r){if(e){let i=mt(e);return i=_t(i,n?t:null,r),i}return null}function Ct(e,t,n,r){return!n||wt(e)||e.fetchRange&&Object(i["ub"])(e.fetchRange,t)?e:_t(e,t,r)}function wt(e){return Boolean(ht(e.sourceDefId).ignoreRange)}function _t(e,t,n){let r=ht(e.sourceDefId),o=Object(i["wc"])();return r.fetch({resourceSource:e,range:t,context:n},e=>{n.dispatch({type:"RECEIVE_RESOURCES",fetchId:o,fetchRange:t,rawResources:e.rawResources})},e=>{n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:o,fetchRange:t,error:e})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:o})}function St(e,t,n){return t===e.latestFetchId?Object.assign(Object.assign({},e),{isFetching:!1,fetchRange:n}):e}function Et(e,t,n,r){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return Ot(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return Dt(e,t.resourceHash);case"REMOVE_RESOURCE":return Rt(e,t.resourceId);case"SET_RESOURCE_PROP":return xt(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return kt(e,t.resourceId,t.propName,t.propValue);default:return e}}function Ot(e,t,n,r,i){if(r.latestFetchId===n){let e={};for(let n of t)Me(n,"",e,i);return e}return e}function Dt(e,t){return Object.assign(Object.assign({},e),t)}function Rt(e,t){let n=Object.assign({},e);delete n[t];for(let r in n)n[r].parentId===t&&(n[r]=Object.assign(Object.assign({},n[r]),{parentId:""}));return n}function xt(e,t,n,r){let i=e[t];return i?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{[n]:r})}):e}function kt(e,t,n,r){let i=e[t];return i?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{extendedProps:Object.assign(Object.assign({},i.extendedProps),{[n]:r})})}):e}function jt(e,t){if(!e||!t)return{};switch(t.type){case"SET_RESOURCE_ENTITY_EXPANDED":return Object.assign(Object.assign({},e),{[t.id]:t.isExpanded});default:return e}}function Tt(e,t,n){let r=yt(e&&e.resourceSource,t,n),i=Et(e&&e.resourceStore,t,r,n),o=jt(e&&e.resourceEntityExpansions,t);return{resourceSource:r,resourceStore:i,resourceEntityExpansions:o}}const It={resourceId:String,resourceIds:i["Dc"],resourceEditable:Boolean};function Mt(e){return{resourceIds:Nt(e.resourceIds).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable}}function Nt(e){return(e||[]).map(e=>String(e))}function Pt(e,t){let n=e.dateSpan.resourceId,r=t.dateSpan.resourceId;return n&&r?{resourceId:n}:null}function Ht(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}function Bt(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}function Ut(e,t){let n=new Be,r=n.splitProps(Object.assign(Object.assign({},e),{resourceStore:t.getCurrentData().resourceStore}));for(let o in r){let e=r[o];if(o&&r[""]&&(e=Object.assign(Object.assign({},e),{eventStore:Object(i["Y"])(r[""].eventStore,e.eventStore),eventUiBases:Object.assign(Object.assign({},r[""].eventUiBases),e.eventUiBases)})),!Object(i["Gb"])(e,t,{resourceId:o},Wt.bind(null,o)))return!1}return!0}function Wt(e,t){return Object.assign(Object.assign({},t),{constraints:zt(e,t.constraints)})}function zt(e,t){return t.map(t=>{let n=t.defs;if(n)for(let r in n){let t=n[r].resourceIds;if(t.length&&-1===t.indexOf(e))return!1}return t})}function Lt(e){return e.resourceId?{resourceId:e.resourceId}:{}}i["K"].prototype.addResource=function(e,t=!0){let n,r,i=this.getCurrentData();e instanceof Pe?(r=e._resource,n={[r.id]:r}):(n={},r=Me(e,"",n,i)),this.dispatch({type:"ADD_RESOURCE",resourceHash:n}),t&&this.trigger("_scrollRequest",{resourceId:r.id});let o=new Pe(i,r);return i.emitter.trigger("resourceAdd",{resource:o,revert:()=>{this.dispatch({type:"REMOVE_RESOURCE",resourceId:r.id})}}),o},i["K"].prototype.getResourceById=function(e){e=String(e);let t=this.getCurrentData();if(t.resourceStore){let n=t.resourceStore[e];if(n)return new Pe(t,n)}return null},i["K"].prototype.getResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)n.push(new Pe(e,t[r]));return n},i["K"].prototype.getTopLevelResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)t[r].parentId||n.push(new Pe(e,t[r]));return n},i["K"].prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};const Gt={resources:Ft};function Ft(e,t){let n=t.getCurrentData().resourceSource._raw;n!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}const Vt={initialResources:i["Dc"],resources:i["Dc"],eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:i["mb"],filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:i["Dc"],resourceAreaColumns:i["Dc"],resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:i["Dc"],resourceAreaHeaderContent:i["Dc"],resourceAreaHeaderDidMount:i["Dc"],resourceAreaHeaderWillUnmount:i["Dc"],resourceGroupLabelClassNames:i["Dc"],resourceGroupLabelContent:i["Dc"],resourceGroupLabelDidMount:i["Dc"],resourceGroupLabelWillUnmount:i["Dc"],resourceLabelClassNames:i["Dc"],resourceLabelContent:i["Dc"],resourceLabelDidMount:i["Dc"],resourceLabelWillUnmount:i["Dc"],resourceLaneClassNames:i["Dc"],resourceLaneContent:i["Dc"],resourceLaneDidMount:i["Dc"],resourceLaneWillUnmount:i["Dc"],resourceGroupLaneClassNames:i["Dc"],resourceGroupLaneContent:i["Dc"],resourceGroupLaneDidMount:i["Dc"],resourceGroupLaneWillUnmount:i["Dc"]},Qt={resourcesSet:i["Dc"],resourceAdd:i["Dc"],resourceChange:i["Dc"],resourceRemove:i["Dc"]};function qt(e,t,n){let r,i,o,s,{dateEnv:l,options:a}=n,c={};return t&&(r=e.startParam,null==r&&(r=a.startParam),i=e.endParam,null==i&&(i=a.endParam),o=e.timeZoneParam,null==o&&(o=a.timeZoneParam),c[r]=l.formatIso(t.start),c[i]=l.formatIso(t.end),"local"!==l.timeZone&&(c[o]=l.timeZone)),s="function"===typeof e.extraParams?e.extraParams():e.extraParams||{},Object.assign(c,s),c}i["B"].prototype.getResources=function(){let{calendarApi:e}=this._context;return this._def.resourceIds.map(t=>e.getResourceById(t))},i["B"].prototype.setResources=function(e){let t=[];for(let n of e){let e=null;"string"===typeof n?e=n:"number"===typeof n?e=String(n):n instanceof Pe?e=n.id:console.warn("unknown resource type: "+n),e&&t.push(e)}this.mutate({standardProps:{resourceIds:t}})},ft({ignoreRange:!0,parseMeta(e){return Array.isArray(e.resources)?e.resources:null},fetch(e,t){t({rawResources:e.resourceSource.meta})}}),ft({parseMeta(e){return"function"===typeof e.resources?e.resources:null},fetch(e,t,n){const r=e.context.dateEnv,o=e.resourceSource.meta,s=e.range?{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}:{};Object(i["Kc"])(o.bind(null,s),e=>t({rawResources:e}),n)}}),ft({parseMeta(e){return e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null},fetch(e,t,n){const r=e.resourceSource.meta,o=qt(r,e.range,e.context);Object(i["Hc"])(r.method,r.url,o).then(([e,n])=>{t({rawResources:e,response:n})},n)}});var Zt=Object(r["b"])({name:"@fullcalendar/resource",premiumReleaseDate:"2025-04-02",deps:[g],reducers:[Tt],isLoadingFuncs:[e=>e.resourceSource&&e.resourceSource.isFetching],eventRefiners:It,eventDefMemberAdders:[Mt],isDraggableTransformers:[st],eventDragMutationMassagers:[Xe],eventDefMutationAppliers:[$e],dateSelectionTransformers:[Pt],datePointTransforms:[Ht],dateSpanTransforms:[Bt],viewPropsTransformers:[tt,lt],isPropsValid:Ut,externalDefTransforms:[Lt],eventDropTransformers:[et],optionChangeHandlers:Gt,optionRefiners:Vt,listenerRefiners:Qt,propSetHandlers:{resourceStore:We}});function Yt({depth:e,hasChildren:t,isExpanded:n,onExpanderClick:r}){let i=[];for(let l=0;l<e;l+=1)i.push(Object(o["e"])("span",{className:"fc-icon"}));let s=["fc-icon"];return t&&(n?s.push("fc-icon-minus-square"):s.push("fc-icon-plus-square")),i.push(Object(o["e"])("span",{className:"fc-datagrid-expander"+(t?"":" fc-datagrid-expander-placeholder"),onClick:r},Object(o["e"])("span",{className:s.join(" ")}))),Object(o["e"])(o["b"],{},...i)}class Jt extends i["c"]{constructor(){super(...arguments),this.refineRenderProps=Object(i["b"])($t),this.onExpanderClick=e=>{let{props:t}=this;t.hasChildren&&this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})}}render(){let{props:e,context:t}=this,{colSpec:n}=e,r=this.refineRenderProps({resource:e.resource,fieldValue:e.fieldValue,context:t});return Object(o["e"])(i["d"],{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":e.resource.id},renderProps:r,generatorName:n.isMain?"resourceLabelContent":void 0,customGenerator:n.cellContent,defaultGenerator:Xt,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},t=>Object(o["e"])("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},Object(o["e"])("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&Object(o["e"])(Yt,{depth:e.depth,hasChildren:e.hasChildren,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),Object(o["e"])(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]}))))}}function Xt(e){return e.fieldValue||Object(o["e"])(o["b"],null," ")}function $t(e){return{resource:new Pe(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}class Kt extends i["c"]{render(){let{props:e,context:t}=this,{colSpec:n}=e,r={groupValue:e.fieldValue,view:t.viewApi};return Object(o["e"])(i["d"],{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:r,generatorName:"resourceGroupLabelContent",customGenerator:n.cellContent,defaultGenerator:en,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},e=>Object(o["e"])("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},Object(o["e"])(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]})))}}function en(e){return e.groupValue||Object(o["e"])(o["b"],null," ")}class tn extends i["c"]{render(){let{props:e}=this,{resource:t,rowSpans:n,depth:r}=e,i=Ye(t);return Object(o["e"])("tr",{role:"row"},e.colSpecs.map((s,l)=>{let a=n[l];if(0===a)return null;null==a&&(a=1);let c=s.field?i[s.field]:t.title||Ne(t.id);return a>1?Object(o["e"])(Kt,{key:l,colSpec:s,fieldValue:c,rowSpan:a}):Object(o["e"])(Jt,{key:l,colSpec:s,resource:t,fieldValue:c,depth:r,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})}))}}tn.addPropsEquality({rowSpans:i["yc"]});class nn extends i["c"]{constructor(){super(...arguments),this.innerInnerRef=Object(o["f"])(),this.onExpanderClick=()=>{let{props:e}=this;this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})}}render(){let{props:e,context:t}=this,n={groupValue:e.group.value,view:t.viewApi},r=e.group.spec;return Object(o["e"])("tr",{role:"row"},Object(o["e"])(i["d"],{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",t.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.spreadsheetColCnt},renderProps:n,generatorName:"resourceGroupLabelContent",customGenerator:r.labelContent,defaultGenerator:rn,classNameGenerator:r.labelClassNames,didMount:r.labelDidMount,willUnmount:r.labelWillUnmount},t=>Object(o["e"])("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},Object(o["e"])("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:this.innerInnerRef},Object(o["e"])(Yt,{depth:0,hasChildren:!0,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),Object(o["e"])(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))))}}function rn(e){return e.groupValue||Object(o["e"])(o["b"],null," ")}nn.addPropsEquality({group:Je});const on=20;class sn extends i["c"]{constructor(){super(...arguments),this.resizerElRefs=new i["ic"](this._handleColResizerEl.bind(this)),this.colDraggings={}}render(){let{colSpecs:e,superHeaderRendering:t,rowInnerHeights:n}=this.props,r={view:this.context.viewApi},s=[];if(n=n.slice(),t){let l=n.shift();s.push(Object(o["e"])("tr",{key:"row-super",role:"row"},Object(o["e"])(i["d"],{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.length},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},e=>Object(o["e"])("div",{className:"fc-datagrid-cell-frame",style:{height:l}},Object(o["e"])(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]})))))}let l=n.shift();return s.push(Object(o["e"])("tr",{key:"row",role:"row"},e.map((t,n)=>{let s=n===e.length-1;return Object(o["e"])(i["d"],{key:n,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},e=>Object(o["e"])("div",{className:"fc-datagrid-cell-frame",style:{height:l}},Object(o["e"])("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&Object(o["e"])("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},Object(o["e"])("span",{className:"fc-icon"})),Object(o["e"])(e,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!s&&Object(o["e"])("div",{className:"fc-datagrid-cell-resizer",ref:this.resizerElRefs.createRef(n)})))}))),Object(o["e"])(o["b"],null,s)}_handleColResizerEl(e,t){let{colDraggings:n}=this;if(e){let r=this.initColResizing(e,parseInt(t,10));r&&(n[t]=r)}else{let e=n[t];e&&(e.destroy(),delete n[t])}}initColResizing(e,t){let{pluginHooks:n,isRtl:r}=this.context,{onColWidthChange:o}=this.props,s=n.elementDraggingImpl;if(s){let n,l,a=new s(e);return a.emitter.on("dragstart",()=>{let r=Object(i["S"])(Object(i["A"])(e,"tr"),"th");l=r.map(e=>e.getBoundingClientRect().width),n=l[t]}),a.emitter.on("dragmove",e=>{l[t]=Math.max(n+e.deltaX*(r?-1:1),on),o&&o(l.slice())}),a.setAutoScrollEnabled(!1),a}return null}}class ln extends i["c"]{constructor(){super(...arguments),this.refineRenderProps=Object(i["b"])(ze),this.handleHeightChange=(e,t)=>{this.props.onHeightChange&&this.props.onHeightChange(Object(i["A"])(e,"tr"),t)}}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({resource:e.resource,context:t});return Object(o["e"])("tr",{ref:e.elRef},Object(o["e"])(i["d"],{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":e.resource.id},renderProps:r,generatorName:"resourceLaneContent",customGenerator:n.resourceLaneContent,classNameGenerator:n.resourceLaneClassNames,didMount:n.resourceLaneDidMount,willUnmount:n.resourceLaneWillUnmount},t=>Object(o["e"])("div",{className:"fc-timeline-lane-frame",style:{height:e.innerHeight}},Object(o["e"])(t,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),Object(o["e"])(Ee,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:e.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:e.timelineCoords,onHeightChange:this.handleHeightChange,resourceId:e.resource.id}))))}}class an extends i["c"]{render(){let{props:e,context:t}=this,{renderHooks:n}=e,r={groupValue:e.groupValue,view:t.viewApi};return Object(o["e"])("tr",{ref:e.elRef},Object(o["e"])(i["d"],{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:r,generatorName:"resourceGroupLaneContent",customGenerator:n.laneContent,classNameGenerator:n.laneClassNames,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},t=>Object(o["e"])(t,{elTag:"div",elStyle:{height:e.innerHeight}})))}}class cn extends i["c"]{render(){let{props:e,context:t}=this,{rowElRefs:n,innerHeights:r}=e;return Object(o["e"])("tbody",null,e.rowNodes.map((i,s)=>{if(i.group)return Object(o["e"])(an,{key:i.id,elRef:n.createRef(i.id),groupValue:i.group.value,renderHooks:i.group.spec,innerHeight:r[s]||""});if(i.resource){let l=i.resource;return Object(o["e"])(ln,Object.assign({key:i.id,elRef:n.createRef(i.id)},e.splitProps[l.id],{resource:l,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:l.businessHours||e.fallbackBusinessHours,innerHeight:r[s]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null}))}}class un extends i["c"]{constructor(){super(...arguments),this.rootElRef=Object(o["f"])(),this.rowElRefs=new i["ic"]}render(){let{props:e,context:t}=this;return Object(o["e"])("table",{ref:this.rootElRef,"aria-hidden":!0,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},Object(o["e"])(cn,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}componentWillUnmount(){this.props.onRowCoords&&this.props.onRowCoords(null)}updateCoords(){let{props:e}=this;e.onRowCoords&&null!==e.clientWidth&&this.props.onRowCoords(new i["wb"](this.rootElRef.current,dn(this.rowElRefs.currentMap,e.rowNodes),!1,!0))}}function dn(e,t){return t.map(t=>e[t.id])}class fn extends i["Ib"]{constructor(){super(...arguments),this.computeHasResourceBusinessHours=Object(i["Pc"])(hn),this.resourceSplitter=new Be,this.bgSlicer=new Ce,this.slatsRef=Object(o["f"])(),this.state={slatCoords:null},this.handleEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)},this.handleRowCoords=e=>{this.rowCoords=e,this.props.onRowCoords&&this.props.onRowCoords(e)}}render(){let{props:e,state:t,context:n}=this,{dateProfile:r,tDateProfile:s}=e,l=Object(i["Ub"])(s.slotDuration).unit,a=this.computeHasResourceBusinessHours(e.rowNodes),c=this.resourceSplitter.splitProps(e),u=c[""],d=this.bgSlicer.sliceProps(u,r,s.isTimeScale?null:e.nextDayThreshold,n,r,n.dateProfileGenerator,s,n.dateEnv),f=t.slatCoords&&t.slatCoords.dateProfile===e.dateProfile?t.slatCoords:null;return Object(o["e"])("div",{ref:this.handleEl,className:["fc-timeline-body",e.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:e.tableMinWidth}},Object(o["e"])(i["J"],{unit:l},(t,l)=>Object(o["e"])(o["b"],null,Object(o["e"])(me,{ref:this.slatsRef,dateProfile:r,tDateProfile:s,nowDate:t,todayRange:l,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleSlatCoords,onScrollLeftRequest:e.onScrollLeftRequest}),Object(o["e"])(Ae,{businessHourSegs:a?null:d.businessHourSegs,bgEventSegs:d.bgEventSegs,timelineCoords:f,eventResizeSegs:d.eventResize?d.eventResize.segs:[],dateSelectionSegs:d.dateSelectionSegs,nowDate:t,todayRange:l}),Object(o["e"])(un,{rowNodes:e.rowNodes,dateProfile:r,tDateProfile:e.tDateProfile,nowDate:t,todayRange:l,splitProps:c,fallbackBusinessHours:a?e.businessHours:null,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,innerHeights:e.rowInnerHeights,slatCoords:f,onRowCoords:this.handleRowCoords,onRowHeightChange:e.onRowHeightChange}),n.options.nowIndicator&&f&&f.isDateInRange(t)&&Object(o["e"])("div",{className:"fc-timeline-now-indicator-container"},Object(o["e"])(i["lc"],{elClasses:["fc-timeline-now-indicator-line"],elStyle:de(f.dateToCoord(t),n.isRtl),isAxis:!1,date:t})))))}queryHit(e,t){let n=this.rowCoords,r=n.topToIndex(t);if(null!=r){let t=this.props.rowNodes[r].resource;if(t){let i=this.slatsRef.current.positionToHit(e);if(i)return{dateProfile:this.props.dateProfile,dateSpan:{range:i.dateSpan.range,allDay:i.dateSpan.allDay,resourceId:t.id},rect:{left:i.left,right:i.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:i.dayEl,layer:0}}}return null}}function hn(e){for(let t of e){let e=t.resource;if(e&&e.businessHours)return!0}return!1}const pn=30;class gn extends i["c"]{constructor(){super(...arguments),this.scrollGridRef=Object(o["f"])(),this.timeBodyScrollerElRef=Object(o["f"])(),this.spreadsheetHeaderChunkElRef=Object(o["f"])(),this.rootElRef=Object(o["f"])(),this.ensureScrollGridResizeId=0,this.state={resourceAreaWidthOverride:null},this.ensureScrollGridResize=()=>{this.ensureScrollGridResizeId&&clearTimeout(this.ensureScrollGridResizeId),this.ensureScrollGridResizeId=setTimeout(()=>{this.scrollGridRef.current.handleSizing(!1)},i["yb"].SCROLLGRID_RESIZE_INTERVAL+1)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,s=!e.forPrint&&Object(i["fc"])(r),l=!e.forPrint&&Object(i["ec"])(r),a=[{type:"header",key:"header",syncRowHeights:!0,isSticky:s,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:Object(o["e"])("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:Object(o["e"])("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];l&&a.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:i["dc"]},{key:"divider",outerContent:Object(o["e"])("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:i["dc"]}]});let c=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:r.resourceAreaWidth;return Object(o["e"])(x,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:c},{cols:[]},{cols:e.timeCols}],sections:a})}forceTimeScroll(e){let t=this.scrollGridRef.current;t.forceScrollLeft(2,e)}forceResourceScroll(e){let t=this.scrollGridRef.current;t.forceScrollTop(1,e)}getResourceScroll(){let e=this.timeBodyScrollerElRef.current;return e.scrollTop}componentDidMount(){this.initSpreadsheetResizing()}componentWillUnmount(){this.destroySpreadsheetResizing()}initSpreadsheetResizing(){let{isRtl:e,pluginHooks:t}=this.context,n=t.elementDraggingImpl,r=this.spreadsheetHeaderChunkElRef.current;if(n){let t,i,o=this.rootElRef.current,s=this.spreadsheetResizerDragging=new n(o,".fc-resource-timeline-divider");s.emitter.on("dragstart",()=>{t=r.getBoundingClientRect().width,i=o.getBoundingClientRect().width}),s.emitter.on("dragmove",n=>{let r=t+n.deltaX*(e?-1:1);r=Math.max(r,pn),r=Math.min(r,i-pn),this.setState({resourceAreaWidthOverride:r},this.ensureScrollGridResize)}),s.setAutoScrollEnabled(!1)}}destroySpreadsheetResizing(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}}class mn extends i["c"]{constructor(e,t){super(e,t),this.processColOptions=Object(i["Pc"])(An),this.buildTimelineDateProfile=Object(i["Pc"])(Q),this.hasNesting=Object(i["Pc"])(yn),this.buildRowNodes=Object(i["Pc"])(Le),this.layoutRef=Object(o["f"])(),this.rowNodes=[],this.renderedRowNodes=[],this.buildRowIndex=Object(i["Pc"])(bn),this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleRowCoords=e=>{this.rowCoords=e,this.scrollResponder.update(!1)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})},this.handleScrollLeftRequest=e=>{let t=this.layoutRef.current;t.forceTimeScroll(e)},this.handleScrollRequest=e=>{let{rowCoords:t}=this,n=this.layoutRef.current,r=e.rowId||e.resourceId;if(t){if(r){let i=this.buildRowIndex(this.renderedRowNodes),o=i[r];if(null!=o){let r=null!=e.fromBottom?t.bottoms[o]-e.fromBottom:t.tops[o];n.forceResourceScroll(r)}}return!0}return null},this.handleColWidthChange=e=>{this.setState({spreadsheetColWidths:e})},this.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]}}render(){let{props:e,state:t,context:n}=this,{options:r,viewSpec:s}=n,{superHeaderRendering:l,groupSpecs:a,orderSpecs:c,isVGrouping:u,colSpecs:d}=this.processColOptions(n.options),f=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),h=this.rowNodes=this.buildRowNodes(e.resourceStore,a,c,u,e.resourceEntityExpansions,r.resourcesInitiallyExpanded),{slotMinWidth:p}=r,g=ke(f,p||this.computeFallbackSlotMinWidth(f));return Object(o["e"])(i["qc"],{elClasses:["fc-resource-timeline",!this.hasNesting(h)&&"fc-resource-timeline-flat","fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:s},Object(o["e"])(gn,{ref:this.layoutRef,forPrint:e.forPrint,isHeightAuto:e.isHeightAuto,spreadsheetCols:vn(d,t.spreadsheetColWidths,""),spreadsheetHeaderRows:e=>Object(o["e"])(sn,{superHeaderRendering:l,colSpecs:d,onColWidthChange:this.handleColWidthChange,rowInnerHeights:e.rowSyncHeights}),spreadsheetBodyRows:e=>Object(o["e"])(o["b"],null,this.renderSpreadsheetRows(h,d,e.rowSyncHeights)),timeCols:g,timeHeaderContent:n=>Object(o["e"])(he,{clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,dateProfile:e.dateProfile,tDateProfile:f,slatCoords:t.slatCoords,rowInnerHeights:n.rowSyncHeights,onMaxCushionWidth:p?null:this.handleMaxCushionWidth}),timeBodyContent:t=>Object(o["e"])(fn,{dateProfile:e.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:f,rowNodes:h,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,resourceStore:e.resourceStore,nextDayThreshold:n.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:this.handleSlatCoords,onRowCoords:this.handleRowCoords,onScrollLeftRequest:this.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}))}renderSpreadsheetRows(e,t,n){return e.map((e,r)=>e.group?Object(o["e"])(nn,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:n[r]||""}):e.resource?Object(o["e"])(tn,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:n[r]||""}):null)}componentDidMount(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}getSnapshotBeforeUpdate(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}componentDidUpdate(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)}componentWillUnmount(){this.scrollResponder.detach()}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}queryResourceScroll(){let{rowCoords:e,renderedRowNodes:t}=this;if(e){let n=this.layoutRef.current,r=e.bottoms,i=n.getResourceScroll(),o={};for(let e=0;e<r.length;e+=1){let n=t[e],s=r[e]-i;if(s>0){o.rowId=n.id,o.fromBottom=s;break}}return o}return null}}function bn(e){let t={};for(let n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function vn(e,t,n=""){return e.map((e,r)=>({className:e.isMain?"fc-main-col":"",width:t[r]||e.width||n}))}function yn(e){for(let t of e){if(t.group)return!0;if(t.resource&&t.hasChildren)return!0}return!1}function An(e){let t=e.resourceAreaColumns||[],n=null;t.length?e.resourceAreaHeaderContent&&(n={headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount}):t.push({headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDefault:()=>"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});let r=[],i=[],o=[],s=!1;for(let u of t)u.group?i.push(Object.assign(Object.assign({},u),{cellClassNames:u.cellClassNames||e.resourceGroupLabelClassNames,cellContent:u.cellContent||e.resourceGroupLabelContent,cellDidMount:u.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:u.cellWillUnmount||e.resourceGroupLaneWillUnmount})):r.push(u);let l=r[0];if(l.isMain=!0,l.cellClassNames=l.cellClassNames||e.resourceLabelClassNames,l.cellContent=l.cellContent||e.resourceLabelContent,l.cellDidMount=l.cellDidMount||e.resourceLabelDidMount,l.cellWillUnmount=l.cellWillUnmount||e.resourceLabelWillUnmount,i.length)o=i,s=!0;else{let t=e.resourceGroupField;t&&o.push({field:t,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}let a=e.resourceOrder||Ue,c=[];for(let u of a){let e=!1;for(let t of o)if(t.field===u.field){t.order=u.order,e=!0;break}e||c.push(u)}return{superHeaderRendering:n,isVGrouping:s,groupSpecs:o,colSpecs:i.concat(r),orderSpecs:c}}mn.addStateEquality({spreadsheetColWidths:i["yc"]});var Cn=".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}";Object(i["rc"])(Cn),n.d(t,"a",(function(){return wn}));var wn=Object(r["b"])({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2025-04-02",deps:[g,Zt,je],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:mn,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}})},da65:function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return V})),n.d(t,"d",(function(){return Q})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return F})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return i})),n.d(t,"j",(function(){return G})),n.d(t,"k",(function(){return M}));var r,i,o,s,l,a,c,u,d,f={},h=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function g(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var i,o,s,l={};for(s in t)"key"==s?i=t[s]:"ref"==s?o=t[s]:l[s]=t[s];if(arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===l[s]&&(l[s]=e.defaultProps[s]);return v(e,l,i,o,null)}function v(e,t,n,r,s){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++o:s};return null==s&&null!=i.vnode&&i.vnode(l),l}function y(){return{current:null}}function A(e){return e.children}function C(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||_(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||_(e,o,t[o],n[o],r)}function w(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function _(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||w(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||w(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?E:S,o):e.removeEventListener(t,o?E:S,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function S(e){l=!0;try{return this.l[e.type+!1](i.event?i.event(e):e)}finally{l=!1}}function E(e){l=!0;try{return this.l[e.type+!0](i.event?i.event(e):e)}finally{l=!1}}function O(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?D(e):null}function R(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return R(e)}}function x(e){l?setTimeout(e):u(e)}function k(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!j.__r++||c!==i.debounceRendering)&&((c=i.debounceRendering)||x)(j)}function j(){var e,t,n,r,i,o,s,l;for(a.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=a.shift();)e.__d&&(t=a.length,r=void 0,i=void 0,s=(o=(n=e).__v).__e,(l=n.__P)&&(r=[],(i=g({},o)).__v=o.__v+1,H(l,o,i,n.__n,void 0!==l.ownerSVGElement,null!=o.__h?[s]:null,r,null==s?D(o):s,o.__h),B(r,o),o.__e!=s&&R(o)),a.length>t&&a.sort((function(e,t){return e.__v.__b-t.__v.__b})));j.__r=0}function T(e,t,n,r,i,o,s,l,a,c){var u,d,p,g,m,b,y,C=r&&r.__k||h,w=C.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(g=n.__k[u]=null==(g=t[u])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(A,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(p=C[u])||p&&g.key==p.key&&g.type===p.type)C[u]=void 0;else for(d=0;d<w;d++){if((p=C[d])&&g.key==p.key&&g.type===p.type){C[d]=void 0;break}p=null}H(e,g,p=p||f,i,o,s,l,a,c),m=g.__e,(d=g.ref)&&p.ref!=d&&(y||(y=[]),p.ref&&y.push(p.ref,null,g),y.push(d,g.__c||m,g)),null!=m?(null==b&&(b=m),"function"==typeof g.type&&g.__k===p.__k?g.__d=a=I(g,a,e):a=N(e,g,p,C,m,a),"function"==typeof n.type&&(n.__d=a)):a&&p.__e==a&&a.parentNode!=e&&(a=D(p))}for(n.__e=b,u=w;u--;)null!=C[u]&&("function"==typeof n.type&&null!=C[u].__e&&C[u].__e==n.__d&&(n.__d=P(r).nextSibling),z(C[u],C[u]));if(y)for(u=0;u<y.length;u++)W(y[u],y[++u],y[++u])}function I(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t="function"==typeof r.type?I(r,t,n):N(n,r,r,i,r.__e,t));return t}function M(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){M(e,t)})):t.push(e)),t}function N(e,t,n,r,i,o){var s,l,a;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),s=null;else{for(l=o,a=0;(l=l.nextSibling)&&a<r.length;a+=1)if(l==i)break e;e.insertBefore(i,o),s=o}return void 0!==s?s:i.nextSibling}function P(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=P(n)))return r;return null}function H(e,t,n,r,o,s,l,a,c){var u,d,f,h,p,m,b,v,y,C,w,_,S,E,D,R=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,a=t.__e=n.__e,t.__h=null,s=[a]),(u=i.__b)&&u(t);try{e:if("function"==typeof R){if(v=t.props,y=(u=R.contextType)&&r[u.__c],C=u?y?y.props.value:u.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:("prototype"in R&&R.prototype.render?t.__c=d=new R(v,C):(t.__c=d=new O(v,C),d.constructor=R,d.render=L),y&&y.sub(d),d.props=v,d.state||(d.state={}),d.context=C,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=R.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=g({},d.__s)),g(d.__s,R.getDerivedStateFromProps(v,d.__s))),h=d.props,p=d.state,d.__v=t,f)null==R.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==R.getDerivedStateFromProps&&v!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,C),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,C)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[],d.__h.length&&l.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,C),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,p,m)}))}if(d.context=C,d.props=v,d.__P=e,_=i.__r,S=0,"prototype"in R&&R.prototype.render){for(d.state=d.__s,d.__d=!1,_&&_(t),u=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do{d.__d=!1,_&&_(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(r=g(g({},r),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,p)),D=null!=u&&u.type===A&&null==u.key?u.props.children:u,T(e,Array.isArray(D)?D:[D],t,n,r,o,s,l,a,c),d.base=t.__e,t.__h=null,d.__h.length&&l.push(d),b&&(d.__E=d.__=null),d.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=U(n.__e,t,n,r,o,s,l,c);(u=i.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=s)&&(t.__e=a,t.__h=!!c,s[s.indexOf(a)]=null),i.__e(e,t,n)}}function B(e,t){i.__c&&i.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){i.__e(e,t.__v)}}))}function U(e,t,n,i,o,s,l,a){var c,u,d,h=n.props,p=t.props,g=t.type,b=0;if("svg"===g&&(o=!0),null!=s)for(;b<s.length;b++)if((c=s[b])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,s[b]=null;break}if(null==e){if(null===g)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),s=null,a=!1}if(null===g)h===p||a&&e.data===p||(e.data=p);else{if(s=s&&r.call(e.childNodes),u=(h=n.props||f).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!a){if(null!=s)for(h={},b=0;b<e.attributes.length;b++)h[e.attributes[b].name]=e.attributes[b].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(C(e,p,h,o,a),d)t.__k=[];else if(b=t.props.children,T(e,Array.isArray(b)?b:[b],t,n,i,o&&"foreignObject"!==g,s,l,s?s[0]:n.__k&&D(n,0),a),null!=s)for(b=s.length;b--;)null!=s[b]&&m(s[b]);a||("value"in p&&void 0!==(b=p.value)&&(b!==e.value||"progress"===g&&!b||"option"===g&&b!==h.value)&&_(e,"value",b,h.value,!1),"checked"in p&&void 0!==(b=p.checked)&&b!==e.checked&&_(e,"checked",b,h.checked,!1))}return e}function W(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,n)}}function z(e,t,n){var r,o;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||W(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&z(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||m(e.__e),e.__=e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function G(e,t,n){var o,s,l;i.__&&i.__(e,t),s=(o="function"==typeof n)?null:n&&n.__k||t.__k,l=[],H(t,e=(!o&&n||t).__k=b(A,null,[e]),s||f,f,void 0!==t.ownerSVGElement,!o&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,l,!o&&n?n:s?s.__e:t.firstChild,o),B(l,e)}function F(e,t){G(e,t,F)}function V(e,t,n){var i,o,s,l=g({},e.props);for(s in t)"key"==s?i=t[s]:"ref"==s?o=t[s]:l[s]=t[s];return arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),v(e.type,l,i||e.key,o||e.ref,null)}function Q(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,k(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=h.slice,i={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},o=0,s=function(e){return null!=e&&void 0===e.constructor},l=!1,O.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},O.prototype.render=A,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,j.__r=0,d=0}}]);
|