@zealicsolutions/web-ui 1.0.44 → 1.0.45-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/cjs/containers/types/moleculeTypes.d.ts +16 -10
  2. package/dist/cjs/index.js +1577 -1577
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/molecules/Calendar/CalendarMolecule.d.ts +54 -0
  5. package/dist/cjs/molecules/Calendar/CalendarMolecule.stories.d.ts +3 -0
  6. package/dist/cjs/molecules/Visit/VisitMolecule.d.ts +41 -0
  7. package/dist/esm/containers/types/moleculeTypes.d.ts +16 -10
  8. package/dist/esm/molecules/BaseMolecule.js +1 -1
  9. package/dist/esm/molecules/BaseMolecule.js.map +1 -1
  10. package/dist/esm/molecules/Calendar/CalendarMolecule.d.ts +54 -0
  11. package/dist/esm/molecules/Calendar/CalendarMolecule.js +2 -0
  12. package/dist/esm/molecules/Calendar/CalendarMolecule.js.map +1 -0
  13. package/dist/esm/molecules/Calendar/CalendarMolecule.stories.d.ts +3 -0
  14. package/dist/esm/molecules/Visit/VisitMolecule.d.ts +41 -0
  15. package/dist/esm/molecules/Visit/VisitMolecule.js +2 -0
  16. package/dist/esm/molecules/Visit/VisitMolecule.js.map +1 -0
  17. package/dist/esm/node_modules/@fullcalendar/core/index.js +2 -0
  18. package/dist/esm/node_modules/@fullcalendar/core/index.js.map +1 -0
  19. package/dist/esm/node_modules/@fullcalendar/core/internal-common.js +2 -0
  20. package/dist/esm/node_modules/@fullcalendar/core/internal-common.js.map +1 -0
  21. package/dist/esm/node_modules/@fullcalendar/daygrid/index.js +2 -0
  22. package/dist/esm/node_modules/@fullcalendar/daygrid/index.js.map +1 -0
  23. package/dist/esm/node_modules/@fullcalendar/daygrid/internal.js +2 -0
  24. package/dist/esm/node_modules/@fullcalendar/daygrid/internal.js.map +1 -0
  25. package/dist/esm/node_modules/@fullcalendar/interaction/index.js +2 -0
  26. package/dist/esm/node_modules/@fullcalendar/interaction/index.js.map +1 -0
  27. package/dist/esm/node_modules/@fullcalendar/list/index.js +2 -0
  28. package/dist/esm/node_modules/@fullcalendar/list/index.js.map +1 -0
  29. package/dist/esm/node_modules/@fullcalendar/list/internal.js +2 -0
  30. package/dist/esm/node_modules/@fullcalendar/list/internal.js.map +1 -0
  31. package/dist/esm/node_modules/@fullcalendar/premium-common/index.js +2 -0
  32. package/dist/esm/node_modules/@fullcalendar/premium-common/index.js.map +1 -0
  33. package/dist/esm/node_modules/@fullcalendar/react/dist/index.js +2 -0
  34. package/dist/esm/node_modules/@fullcalendar/react/dist/index.js.map +1 -0
  35. package/dist/esm/node_modules/@fullcalendar/resource/index.js +2 -0
  36. package/dist/esm/node_modules/@fullcalendar/resource/index.js.map +1 -0
  37. package/dist/esm/node_modules/@fullcalendar/resource/internal-common.js +2 -0
  38. package/dist/esm/node_modules/@fullcalendar/resource/internal-common.js.map +1 -0
  39. package/dist/esm/node_modules/@fullcalendar/resource-daygrid/internal.js +2 -0
  40. package/dist/esm/node_modules/@fullcalendar/resource-daygrid/internal.js.map +1 -0
  41. package/dist/esm/node_modules/@fullcalendar/resource-timegrid/index.js +2 -0
  42. package/dist/esm/node_modules/@fullcalendar/resource-timegrid/index.js.map +1 -0
  43. package/dist/esm/node_modules/@fullcalendar/resource-timegrid/internal.js +2 -0
  44. package/dist/esm/node_modules/@fullcalendar/resource-timegrid/internal.js.map +1 -0
  45. package/dist/esm/node_modules/@fullcalendar/resource-timeline/index.js +2 -0
  46. package/dist/esm/node_modules/@fullcalendar/resource-timeline/index.js.map +1 -0
  47. package/dist/esm/node_modules/@fullcalendar/resource-timeline/internal.js +2 -0
  48. package/dist/esm/node_modules/@fullcalendar/resource-timeline/internal.js.map +1 -0
  49. package/dist/esm/node_modules/@fullcalendar/scrollgrid/internal.js +2 -0
  50. package/dist/esm/node_modules/@fullcalendar/scrollgrid/internal.js.map +1 -0
  51. package/dist/esm/node_modules/@fullcalendar/timegrid/index.js +2 -0
  52. package/dist/esm/node_modules/@fullcalendar/timegrid/index.js.map +1 -0
  53. package/dist/esm/node_modules/@fullcalendar/timegrid/internal.js +2 -0
  54. package/dist/esm/node_modules/@fullcalendar/timegrid/internal.js.map +1 -0
  55. package/dist/esm/node_modules/@fullcalendar/timeline/index.js +2 -0
  56. package/dist/esm/node_modules/@fullcalendar/timeline/index.js.map +1 -0
  57. package/dist/esm/node_modules/@fullcalendar/timeline/internal.js +2 -0
  58. package/dist/esm/node_modules/@fullcalendar/timeline/internal.js.map +1 -0
  59. package/dist/esm/node_modules/preact/compat/dist/compat.mjs.js +2 -0
  60. package/dist/esm/node_modules/preact/compat/dist/compat.mjs.js.map +1 -0
  61. package/dist/esm/node_modules/preact/dist/preact.mjs.js +2 -0
  62. package/dist/esm/node_modules/preact/dist/preact.mjs.js.map +1 -0
  63. package/dist/esm/node_modules/preact/hooks/dist/hooks.mjs.js +2 -0
  64. package/dist/esm/node_modules/preact/hooks/dist/hooks.mjs.js.map +1 -0
  65. package/dist/index.d.ts +105 -10
  66. package/package.json +11 -1
@@ -0,0 +1,2 @@
1
+ import{Component as e,createElement as t,createContext as n,isValidElement as r,Fragment as s,options as i,render as o}from"../../preact/dist/preact.mjs.js";import{createPortal as a}from"../../preact/compat/dist/compat.mjs.js";const l=[],c=new Map;function d(e){l.push(e),c.forEach((t=>{h(t,e)}))}function u(e){e.isConnected&&e.getRootNode&&f(e.getRootNode())}function f(e){let t=c.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=function(){void 0===g&&(g=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return g}();n&&(t.nonce=n);const r=e===document?document.head:e,s=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,s)}c.set(e,t),function(e){for(const t of l)h(e,t)}(t)}}function h(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach(((e,t)=>{(e=e.trim())&&n.insertRule(e+"}",r+t)}))}let g;"undefined"!=typeof document&&f(document);d(':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)}');class p{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,n[e]<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function A(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(v(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function v(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function b(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let s=n[e].querySelectorAll(t);for(let e=0;e<s.length;e+=1)r.push(s[e])}return r}function y(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let s=n[e].children;for(let e=0;e<s.length;e+=1){let n=s[e];t&&!v(n,t)||r.push(n)}}return r}const E=/(top|left|right|bottom|width|height)$/i;function D(e,t){for(let n in t)C(e,n,t[n])}function C(e,t,n){null==n?e.style[t]="":"number"==typeof n&&E.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function w(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 S=0;function k(){return S+=1,"fc-dom-"+S}function M(e){e.preventDefault()}function T(e,t,n,r){let s=function(e,t){return n=>{let r=A(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,s),()=>{e.removeEventListener(t,s)}}function x(e,t,n,r){let s;return T(e,"mouseover",t,((e,t)=>{if(t!==s){s=t,n(e,t);let i=e=>{s=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}}))}const I=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function R(e,t){let n=r=>{t(r),I.forEach((t=>{e.removeEventListener(t,n)}))};I.forEach((t=>{e.addEventListener(t,n)}))}function N(e){return Object.assign({onClick:e},B(e))}function B(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let O=0;function U(){return O+=1,String(O)}function H(){document.body.classList.add("fc-not-allowed")}function z(){document.body.classList.remove("fc-not-allowed")}function j(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",M)}function Q(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",M)}function _(e){e.addEventListener("contextmenu",M)}function P(e){e.removeEventListener("contextmenu",M)}function F(e){let t,n,r=[],s=[];for("string"==typeof e?s=e.split(/\s*,\s*/):"function"==typeof e?s=[e]:Array.isArray(e)&&(s=e),t=0;t<s.length;t+=1)n=s[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 L(e,t,n){let r,s;for(r=0;r<n.length;r+=1)if(s=W(e,t,n[r]),s)return s;return 0}function W(e,t,n){return n.func?n.func(e,t):G(e[n.field],t[n.field])*(n.order||1)}function G(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 V(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Y(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,t){return e-t}function q(e){return e%1==0}function J(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 $=["years","months","days","milliseconds"],X=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function K(e,t){return"string"==typeof e?function(e){let t=X.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}(e):"object"==typeof e&&e?ee(e):"number"==typeof e?ee({[t||"milliseconds"]:e}):null}function ee(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 te(e){return e.years||e.months||e.milliseconds?0:e.days}function ne(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function re(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function se(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function ie(e){return le(e)/864e5}function oe(e){return le(e)/6e4}function ae(e){return le(e)/1e3}function le(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function ce(e,t){let n=null;for(let r=0;r<$.length;r+=1){let s=$[r];if(t[s]){let r=e[s]/t[s];if(!q(r)||null!==n&&n!==r)return null;n=r}else if(e[s])return null}return n}function de(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 ue(e,t,n){if(e===t)return!0;let r,s=e.length;if(s!==t.length)return!1;for(r=0;r<s;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}const fe=["sun","mon","tue","wed","thu","fri","sat"];function he(e,t){let n=ke(e);return n[2]+=7*t,Me(n)}function ge(e,t){let n=ke(e);return n[2]+=t,Me(n)}function pe(e,t){let n=ke(e);return n[6]+=t,Me(n)}function me(e,t){return Ae(e,t)/7}function Ae(e,t){return(t.valueOf()-e.valueOf())/864e5}function ve(e,t){let n=Ee(e),r=Ee(t);return{years:0,months:0,days:Math.round(Ae(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function be(e,t){let n=ye(e,t);return null!==n&&n%7==0?n/7:null}function ye(e,t){return xe(e)===xe(t)?Math.round(Ae(e,t)):null}function Ee(e){return Me([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function De(e,t,n,r){let s=Me([t,0,1+Ce(t,n,r)]),i=Ee(e),o=Math.round(Ae(s,i));return Math.floor(o/7)+1}function Ce(e,t,n){let r=7+t-n;return-((7+Me([e,0,r]).getUTCDay()-t)%7)+r-1}function we(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function Se(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 ke(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Me(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function Te(e){return!isNaN(e.valueOf())}function xe(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function Ie(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",Oe(t,!0)))),r}function Re(e){return e.toISOString().replace(/T.*$/,"")}function Ne(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function Be(e){return V(e.getUTCHours(),2)+":"+V(e.getUTCMinutes(),2)+":"+V(e.getUTCSeconds(),2)}function Oe(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),s=Math.floor(r/60),i=Math.round(r%60);return t?`${n+V(s,2)}:${V(i,2)}`:`GMT${n}${s}${i?`:${V(i,2)}`:""}`}function Ue(e,t,n){let r,s;return function(...i){if(r){if(!ue(r,i)){n&&n(s);let r=e.apply(this,i);t&&t(r,s)||(s=r)}}else s=e.apply(this,i);return r=i,s}}function He(e,t,n){let r,s;return i=>{if(r){if(!mt(r,i)){n&&n(s);let r=e.call(this,i);t&&t(r,s)||(s=r)}}else s=e.call(this,i);return r=i,s}}function ze(e,t,n){let r=[],s=[];return i=>{let o=r.length,a=i.length,l=0;for(;l<o;l+=1)if(i[l]){if(!ue(r[l],i[l])){n&&n(s[l]);let r=e.apply(this,i[l]);t&&t(r,s[l])||(s[l]=r)}}else n&&n(s[l]);for(;l<a;l+=1)s[l]=e.apply(this,i[l]);return r=i,s.splice(a),s}}function je(e,t,n){let r={},s={};return i=>{let o={};for(let a in i)if(s[a])if(ue(r[a],i[a]))o[a]=s[a];else{n&&n(s[a]);let r=e.apply(this,i[a]);o[a]=t&&t(r,s[a])?s[a]:r}else o[a]=e.apply(this,i[a]);return r=i,s=o,o}}const Qe={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},_e={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Pe=/\s*([ap])\.?m\.?/i,Fe=/,/g,Le=/\s+/g,We=/\u200e/g,Ge=/UTC|GMT/;class Ve{constructor(e){let t={},n={},r=9;for(let s in e)if(s in Qe){n[s]=e[s];Qe[s]<9&&(r=Math.min(Qe[s],r))}else t[s]=e[s],s in _e&&(r=Math.min(_e[s],r));this.standardDateProps=t,this.extendedSettings=n,this.smallestUnitNum=r,this.buildFormattingFunc=Ue(Ye)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:s,extendedSettings:i}=this,o=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(xe(e)!==xe(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n);let a=o;!(a>1)||"numeric"!==s.year&&"2-digit"!==s.year||"numeric"!==s.month&&"2-digit"!==s.month||"numeric"!==s.day&&"2-digit"!==s.day||(a=1);let l=this.format(e,n),c=this.format(t,n);if(l===c)return l;let d=Ye(function(e,t){let n={};for(let r in e)(!(r in _e)||_e[r]<=t)&&(n[r]=e[r]);return n}(s,a),i,n),u=d(e),f=d(t),h=function(e,t,n,r){let s=0;for(;s<e.length;){let i=e.indexOf(t,s);if(-1===i)break;let o=e.substr(0,i);s=i+t.length;let a=e.substr(s),l=0;for(;l<n.length;){let e=n.indexOf(r,l);if(-1===e)break;let t=n.substr(0,e);l=e+r.length;let s=n.substr(l);if(o===t&&a===s)return{before:o,after:a}}}return null}(l,u,c,f),g=i.separator||r||n.defaultSeparator||"";return h?h.before+u+g+f+h.after:l+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 Ye(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>Oe(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,s){let i=[];"long"===s?i.push(n):"short"!==s&&"narrow"!==s||i.push(t);"long"!==s&&"short"!==s||i.push(" ");i.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week):function(e,t,n){e=Object.assign({},e),t=Object.assign({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";let r,s=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 i=>{let o,{marker:a}=i;return o=r&&!a.getUTCMinutes()?r:s,function(e,t,n,r,s){e=e.replace(We,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace(Ge,(()=>(n=!0,t))),n||(e+=` ${t}`);return e}(e,"UTC"===s.timeZone||null==t.timeZoneOffset?"UTC":Oe(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Fe,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Pe,"").trim():"narrow"===r.meridiem?e=e.replace(Pe,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(Pe,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(Pe,(e=>e.toLocaleLowerCase())));return e=e.replace(Le," "),e=e.trim(),e}(o.format(a),i,e,t,n)}}(e,t,n)}function Ze(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 qe(e,t,n,r){let s=Ze(e,n.calendarSystem);return{date:s,start:s,end:t?Ze(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Je{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,qe(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,qe(e,t,n,r))}}class $e{constructor(e){this.func=e}format(e,t,n){return this.func(qe(e,null,t,n))}formatRange(e,t,n,r){return this.func(qe(e,t,n,r))}}function Xe(e){return"object"==typeof e&&e?new Ve(e):"string"==typeof e?new Je(e):"function"==typeof e?new $e(e):null}const Ke={navLinkDayClick:ct,navLinkWeekClick:ct,duration:K,bootstrapFontAwesome:ct,buttonIcons:ct,customButtons:ct,defaultAllDayEventDuration:K,defaultTimedEventDuration:K,nextDayThreshold:K,scrollTime:K,scrollTimeReset:Boolean,slotMinTime:K,slotMaxTime:K,dayPopoverFormat:Xe,slotDuration:K,snapDuration:K,headerToolbar:ct,footerToolbar:ct,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Xe,dayHeaderClassNames:ct,dayHeaderContent:ct,dayHeaderDidMount:ct,dayHeaderWillUnmount:ct,dayCellClassNames:ct,dayCellContent:ct,dayCellDidMount:ct,dayCellWillUnmount:ct,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:ct,weekNumbers:Boolean,weekNumberClassNames:ct,weekNumberContent:ct,weekNumberDidMount:ct,weekNumberWillUnmount:ct,editable:Boolean,viewClassNames:ct,viewDidMount:ct,viewWillUnmount:ct,nowIndicator:Boolean,nowIndicatorClassNames:ct,nowIndicatorContent:ct,nowIndicatorDidMount:ct,nowIndicatorWillUnmount:ct,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:ct,locale:ct,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:ct,eventOrder:F,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:ct,contentHeight:ct,direction:String,weekNumberFormat:Xe,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:ct,initialDate:ct,now:ct,eventDataTransform:ct,stickyHeaderDates:ct,stickyFooterScrollbar:ct,viewHeight:ct,defaultAllDay:Boolean,eventSourceFailure:ct,eventSourceSuccess:ct,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:ct,eventConstraint:ct,eventAllow:ct,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:ct,eventContent:ct,eventDidMount:ct,eventWillUnmount:ct,selectConstraint:ct,selectOverlap:ct,selectAllow:ct,droppable:Boolean,unselectCancel:String,slotLabelFormat:ct,slotLaneClassNames:ct,slotLaneContent:ct,slotLaneDidMount:ct,slotLaneWillUnmount:ct,slotLabelClassNames:ct,slotLabelContent:ct,slotLabelDidMount:ct,slotLabelWillUnmount:ct,dayMaxEvents:ct,dayMaxEventRows:ct,dayMinWidth:Number,slotLabelInterval:K,allDayText:String,allDayClassNames:ct,allDayContent:ct,allDayDidMount:ct,allDayWillUnmount:ct,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Xe,rerenderDelay:Number,moreLinkText:ct,moreLinkHint:ct,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:ct,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:K,hiddenDays:ct,fixedWeekCount:Boolean,validRange:ct,visibleRange:ct,titleFormat:ct,eventInteractive:Boolean,noEventsText:String,viewHint:ct,navLinkHint:ct,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:ct,moreLinkClassNames:ct,moreLinkContent:ct,moreLinkDidMount:ct,moreLinkWillUnmount:ct,monthStartFormat:Xe,handleCustomRendering:ct,customRenderingMetaMap:ct,customRenderingReplaces:Boolean},et={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"}},tt={datesSet:ct,eventsSet:ct,eventAdd:ct,eventChange:ct,eventRemove:ct,windowResize:ct,eventClick:ct,eventMouseEnter:ct,eventMouseLeave:ct,select:ct,unselect:ct,loading:ct,_unmount:ct,_beforeprint:ct,_afterprint:ct,_noEventDrop:ct,_noEventResize:ct,_resize:ct,_scrollRequest:ct},nt={buttonText:ct,buttonHints:ct,views:ct,plugins:ct,initialEvents:ct,events:ct,eventSources:ct},rt={headerToolbar:st,footerToolbar:st,buttonText:st,buttonHints:st,buttonIcons:st,dateIncrement:st,plugins:it,events:it,eventSources:it,resources:it};function st(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?mt(e,t):e===t}function it(e,t){return Array.isArray(e)&&Array.isArray(t)?ue(e,t):e===t}const ot={type:String,component:ct,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:ct,usesMinMaxTime:Boolean,classNames:ct,content:ct,didMount:ct,willUnmount:ct};function at(e){return ut(e,rt)}function lt(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function ct(e){return e}const{hasOwnProperty:dt}=Object.prototype;function ut(e,t){let n={};if(t)for(let r in t)if(t[r]===st){let t=[];for(let s=e.length-1;s>=0;s-=1){let i=e[s][r];if("object"==typeof i&&i)t.unshift(i);else if(void 0!==i){n[r]=i;break}}t.length&&(n[r]=ut(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function ft(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ht(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function gt(e){let t={};for(let n of e)t[n]=!0;return t}function pt(e){let t=[];for(let n in e)t.push(e[n]);return t}function mt(e,t){if(e===t)return!0;for(let n in e)if(dt.call(e,n)&&!(n in t))return!1;for(let n in t)if(dt.call(t,n)&&e[n]!==t[n])return!1;return!0}const At=/^on[A-Z]/;function vt(e,t){let n=[];for(let r in e)dt.call(e,r)&&(r in t||n.push(r));for(let r in t)dt.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function bt(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!yt(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function yt(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Et(e,t=0,n,r=1){let s=[];null==n&&(n=Object.keys(e).length);for(let i=t;i<n;i+=r){let t=e[i];void 0!==t&&s.push(t)}return s}let Dt={};var Ct,wt;Ct="gregory",wt=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return Me(e)}markerToArray(e){return ke(e)}},Dt[Ct]=wt;const St=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function kt(e){let t=St.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(Te(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 Mt{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=function(e){return new Dt[e]}(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()):Me(we(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=Me(e)),null!==t&&Te(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=kt(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=be(e,t),null!==n?{unit:"week",value:n}:(n=ye(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),q(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),q(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),q(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/(ie(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return ie(e)/30}(n):n.days&&(r=ye(e,t),null!==r)?r/ie(n):(t.valueOf()-e.valueOf())/le(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?Ee(e):"hour"===t?function(e){return Me([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return Me([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return Me([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(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)):function(e,t,n){let r=e.getUTCFullYear(),s=De(e,r,t,n);if(s<1)return De(e,r-1,t,n);let i=De(e,r+1,t,n);return i>=1?Math.min(s,i):s}(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=pe(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)),Ie(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?Me(we(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Me(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-Se(ke(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ke(e)):null}toDate(e,t){return"local"===this.timeZone?Se(ke(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ke(e))*60):new Date(e.valueOf()-(t||0))}}class Tt{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 xt(e){e();let n=i.debounceRendering,r=[];for(i.debounceRendering=function(e){r.push(e)},o(t(It,{}),document.createElement("div"));r.length;)r.shift()();i.debounceRendering=n}Tt.prototype.classes={},Tt.prototype.iconClasses={},Tt.prototype.baseIconClass="",Tt.prototype.iconOverridePrefix="";class It extends e{render(){return t("div",{})}componentDidMount(){this.setState({})}}function Rt(e){let t=n(e),r=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=r.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 Nt{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 Bt=Rt({});function Ot(e,t,n,r,s,i,o,a,l,c,d,u,f,h){return{dateEnv:s,nowManager:i,options:n,pluginHooks:a,emitter:d,dispatch:l,getCurrentData:c,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:"rtl"===n.direction,addResizeHandler(e){d.on("_resize",e)},removeResizeHandler(e){d.off("_resize",e)},createScrollResponder:e=>new Nt(e,d,K(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class Ut extends e{shouldComponentUpdate(e,t){return this.debug&&console.log(vt(e,this.props),vt(t,this.state)),!bt(this.props,e,this.propEquality)||!bt(this.state,t,this.stateEquality)}safeSetState(e){bt(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ut.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Ut.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Ut.contextType=Bt,Ut.prototype.propEquality={},Ut.prototype.stateEquality={};class Ht extends Ut{}function zt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Ht.contextType=Bt;class jt extends Ht{constructor(){super(...arguments),this.id=U(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&Qt(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&zt(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:s}=n,{customGenerator:i,defaultGenerator:o,renderProps:a}=e,l=_t(e,[],this.handleEl);let c,d,u=!1,f=[];if(null!=i){const e="function"==typeof i?i(a,t):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?f=Array.prototype.slice.call(e.domNodes):(t?r(e):"function"!=typeof e)?c=e:d=e}}else u=!Qt(e.generatorName,s);return u&&o&&(c=o(a)),this.queuedDomNodes=f,this.currentGeneratorMeta=d,t(e.elTag,l,c)}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:s,customRenderingMetaMap:i}=r.options;if(s){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==i?void 0:i[n.generatorName];r&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n),{elClasses:(n.elClasses||[]).filter(Pt)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!ue(e,t)){t.forEach(m);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function Qt(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function _t(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 Pt(e){return Boolean(e)}jt.addPropsEquality({elClasses:ue,elStyle:mt,elAttrs:function(e,t){const n=vt(e,t);for(let e of n)if(!At.test(e))return!1;return!0},renderProps:mt});const Ft=Rt(0);class Lt extends e{constructor(){super(...arguments),this.InnerContent=Wt.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(zt(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const r=_t(e,n,this.handleEl),s=e.children(this.InnerContent,e.renderProps,r);return e.elTag?t(e.elTag,r,s):s}return t(jt,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),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 Wt(e,n){const r=e.props;return t(jt,Object.assign({renderProps:r.renderProps,generatorName:r.generatorName,customGenerator:r.customGenerator,defaultGenerator:r.defaultGenerator,renderId:e.context},n))}Lt.contextType=Ft;class Gt extends Ht{render(){let{props:e,context:n}=this,{options:r}=n,s={view:n.viewApi};return t(Lt,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Vt(e.viewSpec),...e.elClasses||[]],renderProps:s,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),(()=>e.children))}}function Vt(e){return[`fc-${e.type}-view`,"fc-view"]}function Yt(e,t){let n,r,s=[],{start:i}=t;for(e.sort(Zt),n=0;n<e.length;n+=1)r=e[n],r.start>i&&s.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&s.push({start:i,end:t.end}),s}function Zt(e,t){return e.start.valueOf()-t.start.valueOf()}function qt(e,t){let{start:n,end:r}=e,s=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)&&(s={start:n,end:r}),s}function Jt(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 $t(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Xt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Kt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function en(e){let t=Math.floor(Ae(e.start,e.end))||1,n=Ee(e.start);return{start:n,end:ge(n,t)}}function tn(e,t=K(0)){let n=null,r=null;if(e.end){r=Ee(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=le(t)&&(r=ge(r,1))}return e.start&&(n=Ee(e.start),r&&r<=n&&(r=ge(n,1))),{start:n,end:r}}function nn(e){let t=tn(e);return Ae(t.start,t.end)>1}function rn(e,t,n,r){return"year"===r?K(n.diffWholeYears(e,t),"year"):"month"===r?K(n.diffWholeMonths(e,t),"month"):ve(e,t)}class sn{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,s=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,s=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,n)}build(e,t,n=!0){let r,s,i,o,a,l,{props:c}=this;var d,u;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(u=r).start&&d<u.start?u.start:null!=u.end&&d>=u.end?new Date(u.end.valueOf()-1):d),s=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(s.unit),o=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,i),o=this.trimHiddenDays(o),a=o,c.showNonCurrentDates||(a=qt(a,s.range)),a=this.adjustActiveRange(a),a=qt(a,r),l=$t(s.range,r),Kt(o,e)||(e=o.start),{currentDate:e,validRange:r,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:i,activeRange:a,renderRange:o,slotMinTime:c.slotMinTime,slotMaxTime:c.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(s.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,s=null,i=null,o=null;return r.duration?(s=r.duration,i=r.durationUnit,o=this.buildRangeFromDuration(e,t,s,i)):(n=this.props.dayCount)?(i="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(s=this.getFallbackDuration(),i=de(s).unit,o=this.buildRangeFromDuration(e,t,s,i)),{duration:s,unit:i,range:o}}getFallbackDuration(){return K({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:s}=this.props,{start:i,end:o}=e;return n&&(ie(r)<0&&(i=Ee(i),i=t.add(i,r)),ie(s)>1&&(o=Ee(o),o=ge(o,-1),o=t.add(o,s))),{start:i,end:o}}buildRangeFromDuration(e,t,n,r){let s,i,o,{dateEnv:a,dateAlignment:l}=this.props;if(!l){let{dateIncrement:e}=this.props;l=e&&le(e)<le(n)?de(e).unit:r}function c(){s=a.startOf(e,l),i=a.add(s,n),o={start:s,end:i}}return ie(n)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,t),s=Ee(s)),c(),this.trimHiddenDays(o)||(e=this.skipHiddenDays(e,t),c()),o}buildRangeFromDayCount(e,t,n){let r,{dateEnv:s,dateAlignment:i}=this.props,o=0,a=e;i&&(a=s.startOf(a,i)),a=Ee(a),a=this.skipHiddenDays(a,t),r=a;do{r=ge(r,1),this.isHiddenDay(r)||(o+=1)}while(o<n);return{start:a,end:r}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,s=this.refineRange(r);return!s||null!=s.start&&null!=s.end?s:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?K(1,t):e||K({days:1}))}refineRange(e){if(e){let t=function(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}(e,this.props.dateEnv);return t&&(t=tn(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){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=ge(e,t);return e}}function on(e,t,n,r){return{instanceId:U(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function an(e,t,n){let{dateEnv:r,pluginHooks:s,options:i}=n,{defs:o,instances:a}=e;a=ft(a,(e=>!o[e.defId].recurringDef));for(let e in o){let n=o[e];if(n.recurringDef){let{duration:o}=n.recurringDef;o||(o=n.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let l=ln(n,o,t,r,s.recurringTypes);for(let t of l){let n=on(e,{start:t,end:r.add(t,o)});a[n.instanceId]=n}}}return{defs:o,instances:a}}function ln(e,t,n,r,s){let i=s[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(Ee)),i}const cn={id:String,groupId:String,title:String,url:String,interactive:Boolean},dn={start:ct,end:ct,date:ct,allDay:Boolean},un=Object.assign(Object.assign(Object.assign({},cn),dn),{extendedProps:ct});function fn(e,t,n,r,s=gn(n),i,o){let{refined:a,extra:l}=hn(e,n,s),c=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),d=function(e,t,n,r){for(let s=0;s<r.length;s+=1){let i=r[s].parse(e,n);if(i){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=i.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:i.duration,typeData:i.typeData,typeId:s}}}return null}(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=pn(a,l,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,i);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let u=function(e,t,n,r){let s,i,{allDay:o}=e,a=null,l=!1,c=null,d=null!=e.start?e.start:e.date;if(s=n.dateEnv.createMarkerMeta(d),s)a=s.marker;else if(!r)return null;null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end));null==o&&(o=null!=t?t:(!s||s.isTimeUnspecified)&&(!i||i.isTimeUnspecified));o&&a&&(a=Ee(a));i&&(c=i.marker,o&&(c=Ee(c)),a&&c<=a&&(c=null));c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:o,hasEnd:l,range:{start:a,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(a,c,n,r);if(u){let e=pn(a,l,t?t.sourceId:"",u.allDay,u.hasEnd,n,i),r=on(e.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function hn(e,t,n=gn(t)){return lt(e,n)}function gn(e){return Object.assign(Object.assign(Object.assign({},Cn),un),e.pluginHooks.eventRefiners)}function pn(e,t,n,r,s,i,o){let a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||U(),sourceId:n,allDay:r,hasEnd:s,interactive:e.interactive,ui:Sn(e,i),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of i.pluginHooks.eventDefMemberAdders)Object.assign(a,t(e));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function mn(e,t,n,r,s,i){let o={defs:{},instances:{}},a=gn(n);for(let l of e){let e=fn(l,t,n,r,a,s,i);e&&An(e,o)}return o}function An(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function vn(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=En(e,(e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r}));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function bn(){return{defs:{},instances:{}}}function yn(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function En(e,t){let n=ft(e.defs,t),r=ft(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function Dn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const Cn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:ct,overlap:ct,allow:ct,className:Dn,classNames:Dn,color:String,backgroundColor:String,borderColor:String,textColor:String},wn={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Sn(e,t){let n=function(e,t){return Array.isArray(e)?mn(e,null,t,!0):"object"==typeof e&&e?mn([e],null,t,!0):null!=e?String(e):null}(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 kn(e){return e.reduce(Mn,wn)}function Mn(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 Tn={id:String,defaultAllDay:Boolean,url:String,format:String,events:ct,eventDataTransform:ct,success:ct,failure:ct};function xn(e,t,n=In(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:s,extra:i}=lt(r,n),o=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(s,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:s.defaultAllDay,eventDataTransform:s.eventDataTransform,success:s.success,failure:s.failure,publicId:s.id||"",sourceId:U(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Sn(s,t),extendedProps:i}}return null}function In(e){return Object.assign(Object.assign(Object.assign({},Cn),Tn),e.pluginHooks.eventSourceRefiners)}function Rn(e,t,n,r,s){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,s,i){if(t&&n===t.latestFetchId){let n=mn(Nn(s,t,i),t,i);return r&&(n=an(n,r,i)),yn(Un(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,s);case"RESET_RAW_EVENTS":return function(e,t,n,r,s){const{defIdMap:i,instanceIdMap:o}=function(e){const{defs:t,instances:n}=e,r={},s={};for(let e in t){const n=t[e],{publicId:s}=n;s&&(r[s]=e)}for(let e in n){const r=t[n[e].defId],{publicId:i}=r;i&&(s[i]=e)}return{defIdMap:r,instanceIdMap:s}}(e);let a=mn(Nn(n,t,s),t,s,!1,i,o);return an(a,r,s)}(e,n[t.sourceId],t.rawEvents,r.activeRange,s);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=an(t,n,r));return yn(e,t)}(e,t.eventStore,r?r.activeRange:null,s);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return yn(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?an(e,r.activeRange,s):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,s={},i={};for(let e in n)t.defs[e]||(s[e]=n[e]);for(let e in r)!t.instances[e]&&s[r[e].defId]&&(i[e]=r[e]);return{defs:s,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Un(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return En(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Nn(e,t,n){let r=n.options.eventDataTransform,s=t?t.eventDataTransform:null;return s&&(e=Bn(e,s)),r&&(e=Bn(e,r)),e}function Bn(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 On(e,t,n){let{defs:r}=e,s=ht(e.instances,(e=>r[e.defId].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:s}}function Un(e,t){return En(e,(e=>e.sourceId!==t))}class Hn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],s=[].concat(r||[],n);for(let e of s)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const zn={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function jn(e,t){return mn(function(e){let t;t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"==typeof e&&e?[e]:[];return t=t.map((e=>Object.assign(Object.assign({},zn),e))),t}(e),null,t)}function Qn(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},_n(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function _n(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,s;return Object.assign(n,(r=e,s=t.dateEnv,Object.assign(Object.assign({},pr(r.range,s,r.allDay)),{allDay:r.allDay}))),n}function Pn(e,t,n){let{dateEnv:r,options:s}=n,i=t;return e?(i=Ee(i),i=r.add(i,s.defaultAllDayEventDuration)):i=r.add(i,s.defaultTimedEventDuration),i}function Fn(e,t,n,r){let s=Kn(e.defs,t),i={defs:{},instances:{}};for(let t in e.defs){let o=e.defs[t];i.defs[t]=Ln(o,s[t],n,r)}for(let t in e.instances){let o=e.instances[t],a=i.defs[o.defId];i.instances[t]=Wn(o,a,s[o.defId],n,r)}return i}function Ln(e,t,n,r){let s=n.standardProps||{};null==s.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(s.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},e),s),{ui:Object.assign(Object.assign({},e.ui),s.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function Wn(e,t,n,r,s){let{dateEnv:i}=s,o=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Object.assign({},e);return o&&(l.range=en(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:i.add(l.range.start,r.datesDelta),end:i.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:i.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:i.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:Pn(t.allDay,l.range.start,s)}),t.allDay&&(l.range={start:Ee(l.range.start),end:Ee(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Pn(t.allDay,l.range.start,s)),l}class Gn{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 Vn{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in dn)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=cn[e](t),this.mutate({standardProps:{publicId:t}});else if(e in cn)t=cn[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Cn){let n=Cn[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=rn(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=rn(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:s}=this._context,i={allDay:n.allDay},o=s.createMarker(e);var a,l;if(o&&((null==t||(r=s.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=en(e));let t=rn(e.start,o,s,n.granularity);if(r){let o=rn(e.end,r,s,n.granularity);l=o,(a=t).years===l.years&&a.months===l.months&&a.days===l.days&&a.milliseconds===l.milliseconds?this.mutate({datesDelta:t,standardProps:i}):this.mutate({startDelta:t,endDelta:o,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:t,standardProps:i})}}moveStart(e){let t=K(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=K(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=K(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=Xe(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:s}=r.getCurrentData(),i=vn(s,t.instanceId);i=Fn(i,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let o=new Vn(r,n,t);this._def=i.defs[n.defId],this._instance=i.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:i}),r.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:Zn(i,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,t=Yn(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 Gn(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:s}=this,i={allDay:t.allDay};return t.title&&(i.title=t.title),r&&(i.start=r),s&&(i.end=s),t.publicId&&(i.id=t.publicId),t.groupId&&(i.groupId=t.groupId),t.url&&(i.url=t.url),n.display&&"auto"!==n.display&&(i.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.color=n.backgroundColor:(n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.borderColor&&(i.borderColor=n.borderColor)),n.textColor&&(i.textColor=n.textColor),n.classNames.length&&(i.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}toJSON(){return this.toPlainObject()}}function Yn(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Zn(e,t,n){let{defs:r,instances:s}=e,i=[],o=n?n.instanceId:"";for(let e in s){let n=s[e],a=r[n.defId];n.instanceId!==o&&i.push(new Vn(t,a,n))}return i}function qn(e,t,n,r){let s={},i={},o={},a=[],l=[],c=Kn(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===c[n.defId].display&&(n.groupId?(s[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):i[t]=[])}for(let t in e.instances){let o=e.instances[t],d=e.defs[o.defId],u=c[d.defId],f=o.range,h=!d.allDay&&r?tn(f,r):f,g=qt(h,n);g&&("inverse-background"===u.display?d.groupId?s[d.groupId].push(g):i[o.defId].push(g):"none"!==u.display&&("background"===u.display?a:l).push({def:d,ui:u,instance:o,range:g,isStart:h.start&&h.start.valueOf()===g.start.valueOf(),isEnd:h.end&&h.end.valueOf()===g.end.valueOf()}))}for(let e in s){let t=Yt(s[e],n);for(let n of t){let t=o[e],r=c[t.defId];a.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in i){let r=Yt(i[t],n);for(let n of r)a.push({def:e.defs[t],ui:c[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function Jn(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function $n(e,t){e.fcSeg=t}function Xn(e){return e.fcSeg||e.parentNode.fcSeg||null}function Kn(e,t){return ht(e,(e=>er(e,t)))}function er(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),kn(n)}function tr(e,t){let n=e.map(nr);return n.sort(((e,n)=>L(e,n,t))),n.map((e=>e._seg))}function nr(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,s=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:s,end:i,duration:i-s,allDay:Number(n.allDay),_seg:e})}function rr(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:s,ui:i}=e.eventRange,o=i.startEditable;for(let e of r)o=e(o,s,i,t);return o}function sr(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function ir(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function or(e,t,n,r,s,i,o){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,u=e.eventRange.def,f=e.eventRange.instance;null==c&&(c=!1!==r),null==d&&(d=!1!==s);let h=f.range.start,g=f.range.end,p=i||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,A=Ee(h).valueOf()===Ee(p).valueOf(),v=Ee(pe(g,-1)).valueOf()===Ee(pe(m,-1)).valueOf();return c&&!u.allDay&&(A||v)?(p=A?h:p,m=v?g:m,d&&u.hasEnd?a.formatRange(p,m,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:o?null:f.forcedEndTzo}):a.format(p,t,{forcedTzo:i?null:f.forcedStartTzo})):""}function ar(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Kt(t,r.start)}}function lr(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 cr(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function dr(e,t){let{def:n,instance:r}=e.eventRange,{url:s}=n;if(s)return{href:s};let{emitter:i,options:o}=t,{eventInteractive:a}=o;return null==a&&(a=n.interactive,null==a&&(a=Boolean(i.hasHandlers("eventClick")))),a?B((e=>{i.trigger("eventClick",{el:e.target,event:new Vn(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const ur={start:ct,end:ct,allDay:Boolean};function fr(e,t,n){let r=function(e,t){let{refined:n,extra:r}=lt(e,ur),s=n.start?t.createMarkerMeta(n.start):null,i=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;null==o&&(o=s&&s.isTimeUnspecified&&(!i||i.isTimeUnspecified));return Object.assign({range:{start:s?s.marker:null,end:i?i.marker:null},allDay:o},r)}(e,t),{range:s}=r;if(!s.start)return null;if(!s.end){if(null==n)return null;s.end=t.add(s.start,n)}return r}function hr(e,t){return Jt(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}(e,t)}function gr(e,t,n){return Object.assign(Object.assign({},pr(e,t,n)),{timeZone:t.timeZone})}function pr(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 mr(e,t,n){let r=!1,s=function(e){r||(r=!0,t(e))},i=function(e){r||(r=!0,n(e))},o=e(s,i);o&&"function"==typeof o.then&&o.then(s,i)}class Ar extends Error{constructor(e,t){super(e),this.response=t}}function vr(e,t,n){const r={method:e=e.toUpperCase()};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 Ar("Failure parsing JSON",e)}));throw new Ar("Request failed",e)}))}let br;function yr(){return null==br&&(br=function(){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").offsetHeight>0;return document.body.removeChild(e),t}()),br}class Er extends Ht{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{xt((()=>{this.setState({forPrint:!0})}))},this.handleAfterPrint=()=>{xt((()=>{this.setState({forPrint:!1})}))}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,r=n||"auto"===t.height||"auto"===t.contentHeight,s=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen",`fc-direction-${t.direction}`,e.theme.getClass("root")];return yr()||i.push("fc-liquid-hack"),e.children(i,s,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 Dr{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Cr(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function wr(e){return{[e.component.uid]:e}}const Sr={};class kr extends e{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),s=t.dateEnv.add(r,K(1,e.unit)).valueOf()-n.valueOf();return s=Math.min(864e5,s),{state:{nowDate:r,todayRange:Mr(r)},waitMs:s}}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 Mr(e){let t=Ee(e);return{start:t,end:ge(t,1)}}kr.contextType=Bt;class Tr{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;t=t||"day",n=this.getCurrentData().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:s}=this.getCurrentData(),i=[].concat(s.header?s.header.viewsWithButtons:[],s.footer?s.footer.viewsWithButtons:[]);for(let e in r)i.push(e);for(t=0;t<i.length;t+=1)if(n=r[i[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=K(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),Xe(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),Xe(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(),s=fr(n,r.dateEnv,K({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),Qn(s,null,r))}unselect(e){let t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))}addEvent(e,t){if(e instanceof Vn){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:An({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof Gn)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=pt(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 s=fn(e,n,r,!1);if(s){let e=new Vn(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:An(s)}),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:Yn(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let s in n){let i=n[s];if(i.publicId===e){if(i.recurringDef)return new Vn(t,i,null);for(let e in r){let n=r[e];if(n.defId===i.defId)return new Vn(t,i,n)}}}return null}getEvents(){let e=this.getCurrentData();return Zn(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 Gn(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 Gn(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof Gn)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=xn(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Gn(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=K(e);t&&this.trigger("_scrollRequest",{time:t})}}function xr(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Ir(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 Rr(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function Nr(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function Br(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function Or(e,t){return{left:e.left-t.left,top:e.top-t.top}}const Ur={defs:{},instances:{}};class Hr{constructor(){this.getKeysForEventDefs=Ue(this._getKeysForEventDefs),this.splitDateSelection=Ue(this._splitDateSpan),this.splitEventStore=Ue(this._splitEventStore),this.splitIndividualUi=Ue(this._splitIndividualUi),this.splitEventDrag=Ue(this._splitInteraction),this.splitEventResize=Ue(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,n),i=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),a=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=ht(t,((e,t)=>this.eventUiBuilders[t]||Ue(zr)));for(let n in t){let c=t[n],d=i[n]||Ur,u=this.eventUiBuilders[n];l[n]={businessHours:c.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:d,eventUiBases:u(e.eventUiBases[""],c.ui,s[n]),eventSelection:d.instances[e.eventSelection]?e.eventSelection:"",eventDrag:o[n]||null,eventResize:a[n]||null}}return l}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return ht(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,s={};for(let e in n)for(let r of t[e])s[r]||(s[r]={defs:{},instances:{}}),s[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])s[r]&&(s[r].instances[e]=n)}return s}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let s of t[r])n[s]||(n[s]={}),n[s][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),s=this._splitEventStore(e.mutatedEvents,r),i=r=>{t[r]||(t[r]={affectedEvents:n[r]||Ur,mutatedEvents:s[r]||Ur,isEvent:e.isEvent})};for(let e in n)i(e);for(let e in s)i(e)}return t}}function zr(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let s={"":kn(r)};return n&&Object.assign(s,n),s}function jr(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&(!r.activeRange||!Kt(r.activeRange,e))),isOther:Boolean(r&&!Kt(r.currentRange,e)),isToday:Boolean(t&&Kt(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Qr(e,t){let n=["fc-day",`fc-day-${fe[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 _r(e,t){let n=["fc-slot",`fc-slot-${fe[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 Pr=Xe({year:"numeric",month:"long",day:"numeric"}),Fr=Xe({week:"long"});function Lr(e,t,n="day",r=!0){const{dateEnv:s,options:i,calendarApi:o}=e;let a=s.format(t,"week"===n?Fr:Pr);if(i.navLinks){let e=s.toDate(t);const l=e=>{let r="day"===n?i.navLinkDayClick:"week"===n?i.navLinkWeekClick:null;"function"==typeof r?r.call(o,s.toDate(t),e):("string"==typeof r&&(n=r),o.zoomTo(t,n))};return Object.assign({title:Y(i.navLinkHint,[a,e],a),"data-navlink":""},r?N(l):{onClick:l})}return{"aria-label":a}}let Wr,Gr=null;function Vr(){return null===Gr&&(Gr=function(){let e=document.createElement("div");D(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.getBoundingClientRect().left>e.getBoundingClientRect().left;return m(e),t}()),Gr}function Yr(){return Wr||(Wr=function(){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=Zr(e);return document.body.removeChild(e),t}()),Wr}function Zr(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function qr(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,s=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,a=Zr(e),l=a.y-r-s,c={borderLeft:r,borderRight:s,borderTop:i,borderBottom:o,scrollbarBottom:a.x-i-o,scrollbarLeft:0,scrollbarRight:0};return Vr()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function Jr(e,t=!1,n){let r=n?e.getBoundingClientRect():$r(e),s=qr(e,t),i={left:r.left+s.borderLeft+s.scrollbarLeft,right:r.right-s.borderRight-s.scrollbarRight,top:r.top+s.borderTop,bottom:r.bottom-s.borderBottom-s.scrollbarBottom};return t&&(i.left+=s.paddingLeft,i.right-=s.paddingRight,i.top+=s.paddingTop,i.bottom-=s.paddingBottom),i}function $r(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 Xr(e){let t=[];for(;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 Kr{constructor(e,t,n,r){this.els=t;let s=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(s.left),r&&this.buildElVerticals(s.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let s=r.getBoundingClientRect();t.push(s.left-e),n.push(s.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let s=r.getBoundingClientRect();t.push(s.top-e),n.push(s.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,s=n.length;for(t=0;t<s;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,s=n.length;for(t=0;t<s;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 es(this.tops||[],e.tops||[])&&es(this.bottoms||[],e.bottoms||[])&&es(this.lefts||[],e.lefts||[])&&es(this.rights||[],e.rights||[])}}function es(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 ts{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class ns extends ts{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class rs extends ts{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ss extends Ht{constructor(){super(...arguments),this.uid=U()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!A(e,".fc-event-mirror")}isValidDateDownEl(e){return!(A(e,".fc-event:not(.fc-bg-event)")||A(e,".fc-more-link")||A(e,"a[data-navlink]")||A(e,".fc-popover"))}}class is{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:cs(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,s=t.span;r.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:r.start,end:s.start}},n),r.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:r.end}},n)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(ds(r,t.level,t.levelCoord),ds(n,t.level,[e])):ds(n[t.level],t.lateral,e),this.stackCnts[as(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:s}=this,i=t.length,o=0,a=-1,l=-1,c=null,d=0;for(let u=0;u<i;u+=1){const i=t[u];if(!r&&i>=o+this.getEntryThickness(e))break;let f,h=n[u],g=us(h,e.span.start,os),p=g[0]+g[1];for(;(f=h[p])&&f.span.start<e.span.end;){let e=i+this.getEntryThickness(f);e>o&&(o=e,c=f,a=u,l=p),e===o&&(d=Math.max(d,s[as(f)]+1)),p+=1}}let u=0;if(c)for(u=a+1;u<i&&t[u]<o;)u+=1;let f=-1;return u<i&&t[u]===o&&(f=us(n[u],e.span.end,os)[0]),{touchingLevel:a,touchingLateral:l,touchingEntry:c,stackCnt:d,levelCoord:o,level:u,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let s=0;s<n;s+=1){let n=e[s],i=t[s];for(let e of n)r.push(Object.assign(Object.assign({},e),{thickness:this.getEntryThickness(e),levelCoord:i}))}return r}}function os(e){return e.span.end}function as(e){return e.index+":"+e.span.start}function ls(e){let t=[];for(let s of e){let e=[],i={span:s.span,entries:[s]};for(let s of t)cs(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:(n=s.span,r=i.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(s);e.push(i),t=e}var n,r;return t}function cs(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 ds(e,t,n){e.splice(t,0,n)}function us(e,t,n){let r=0,s=e.length;if(!s||t<n(e[r]))return[0,0];if(t>n(e[s-1]))return[s,0];for(;r<s;){let i=Math.floor(r+(s-r)/2),o=n(e[i]);if(t<o)s=i;else{if(!(t>o))return[i,1];r=i+1}}return[r,0]}class fs{constructor(e,t){this.emitter=new Hn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const hs={},gs={startTime:K,duration:K,create:Boolean,sourceId:String};function ps(e){let{refined:t,extra:n}=lt(e,gs);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}}function ms(e,t){return Xe(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}const As="fc-col-header-cell";function vs(e){return e.text}class bs extends Ht{render(){let{dateEnv:e,options:n,theme:r,viewApi:s}=this.context,{props:i}=this,{date:o,dateProfile:a}=i,l=jr(o,i.todayRange,null,a),c=[As].concat(Qr(l,r)),d=e.format(o,i.dayHeaderFormat),u=!l.isDisabled&&i.colCnt>1?Lr(this.context,o):{},f=e.toDate(o);e.namedTimeZoneImpl&&(f=pe(f,36e5));let h=Object.assign(Object.assign(Object.assign({date:f,view:s},i.extraRenderProps),{text:d}),l);return t(Lt,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:i.colSpan,"data-date":l.isDisabled?void 0:Re(o)},i.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:vs,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(e=>t("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&t(e,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",i.isSticky&&"fc-sticky"]}))))}}const ys=Xe({weekday:"long"});class Es extends Ht{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:s,options:i}=this.context,o=ge(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(o,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:o},a),{view:s}),e.extraRenderProps),{text:l});return t(Lt,{elTag:"th",elClasses:[As,...Qr(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:vs,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(r=>t("div",{className:"fc-scrollgrid-sync-inner"},t(r,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(o,ys)}}))))}}class Ds extends Ht{constructor(){super(...arguments),this.createDayHeaderFormatter=Ue(Cs)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:s,renderIntro:i}=this.props,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,s,n.length);return t(kr,{unit:"day"},((e,a)=>t("tr",{role:"row"},i&&i("day"),n.map((e=>s?t(bs,{key:e.toISOString(),date:e,dateProfile:r,todayRange:a,colCnt:n.length,dayHeaderFormat:o}):t(Es,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:o}))))))}}function Cs(e,t,n){return e||ms(t,n)}class ws{constructor(e,t){let n=e.start,{end:r}=e,s=[],i=[],o=-1;for(;n<r;)t.isHiddenDay(n)?s.push(o+.5):(o+=1,s.push(o),i.push(n)),n=ge(n,1);this.dates=i,this.indices=s,this.cnt=i.length}sliceRange(e){let t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(ge(e.end,-1)),r=Math.max(0,t),s=Math.min(this.cnt-1,n);return r=Math.ceil(r),s=Math.floor(s),r<=s?{firstIndex:r,lastIndex:s,isStart:t===r,isEnd:n===s}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(Ae(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}}class Ss{constructor(e,t){let n,r,s,{dates:i}=e;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length&&i[n].getUTCDay()!==r;n+=1);s=Math.ceil(i.length/n)}else s=1,n=i.length;this.rowCnt=s,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCnt;t+=1){let n=[];for(let e=0;e<this.colCnt;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}}buildHeaderDates(){let e=[];for(let t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e}sliceRange(e){let{colCnt:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){let{firstIndex:e,lastIndex:s}=n,i=e;for(;i<=s;){let o=Math.floor(i/t),a=Math.min((o+1)*t,s+1);r.push({row:o,firstCol:i%t,lastCol:(a-1)%t,isStart:n.isStart&&i===e,isEnd:n.isEnd&&a-1===s}),i=a}}return r}}class ks{constructor(){this.sliceBusinessHours=Ue(this._sliceBusinessHours),this.sliceDateSelection=Ue(this._sliceDateSpan),this.sliceEventStore=Ue(this._sliceEventStore),this.sliceEventDrag=Ue(this._sliceInteraction),this.sliceEventResize=Ue(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...s){let{eventUiBases:i}=e,o=this.sliceEventStore(e.eventStore,i,t,n,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,i,r,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...s),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,i,t,n,...s),eventResize:this.sliceEventResize(e.eventResize,i,t,n,...s),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...s){return this._sliceDateSpan({range:{start:e,end:pe(e,1)},allDay:!1},t,n,{},r,...s)}_sliceBusinessHours(e,t,n,r,...s){return e?this._sliceEventStore(an(e,Ms(t,Boolean(n)),r),{},t,n,...s).bg:[]}_sliceEventStore(e,t,n,r,...s){if(e){let i=qn(e,t,Ms(n,Boolean(r)),r);return{bg:this.sliceEventRanges(i.bg,s),fg:this.sliceEventRanges(i.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...s){if(!e)return null;let i=qn(e.mutatedEvents,t,Ms(n,Boolean(r)),r);return{segs:this.sliceEventRanges(i.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,s,...i){if(!e)return[];let o=Ms(t,Boolean(n)),a=qt(e.range,o);if(a){let t=function(e,t,n){let r=hn({editable:!1},n),s=pn(r.refined,r.extra,"",e.allDay,!0,n);return{def:s,ui:er(s,t),instance:on(s.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:a}),r,s),n=this.sliceRange(e.range,...i);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:ge(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}function Ms(e,t){let n=e.activeRange;return t?n:{start:pe(n.start,e.slotMinTime.milliseconds),end:pe(n.end,e.slotMaxTime.milliseconds-864e5)}}function Ts(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!Xt(t.validRange,r[e].range))return!1;return Is({eventDrag:e},n)}function xs(e,t,n){return!!Xt(t.validRange,e.range)&&Is({dateSelection:e},n)}function Is(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Rs)(r,t)}function Rs(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let s=t.getCurrentData(),i=e.eventDrag,o=i.mutatedEvents,a=o.defs,l=o.instances,c=Kn(a,i.isEvent?e.eventUiBases:{"":s.selectionConfig});r&&(c=ht(c,r));let d=(g=e.eventStore,p=i.affectedEvents.instances,{defs:g.defs,instances:ft(g.instances,(e=>!p[e.instanceId]))}),u=d.defs,f=d.instances,h=Kn(u,e.eventUiBases);var g,p;for(let r in l){let o=l[r],g=o.range,p=c[o.defId],m=a[o.defId];if(!Ns(p.constraints,g,d,e.businessHours,t))return!1;let{eventOverlap:A}=t.options,v="function"==typeof A?A:null;for(let e in f){let n=f[e];if($t(g,n.range)){if(!1===h[n.defId].overlap&&i.isEvent)return!1;if(!1===p.overlap)return!1;if(v&&!v(new Vn(t,u[n.defId],n),new Vn(t,m,o)))return!1}}let b=s.eventStore;for(let e of p.allows){let s,i=Object.assign(Object.assign({},n),{range:o.range,allDay:m.allDay}),a=b.defs[m.defId],l=b.instances[r];if(s=a?new Vn(t,a,l):new Vn(t,m),!e(_n(i,t),s))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let s=e.eventStore,i=s.defs,o=s.instances,a=e.dateSelection,l=a.range,{selectionConfig:c}=t.getCurrentData();r&&(c=r(c));if(!Ns(c.constraints,l,s,e.businessHours,t))return!1;let{selectOverlap:d}=t.options,u="function"==typeof d?d:null;for(let e in o){let n=o[e];if($t(l,n.range)){if(!1===c.overlap)return!1;if(u&&!u(new Vn(t,i[n.defId],n),null))return!1}}for(let e of c.allows){if(!e(_n(Object.assign(Object.assign({},n),a),t),null))return!1}return!0}(e,t,n,r))}function Ns(e,t,n,r,s){for(let i of e)if(!Us(Bs(i,t,n,r,s),t))return!1;return!0}function Bs(e,t,n,r,s){return"businessHours"===e?Os(an(r,t,s)):"string"==typeof e?Os(En(n,(t=>t.groupId===e))):"object"==typeof e&&e?Os(an(e,t,s)):[]}function Os(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function Us(e,t){for(let n of e)if(Xt(n,t))return!0;return!1}const Hs=/^(visible|hidden)$/;class zs extends Ht{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,zt(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,s=n&&r,i=["fc-scroller"];return n&&(r?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),t("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:s&&-(e.overcomeLeft||0)||"",right:s&&-(e.overcomeRight||0)||"",bottom:s&&-(e.overcomeBottom||0)||"",marginLeft:!s&&-(e.overcomeLeft||0)||"",marginRight:!s&&-(e.overcomeRight||0)||"",marginBottom:!s&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Hs.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().width>t)return!0}return!1}needsYScrolling(){if(Hs.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().height>t)return!0}return!1}getXScrollbarWidth(){return Hs.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Hs.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class js{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,s=!1,i=!1;null!==e?(s=t in r,r[t]=e,n[t]=(n[t]||0)+1,i=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],s=!0)),this.masterCallback&&(s&&this.masterCallback(null,String(t)),i&&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 Et(this.currentMap,e,t,n)}getAll(){return pt(this.currentMap)}}function Qs(e){let t=b(e,".fc-scrollgrid-shrink"),n=0;for(let e of t)n=Math.max(n,J(e));return Math.ceil(n)}function _s(e,t){return e.liquid&&t.liquid}function Ps(e,t){return null!=t.maxHeight||_s(e,t)}function Fs(e,n,r,s){let{expandRows:i}=r;return"function"==typeof n.content?n.content(r):t("table",{role:"presentation",className:[n.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:r.tableMinWidth,width:r.clientWidth,height:i?r.clientHeight:""}},r.tableColGroupNode,t(s?"thead":"tbody",{role:"presentation"},"function"==typeof n.rowContent?n.rowContent(r):n.rowContent))}function Ls(e,t){return ue(e,t,mt)}function Ws(e,n){let r=[];for(let s of e){let e=s.span||1;for(let i=0;i<e;i+=1)r.push(t("col",{style:{width:"shrink"===s.width?Gs(n):s.width||"",minWidth:s.minWidth||""}}))}return t("colgroup",{},...r)}function Gs(e){return null==e?4:e}function Vs(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function Ys(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function Zs(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 qs(e){return t("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Js(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function $s(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}class Xs extends Ht{constructor(){super(...arguments),this.processCols=Ue((e=>e),Ls),this.renderMicroColGroup=Ue(Ws),this.scrollerRefs=new js,this.scrollerElRefs=new js(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,s=e.sections||[],i=this.processCols(e.cols),o=this.renderMicroColGroup(i,n.shrinkWidth),a=Ys(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let l,c=s.length,d=0,u=[],f=[],h=[];for(;d<c&&"header"===(l=s[d]).type;)u.push(this.renderSection(l,o,!0)),d+=1;for(;d<c&&"body"===(l=s[d]).type;)f.push(this.renderSection(l,o,!1)),d+=1;for(;d<c&&"footer"===(l=s[d]).type;)h.push(this.renderSection(l,o,!0)),d+=1;let g=!yr();const p={role:"rowgroup"};return t("table",{role:"grid",className:a.join(" "),style:{height:e.height}},Boolean(!g&&u.length)&&t("thead",p,...u),Boolean(!g&&f.length)&&t("tbody",p,...f),Boolean(!g&&h.length)&&t("tfoot",p,...h),g&&t("tbody",p,...u,...f,...h))}renderSection(e,n,r){return"outerContent"in e?t(s,{key:e.key},e.outerContent):t("tr",{key:e.key,role:"presentation",className:Zs(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,s){if("outerContent"in r)return r.outerContent;let{props:i}=this,{forceYScrollbars:o,scrollerClientWidths:a,scrollerClientHeights:l}=this.state,c=Ps(i,e),d=_s(i,e),u=i.liquid?o?"scroll":c?"auto":"hidden":"visible",f=e.key,h=Fs(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===a[f]?null:a[f],clientHeight:void 0!==l[f]?l[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},s);return t(s?"th":"td",{ref:r.elRef,role:"presentation"},t("div",{className:"fc-scroller-harness"+(d?" fc-scroller-harness-liquid":"")},t(zs,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:u,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&zt(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Vs(this.props.cols)?Qs(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Yr(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,s={},i={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let o=t.key,a=n.currentMap[o];if(a){let t=a.parentNode;s[o]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),i[o]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:s,scrollerClientHeights:i}}}Xs.addStateEquality({scrollerClientWidths:mt,scrollerClientHeights:mt});class Ks extends Ht{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&$n(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:s}=e,{eventRange:i}=s,{ui:o}=i,a={event:new Vn(n,i.def,i.instance),view:n.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&rr(s,n),isStartResizable:!e.disableResizing&&sr(s,n),isEndResizable:!e.disableResizing&&ir(s),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(s.isStart),isEnd:Boolean(s.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 t(Lt,Object.assign({},e,{elRef:this.handleEl,elClasses:[...lr(a),...s.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&$n(this.el,this.props.seg)}}class ei extends Ht{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:o}=i.eventRange,a=or(i,r.eventTimeFormat||e.defaultTimeFormat,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return t(Ks,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:dr(i,n),defaultGenerator:ti,timeText:a}),((e,n)=>t(s,null,t(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:n.textColor}}),Boolean(n.isStartResizable)&&t("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(n.isEndResizable)&&t("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function ti(e){return t("div",{className:"fc-event-main-frame"},e.timeText&&t("div",{className:"fc-event-time"},e.timeText),t("div",{className:"fc-event-title-container"},t("div",{className:"fc-event-title fc-sticky"},e.event.title||t(s,null," "))))}const ni=e=>t(Bt.Consumer,null,(n=>{let{options:r}=n,s={isAxis:e.isAxis,date:n.dateEnv.toDate(e.date),view:n.viewApi};return t(Lt,Object.assign({},e,{elTag:e.elTag||"div",renderProps:s,generatorName:"nowIndicatorContent",customGenerator:r.nowIndicatorContent,classNameGenerator:r.nowIndicatorClassNames,didMount:r.nowIndicatorDidMount,willUnmount:r.nowIndicatorWillUnmount}))})),ri=Xe({day:"numeric"});class si extends Ht{constructor(){super(...arguments),this.refineRenderProps=He(oi)}render(){let{props:e,context:n}=this,{options:r}=n,s=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return t(Lt,Object.assign({},e,{elClasses:[...Qr(s,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),s.isDisabled?{}:{"data-date":Re(e.date)}),renderProps:s,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:s.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function ii(e){return Boolean(e.dayCellContent||Qt("dayCellContent",e))}function oi(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:s}=e,i=jr(t,e.todayRange,null,r),o=e.showDayNumber?n.format(t,s?e.monthStartFormat:ri):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},i),{isMonthStart:s,dayNumberText:o}),e.extraRenderProps)}class ai extends Ht{render(){let{props:e}=this,{seg:n}=e;return t(Ks,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:li,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function li(e){let{title:n}=e.event;return n&&t("div",{className:"fc-event-title"},e.event.title)}function ci(e){return t("div",{className:`fc-${e}`})}const di=e=>t(Bt.Consumer,null,(n=>{let{dateEnv:r,options:s}=n,{date:i}=e,o=s.weekNumberFormat||e.defaultFormat,a={num:r.computeWeekNumber(i),text:r.format(i,o),date:i};return t(Lt,Object.assign({},e,{renderProps:a,generatorName:"weekNumberContent",customGenerator:s.weekNumberContent,defaultGenerator:ui,classNameGenerator:s.weekNumberClassNames,didMount:s.weekNumberDidMount,willUnmount:s.weekNumberWillUnmount}))}));function ui(e){return e.text}class fi extends Ht{constructor(){super(...arguments),this.state={titleId:k()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&zt(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=w(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:n}=this.context,{props:r,state:s}=this,i=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return a(t("div",Object.assign({},r.extraAttrs,{id:r.id,className:i.join(" "),"aria-labelledby":s.titleId,ref:this.handleRootEl}),t("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},t("span",{className:"fc-popover-title",id:s.titleId},r.title),t("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),t("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,s=function(e){let t=Xr(e),n=e.getBoundingClientRect();for(let e of t){let t=Ir(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(s){let i=r.getBoundingClientRect(),o=n?A(t,".fc-scrollgrid").getBoundingClientRect().top:s.top,a=e?s.right-i.width:s.left;o=Math.max(o,10),a=Math.min(a,document.documentElement.clientWidth-10-i.width),a=Math.max(a,10);let l=r.offsetParent.getBoundingClientRect();D(r,{top:o-l.top,left:a-l.left})}}}class hi extends ss{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:s,todayRange:i,dateProfile:o}=r,a=n.format(s,e.dayPopoverFormat);return t(si,{elRef:this.handleRootEl,date:s,dateProfile:o,todayRange:i},((n,s,i)=>t(fi,{elRef:i.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(i.className||[]),extraAttrs:i,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},ii(e)&&t(n,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children)))}queryHit(e,t,n,r){let{rootEl:s,props:i}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:i.dateProfile,dateSpan:Object.assign({allDay:!i.forceTimed,range:{start:i.startDate,end:i.endDate}},i.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null}}class gi extends Ht{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:k()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&zt(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,s=mi(t).start;function i(e){let{def:t,instance:r,range:s}=e.eventRange;return{event:new Vn(n,t,r),start:n.dateEnv.toDate(s.start),end:n.dateEnv.toDate(s.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:s,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(i),hiddenSegs:t.hiddenSegs.map(i),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(s,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return t(Bt.Consumer,null,(r=>{let{viewApi:i,options:o,calendarApi:a}=r,{moreLinkText:l}=o,{moreCnt:c}=e,d=mi(e),u="function"==typeof l?l.call(a,c):`+${c} ${l}`,f=Y(o.moreLinkHint,[c],u),h={num:c,shortText:`+${c}`,text:u,view:i};return t(s,null,Boolean(e.moreCnt)&&t(Lt,{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),N(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||pi,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),n.isPopoverOpen&&t(hi,{id:n.popoverId,startDate:d.start,endDate:d.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=A(this.linkEl,".fc-view-harness"))}}function pi(e){return e.text}function mi(e){if(e.allDayDate)return{start:e.allDayDate,end:ge(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Ai(t),end:(n=t,n.reduce(bi).eventRange.range.end)};var n}function Ai(e){return e.reduce(vi).eventRange.range.start}function vi(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function bi(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class yi{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 Ei extends yi{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)}}export{T as $,He as A,Ht as B,Lt as C,p as D,mt as E,Hn as F,Kt as G,bn as H,Rn as I,On as J,at as K,Ke as L,tt as M,nt as N,rt as O,ot as P,Mt as Q,sn as R,Sn as S,Tt as T,jn as U,Bt as V,zt as W,Dr as X,Xn as Y,A as Z,Vn as _,ht as a,M as a$,x as a0,Ut as a1,Ot as a2,k as a3,Cr as a4,Sr as a5,kr as a6,Tr as a7,xt as a8,Er as a9,ze as aA,je as aB,Ir as aC,xr as aD,Nr as aE,Br as aF,Or as aG,Rr as aH,bt as aI,Et as aJ,b as aK,y as aL,m as aM,D as aN,v as aO,w as aP,Dn as aQ,yr as aR,yn as aS,vn as aT,An as aU,kn as aV,Hr as aW,Qr as aX,jr as aY,_r as aZ,Lr as a_,Ft as aa,u as ab,C as ac,qn as ad,Ar as ae,Rt as af,lt as ag,on as ah,pn as ai,hn as aj,V as ak,q as al,F as am,L as an,G as ao,j as ap,Q as aq,_ as ar,P as as,Z as at,z as au,H as av,tn as aw,nn as ax,rn as ay,Vt as b,Ws as b$,R as b0,Jr as b1,qr as b2,Xr as b3,$r as b4,Jt as b5,$t as b6,Xt as b7,Kr as b8,ts as b9,os as bA,us as bB,ls as bC,cs as bD,wr as bE,fs as bF,hs as bG,ps as bH,Ds as bI,ms as bJ,bs as bK,Es as bL,ws as bM,Jn as bN,or as bO,tr as bP,ar as bQ,cr as bR,dr as bS,Ss as bT,ks as bU,Fn as bV,Rs as bW,Ts as bX,xs as bY,Xs as bZ,Vs as b_,ns as ba,rs as bb,ss as bc,hr as bd,pe as be,he as bf,me as bg,be as bh,ve as bi,Ae as bj,Te as bk,te as bl,se as bm,ne as bn,oe as bo,ae as bp,le as bq,ce as br,Be as bs,Re as bt,Ie as bu,Ne as bv,kt as bx,is as by,as as bz,de as c,Ys as c0,Zs as c1,_s as c2,Ps as c3,Fs as c4,Qs as c5,Gs as c6,Ls as c7,qs as c8,$s as c9,Js as ca,zs as cb,Yr as cc,js as cd,Vr as ce,Nt as cf,ei as cg,ni as ch,si as ci,ii as cj,Ks as ck,ci as cl,ai as cm,di as cn,gi as co,Ai as cp,Gt as cq,Qn as cr,Pn as cs,d as ct,_t as cu,Ei as cv,K as d,et as e,gt as f,U as g,ft as h,ue as i,In as j,Y as k,gr as l,ut as m,ct as n,qt as o,xn as p,Ee as q,vr as r,re as s,ge as t,mr as u,pt as v,Zn as w,Xe as x,ye as y,Ue as z};
2
+ //# sourceMappingURL=internal-common.js.map