@fullcalendar/core 7.0.0-beta.5 → 7.0.0-beta.6

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 (174) hide show
  1. package/cjs/index.cjs +1 -1
  2. package/cjs/internal-common.cjs +18 -7
  3. package/cjs/internal.cjs +1 -0
  4. package/esm/index.js +1 -1
  5. package/esm/internal-common.d.ts +14 -3
  6. package/esm/internal-common.js +18 -8
  7. package/esm/internal.d.ts +1 -1
  8. package/esm/internal.js +1 -1
  9. package/global/locales/af.js +1 -1
  10. package/global/locales/af.min.js +1 -1
  11. package/global/locales/ar-dz.js +1 -1
  12. package/global/locales/ar-dz.min.js +1 -1
  13. package/global/locales/ar-kw.js +1 -1
  14. package/global/locales/ar-kw.min.js +1 -1
  15. package/global/locales/ar-ly.js +1 -1
  16. package/global/locales/ar-ly.min.js +1 -1
  17. package/global/locales/ar-ma.js +1 -1
  18. package/global/locales/ar-ma.min.js +1 -1
  19. package/global/locales/ar-sa.js +1 -1
  20. package/global/locales/ar-sa.min.js +1 -1
  21. package/global/locales/ar-tn.js +1 -1
  22. package/global/locales/ar-tn.min.js +1 -1
  23. package/global/locales/ar.js +1 -1
  24. package/global/locales/ar.min.js +1 -1
  25. package/global/locales/az.js +1 -1
  26. package/global/locales/az.min.js +1 -1
  27. package/global/locales/bg.js +1 -1
  28. package/global/locales/bg.min.js +1 -1
  29. package/global/locales/bn.js +1 -1
  30. package/global/locales/bn.min.js +1 -1
  31. package/global/locales/bs.js +1 -1
  32. package/global/locales/bs.min.js +1 -1
  33. package/global/locales/ca.js +1 -1
  34. package/global/locales/ca.min.js +1 -1
  35. package/global/locales/cs.js +1 -1
  36. package/global/locales/cs.min.js +1 -1
  37. package/global/locales/cy.js +1 -1
  38. package/global/locales/cy.min.js +1 -1
  39. package/global/locales/da.js +1 -1
  40. package/global/locales/da.min.js +1 -1
  41. package/global/locales/de-at.js +1 -1
  42. package/global/locales/de-at.min.js +1 -1
  43. package/global/locales/de.js +1 -1
  44. package/global/locales/de.min.js +1 -1
  45. package/global/locales/el.js +1 -1
  46. package/global/locales/el.min.js +1 -1
  47. package/global/locales/en-au.js +1 -1
  48. package/global/locales/en-au.min.js +1 -1
  49. package/global/locales/en-gb.js +1 -1
  50. package/global/locales/en-gb.min.js +1 -1
  51. package/global/locales/en-nz.js +1 -1
  52. package/global/locales/en-nz.min.js +1 -1
  53. package/global/locales/eo.js +1 -1
  54. package/global/locales/eo.min.js +1 -1
  55. package/global/locales/es-us.js +1 -1
  56. package/global/locales/es-us.min.js +1 -1
  57. package/global/locales/es.js +1 -1
  58. package/global/locales/es.min.js +1 -1
  59. package/global/locales/et.js +1 -1
  60. package/global/locales/et.min.js +1 -1
  61. package/global/locales/eu.js +1 -1
  62. package/global/locales/eu.min.js +1 -1
  63. package/global/locales/fa.js +1 -1
  64. package/global/locales/fa.min.js +1 -1
  65. package/global/locales/fi.js +1 -1
  66. package/global/locales/fi.min.js +1 -1
  67. package/global/locales/fr-ca.js +1 -1
  68. package/global/locales/fr-ca.min.js +1 -1
  69. package/global/locales/fr-ch.js +1 -1
  70. package/global/locales/fr-ch.min.js +1 -1
  71. package/global/locales/fr.js +1 -1
  72. package/global/locales/fr.min.js +1 -1
  73. package/global/locales/gl.js +1 -1
  74. package/global/locales/gl.min.js +1 -1
  75. package/global/locales/he.js +1 -1
  76. package/global/locales/he.min.js +1 -1
  77. package/global/locales/hi.js +1 -1
  78. package/global/locales/hi.min.js +1 -1
  79. package/global/locales/hr.js +1 -1
  80. package/global/locales/hr.min.js +1 -1
  81. package/global/locales/hu.js +1 -1
  82. package/global/locales/hu.min.js +1 -1
  83. package/global/locales/hy-am.js +1 -1
  84. package/global/locales/hy-am.min.js +1 -1
  85. package/global/locales/id.js +1 -1
  86. package/global/locales/id.min.js +1 -1
  87. package/global/locales/is.js +1 -1
  88. package/global/locales/is.min.js +1 -1
  89. package/global/locales/it.js +1 -1
  90. package/global/locales/it.min.js +1 -1
  91. package/global/locales/ja.js +1 -1
  92. package/global/locales/ja.min.js +1 -1
  93. package/global/locales/ka.js +1 -1
  94. package/global/locales/ka.min.js +1 -1
  95. package/global/locales/kk.js +1 -1
  96. package/global/locales/kk.min.js +1 -1
  97. package/global/locales/km.js +1 -1
  98. package/global/locales/km.min.js +1 -1
  99. package/global/locales/ko.js +1 -1
  100. package/global/locales/ko.min.js +1 -1
  101. package/global/locales/ku.js +1 -1
  102. package/global/locales/ku.min.js +1 -1
  103. package/global/locales/lb.js +1 -1
  104. package/global/locales/lb.min.js +1 -1
  105. package/global/locales/lt.js +1 -1
  106. package/global/locales/lt.min.js +1 -1
  107. package/global/locales/lv.js +1 -1
  108. package/global/locales/lv.min.js +1 -1
  109. package/global/locales/mk.js +1 -1
  110. package/global/locales/mk.min.js +1 -1
  111. package/global/locales/ms.js +1 -1
  112. package/global/locales/ms.min.js +1 -1
  113. package/global/locales/nb.js +1 -1
  114. package/global/locales/nb.min.js +1 -1
  115. package/global/locales/ne.js +1 -1
  116. package/global/locales/ne.min.js +1 -1
  117. package/global/locales/nl.js +1 -1
  118. package/global/locales/nl.min.js +1 -1
  119. package/global/locales/nn.js +1 -1
  120. package/global/locales/nn.min.js +1 -1
  121. package/global/locales/pl.js +1 -1
  122. package/global/locales/pl.min.js +1 -1
  123. package/global/locales/pt-br.js +1 -1
  124. package/global/locales/pt-br.min.js +1 -1
  125. package/global/locales/pt.js +1 -1
  126. package/global/locales/pt.min.js +1 -1
  127. package/global/locales/ro.js +1 -1
  128. package/global/locales/ro.min.js +1 -1
  129. package/global/locales/ru.js +1 -1
  130. package/global/locales/ru.min.js +1 -1
  131. package/global/locales/si-lk.js +1 -1
  132. package/global/locales/si-lk.min.js +1 -1
  133. package/global/locales/sk.js +1 -1
  134. package/global/locales/sk.min.js +1 -1
  135. package/global/locales/sl.js +1 -1
  136. package/global/locales/sl.min.js +1 -1
  137. package/global/locales/sm.js +1 -1
  138. package/global/locales/sm.min.js +1 -1
  139. package/global/locales/sq.js +1 -1
  140. package/global/locales/sq.min.js +1 -1
  141. package/global/locales/sr-cyrl.js +1 -1
  142. package/global/locales/sr-cyrl.min.js +1 -1
  143. package/global/locales/sr.js +1 -1
  144. package/global/locales/sr.min.js +1 -1
  145. package/global/locales/sv.js +1 -1
  146. package/global/locales/sv.min.js +1 -1
  147. package/global/locales/ta-in.js +1 -1
  148. package/global/locales/ta-in.min.js +1 -1
  149. package/global/locales/th.js +1 -1
  150. package/global/locales/th.min.js +1 -1
  151. package/global/locales/tr.js +1 -1
  152. package/global/locales/tr.min.js +1 -1
  153. package/global/locales/ug.js +1 -1
  154. package/global/locales/ug.min.js +1 -1
  155. package/global/locales/uk.js +1 -1
  156. package/global/locales/uk.min.js +1 -1
  157. package/global/locales/uz-cy.js +1 -1
  158. package/global/locales/uz-cy.min.js +1 -1
  159. package/global/locales/uz.js +1 -1
  160. package/global/locales/uz.min.js +1 -1
  161. package/global/locales/vi.js +1 -1
  162. package/global/locales/vi.min.js +1 -1
  163. package/global/locales/zh-cn.js +1 -1
  164. package/global/locales/zh-cn.min.js +1 -1
  165. package/global/locales/zh-tw.js +1 -1
  166. package/global/locales/zh-tw.min.js +1 -1
  167. package/global/locales-all.js +1 -1
  168. package/global/locales-all.min.js +1 -1
  169. package/global.js +20 -9
  170. package/global.min.js +2 -2
  171. package/package.json +2 -2
  172. package/skeleton.css +105 -105
  173. package/skeleton.min.css +1 -1
  174. package/skeleton.styles.js +1 -1
package/global.min.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- FullCalendar Core v7.0.0-beta.5
2
+ FullCalendar Core v7.0.0-beta.6
3
3
  Docs & License: https://fullcalendar.io
4
4
  (c) 2025 Adam Shaw
5
5
  */
6
- var FullCalendar=function(e){"use strict";function t(e,t){let n=f(e);return n[2]+=t,h(n)}function n(e,t){let n=f(e);return n[6]+=t,h(n)}function r(e,t){return(t.valueOf()-e.valueOf())/864e5}function i(e,t){let n=a(e),i=a(t);return{years:0,months:0,days:Math.round(r(n,i)),milliseconds:t.valueOf()-i.valueOf()-(e.valueOf()-n.valueOf())}}function s(e,t){let n=o(e,t);return null!==n&&n%7==0?n/7:null}function o(e,t){return g(e)===g(t)?Math.round(r(e,t)):null}function a(e){return h([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function l(e,t,n,i){let s=h([t,0,1+u(t,n,i)]),o=a(e),l=Math.round(r(s,o));return Math.floor(l/7)+1}function u(e,t,n){let r=7+t-n;return-((7+h([e,0,r]).getUTCDay()-t)%7)+r-1}function c(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function d(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 f(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function h(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function p(e){return!isNaN(e.valueOf())}function g(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}let m={};var v,y;function _(e,t){let n,r,i=[],{start:s}=t;for(e.sort(b),n=0;n<e.length;n+=1)r=e[n],r.start>s&&i.push({start:s,end:r.start}),r.end>s&&(s=r.end);return s<t.end&&i.push({start:s,end:t.end}),i}function b(e,t){return e.start.valueOf()-t.start.valueOf()}function E(e,t){let{start:n,end:r}=e,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function D(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 S(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function C(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function w(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function T(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 R(e,t,n,r){let i=T(e,n.calendarSystem);return{date:i,start:i,end:t?T(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}function k(e){return e%1==0}function O(e){return e.replace(/\s+$/,"")}function I(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}v="gregory",y=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return h(e)}markerToArray(e){return f(e)}},m[v]=y;const M=["years","months","days","milliseconds"],x=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function N(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?P(e):"number"==typeof e?P({[t||"milliseconds"]:e}):null}function P(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 H(e){return A(e)/864e5}function A(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function U(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 j(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",B(t,!0)))),r}function L(e){return e.toISOString().replace(/T.*$/,"")}function B(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+I(i,2)}:${I(s,2)}`:`GMT${n}${i}${s?":"+I(s,2):""}`}function W(e){let t="";for(const n of e)t+=n.value;return t}const V=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function z(e){let t=V.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(p(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 F{constructor(e){var t;let n=this.timeZone=e.timeZone,r="local"!==n&&"UTC"!==n;e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new m[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=e.weekText,this.weekTextShort=null!==(t=e.weekTextShort)&&void 0!==t?t:e.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()):h(c(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=h(e)),null!==t&&p(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=z(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 g(e)===g(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 g(e)===g(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=s(e,t),null!==n?{unit:"week",value:n}:(n=o(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),k(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),k(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),k(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/(H(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return H(e)/30}(n):n.days&&(r=o(e,t),null!==r)?r/H(n):(t.valueOf()-e.valueOf())/A(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?a(e):"hour"===t?function(e){return h([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return h([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return h([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(),i=l(e,r,t,n);if(i<1)return l(e,r-1,t,n);let s=l(e,r+1,t,n);return s>=1?Math.min(i,s):i}(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,r,i={}){return i.isEndExclusive&&(t=n(t,-1)),r.formatRange({marker:e,timeZoneOffset:null!=i.forcedStartTzo?i.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=i.forcedEndTzo?i.forcedEndTzo:this.offsetForMarker(t)},this,i.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),j(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?h(c(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?h(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-d(f(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(f(e)):null}toDate(e,t){return"local"===this.timeZone?d(f(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(f(e))*60):new Date(e.valueOf()-(t||0))}}class Z{constructor(e){this.cmdStr=e}format(e,t,n){const r=t.cmdFormatter(this.cmdStr,R(e,null,t,n));return"object"==typeof r?[W(r),r]:[r,[{type:"literal",value:r}]]}formatRange(e,t,n,r){const i=n.cmdFormatter(this.cmdStr,R(e,t,n,r));return"object"==typeof i?W(i):i}}class G{constructor(e){this.func=e}format(e,t,n){const r=this.func(R(e,null,t,n));return[r,[{type:"literal",value:r}]]}formatRange(e,t,n,r){return this.func(R(e,t,n,r))}}function Y(e){e.preventDefault()}function q(e,t,n,r){let i=function(e,t){return n=>{let r=n.target.closest(e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}const $=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function X(e){return Object.assign({onClick:e},K(e))}function K(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var J={popoverZ:"fc-nG",isolate:"fc-Yb",borderBoxRoot:"fc-5K",notAllowed:"fc-ja",noScrollbars:"fc-K0",noShrink:"fc-Sj",calendarScreenRoot:"fc-Ed",safeTiles:"fc-gS",calendarPrintRoot:"fc-XH",cursorPointer:"fc-GT",cursorResizeT:"fc-mY",cursorResizeB:"fc-Uq",cursorResizeS:"fc-GP",cursorResizeE:"fc-Ux",cursorColResizer:"fc-Me",hit:"fc-xb",hitX:"fc-gb",hitY:"fc-t3",hitXSkinny:"fc-Yz",selectNone:"fc-TF",borderNone:"fc-3T",borderOnlyT:"fc-e5",borderOnlyB:"fc-Zl",borderOnlyS:"fc-7t",borderOnlyE:"fc-2T",borderlessX:"fc-7F",borderlessY:"fc-D9",borderlessTop:"fc-dA",borderlessBottom:"fc-aP",fakeBorderS:"fc-Tq",flexRow:"fc-b7",flexCol:"fc-ST",grow:"fc-Cm",liquid:"fc-K7",liquidX:"fc-s5",printRoot:"fc-Rb",printHeader:"fc-wC",tight:"fc-Vz",noPadding:"fc-HP",noMargin:"fc-WG",noMarginY:"fc-Rq",noMarginX:"fc-XC",rigid:"fc-BY",crop:"fc-cd",cropNowrap:"fc-CR",noEdgeEffects:"fc-uj",rel:"fc-hA",abs:"fc-Er",start0:"fc-73",fill:"fc-QO",fillTop:"fc-me",fillX:"fc-MX",fillY:"fc-oh",fillStart:"fc-Ge",sticky:"fc-fu",stickyT:"fc-HO",stickyS:"fc-oq",tableHeaderSticky:"fc-yx",contentBox:"fc-OK",offscreen:"fc-xD",alignCenter:"fc-yj",alignStart:"fc-Kj",alignEnd:"fc-fS",inheritTextDecoration:"fc-v8",footerScrollbarSticky:"fc-4G",footerScrollbar:"fc-Bz",breakInsideAvoid:"fc-zI",printSiblingRow:"fc-5H",z0:"fc-Tf",z1:"fc-jM",focusZ2:"fc-YU",internalTimelineSlot:"fc-dZ",internalEvent:"fc-pv",internalEventMirror:"fc-0o",internalEventDraggable:"fc-4f",internalEventSelected:"fc-5y",internalEventResizable:"fc-0D",internalEventResizer:"fc-E4",internalEventResizerStart:"fc-bZ",internalEventResizerEnd:"fc-al",internalBgEvent:"fc-90",internalMoreLink:"fc-zk",internalNavLink:"fc-p2",internalPopover:"fc-Ji",internalView:"fc-3m",internalScroller:"fc-VB"};let Q=0;function ee(){return Q+=1,String(Q)}function te(e){let t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)n=i[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function ne(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=re(e,t,n[r]),i)return i;return 0}function re(e,t,n){return n.func?n.func(e,t):ie(e[n.field],t[n.field])*(n.order||1)}function ie(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 se(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function oe(e,t){return e===t}function ae(e,t){return Array.isArray(e)&&Array.isArray(t)?le(e,t):e===t}function le(e,t,n=oe){if(e===t)return!0;let r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!n(e[r],t[r]))return!1;return!0}const{hasOwnProperty:ue}=Object.prototype;function ce(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function de(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function fe(e){let t=[];for(let n in e)t.push(e[n]);return t}function he(e){let t={};for(let n of e)t[n]=!0;return t}function pe(e,t,n){if(e===t)return!0;for(let n in e)if(ue.call(e,n)&&!(n in t))return!1;for(let r in t)if(ue.call(t,r)&&(!(r in e)||!n(e[r],t[r],r)))return!1;return!0}function ge(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?me(e,t):e===t}function me(e,t){return pe(e,t,oe)}function ve(e,t,n){return pe(e,t,(e,t,r)=>{const i=n[r];return i?i(e,t):e===t})}function ye(e,t){let n=[];for(let r in e)ue.call(e,r)&&(r in t||n.push(r));for(let r in t)ue.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function _e(e,t){return"object"==typeof e&&e&&"object"==typeof t&&t?be(e,t):void 0===t?e:t}function be(e,t){return Object.assign({},e,t)}function Ee(e,t,n){let r,i;return function(...s){if(r){if(!le(r,s)){n&&n(i);let r=e.apply(this,s);t&&t(r,i)||(i=r)}}else i=e.apply(this,s);return r=s,i}}function De(e,t,n){let r,i;return s=>{if(r){if(!me(r,s)){n&&n(i);let r=e.call(this,s);t&&t(r,i)||(i=r)}}else i=e.call(this,s);return r=s,i}}const Se={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0,forceCommas:0,weekdayJustify:0},Ce={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},we=/([ap])\.?m\.?/i,Te=/,/g,Re=/\s+/g,ke=/\u200e/g;class Oe{constructor(e){let t={},n={},r=7;for(let i in e)if(i in Se){n[i]=e[i];const t=Se[i];t&&(r=Math.min(t,r))}else if(t[i]=e[i],i in Ce){const e=Ce[i];e&&(r=Math.min(e,r))}this.standardDateProps=t,this.extendedSettings=n,this.minSeverity=r,this.buildFormattingFunc=Ee(Ie)}format(e,t){const n=this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e);return[W(n),n]}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=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(g(e)!==g(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n)[0];let a=o;!(a>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(a=1);let[l]=this.format(e,n),[u]=this.format(t,n);if(l===u)return l;let c=Ie(function(e,t){let n={};for(let r in e)(!(r in Ce)||Ce[r]<=t)&&(n[r]=e[r]);return n}(i,a),s,n),d=c(e),f=c(t),h=function(e,t,n,r){let i=0;for(;i<e.length;){let s=e.indexOf(t,i);if(-1===s)break;let o=e.substr(0,s);i=s+t.length;let a=e.substr(i),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 i=n.substr(l);if(o===t&&a===i)return{before:o,after:a}}}return null}(l,d,u,f),p=s.separator||r||n.defaultSeparator||"";return h?h.before+d+p+f+h.after:l+p+u}getSmallestUnit(){switch(this.minSeverity){case 2:return"day";case 3:return"week";case 4:return"month";case 5:case 6:return"year";default:return"time"}}}function Ie(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>[{type:"timeZoneName",value:B(e.timeZoneOffset)}]:0===r&&t.week?e=>function(e,t,n,r,i){let s=[];"long"===i?s.push({type:"literal",value:t}):"short"!==i&&"narrow"!==i||s.push({type:"literal",value:n});"long"!==i&&"short"!==i||s.push({type:"literal",value:" "});s.push({type:"week",value:r.simpleNumberFormat.format(e)}),"rtl"===r.options.direction&&s.reverse();return s}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextShort,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,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return s=>{let o,{marker:a}=s;return o=r&&!a.getUTCMinutes()?r:i,function(e,t,n,r,i){let s,o="short"===n.timeZoneName&&("UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":B(t.timeZoneOffset)),a=!1;for(const t of e){const e="literal"===t.type;if(e||"dayPeriod"===t.type){let n=t.value;if(n=n.replace(ke,""),r.omitCommas&&(n=n.replace(Te,"")),!e){const{meridiem:e}=r;!1===e?n=n.replace(we,""):"narrow"===e?n=n.replace(we,(e,t)=>t.toLocaleLowerCase()):"short"===e?n=n.replace(we,(e,t)=>t.toLocaleLowerCase()+"m"):"lowercase"===e&&(n=n.replace(we,e=>e.toLocaleLowerCase())),s&&(s.value=O(s.value))}n=n.replace(Re," "),t.value=n}else"timeZoneName"===t.type&&o&&(t.value=o,a=!0);s=e?t:void 0}o&&!a&&(s?s.value+=" ":e.push({type:"literal",value:" "}),e.push({type:"timeZoneName",value:o}));r.weekdayJustify&&3===e.length&&" "===e[1].value&&"weekday"===e["start"===r.weekdayJustify?2:0].type&&e.reverse();r.forceCommas&&(e=e.map(e=>" "===e.value?Object.assign(Object.assign({},e),{value:", "}):e));return e.filter(e=>e.value)}(o.formatToParts(a),s,e,t,n)}}(e,t,n)}function Me(e){return"object"==typeof e&&e?new Oe(e):"string"==typeof e?new Z(e):"function"==typeof e?new G(e):null}const xe={navLinkDayClick:Le,navLinkWeekClick:Le,duration:N,buttons:Le,toolbarElements:Le,prevText:String,nextText:String,prevYearText:String,nextYearText:String,todayText:String,yearText:String,monthText:String,weekText:String,weekTextShort:String,dayText:String,listText:Le,todayHint:Le,prevHint:Le,nextHint:Le,buttonDisplay:Le,buttonGroupClass:Le,buttonClass:Le,defaultAllDayEventDuration:N,defaultTimedEventDuration:N,nextDayThreshold:N,scrollTime:N,scrollTimeReset:Boolean,slotMinTime:N,slotMaxTime:N,dayPopoverFormat:Me,slotDuration:N,snapDuration:N,headerToolbar:Le,footerToolbar:Le,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayLaneClass:Le,dayLaneInnerClass:Le,dayLaneDidMount:Le,dayLaneWillUnmount:Le,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Le,weekNumbers:Boolean,weekNumberHeaderClass:Le,weekNumberHeaderInnerClass:Le,weekNumberHeaderContent:Le,weekNumberHeaderDidMount:Le,weekNumberHeaderWillUnmount:Le,inlineWeekNumberClass:Le,inlineWeekNumberContent:Le,inlineWeekNumberDidMount:Le,inlineWeekNumberWillUnmount:Le,editable:Boolean,controller:Le,viewClass:Le,viewDidMount:Le,viewWillUnmount:Le,nowIndicator:Boolean,nowIndicatorHeaderClass:Le,nowIndicatorHeaderContent:Le,nowIndicatorHeaderDidMount:Le,nowIndicatorHeaderWillUnmount:Le,nowIndicatorDotClass:Le,nowIndicatorLineClass:Le,nowIndicatorLineContent:Le,nowIndicatorLineDidMount:Le,nowIndicatorLineWillUnmount:Le,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Le,locale:Le,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Le,eventOrder:te,eventOrderStrict:Boolean,eventSlicing:Boolean,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Le,contentHeight:Le,direction:String,weekNumberFormat:Me,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,progressiveEventRendering:Boolean,businessHours:Le,initialDate:Le,now:Le,eventDataTransform:Le,stickyHeaderDates:Le,stickyFooterScrollbar:Le,defaultAllDay:Boolean,eventSourceFailure:Le,eventSourceSuccess:Le,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Le,eventConstraint:Le,eventAllow:Le,eventColor:String,eventContrastColor:String,eventDidMount:Le,eventWillUnmount:Le,eventContent:Le,backgroundEventColor:String,eventClass:Le,eventInnerClass:Le,eventTimeClass:Le,eventTitleClass:Le,eventBeforeClass:Le,eventAfterClass:Le,listItemEventClass:Le,listItemEventInnerClass:Le,listItemEventTimeClass:Le,listItemEventTitleClass:Le,listItemEventBeforeClass:Le,listItemEventAfterClass:Le,blockEventClass:Le,blockEventInnerClass:Le,blockEventTimeClass:Le,blockEventTitleClass:Le,blockEventBeforeClass:Le,blockEventAfterClass:Le,rowEventClass:Le,rowEventInnerClass:Le,rowEventTimeClass:Le,rowEventTitleClass:Le,rowEventTitleSticky:Boolean,rowEventBeforeClass:Le,rowEventBeforeContent:Le,rowEventAfterClass:Le,rowEventAfterContent:Le,columnEventClass:Le,columnEventInnerClass:Le,columnEventTimeClass:Le,columnEventTitleClass:Le,columnEventTitleSticky:Boolean,columnEventBeforeClass:Le,columnEventAfterClass:Le,backgroundEventClass:Le,backgroundEventInnerClass:Le,backgroundEventTitleClass:Le,selectConstraint:Le,selectOverlap:Le,selectAllow:Le,droppable:Boolean,unselectCancel:String,slotHeaderFormat:Le,slotLaneClass:Le,slotLaneDidMount:Le,slotLaneWillUnmount:Le,slotHeaderClass:Le,slotHeaderInnerClass:Le,slotHeaderContent:Le,slotHeaderDidMount:Le,slotHeaderWillUnmount:Le,slotHeaderAlign:Le,slotHeaderSticky:Le,slotHeaderRowClass:Le,slotHeaderDividerClass:Le,dayMaxEvents:Le,dayMaxEventRows:Le,dayMinWidth:Number,slotHeaderInterval:N,dayHeaderClass:Le,dayHeaderInnerClass:Le,dayHeaderContent:Le,dayHeaderDidMount:Le,dayHeaderWillUnmount:Le,dayHeaderAlign:Le,dayHeaderSticky:Le,dayHeaderRowClass:Le,dayHeaderDividerClass:Le,dayRowClass:Le,dayCellDidMount:Le,dayCellWillUnmount:Le,dayCellClass:Le,dayCellInnerClass:Le,dayCellTopContent:Le,dayCellTopClass:Le,dayCellTopInnerClass:Le,dayCellBottomClass:Le,allDaySlot:Boolean,allDayText:String,allDayHeaderClass:Le,allDayHeaderInnerClass:Le,allDayHeaderContent:Le,allDayHeaderDidMount:Le,allDayHeaderWillUnmount:Le,timedText:String,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Me,rerenderDelay:Number,moreLinkText:Le,moreLinkHint:Le,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Le,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:N,hiddenDays:Le,fixedWeekCount:Boolean,validRange:Le,visibleRange:Le,titleFormat:Le,eventInteractive:Boolean,noEventsText:String,viewHint:Le,viewChangeHint:String,navLinkHint:Le,closeHint:String,eventsHint:String,headingLevel:Number,moreLinkClick:Le,moreLinkContent:Le,moreLinkDidMount:Le,moreLinkWillUnmount:Le,moreLinkClass:Le,moreLinkInnerClass:Le,rowMoreLinkClass:Le,rowMoreLinkInnerClass:Le,columnMoreLinkClass:Le,columnMoreLinkInnerClass:Le,navLinkClass:Le,monthStartFormat:Me,dayCellFormat:Me,handleCustomRendering:Le,customRenderingMetaMap:Le,customRenderingReplaces:Boolean,class:Le,className:Le,popoverClass:Le,popoverCloseClass:Le,popoverCloseContent:Le,dayNarrowWidth:Number,borderless:Boolean,borderlessX:Boolean,borderlessTop:Boolean,borderlessBottom:Boolean,fillerClass:Le,headerToolbarClass:Le,footerToolbarClass:Le,toolbarClass:Le,toolbarSectionClass:Le,toolbarTitleClass:Le,tableClass:Le,tableHeaderClass:Le,tableBodyClass:Le,nonBusinessClass:Le,highlightClass:Le},Ne={buttonDisplay:"auto",eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",initialView:"",aspectRatio:1.35,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:"",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},dayCellFormat:{day:"numeric"},headingLevel:2,outerBorder:!0,dayNarrowWidth:80,eventOverlap:!0,slotHeaderAlign:"start",slotHeaderSticky:!0,dayHeaderAlign:"start",dayHeaderSticky:!0,rowEventTitleSticky:!0,columnEventTitleSticky:!0},Pe={datesSet:Le,eventsSet:Le,eventAdd:Le,eventChange:Le,eventRemove:Le,eventClick:Le,eventMouseEnter:Le,eventMouseLeave:Le,select:Le,unselect:Le,loading:Le,_unmount:Le,_beforeprint:Le,_afterprint:Le,_noEventDrop:Le,_noEventResize:Le,_timeScrollRequest:Le},He={views:Le,plugins:Le,initialEvents:Le,events:Le,eventSources:Le},Ae={type:String,component:Le,buttonTextKey:String,dateProfileGeneratorClass:Le,usesMinMaxTime:Boolean,class:Le,className:Le,content:Le,didMount:Le,willUnmount:Le},Ue={headerToolbar:ge,footerToolbar:ge,dateIncrement:ge,buttons:function(e,t){return"object"==typeof e&&e&&"object"==typeof t&&t?pe(e,t,me):e===t},plugins:ae,events:ae,eventSources:ae,resources:ae};function je(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 Le(e){return e}function Be(e,t,n,r){return{instanceId:ee(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function We(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=e;a=ce(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?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let l=Ve(n,o,t,r,i.recurringTypes);for(let t of l){let n=Be(e,{start:t,end:r.add(t,o)});a[n.instanceId]=n}}}return{defs:o,instances:a}}function Ve(e,t,n,r,i){let s=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(a)),s}function ze(e,t,n,r,i,s){let o={defs:{},instances:{}},a=at(n);for(let l of e){let e=st(l,t,n,r,a,i,s);e&&Fe(e,o)}return o}function Fe(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ze(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qe(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 Ge(){return{defs:{},instances:{}}}function Ye(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qe(e,t){let n=ce(e.defs,t),r=ce(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}function $e(...e){const t=[];for(const n of e)Array.isArray(n)?t.push(...n):t.push(n);return Xe(...t)}function Xe(...e){return e.filter(Boolean).join(" ")}const Ke={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Le,overlap:Le,allow:Le,class:Le,className:Le,color:String,contrastColor:String},Je={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],color:"",contrastColor:"",className:""};function Qe(e,t){var n;let r=function(e,t){return Array.isArray(e)?ze(e,null,t,!0):"object"==typeof e&&e?ze([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!=r?[r]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],color:e.color||"",contrastColor:e.contrastColor||"",className:(null!==(n=e.class)&&void 0!==n?n:e.className)||""}}function et(e){return e.reduce(tt,Je)}function tt(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),color:t.color||e.color,contrastColor:t.contrastColor||e.contrastColor,className:$e(e.className,t.className)}}const nt={id:String,groupId:String,title:String,url:String,interactive:Boolean},rt={start:Le,end:Le,date:Le,allDay:Boolean},it=Object.assign(Object.assign(Object.assign({},nt),rt),{extendedProps:Le});function st(e,t,n,r,i=at(n),s,o){let{refined:l,extra:u}=ot(e,n,i),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 i=0;i<r.length;i+=1){let s=r[i].parse(e,n);if(s){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=s.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}(l,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=lt(l,u,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,s);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let f=function(e,t,n,r){let i,s,{allDay:o}=e,l=null,u=!1,c=null,d=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(d),i)l=i.marker;else if(!r)return null;null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end));null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified));o&&l&&(l=a(l));s&&(c=s.marker,o&&(c=a(c)),l&&c<=l&&(c=null));c?u=!0:r||(u=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:o,hasEnd:u,range:{start:l,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(l,c,n,r);if(f){let e=lt(l,u,t?t.sourceId:"",f.allDay,f.hasEnd,n,s),r=Be(e.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function ot(e,t,n=at(t)){return je(e,n)}function at(e){return Object.assign(Object.assign(Object.assign({},Ke),it),e.pluginHooks.eventRefiners)}function lt(e,t,n,r,i,s,o){let a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||ee(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Qe(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of s.pluginHooks.eventDefMemberAdders)Object.assign(a,t(e));return Object.freeze(a.ui.className),Object.freeze(a.extendedProps),a}const ut={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",className:"",groupId:"_businessHours"};function ct(e,t){return ze(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({},ut),e)),t}(e),null,t)}function dt(e){let n=Math.floor(r(e.start,e.end))||1,i=a(e.start);return{start:i,end:t(i,n)}}function ft(e,n=N(0)){let r=null,i=null;if(e.end){i=a(e.end);let r=e.end.valueOf()-i.valueOf();r&&r>=A(n)&&(i=t(i,1))}return e.start&&(r=a(e.start),i&&i<=r&&(i=t(r,1))),{start:r,end:i}}function ht(e,t,n,r){return"year"===r?N(n.diffWholeYears(e,t),"year"):"month"===r?N(n.diffWholeMonths(e,t),"month"):i(e,t)}const pt=Me({year:"numeric",month:"long",day:"numeric"}),gt=Me({week:"long"}),mt=Me({weekday:"long"});function vt(e){for(const t of e)if("weekday"===t.type)return t.value;return""}function yt(e){for(const t of e)if("day"===t.type)return t.value;return""}function _t(e){for(const t of e)if("month"===t.type)return t.value;return""}function bt(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}const Et=/(^c|C)lass(Name)?$/,Dt=/Content$/,St=/(DidMount|WillUnmount)$/,Ct=/^on[A-Z]/,wt={headerToolbar:_e,footerToolbar:_e,buttons:function(e,t){return e?function(e,t,n){const r={};for(let n in e)ue.call(e,n)&&(n in t||(r[n]=e[n]));for(let i in t)ue.call(t,i)&&(r[i]=i in e?n(e[i],t[i]):t[i]);return r}(e,t,be):t}};function Tt(...e){const t={};for(const n of e)for(const e in n){const r=n[e];t[e]?t[e]=Rt(t[e],r):t[e]=r}return t}function Rt(...e){let t={};for(const n of e)for(let e in n)if(e in t){const r=wt[e]||(Et.test(e)?kt:Dt.test(e)?Ot:St.test(e)?It:void 0);t[e]=r?r(t[e],n[e]):n[e]}else t[e]=n[e];return t}function kt(e,t){const n="function"==typeof e,r="function"==typeof t;if(n||r){const i=i=>$e(n?e(i):e,r?t(i):t);return i.parts=[e,t],i}return $e(e,t)}function Ot(e,t){if("function"==typeof t){const n=(n,r)=>{const i=t(n,r);return!0===i?"function"==typeof e?e(n,r):e:i};return n.parts=[e,t],n}return null!=t?t:e}function It(e,t){if(e&&t){const n=(...n)=>{e(...n),t(...n)};return n.parts=[e,t],n}return e||t}function Mt(e){const t=e.getRootNode();return t instanceof Document?t.body||t.documentElement:t}function xt(e){return"rtl"===getComputedStyle(e).direction}const Nt=/(top|left|right|bottom|width|height)$/i;function Pt(e,t){for(let n in t)Ht(e,n,t[n])}function Ht(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Nt.test(t)?e.style[t]=n+"px":e.style[t]=n}function At(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 Ut=0;function jt(){return Ut+=1,"fc-dom-"+Ut}const Lt={defs:{},instances:{}};function Bt(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":et(r)};return n&&Object.assign(i,n),i}function Wt(e,t,n,r,i){const s=Boolean(n&&!w(n.activeRange,e));return{date:t.toDate(e),dow:e.getUTCDay(),isDisabled:s,isOther:!s&&Boolean(n&&!w(n.currentRange,e)),isToday:!s&&Boolean(r&&w(r,e)),isPast:!s&&Boolean(i?e<i:!!r&&e<r.start),isFuture:!s&&Boolean(i?e>i:!!r&&e>=r.end)}}function Vt(e,t){return null!=e&&(e===t||Math.abs(e-t)<.01)}var zt,Ft,Zt,Gt,Yt,qt,$t,Xt,Kt,Jt,Qt,en,tn={},nn=[],rn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,sn=Array.isArray;function on(e,t){for(var n in t)e[n]=t[n];return e}function an(e){var t=e.parentNode;t&&t.removeChild(e)}function ln(e,t,n){var r,i,s,o={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?zt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return un(e,o,r,i,null)}function un(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++Zt:i,__i:-1,__u:0};return null==i&&null!=Ft.vnode&&Ft.vnode(s),s}function cn(){return{current:null}}function dn(e){return e.children}function fn(e,t){this.props=e,this.context=t}function hn(e,t){if(null==t)return e.__?hn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?hn(e):null}function pn(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return pn(e)}}function gn(e){(!e.__d&&(e.__d=!0)&&Yt.push(e)&&!mn.__r++||qt!==Ft.debounceRendering)&&((qt=Ft.debounceRendering)||$t)(mn)}function mn(){var e,t,n,r,i,s,o,a;for(Yt.sort(Xt);e=Yt.shift();)e.__d&&(t=Yt.length,r=void 0,s=(i=(n=e).__v).__e,o=[],a=[],n.__P&&((r=on({},i)).__v=i.__v+1,Ft.vnode&&Ft.vnode(r),wn(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[s]:null,o,null==s?hn(i):s,!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Tn(o,r,a),r.__e!=s&&pn(r)),Yt.length>t&&Yt.sort(Xt));mn.__r=0}function vn(e,t,n,r,i,s,o,a,l,u,c){var d,f,h,p,g,m=r&&r.__k||nn,v=t.length;for(n.__d=l,yn(n,t,m),l=n.__d,d=0;d<v;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(f=-1===h.__i?tn:m[h.__i]||tn,h.__i=d,wn(e,h,f,i,s,o,a,l,u,c),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&kn(f.ref,null,h),c.push(h.ref,h.__c||p,h)),null==g&&null!=p&&(g=p),65536&h.__u||f.__k===h.__k?l=_n(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:p&&(l=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function yn(e,t,n){var r,i,s,o,a,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)o=r+d,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?un(null,i,null,null,null):sn(i)?un(dn,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?un(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=En(i,n,o,c),i.__i=a,s=null,-1!==a&&(c--,(s=n[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&d--,"function"!=typeof i.type&&(i.__u|=65536)):a!==o&&(a==o-1?d--:a==o+1?d++:a>o?c>l-o?d+=a-o:d--:a<o&&(a==o-d?d-=a-o:d++),a!==r+d&&(i.__u|=65536))):(s=n[o])&&null==s.key&&s.__e&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=hn(s)),On(s,s,!1),n[o]=null,c--);if(c)for(r=0;r<u;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=hn(s)),On(s,s))}function _n(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=_n(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=hn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function bn(e,t){return t=t||[],null==e||"boolean"==typeof e||(sn(e)?e.some((function(e){bn(e,t)})):t.push(e)),t}function En(e,t,n,r){var i=e.key,s=e.type,o=n-1,a=n+1,l=t[n];if(null===l||l&&i==l.key&&s===l.type&&0==(131072&l.__u))return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return a;a++}}return-1}function Dn(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||rn.test(t)?n:n+"px"}function Sn(e,t,n,r,i){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Dn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Dn(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Kt,e.addEventListener(t,s?Qt:Jt,s)):e.removeEventListener(t,s?Qt:Jt,s);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Cn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Kt++;else if(t.t<n.u)return;return n(Ft.event?Ft.event(t):t)}}}function wn(e,t,n,r,i,s,o,a,l,u){var c,d,f,h,p,g,m,v,y,_,b,E,D,S,C,w,T=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(c=Ft.__b)&&c(t);e:if("function"==typeof T)try{if(v=t.props,y="prototype"in T&&T.prototype.render,_=(c=T.contextType)&&r[c.__c],b=c?_?_.props.value:c.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(y?t.__c=d=new T(v,b):(t.__c=d=new fn(v,b),d.constructor=T,d.render=In),_&&_.sub(d),d.props=v,d.state||(d.state={}),d.context=b,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=on({},d.__s)),on(d.__s,T.getDerivedStateFromProps(v,d.__s))),h=d.props,p=d.state,d.__v=t,f)y&&null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==T.getDerivedStateFromProps&&v!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,b),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,p,g)}))}if(d.context=b,d.props=v,d.__P=e,d.__e=!1,D=Ft.__r,S=0,y){for(d.state=d.__s,d.__d=!1,D&&D(t),c=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do{d.__d=!1,D&&D(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(r=on(on({},r),d.getChildContext())),y&&!f&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(h,p)),vn(e,sn(w=null!=c&&c.type===dn&&null==c.key?c.props.children:c)?w:[w],t,n,r,i,s,o,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),m&&(d.__E=d.__=null)}catch(e){if(t.__v=null,l||null!=s){for(t.__u|=l?160:32;a&&8===a.nodeType&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;Ft.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Rn(n.__e,t,n,r,i,s,o,l,u);(c=Ft.diffed)&&c(t)}function Tn(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)kn(n[r],n[++r],n[++r]);Ft.__c&&Ft.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Ft.__e(e,t.__v)}}))}function Rn(e,t,n,r,i,s,o,a,l){var u,c,d,f,h,p,g,m=n.props,v=t.props,y=t.type;if("svg"===y?i="http://www.w3.org/2000/svg":"math"===y?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=s)for(u=0;u<s.length;u++)if((h=s[u])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){e=h,s[u]=null;break}if(null==e){if(null===y)return document.createTextNode(v);e=document.createElementNS(i,y,v.is&&v),s=null,a=!1}if(null===y)m===v||a&&e.data===v||(e.data=v);else{if(s=s&&zt.call(e.childNodes),m=n.props||tn,!a&&null!=s)for(m={},u=0;u<e.attributes.length;u++)m[(h=e.attributes[u]).name]=h.value;for(u in m)if(h=m[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=h;else if("key"!==u&&!(u in v)){if("value"==u&&"defaultValue"in v||"checked"==u&&"defaultChecked"in v)continue;Sn(e,u,null,h,i)}for(u in v)h=v[u],"children"==u?f=h:"dangerouslySetInnerHTML"==u?c=h:"value"==u?p=h:"checked"==u?g=h:"key"===u||a&&"function"!=typeof h||m[u]===h||Sn(e,u,h,m[u],i);if(c)a||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),vn(e,sn(f)?f:[f],t,n,r,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:n.__k&&hn(n,0),a,l),null!=s)for(u=s.length;u--;)null!=s[u]&&an(s[u]);a||(u="value",void 0!==p&&(p!==e[u]||"progress"===y&&!p||"option"===y&&p!==m[u])&&Sn(e,u,p,m[u],i),u="checked",void 0!==g&&g!==e[u]&&Sn(e,u,g,m[u],i))}return e}function kn(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){Ft.__e(e,n)}}function On(e,t,n){var r,i;if(Ft.unmount&&Ft.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||kn(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Ft.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&On(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||an(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function In(e,t,n){return this.constructor(e,n)}function Mn(e,t,n){var r,i,s,o;Ft.__&&Ft.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],o=[],wn(t,e=(!r&&n||t).__k=ln(dn,null,[e]),i||tn,tn,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?zt.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r,o),Tn(s,e,o)}zt=nn.slice,Ft={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},Zt=0,Gt=function(e){return null!=e&&null==e.constructor},fn.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=on({},this.state),"function"==typeof e&&(e=e(on({},n),this.props)),e&&on(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),gn(this))},fn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),gn(this))},fn.prototype.render=dn,Yt=[],$t="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xt=function(e,t){return e.__v.__b-t.__v.__b},mn.__r=0,Kt=0,Jt=Cn(!1),Qt=Cn(!0),en=0;var xn,Nn,Pn,Hn=[],An=Ft,Un=An.__b,jn=An.__r,Ln=An.diffed,Bn=An.__c,Wn=An.unmount,Vn=An.__;function zn(){for(var e;e=Hn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gn),e.__H.__h.forEach(Yn),e.__H.__h=[]}catch(t){e.__H.__h=[],An.__e(t,e.__v)}}An.__b=function(e){xn=null,Un&&Un(e)},An.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Vn&&Vn(e,t)},An.__r=function(e){jn&&jn(e);var t=(xn=e.__c).__H;t&&(Nn===xn?(t.__h=[],xn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Gn),t.__h.forEach(Yn),t.__h=[])),Nn=xn},An.diffed=function(e){Ln&&Ln(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Hn.push(t)&&Pn===An.requestAnimationFrame||((Pn=An.requestAnimationFrame)||Zn)(zn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),Nn=xn=null},An.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Gn),e.__h=e.__h.filter((function(e){return!e.__||Yn(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],An.__e(n,e.__v)}})),Bn&&Bn(e,t)},An.unmount=function(e){Wn&&Wn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Gn(e)}catch(e){t=e}})),n.__H=void 0,t&&An.__e(t,n.__v))};var Fn="function"==typeof requestAnimationFrame;function Zn(e){var t,n=function(){clearTimeout(r),Fn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Fn&&(t=requestAnimationFrame(n))}function Gn(e){var t=xn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),xn=t}function Yn(e){var t=xn;e.__c=e.__(),xn=t}function qn(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function $n(e,t){this.props=e,this.context=t}($n.prototype=new fn).isPureReactComponent=!0,$n.prototype.shouldComponentUpdate=function(e,t){return qn(this.props,e)||qn(this.state,t)};var Xn=Ft.__b;Ft.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xn&&Xn(e)};var Kn=Ft.__e;Ft.__e=function(e,t,n,r){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Kn(e,t,n,r)};var Jn=Ft.unmount;function Qn(){this.__u=0,this.t=null,this.__b=null}function er(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tr(){this.u=null,this.o=null}Ft.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Jn&&Jn(e)},(Qn.prototype=new fn).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=er(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Qn.prototype.componentWillUnmount=function(){this.t=[]},Qn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&ln(dn,null,e.fallback);return i&&(i.__u&=-33),[ln(dn,null,t.__a?null:e.children),i]};var nr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function rr(e){return this.getChildContext=function(){return e.context},e.children}function ir(e){var t=this,n=e.i;t.componentWillUnmount=function(){Mn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Mn(ln(rr,{context:t.context},e.__v),t.l)}function sr(e,t){var n=ln(ir,{__v:e,i:t});return n.containerInfo=t,n}(tr.prototype=new fn).__a=function(e){var t=this,n=er(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),nr(t,e,r)):i()};n?n(s):s()}},tr.prototype.render=function(e){this.u=null,this.o=new Map;var t=bn(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},tr.prototype.componentDidUpdate=tr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){nr(e,n,t)}))};var or="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ar=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,lr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ur=/[A-Z0-9]/g,cr="undefined"!=typeof document,dr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};fn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(fn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var fr=Ft.event;function hr(){}function pr(){return this.cancelBubble}function gr(){return this.defaultPrevented}Ft.event=function(e){return fr&&(e=fr(e)),e.persist=hr,e.isPropagationStopped=pr,e.isDefaultPrevented=gr,e.nativeEvent=e};var mr={enumerable:!1,configurable:!0,get:function(){return this.class}},vr=Ft.vnode;Ft.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var s in t){var o=t[s];if(!("value"===s&&"defaultValue"in t&&null==o||cr&&"children"===s&&"noscript"===n||"class"===s||"className"===s)){var a=s.toLowerCase();"defaultValue"===s&&"value"in t&&null==t.value?s="value":"download"===s&&!0===o?o="":"translate"===a&&"no"===o?o=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?s="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||dr(t.type)?"onfocus"===a?s="onfocusin":"onblur"===a?s="onfocusout":lr.test(s)&&(s=a):a=s="oninput":i&&ar.test(s)?s=s.replace(ur,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===a&&r[s=a]&&(s="oninputCapture"),r[s]=o}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=bn(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=bn(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",mr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=or,vr&&vr(e)};var yr=Ft.__r;Ft.__r=function(e){yr&&yr(e),e.__c};var _r=Ft.diffed;function br(){let e=Ft.debounceRendering,t=[];for(Ft.debounceRendering=function(e){t.push(e)},Mn(ln(Dr,{}),document.createElement("div"));t.length;)t.shift()();Ft.debounceRendering=e}function Er(e){e(),br()}Ft.diffed=function(e){_r&&_r(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};class Dr extends fn{render(){return ln("div",{})}componentDidMount(){this.setState({})}}const Sr=function(e,t){var n={__c:t="__cC"+en++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,gn(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},Cr=Ft;var wr={__proto__:null,flushUpdates:br,flushSync:Er,createContext:Sr,preactOptions:Cr,createPortal:sr,Component:fn,Fragment:dn,cloneElement:function(e,t,n){var r,i,s,o,a=on({},e.props);for(s in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)"key"==s?r=t[s]:"ref"==s?i=t[s]:a[s]=void 0===t[s]&&void 0!==o?o[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?zt.call(arguments,2):n),un(e.type,a,r||e.key,i||e.ref,null)},createElement:ln,createRef:cn,h:ln,hydrate:function e(t,n){Mn(t,n,e)},get isValidElement(){return Gt},get options(){return Ft},render:Mn,toChildArray:bn};const Tr=new Map,Rr=new Set;let kr=!1,Or=!1;function Ir(){for(const e of Rr.values())e(),Rr.delete(e)}function Mr(){let e=!0;if(!kr){kr=!0;const t=[];for(const[n,r]of Tr.entries()){const{width:i,height:s}=n.getBoundingClientRect();xr(r,i,s)&&(t.push(r),e=!0)}for(const e of t)e.callback(e.width,e.height);Ir(),kr=!1}return e}function xr(e,t,n){let r=!1;return Vt(e.width,t)||(e.width=t,r=e.watchWidth),Vt(e.height,n)||(e.height=n,r||(r=e.watchHeight)),r}const Nr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Pr={capture:!0,passive:!0};const Hr=()=>{};const[Ar,Ur]="undefined"!=typeof ResizeObserver?function(){const e=new ResizeObserver(e=>{kr=!0;for(let t of e){const e=t.target,n=Tr.get(e);let r,i;if(t.borderBoxSize){const e=t.borderBoxSize[0]||t.borderBoxSize;r=e.inlineSize,i=e.blockSize}else({width:r,height:i}=e.getBoundingClientRect());xr(n,r,i)&&n.callback(r,i)}Ir(),kr=!1});return[function(t,n,r=!0,i=!0){return Tr.set(t,{callback:n,watchWidth:r,watchHeight:i}),e.observe(t,{box:"border-box"}),()=>{Tr.delete(t),e.unobserve(t)}},Mr]}():function(){let e,t=!1;const[n,r]=function(e,t){let n,r,i;return[function(){i?r=Date.now()-n:function t(s){n=Date.now(),r=0,i=setTimeout(()=>{r?t(r):(i=void 0,e())},s)}(t)},function(){i&&(clearTimeout(i),i=void 0)}]}(Mr,100);function i(){return r(),Mr()}function s(){e.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function o(){e.disconnect()}function a(){t||(t=!0,Tr.size&&o())}function l(){t&&(t=!1,Tr.size&&s())}const u=Cr.__r||Hr,c=Cr.__c||Hr;let d=!1;return Cr.__r=function(){a(),u.apply(this,arguments)},Cr.__c=function(){d||(d=!0,requestAnimationFrame(()=>{i(),l(),d=!1})),c.apply(this,arguments)},[function(r,i,a=!0,l=!0){return Tr.size||function(){e=new MutationObserver(n),t||s();for(const e of Nr)window.addEventListener(e,n,Pr)}(),Tr.set(r,{callback:i,watchWidth:a,watchHeight:l}),n(),()=>{Tr.delete(r),Tr.size||function(){t||o();for(const e of Nr)window.removeEventListener(e,n,Pr)}()}},i]}();function jr(e,t){return Ar(e,t,!0)}function Lr(e,t){return Ar(e,(e,n)=>t(n),!1,!0)}function Br(e,t,n="day"){return e.dateEnv.format(t,"week"===n?gt:pt)[0]}function Wr(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,a=function(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}(e),l=a.y-r-i,u={borderLeft:r,borderRight:i,borderTop:s,borderBottom:o,scrollbarBottom:a.x-s-o,scrollbarLeft:0,scrollbarRight:0};return"rtl"===n.direction?u.scrollbarLeft=l:u.scrollbarRight=l,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function Vr(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 zr(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}function Fr(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},s=function(e){r||(r=!0,n(e))},o=e(i,s);o&&"function"==typeof o.then&&o.then(i,s)}class Zr{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],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Gr(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 Yr{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()}}const qr=Sr({});function $r(e,t,n,r,i,s,o,a,l,u,c,d){return{dateEnv:i,options:n,pluginHooks:s,emitter:l,dispatch:o,getCurrentData:a,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,registerInteractiveComponent:c,unregisterInteractiveComponent:d}}class Xr extends fn{shouldComponentUpdate(e,t){return this.debug&&console.log(ye(e,this.props),ye(t,this.state)),!ve(this.props,e,this.propEquality)||!ve(this.state,t,this.stateEquality)}}Xr.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Xr.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Xr.contextType=qr,Xr.prototype.propEquality={},Xr.prototype.stateEquality={};class Kr extends Xr{}function Jr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Kr.contextType=qr;class Qr extends Kr{constructor(){super(...arguments),this.uid=ee()}prepareHits(){}queryHit(e,t,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!e.closest("."+J.internalEventMirror)}isValidDateDownEl(e){return!(e.closest(`.${J.internalEvent}:not(.${J.internalBgEvent})`)||e.closest("."+J.internalMoreLink)||e.closest("."+J.internalNavLink)||e.closest("."+J.internalPopover))}}function ei(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class ti{constructor(e){this.props=e,this.nowDate=ei(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,s,o,a,l,{props:u}=this;var c,d;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(c=e,e=null!=(d=r).start&&c<d.start?d.start:null!=d.end&&c>=d.end?new Date(d.end.valueOf()-1):c),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),o=this.trimHiddenDays(o),a=o,u.showNonCurrentDates||(a=E(a,i.range)),a=this.adjustActiveRange(a),a=E(a,r),l=S(i.range,r),w(o,e)||(e=o.start),{currentDate:e,validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:a,renderRange:o,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,i=null,s=null,o=null;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=U(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return N({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:o,end:l}=e;return r&&(H(i)<0&&(o=a(o),o=n.add(o,i)),H(s)>1&&(l=a(l),l=t(l,-1),l=n.add(l,s))),{start:o,end:l}}buildRangeFromDuration(e,t,n,r){let i,s,o,{dateEnv:l,dateAlignment:u}=this.props;if(!u){let{dateIncrement:e}=this.props;u=e&&A(e)<A(n)?U(e).unit:r}function c(){i=l.startOf(e,u),s=l.add(i,n),o={start:i,end:s}}return H(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=a(i)),c(),this.trimHiddenDays(o)||(e=this.skipHiddenDays(e,t),c()),o}buildRangeFromDayCount(e,n,r){let i,{dateEnv:s,dateAlignment:o}=this.props,l=0,u=e;o&&(u=s.startOf(u,o)),u=a(u),u=this.skipHiddenDays(u,n),i=u;do{i=t(i,1),this.isHiddenDay(i)||(l+=1)}while(l<r);return{start:u,end:i}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?N(1,t):e||N({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=ft(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,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=t(e,n);return e}}function ni(e,t,n){if(e.valueOf()===a(e).valueOf()){if("year"===t)return!n.getMonth(e)&&1===n.getDay(e);if("month"===t)return 1===n.getDay(e);if("week"===t)return e.getUTCDay()===n.weekDow;if("day"===t)return!0}return!1}function ri(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},ii(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function ii(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,i=t.dateEnv,Object.assign(Object.assign({},Ci(r.range,i,r.allDay)),{allDay:r.allDay}))),n}function si(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=a(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function oi(e,t,n,r){let i=mi(e.defs,t),s={defs:{},instances:{}};for(let t in e.defs){let o=e.defs[t];s.defs[t]=ai(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],a=s.defs[o.defId];s.instances[t]=li(o,a,i[o.defId],n,r)}return s}function ai(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function li(e,t,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&!0===r.standardProps.allDay,l=r.standardProps&&!1===r.standardProps.hasEnd,u=Object.assign({},e);return o&&(u.range=dt(u.range)),r.datesDelta&&n.startEditable&&(u.range={start:s.add(u.range.start,r.datesDelta),end:s.add(u.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(u.range={start:s.add(u.range.start,r.startDelta),end:u.range.end}),r.endDelta&&n.durationEditable&&(u.range={start:u.range.start,end:s.add(u.range.end,r.endDelta)}),l&&(u.range={start:u.range.start,end:si(t.allDay,u.range.start,i)}),t.allDay&&(u.range={start:a(u.range.start),end:a(u.range.end)}),u.range.end<u.range.start&&(u.range.end=si(t.allDay,u.range.start,i)),u}class ui{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 ci{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in rt)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=nt[e](t),this.mutate({standardProps:{publicId:t}});else if(e in nt)t=nt[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Ke){let n=Ke[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=ht(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=ht(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:i}=this._context,s={allDay:n.allDay},o=i.createMarker(e);var a,l;if(o&&((null==t||(r=i.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=dt(e));let t=ht(e.start,o,i,n.granularity);if(r){let o=ht(e.end,r,i,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:s}):this.mutate({startDelta:t,endDelta:o,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:t,standardProps:s})}}moveStart(e){let t=N(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=N(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=N(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=Me(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})[0]}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),s=Ze(i,t.instanceId);s=oi(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],color:"",contrastColor:"",className:""}},e,r);let o=new ci(r,n,t);this._def=s.defs[n.defId],this._instance=s.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:s}),r.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:fi(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=di(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 ui(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 color(){return this._def.ui.color}get contrastColor(){return this._def.ui.contrastColor}get className(){return this._def.ui.className}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,s={allDay:t.allDay};return t.title&&(s.title=t.title),r&&(s.start=r),i&&(s.end=i),t.publicId&&(s.id=t.publicId),t.groupId&&(s.groupId=t.groupId),t.url&&(s.url=t.url),n.display&&"auto"!==n.display&&(s.display=n.display),n.color&&(s.color=n.color),n.contrastColor&&(s.contrastColor=n.contrastColor),n.className&&(s.className=n.className),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(s,t.extendedProps):s.extendedProps=t.extendedProps),s}toJSON(){return this.toPlainObject()}}function di(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function fi(e,t,n){let{defs:r,instances:i}=e,s=[],o=n?n.instanceId:"";for(let e in i){let n=i[e],a=r[n.defId];n.instanceId!==o&&s.push(new ci(t,a,n))}return s}function hi(e,t,n,r){let i={},s={},o={},a=[],l=[],u=mi(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===u[n.defId].display&&(n.groupId?(i[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):s[t]=[])}for(let t in e.instances){let o=e.instances[t],c=e.defs[o.defId],d=u[c.defId],f=o.range,h=!c.allDay&&r?ft(f,r):f,p=E(h,n);p&&("inverse-background"===d.display?c.groupId?i[c.groupId].push(p):s[o.defId].push(p):"none"!==d.display&&("background"===d.display?a:l).push({def:c,ui:d,instance:o,range:p,isStart:h.start&&h.start.valueOf()===p.start.valueOf(),isEnd:h.end&&h.end.valueOf()===p.end.valueOf()}))}for(let e in i){let t=_(i[e],n);for(let n of t){let t=o[e],r=u[t.defId];a.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in s){let r=_(s[t],n);for(let n of r)a.push({def:e.defs[t],ui:u[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function pi(e,t){e.fcEventRange=t}function gi(e){return e.fcEventRange||e.parentNode.fcEventRange||null}function mi(e,t){return de(e,e=>vi(e,t))}function vi(e,t){const n=[],r=t[""],i=t[e.defId];return r&&n.push(r),i&&n.push(i),n.push(e.ui),et(n)}function yi(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:e})}function _i(e,t,r,i,s,o,l,u=!0,c=!0){const{dateEnv:d,options:f}=l,{def:h,instance:p}=t;let{displayEventTime:g,displayEventEnd:m}=f;null==g&&(g=!1!==u),null==m&&(m=!1!==c);const v=!s&&r&&a(r).valueOf()!==a(t.instance.range.start).valueOf()?r:t.instance.range.start,y=!o&&i&&a(n(i,-1)).valueOf()!==a(n(t.instance.range.end,-1)).valueOf()?i:t.instance.range.end;if(g&&!h.allDay){if(m&&(s||o)&&h.hasEnd)return d.formatRange(v,y,e,{forcedStartTzo:s?p.forcedStartTzo:null,forcedEndTzo:o?p.forcedEndTzo:null});if(s)return d.format(v,e,{forcedTzo:p.forcedStartTzo})[0]}return""}function bi(e,t){let{def:n,instance:r}=e,{url:i}=n;if(i)return["a",{href:i},!0];let s,{emitter:o,options:a}=t,{eventInteractive:l}=a;return null==l&&(l=n.interactive,null==l&&(l=Boolean(o.hasHandlers("eventClick")))),l&&(s=K(e=>{o.trigger("eventClick",{el:e.target,event:new ci(t,n,r),jsEvent:e,view:t.viewApi})}),s=Object.assign({role:"button"},s)),["div",s,l]}const Ei={start:Le,end:Le,allDay:Boolean};function Di(e,t,n){let r=function(e,t){let{refined:n,extra:r}=je(e,Ei),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified));return Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function Si(e,t,n){return Object.assign(Object.assign({},Ci(e,t,n)),{timeZone:t.timeZone})}function Ci(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 wi(e,t){const n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);if(n<r)return{start:n,end:r,isStart:e.isStart&&n===e.start,isEnd:e.isEnd&&r===e.end}}function Ti(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Ri(e){return e.end}function ki(e){return e.reduce(Ii).eventRange.range.start}function Oi(e){return e.reduce(Mi).eventRange.range.end}function Ii(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Mi(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}function xi(e,t,n){e.splice(t,0,n)}function Ni(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),o=n(e[s]);if(t<o)i=s;else{if(!(t>o))return[s,1];r=s+1}}return[r,0]}class Pi{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}const Hi={};const Ai={startTime:N,duration:N,create:Boolean,sourceId:String};class Ui extends Kr{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0}),br(),Ur(),br()},this.handleAfterPrint=()=>{this.setState({forPrint:!1}),br()}}render(){var e,t,n;let{props:r,state:i}=this,{options:s}=r,{forPrint:o}=i,a=null!==(e=s.borderlessX)&&void 0!==e?e:s.borderless,l=null!==(t=s.borderlessTop)&&void 0!==t?t:s.borderless,u=null!==(n=s.borderlessBottom)&&void 0!==n?n:s.borderless,c=$e(s.class,s.className,l&&J.borderlessTop,u&&J.borderlessBottom,a&&J.borderlessX,J.borderBoxRoot,J.isolate,J.flexCol,o?J.calendarPrintRoot:J.calendarScreenRoot,(a||l||u)&&J.noEdgeEffects);return r.children("rtl"===s.direction,c,s.height,o)}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 ji{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()}}class Li{constructor(e){this.el=e,this.emitter=new Zr,this.isScroll=!1,this.isScrollRecent=!1,this.isWheelRecent=!1,this.isMouseDown=!1,this.isTouchDown=!1,this.isMouse=!1,this.isTouch=!1,this.isWheel=!1,this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.getIsUser()),this.isScrollRecent=!0,this.isMouseDown&&(this.isMouse=!0),this.isTouchDown&&(this.isTouch=!0),this.isWheelRecent&&(this.isWheel=!0),this.scrollWaiter.request(500)},this.handleScrollWait=()=>{this.isScrollRecent=!1,this.isTouchDown||this.endScroll()},this.handleWheel=()=>{this.isWheelRecent=!0,this.wheelWaiter.request(500)},this.handleWheelWait=()=>{this.isWheelRecent=!1},this.handleMouseDown=()=>{this.isMouseDown=!0},this.handleMouseUp=()=>{this.isMouseDown=!1},this.handleTouchStart=()=>{this.isTouchDown=!0},this.handleTouchEnd=()=>{this.isTouchDown=!1,this.isScrollRecent||this.endScroll()},this.wheelWaiter=new ji(this.handleWheelWait),this.scrollWaiter=new ji(this.handleScrollWait),e.addEventListener("scroll",this.handleScroll),e.addEventListener("wheel",this.handleWheel,{passive:!0}),e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("mouseup",this.handleMouseUp),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("wheel",this.handleWheel,{passive:!0}),e.removeEventListener("mousedown",this.handleMouseDown),e.removeEventListener("mouseup",this.handleMouseUp),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd)}startScroll(){this.isScroll||(this.isScroll=!0,this.emitter.trigger("scrollStart",this.getIsUser()))}endScroll(){this.isScroll&&(this.scrollWaiter.clear(),this.wheelWaiter.clear(),this.isScroll=!1,this.isWheelRecent=!1,this.emitter.trigger("scrollEnd",this.getIsUser()),this.isMouse=!1,this.isTouch=!1,this.isWheel=!1)}getIsUser(){return this.isWheel||this.isMouse||this.isTouch}}class Bi extends Qr{constructor(){super(...arguments),this.handleEl=e=>{this.el&&(this.el=null,this.listener.destroy()),e&&(this.el=e,this.listener=new Li(e))},this.handleHRuler=e=>{this.disconnectHRuler&&(this.disconnectHRuler(),this.disconnectHRuler=void 0,void 0!==this.clientWidth&&(this.clientWidth=void 0,Jr(this.props.clientWidthRef,null))),e&&(this.disconnectHRuler=jr(e,e=>{e!==this.clientWidth&&(this.clientWidth=e,Jr(this.props.clientWidthRef,e))}))},this.handleVRuler=e=>{this.disconnectVRuler&&(this.disconnectVRuler(),this.disconnectVRuler=void 0,void 0!==this.clientHeight&&(this.clientHeight=void 0,Jr(this.props.clientHeightRef,null))),e&&(this.disconnectVRuler=Lr(e,e=>{e!==this.clientHeight&&(this.clientHeight=e,Jr(this.props.clientHeightRef,e));const t=Math.round(this.el.getBoundingClientRect().height-e);t!==this.bottomScrollbarWidth&&(this.bottomScrollbarWidth=t,Jr(this.props.bottomScrollbarWidthRef,t))}))}}render(){const{props:e}=this,t=e.horizontal||e.vertical?"hidden":"";return ln("div",{ref:this.handleEl,className:Xe(e.className,J.noPadding,J.rel,e.hideScrollbars&&J.noScrollbars,J.internalScroller),style:Object.assign(Object.assign({},e.style),{overflowX:e.horizontal?"auto":t,overflowY:e.vertical?"auto":t})},e.children,Boolean(e.clientWidthRef)&&ln("div",{ref:this.handleHRuler,className:J.fillTop}),Boolean(e.clientHeightRef||e.bottomScrollbarWidthRef)&&ln("div",{ref:this.handleVRuler,className:J.fillStart}))}endScroll(){this.listener.endScroll()}get x(){const{el:e}=this;return e?Wi(e):0}get y(){const{el:e}=this;return e?e.scrollTop:0}scrollTo({x:e,y:t}){const{el:n}=this;n&&(null!=t&&(n.scrollTop=t),null!=e&&Vi(n,e))}addScrollEndListener(e){this.listener.emitter.on("scrollEnd",e)}removeScrollEndListener(e){this.listener.emitter.off("scrollEnd",e)}}function Wi(e){const{scrollLeft:t}=e;return xt(e)?function(e,t){switch(Fi()){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(t,e):t}function Vi(e,t){const n=xt(e);e.scrollLeft=n?function(e,t){switch(Fi()){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(t,e):t}let zi;function Fi(){return zi||(zi=function(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";let t,n=document.createElement("div");n.style.width="200px",n.style.height="200px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=50,t=e.scrollLeft>0?"reverse":"negative");return e.remove(),t}())}function Zi(e,t){let r=e.activeRange;return t?r:{start:n(r.start,e.slotMinTime.milliseconds),end:n(r.end,e.slotMaxTime.milliseconds-864e5)}}function Gi(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=ze(Yi(i,t,s),t,s);return r&&(n=We(n,r,s)),Ye(Xi(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return function(e,t,n,r,i){const{defIdMap:s,instanceIdMap:o}=function(e){const{defs:t,instances:n}=e,r={},i={};for(let e in t){const n=t[e],{publicId:i}=n;i&&(r[i]=e)}for(let e in n){const r=n[e],s=t[r.defId],{publicId:o}=s;o&&(i[o]=e)}return{defIdMap:r,instanceIdMap:i}}(e);return We(ze(Yi(n,t,i),t,i,!1,s,o),r,i)}(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=We(t,n,r));return Ye(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Ye(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?We(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,i={},s={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(s[e]=r[e]);return{defs:i,instances:s}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Xi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return qe(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Yi(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=qi(e,i)),r&&(e=qi(e,r)),e}function qi(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 $i(e,t,n){let{defs:r}=e,i=de(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:i}}function Xi(e,t){return qe(e,e=>e.sourceId!==t)}function Ki(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||Ji)(r,t)}function Ji(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let i=t.getCurrentData(),s=e.eventDrag,o=s.mutatedEvents,a=o.defs,l=o.instances,u=mi(a,s.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(u=de(u,r));let c=(p=e.eventStore,g=s.affectedEvents.instances,{defs:p.defs,instances:ce(p.instances,e=>!g[e.instanceId])}),d=c.defs,f=c.instances,h=mi(d,e.eventUiBases);var p,g;for(let r in l){let o=l[r],p=o.range,g=u[o.defId],m=a[o.defId];if(!Qi(g.constraints,p,c,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,y="function"==typeof v?v:null;for(let e in f){let n=f[e];if(S(p,n.range)){if(!1===h[n.defId].overlap&&s.isEvent)return!1;if(!1===g.overlap)return!1;if(y&&!y(new ci(t,d[n.defId],n),new ci(t,m,o)))return!1}}let _=i.eventStore;for(let e of g.allows){let i,s=Object.assign(Object.assign({},n),{range:o.range,allDay:m.allDay}),a=_.defs[m.defId],l=_.instances[r];if(i=a?new ci(t,a,l):new ci(t,m),!e(ii(s,t),i))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let i=e.eventStore,s=i.defs,o=i.instances,a=e.dateSelection,l=a.range,{selectionConfig:u}=t.getCurrentData();r&&(u=r(u));if(!Qi(u.constraints,l,i,e.businessHours,t))return!1;let{selectOverlap:c}=t.options,d="function"==typeof c?c:null;for(let e in o){let n=o[e];if(S(l,n.range)){if(!1===u.overlap)return!1;if(d&&!d(new ci(t,s[n.defId],n),null))return!1}}for(let e of u.allows){let r=Object.assign(Object.assign({},n),a);if(!e(ii(r,t),null))return!1}return!0}(e,t,n,r))}function Qi(e,t,n,r,i){for(let s of e)if(!ns(es(s,t,n,r,i),t))return!1;return!0}function es(e,t,n,r,i){return"businessHours"===e?ts(We(r,t,i)):"string"==typeof e?ts(qe(n,t=>t.groupId===e)):"object"==typeof e&&e?ts(We(e,t,i)):[]}function ts(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function ns(e,t){for(let n of e)if(C(n,t))return!0;return!1}class rs extends Error{constructor(e,t){super(e),this.response=t}}function is(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 rs("Failure parsing JSON",e)});throw new rs("Request failed",e)})}function ss(e){return"auto"===e.height||"auto"===e.contentHeight}class os extends fn{constructor(e,t){super(e,t),this.initialNowDate=ei(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,r=n(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=t.dateEnv.startOf(r,e.unit),s=t.dateEnv.add(i,N(1,e.unit)),o=s.valueOf()-r.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:i,todayRange:as(i)},nextState:{nowDate:s,todayRange:as(s)},waitMs:o}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function as(e){let n=a(e);return{start:n,end:t(n,1)}}os.contextType=qr;class ls extends Kr{constructor(){super(...arguments),this.id=ee(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&us(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&Jr(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:i,renderProps:s}=e,o=cs(e,"",this.handleEl);let a,l,u=!1,c=[];if(null!=r){const e="function"==typeof r?r(s,ln):r;if(!0===e)u=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?o.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?c=Array.prototype.slice.call(e.domNodes):(t?Gt(e):"function"!=typeof e)?a=e:l=e}}else u=!us(e.generatorName,n);return u&&i&&(a=i(s)),this.queuedDomNodes=c,this.currentGeneratorMeta=l,ln(e.tag,o,a)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=r.options;if(i){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==s?void 0:s[n.generatorName];r&&i(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!le(e,t)){for(const e of t)e.remove();for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function us(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function cs(e,t,n){const r=Object.assign(Object.assign({},e.attrs),{ref:n});return(e.className||t)&&(r.className=Xe(t,e.className,r.className)),e.style&&(r.style=e.style),r}ls.addPropsEquality({renderProps:me,attrs:function(e,t){const n=ye(e,t);for(let e of n)if(!Ct.test(e))return!1;return!0},style:me});const ds=Sr(0);class fs extends fn{constructor(){super(...arguments),this.InnerContent=hs.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(Jr(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=ps(e.classNameGenerator,e.renderProps);if(e.children){const n=cs(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.tag?ln(e.tag,n,r):r}return ln(ls,Object.assign(Object.assign({},e),{elRef:this.handleEl,tag:e.tag||"div",className:Xe(e.className,t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function hs(e,t){const n=e.props;return ln(ls,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function ps(e,t){return $e("function"==typeof e?e(t):e||[])}fs.contextType=ds;function gs(e){return ln(dn,null,e.timeText&&ln("div",{className:e.timeClass},e.timeText),ln("div",{className:e.titleClass},e.event.title||ln(dn,null," ")))}function ms(e){let{title:t}=e.event;return t&&ln("div",{className:e.titleClass},e.event.title)}class vs extends Qr{constructor(){super(...arguments),this.getDateMeta=Ee(Wt),this.closeRef={current:null},this.focusStartRef={current:null},this.focusEndRef={current:null},this.titleId=jt(),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)},this.handleDocumentMouseDown=e=>{const t=At(e);this.rootEl.contains(t)||this.handleClose()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleClose()},this.handleClose=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{props:e,context:t}=this,{options:n,dateEnv:r,viewApi:i}=t,{startDate:s,todayRange:o,dateProfile:a}=e,l=this.getDateMeta(s,r,a,o),[u,c]=r.format(s,n.dayPopoverFormat);const d=Object.assign(Object.assign({},l),{isMajor:!1,isNarrow:!1,isSticky:!1,inPopover:!0,level:0,hasNavLink:!1,text:u,textParts:c,get weekdayText(){return vt(c)},get dayNumberText(){return yt(c)},view:i}),f=Object.assign(Object.assign({},l),{isMajor:!1,isNarrow:!1,inPopover:!0,hasNavLink:!1,get dayNumberText(){return yt(c)},get monthText(){return _t(c)},view:i,text:"",textParts:[],options:{businessHours:Boolean(n.businessHours)}}),h=L(s),{dayHeaderAlign:p}=n,g="function"==typeof p?p({level:0,inPopover:!0,isNarrow:!1}):p,m=xt(e.alignEl);return sr(ln("div",{"data-date":h,id:e.id,role:"dialog","aria-labelledby":this.titleId,className:$e(n.popoverClass,J.flexCol,J.popoverZ,J.abs,J.internalPopover),dir:m?"rtl":void 0,ref:this.handleRootEl},ln("div",{tabIndex:0,style:{outline:"none"},ref:this.focusStartRef}),ln("div",{className:Xe(ps(n.dayHeaderClass,d),J.flexCol,J.borderOnlyB,"center"===g?J.alignCenter:"end"===g?J.alignEnd:J.alignStart)},ln("div",null,ln(fs,{tag:"div",attrs:{id:this.titleId},generatorName:"dayHeaderContent",renderProps:d,customGenerator:n.dayHeaderContent,defaultGenerator:ys,classNameGenerator:n.dayHeaderInnerClass,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount})),ln(fs,{tag:"button",attrs:Object.assign({"aria-label":n.closeHint},X(this.handleClose)),elRef:this.closeRef,className:$e(n.popoverCloseClass,J.flexRow,J.cursorPointer),renderProps:{},customGenerator:n.popoverCloseContent,generatorName:"popoverCloseContent"})),ln("div",{className:Xe(ps(n.dayCellClass,f),J.flexCol,J.borderNone)},ln("div",{className:ps(n.dayCellInnerClass,f)},e.children)),ln("div",{tabIndex:0,style:{outline:"none"},ref:this.focusEndRef})),Mt(e.alignEl))}queryHit(e,t,n,r,i){let{rootEl:s,props:o}=this;return t>=0&&t<r&&n>=0&&n<i?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!o.forceTimed,range:{start:o.startDate,end:o.endDate}},o.dateSpanProps),getDayEl:()=>s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.focusStartRef.current.addEventListener("focus",this.handleClose),this.focusEndRef.current.addEventListener("focus",this.handleClose),this.closeRef.current.focus({preventScroll:!0}),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.focusStartRef.current.removeEventListener("focus",this.handleClose),this.focusEndRef.current.removeEventListener("focus",this.handleClose)}updateSize(){let{alignEl:e,alignParentTop:t}=this.props,{rootEl:n}=this;const r=xt(e),i=function(e){let t=zr(e),n=e.getBoundingClientRect();for(let e of t){let t=bt(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(e);if(i){let s=n.getBoundingClientRect(),o=t?e.closest(t).getBoundingClientRect().top-1:i.top,a=r?i.right-s.width:i.left;o=Math.max(o,10),a=Math.min(a,document.documentElement.clientWidth-10-s.width),a=Math.max(a,10);let l=Mt(e),u=l.getBoundingClientRect?l.getBoundingClientRect():l.firstElementChild.getBoundingClientRect();Pt(n,{top:o-u.top,left:a-u.left})}}}function ys(e){return e.text}function _s(e){return e.text}function bs(e){return e.allDayDate?{start:e.allDayDate,end:t(e.allDayDate,1)}:{start:ki(e.hiddenSegs),end:Oi(e.hiddenSegs)}}const Es={id:String,defaultAllDay:Boolean,url:String,format:String,events:Le,eventDataTransform:Le,success:Le,failure:Le};function Ds(e,t,n=Ss(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:i,extra:s}=je(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}(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:ee(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Qe(i,t),extendedProps:s}}return null}function Ss(e){return Object.assign(Object.assign(Object.assign({},Ke),Es),e.pluginHooks.eventSourceRefiners)}class Cs{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){let e=0;for(;e++<3&&Ur();)br()}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:i}=this.getCurrentData(),s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let e in r)s.push(e);for(t=0;t<s.length;t+=1)if(n=r[s[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:ei(e.calendarOptions.now,e.dateEnv)})}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=N(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),Me(t))[0]}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),Me(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),i=Di(n,r.dateEnv,N({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),ri(i,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 ci){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Fe({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof ui)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=fe(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let i=st(e,n,r,!1);if(i){let e=new ci(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Fe(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:di(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new ci(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new ci(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return fi(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 ui(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 ui(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof ui)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=Ds(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new ui(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=N(e);t&&this.trigger("_timeScrollRequest",t)}}var ws={__proto__:null,BASE_OPTION_DEFAULTS:Ne,identity:Le,refineProps:je,createEventInstance:Be,parseEventDef:lt,refineEventDef:ot,parseBusinessHours:ct,parseFieldSpecs:te,compareByFieldSpecs:ne,flexibleCompare:ie,preventSelection:function(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Y)},allowSelection:function(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Y)},preventContextMenu:function(e){e.addEventListener("contextmenu",Y)},allowContextMenu:function(e){e.removeEventListener("contextmenu",Y)},compareNumbers:function(e,t){return e-t},enableCursor:function(){document.body.classList.remove(J.notAllowed)},disableCursor:function(){document.body.classList.add(J.notAllowed)},guid:ee,computeVisibleDayRange:ft,diffDates:ht,WEEKDAY_ONLY_FORMAT:mt,FULL_DATE_FORMAT:pt,findWeekdayText:vt,findDayNumberText:yt,findMonthText:_t,removeExact:function(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n},isArraysEqual:le,memoize:Ee,memoizeObjArg:De,intersectRects:bt,pointInsideRect:function(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom},constrainPoint:function(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}},getRectCenter:function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}},diffPoints:function(e,t){return{left:e.left-t.left,top:e.top-t.top}},translateRect:function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},mapHash:de,filterHash:ce,isPropsEqualShallow:me,isPropsEqualWithMap:ve,joinFuncishClassNames:kt,mergeContentInjectors:Ot,mergeLifecycleCallbacks:It,mergeCalendarOptions:Rt,mergeViewOptionsMap:Tt,getAppendableRoot:Mt,computeElIsRtl:xt,applyStyle:Pt,getEventTargetViaRoot:At,getUniqueDomId:jt,joinArrayishClassNames:$e,fracToCssDim:function(e){return 100*e+"%"},createEmptyEventStore:Ge,mergeEventStores:Ye,getRelevantEvents:Ze,eventTupleToStore:Fe,combineEventUis:et,createEventUi:Qe,Splitter:class{constructor(){this.getKeysForEventDefs=Ee(this._getKeysForEventDefs),this.splitDateSelection=Ee(this._splitDateSpan),this.splitEventStore=Ee(this._splitEventStore),this.splitIndividualUi=Ee(this._splitIndividualUi),this.splitEventDrag=Ee(this._splitInteraction),this.splitEventResize=Ee(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),a=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=de(t,(e,t)=>this.eventUiBuilders[t]||Ee(Bt));for(let n in t){let u=t[n],c=s[n]||Lt,d=this.eventUiBuilders[n];l[n]={businessHours:u.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:c,eventUiBases:d(e.eventUiBases[""],u.ui,i[n]),eventDrag:o[n]||null,eventResize:a[n]||null,eventSelection:c.instances[e.eventSelection]?e.eventSelection:""}}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 de(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]={defs:{},instances:{}}),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),s=r=>{t[r]||(t[r]={affectedEvents:n[r]||Lt,mutatedEvents:i[r]||Lt,isEvent:e.isEvent})};for(let e in n)s(e);for(let e in i)s(e)}return t}},getDateMeta:Wt,isDimsEqual:Vt,watchSize:Ar,watchWidth:jr,watchHeight:Lr,afterSize:function(e){Rr.add(e),kr||Or||(Or=!0,requestAnimationFrame(()=>{Or=!1,Ir()}))},buildNavLinkAttrs:function(e,t,n="day",r=Br(e,t,n),i=!0){const{dateEnv:s,options:o,calendarApi:a}=e,l=s.toDate(t),u=e=>{let r="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"==typeof r?r.call(a,s.toDate(t),e):("string"==typeof r&&(n=r),a.zoomTo(t,n))};return Object.assign({role:"link","aria-label":se(o.navLinkHint,[r,l],r),className:$e(o.navLinkClass,J.cursorPointer,J.internalNavLink)},i?X(u):{onClick:u})},buildDateStr:Br,preventDefault:Y,whenTransitionDone:function(e,t){let n=r=>{t(r),$.forEach(t=>{e.removeEventListener(t,n)})};$.forEach(t=>{e.addEventListener(t,n)})},computeInnerRect:function(e,t=!1,n){let r=n?e.getBoundingClientRect():Vr(e),i=Wr(e,t),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s},computeEdges:Wr,getClippingParents:zr,computeRect:Vr,unpromisify:Fr,Emitter:Zr,PositionCache:class{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Gr(this.tops||[],e.tops||[])&&Gr(this.bottoms||[],e.bottoms||[])&&Gr(this.lefts||[],e.lefts||[])&&Gr(this.rights||[],e.rights||[])}},ScrollController:Yr,ElementScrollController:class extends Yr{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}},WindowScrollController:class extends Yr{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}},ViewContextType:qr,DateComponent:Qr,DateProfileGenerator:ti,computeMajorUnit:function(e,t){const{currentRange:n}=e;if("year"===e.currentRangeUnit)return t.diffWholeYears(n.start,n.end)>1?"year":"month";if("month"===e.currentRangeUnit){if(t.diffWholeMonths(n.start,n.end)>1)return"month"}else if("week"===e.currentRangeUnit){if(s(n.start,n.end)>1)return"week"}else if("day"===e.currentRangeUnit&&o(n.start,n.end)>1)return"day"},isMajorUnit:ni,isDateSpansEqual:function(e,t){return D(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)},SegHierarchy:class{constructor(e,t=(e=>1),n=!1,r,i,s=!1,o=!1){this.getSegThickness=t,this.strictOrder=n,this.maxCoord=r,this.maxDepth=i,this.hiddenConsumes=s,this.allowSlicing=o,this.placementsByLevel=[],this.levelCoords=[],this.hiddenSegs=[];for(const t of e)this.insertSeg(t,this.getSegThickness(t))}insertSeg(e,t,n){if(null!=t){const r=this.findInsertion(e,t);if(this.isInsertionValid(r,t))this.insertSegAt(e,r,t,n);else{const{touchingPlacement:n}=r;if(n){if(this.hiddenConsumes&&!n.isZombie&&(n.isZombie=!0,this.hiddenSegs.push(n),this.allowSlicing)){const t=Object.assign({},n);Object.assign(n,wi(n,e)),n.isSlice=!0,this.splitSeg(t,n.thickness,n)}this.allowSlicing?(this.hiddenSegs.push(Object.assign(Object.assign({},e),wi(e,n))),this.splitSeg(e,t,n)):this.hiddenSegs.push(e)}else this.hiddenSegs.push(e)}}}isInsertionValid(e,t){return(null==this.maxCoord||e.levelCoord+t<=this.maxCoord)&&(null==this.maxDepth||e.depth<this.maxDepth)}splitSeg(e,t,n){e.start<n.start&&this.insertSeg(Object.assign(Object.assign({},e),{end:n.start,isEnd:!1}),t,!0),e.end>n.end&&this.insertSeg(Object.assign(Object.assign({},e),{start:n.end,isStart:!1}),t,!0)}insertSegAt(e,t,n,r){const i=Object.assign(Object.assign({},e),{thickness:n,depth:t.depth,isSlice:r||e.isSlice||!1,isZombie:!1});-1===t.lateralIndex?(xi(this.placementsByLevel,t.levelIndex,[i]),xi(this.levelCoords,t.levelIndex,t.levelCoord)):xi(this.placementsByLevel[t.levelIndex],t.lateralIndex,i)}findInsertion(e,t){let n,r,{placementsByLevel:i,levelCoords:s}=this,o=i.length,a=0,l=0;for(let u=0;u<o;u+=1){const o=s[u];if(!this.strictOrder&&o>=a+t)break;let c,d=i[u],[f,h]=Ni(d,e.start,Ri),p=f+h;for(;(c=d[p])&&c.start<e.end;){let e=o+c.thickness;e>a&&(a=e,n=c,r=u),e===a&&(l=Math.max(l,c.depth+1)),p+=1}}let u=0;if(n)for(u=r+1;u<o&&s[u]<a;)u+=1;let c=-1;return u<o&&s[u]===a&&([c]=Ni(i[u],e.end,Ri)),{touchingPlacement:n,levelCoord:a,levelIndex:u,lateralIndex:c,depth:l}}traverseSegs(e){const{placementsByLevel:t,levelCoords:n}=this;for(let r=0;r<t.length;r++){const i=t[r],s=n[r];for(const t of i)t.isZombie||e(t,s)}}},groupIntersectingSegs:function(e){let t=[];for(let i of e){let e=[],s={segs:[i],start:i.start,end:i.end};for(let i of t)r=s,(n=i).end>r.start&&n.start<r.end?s=Object.assign(Object.assign({},Ti(i,s)),{segs:i.segs.concat(s.segs)}):e.push(i);e.push(s),t=e}var n,r;return t.map(t=>Object.assign({key:j(ki(e))},t))},binarySearch:Ni,Interaction:Pi,interactionSettingsToStore:function(e){return{[e.component.uid]:e}},interactionSettingsStore:Hi,ElementDragging:class{constructor(e,t){this.emitter=new Zr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}},config:{},parseDragMeta:function(e){let{refined:t,extra:n}=je(e,Ai);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}},CalendarRoot:Ui,DaySeriesModel:class{constructor(e,n){let r=e.start,{end:i}=e,s=[],o=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),o.push(r)),r=t(r,1);this.dates=o,this.indices=s,this.cnt=o.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(t(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{start:i,end:s+1,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(r(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}},sliceEventStore:hi,hasBgRendering:function(e){return"background"===e.ui.display||"inverse-background"===e.ui.display},getElEventRange:gi,buildEventRangeTimeText:_i,sortEventSegs:function(e,t){let n=e.map(yi);return n.sort((e,n)=>ne(e,n,t)),n.map(e=>e._seg)},getEventRangeMeta:function(e,t,n){let r=e.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&w(t,r.start)}},buildEventRangeKey:function(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`},getEventTagAndAttrs:bi,getEventKey:function(e){return e.eventRange.instance.instanceId},DayTableModel:class{constructor(e,t,n,r=""){this.dateEnv=n,this.majorUnit=r;let i,s,o,{dates:a}=e;if(t){for(s=a[0].getUTCDay(),i=1;i<a.length&&a[i].getUTCDay()!==s;i+=1);o=Math.ceil(a.length/i)}else o=1,i=a.length;this.rowCount=o,this.colCount=i,this.daySeries=e,this.cellRows=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCount;t+=1){let n=[];for(let e=0;e<this.colCount;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCount+t];return{key:n.toISOString(),date:n,isMajor:this.cellIsMajor(n)}}cellIsMajor(e){return!!this.majorUnit&&ni(e,this.majorUnit,this.dateEnv)}buildHeaderDates(){let e=[];for(let t=0;t<this.colCount;t+=1)e.push(this.cellRows[0][t].date);return e}sliceRange(e){let{colCount:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){const{start:e,end:i}=n;let s=e;for(;s<i;){let o=Math.floor(s/t),a=Math.min((o+1)*t,i);r.push({row:o,start:s%t,end:(a-1)%t+1,isStart:n.isStart&&s===e,isEnd:n.isEnd&&a===i}),s=a}}return r}},Scroller:Bi,getNormalizedScrollX:Wi,setNormalizedScrollX:Vi,Slicer:class{constructor(){this.sliceBusinessHours=Ee(this._sliceBusinessHours),this.sliceDateSelection=Ee(this._sliceDateSpan),this.sliceEventStore=Ee(this._sliceEventStore),this.sliceEventDrag=Ee(this._sliceInteraction),this.sliceEventResize=Ee(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:s}=e,o=this.sliceEventStore(e.eventStore,s,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,s,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,s,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,r,i,...s){return this._sliceDateSpan({range:{start:e,end:n(e,1)},allDay:!1},t,r,{},i,...s)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(We(e,Zi(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=hi(e,t,Zi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let s=hi(e.mutatedEvents,t,Zi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...s){if(!e)return[];let o=Zi(t,Boolean(n)),a=E(e.range,o);if(a){let t=function(e,t,n){let r=ot({editable:!1},n),i=lt(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:vi(i,t),instance:Be(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:a}),r,i),n=this.sliceRange(e.range,...s);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,n){let r=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(r={start:r.start,end:t(r.start,1)});let i=this.sliceRange(r,...n);for(let t of i)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return i}},applyMutationToEventStore:oi,isPropsValid:Ji,isInteractionValid:function(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!C(t.validRange,r[e].range))return!1;return Ki({eventDrag:e},n)},isDateSelectionValid:function(e,t,n){return!!C(t.validRange,e.range)&&Ki({dateSelection:e},n)},requestJson:is,BaseComponent:Kr,setRef:Jr,DelayedRunner:ji,getStickyFooterScrollbar:function(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t=ss(e)),t},getStickyHeaderDates:function(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t=ss(e)),t},getIsHeightAuto:ss,getScrollerSyncerClass:function(e){const t=e.scrollerSyncerClass;if(!t)throw new RangeError("Must import @fullcalendar/scrollgrid");return t},Ruler:class extends Kr{constructor(){super(...arguments),this.elRef={current:null}}render(){return ln("div",{ref:this.elRef})}componentDidMount(){const{props:e}=this,t=this.elRef.current;this.disconnectWidth=jr(t,t=>{Jr(e.widthRef,t)})}componentWillUnmount(){this.disconnectWidth();const{props:e}=this;e.widthRef&&Jr(e.widthRef,null)}},RefMap:class{constructor(e){this.masterCallback=e,this.rev="",this.current=new Map,this.callbacks=new Map,this.handleValue=(e,t)=>{let{current:n,callbacks:r}=this;null===e?(n.delete(t),r.delete(t)):n.set(t,e),this.rev=ee(),this.masterCallback&&this.masterCallback(e,t)}}createRef(e){let t=this.callbacks.get(e);return t||(t=t=>{this.handleValue(t,e)},this.callbacks.set(e,t)),t}},NowTimer:os,StandardEvent:class extends Kr{constructor(){super(...arguments),this.buildPublicEvent=Ee((e,t,n)=>new ci(e,t,n)),this.handleEl=e=>{this.el=e,e&&pi(e,this.props.eventRange)}}render(){var e;const{props:t,context:n}=this,{options:r}=n,{eventRange:i}=t,s=i.ui,o=r.eventTimeFormat||t.defaultTimeFormat,a=null!==(e=t.forcedTimeText)&&void 0!==e?e:_i(o,i,t.slicedStart,t.slicedEnd,t.isStart,t.isEnd,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd),[l,u,c]=bi(i,n),d=this.buildPublicEvent(n,i.def,i.instance),f=!t.disableDragging&&function(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e,o=s.startEditable;for(let e of r)o=e(o,i,s,t);return o}(i,n),h=/row|column/.test(t.display),p={event:d,isNarrow:t.isNarrow||!1,isShort:t.isShort||!1,timeText:a},g={event:d,view:n.viewApi,timeText:a,color:s.color||r.eventColor,contrastColor:s.contrastColor||r.eventContrastColor,isDraggable:f,isStartResizable:!t.disableResizing&&t.isStart&&s.durationEditable&&r.eventResizableFromStart,isEndResizable:!t.disableResizing&&t.isEnd&&s.durationEditable,isMirror:t.isMirror,isStart:Boolean(t.isStart),isEnd:Boolean(t.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing),isInteractive:c,isNarrow:t.isNarrow||!1,isShort:t.isShort||!1,level:t.level||0,timeClass:Xe(ps(r.eventTimeClass,p),h&&ps(r.blockEventTimeClass,p),"row"===t.display&&ps(r.rowEventTimeClass,p),"column"===t.display&&ps(r.columnEventTimeClass,p),"list-item"===t.display&&ps(r.listItemEventTimeClass,p)),titleClass:Xe(ps(r.eventTitleClass,p),h&&ps(r.blockEventTitleClass,p),"row"===t.display&&ps(r.rowEventTitleClass,p),"column"===t.display&&ps(r.columnEventTitleClass,p),"list-item"===t.display&&ps(r.listItemEventTitleClass,p),"row"===t.display&&r.rowEventTitleSticky&&J.stickyS,"column"===t.display&&r.columnEventTitleSticky&&J.stickyT),options:{eventOverlap:Boolean(r.eventOverlap)}},m=$e(h&&ps(r.blockEventClass,g),"row"===t.display&&ps(r.rowEventClass,g),"column"===t.display&&ps(r.columnEventClass,g),"list-item"===t.display&&ps(r.listItemEventClass,g),s.className,t.className,"column"===t.display?J.flexCol:J.flexRow,i.def.url&&J.inheritTextDecoration,(i.def.url||f)&&J.cursorPointer,J.internalEvent,t.isMirror&&J.internalEventMirror,f&&J.internalEventDraggable,g.isSelected&&J.internalEventSelected,(g.isStartResizable||g.isEndResizable)&&J.internalEventResizable),v=Xe(ps(r.eventBeforeClass,g),h&&ps(r.blockEventBeforeClass,g),"row"===t.display&&ps(r.rowEventBeforeClass,g),"column"===t.display&&ps(r.columnEventBeforeClass,g),"list-item"===t.display&&ps(r.listItemEventBeforeClass,g)),y=Xe(ps(r.eventAfterClass,g),h&&ps(r.blockEventAfterClass,g),"row"===t.display&&ps(r.rowEventAfterClass,g),"column"===t.display&&ps(r.columnEventAfterClass,g),"list-item"===t.display&&ps(r.listItemEventAfterClass,g)),_=Xe(ps(r.eventInnerClass,g),h&&ps(r.blockEventInnerClass,g),"row"===t.display&&ps(r.rowEventInnerClass,g),"column"===t.display&&ps(r.columnEventInnerClass,g),"list-item"===t.display&&ps(r.listItemEventInnerClass,g),!t.disableLiquid&&J.liquid),b="row"===t.display&&r.rowEventBeforeContent,E="row"===t.display&&r.rowEventAfterContent;return ln(fs,{tag:l,attrs:Object.assign(Object.assign(Object.assign({},t.attrs),u),{dir:t.isDragging&&"rtl"===r.direction?"rtl":void 0}),className:m,style:{"--fc-event-color":g.color,"--fc-event-contrast-color":g.contrastColor},elRef:this.handleEl,renderProps:g,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:gs,classNameGenerator:r.eventClass,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e=>ln(dn,null,Boolean(g.isSelected&&h)&&ln("div",{className:"column"===t.display?J.hitX:J.hitY}),(v||b)&&ln("div",{className:Xe(v,!t.disableZindexes&&J.z1,g.isStartResizable&&Xe("column"===t.display?J.cursorResizeT:J.cursorResizeS,J.internalEventResizer,J.internalEventResizerStart))},b&&ln(fs,{tag:"div",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:g,generatorName:void 0,customGenerator:b}),Boolean(g.isStartResizable&&g.isSelected)&&ln("div",{className:J.hit})),ln(e,{tag:"div",className:Xe(_,!t.disableZindexes&&J.z0)}),(y||E)&&ln("div",{className:Xe(y,!t.disableZindexes&&J.z1,g.isEndResizable&&Xe("column"===t.display?J.cursorResizeB:J.cursorResizeE,J.internalEventResizer,J.internalEventResizerEnd))},E&&ln(fs,{tag:"div",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:g,generatorName:void 0,customGenerator:E}),Boolean(g.isEndResizable&&g.isSelected)&&ln("div",{className:J.hit}))))}componentDidUpdate(e){this.el&&this.props.eventRange!==e.eventRange&&pi(this.el,this.props.eventRange)}},NowIndicatorHeaderContainer:e=>ln(qr.Consumer,null,t=>{let{options:n}=t,r={date:t.dateEnv.toDate(e.date),view:t.viewApi};return ln(fs,Object.assign({},e,{tag:e.tag||"div",renderProps:r,generatorName:"nowIndicatorHeaderContent",customGenerator:n.nowIndicatorHeaderContent,classNameGenerator:n.nowIndicatorHeaderClass,didMount:n.nowIndicatorHeaderDidMount,willUnmount:n.nowIndicatorHeaderWillUnmount}))}),NowIndicatorLineContainer:e=>ln(qr.Consumer,null,t=>{let{options:n}=t,r={date:t.dateEnv.toDate(e.date),view:t.viewApi};return ln(fs,Object.assign({},e,{tag:e.tag||"div",renderProps:r,generatorName:"nowIndicatorLineContent",customGenerator:n.nowIndicatorLineContent,classNameGenerator:n.nowIndicatorLineClass,didMount:n.nowIndicatorLineDidMount,willUnmount:n.nowIndicatorLineWillUnmount}))}),NowIndicatorDot:e=>ln(qr.Consumer,null,t=>{let{options:n}=t;return ln("div",{className:$e(e.className,n.nowIndicatorDotClass),style:e.style})}),renderFill:function(e,t){return ln("div",{className:$e("non-business"===e?t.nonBusinessClass:"highlight"===e?t.highlightClass:void 0,J.fill)})},BgEvent:class extends Kr{constructor(){super(...arguments),this.buildPublicEvent=Ee((e,t,n)=>new ci(e,t,n)),this.handleEl=e=>{this.el=e,e&&pi(e,this.props.eventRange)}}render(){const{props:e,context:t}=this,{eventRange:n}=e,{options:r}=t,i=n.ui,s=this.buildPublicEvent(t,n.def,n.instance),o={event:s,isNarrow:e.isNarrow||!1,isShort:e.isShort||!1},a={event:s,view:t.viewApi,timeText:"",color:i.color||r.backgroundEventColor,contrastColor:i.contrastColor,isDraggable:!1,isStartResizable:!1,isEndResizable:!1,isMirror:!1,isStart:e.isStart,isEnd:e.isEnd,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:!1,isDragging:!1,isResizing:!1,isInteractive:!1,level:0,isNarrow:e.isNarrow||!1,isShort:e.isShort||!1,timeClass:"",titleClass:Xe(ps(r.eventTitleClass,o),ps(r.backgroundEventTitleClass,o)),options:{eventOverlap:Boolean(r.eventOverlap)}},l=$e(ps(r.backgroundEventClass,a),i.className,J.fill,J.internalEvent,J.internalBgEvent,e.isVertical?J.flexCol:J.flexRow),u=Xe(ps(r.eventInnerClass,a),ps(r.backgroundEventInnerClass,a),J.liquid);return ln(fs,{tag:"div",className:l,style:{"--fc-event-color":a.color,"--fc-event-contrast-color":a.contrastColor},defaultGenerator:ms,elRef:this.handleEl,renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,classNameGenerator:r.eventClass,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e=>ln(e,{tag:"div",className:u}))}componentDidUpdate(e){this.el&&this.props.eventRange!==e.eventRange&&pi(this.el,this.props.eventRange)}},MoreLinkContainer:class extends Kr{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:jt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Jr(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{dateEnv:r,options:i}=n,{moreLinkClick:s}=i,o=bs(t).start;function a(e){let{def:t,instance:i,range:s}=e.eventRange;return{event:new ci(n,t,i),start:r.toDate(s.start),end:r.toDate(s.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof s&&(s=s({date:r.toDate(o),allDay:Boolean(t.allDayDate),allSegs:t.segs.map(a),hiddenSegs:t.hiddenSegs.map(a),jsEvent:e,view:n.viewApi})),s&&"popover"!==s?"string"==typeof s&&n.calendarApi.zoomTo(o,s):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.linkEl&&this.linkEl.focus(),this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return ln(qr.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,a=e.hiddenSegs.length,l=bs(e),u="+"+a,c="function"==typeof o?o.call(s,a):`${u} ${o}`,d=se(i.moreLinkHint,[a],c),f={num:a,numericText:u,longText:c,text:e.isMicro||"column"===e.display?u:c,isNarrow:e.isNarrow,view:r};return ln(dn,null,Boolean(a)&&ln(fs,{tag:"div",elRef:this.handleLinkEl,className:Xe(ps("row"===e.display?i.rowMoreLinkClass:i.columnMoreLinkClass,f),e.className,"row"===e.display?J.flexRow:J.flexCol,J.internalMoreLink,J.cursorPointer),style:e.style,attrs:Object.assign(Object.assign(Object.assign({},e.attrs),X(this.handleClick)),{title:d,role:"button","aria-haspopup":"dialog","aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:void 0}),renderProps:f,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:_s,classNameGenerator:i.moreLinkClass,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},t=>ln(t,{tag:"div",className:Xe(ps(i.moreLinkInnerClass,f),ps("row"===e.display?i.rowMoreLinkInnerClass:i.columnMoreLinkInnerClass,f),"row"===e.display?J.stickyS:J.stickyT)})),t.isPopoverOpen&&ln(vs,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,dateSpanProps:e.dateSpanProps,alignEl:e.alignElRef?e.alignElRef.current:this.linkEl,alignParentTop:e.alignParentTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}},ViewContainer:class extends Kr{render(){let{props:e,context:t}=this,{options:n}=t;return ln(fs,Object.assign({},e,{tag:e.tag||"div",attrs:e.attrs,className:Xe(e.className,e.borderlessX&&J.borderlessX,e.borderlessTop&&J.borderlessTop,e.borderlessBottom&&J.borderlessBottom,e.noEdgeEffects&&J.noEdgeEffects),renderProps:{view:t.viewApi},classNameGenerator:n.viewClass,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}},triggerDateSelect:ri,getDefaultEventEnd:si,CalendarImpl:Cs,EventImpl:ci,buildEventApis:fi,buildElAttrs:cs,ContentContainer:fs,renderText:function(e){return e.text},generateClassName:ps,CustomRenderingStore:class extends class{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)}}{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)}},computeEarliestStart:ki,computeLatestEnd:Oi,getCoordRangeEnd:Ri,FooterScrollbar:class extends Kr{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return ln("div",{ref:this.rootElRef,className:Xe(J.footerScrollbar,e.isSticky&&J.footerScrollbarSticky)},ln(Bi,{horizontal:!0,ref:e.scrollerRef},ln("div",{style:{minWidth:e.canvasWidth}})))}componentDidMount(){this.disconnectHeight=Lr(this.rootElRef.current,e=>{Jr(this.props.scrollbarWidthRef,e)})}componentWillUnmount(){this.disconnectHeight(),Jr(this.props.scrollbarWidthRef,null)}},createFormatter:Me,rangeContainsMarker:w,intersectRanges:E,rangesEqual:D,rangesIntersect:S,rangeContainsRange:C,addDays:t,startOfDay:a,addMs:n,addWeeks:function(e,t){let n=f(e);return n[2]+=7*t,h(n)},diffWeeks:function(e,t){return r(e,t)/7},diffWholeWeeks:s,diffWholeDays:o,diffDayAndTime:i,diffDays:r,isValidDate:p,createDuration:N,asCleanDays:function(e){return e.years||e.months||e.milliseconds?0:e.days},multiplyDuration:function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}},addDurations:function(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}},asRoughMinutes:function(e){return A(e)/6e4},asRoughSeconds:function(e){return A(e)/1e3},asRoughMs:A,wholeDivideDurations:function(e,t){let n=null;for(let r=0;r<M.length;r+=1){let i=M[r];if(t[i]){let r=e[i]/t[i];if(!k(r)||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n},greatestDurationDenominator:U,DateEnv:F,formatIsoTimeString:function(e){return I(e.getUTCHours(),2)+":"+I(e.getUTCMinutes(),2)+":"+I(e.getUTCSeconds(),2)},formatDayString:L,buildIsoString:j,formatIsoMonthStr:function(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]},NamedTimeZoneImpl:class{constructor(e){this.timeZoneName=e}},parseMarker:z,padStart:I,isInt:k,trimEnd:O};const Ts=[],Rs={code:"en",week:{dow:0,doy:4},direction:"ltr",todayText:"Today",prevText:"Prev",nextText:"Next",prevYearText:"Prev year",nextYearText:"Next year",yearText:"Year",monthText:"Month",weekText:"Week",dayText:"Day",listText:"List",closeHint:"Close",eventsHint:"Events",allDayText:"All-day",timedText:"Timed",moreLinkText:"more",noEventsText:"No events to display"},ks=Object.assign(Object.assign({},Rs),{weekTextShort:"W",todayHint:(e,t)=>"day"===t?"Today":"This "+e,prevHint:"Previous $0",nextHint:"Next $0",viewHint:"$0 view",viewChangeHint:"Change view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function Os(e){let t=e.length>0?e[0].code:"en",n=Ts.concat(e),r={en:ks};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function Is(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||ks;return Ms(e,n,r)}(e,t):Ms(e.code,[e.code],e)}function Ms(e,t,n){let r=Rt(Rs,n);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function xs(e){return{id:ee(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollerSyncerClass:e.scrollerSyncerClass||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},optionDefaults:e.optionDefaults?[e.optionDefaults]:[],propSetHandlers:e.propSetHandlers||{}}}function Ns(){let e,t=[],n=[];return(r,i)=>(e&&le(r,t)&&le(i,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollerSyncerClass:null,listenerRefiners:{},optionRefiners:{},optionDefaults:[],propSetHandlers:{}};function i(e){for(let o of e){const e=o.name,a=n[e];void 0===a?(n[e]=o.id,i(o.deps),s=o,r={premiumReleaseDate:Ps((t=r).premiumReleaseDate,s.premiumReleaseDate),reducers:t.reducers.concat(s.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:t.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),s.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(s.dateSpanTransforms),views:Tt(t.views,s.views),viewPropsTransformers:t.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(s.calendarInteractions),componentInteractions:t.componentInteractions.concat(s.componentInteractions),eventSourceDefs:t.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||s.initialView,elementDraggingImpl:t.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),s.optionChangeHandlers),scrollerSyncerClass:t.scrollerSyncerClass||s.scrollerSyncerClass,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),s.optionRefiners),optionDefaults:t.optionDefaults.concat(s.optionDefaults),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),s.propSetHandlers)}):a!==o.id&&console.warn(`Duplicate plugin '${e}'`)}var t,s}return e&&i(e),i(t),r}(r,i)),t=r,n=i,e)}function Ps(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}function Hs(e,t,n,r){if(t[e])return t[e];let i=function(e,t,n,r){let i=n[e],s=r[e],o=e=>i&&null!==i[e]?i[e]:s&&null!==s[e]?s[e]:null,a=o("component"),l=o("superType"),u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=Hs(l,t,n,r)}!a&&u&&(a=u.component);if(!a)return null;return{type:e,component:a,defaults:Rt(u?u.defaults:{},i?i.rawOptions:{}),overrides:Rt(u?u.overrides:{},s?s.rawOptions:{})}}(e,t,n,r);return i&&(t[e]=i),i}function As(e){return de(e,Us)}function Us(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=js(t):!n||n.prototype instanceof Kr||(n=js(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function js(e){return t=>ln(qr.Consumer,null,n=>{var r;return ln(fs,{tag:"div",className:ps(e.viewClass,{view:n.viewApi}),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:e.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:null!==(r=e.class)&&void 0!==r?r:e.className,didMount:e.didMount,willUnmount:e.willUnmount})})}function Ls(e,t,n){let r=As(e),i=As(t.views);return de(function(e,t){let n,r={};for(n in e)Hs(n,r,e,t);for(n in t)Hs(n,r,e,t);return r}(r,i),e=>function(e,t,n,r){let i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,s=null,o="",a="",l={};if(i&&(s=function(e){let t=JSON.stringify(e),n=Bs[t];void 0===n&&(n=N(e),Bs[t]=n);return n}(i),s)){let e=U(s);o=e.unit,1===e.value&&(a=o,l=t[o]?t[o].rawOptions:{})}return{type:e.type,component:e.component,duration:s,durationUnit:o,singleUnit:a,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},l),e.overrides)}}(e,i,t,n))}let Bs={};function Ws(e,t,n){let r=t?t.activeRange:null;return Fs({},function(e,t){let n=Ss(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(let e of r){let r=Ds(e,t,n);r&&i.push(r)}return i}(e,n),r,n)}function Vs(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Fs(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return s=e,o=t.sourceId,ce(s,e=>e.sourceId!==o);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Zs(e,i,r):e;case"FETCH_EVENT_SOURCES":return Gs(e,t.sourceIds?he(t.sourceIds):qs(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var s,o}function zs(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Fs(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=Zs(i,n,r)),Object.assign(Object.assign({},e),i)}function Zs(e,t,n){return Gs(e,ce(e,e=>function(e,t,n){if(!$s(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)),t,!1,n)}function Gs(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=Ys(a,n,r,i):s[o]=a}return s}function Ys(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=ee();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},n=>{let{rawEvents:o}=n;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(s,o,n.response)||o),e.success&&(o=e.success.call(s,o,n.response)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:o})},n=>{let o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,n),o=!0),e.failure&&(e.failure(n),o=!0),o||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function qs(e,t){return ce(e,e=>$s(e,t))}function $s(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Xs(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Ks(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function Js(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Qs(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function eo(e,t,n){return{header:e.headerToolbar?to(e.headerToolbar,e,t,n):null,footer:e.footerToolbar?to(e.footerToolbar,e,t,n):null}}function to(e,t,n,r){let i="rtl"===t.direction,s=[],o=!1;function a(e){let i=function(e,t,n,r){let i=t.buttons||{},s=t.toolbarElements||{},o=e?e.split(" "):[],a=[],l=!1;return{widgets:o.map(e=>e.split(",").map(e=>{var o;if("title"===e)return l=!0,{name:e};if(s[e])return{name:e,customElement:s[e]};let u,c,d,f,h=i[e]||{};if(u=n[e]){a.push(e);const n=u.optionDefaults.buttonTextKey;c=h.text||(n?t[n]:"")||(u.singleUnit?t[u.singleUnit+"Text"]:"")||e,d=se(h.hint||t.viewHint,[c,e],c),f=t=>{var n;null===(n=null==h?void 0:h.click)||void 0===n||n.call(h,t),t.defaultPrevented||r.changeView(e)}}else c=h.text||t[e+"Text"]||e,d="prevYear"===e?se(h.hint||t.prevHint,[t.yearText,"year"],c):"nextYear"===e?se(h.hint||t.nextHint,[t.yearText,"year"],c):n=>se(h.hint||t[e+"Hint"],[t[n+"Text"],n],c),f=t=>{var n,i;null===(n=null==h?void 0:h.click)||void 0===n||n.call(h,t),t.defaultPrevented||null===(i=r[e])||void 0===i||i.call(r)};return{name:e,isView:Boolean(u),buttonText:c,buttonHint:d,buttonDisplay:h.display,buttonIconClass:h.iconClass,buttonIconContent:h.iconContent,buttonClick:f,buttonIsPrimary:h.isPrimary||!1,buttonClass:null!==(o=h.class)&&void 0!==o?o:h.className,buttonDidMount:h.didMount,buttonWillUnmount:h.willUnmount}})),viewsWithButtons:a,hasTitle:l}}(e,t,n,r);return s.push(...i.viewsWithButtons),o=o||i.hasTitle,i.widgets}return{sectionWidgets:{start:a(e[i?"right":"left"]||e.start||""),center:a(e.center||""),end:a(e[i?"left":"right"]||e.end||"")},viewsWithButtons:s,hasTitle:o}}class no{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}function ro(e,t){let n=fe(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const io=[xs({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),xs({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;Fr(e.eventSource.meta.bind(null,Si(e.range,r)),e=>t({rawEvents:e}),n)}}]}),xs({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Le,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){const{meta:r}=e.eventSource,i=function(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,u={};r=e.startParam,null==r&&(r=l.startParam);i=e.endParam,null==i&&(i=l.endParam);s=e.timeZoneParam,null==s&&(s=l.timeZoneParam);o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(u,o),u[r]=a.formatIso(t.start),u[i]=a.formatIso(t.end),"local"!==a.timeZone&&(u[s]=a.timeZone);return u}(r,e.range,e.context);is(r.method,r.url,i).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),xs({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let i,s={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(i=e.duration),!i&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,i={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:s}}var n,r;return null},expand(e,n,r){let i=E(n,{start:e.startRecur,end:e.endRecur});return i?function(e,n,r,i){let s=e?he(e):null,o=a(r.start),l=r.end,u=[];for(;o<l;){let e;s&&!s[o.getUTCDay()]||(e=n?i.add(o,n):o,u.push(e)),o=t(o,1)}return u}(e.daysOfWeek,e.startTime,i,r):[]}}],eventRefiners:{daysOfWeek:Le,startTime:N,endTime:N,duration:N,startRecur:Le,endRecur:Le}}),xs({name:"change-handler",optionChangeHandlers:{controller(e,t){e._setApi(t.calendarApi)},events(e,t){ro([e],t)},eventSources:ro}}),xs({name:"misc",isLoadingFuncs:[e=>zs(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Si(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",fi(e,t))}}})];class so{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new ji(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function oo(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,Me(t.titleFormat||function(e,t){let{currentRangeUnit:n}=e;if("year"===n)return{year:"numeric"};if("month"===n)return{year:"numeric",month:"long"};let r=o(e.currentRange.start,e.currentRange.end);if(null!==r&&r>1)return{year:"numeric",month:t.getMonth(e.activeRange.start)!==t.getMonth(e.activeRange.end)?"short":"long"};return{year:"numeric",month:"long",day:"numeric"}}(e,n)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class ao{constructor(e){this.computeCurrentViewData=Ee(this._computeCurrentViewData),this.organizeRawLocales=Ee(Os),this.buildLocale=Ee(Is),this.buildPluginHooks=Ns(),this.buildDateEnv=Ee(lo),this.parseToolbars=Ee(eo),this.buildViewSpecs=Ee(Ls),this.buildDateProfileGenerator=De(uo),this.buildViewApi=Ee(co),this.buildViewUiProps=De(po),this.buildEventUiBySource=Ee(fo,me),this.buildEventUiBases=Ee(ho),this.parseContextBusinessHours=De(mo),this.buildTitle=Ee(oo),this.emitter=new Zr,this.actionRunner=new so(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);const s=n.calendarOptions.controller;s&&s._setApi(e.calendarApi);let o=function(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):ei(e.now,t)}(n.calendarOptions,n.dateEnv),a=i.dateProfileGenerator.build(o);w(a.activeRange,o)||(o=a.currentRange.start);let l={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(l);let u=Ws(n.calendarOptions,a,l),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:o,dateProfile:a,businessHours:this.parseContextBusinessHours(l),eventSources:u,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},d=Object.assign(Object.assign({},l),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,d));go(c,l)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=function(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(n.currentViewType,e),a=this.computeCurrentViewData(o,s,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(a.options);let l={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:c}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(c=a.dateProfileGenerator.build(u)),u=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(u,e),c=function(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i}return e}(c,e,u,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&w(c.currentRange,u)||(u=c.currentRange.start);let d=Vs(n.eventSources,e,c,l),f=Gi(n.eventStore,e,d,c,l),h=zs(d)&&!a.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:p,selectionConfig:g}=this.buildViewUiProps(l),m=this.buildEventUiBySource(d),v={dynamicOptionOverrides:i,currentViewType:o,currentDate:u,dateProfile:c,eventSources:d,eventStore:f,renderableEventStore:h,selectionConfig:g,eventUiBases:this.buildEventUiBases(h.defs,p,m),businessHours:this.parseContextBusinessHours(l),dateSelection:Xs(n.dateSelection,e),eventSelection:Ks(n.eventSelection,e),eventDrag:Js(n.eventDrag,e),eventResize:Qs(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of s.pluginHooks.reducers)Object.assign(v,t(n,e,y));let _=go(n,l),b=go(v,l);!_&&b?r.trigger("loading",!0):_&&!b&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),s=this.buildTitle(t.dateProfile,i.options,r.dateEnv),o=this.data=Object.assign(Object.assign(Object.assign({viewTitle:s,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),a=r.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,u=r.calendarOptions;if(l&&l!==u){l.timeZone!==u.timeZone&&(t.eventSources=o.eventSources=function(e,t,n){let r=t?t.activeRange:null;return Gs(e,qs(e,n),r,!0,n)}(o.eventSources,t.dateProfile,o),t.eventStore=o.eventStore=$i(o.eventStore,n.dateEnv,o.dateEnv),t.renderableEventStore=o.renderableEventStore=$i(o.renderableEventStore,n.dateEnv,o.dateEnv));for(let e in a)-1===this.optionsForHandling.indexOf(e)&&l[e]===u[e]||a[e](u[e],o)}this.optionsForHandling=[],e.onData&&e.onData(o)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o}=this.processRawCalendarOptions(e,t),a=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,r.weekTextShort,i,o,r.defaultRangeSeparator),l=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides),u=this.parseToolbars(r,l,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:a,viewSpecs:l,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Rt(Ne,e,t),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],io),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),Pe),He),a.listenerRefiners),a.optionRefiners),u=Rt(Ne,...a.optionDefaults,o,vo(Rt(e,t),l)),c={},d=this.currentCalendarOptionsInput,f=this.currentCalendarOptionsRefined,h=!1;for(let e in u)-1===this.optionsForRefining.indexOf(e)&&(u[e]===d[e]||Ue[e]&&e in d&&Ue[e](d[e],u[e])||d[e]&&d[e].parts&&u[e]&&u[e].parts&&le(d[e].parts,u[e].parts))?c[e]=f[e]:l[e]&&(c[e]=l[e](u[e]),h=!0);return h&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=c,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:i,localeDefaults:o}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);return{viewSpec:i,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,i){let s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),Pe),He),Ae),t.listenerRefiners),t.optionRefiners),o=Rt(Ne,...t.optionDefaults,e.optionDefaults,n,vo(Rt(r,e.optionOverrides,i),s)),a={},l=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,c=!1;for(let e in o)o[e]===l[e]||Ue[e]&&Ue[e](o[e],l[e])||l[e]&&l[e].parts&&o[e]&&o[e].parts&&le(l[e].parts,o[e].parts)?a[e]=u[e]:(o[e]===this.currentCalendarOptionsInput[e]||Ue[e]&&Ue[e](o[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(a[e]=this.currentCalendarOptionsRefined[e]):s[e]&&(a[e]=s[e](o[e])),c=!0);return c&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined}}}function lo(e,t,n,r,i,s,o,a,l){let u=Is(t||a.defaultCode,a.map);return new F({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:u,weekNumberCalculation:n,firstDay:r,weekText:i,weekTextShort:s,cmdFormatter:o.cmdFormatter,defaultSeparator:l})}function uo(e){return new(e.dateProfileGeneratorClass||ti)(e)}function co(e,t,n){return new no(e,t,n)}function fo(e){return de(e,e=>e.ui)}function ho(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function po(e){const{options:t}=e;return{eventUiSingleBase:Qe({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow},e),selectionConfig:Qe({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function go(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function mo(e){return ct(e.options.businessHours,e)}function vo(e,t){const n={};for(const r in e)t[r]&&(n[r]=e[r]);return n}class yo extends Pi{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=gi(t);i&&n.isValidSegDownEl(e.target)&&r.emitter.trigger("eventClick",{el:t,event:new ci(n.context,i.def,i.instance),jsEvent:e,view:r.viewApi})},this.destroy=q(e.el,"click","."+J.internalEvent,this.handleSegClick)}}class _o extends Pi{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{gi(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let i;return q(e,"mouseover",t,(e,t)=>{if(t!==i){i=t,n(e,t);let s=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",s)};t.addEventListener("mouseleave",s)}})}(e.el,"."+J.internalEvent,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=gi(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new ci(i,s.def,s.instance),jsEvent:t,view:i.viewApi})}}class bo extends Kr{render(){const{contentGenerator:e,className:t}=this.props;return e?ln(fs,{tag:"span",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:{},generatorName:void 0,customGenerator:e}):void 0!==t?ln("span",{"aria-hidden":!0,className:t}):void 0}}class Eo extends Kr{render(){let{props:e}=this,{options:t}=this.context,n=e.widgetGroups.map(e=>this.renderWidgetGroup(e));return ln("div",{className:ps(t.toolbarSectionClass,{name:e.name})},...n)}renderWidgetGroup(e){var t;let{props:n,context:r}=this,{options:i}=r,s=[],o=!0,a=!0;for(const t of e){const{name:e,isView:n}=t;"title"===e?o=!1:n||(a=!1)}for(let r of e){let{name:l,customElement:u,buttonHint:c}=r;if("title"===l)s.push(ln("div",{role:"heading","aria-level":i.headingLevel,id:n.titleId,className:$e(i.toolbarTitleClass)},n.title));else if(u)s.push(ln(fs,{tag:"span",style:{display:"contents"},renderProps:{},generatorName:void 0,customGenerator:u}));else{let u,d=l===n.selectedButton,f=!n.isTodayEnabled&&"today"===l||!n.isPrevEnabled&&"prev"===l||!n.isNextEnabled&&"next"===l,h=null!==(t=r.buttonDisplay)&&void 0!==t?t:i.buttonDisplay;"auto"===h&&(h=r.buttonIconContent||r.buttonIconClass?"icon":"text"),"text"!==h&&(u=ln(bo,{className:r.buttonIconClass,contentGenerator:r.buttonIconContent}));let p=e.length>1&&o,g=p&&a,m={name:l,text:r.buttonText,isPrimary:r.buttonIsPrimary,isSelected:d,isDisabled:f,isIconOnly:"icon"===h,inGroup:p,inSelectGroup:g};s.push(ln(fs,{tag:"button",attrs:Object.assign(Object.assign({type:"button",disabled:f},o&&a?{role:"tab","aria-selected":d}:{"aria-pressed":d}),{"aria-label":"function"==typeof c?c(n.navUnit):c,onClick:r.buttonClick}),className:Xe(ps(i.buttonClass,m),!f&&J.cursorPointer,p&&Xe(d?J.z1:J.z0,J.focusZ2)),renderProps:m,generatorName:void 0,classNameGenerator:r.buttonClass,didMount:r.buttonDidMount,willUnmount:r.buttonWillUnmount},()=>"text"===h?r.buttonText:"icon"===h?u:"icon-text"===h?ln(dn,null,u,r.buttonText):ln(dn,null,r.buttonText,u)))}}return s.length>1?ln("div",{role:o&&a?"tablist":void 0,"aria-label":o&&a?i.viewChangeHint:void 0,className:Xe(ps(i.buttonGroupClass,{isSelectGroup:a}),J.isolate)},...s):s[0]}}class Do extends Kr{render(){let{props:e}=this,t=this.context.options,{sectionWidgets:n}=e.model;return ln("div",{className:Xe(e.className,ps(t.toolbarClass,{borderlessX:e.borderlessX}))},this.renderSection("start",n.start),this.renderSection("center",n.center),this.renderSection("end",n.end))}renderSection(e,t){let{props:n}=this;return ln(Eo,{key:e,name:e,widgetGroups:t,title:n.title,titleId:n.titleId,navUnit:n.navUnit,selectedButton:n.selectedButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})}}class So extends Xr{constructor(){super(...arguments),this.buildViewContext=Ee($r),this.buildViewPropTransformers=Ee(Co),this.interactionsStore={},this.viewTitleId=jt(),this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[yo,_o];t.disableHits||(r=r.concat(this.props.pluginHooks.componentInteractions));let i=r.map(e=>new e(n));this.interactionsStore[e.uid]=i,Hi[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete Hi[e.uid]}}render(){var e;let t,n,{props:r}=this,{toolbarProps:i,toolbarConfig:s,options:o}=r,a=!1;r.forPrint||ss(o)||(null!=o.height?a=!0:null!=o.contentHeight?t=o.contentHeight:n=Math.max(o.aspectRatio,.5));let l=this.buildViewContext(r.viewSpec,r.viewApi,r.options,r.dateProfileGenerator,r.dateEnv,r.pluginHooks,r.dispatch,r.getCurrentData,r.emitter,r.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=null!==(e=o.borderlessX)&&void 0!==e?e:o.borderless;return ln(qr.Provider,{value:l},s.header&&ln(Do,Object.assign({className:ps(o.headerToolbarClass,{borderlessX:u}),model:s.header,borderlessX:u,titleId:this.viewTitleId},i)),ln("div",{className:Xe(J.flexCol,J.rel,a&&J.liquid),style:{height:t,paddingBottom:null!=n?1/n*100+"%":void 0}},this.renderView(Xe((a||t)&&J.liquid,null!=n&&J.fill,J.internalView),i.title),this.buildAppendContent()),s.footer&&ln(Do,Object.assign({className:ps(o.footerToolbarClass,{borderlessX:u}),model:s.footer,borderlessX:u},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e));let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return ln(dn,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e,t){var n,r,i;let{props:s}=this,{pluginHooks:o,viewSpec:a,toolbarConfig:l,options:u}=s,{borderless:c}=u,d=null!==(n=u.borderlessX)&&void 0!==n?n:c,f=null!==(r=u.borderlessTop)&&void 0!==r?r:c,h=null!==(i=u.borderlessBottom)&&void 0!==i?i:c,p={className:e,dateProfile:s.dateProfile,businessHours:s.businessHours,eventStore:s.renderableEventStore,eventUiBases:s.eventUiBases,dateSelection:s.dateSelection,eventSelection:s.eventSelection,eventDrag:s.eventDrag,eventResize:s.eventResize,forPrint:s.forPrint,labelId:l.header&&l.header.hasTitle?this.viewTitleId:void 0,labelStr:l.header&&l.header.hasTitle?void 0:t,borderlessX:d,borderlessTop:!l.header&&f,borderlessBottom:!l.footer&&h,noEdgeEffects:d||f||h},g=this.buildViewPropTransformers(o.viewPropsTransformers);for(let e of g)Object.assign(p,e.transform(p,s));return ln(a.component,Object.assign({},p))}}function Co(e){return e.map(e=>new e)}function wo(e,t,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:s,selectedButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!w(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}const To={text:"",hint:"",isDisabled:!1};function Ro(e){let t=Is(e.locale||"en",Os([]).map);return new F(Object.assign(Object.assign({timeZone:Ne.timeZone,calendarSystem:"gregory"},e),{locale:t}))}return e.Calendar=class extends Cs{constructor(e,t={}){super(),this.buildToolbarProps=Ee(wo),this.isRendering=!1,this.isRendered=!1,this.currentClassName="",this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;Er(()=>{Mn(ln(Ui,{options:e.calendarOptions,emitter:e.emitter},(t,n,r,i)=>{this.setIsRtl(t),this.setClassName(n),this.setHeight(r);const s=this.toolbarProps=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,ei(e.options.now,e.dateEnv),e.viewTitle);return ln(ds.Provider,{value:this.customContentRenderId},ln(So,Object.assign({forPrint:i,toolbarProps:s},e)))}),this.el)})}else this.isRendered&&(this.isRendered=!1,Mn(null,this.el),this.setIsRtl(!1),this.setClassName(""),this.setHeight(""))},this.el=e,this.renderRunner=new ji(this.handleRenderRequest),new ao({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}getButtonState(){var e;const{currentData:t,toolbarProps:n}=this,r=t.calendarOptions,i=r.buttons||{},s=t.viewSpecs,o={today:{text:r.todayText,hint:r.todayHint,isDisabled:!n.isTodayEnabled},prev:{text:r.prevText,hint:r.prevHint,isDisabled:!n.isPrevEnabled},next:{text:r.nextText,hint:r.nextHint,isDisabled:!n.isNextEnabled},prevYear:{text:r.prevYearText,hint:se(r.prevHint,[r.yearText,"year"],r.prevYearText),isDisabled:!1},nextYear:{text:r.prevYearText,hint:se(r.nextHint,[r.yearText,"year"],r.nextYearText),isDisabled:!1}};for(const t in s){const n=s[t],a=n.optionDefaults.buttonTextKey,l=(null===(e=i[t])||void 0===e?void 0:e.text)||(a?r[a]:"")||(n.singleUnit?r[n.singleUnit+"Text"]:"")||t,u=se(r.viewHint,[l,t],l);o[t]={text:l,hint:u}}return o}setClassName(e){if(e!==this.currentClassName){let{classList:t}=this.el;for(let e of this.currentClassName.split(" "))e&&t.remove(e);for(let n of e.split(" "))n&&t.add(n);this.currentClassName=e}}setHeight(e){Ht(this.el,"height",e)}setIsRtl(e){e?this.el.dir="rtl":this.el.removeAttribute("dir")}},e.CalendarController=class{constructor(e){this.handleDateChange=e}today(){var e;null===(e=this.calendarApi)||void 0===e||e.today()}prev(){var e;null===(e=this.calendarApi)||void 0===e||e.prev()}next(){var e;null===(e=this.calendarApi)||void 0===e||e.next()}prevYear(){var e;null===(e=this.calendarApi)||void 0===e||e.prevYear()}nextYear(){var e;null===(e=this.calendarApi)||void 0===e||e.nextYear()}gotoDate(e){var t;null===(t=this.calendarApi)||void 0===t||t.gotoDate(e)}incrementDate(e){var t;null===(t=this.calendarApi)||void 0===t||t.incrementDate(e)}changeView(e){var t;null===(t=this.calendarApi)||void 0===t||t.changeView(e)}get view(){var e;return null===(e=this.calendarApi)||void 0===e?void 0:e.view}getDate(){var e;return null===(e=this.calendarApi)||void 0===e?void 0:e.getDate()}getButtonState(){const{calendarApi:e}=this;return e&&e.getButtonState()||{today:To,prev:To,next:To,prevYear:To,nextYear:To}}_setApi(e){this.calendarApi!==e&&(this.calendarApi&&(this.calendarApi.off("datesSet",this.handleDateChange),this.calendarApi=void 0),e&&(this.calendarApi=e,e.on("datesSet",this.handleDateChange)))}},e.Internal=ws,e.InternalClassNames=J,e.JsonRequestError=rs,e.Preact=wr,e.createPlugin=xs,e.formatDate=function(e,t={}){let n=Ro(t),r=Me(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo})[0]:""},e.formatRange=function(e,t,n){let r=Ro("object"==typeof n&&n?n:{}),i=Me(n),s=r.createMarkerMeta(e),o=r.createMarkerMeta(t);return s&&o?r.formatRange(s.marker,o.marker,i,{forcedStartTzo:s.forcedTzo,forcedEndTzo:o.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:Ne.defaultRangeSeparator}):""},e.globalLocales=Ts,e.globalPlugins=io,e.joinClassNames=Xe,e.sliceEvents=function(e,t){return hi(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.version="7.0.0-beta.5",Object.defineProperty(e,"__esModule",{value:!0}),e}({});
6
+ var FullCalendar=function(e){"use strict";function t(e,t){let n=f(e);return n[2]+=t,h(n)}function n(e,t){let n=f(e);return n[6]+=t,h(n)}function r(e,t){return(t.valueOf()-e.valueOf())/864e5}function i(e,t){let n=a(e),i=a(t);return{years:0,months:0,days:Math.round(r(n,i)),milliseconds:t.valueOf()-i.valueOf()-(e.valueOf()-n.valueOf())}}function s(e,t){let n=o(e,t);return null!==n&&n%7==0?n/7:null}function o(e,t){return g(e)===g(t)?Math.round(r(e,t)):null}function a(e){return h([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function l(e,t,n,i){let s=h([t,0,1+u(t,n,i)]),o=a(e),l=Math.round(r(s,o));return Math.floor(l/7)+1}function u(e,t,n){let r=7+t-n;return-((7+h([e,0,r]).getUTCDay()-t)%7)+r-1}function c(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function d(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 f(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function h(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function p(e){return!isNaN(e.valueOf())}function g(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}let m={};var v,y;function _(e,t){let n,r,i=[],{start:s}=t;for(e.sort(b),n=0;n<e.length;n+=1)r=e[n],r.start>s&&i.push({start:s,end:r.start}),r.end>s&&(s=r.end);return s<t.end&&i.push({start:s,end:t.end}),i}function b(e,t){return e.start.valueOf()-t.start.valueOf()}function E(e,t){let{start:n,end:r}=e,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function S(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 D(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function C(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function w(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function T(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 R(e,t,n,r){let i=T(e,n.calendarSystem);return{date:i,start:i,end:t?T(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}function k(e){return e%1==0}function O(e){return e.replace(/\s+$/,"")}function I(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}v="gregory",y=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return h(e)}markerToArray(e){return f(e)}},m[v]=y;const M=["years","months","days","milliseconds"],x=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function N(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?P(e):"number"==typeof e?P({[t||"milliseconds"]:e}):null}function P(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 H(e){return A(e)/864e5}function A(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function U(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 j(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",B(t,!0)))),r}function L(e){return e.toISOString().replace(/T.*$/,"")}function B(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=Math.round(r%60);return t?`${n+I(i,2)}:${I(s,2)}`:`GMT${n}${i}${s?":"+I(s,2):""}`}function W(e){let t="";for(const n of e)t+=n.value;return t}const V=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function z(e){let t=V.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(p(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 F{constructor(e){var t;let n=this.timeZone=e.timeZone,r="local"!==n&&"UTC"!==n;e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=Boolean(!r||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new m[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=e.weekText,this.weekTextShort=null!==(t=e.weekTextShort)&&void 0!==t?t:e.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()):h(c(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=h(e)),null!==t&&p(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=z(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 g(e)===g(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 g(e)===g(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=s(e,t),null!==n?{unit:"week",value:n}:(n=o(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),k(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),k(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),k(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/(H(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return H(e)/30}(n):n.days&&(r=o(e,t),null!==r)?r/H(n):(t.valueOf()-e.valueOf())/A(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?a(e):"hour"===t?function(e){return h([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return h([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return h([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(),i=l(e,r,t,n);if(i<1)return l(e,r-1,t,n);let s=l(e,r+1,t,n);return s>=1?Math.min(i,s):i}(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,r,i={}){return i.isEndExclusive&&(t=n(t,-1)),r.formatRange({marker:e,timeZoneOffset:null!=i.forcedStartTzo?i.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=i.forcedEndTzo?i.forcedEndTzo:this.offsetForMarker(t)},this,i.defaultSeparator)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),j(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?h(c(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?h(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-d(f(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(f(e)):null}toDate(e,t){return"local"===this.timeZone?d(f(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(f(e))*60):new Date(e.valueOf()-(t||0))}}class Z{constructor(e){this.cmdStr=e}format(e,t,n){const r=t.cmdFormatter(this.cmdStr,R(e,null,t,n));return"object"==typeof r?[W(r),r]:[r,[{type:"literal",value:r}]]}formatRange(e,t,n,r){const i=n.cmdFormatter(this.cmdStr,R(e,t,n,r));return"object"==typeof i?W(i):i}}class G{constructor(e){this.func=e}format(e,t,n){const r=this.func(R(e,null,t,n));return[r,[{type:"literal",value:r}]]}formatRange(e,t,n,r){return this.func(R(e,t,n,r))}}function Y(e){e.preventDefault()}function q(e,t,n,r){let i=function(e,t){return n=>{let r=n.target.closest(e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}const $=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function X(e){return Object.assign({onClick:e},K(e))}function K(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var J={popoverZ:"fc-b6",isolate:"fc-Cu",borderBoxRoot:"fc-Bn",notAllowed:"fc-5y",noScrollbars:"fc-mU",noShrink:"fc-dq",calendarScreenRoot:"fc-EL",safeTiles:"fc-xq",calendarPrintRoot:"fc-K5",cursorPointer:"fc-Y2",cursorResizeT:"fc-cs",cursorResizeB:"fc-rC",cursorResizeS:"fc-ns",cursorResizeE:"fc-EB",cursorColResizer:"fc-Aa",hit:"fc-jM",hitX:"fc-5w",hitY:"fc-i5",hitXSkinny:"fc-zF",selectNone:"fc-rz",borderNone:"fc-X8",borderOnlyT:"fc-vj",borderOnlyB:"fc-UZ",borderOnlyS:"fc-mQ",borderOnlyE:"fc-X1",borderlessX:"fc-Cg",borderlessY:"fc-VQ",borderlessTop:"fc-a6",borderlessBottom:"fc-TW",fakeBorderS:"fc-zS",flexRow:"fc-y2",flexCol:"fc-pu",grow:"fc-4V",liquid:"fc-no",liquidX:"fc-Wa",printRoot:"fc-mg",printHeader:"fc-SN",tight:"fc-ec",noPadding:"fc-wp",noMargin:"fc-Kw",noMarginY:"fc-0O",noMarginX:"fc-R5",rigid:"fc-0I",crop:"fc-iX",cropNowrap:"fc-cr",noEdgeEffects:"fc-tU",rel:"fc-ig",abs:"fc-VV",start0:"fc-99",fill:"fc-f4",fillTop:"fc-M6",fillX:"fc-QA",fillY:"fc-IC",fillStart:"fc-xI",sticky:"fc-qW",stickyT:"fc-hq",stickyS:"fc-oe",tableHeaderSticky:"fc-wB",contentBox:"fc-TV",offscreen:"fc-BP",alignCenter:"fc-IX",alignStart:"fc-Cj",alignEnd:"fc-7k",inheritTextDecoration:"fc-B7",footerScrollbarSticky:"fc-aa",footerScrollbar:"fc-rR",breakInsideAvoid:"fc-ms",printSiblingRow:"fc-LB",z0:"fc-Bs",z1:"fc-jo",focusZ2:"fc-i1",internalTimelineSlot:"fc-v3",internalEvent:"fc-gI",internalEventMirror:"fc-IL",internalEventDraggable:"fc-Es",internalEventSelected:"fc-P6",internalEventResizable:"fc-Wp",internalEventResizer:"fc-WB",internalEventResizerStart:"fc-pe",internalEventResizerEnd:"fc-0l",internalBgEvent:"fc-eR",internalMoreLink:"fc-na",internalNavLink:"fc-3e",internalPopover:"fc-q5",internalView:"fc-I5",internalScroller:"fc-vD"};let Q=0;function ee(){return Q+=1,String(Q)}function te(e){let t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)n=i[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function ne(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=re(e,t,n[r]),i)return i;return 0}function re(e,t,n){return n.func?n.func(e,t):ie(e[n.field],t[n.field])*(n.order||1)}function ie(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 se(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce((e,t,n)=>e.replace("$"+n,t||""),e):n}function oe(e,t){return e===t}function ae(e,t){return Array.isArray(e)&&Array.isArray(t)?le(e,t):e===t}function le(e,t,n=oe){if(e===t)return!0;let r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!n(e[r],t[r]))return!1;return!0}const{hasOwnProperty:ue}=Object.prototype;function ce(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function de(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function fe(e){let t=[];for(let n in e)t.push(e[n]);return t}function he(e){let t={};for(let n of e)t[n]=!0;return t}function pe(e,t,n){if(e===t)return!0;for(let n in e)if(ue.call(e,n)&&!(n in t))return!1;for(let r in t)if(ue.call(t,r)&&(!(r in e)||!n(e[r],t[r],r)))return!1;return!0}function ge(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?me(e,t):e===t}function me(e,t){return pe(e,t,oe)}function ve(e,t,n){return pe(e,t,(e,t,r)=>{const i=n[r];return i?i(e,t):e===t})}function ye(e,t){let n=[];for(let r in e)ue.call(e,r)&&(r in t||n.push(r));for(let r in t)ue.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function _e(e,t){return"object"==typeof e&&e&&"object"==typeof t&&t?be(e,t):void 0===t?e:t}function be(e,t){return Object.assign({},e,t)}function Ee(e,t,n){let r,i;return function(...s){if(r){if(!le(r,s)){n&&n(i);let r=e.apply(this,s);t&&t(r,i)||(i=r)}}else i=e.apply(this,s);return r=s,i}}function Se(e,t,n){let r,i;return s=>{if(r){if(!me(r,s)){n&&n(i);let r=e.call(this,s);t&&t(r,i)||(i=r)}}else i=e.call(this,s);return r=s,i}}const De={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0,forceCommas:0,weekdayJustify:0},Ce={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},we=/([ap])\.?m\.?/i,Te=/,/g,Re=/\s+/g,ke=/\u200e/g;class Oe{constructor(e){let t={},n={},r=7;for(let i in e)if(i in De){n[i]=e[i];const t=De[i];t&&(r=Math.min(t,r))}else if(t[i]=e[i],i in Ce){const e=Ce[i];e&&(r=Math.min(e,r))}this.standardDateProps=t,this.extendedSettings=n,this.minSeverity=r,this.buildFormattingFunc=Ee(Ie)}format(e,t){const n=this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e);return[W(n),n]}formatRange(e,t,n,r){let{standardDateProps:i,extendedSettings:s}=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(g(e)!==g(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!o)return this.format(e,n)[0];let a=o;!(a>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(a=1);let[l]=this.format(e,n),[u]=this.format(t,n);if(l===u)return l;let c=Ie(function(e,t){let n={};for(let r in e)(!(r in Ce)||Ce[r]<=t)&&(n[r]=e[r]);return n}(i,a),s,n),d=c(e),f=c(t),h=function(e,t,n,r){let i=0;for(;i<e.length;){let s=e.indexOf(t,i);if(-1===s)break;let o=e.substr(0,s);i=s+t.length;let a=e.substr(i),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 i=n.substr(l);if(o===t&&a===i)return{before:o,after:a}}}return null}(l,d,u,f),p=s.separator||r||n.defaultSeparator||"";return h?h.before+d+p+f+h.after:l+p+u}getSmallestUnit(){switch(this.minSeverity){case 2:return"day";case 3:return"week";case 4:return"month";case 5:case 6:return"year";default:return"time"}}}function Ie(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>[{type:"timeZoneName",value:B(e.timeZoneOffset)}]:0===r&&t.week?e=>function(e,t,n,r,i){let s=[];"long"===i?s.push({type:"literal",value:t}):"short"!==i&&"narrow"!==i||s.push({type:"literal",value:n});"long"!==i&&"short"!==i||s.push({type:"literal",value:" "});s.push({type:"week",value:r.simpleNumberFormat.format(e)}),"rtl"===r.options.direction&&s.reverse();return s}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextShort,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,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return s=>{let o,{marker:a}=s;return o=r&&!a.getUTCMinutes()?r:i,function(e,t,n,r,i){let s,o="short"===n.timeZoneName&&("UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":B(t.timeZoneOffset)),a=!1;for(const t of e){const e="literal"===t.type;if(e||"dayPeriod"===t.type){let n=t.value;if(n=n.replace(ke,""),r.omitCommas&&(n=n.replace(Te,"")),!e){const{meridiem:e}=r;!1===e?n=n.replace(we,""):"narrow"===e?n=n.replace(we,(e,t)=>t.toLocaleLowerCase()):"short"===e?n=n.replace(we,(e,t)=>t.toLocaleLowerCase()+"m"):"lowercase"===e&&(n=n.replace(we,e=>e.toLocaleLowerCase())),s&&(s.value=O(s.value))}n=n.replace(Re," "),t.value=n}else"timeZoneName"===t.type&&o&&(t.value=o,a=!0);s=e?t:void 0}o&&!a&&(s?s.value+=" ":e.push({type:"literal",value:" "}),e.push({type:"timeZoneName",value:o}));r.weekdayJustify&&3===e.length&&" "===e[1].value&&"weekday"===e["start"===r.weekdayJustify?2:0].type&&e.reverse();r.forceCommas&&(e=e.map(e=>" "===e.value?Object.assign(Object.assign({},e),{value:", "}):e));return e.filter(e=>e.value)}(o.formatToParts(a),s,e,t,n)}}(e,t,n)}function Me(e){return"object"==typeof e&&e?new Oe(e):"string"==typeof e?new Z(e):"function"==typeof e?new G(e):null}const xe={navLinkDayClick:Le,navLinkWeekClick:Le,duration:N,buttons:Le,toolbarElements:Le,prevText:String,nextText:String,prevYearText:String,nextYearText:String,todayText:String,yearText:String,monthText:String,weekText:String,weekTextShort:String,dayText:String,listText:Le,todayHint:Le,prevHint:Le,nextHint:Le,buttonDisplay:Le,buttonGroupClass:Le,buttonClass:Le,defaultAllDayEventDuration:N,defaultTimedEventDuration:N,nextDayThreshold:N,scrollTime:N,scrollTimeReset:Boolean,slotMinTime:N,slotMaxTime:N,dayPopoverFormat:Me,slotDuration:N,snapDuration:N,headerToolbar:Le,footerToolbar:Le,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayLaneClass:Le,dayLaneInnerClass:Le,dayLaneDidMount:Le,dayLaneWillUnmount:Le,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:Le,weekNumbers:Boolean,weekNumberHeaderClass:Le,weekNumberHeaderInnerClass:Le,weekNumberHeaderContent:Le,weekNumberHeaderDidMount:Le,weekNumberHeaderWillUnmount:Le,inlineWeekNumberClass:Le,inlineWeekNumberContent:Le,inlineWeekNumberDidMount:Le,inlineWeekNumberWillUnmount:Le,editable:Boolean,controller:Le,viewClass:Le,viewDidMount:Le,viewWillUnmount:Le,nowIndicator:Boolean,nowIndicatorHeaderClass:Le,nowIndicatorHeaderContent:Le,nowIndicatorHeaderDidMount:Le,nowIndicatorHeaderWillUnmount:Le,nowIndicatorDotClass:Le,nowIndicatorLineClass:Le,nowIndicatorLineContent:Le,nowIndicatorLineDidMount:Le,nowIndicatorLineWillUnmount:Le,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:Le,locale:Le,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:Le,eventOrder:te,eventOrderStrict:Boolean,eventSlicing:Boolean,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:Le,contentHeight:Le,direction:String,weekNumberFormat:Me,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,progressiveEventRendering:Boolean,businessHours:Le,initialDate:Le,now:Le,eventDataTransform:Le,stickyHeaderDates:Le,stickyFooterScrollbar:Le,defaultAllDay:Boolean,eventSourceFailure:Le,eventSourceSuccess:Le,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:Le,eventConstraint:Le,eventAllow:Le,eventColor:String,eventContrastColor:String,eventDidMount:Le,eventWillUnmount:Le,eventContent:Le,backgroundEventColor:String,eventClass:Le,eventInnerClass:Le,eventTimeClass:Le,eventTitleClass:Le,eventBeforeClass:Le,eventAfterClass:Le,listItemEventClass:Le,listItemEventInnerClass:Le,listItemEventTimeClass:Le,listItemEventTitleClass:Le,listItemEventBeforeClass:Le,listItemEventAfterClass:Le,blockEventClass:Le,blockEventInnerClass:Le,blockEventTimeClass:Le,blockEventTitleClass:Le,blockEventBeforeClass:Le,blockEventAfterClass:Le,rowEventClass:Le,rowEventInnerClass:Le,rowEventTimeClass:Le,rowEventTitleClass:Le,rowEventTitleSticky:Boolean,rowEventBeforeClass:Le,rowEventBeforeContent:Le,rowEventAfterClass:Le,rowEventAfterContent:Le,columnEventClass:Le,columnEventInnerClass:Le,columnEventTimeClass:Le,columnEventTitleClass:Le,columnEventTitleSticky:Boolean,columnEventBeforeClass:Le,columnEventAfterClass:Le,backgroundEventClass:Le,backgroundEventInnerClass:Le,backgroundEventTitleClass:Le,selectConstraint:Le,selectOverlap:Le,selectAllow:Le,droppable:Boolean,unselectCancel:String,slotHeaderFormat:Le,slotLaneClass:Le,slotLaneDidMount:Le,slotLaneWillUnmount:Le,slotHeaderClass:Le,slotHeaderInnerClass:Le,slotHeaderContent:Le,slotHeaderDidMount:Le,slotHeaderWillUnmount:Le,slotHeaderAlign:Le,slotHeaderSticky:Le,slotHeaderRowClass:Le,slotHeaderDividerClass:Le,dayMaxEvents:Le,dayMaxEventRows:Le,dayMinWidth:Number,slotHeaderInterval:N,dayHeaderClass:Le,dayHeaderInnerClass:Le,dayHeaderContent:Le,dayHeaderDidMount:Le,dayHeaderWillUnmount:Le,dayHeaderAlign:Le,dayHeaderSticky:Le,dayHeaderRowClass:Le,dayHeaderDividerClass:Le,dayRowClass:Le,dayCellDidMount:Le,dayCellWillUnmount:Le,dayCellClass:Le,dayCellInnerClass:Le,dayCellTopContent:Le,dayCellTopClass:Le,dayCellTopInnerClass:Le,dayCellBottomClass:Le,allDaySlot:Boolean,allDayText:String,allDayHeaderClass:Le,allDayHeaderInnerClass:Le,allDayHeaderContent:Le,allDayHeaderDidMount:Le,allDayHeaderWillUnmount:Le,timedText:String,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Me,rerenderDelay:Number,moreLinkText:Le,moreLinkHint:Le,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:Le,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:N,hiddenDays:Le,fixedWeekCount:Boolean,validRange:Le,visibleRange:Le,titleFormat:Le,eventInteractive:Boolean,noEventsText:String,viewHint:Le,viewChangeHint:String,navLinkHint:Le,closeHint:String,eventsHint:String,headingLevel:Number,moreLinkClick:Le,moreLinkContent:Le,moreLinkDidMount:Le,moreLinkWillUnmount:Le,moreLinkClass:Le,moreLinkInnerClass:Le,rowMoreLinkClass:Le,rowMoreLinkInnerClass:Le,columnMoreLinkClass:Le,columnMoreLinkInnerClass:Le,navLinkClass:Le,monthStartFormat:Me,dayCellFormat:Me,handleCustomRendering:Le,customRenderingMetaMap:Le,customRenderingReplaces:Boolean,class:Le,className:Le,popoverClass:Le,popoverCloseClass:Le,popoverCloseContent:Le,dayNarrowWidth:Number,borderless:Boolean,borderlessX:Boolean,borderlessTop:Boolean,borderlessBottom:Boolean,fillerClass:Le,headerToolbarClass:Le,footerToolbarClass:Le,toolbarClass:Le,toolbarSectionClass:Le,toolbarTitleClass:Le,tableClass:Le,tableHeaderClass:Le,tableBodyClass:Le,nonBusinessClass:Le,highlightClass:Le},Ne={buttonDisplay:"auto",eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",initialView:"",aspectRatio:1.35,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:"",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},dayCellFormat:{day:"numeric"},headingLevel:2,outerBorder:!0,dayNarrowWidth:80,eventOverlap:!0,slotHeaderAlign:"start",slotHeaderSticky:!0,dayHeaderAlign:"start",dayHeaderSticky:!0,rowEventTitleSticky:!0,columnEventTitleSticky:!0},Pe={datesSet:Le,eventsSet:Le,eventAdd:Le,eventChange:Le,eventRemove:Le,eventClick:Le,eventMouseEnter:Le,eventMouseLeave:Le,select:Le,unselect:Le,loading:Le,_unmount:Le,_beforeprint:Le,_afterprint:Le,_noEventDrop:Le,_noEventResize:Le,_timeScrollRequest:Le},He={views:Le,plugins:Le,initialEvents:Le,events:Le,eventSources:Le},Ae={type:String,component:Le,buttonTextKey:String,dateProfileGeneratorClass:Le,usesMinMaxTime:Boolean,class:Le,className:Le,content:Le,didMount:Le,willUnmount:Le},Ue={headerToolbar:ge,footerToolbar:ge,dateIncrement:ge,buttons:function(e,t){return"object"==typeof e&&e&&"object"==typeof t&&t?pe(e,t,me):e===t},plugins:ae,events:ae,eventSources:ae,resources:ae};function je(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 Le(e){return e}function Be(e,t,n,r){return{instanceId:ee(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function We(e,t,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=e;a=ce(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?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let l=Ve(n,o,t,r,i.recurringTypes);for(let t of l){let n=Be(e,{start:t,end:r.add(t,o)});a[n.instanceId]=n}}}return{defs:o,instances:a}}function Ve(e,t,n,r,i){let s=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(a)),s}function ze(e,t,n,r,i,s){let o={defs:{},instances:{}},a=at(n);for(let l of e){let e=st(l,t,n,r,a,i,s);e&&Fe(e,o)}return o}function Fe(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ze(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=qe(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 Ge(){return{defs:{},instances:{}}}function Ye(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function qe(e,t){let n=ce(e.defs,t),r=ce(e.instances,e=>n[e.defId]);return{defs:n,instances:r}}function $e(...e){const t=[];for(const n of e)Array.isArray(n)?t.push(...n):t.push(n);return Xe(...t)}function Xe(...e){return e.filter(Boolean).join(" ")}const Ke={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:Le,overlap:Le,allow:Le,class:Le,className:Le,color:String,contrastColor:String},Je={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],color:"",contrastColor:"",className:""};function Qe(e,t){var n;let r=function(e,t){return Array.isArray(e)?ze(e,null,t,!0):"object"==typeof e&&e?ze([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!=r?[r]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],color:e.color||"",contrastColor:e.contrastColor||"",className:(null!==(n=e.class)&&void 0!==n?n:e.className)||""}}function et(e){return e.reduce(tt,Je)}function tt(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),color:t.color||e.color,contrastColor:t.contrastColor||e.contrastColor,className:$e(e.className,t.className)}}const nt={id:String,groupId:String,title:String,url:String,interactive:Boolean},rt={start:Le,end:Le,date:Le,allDay:Boolean},it=Object.assign(Object.assign(Object.assign({},nt),rt),{extendedProps:Le});function st(e,t,n,r,i=at(n),s,o){let{refined:l,extra:u}=ot(e,n,i),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 i=0;i<r.length;i+=1){let s=r[i].parse(e,n);if(s){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=s.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}(l,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let e=lt(l,u,t?t.sourceId:"",d.allDay,Boolean(d.duration),n,s);return e.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:e,instance:null}}let f=function(e,t,n,r){let i,s,{allDay:o}=e,l=null,u=!1,c=null,d=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(d),i)l=i.marker;else if(!r)return null;null!=e.end&&(s=n.dateEnv.createMarkerMeta(e.end));null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!s||s.isTimeUnspecified));o&&l&&(l=a(l));s&&(c=s.marker,o&&(c=a(c)),l&&c<=l&&(c=null));c?u=!0:r||(u=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:o,hasEnd:u,range:{start:l,end:c},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:s?s.forcedTzo:null}}(l,c,n,r);if(f){let e=lt(l,u,t?t.sourceId:"",f.allDay,f.hasEnd,n,s),r=Be(e.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return o&&e.publicId&&o[e.publicId]&&(r.instanceId=o[e.publicId]),{def:e,instance:r}}return null}function ot(e,t,n=at(t)){return je(e,n)}function at(e){return Object.assign(Object.assign(Object.assign({},Ke),it),e.pluginHooks.eventRefiners)}function lt(e,t,n,r,i,s,o){let a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(o&&e.id?o[e.id]:"")||ee(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Qe(e,s),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of s.pluginHooks.eventDefMemberAdders)Object.assign(a,t(e));return Object.freeze(a.ui.className),Object.freeze(a.extendedProps),a}const ut={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",className:"",groupId:"_businessHours"};function ct(e,t){return ze(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({},ut),e)),t}(e),null,t)}function dt(e){let n=Math.floor(r(e.start,e.end))||1,i=a(e.start);return{start:i,end:t(i,n)}}function ft(e,n=N(0)){let r=null,i=null;if(e.end){i=a(e.end);let r=e.end.valueOf()-i.valueOf();r&&r>=A(n)&&(i=t(i,1))}return e.start&&(r=a(e.start),i&&i<=r&&(i=t(r,1))),{start:r,end:i}}function ht(e,t,n,r){return"year"===r?N(n.diffWholeYears(e,t),"year"):"month"===r?N(n.diffWholeMonths(e,t),"month"):i(e,t)}const pt=Me({year:"numeric",month:"long",day:"numeric"}),gt=Me({week:"long"}),mt=Me({weekday:"long"});function vt(e){for(const t of e)if("weekday"===t.type)return t.value;return""}function yt(e){for(const t of e)if("day"===t.type)return t.value;return""}function _t(e){for(const t of e)if("month"===t.type)return t.value;return""}function bt(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}const Et=/(^c|C)lass(Name)?$/,St=/Content$/,Dt=/(DidMount|WillUnmount)$/,Ct=/^on[A-Z]/,wt={headerToolbar:_e,footerToolbar:_e,buttons:function(e,t){return e?function(e,t,n){const r={};for(let n in e)ue.call(e,n)&&(n in t||(r[n]=e[n]));for(let i in t)ue.call(t,i)&&(r[i]=i in e?n(e[i],t[i]):t[i]);return r}(e,t,be):t}};function Tt(...e){const t={};for(const n of e)for(const e in n){const r=n[e];t[e]?t[e]=Rt(t[e],r):t[e]=r}return t}function Rt(...e){let t={};for(const n of e)for(let e in n)if(e in t){const r=wt[e]||(Et.test(e)?kt:St.test(e)?Ot:Dt.test(e)?It:void 0);t[e]=r?r(t[e],n[e]):n[e]}else t[e]=n[e];return t}function kt(e,t){const n="function"==typeof e,r="function"==typeof t;if(n||r){const i=i=>$e(n?e(i):e,r?t(i):t);return i.parts=[e,t],i}return $e(e,t)}function Ot(e,t){if("function"==typeof t){const n=(n,r)=>{const i=t(n,r);return!0===i?"function"==typeof e?e(n,r):e:i};return n.parts=[e,t],n}return null!=t?t:e}function It(e,t){if(e&&t){const n=(...n)=>{e(...n),t(...n)};return n.parts=[e,t],n}return e||t}function Mt(e){const t=e.getRootNode();return t instanceof Document?t.body||t.documentElement:t}function xt(e){return"rtl"===getComputedStyle(e).direction}const Nt=/(top|left|right|bottom|width|height)$/i;function Pt(e,t){for(let n in t)Ht(e,n,t[n])}function Ht(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Nt.test(t)?e.style[t]=n+"px":e.style[t]=n}function At(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 Ut=0;function jt(){return Ut+=1,"fc-dom-"+Ut}const Lt={defs:{},instances:{}};function Bt(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":et(r)};return n&&Object.assign(i,n),i}function Wt(e,t,n,r,i){const s=Boolean(n&&!w(n.activeRange,e));return{date:t.toDate(e),dow:e.getUTCDay(),isDisabled:s,isOther:!s&&Boolean(n&&!w(n.currentRange,e)),isToday:!s&&Boolean(r&&w(r,e)),isPast:!s&&Boolean(i?e<i:!!r&&e<r.start),isFuture:!s&&Boolean(i?e>i:!!r&&e>=r.end)}}function Vt(e,t){return null!=e&&(e===t||Math.abs(e-t)<.01)}var zt,Ft,Zt,Gt,Yt,qt,$t,Xt,Kt,Jt,Qt,en,tn={},nn=[],rn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,sn=Array.isArray;function on(e,t){for(var n in t)e[n]=t[n];return e}function an(e){var t=e.parentNode;t&&t.removeChild(e)}function ln(e,t,n){var r,i,s,o={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?zt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return un(e,o,r,i,null)}function un(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++Zt:i,__i:-1,__u:0};return null==i&&null!=Ft.vnode&&Ft.vnode(s),s}function cn(){return{current:null}}function dn(e){return e.children}function fn(e,t){this.props=e,this.context=t}function hn(e,t){if(null==t)return e.__?hn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?hn(e):null}function pn(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return pn(e)}}function gn(e){(!e.__d&&(e.__d=!0)&&Yt.push(e)&&!mn.__r++||qt!==Ft.debounceRendering)&&((qt=Ft.debounceRendering)||$t)(mn)}function mn(){var e,t,n,r,i,s,o,a;for(Yt.sort(Xt);e=Yt.shift();)e.__d&&(t=Yt.length,r=void 0,s=(i=(n=e).__v).__e,o=[],a=[],n.__P&&((r=on({},i)).__v=i.__v+1,Ft.vnode&&Ft.vnode(r),wn(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[s]:null,o,null==s?hn(i):s,!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Tn(o,r,a),r.__e!=s&&pn(r)),Yt.length>t&&Yt.sort(Xt));mn.__r=0}function vn(e,t,n,r,i,s,o,a,l,u,c){var d,f,h,p,g,m=r&&r.__k||nn,v=t.length;for(n.__d=l,yn(n,t,m),l=n.__d,d=0;d<v;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(f=-1===h.__i?tn:m[h.__i]||tn,h.__i=d,wn(e,h,f,i,s,o,a,l,u,c),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&kn(f.ref,null,h),c.push(h.ref,h.__c||p,h)),null==g&&null!=p&&(g=p),65536&h.__u||f.__k===h.__k?l=_n(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:p&&(l=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function yn(e,t,n){var r,i,s,o,a,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)o=r+d,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?un(null,i,null,null,null):sn(i)?un(dn,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?un(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=En(i,n,o,c),i.__i=a,s=null,-1!==a&&(c--,(s=n[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&d--,"function"!=typeof i.type&&(i.__u|=65536)):a!==o&&(a==o-1?d--:a==o+1?d++:a>o?c>l-o?d+=a-o:d--:a<o&&(a==o-d?d-=a-o:d++),a!==r+d&&(i.__u|=65536))):(s=n[o])&&null==s.key&&s.__e&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=hn(s)),On(s,s,!1),n[o]=null,c--);if(c)for(r=0;r<u;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=hn(s)),On(s,s))}function _n(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=_n(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=hn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function bn(e,t){return t=t||[],null==e||"boolean"==typeof e||(sn(e)?e.some((function(e){bn(e,t)})):t.push(e)),t}function En(e,t,n,r){var i=e.key,s=e.type,o=n-1,a=n+1,l=t[n];if(null===l||l&&i==l.key&&s===l.type&&0==(131072&l.__u))return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&s===l.type)return a;a++}}return-1}function Sn(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||rn.test(t)?n:n+"px"}function Dn(e,t,n,r,i){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Sn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Sn(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Kt,e.addEventListener(t,s?Qt:Jt,s)):e.removeEventListener(t,s?Qt:Jt,s);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Cn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Kt++;else if(t.t<n.u)return;return n(Ft.event?Ft.event(t):t)}}}function wn(e,t,n,r,i,s,o,a,l,u){var c,d,f,h,p,g,m,v,y,_,b,E,S,D,C,w,T=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(c=Ft.__b)&&c(t);e:if("function"==typeof T)try{if(v=t.props,y="prototype"in T&&T.prototype.render,_=(c=T.contextType)&&r[c.__c],b=c?_?_.props.value:c.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(y?t.__c=d=new T(v,b):(t.__c=d=new fn(v,b),d.constructor=T,d.render=In),_&&_.sub(d),d.props=v,d.state||(d.state={}),d.context=b,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=on({},d.__s)),on(d.__s,T.getDerivedStateFromProps(v,d.__s))),h=d.props,p=d.state,d.__v=t,f)y&&null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==T.getDerivedStateFromProps&&v!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,b),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,p,g)}))}if(d.context=b,d.props=v,d.__P=e,d.__e=!1,S=Ft.__r,D=0,y){for(d.state=d.__s,d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do{d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++D<25);d.state=d.__s,null!=d.getChildContext&&(r=on(on({},r),d.getChildContext())),y&&!f&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(h,p)),vn(e,sn(w=null!=c&&c.type===dn&&null==c.key?c.props.children:c)?w:[w],t,n,r,i,s,o,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),m&&(d.__E=d.__=null)}catch(e){if(t.__v=null,l||null!=s){for(t.__u|=l?160:32;a&&8===a.nodeType&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;Ft.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Rn(n.__e,t,n,r,i,s,o,l,u);(c=Ft.diffed)&&c(t)}function Tn(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)kn(n[r],n[++r],n[++r]);Ft.__c&&Ft.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Ft.__e(e,t.__v)}}))}function Rn(e,t,n,r,i,s,o,a,l){var u,c,d,f,h,p,g,m=n.props,v=t.props,y=t.type;if("svg"===y?i="http://www.w3.org/2000/svg":"math"===y?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=s)for(u=0;u<s.length;u++)if((h=s[u])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){e=h,s[u]=null;break}if(null==e){if(null===y)return document.createTextNode(v);e=document.createElementNS(i,y,v.is&&v),s=null,a=!1}if(null===y)m===v||a&&e.data===v||(e.data=v);else{if(s=s&&zt.call(e.childNodes),m=n.props||tn,!a&&null!=s)for(m={},u=0;u<e.attributes.length;u++)m[(h=e.attributes[u]).name]=h.value;for(u in m)if(h=m[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=h;else if("key"!==u&&!(u in v)){if("value"==u&&"defaultValue"in v||"checked"==u&&"defaultChecked"in v)continue;Dn(e,u,null,h,i)}for(u in v)h=v[u],"children"==u?f=h:"dangerouslySetInnerHTML"==u?c=h:"value"==u?p=h:"checked"==u?g=h:"key"===u||a&&"function"!=typeof h||m[u]===h||Dn(e,u,h,m[u],i);if(c)a||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),vn(e,sn(f)?f:[f],t,n,r,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:n.__k&&hn(n,0),a,l),null!=s)for(u=s.length;u--;)null!=s[u]&&an(s[u]);a||(u="value",void 0!==p&&(p!==e[u]||"progress"===y&&!p||"option"===y&&p!==m[u])&&Dn(e,u,p,m[u],i),u="checked",void 0!==g&&g!==e[u]&&Dn(e,u,g,m[u],i))}return e}function kn(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){Ft.__e(e,n)}}function On(e,t,n){var r,i;if(Ft.unmount&&Ft.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||kn(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Ft.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&On(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||an(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function In(e,t,n){return this.constructor(e,n)}function Mn(e,t,n){var r,i,s,o;Ft.__&&Ft.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],o=[],wn(t,e=(!r&&n||t).__k=ln(dn,null,[e]),i||tn,tn,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?zt.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r,o),Tn(s,e,o)}zt=nn.slice,Ft={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},Zt=0,Gt=function(e){return null!=e&&null==e.constructor},fn.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=on({},this.state),"function"==typeof e&&(e=e(on({},n),this.props)),e&&on(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),gn(this))},fn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),gn(this))},fn.prototype.render=dn,Yt=[],$t="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xt=function(e,t){return e.__v.__b-t.__v.__b},mn.__r=0,Kt=0,Jt=Cn(!1),Qt=Cn(!0),en=0;var xn,Nn,Pn,Hn=[],An=Ft,Un=An.__b,jn=An.__r,Ln=An.diffed,Bn=An.__c,Wn=An.unmount,Vn=An.__;function zn(){for(var e;e=Hn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gn),e.__H.__h.forEach(Yn),e.__H.__h=[]}catch(t){e.__H.__h=[],An.__e(t,e.__v)}}An.__b=function(e){xn=null,Un&&Un(e)},An.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Vn&&Vn(e,t)},An.__r=function(e){jn&&jn(e);var t=(xn=e.__c).__H;t&&(Nn===xn?(t.__h=[],xn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(Gn),t.__h.forEach(Yn),t.__h=[])),Nn=xn},An.diffed=function(e){Ln&&Ln(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Hn.push(t)&&Pn===An.requestAnimationFrame||((Pn=An.requestAnimationFrame)||Zn)(zn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),Nn=xn=null},An.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Gn),e.__h=e.__h.filter((function(e){return!e.__||Yn(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],An.__e(n,e.__v)}})),Bn&&Bn(e,t)},An.unmount=function(e){Wn&&Wn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Gn(e)}catch(e){t=e}})),n.__H=void 0,t&&An.__e(t,n.__v))};var Fn="function"==typeof requestAnimationFrame;function Zn(e){var t,n=function(){clearTimeout(r),Fn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Fn&&(t=requestAnimationFrame(n))}function Gn(e){var t=xn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),xn=t}function Yn(e){var t=xn;e.__c=e.__(),xn=t}function qn(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function $n(e,t){this.props=e,this.context=t}($n.prototype=new fn).isPureReactComponent=!0,$n.prototype.shouldComponentUpdate=function(e,t){return qn(this.props,e)||qn(this.state,t)};var Xn=Ft.__b;Ft.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xn&&Xn(e)};var Kn=Ft.__e;Ft.__e=function(e,t,n,r){if(e.then)for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Kn(e,t,n,r)};var Jn=Ft.unmount;function Qn(){this.__u=0,this.t=null,this.__b=null}function er(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tr(){this.u=null,this.o=null}Ft.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Jn&&Jn(e)},(Qn.prototype=new fn).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=er(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},Qn.prototype.componentWillUnmount=function(){this.t=[]},Qn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&ln(dn,null,e.fallback);return i&&(i.__u&=-33),[ln(dn,null,t.__a?null:e.children),i]};var nr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function rr(e){return this.getChildContext=function(){return e.context},e.children}function ir(e){var t=this,n=e.i;t.componentWillUnmount=function(){Mn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Mn(ln(rr,{context:t.context},e.__v),t.l)}function sr(e,t){var n=ln(ir,{__v:e,i:t});return n.containerInfo=t,n}(tr.prototype=new fn).__a=function(e){var t=this,n=er(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),nr(t,e,r)):i()};n?n(s):s()}},tr.prototype.render=function(e){this.u=null,this.o=new Map;var t=bn(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},tr.prototype.componentDidUpdate=tr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){nr(e,n,t)}))};var or="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ar=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,lr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ur=/[A-Z0-9]/g,cr="undefined"!=typeof document,dr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};fn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(fn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var fr=Ft.event;function hr(){}function pr(){return this.cancelBubble}function gr(){return this.defaultPrevented}Ft.event=function(e){return fr&&(e=fr(e)),e.persist=hr,e.isPropagationStopped=pr,e.isDefaultPrevented=gr,e.nativeEvent=e};var mr={enumerable:!1,configurable:!0,get:function(){return this.class}},vr=Ft.vnode;Ft.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var s in t){var o=t[s];if(!("value"===s&&"defaultValue"in t&&null==o||cr&&"children"===s&&"noscript"===n||"class"===s||"className"===s)){var a=s.toLowerCase();"defaultValue"===s&&"value"in t&&null==t.value?s="value":"download"===s&&!0===o?o="":"translate"===a&&"no"===o?o=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?s="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||dr(t.type)?"onfocus"===a?s="onfocusin":"onblur"===a?s="onfocusout":lr.test(s)&&(s=a):a=s="oninput":i&&ar.test(s)?s=s.replace(ur,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===a&&r[s=a]&&(s="oninputCapture"),r[s]=o}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=bn(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=bn(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",mr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=or,vr&&vr(e)};var yr=Ft.__r;Ft.__r=function(e){yr&&yr(e),e.__c};var _r=Ft.diffed;function br(){let e=Ft.debounceRendering,t=[];for(Ft.debounceRendering=function(e){t.push(e)},Mn(ln(Sr,{}),document.createElement("div"));t.length;)t.shift()();Ft.debounceRendering=e}function Er(e){e(),br()}Ft.diffed=function(e){_r&&_r(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};class Sr extends fn{render(){return ln("div",{})}componentDidMount(){this.setState({})}}const Dr=function(e,t){var n={__c:t="__cC"+en++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,gn(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},Cr=Ft;var wr={__proto__:null,flushUpdates:br,flushSync:Er,createContext:Dr,preactOptions:Cr,createPortal:sr,Component:fn,Fragment:dn,cloneElement:function(e,t,n){var r,i,s,o,a=on({},e.props);for(s in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)"key"==s?r=t[s]:"ref"==s?i=t[s]:a[s]=void 0===t[s]&&void 0!==o?o[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?zt.call(arguments,2):n),un(e.type,a,r||e.key,i||e.ref,null)},createElement:ln,createRef:cn,h:ln,hydrate:function e(t,n){Mn(t,n,e)},get isValidElement(){return Gt},get options(){return Ft},render:Mn,toChildArray:bn};const Tr=new Map,Rr=new Set;let kr=!1,Or=!1;function Ir(){for(const e of Rr.values())e(),Rr.delete(e)}function Mr(){let e=!0;if(!kr){kr=!0;const t=[];for(const[n,r]of Tr.entries()){const{width:i,height:s}=n.getBoundingClientRect();xr(r,i,s)&&(t.push(r),e=!0)}for(const e of t)e.callback(e.width,e.height);Ir(),kr=!1}return e}function xr(e,t,n){let r=!1;return Vt(e.width,t)||(e.width=t,r=e.watchWidth),Vt(e.height,n)||(e.height=n,r||(r=e.watchHeight)),r}const Nr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Pr={capture:!0,passive:!0};const Hr=()=>{};function Ar(e,t){let n,r,i;return[function(){i?r=Date.now()-n:function t(s){n=Date.now(),r=0,i=setTimeout(()=>{r?t(r):(i=void 0,e())},s)}(t)},function(){i&&(clearTimeout(i),i=void 0)}]}const[Ur,jr]="undefined"!=typeof ResizeObserver?function(){const e=new ResizeObserver(e=>{kr=!0;for(let t of e){const e=t.target,n=Tr.get(e);let r,i;if(t.borderBoxSize){const e=t.borderBoxSize[0]||t.borderBoxSize;r=e.inlineSize,i=e.blockSize}else({width:r,height:i}=e.getBoundingClientRect());xr(n,r,i)&&n.callback(r,i)}Ir(),kr=!1});return[function(t,n,r=!0,i=!0){return Tr.set(t,{callback:n,watchWidth:r,watchHeight:i}),e.observe(t,{box:"border-box"}),()=>{Tr.delete(t),e.unobserve(t)}},Mr]}():function(){let e,t=!1;const[n,r]=Ar(Mr,100);function i(){return r(),Mr()}function s(){e.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}function o(){e.disconnect()}function a(){t||(t=!0,Tr.size&&o())}function l(){t&&(t=!1,Tr.size&&s())}const u=Cr.__r||Hr,c=Cr.__c||Hr;let d=!1;return Cr.__r=function(){a(),u.apply(this,arguments)},Cr.__c=function(){d||(d=!0,requestAnimationFrame(()=>{i(),l(),d=!1})),c.apply(this,arguments)},[function(r,i,a=!0,l=!0){return Tr.size||function(){e=new MutationObserver(n),t||s();for(const e of Nr)window.addEventListener(e,n,Pr)}(),Tr.set(r,{callback:i,watchWidth:a,watchHeight:l}),n(),()=>{Tr.delete(r),Tr.size||function(){t||o();for(const e of Nr)window.removeEventListener(e,n,Pr)}()}},i]}();function Lr(e,t){return Ur(e,t,!0)}function Br(e,t){return Ur(e,(e,n)=>t(n),!1,!0)}function Wr(e,t,n="day"){return e.dateEnv.format(t,"week"===n?gt:pt)[0]}function Vr(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,a=function(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}(e),l=a.y-r-i,u={borderLeft:r,borderRight:i,borderTop:s,borderBottom:o,scrollbarBottom:a.x-s-o,scrollbarLeft:0,scrollbarRight:0};return"rtl"===n.direction?u.scrollbarLeft=l:u.scrollbarRight=l,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function zr(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 Fr(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}function Zr(e,t,n){let r=!1,i=function(e){r||(r=!0,t(e))},s=function(e){r||(r=!0,n(e))},o=e(i,s);o&&"function"==typeof o.then&&o.then(i,s)}class Gr{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],i=[].concat(r||[],n);for(let e of i)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Yr(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 qr{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()}}const $r=Dr({});function Xr(e,t,n,r,i,s,o,a,l,u,c,d){return{dateEnv:i,options:n,pluginHooks:s,emitter:l,dispatch:o,getCurrentData:a,calendarApi:u,viewSpec:e,viewApi:t,dateProfileGenerator:r,registerInteractiveComponent:c,unregisterInteractiveComponent:d}}class Kr extends fn{shouldComponentUpdate(e,t){return this.debug&&console.log(ye(e,this.props),ye(t,this.state)),!ve(this.props,e,this.propEquality)||!ve(this.state,t,this.stateEquality)}}Kr.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Kr.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Kr.contextType=$r,Kr.prototype.propEquality={},Kr.prototype.stateEquality={};class Jr extends Kr{}function Qr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Jr.contextType=$r;class ei extends Jr{constructor(){super(...arguments),this.uid=ee()}prepareHits(){}queryHit(e,t,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!e.closest("."+J.internalEventMirror)}isValidDateDownEl(e){return!(e.closest(`.${J.internalEvent}:not(.${J.internalBgEvent})`)||e.closest("."+J.internalMoreLink)||e.closest("."+J.internalNavLink)||e.closest("."+J.internalPopover))}}function ti(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class ni{constructor(e){this.props=e,this.nowDate=ti(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)}build(e,t,n=!0){let r,i,s,o,a,l,{props:u}=this;var c,d;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(c=e,e=null!=(d=r).start&&c<d.start?d.start:null!=d.end&&c>=d.end?new Date(d.end.valueOf()-1):c),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),o=this.trimHiddenDays(o),a=o,u.showNonCurrentDates||(a=E(a,i.range)),a=this.adjustActiveRange(a),a=E(a,r),l=D(i.range,r),w(o,e)||(e=o.start),{currentDate:e,validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:a,renderRange:o,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,i=null,s=null,o=null;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,s)):(n=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=U(i).unit,o=this.buildRangeFromDuration(e,t,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return N({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:o,end:l}=e;return r&&(H(i)<0&&(o=a(o),o=n.add(o,i)),H(s)>1&&(l=a(l),l=t(l,-1),l=n.add(l,s))),{start:o,end:l}}buildRangeFromDuration(e,t,n,r){let i,s,o,{dateEnv:l,dateAlignment:u}=this.props;if(!u){let{dateIncrement:e}=this.props;u=e&&A(e)<A(n)?U(e).unit:r}function c(){i=l.startOf(e,u),s=l.add(i,n),o={start:i,end:s}}return H(n)<=1&&this.isHiddenDay(i)&&(i=this.skipHiddenDays(i,t),i=a(i)),c(),this.trimHiddenDays(o)||(e=this.skipHiddenDays(e,t),c()),o}buildRangeFromDayCount(e,n,r){let i,{dateEnv:s,dateAlignment:o}=this.props,l=0,u=e;o&&(u=s.startOf(u,o)),u=a(u),u=this.skipHiddenDays(u,n),i=u;do{i=t(i,1),this.isHiddenDay(i)||(l+=1)}while(l<r);return{start:u,end:i}}buildCustomVisibleRange(e){let{props:t}=this,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?N(1,t):e||N({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=ft(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,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=t(e,n);return e}}function ri(e,t,n){if(e.valueOf()===a(e).valueOf()){if("year"===t)return!n.getMonth(e)&&1===n.getDay(e);if("month"===t)return 1===n.getDay(e);if("week"===t)return e.getUTCDay()===n.weekDow;if("day"===t)return!0}return!1}function ii(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},si(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function si(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,i;return Object.assign(n,(r=e,i=t.dateEnv,Object.assign(Object.assign({},wi(r.range,i,r.allDay)),{allDay:r.allDay}))),n}function oi(e,t,n){let{dateEnv:r,options:i}=n,s=t;return e?(s=a(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function ai(e,t,n,r){let i=vi(e.defs,t),s={defs:{},instances:{}};for(let t in e.defs){let o=e.defs[t];s.defs[t]=li(o,i[t],n,r)}for(let t in e.instances){let o=e.instances[t],a=s.defs[o.defId];s.instances[t]=ui(o,a,i[o.defId],n,r)}return s}function li(e,t,n,r){let i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function ui(e,t,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&!0===r.standardProps.allDay,l=r.standardProps&&!1===r.standardProps.hasEnd,u=Object.assign({},e);return o&&(u.range=dt(u.range)),r.datesDelta&&n.startEditable&&(u.range={start:s.add(u.range.start,r.datesDelta),end:s.add(u.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(u.range={start:s.add(u.range.start,r.startDelta),end:u.range.end}),r.endDelta&&n.durationEditable&&(u.range={start:u.range.start,end:s.add(u.range.end,r.endDelta)}),l&&(u.range={start:u.range.start,end:oi(t.allDay,u.range.start,i)}),t.allDay&&(u.range={start:a(u.range.start),end:a(u.range.end)}),u.range.end<u.range.start&&(u.range.end=oi(t.allDay,u.range.start,i)),u}class ci{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 di{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in rt)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=nt[e](t),this.mutate({standardProps:{publicId:t}});else if(e in nt)t=nt[e](t),this.mutate({standardProps:{[e]:t}});else if(e in Ke){let n=Ke[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=ht(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=ht(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:i}=this._context,s={allDay:n.allDay},o=i.createMarker(e);var a,l;if(o&&((null==t||(r=i.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=dt(e));let t=ht(e.start,o,i,n.granularity);if(r){let o=ht(e.end,r,i,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:s}):this.mutate({startDelta:t,endDelta:o,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:t,standardProps:s})}}moveStart(e){let t=N(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=N(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=N(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=Me(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})[0]}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:i}=r.getCurrentData(),s=Ze(i,t.instanceId);s=ai(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],color:"",contrastColor:"",className:""}},e,r);let o=new di(r,n,t);this._def=s.defs[n.defId],this._instance=s.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:s}),r.emitter.trigger("eventChange",{oldEvent:o,event:this,relatedEvents:hi(s,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:i})}})}}remove(){let e=this._context,t=fi(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 ci(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 color(){return this._def.ui.color}get contrastColor(){return this._def.ui.contrastColor}get className(){return this._def.ui.className}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:i}=this,s={allDay:t.allDay};return t.title&&(s.title=t.title),r&&(s.start=r),i&&(s.end=i),t.publicId&&(s.id=t.publicId),t.groupId&&(s.groupId=t.groupId),t.url&&(s.url=t.url),n.display&&"auto"!==n.display&&(s.display=n.display),n.color&&(s.color=n.color),n.contrastColor&&(s.contrastColor=n.contrastColor),n.className&&(s.className=n.className),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Object.assign(s,t.extendedProps):s.extendedProps=t.extendedProps),s}toJSON(){return this.toPlainObject()}}function fi(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function hi(e,t,n){let{defs:r,instances:i}=e,s=[],o=n?n.instanceId:"";for(let e in i){let n=i[e],a=r[n.defId];n.instanceId!==o&&s.push(new di(t,a,n))}return s}function pi(e,t,n,r){let i={},s={},o={},a=[],l=[],u=vi(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===u[n.defId].display&&(n.groupId?(i[n.groupId]=[],o[n.groupId]||(o[n.groupId]=n)):s[t]=[])}for(let t in e.instances){let o=e.instances[t],c=e.defs[o.defId],d=u[c.defId],f=o.range,h=!c.allDay&&r?ft(f,r):f,p=E(h,n);p&&("inverse-background"===d.display?c.groupId?i[c.groupId].push(p):s[o.defId].push(p):"none"!==d.display&&("background"===d.display?a:l).push({def:c,ui:d,instance:o,range:p,isStart:h.start&&h.start.valueOf()===p.start.valueOf(),isEnd:h.end&&h.end.valueOf()===p.end.valueOf()}))}for(let e in i){let t=_(i[e],n);for(let n of t){let t=o[e],r=u[t.defId];a.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in s){let r=_(s[t],n);for(let n of r)a.push({def:e.defs[t],ui:u[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function gi(e,t){e.fcEventRange=t}function mi(e){return e.fcEventRange||e.parentNode.fcEventRange||null}function vi(e,t){return de(e,e=>yi(e,t))}function yi(e,t){const n=[],r=t[""],i=t[e.defId];return r&&n.push(r),i&&n.push(i),n.push(e.ui),et(n)}function _i(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:e})}function bi(e,t,r,i,s,o,l,u=!0,c=!0){const{dateEnv:d,options:f}=l,{def:h,instance:p}=t;let{displayEventTime:g,displayEventEnd:m}=f;null==g&&(g=!1!==u),null==m&&(m=!1!==c);const v=!s&&r&&a(r).valueOf()!==a(t.instance.range.start).valueOf()?r:t.instance.range.start,y=!o&&i&&a(n(i,-1)).valueOf()!==a(n(t.instance.range.end,-1)).valueOf()?i:t.instance.range.end;if(g&&!h.allDay){if(m&&(s||o)&&h.hasEnd)return d.formatRange(v,y,e,{forcedStartTzo:s?p.forcedStartTzo:null,forcedEndTzo:o?p.forcedEndTzo:null});if(s)return d.format(v,e,{forcedTzo:p.forcedStartTzo})[0]}return""}function Ei(e,t){let{def:n,instance:r}=e,{url:i}=n;if(i)return["a",{href:i},!0];let s,{emitter:o,options:a}=t,{eventInteractive:l}=a;return null==l&&(l=n.interactive,null==l&&(l=Boolean(o.hasHandlers("eventClick")))),l&&(s=K(e=>{o.trigger("eventClick",{el:e.target,event:new di(t,n,r),jsEvent:e,view:t.viewApi})}),s=Object.assign({role:"button"},s)),["div",s,l]}const Si={start:Le,end:Le,allDay:Boolean};function Di(e,t,n){let r=function(e,t){let{refined:n,extra:r}=je(e,Si),i=n.start?t.createMarkerMeta(n.start):null,s=n.end?t.createMarkerMeta(n.end):null,{allDay:o}=n;null==o&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified));return Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function Ci(e,t,n){return Object.assign(Object.assign({},wi(e,t,n)),{timeZone:t.timeZone})}function wi(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 Ti(e,t){const n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);if(n<r)return{start:n,end:r,isStart:e.isStart&&n===e.start,isEnd:e.isEnd&&r===e.end}}function Ri(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function ki(e){return e.end}function Oi(e){return e.reduce(Mi).eventRange.range.start}function Ii(e){return e.reduce(xi).eventRange.range.end}function Mi(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function xi(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}function Ni(e,t,n){e.splice(t,0,n)}function Pi(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),o=n(e[s]);if(t<o)i=s;else{if(!(t>o))return[s,1];r=s+1}}return[r,0]}class Hi{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}const Ai={};const Ui={startTime:N,duration:N,create:Boolean,sourceId:String};class ji extends Jr{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0}),br(),jr(),br()},this.handleAfterPrint=()=>{this.setState({forPrint:!1}),br()}}render(){var e,t,n;let{props:r,state:i}=this,{options:s}=r,{forPrint:o}=i,a=null!==(e=s.borderlessX)&&void 0!==e?e:s.borderless,l=null!==(t=s.borderlessTop)&&void 0!==t?t:s.borderless,u=null!==(n=s.borderlessBottom)&&void 0!==n?n:s.borderless,c=$e(s.class,s.className,l&&J.borderlessTop,u&&J.borderlessBottom,a&&J.borderlessX,J.borderBoxRoot,J.isolate,J.flexCol,o?J.calendarPrintRoot:J.calendarScreenRoot,(a||l||u)&&J.noEdgeEffects);return r.children("rtl"===s.direction,c,s.height,o)}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 Li{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()}}class Bi{constructor(e){this.el=e,this.emitter=new Gr,this.isScroll=!1,this.isScrollRecent=!1,this.isWheelRecent=!1,this.isMouseDown=!1,this.isTouchDown=!1,this.isMouse=!1,this.isTouch=!1,this.isWheel=!1,this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.getIsUser()),this.isScrollRecent=!0,this.isMouseDown&&(this.isMouse=!0),this.isTouchDown&&(this.isTouch=!0),this.isWheelRecent&&(this.isWheel=!0),this.scrollWaiter.request(500)},this.handleScrollWait=()=>{this.isScrollRecent=!1,this.isTouchDown||this.endScroll()},this.handleWheel=()=>{this.isWheelRecent=!0,this.wheelWaiter.request(500)},this.handleWheelWait=()=>{this.isWheelRecent=!1},this.handleMouseDown=()=>{this.isMouseDown=!0},this.handleMouseUp=()=>{this.isMouseDown=!1},this.handleTouchStart=()=>{this.isTouchDown=!0},this.handleTouchEnd=()=>{this.isTouchDown=!1,this.isScrollRecent||this.endScroll()},this.wheelWaiter=new Li(this.handleWheelWait),this.scrollWaiter=new Li(this.handleScrollWait),e.addEventListener("scroll",this.handleScroll,{passive:!0}),e.addEventListener("wheel",this.handleWheel,{passive:!0}),e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("mouseup",this.handleMouseUp),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll,{passive:!0}),e.removeEventListener("wheel",this.handleWheel,{passive:!0}),e.removeEventListener("mousedown",this.handleMouseDown),e.removeEventListener("mouseup",this.handleMouseUp),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd)}startScroll(){this.isScroll||(this.isScroll=!0,this.emitter.trigger("scrollStart"))}endScroll(){this.isScroll&&(this.scrollWaiter.clear(),this.wheelWaiter.clear(),this.isScroll=!1,this.isWheelRecent=!1,this.emitter.trigger("scrollEnd",this.getIsUser()),this.isMouse=!1,this.isTouch=!1,this.isWheel=!1)}getIsUser(){return this.isWheel||this.isMouse||this.isTouch}}class Wi extends ei{constructor(){super(...arguments),this.handleEl=e=>{this.el&&(this.el=null,this.listener.destroy()),e&&(this.el=e,this.listener=new Bi(e))},this.handleHRuler=e=>{this.disconnectHRuler&&(this.disconnectHRuler(),this.disconnectHRuler=void 0,void 0!==this.clientWidth&&(this.clientWidth=void 0,Qr(this.props.clientWidthRef,null))),e&&(this.disconnectHRuler=Lr(e,e=>{e!==this.clientWidth&&(this.clientWidth=e,Qr(this.props.clientWidthRef,e))}))},this.handleVRuler=e=>{this.disconnectVRuler&&(this.disconnectVRuler(),this.disconnectVRuler=void 0,void 0!==this.clientHeight&&(this.clientHeight=void 0,Qr(this.props.clientHeightRef,null))),e&&(this.disconnectVRuler=Br(e,e=>{e!==this.clientHeight&&(this.clientHeight=e,Qr(this.props.clientHeightRef,e));const t=Math.round(this.el.getBoundingClientRect().height-e);t!==this.bottomScrollbarWidth&&(this.bottomScrollbarWidth=t,Qr(this.props.bottomScrollbarWidthRef,t))}))}}render(){const{props:e}=this,t=e.horizontal||e.vertical?"hidden":"";return ln("div",{ref:this.handleEl,className:Xe(e.className,J.noPadding,J.rel,e.hideScrollbars&&J.noScrollbars,J.internalScroller),style:Object.assign(Object.assign({},e.style),{overflowX:e.horizontal?"auto":t,overflowY:e.vertical?"auto":t})},e.children,Boolean(e.clientWidthRef)&&ln("div",{ref:this.handleHRuler,className:J.fillTop}),Boolean(e.clientHeightRef||e.bottomScrollbarWidthRef)&&ln("div",{ref:this.handleVRuler,className:J.fillStart}))}endScroll(){this.listener.endScroll()}get x(){const{el:e}=this;return e?Vi(e):0}get y(){const{el:e}=this;return e?e.scrollTop:0}scrollTo({x:e,y:t}){const{el:n}=this;n&&(null!=t&&(n.scrollTop=t),null!=e&&zi(n,e))}addScrollStartListener(e){this.listener.emitter.on("scrollStart",e)}removeScrollStartListener(e){this.listener.emitter.off("scrollStart",e)}addScrollEndListener(e){this.listener.emitter.on("scrollEnd",e)}removeScrollEndListener(e){this.listener.emitter.off("scrollEnd",e)}}function Vi(e){const{scrollLeft:t}=e;return xt(e)?function(e,t){switch(Zi()){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(t,e):t}function zi(e,t){const n=xt(e);e.scrollLeft=n?function(e,t){switch(Zi()){case"positive":return t.scrollWidth-t.clientWidth-e;case"negative":return-e}return e}(t,e):t}let Fi;function Zi(){return Fi||(Fi=function(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";let t,n=document.createElement("div");n.style.width="200px",n.style.height="200px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=50,t=e.scrollLeft>0?"reverse":"negative");return e.remove(),t}())}function Gi(e,t){let r=e.activeRange;return t?r:{start:n(r.start,e.slotMinTime.milliseconds),end:n(r.end,e.slotMaxTime.milliseconds-864e5)}}function Yi(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,i,s){if(t&&n===t.latestFetchId){let n=ze(qi(i,t,s),t,s);return r&&(n=We(n,r,s)),Ye(Ki(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return function(e,t,n,r,i){const{defIdMap:s,instanceIdMap:o}=function(e){const{defs:t,instances:n}=e,r={},i={};for(let e in t){const n=t[e],{publicId:i}=n;i&&(r[i]=e)}for(let e in n){const r=n[e],s=t[r.defId],{publicId:o}=s;o&&(i[o]=e)}return{defIdMap:r,instanceIdMap:i}}(e);return We(ze(qi(n,t,i),t,i,!1,s,o),r,i)}(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=We(t,n,r));return Ye(e,t)}(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return Ye(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?We(e,r.activeRange,i):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,i={},s={};for(let e in n)t.defs[e]||(i[e]=n[e]);for(let e in r)!t.instances[e]&&i[r[e].defId]&&(s[e]=r[e]);return{defs:i,instances:s}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Ki(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return qe(e,e=>!e.sourceId);case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function qi(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=$i(e,i)),r&&(e=$i(e,r)),e}function $i(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 Xi(e,t,n){let{defs:r}=e,i=de(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:i}}function Ki(e,t){return qe(e,e=>e.sourceId!==t)}function Ji(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||Qi)(r,t)}function Qi(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let i=t.getCurrentData(),s=e.eventDrag,o=s.mutatedEvents,a=o.defs,l=o.instances,u=vi(a,s.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(u=de(u,r));let c=(p=e.eventStore,g=s.affectedEvents.instances,{defs:p.defs,instances:ce(p.instances,e=>!g[e.instanceId])}),d=c.defs,f=c.instances,h=vi(d,e.eventUiBases);var p,g;for(let r in l){let o=l[r],p=o.range,g=u[o.defId],m=a[o.defId];if(!es(g.constraints,p,c,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,y="function"==typeof v?v:null;for(let e in f){let n=f[e];if(D(p,n.range)){if(!1===h[n.defId].overlap&&s.isEvent)return!1;if(!1===g.overlap)return!1;if(y&&!y(new di(t,d[n.defId],n),new di(t,m,o)))return!1}}let _=i.eventStore;for(let e of g.allows){let i,s=Object.assign(Object.assign({},n),{range:o.range,allDay:m.allDay}),a=_.defs[m.defId],l=_.instances[r];if(i=a?new di(t,a,l):new di(t,m),!e(si(s,t),i))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let i=e.eventStore,s=i.defs,o=i.instances,a=e.dateSelection,l=a.range,{selectionConfig:u}=t.getCurrentData();r&&(u=r(u));if(!es(u.constraints,l,i,e.businessHours,t))return!1;let{selectOverlap:c}=t.options,d="function"==typeof c?c:null;for(let e in o){let n=o[e];if(D(l,n.range)){if(!1===u.overlap)return!1;if(d&&!d(new di(t,s[n.defId],n),null))return!1}}for(let e of u.allows){let r=Object.assign(Object.assign({},n),a);if(!e(si(r,t),null))return!1}return!0}(e,t,n,r))}function es(e,t,n,r,i){for(let s of e)if(!rs(ts(s,t,n,r,i),t))return!1;return!0}function ts(e,t,n,r,i){return"businessHours"===e?ns(We(r,t,i)):"string"==typeof e?ns(qe(n,t=>t.groupId===e)):"object"==typeof e&&e?ns(We(e,t,i)):[]}function ns(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function rs(e,t){for(let n of e)if(C(n,t))return!0;return!1}class is extends Error{constructor(e,t){super(e),this.response=t}}function ss(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 is("Failure parsing JSON",e)});throw new is("Request failed",e)})}function os(e){return"auto"===e.height||"auto"===e.contentHeight}class as extends fn{constructor(e,t){super(e,t),this.initialNowDate=ti(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,r=n(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=t.dateEnv.startOf(r,e.unit),s=t.dateEnv.add(i,N(1,e.unit)),o=s.valueOf()-r.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:i,todayRange:ls(i)},nextState:{nowDate:s,todayRange:ls(s)},waitMs:o}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function ls(e){let n=a(e);return{start:n,end:t(n,1)}}as.contextType=$r;class us extends Jr{constructor(){super(...arguments),this.id=ee(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:t}=this.context,{generatorName:n}=this.props;t.customRenderingReplaces&&cs(n,t)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&Qr(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:i,renderProps:s}=e,o=ds(e,"",this.handleEl);let a,l,u=!1,c=[];if(null!=r){const e="function"==typeof r?r(s,ln):r;if(!0===e)u=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?o.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?c=Array.prototype.slice.call(e.domNodes):(t?Gt(e):"function"!=typeof e)?a=e:l=e}}else u=!cs(e.generatorName,n);return u&&i&&(a=i(s)),this.queuedDomNodes=c,this.currentGeneratorMeta=l,ln(e.tag,o,a)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:i,customRenderingMetaMap:s}=r.options;if(i){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==s?void 0:s[n.generatorName];r&&i(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:r},n))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!le(e,t)){for(const e of t)e.remove();for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function cs(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function ds(e,t,n){const r=Object.assign(Object.assign({},e.attrs),{ref:n});return(e.className||t)&&(r.className=Xe(t,e.className,r.className)),e.style&&(r.style=e.style),r}us.addPropsEquality({renderProps:me,attrs:function(e,t){const n=ye(e,t);for(let e of n)if(!Ct.test(e))return!1;return!0},style:me});const fs=Dr(0);class hs extends fn{constructor(){super(...arguments),this.InnerContent=ps.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(Qr(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,t=gs(e.classNameGenerator,e.renderProps);if(e.children){const n=ds(e,t,this.handleEl),r=e.children(this.InnerContent,e.renderProps,n);return e.tag?ln(e.tag,n,r):r}return ln(us,Object.assign(Object.assign({},e),{elRef:this.handleEl,tag:e.tag||"div",className:Xe(e.className,t),renderId:this.context}))}componentDidMount(){var e,t;this.el?null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}function ps(e,t){const n=e.props;return ln(us,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function gs(e,t){return $e("function"==typeof e?e(t):e||[])}hs.contextType=fs;function ms(e){return ln(dn,null,e.timeText&&ln("div",{className:e.timeClass},e.timeText),ln("div",{className:e.titleClass},e.event.title||ln(dn,null," ")))}function vs(e){let{title:t}=e.event;return t&&ln("div",{className:e.titleClass},e.event.title)}class ys extends ei{constructor(){super(...arguments),this.getDateMeta=Ee(Wt),this.closeRef={current:null},this.focusStartRef={current:null},this.focusEndRef={current:null},this.titleId=jt(),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)},this.handleDocumentMouseDown=e=>{const t=At(e);this.rootEl.contains(t)||this.handleClose()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleClose()},this.handleClose=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{props:e,context:t}=this,{options:n,dateEnv:r,viewApi:i}=t,{startDate:s,todayRange:o,dateProfile:a}=e,l=this.getDateMeta(s,r,a,o),[u,c]=r.format(s,n.dayPopoverFormat);const d=Object.assign(Object.assign({},l),{isMajor:!1,isNarrow:!1,isSticky:!1,inPopover:!0,level:0,hasNavLink:!1,text:u,textParts:c,get weekdayText(){return vt(c)},get dayNumberText(){return yt(c)},view:i}),f=Object.assign(Object.assign({},l),{isMajor:!1,isNarrow:!1,inPopover:!0,hasNavLink:!1,get dayNumberText(){return yt(c)},get monthText(){return _t(c)},view:i,text:"",textParts:[],options:{businessHours:Boolean(n.businessHours)}}),h=L(s),{dayHeaderAlign:p}=n,g="function"==typeof p?p({level:0,inPopover:!0,isNarrow:!1}):p,m=xt(e.alignEl);return sr(ln("div",{"data-date":h,id:e.id,role:"dialog","aria-labelledby":this.titleId,className:$e(n.popoverClass,J.flexCol,J.popoverZ,J.abs,J.internalPopover),dir:m?"rtl":void 0,ref:this.handleRootEl},ln("div",{tabIndex:0,style:{outline:"none"},ref:this.focusStartRef}),ln("div",{className:Xe(gs(n.dayHeaderClass,d),J.flexCol,J.borderOnlyB,"center"===g?J.alignCenter:"end"===g?J.alignEnd:J.alignStart)},ln("div",null,ln(hs,{tag:"div",attrs:{id:this.titleId},generatorName:"dayHeaderContent",renderProps:d,customGenerator:n.dayHeaderContent,defaultGenerator:_s,classNameGenerator:n.dayHeaderInnerClass,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount})),ln(hs,{tag:"button",attrs:Object.assign({"aria-label":n.closeHint},X(this.handleClose)),elRef:this.closeRef,className:$e(n.popoverCloseClass,J.flexRow,J.cursorPointer),renderProps:{},customGenerator:n.popoverCloseContent,generatorName:"popoverCloseContent"})),ln("div",{className:Xe(gs(n.dayCellClass,f),J.flexCol,J.borderNone)},ln("div",{className:gs(n.dayCellInnerClass,f)},e.children)),ln("div",{tabIndex:0,style:{outline:"none"},ref:this.focusEndRef})),Mt(e.alignEl))}queryHit(e,t,n,r,i){let{rootEl:s,props:o}=this;return t>=0&&t<r&&n>=0&&n<i?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!o.forceTimed,range:{start:o.startDate,end:o.endDate}},o.dateSpanProps),getDayEl:()=>s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.focusStartRef.current.addEventListener("focus",this.handleClose),this.focusEndRef.current.addEventListener("focus",this.handleClose),this.closeRef.current.focus({preventScroll:!0}),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.focusStartRef.current.removeEventListener("focus",this.handleClose),this.focusEndRef.current.removeEventListener("focus",this.handleClose)}updateSize(){let{alignEl:e,alignParentTop:t}=this.props,{rootEl:n}=this;const r=xt(e),i=function(e){let t=Fr(e),n=e.getBoundingClientRect();for(let e of t){let t=bt(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(e);if(i){let s=n.getBoundingClientRect(),o=t?e.closest(t).getBoundingClientRect().top-1:i.top,a=r?i.right-s.width:i.left;o=Math.max(o,10),a=Math.min(a,document.documentElement.clientWidth-10-s.width),a=Math.max(a,10);let l=Mt(e),u=l.getBoundingClientRect?l.getBoundingClientRect():l.firstElementChild.getBoundingClientRect();Pt(n,{top:o-u.top,left:a-u.left})}}}function _s(e){return e.text}function bs(e){return e.text}function Es(e){return e.allDayDate?{start:e.allDayDate,end:t(e.allDayDate,1)}:{start:Oi(e.hiddenSegs),end:Ii(e.hiddenSegs)}}const Ss={id:String,defaultAllDay:Boolean,url:String,format:String,events:Le,eventDataTransform:Le,success:Le,failure:Le};function Ds(e,t,n=Cs(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:i,extra:s}=je(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}(i,t);if(o)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:ee(),sourceDefId:o.sourceDefId,meta:o.meta,ui:Qe(i,t),extendedProps:s}}return null}function Cs(e){return Object.assign(Object.assign(Object.assign({},Ke),Ss),e.pluginHooks.eventSourceRefiners)}class ws{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){let e=0;for(;e++<3&&jr();)br()}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:i}=this.getCurrentData(),s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(let e in r)s.push(e);for(t=0;t<s.length;t+=1)if(n=r[s[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:ti(e.calendarOptions.now,e.dateEnv)})}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=N(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),Me(t))[0]}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),Me(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),i=Di(n,r.dateEnv,N({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),ii(i,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 di){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Fe({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof ci)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=fe(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let i=st(e,n,r,!1);if(i){let e=new di(r,i.def,i.def.recurringDef?null:i.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Fe(i)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:fi(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let i in n){let s=n[i];if(s.publicId===e){if(s.recurringDef)return new di(t,s,null);for(let e in r){let n=r[e];if(n.defId===s.defId)return new di(t,s,n)}}}return null}getEvents(){let e=this.getCurrentData();return hi(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 ci(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 ci(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof ci)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=Ds(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new ci(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=N(e);t&&this.trigger("_timeScrollRequest",t)}}var Ts={__proto__:null,BASE_OPTION_DEFAULTS:Ne,identity:Le,refineProps:je,createEventInstance:Be,parseEventDef:lt,refineEventDef:ot,parseBusinessHours:ct,parseFieldSpecs:te,compareByFieldSpecs:ne,flexibleCompare:ie,preventSelection:function(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.addEventListener("selectstart",Y)},allowSelection:function(e){e.style.userSelect="",e.style.webkitUserSelect="",e.removeEventListener("selectstart",Y)},preventContextMenu:function(e){e.addEventListener("contextmenu",Y)},allowContextMenu:function(e){e.removeEventListener("contextmenu",Y)},compareNumbers:function(e,t){return e-t},enableCursor:function(){document.body.classList.remove(J.notAllowed)},disableCursor:function(){document.body.classList.add(J.notAllowed)},guid:ee,computeVisibleDayRange:ft,diffDates:ht,WEEKDAY_ONLY_FORMAT:mt,FULL_DATE_FORMAT:pt,findWeekdayText:vt,findDayNumberText:yt,findMonthText:_t,removeExact:function(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n},isArraysEqual:le,memoize:Ee,memoizeObjArg:Se,intersectRects:bt,pointInsideRect:function(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom},constrainPoint:function(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}},getRectCenter:function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}},diffPoints:function(e,t){return{left:e.left-t.left,top:e.top-t.top}},translateRect:function(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}},mapHash:de,filterHash:ce,isPropsEqualShallow:me,isPropsEqualWithMap:ve,joinFuncishClassNames:kt,mergeContentInjectors:Ot,mergeLifecycleCallbacks:It,mergeCalendarOptions:Rt,mergeViewOptionsMap:Tt,getAppendableRoot:Mt,computeElIsRtl:xt,applyStyle:Pt,getEventTargetViaRoot:At,getUniqueDomId:jt,joinArrayishClassNames:$e,fracToCssDim:function(e){return 100*e+"%"},createEmptyEventStore:Ge,mergeEventStores:Ye,getRelevantEvents:Ze,eventTupleToStore:Fe,combineEventUis:et,createEventUi:Qe,Splitter:class{constructor(){this.getKeysForEventDefs=Ee(this._getKeysForEventDefs),this.splitDateSelection=Ee(this._splitDateSpan),this.splitEventStore=Ee(this._splitEventStore),this.splitIndividualUi=Ee(this._splitIndividualUi),this.splitEventDrag=Ee(this._splitInteraction),this.splitEventResize=Ee(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,n),s=this.splitEventStore(e.eventStore,n),o=this.splitEventDrag(e.eventDrag),a=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=de(t,(e,t)=>this.eventUiBuilders[t]||Ee(Bt));for(let n in t){let u=t[n],c=s[n]||Lt,d=this.eventUiBuilders[n];l[n]={businessHours:u.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:c,eventUiBases:d(e.eventUiBases[""],u.ui,i[n]),eventDrag:o[n]||null,eventResize:a[n]||null,eventSelection:c.instances[e.eventSelection]?e.eventSelection:""}}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 de(e.defs,e=>this.getKeysForEventDef(e))}_splitEventStore(e,t){let{defs:n,instances:r}=e,i={};for(let e in n)for(let r of t[e])i[r]||(i[r]={defs:{},instances:{}}),i[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])i[r]&&(i[r].instances[e]=n)}return i}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let i of t[r])n[i]||(n[i]={}),n[i][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),s=r=>{t[r]||(t[r]={affectedEvents:n[r]||Lt,mutatedEvents:i[r]||Lt,isEvent:e.isEvent})};for(let e in n)s(e);for(let e in i)s(e)}return t}},getDateMeta:Wt,isDimsEqual:Vt,watchSize:Ur,watchWidth:Lr,watchHeight:Br,afterSize:function(e){Rr.add(e),kr||Or||(Or=!0,requestAnimationFrame(()=>{Or=!1,Ir()}))},debounce:Ar,buildNavLinkAttrs:function(e,t,n="day",r=Wr(e,t,n),i=!0){const{dateEnv:s,options:o,calendarApi:a}=e,l=s.toDate(t),u=e=>{let r="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"==typeof r?r.call(a,s.toDate(t),e):("string"==typeof r&&(n=r),a.zoomTo(t,n))};return Object.assign({role:"link","aria-label":se(o.navLinkHint,[r,l],r),className:$e(o.navLinkClass,J.cursorPointer,J.internalNavLink)},i?X(u):{onClick:u})},buildDateStr:Wr,preventDefault:Y,whenTransitionDone:function(e,t){let n=r=>{t(r),$.forEach(t=>{e.removeEventListener(t,n)})};$.forEach(t=>{e.addEventListener(t,n)})},computeInnerRect:function(e,t=!1,n){let r=n?e.getBoundingClientRect():zr(e),i=Vr(e,t),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s},computeEdges:Vr,getClippingParents:Fr,computeRect:zr,unpromisify:Zr,Emitter:Gr,PositionCache:class{constructor(e,t,n,r){this.els=t;let i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let i=r.getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,i=n.length;for(t=0;t<i;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Yr(this.tops||[],e.tops||[])&&Yr(this.bottoms||[],e.bottoms||[])&&Yr(this.lefts||[],e.lefts||[])&&Yr(this.rights||[],e.rights||[])}},ScrollController:qr,ElementScrollController:class extends qr{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}},WindowScrollController:class extends qr{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}},ViewContextType:$r,DateComponent:ei,DateProfileGenerator:ni,computeMajorUnit:function(e,t){const{currentRange:n}=e;if("year"===e.currentRangeUnit)return t.diffWholeYears(n.start,n.end)>1?"year":"month";if("month"===e.currentRangeUnit){if(t.diffWholeMonths(n.start,n.end)>1)return"month"}else if("week"===e.currentRangeUnit){if(s(n.start,n.end)>1)return"week"}else if("day"===e.currentRangeUnit&&o(n.start,n.end)>1)return"day"},isMajorUnit:ri,isDateSpansEqual:function(e,t){return S(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)},SegHierarchy:class{constructor(e,t=(e=>1),n=!1,r,i,s=!1,o=!1){this.getSegThickness=t,this.strictOrder=n,this.maxCoord=r,this.maxDepth=i,this.hiddenConsumes=s,this.allowSlicing=o,this.placementsByLevel=[],this.levelCoords=[],this.hiddenSegs=[];for(const t of e)this.insertSeg(t,this.getSegThickness(t))}insertSeg(e,t,n){if(null!=t){const r=this.findInsertion(e,t);if(this.isInsertionValid(r,t))this.insertSegAt(e,r,t,n);else{const{touchingPlacement:n}=r;if(n){if(this.hiddenConsumes&&!n.isZombie&&(n.isZombie=!0,this.hiddenSegs.push(n),this.allowSlicing)){const t=Object.assign({},n);Object.assign(n,Ti(n,e)),n.isSlice=!0,this.splitSeg(t,n.thickness,n)}this.allowSlicing?(this.hiddenSegs.push(Object.assign(Object.assign({},e),Ti(e,n))),this.splitSeg(e,t,n)):this.hiddenSegs.push(e)}else this.hiddenSegs.push(e)}}}isInsertionValid(e,t){return(null==this.maxCoord||e.levelCoord+t<=this.maxCoord)&&(null==this.maxDepth||e.depth<this.maxDepth)}splitSeg(e,t,n){e.start<n.start&&this.insertSeg(Object.assign(Object.assign({},e),{end:n.start,isEnd:!1}),t,!0),e.end>n.end&&this.insertSeg(Object.assign(Object.assign({},e),{start:n.end,isStart:!1}),t,!0)}insertSegAt(e,t,n,r){const i=Object.assign(Object.assign({},e),{thickness:n,depth:t.depth,isSlice:r||e.isSlice||!1,isZombie:!1});-1===t.lateralIndex?(Ni(this.placementsByLevel,t.levelIndex,[i]),Ni(this.levelCoords,t.levelIndex,t.levelCoord)):Ni(this.placementsByLevel[t.levelIndex],t.lateralIndex,i)}findInsertion(e,t){let n,r,{placementsByLevel:i,levelCoords:s}=this,o=i.length,a=0,l=0;for(let u=0;u<o;u+=1){const o=s[u];if(!this.strictOrder&&o>=a+t)break;let c,d=i[u],[f,h]=Pi(d,e.start,ki),p=f+h;for(;(c=d[p])&&c.start<e.end;){let e=o+c.thickness;e>a&&(a=e,n=c,r=u),e===a&&(l=Math.max(l,c.depth+1)),p+=1}}let u=0;if(n)for(u=r+1;u<o&&s[u]<a;)u+=1;let c=-1;return u<o&&s[u]===a&&([c]=Pi(i[u],e.end,ki)),{touchingPlacement:n,levelCoord:a,levelIndex:u,lateralIndex:c,depth:l}}traverseSegs(e){const{placementsByLevel:t,levelCoords:n}=this;for(let r=0;r<t.length;r++){const i=t[r],s=n[r];for(const t of i)t.isZombie||e(t,s)}}},groupIntersectingSegs:function(e){let t=[];for(let i of e){let e=[],s={segs:[i],start:i.start,end:i.end};for(let i of t)r=s,(n=i).end>r.start&&n.start<r.end?s=Object.assign(Object.assign({},Ri(i,s)),{segs:i.segs.concat(s.segs)}):e.push(i);e.push(s),t=e}var n,r;return t.map(t=>Object.assign({key:j(Oi(e))},t))},binarySearch:Pi,Interaction:Hi,interactionSettingsToStore:function(e){return{[e.component.uid]:e}},interactionSettingsStore:Ai,ElementDragging:class{constructor(e,t){this.emitter=new Gr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}},config:{},parseDragMeta:function(e){let{refined:t,extra:n}=je(e,Ui);return{startTime:t.startTime||null,duration:t.duration||null,create:null==t.create||t.create,sourceId:t.sourceId,leftoverProps:n}},CalendarRoot:ji,DaySeriesModel:class{constructor(e,n){let r=e.start,{end:i}=e,s=[],o=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),o.push(r)),r=t(r,1);this.dates=o,this.indices=s,this.cnt=o.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(t(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{start:i,end:s+1,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:t}=this,n=Math.floor(r(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}},sliceEventStore:pi,hasBgRendering:function(e){return"background"===e.ui.display||"inverse-background"===e.ui.display},getElEventRange:mi,buildEventRangeTimeText:bi,sortEventSegs:function(e,t){let n=e.map(_i);return n.sort((e,n)=>ne(e,n,t)),n.map(e=>e._seg)},getEventRangeMeta:function(e,t,n){let r=e.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&w(t,r.start)}},buildEventRangeKey:function(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`},getEventTagAndAttrs:Ei,getEventKey:function(e){return e.eventRange.instance.instanceId},DayTableModel:class{constructor(e,t,n,r=""){this.dateEnv=n,this.majorUnit=r;let i,s,o,{dates:a}=e;if(t){for(s=a[0].getUTCDay(),i=1;i<a.length&&a[i].getUTCDay()!==s;i+=1);o=Math.ceil(a.length/i)}else o=1,i=a.length;this.rowCount=o,this.colCount=i,this.daySeries=e,this.cellRows=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let t=0;t<this.rowCount;t+=1){let n=[];for(let e=0;e<this.colCount;e+=1)n.push(this.buildCell(t,e));e.push(n)}return e}buildCell(e,t){let n=this.daySeries.dates[e*this.colCount+t];return{key:n.toISOString(),date:n,isMajor:this.cellIsMajor(n)}}cellIsMajor(e){return!!this.majorUnit&&ri(e,this.majorUnit,this.dateEnv)}buildHeaderDates(){let e=[];for(let t=0;t<this.colCount;t+=1)e.push(this.cellRows[0][t].date);return e}sliceRange(e){let{colCount:t}=this,n=this.daySeries.sliceRange(e),r=[];if(n){const{start:e,end:i}=n;let s=e;for(;s<i;){let o=Math.floor(s/t),a=Math.min((o+1)*t,i);r.push({row:o,start:s%t,end:(a-1)%t+1,isStart:n.isStart&&s===e,isEnd:n.isEnd&&a===i}),s=a}}return r}},Scroller:Wi,getNormalizedScrollX:Vi,setNormalizedScrollX:zi,Slicer:class{constructor(){this.sliceBusinessHours=Ee(this._sliceBusinessHours),this.sliceDateSelection=Ee(this._sliceDateSpan),this.sliceEventStore=Ee(this._sliceEventStore),this.sliceEventDrag=Ee(this._sliceInteraction),this.sliceEventResize=Ee(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...i){let{eventUiBases:s}=e,o=this.sliceEventStore(e.eventStore,s,t,n,...i);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,s,r,...i),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...i),fgEventSegs:o.fg,bgEventSegs:o.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,t,n,...i),eventResize:this.sliceEventResize(e.eventResize,s,t,n,...i),eventSelection:e.eventSelection}}sliceNowDate(e,t,r,i,...s){return this._sliceDateSpan({range:{start:e,end:n(e,1)},allDay:!1},t,r,{},i,...s)}_sliceBusinessHours(e,t,n,r,...i){return e?this._sliceEventStore(We(e,Gi(t,Boolean(n)),r),{},t,n,...i).bg:[]}_sliceEventStore(e,t,n,r,...i){if(e){let s=pi(e,t,Gi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i),fg:this.sliceEventRanges(s.fg,i)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...i){if(!e)return null;let s=pi(e.mutatedEvents,t,Gi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,i,...s){if(!e)return[];let o=Gi(t,Boolean(n)),a=E(e.range,o);if(a){let t=function(e,t,n){let r=ot({editable:!1},n),i=lt(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:yi(i,t),instance:Be(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:a}),r,i),n=this.sliceRange(e.range,...s);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,n){let r=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(r={start:r.start,end:t(r.start,1)});let i=this.sliceRange(r,...n);for(let t of i)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return i}},applyMutationToEventStore:ai,isPropsValid:Qi,isInteractionValid:function(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!C(t.validRange,r[e].range))return!1;return Ji({eventDrag:e},n)},isDateSelectionValid:function(e,t,n){return!!C(t.validRange,e.range)&&Ji({dateSelection:e},n)},requestJson:ss,BaseComponent:Jr,setRef:Qr,DelayedRunner:Li,getStickyFooterScrollbar:function(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t=os(e)),t},getStickyHeaderDates:function(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t=os(e)),t},getIsHeightAuto:os,getScrollerSyncerClass:function(e){const t=e.scrollerSyncerClass;if(!t)throw new RangeError("Must import @fullcalendar/scrollgrid");return t},Ruler:class extends Jr{constructor(){super(...arguments),this.elRef={current:null}}render(){return ln("div",{ref:this.elRef})}componentDidMount(){const{props:e}=this,t=this.elRef.current;this.disconnectWidth=Lr(t,t=>{Qr(e.widthRef,t)})}componentWillUnmount(){this.disconnectWidth();const{props:e}=this;e.widthRef&&Qr(e.widthRef,null)}},RefMap:class{constructor(e,t=!1){this.masterCallback=e,this.ignoreDeletes=t,this.rev="",this.current=new Map,this.callbacks=new Map,this.handleValue=(e,t)=>{let{current:n,callbacks:r}=this;null===e?this.ignoreDeletes||(n.delete(t),r.delete(t)):n.set(t,e),this.rev=ee(),this.masterCallback&&this.masterCallback(e,t)}}createRef(e){let t=this.callbacks.get(e);return t||(t=t=>{this.handleValue(t,e)},this.callbacks.set(e,t)),t}},NowTimer:as,StandardEvent:class extends Jr{constructor(){super(...arguments),this.buildPublicEvent=Ee((e,t,n)=>new di(e,t,n)),this.handleEl=e=>{this.el=e,e&&gi(e,this.props.eventRange)}}render(){var e;const{props:t,context:n}=this,{options:r}=n,{eventRange:i}=t,s=i.ui,o=r.eventTimeFormat||t.defaultTimeFormat,a=null!==(e=t.forcedTimeText)&&void 0!==e?e:bi(o,i,t.slicedStart,t.slicedEnd,t.isStart,t.isEnd,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd),[l,u,c]=Ei(i,n),d=this.buildPublicEvent(n,i.def,i.instance),f=!t.disableDragging&&function(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:s}=e,o=s.startEditable;for(let e of r)o=e(o,i,s,t);return o}(i,n),h=/row|column/.test(t.display),p={event:d,isNarrow:t.isNarrow||!1,isShort:t.isShort||!1,timeText:a},g={event:d,view:n.viewApi,timeText:a,color:s.color||r.eventColor,contrastColor:s.contrastColor||r.eventContrastColor,isDraggable:f,isStartResizable:!t.disableResizing&&t.isStart&&s.durationEditable&&r.eventResizableFromStart,isEndResizable:!t.disableResizing&&t.isEnd&&s.durationEditable,isMirror:t.isMirror,isStart:Boolean(t.isStart),isEnd:Boolean(t.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing),isInteractive:c,isNarrow:t.isNarrow||!1,isShort:t.isShort||!1,level:t.level||0,timeClass:Xe(gs(r.eventTimeClass,p),h&&gs(r.blockEventTimeClass,p),"row"===t.display&&gs(r.rowEventTimeClass,p),"column"===t.display&&gs(r.columnEventTimeClass,p),"list-item"===t.display&&gs(r.listItemEventTimeClass,p)),titleClass:Xe(gs(r.eventTitleClass,p),h&&gs(r.blockEventTitleClass,p),"row"===t.display&&gs(r.rowEventTitleClass,p),"column"===t.display&&gs(r.columnEventTitleClass,p),"list-item"===t.display&&gs(r.listItemEventTitleClass,p),"row"===t.display&&r.rowEventTitleSticky&&J.stickyS,"column"===t.display&&r.columnEventTitleSticky&&J.stickyT),options:{eventOverlap:Boolean(r.eventOverlap)}},m=$e(h&&gs(r.blockEventClass,g),"row"===t.display&&gs(r.rowEventClass,g),"column"===t.display&&gs(r.columnEventClass,g),"list-item"===t.display&&gs(r.listItemEventClass,g),s.className,t.className,"column"===t.display?J.flexCol:J.flexRow,i.def.url&&J.inheritTextDecoration,(i.def.url||f)&&J.cursorPointer,J.internalEvent,t.isMirror&&J.internalEventMirror,f&&J.internalEventDraggable,g.isSelected&&J.internalEventSelected,(g.isStartResizable||g.isEndResizable)&&J.internalEventResizable),v=Xe(gs(r.eventBeforeClass,g),h&&gs(r.blockEventBeforeClass,g),"row"===t.display&&gs(r.rowEventBeforeClass,g),"column"===t.display&&gs(r.columnEventBeforeClass,g),"list-item"===t.display&&gs(r.listItemEventBeforeClass,g)),y=Xe(gs(r.eventAfterClass,g),h&&gs(r.blockEventAfterClass,g),"row"===t.display&&gs(r.rowEventAfterClass,g),"column"===t.display&&gs(r.columnEventAfterClass,g),"list-item"===t.display&&gs(r.listItemEventAfterClass,g)),_=Xe(gs(r.eventInnerClass,g),h&&gs(r.blockEventInnerClass,g),"row"===t.display&&gs(r.rowEventInnerClass,g),"column"===t.display&&gs(r.columnEventInnerClass,g),"list-item"===t.display&&gs(r.listItemEventInnerClass,g),!t.disableLiquid&&J.liquid),b="row"===t.display&&r.rowEventBeforeContent,E="row"===t.display&&r.rowEventAfterContent;return ln(hs,{tag:l,attrs:Object.assign(Object.assign(Object.assign({},t.attrs),u),{dir:t.isDragging&&"rtl"===r.direction?"rtl":void 0}),className:m,style:{"--fc-event-color":g.color,"--fc-event-contrast-color":g.contrastColor},elRef:this.handleEl,renderProps:g,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:ms,classNameGenerator:r.eventClass,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e=>ln(dn,null,Boolean(g.isSelected&&h)&&ln("div",{className:"column"===t.display?J.hitX:J.hitY}),(v||b)&&ln("div",{className:Xe(v,!t.disableZindexes&&J.z1,g.isStartResizable&&Xe("column"===t.display?J.cursorResizeT:J.cursorResizeS,J.internalEventResizer,J.internalEventResizerStart))},b&&ln(hs,{tag:"div",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:g,generatorName:void 0,customGenerator:b}),Boolean(g.isStartResizable&&g.isSelected)&&ln("div",{className:J.hit})),ln(e,{tag:"div",className:Xe(_,!t.disableZindexes&&J.z0)}),(y||E)&&ln("div",{className:Xe(y,!t.disableZindexes&&J.z1,g.isEndResizable&&Xe("column"===t.display?J.cursorResizeB:J.cursorResizeE,J.internalEventResizer,J.internalEventResizerEnd))},E&&ln(hs,{tag:"div",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:g,generatorName:void 0,customGenerator:E}),Boolean(g.isEndResizable&&g.isSelected)&&ln("div",{className:J.hit}))))}componentDidUpdate(e){this.el&&this.props.eventRange!==e.eventRange&&gi(this.el,this.props.eventRange)}},NowIndicatorHeaderContainer:e=>ln($r.Consumer,null,t=>{let{options:n}=t,r={date:t.dateEnv.toDate(e.date),view:t.viewApi};return ln(hs,Object.assign({},e,{tag:e.tag||"div",renderProps:r,generatorName:"nowIndicatorHeaderContent",customGenerator:n.nowIndicatorHeaderContent,classNameGenerator:n.nowIndicatorHeaderClass,didMount:n.nowIndicatorHeaderDidMount,willUnmount:n.nowIndicatorHeaderWillUnmount}))}),NowIndicatorLineContainer:e=>ln($r.Consumer,null,t=>{let{options:n}=t,r={date:t.dateEnv.toDate(e.date),view:t.viewApi};return ln(hs,Object.assign({},e,{tag:e.tag||"div",renderProps:r,generatorName:"nowIndicatorLineContent",customGenerator:n.nowIndicatorLineContent,classNameGenerator:n.nowIndicatorLineClass,didMount:n.nowIndicatorLineDidMount,willUnmount:n.nowIndicatorLineWillUnmount}))}),NowIndicatorDot:e=>ln($r.Consumer,null,t=>{let{options:n}=t;return ln("div",{className:$e(e.className,n.nowIndicatorDotClass),style:e.style})}),renderFill:function(e,t){return ln("div",{className:$e("non-business"===e?t.nonBusinessClass:"highlight"===e?t.highlightClass:void 0,J.fill)})},BgEvent:class extends Jr{constructor(){super(...arguments),this.buildPublicEvent=Ee((e,t,n)=>new di(e,t,n)),this.handleEl=e=>{this.el=e,e&&gi(e,this.props.eventRange)}}render(){const{props:e,context:t}=this,{eventRange:n}=e,{options:r}=t,i=n.ui,s=this.buildPublicEvent(t,n.def,n.instance),o={event:s,isNarrow:e.isNarrow||!1,isShort:e.isShort||!1},a={event:s,view:t.viewApi,timeText:"",color:i.color||r.backgroundEventColor,contrastColor:i.contrastColor,isDraggable:!1,isStartResizable:!1,isEndResizable:!1,isMirror:!1,isStart:e.isStart,isEnd:e.isEnd,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:!1,isDragging:!1,isResizing:!1,isInteractive:!1,level:0,isNarrow:e.isNarrow||!1,isShort:e.isShort||!1,timeClass:"",titleClass:Xe(gs(r.eventTitleClass,o),gs(r.backgroundEventTitleClass,o)),options:{eventOverlap:Boolean(r.eventOverlap)}},l=$e(gs(r.backgroundEventClass,a),i.className,J.fill,J.internalEvent,J.internalBgEvent,e.isVertical?J.flexCol:J.flexRow),u=Xe(gs(r.eventInnerClass,a),gs(r.backgroundEventInnerClass,a),J.liquid);return ln(hs,{tag:"div",className:l,style:{"--fc-event-color":a.color,"--fc-event-contrast-color":a.contrastColor},defaultGenerator:vs,elRef:this.handleEl,renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,classNameGenerator:r.eventClass,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e=>ln(e,{tag:"div",className:u}))}componentDidUpdate(e){this.el&&this.props.eventRange!==e.eventRange&&gi(this.el,this.props.eventRange)}},MoreLinkContainer:class extends Jr{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:jt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Qr(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{dateEnv:r,options:i}=n,{moreLinkClick:s}=i,o=Es(t).start;function a(e){let{def:t,instance:i,range:s}=e.eventRange;return{event:new di(n,t,i),start:r.toDate(s.start),end:r.toDate(s.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof s&&(s=s({date:r.toDate(o),allDay:Boolean(t.allDayDate),allSegs:t.segs.map(a),hiddenSegs:t.hiddenSegs.map(a),jsEvent:e,view:n.viewApi})),s&&"popover"!==s?"string"==typeof s&&n.calendarApi.zoomTo(o,s):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.linkEl&&this.linkEl.focus(),this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return ln($r.Consumer,null,n=>{let{viewApi:r,options:i,calendarApi:s}=n,{moreLinkText:o}=i,a=e.hiddenSegs.length,l=Es(e),u="+"+a,c="function"==typeof o?o.call(s,a):`${u} ${o}`,d=se(i.moreLinkHint,[a],c),f={num:a,numericText:u,longText:c,text:e.isMicro||"column"===e.display?u:c,isNarrow:e.isNarrow,view:r};return ln(dn,null,Boolean(a)&&ln(hs,{tag:"div",elRef:this.handleLinkEl,className:Xe(gs("row"===e.display?i.rowMoreLinkClass:i.columnMoreLinkClass,f),e.className,"row"===e.display?J.flexRow:J.flexCol,J.internalMoreLink,J.cursorPointer),style:e.style,attrs:Object.assign(Object.assign(Object.assign({},e.attrs),X(this.handleClick)),{title:d,role:"button","aria-haspopup":"dialog","aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:void 0}),renderProps:f,generatorName:"moreLinkContent",customGenerator:i.moreLinkContent,defaultGenerator:bs,classNameGenerator:i.moreLinkClass,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},t=>ln(t,{tag:"div",className:Xe(gs(i.moreLinkInnerClass,f),gs("row"===e.display?i.rowMoreLinkInnerClass:i.columnMoreLinkInnerClass,f),"row"===e.display?J.stickyS:J.stickyT)})),t.isPopoverOpen&&ln(ys,{id:t.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,dateSpanProps:e.dateSpanProps,alignEl:e.alignElRef?e.alignElRef.current:this.linkEl,alignParentTop:e.alignParentTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}},ViewContainer:class extends Jr{render(){let{props:e,context:t}=this,{options:n}=t;return ln(hs,Object.assign({},e,{tag:e.tag||"div",attrs:e.attrs,className:Xe(e.className,e.borderlessX&&J.borderlessX,e.borderlessTop&&J.borderlessTop,e.borderlessBottom&&J.borderlessBottom,e.noEdgeEffects&&J.noEdgeEffects),renderProps:{view:t.viewApi},classNameGenerator:n.viewClass,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),()=>e.children)}},triggerDateSelect:ii,getDefaultEventEnd:oi,CalendarImpl:ws,EventImpl:di,buildEventApis:hi,buildElAttrs:ds,ContentContainer:hs,renderText:function(e){return e.text},generateClassName:gs,CustomRenderingStore:class extends class{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)}}{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)}},computeEarliestStart:Oi,computeLatestEnd:Ii,getCoordRangeEnd:ki,FooterScrollbar:class extends Jr{constructor(){super(...arguments),this.rootElRef={current:null}}render(){const{props:e}=this;return ln("div",{ref:this.rootElRef,className:Xe(J.footerScrollbar,e.isSticky&&J.footerScrollbarSticky)},ln(Wi,{horizontal:!0,ref:e.scrollerRef},ln("div",{style:{minWidth:e.canvasWidth}})))}componentDidMount(){this.disconnectHeight=Br(this.rootElRef.current,e=>{Qr(this.props.scrollbarWidthRef,e)})}componentWillUnmount(){this.disconnectHeight(),Qr(this.props.scrollbarWidthRef,null)}},createFormatter:Me,rangeContainsMarker:w,intersectRanges:E,rangesEqual:S,rangesIntersect:D,rangeContainsRange:C,addDays:t,startOfDay:a,addMs:n,addWeeks:function(e,t){let n=f(e);return n[2]+=7*t,h(n)},diffWeeks:function(e,t){return r(e,t)/7},diffWholeWeeks:s,diffWholeDays:o,diffDayAndTime:i,diffDays:r,isValidDate:p,createDuration:N,asCleanDays:function(e){return e.years||e.months||e.milliseconds?0:e.days},multiplyDuration:function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}},addDurations:function(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}},asRoughMinutes:function(e){return A(e)/6e4},asRoughSeconds:function(e){return A(e)/1e3},asRoughMs:A,wholeDivideDurations:function(e,t){let n=null;for(let r=0;r<M.length;r+=1){let i=M[r];if(t[i]){let r=e[i]/t[i];if(!k(r)||null!==n&&n!==r)return null;n=r}else if(e[i])return null}return n},greatestDurationDenominator:U,DateEnv:F,formatIsoTimeString:function(e){return I(e.getUTCHours(),2)+":"+I(e.getUTCMinutes(),2)+":"+I(e.getUTCSeconds(),2)},formatDayString:L,buildIsoString:j,formatIsoMonthStr:function(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]},NamedTimeZoneImpl:class{constructor(e){this.timeZoneName=e}},parseMarker:z,padStart:I,isInt:k,trimEnd:O};const Rs=[],ks={code:"en",week:{dow:0,doy:4},direction:"ltr",todayText:"Today",prevText:"Prev",nextText:"Next",prevYearText:"Prev year",nextYearText:"Next year",yearText:"Year",monthText:"Month",weekText:"Week",dayText:"Day",listText:"List",closeHint:"Close",eventsHint:"Events",allDayText:"All-day",timedText:"Timed",moreLinkText:"more",noEventsText:"No events to display"},Os=Object.assign(Object.assign({},ks),{weekTextShort:"W",todayHint:(e,t)=>"day"===t?"Today":"This "+e,prevHint:"Previous $0",nextHint:"Next $0",viewHint:"$0 view",viewChangeHint:"Change view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function Is(e){let t=e.length>0?e[0].code:"en",n=Rs.concat(e),r={en:Os};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function Ms(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||Os;return xs(e,n,r)}(e,t):xs(e.code,[e.code],e)}function xs(e,t,n){let r=Rt(ks,n);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Ns(e){return{id:ee(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollerSyncerClass:e.scrollerSyncerClass||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},optionDefaults:e.optionDefaults?[e.optionDefaults]:[],propSetHandlers:e.propSetHandlers||{}}}function Ps(){let e,t=[],n=[];return(r,i)=>(e&&le(r,t)&&le(i,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollerSyncerClass:null,listenerRefiners:{},optionRefiners:{},optionDefaults:[],propSetHandlers:{}};function i(e){for(let o of e){const e=o.name,a=n[e];void 0===a?(n[e]=o.id,i(o.deps),s=o,r={premiumReleaseDate:Hs((t=r).premiumReleaseDate,s.premiumReleaseDate),reducers:t.reducers.concat(s.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:t.contextInit.concat(s.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),s.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(s.dateSpanTransforms),views:Tt(t.views,s.views),viewPropsTransformers:t.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(s.calendarInteractions),componentInteractions:t.componentInteractions.concat(s.componentInteractions),eventSourceDefs:t.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||s.initialView,elementDraggingImpl:t.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),s.optionChangeHandlers),scrollerSyncerClass:t.scrollerSyncerClass||s.scrollerSyncerClass,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),s.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),s.optionRefiners),optionDefaults:t.optionDefaults.concat(s.optionDefaults),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),s.propSetHandlers)}):a!==o.id&&console.warn(`Duplicate plugin '${e}'`)}var t,s}return e&&i(e),i(t),r}(r,i)),t=r,n=i,e)}function Hs(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}function As(e,t,n,r){if(t[e])return t[e];let i=function(e,t,n,r){let i=n[e],s=r[e],o=e=>i&&null!==i[e]?i[e]:s&&null!==s[e]?s[e]:null,a=o("component"),l=o("superType"),u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=As(l,t,n,r)}!a&&u&&(a=u.component);if(!a)return null;return{type:e,component:a,defaults:Rt(u?u.defaults:{},i?i.rawOptions:{}),overrides:Rt(u?u.overrides:{},s?s.rawOptions:{})}}(e,t,n,r);return i&&(t[e]=i),i}function Us(e){return de(e,js)}function js(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=Ls(t):!n||n.prototype instanceof Jr||(n=Ls(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Ls(e){return t=>ln($r.Consumer,null,n=>{var r;return ln(hs,{tag:"div",className:gs(e.viewClass,{view:n.viewApi}),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:e.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:null!==(r=e.class)&&void 0!==r?r:e.className,didMount:e.didMount,willUnmount:e.willUnmount})})}function Bs(e,t,n){let r=Us(e),i=Us(t.views);return de(function(e,t){let n,r={};for(n in e)As(n,r,e,t);for(n in t)As(n,r,e,t);return r}(r,i),e=>function(e,t,n,r){let i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,s=null,o="",a="",l={};if(i&&(s=function(e){let t=JSON.stringify(e),n=Ws[t];void 0===n&&(n=N(e),Ws[t]=n);return n}(i),s)){let e=U(s);o=e.unit,1===e.value&&(a=o,l=t[o]?t[o].rawOptions:{})}return{type:e.type,component:e.component,duration:s,durationUnit:o,singleUnit:a,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},l),e.overrides)}}(e,i,t,n))}let Ws={};function Vs(e,t,n){let r=t?t.activeRange:null;return Zs({},function(e,t){let n=Cs(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(let e of r){let r=Ds(e,t,n);r&&i.push(r)}return i}(e,n),r,n)}function zs(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Zs(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return s=e,o=t.sourceId,ce(s,e=>e.sourceId!==o);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Gs(e,i,r):e;case"FETCH_EVENT_SOURCES":return Ys(e,t.sourceIds?he(t.sourceIds):$s(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let i=e[t];if(i&&n===i.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var s,o}function Fs(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Zs(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=Gs(i,n,r)),Object.assign(Object.assign({},e),i)}function Gs(e,t,n){return Ys(e,ce(e,e=>function(e,t,n){if(!Xs(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)),t,!1,n)}function Ys(e,t,n,r,i){let s={};for(let o in e){let a=e[o];t[o]?s[o]=qs(a,n,r,i):s[o]=a}return s}function qs(e,t,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=ee();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},n=>{let{rawEvents:o}=n;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(s,o,n.response)||o),e.success&&(o=e.success.call(s,o,n.response)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:o})},n=>{let o=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,n),o=!0),e.failure&&(e.failure(n),o=!0),o||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function $s(e,t){return ce(e,e=>Xs(e,t))}function Xs(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Ks(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Js(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function Qs(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function eo(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function to(e,t,n){return{header:e.headerToolbar?no(e.headerToolbar,e,t,n):null,footer:e.footerToolbar?no(e.footerToolbar,e,t,n):null}}function no(e,t,n,r){let i="rtl"===t.direction,s=[],o=!1;function a(e){let i=function(e,t,n,r){let i=t.buttons||{},s=t.toolbarElements||{},o=e?e.split(" "):[],a=[],l=!1;return{widgets:o.map(e=>e.split(",").map(e=>{var o;if("title"===e)return l=!0,{name:e};if(s[e])return{name:e,customElement:s[e]};let u,c,d,f,h=i[e]||{};if(u=n[e]){a.push(e);const n=u.optionDefaults.buttonTextKey;c=h.text||(n?t[n]:"")||(u.singleUnit?t[u.singleUnit+"Text"]:"")||e,d=se(h.hint||t.viewHint,[c,e],c),f=t=>{var n;null===(n=null==h?void 0:h.click)||void 0===n||n.call(h,t),t.defaultPrevented||r.changeView(e)}}else c=h.text||t[e+"Text"]||e,d="prevYear"===e?se(h.hint||t.prevHint,[t.yearText,"year"],c):"nextYear"===e?se(h.hint||t.nextHint,[t.yearText,"year"],c):n=>se(h.hint||t[e+"Hint"],[t[n+"Text"],n],c),f=t=>{var n,i;null===(n=null==h?void 0:h.click)||void 0===n||n.call(h,t),t.defaultPrevented||null===(i=r[e])||void 0===i||i.call(r)};return{name:e,isView:Boolean(u),buttonText:c,buttonHint:d,buttonDisplay:h.display,buttonIconClass:h.iconClass,buttonIconContent:h.iconContent,buttonClick:f,buttonIsPrimary:h.isPrimary||!1,buttonClass:null!==(o=h.class)&&void 0!==o?o:h.className,buttonDidMount:h.didMount,buttonWillUnmount:h.willUnmount}})),viewsWithButtons:a,hasTitle:l}}(e,t,n,r);return s.push(...i.viewsWithButtons),o=o||i.hasTitle,i.widgets}return{sectionWidgets:{start:a(e[i?"right":"left"]||e.start||""),center:a(e.center||""),end:a(e[i?"left":"right"]||e.end||"")},viewsWithButtons:s,hasTitle:o}}class ro{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}function io(e,t){let n=fe(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const so=[Ns({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),Ns({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;Zr(e.eventSource.meta.bind(null,Ci(e.range,r)),e=>t({rawEvents:e}),n)}}]}),Ns({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:Le,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam},fetch(e,t,n){const{meta:r}=e.eventSource,i=function(e,t,n){let r,i,s,o,{dateEnv:a,options:l}=n,u={};r=e.startParam,null==r&&(r=l.startParam);i=e.endParam,null==i&&(i=l.endParam);s=e.timeZoneParam,null==s&&(s=l.timeZoneParam);o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(u,o),u[r]=a.formatIso(t.start),u[i]=a.formatIso(t.end),"local"!==a.timeZone&&(u[s]=a.timeZone);return u}(r,e.range,e.context);ss(r.method,r.url,i).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),Ns({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let i,s={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null};return e.duration&&(i=e.duration),!i&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,i={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:i,typeData:s}}var n,r;return null},expand(e,n,r){let i=E(n,{start:e.startRecur,end:e.endRecur});return i?function(e,n,r,i){let s=e?he(e):null,o=a(r.start),l=r.end,u=[];for(;o<l;){let e;s&&!s[o.getUTCDay()]||(e=n?i.add(o,n):o,u.push(e)),o=t(o,1)}return u}(e.daysOfWeek,e.startTime,i,r):[]}}],eventRefiners:{daysOfWeek:Le,startTime:N,endTime:N,duration:N,startRecur:Le,endRecur:Le}}),Ns({name:"change-handler",optionChangeHandlers:{controller(e,t){e._setApi(t.calendarApi)},events(e,t){io([e],t)},eventSources:io}}),Ns({name:"misc",isLoadingFuncs:[e=>Fs(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Ci(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",hi(e,t))}}})];class oo{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Li(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function ao(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,Me(t.titleFormat||function(e,t){let{currentRangeUnit:n}=e;if("year"===n)return{year:"numeric"};if("month"===n)return{year:"numeric",month:"long"};let r=o(e.currentRange.start,e.currentRange.end);if(null!==r&&r>1)return{year:"numeric",month:t.getMonth(e.activeRange.start)!==t.getMonth(e.activeRange.end)?"short":"long"};return{year:"numeric",month:"long",day:"numeric"}}(e,n)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class lo{constructor(e){this.computeCurrentViewData=Ee(this._computeCurrentViewData),this.organizeRawLocales=Ee(Is),this.buildLocale=Ee(Ms),this.buildPluginHooks=Ps(),this.buildDateEnv=Ee(uo),this.parseToolbars=Ee(to),this.buildViewSpecs=Ee(Bs),this.buildDateProfileGenerator=Se(co),this.buildViewApi=Ee(fo),this.buildViewUiProps=Se(go),this.buildEventUiBySource=Ee(ho,me),this.buildEventUiBases=Ee(po),this.parseContextBusinessHours=Se(vo),this.buildTitle=Ee(ao),this.emitter=new Gr,this.actionRunner=new oo(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,i=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);const s=n.calendarOptions.controller;s&&s._setApi(e.calendarApi);let o=function(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):ti(e.now,t)}(n.calendarOptions,n.dateEnv),a=i.dateProfileGenerator.build(o);w(a.activeRange,o)||(o=a.currentRange.start);let l={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(l);let u=Vs(n.calendarOptions,a,l),c={dynamicOptionOverrides:t,currentViewType:r,currentDate:o,dateProfile:a,businessHours:this.parseContextBusinessHours(l),eventSources:u,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},d=Object.assign(Object.assign({},l),c);for(let e of n.pluginHooks.reducers)Object.assign(c,e(null,null,d));mo(c,l)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,i=function(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}(n.dynamicOptionOverrides,e),s=this.computeOptionsData(t.optionOverrides,i,t.calendarApi),o=function(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}(n.currentViewType,e),a=this.computeCurrentViewData(o,s,t.optionOverrides,i);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(a.options);let l={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:c}=n;this.data&&this.data.dateProfileGenerator!==a.dateProfileGenerator&&(c=a.dateProfileGenerator.build(u)),u=function(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}(u,e),c=function(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i}return e}(c,e,u,a.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&w(c.currentRange,u)||(u=c.currentRange.start);let d=zs(n.eventSources,e,c,l),f=Yi(n.eventStore,e,d,c,l),h=Fs(d)&&!a.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:p,selectionConfig:g}=this.buildViewUiProps(l),m=this.buildEventUiBySource(d),v={dynamicOptionOverrides:i,currentViewType:o,currentDate:u,dateProfile:c,eventSources:d,eventStore:f,renderableEventStore:h,selectionConfig:g,eventUiBases:this.buildEventUiBases(h.defs,p,m),businessHours:this.parseContextBusinessHours(l),dateSelection:Ks(n.dateSelection,e),eventSelection:Js(n.eventSelection,e),eventDrag:Qs(n.eventDrag,e),eventResize:eo(n.eventResize,e)},y=Object.assign(Object.assign({},l),v);for(let t of s.pluginHooks.reducers)Object.assign(v,t(n,e,y));let _=mo(n,l),b=mo(v,l);!_&&b?r.trigger("loading",!0):_&&!b&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),i=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),s=this.buildTitle(t.dateProfile,i.options,r.dateEnv),o=this.data=Object.assign(Object.assign(Object.assign({viewTitle:s,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),i),t),a=r.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,u=r.calendarOptions;if(l&&l!==u){l.timeZone!==u.timeZone&&(t.eventSources=o.eventSources=function(e,t,n){let r=t?t.activeRange:null;return Ys(e,$s(e,n),r,!0,n)}(o.eventSources,t.dateProfile,o),t.eventStore=o.eventStore=Xi(o.eventStore,n.dateEnv,o.dateEnv),t.renderableEventStore=o.renderableEventStore=Xi(o.renderableEventStore,n.dateEnv,o.dateEnv));for(let e in a)-1===this.optionsForHandling.indexOf(e)&&l[e]===u[e]||a[e](u[e],o)}this.optionsForHandling=[],e.onData&&e.onData(o)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:s,availableLocaleData:o}=this.processRawCalendarOptions(e,t),a=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,r.weekTextShort,i,o,r.defaultRangeSeparator),l=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides),u=this.parseToolbars(r,l,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:a,viewSpecs:l,toolbarConfig:u,localeDefaults:s,availableRawLocales:o.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Rt(Ne,e,t),i=this.organizeRawLocales(n),s=i.map,o=this.buildLocale(r||i.defaultCode,s).options,a=this.buildPluginHooks(e.plugins||[],so),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),Pe),He),a.listenerRefiners),a.optionRefiners),u=Rt(Ne,...a.optionDefaults,o,yo(Rt(e,t),l)),c={},d=this.currentCalendarOptionsInput,f=this.currentCalendarOptionsRefined,h=!1;for(let e in u)-1===this.optionsForRefining.indexOf(e)&&(u[e]===d[e]||Ue[e]&&e in d&&Ue[e](d[e],u[e])||d[e]&&d[e].parts&&u[e]&&u[e].parts&&le(d[e].parts,u[e].parts))?c[e]=f[e]:l[e]&&(c[e]=l[e](u[e]),h=!0);return h&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=c,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:a,availableLocaleData:i,localeDefaults:o}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);return{viewSpec:i,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,i){let s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),Pe),He),Ae),t.listenerRefiners),t.optionRefiners),o=Rt(Ne,...t.optionDefaults,e.optionDefaults,n,yo(Rt(r,e.optionOverrides,i),s)),a={},l=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,c=!1;for(let e in o)o[e]===l[e]||Ue[e]&&Ue[e](o[e],l[e])||l[e]&&l[e].parts&&o[e]&&o[e].parts&&le(l[e].parts,o[e].parts)?a[e]=u[e]:(o[e]===this.currentCalendarOptionsInput[e]||Ue[e]&&Ue[e](o[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(a[e]=this.currentCalendarOptionsRefined[e]):s[e]&&(a[e]=s[e](o[e])),c=!0);return c&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined}}}function uo(e,t,n,r,i,s,o,a,l){let u=Ms(t||a.defaultCode,a.map);return new F({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:u,weekNumberCalculation:n,firstDay:r,weekText:i,weekTextShort:s,cmdFormatter:o.cmdFormatter,defaultSeparator:l})}function co(e){return new(e.dateProfileGeneratorClass||ni)(e)}function fo(e,t,n){return new ro(e,t,n)}function ho(e){return de(e,e=>e.ui)}function po(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function go(e){const{options:t}=e;return{eventUiSingleBase:Qe({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow},e),selectionConfig:Qe({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function mo(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function vo(e){return ct(e.options.businessHours,e)}function yo(e,t){const n={};for(const r in e)t[r]&&(n[r]=e[r]);return n}class _o extends Hi{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,i=mi(t);i&&n.isValidSegDownEl(e.target)&&r.emitter.trigger("eventClick",{el:t,event:new di(n.context,i.def,i.instance),jsEvent:e,view:r.viewApi})},this.destroy=q(e.el,"click","."+J.internalEvent,this.handleSegClick)}}class bo extends Hi{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{mi(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let i;return q(e,"mouseover",t,(e,t)=>{if(t!==i){i=t,n(e,t);let s=e=>{i=null,r(e,t),t.removeEventListener("mouseleave",s)};t.addEventListener("mouseleave",s)}})}(e.el,"."+J.internalEvent,this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:i}=r,s=mi(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new di(i,s.def,s.instance),jsEvent:t,view:i.viewApi})}}class Eo extends Jr{render(){const{contentGenerator:e,className:t}=this.props;return e?ln(hs,{tag:"span",style:{display:"contents"},attrs:{"aria-hidden":!0},renderProps:{},generatorName:void 0,customGenerator:e}):void 0!==t?ln("span",{"aria-hidden":!0,className:t}):void 0}}class So extends Jr{render(){let{props:e}=this,{options:t}=this.context,n=e.widgetGroups.map(e=>this.renderWidgetGroup(e));return ln("div",{className:gs(t.toolbarSectionClass,{name:e.name})},...n)}renderWidgetGroup(e){var t;let{props:n,context:r}=this,{options:i}=r,s=[],o=!0,a=!0;for(const t of e){const{name:e,isView:n}=t;"title"===e?o=!1:n||(a=!1)}for(let r of e){let{name:l,customElement:u,buttonHint:c}=r;if("title"===l)s.push(ln("div",{role:"heading","aria-level":i.headingLevel,id:n.titleId,className:$e(i.toolbarTitleClass)},n.title));else if(u)s.push(ln(hs,{tag:"span",style:{display:"contents"},renderProps:{},generatorName:void 0,customGenerator:u}));else{let u,d=l===n.selectedButton,f=!n.isTodayEnabled&&"today"===l||!n.isPrevEnabled&&"prev"===l||!n.isNextEnabled&&"next"===l,h=null!==(t=r.buttonDisplay)&&void 0!==t?t:i.buttonDisplay;"auto"===h&&(h=r.buttonIconContent||r.buttonIconClass?"icon":"text"),"text"!==h&&(u=ln(Eo,{className:r.buttonIconClass,contentGenerator:r.buttonIconContent}));let p=e.length>1&&o,g=p&&a,m={name:l,text:r.buttonText,isPrimary:r.buttonIsPrimary,isSelected:d,isDisabled:f,isIconOnly:"icon"===h,inGroup:p,inSelectGroup:g};s.push(ln(hs,{tag:"button",attrs:Object.assign(Object.assign({type:"button",disabled:f},o&&a?{role:"tab","aria-selected":d}:{"aria-pressed":d}),{"aria-label":"function"==typeof c?c(n.navUnit):c,onClick:r.buttonClick}),className:Xe(gs(i.buttonClass,m),!f&&J.cursorPointer,p&&Xe(d?J.z1:J.z0,J.focusZ2)),renderProps:m,generatorName:void 0,classNameGenerator:r.buttonClass,didMount:r.buttonDidMount,willUnmount:r.buttonWillUnmount},()=>"text"===h?r.buttonText:"icon"===h?u:"icon-text"===h?ln(dn,null,u,r.buttonText):ln(dn,null,r.buttonText,u)))}}return s.length>1?ln("div",{role:o&&a?"tablist":void 0,"aria-label":o&&a?i.viewChangeHint:void 0,className:Xe(gs(i.buttonGroupClass,{isSelectGroup:a}),J.isolate)},...s):s[0]}}class Do extends Jr{render(){let{props:e}=this,t=this.context.options,{sectionWidgets:n}=e.model;return ln("div",{className:Xe(e.className,gs(t.toolbarClass,{borderlessX:e.borderlessX}))},this.renderSection("start",n.start),this.renderSection("center",n.center),this.renderSection("end",n.end))}renderSection(e,t){let{props:n}=this;return ln(So,{key:e,name:e,widgetGroups:t,title:n.title,titleId:n.titleId,navUnit:n.navUnit,selectedButton:n.selectedButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled})}}class Co extends Kr{constructor(){super(...arguments),this.buildViewContext=Ee(Xr),this.buildViewPropTransformers=Ee(wo),this.interactionsStore={},this.viewTitleId=jt(),this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[_o,bo];t.disableHits||(r=r.concat(this.props.pluginHooks.componentInteractions));let i=r.map(e=>new e(n));this.interactionsStore[e.uid]=i,Ai[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete Ai[e.uid]}}render(){var e;let t,n,{props:r}=this,{toolbarProps:i,toolbarConfig:s,options:o}=r,a=!1;r.forPrint||os(o)||(null!=o.height?a=!0:null!=o.contentHeight?t=o.contentHeight:n=Math.max(o.aspectRatio,.5));let l=this.buildViewContext(r.viewSpec,r.viewApi,r.options,r.dateProfileGenerator,r.dateEnv,r.pluginHooks,r.dispatch,r.getCurrentData,r.emitter,r.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),u=null!==(e=o.borderlessX)&&void 0!==e?e:o.borderless;return ln($r.Provider,{value:l},s.header&&ln(Do,Object.assign({className:gs(o.headerToolbarClass,{borderlessX:u}),model:s.header,borderlessX:u,titleId:this.viewTitleId},i)),ln("div",{className:Xe(J.flexCol,J.rel,a&&J.liquid),style:{height:t,paddingBottom:null!=n?1/n*100+"%":void 0}},this.renderView(Xe((a||t)&&J.liquid,null!=n&&J.fill,J.internalView),i.title),this.buildAppendContent()),s.footer&&ln(Do,Object.assign({className:gs(o.footerToolbarClass,{borderlessX:u}),model:s.footer,borderlessX:u},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e));let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return ln(dn,{},...e.pluginHooks.viewContainerAppends.map(t=>t(e)))}renderView(e,t){var n,r,i;let{props:s}=this,{pluginHooks:o,viewSpec:a,toolbarConfig:l,options:u}=s,{borderless:c}=u,d=null!==(n=u.borderlessX)&&void 0!==n?n:c,f=null!==(r=u.borderlessTop)&&void 0!==r?r:c,h=null!==(i=u.borderlessBottom)&&void 0!==i?i:c,p={className:e,dateProfile:s.dateProfile,businessHours:s.businessHours,eventStore:s.renderableEventStore,eventUiBases:s.eventUiBases,dateSelection:s.dateSelection,eventSelection:s.eventSelection,eventDrag:s.eventDrag,eventResize:s.eventResize,forPrint:s.forPrint,labelId:l.header&&l.header.hasTitle?this.viewTitleId:void 0,labelStr:l.header&&l.header.hasTitle?void 0:t,borderlessX:d,borderlessTop:!l.header&&f,borderlessBottom:!l.footer&&h,noEdgeEffects:d||f||h},g=this.buildViewPropTransformers(o.viewPropsTransformers);for(let e of g)Object.assign(p,e.transform(p,s));return ln(a.component,Object.assign({},p))}}function wo(e){return e.map(e=>new e)}function To(e,t,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:s,selectedButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!w(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}const Ro={text:"",hint:"",isDisabled:!1};function ko(e){let t=Ms(e.locale||"en",Is([]).map);return new F(Object.assign(Object.assign({timeZone:Ne.timeZone,calendarSystem:"gregory"},e),{locale:t}))}return e.Calendar=class extends ws{constructor(e,t={}){super(),this.buildToolbarProps=Ee(To),this.isRendering=!1,this.isRendered=!1,this.currentClassName="",this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;Er(()=>{Mn(ln(ji,{options:e.calendarOptions,emitter:e.emitter},(t,n,r,i)=>{this.setIsRtl(t),this.setClassName(n),this.setHeight(r);const s=this.toolbarProps=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,ti(e.options.now,e.dateEnv),e.viewTitle);return ln(fs.Provider,{value:this.customContentRenderId},ln(Co,Object.assign({forPrint:i,toolbarProps:s},e)))}),this.el)})}else this.isRendered&&(this.isRendered=!1,Mn(null,this.el),this.setIsRtl(!1),this.setClassName(""),this.setHeight(""))},this.el=e,this.renderRunner=new Li(this.handleRenderRequest),new lo({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}getButtonState(){var e;const{currentData:t,toolbarProps:n}=this,r=t.calendarOptions,i=r.buttons||{},s=t.viewSpecs,o={today:{text:r.todayText,hint:r.todayHint,isDisabled:!n.isTodayEnabled},prev:{text:r.prevText,hint:r.prevHint,isDisabled:!n.isPrevEnabled},next:{text:r.nextText,hint:r.nextHint,isDisabled:!n.isNextEnabled},prevYear:{text:r.prevYearText,hint:se(r.prevHint,[r.yearText,"year"],r.prevYearText),isDisabled:!1},nextYear:{text:r.prevYearText,hint:se(r.nextHint,[r.yearText,"year"],r.nextYearText),isDisabled:!1}};for(const t in s){const n=s[t],a=n.optionDefaults.buttonTextKey,l=(null===(e=i[t])||void 0===e?void 0:e.text)||(a?r[a]:"")||(n.singleUnit?r[n.singleUnit+"Text"]:"")||t,u=se(r.viewHint,[l,t],l);o[t]={text:l,hint:u}}return o}setClassName(e){if(e!==this.currentClassName){let{classList:t}=this.el;for(let e of this.currentClassName.split(" "))e&&t.remove(e);for(let n of e.split(" "))n&&t.add(n);this.currentClassName=e}}setHeight(e){Ht(this.el,"height",e)}setIsRtl(e){e?this.el.dir="rtl":this.el.removeAttribute("dir")}},e.CalendarController=class{constructor(e){this.handleDateChange=e}today(){var e;null===(e=this.calendarApi)||void 0===e||e.today()}prev(){var e;null===(e=this.calendarApi)||void 0===e||e.prev()}next(){var e;null===(e=this.calendarApi)||void 0===e||e.next()}prevYear(){var e;null===(e=this.calendarApi)||void 0===e||e.prevYear()}nextYear(){var e;null===(e=this.calendarApi)||void 0===e||e.nextYear()}gotoDate(e){var t;null===(t=this.calendarApi)||void 0===t||t.gotoDate(e)}incrementDate(e){var t;null===(t=this.calendarApi)||void 0===t||t.incrementDate(e)}changeView(e){var t;null===(t=this.calendarApi)||void 0===t||t.changeView(e)}get view(){var e;return null===(e=this.calendarApi)||void 0===e?void 0:e.view}getDate(){var e;return null===(e=this.calendarApi)||void 0===e?void 0:e.getDate()}getButtonState(){const{calendarApi:e}=this;return e&&e.getButtonState()||{today:Ro,prev:Ro,next:Ro,prevYear:Ro,nextYear:Ro}}_setApi(e){this.calendarApi!==e&&(this.calendarApi&&(this.calendarApi.off("datesSet",this.handleDateChange),this.calendarApi=void 0),e&&(this.calendarApi=e,e.on("datesSet",this.handleDateChange)))}},e.Internal=Ts,e.InternalClassNames=J,e.JsonRequestError=is,e.Preact=wr,e.createPlugin=Ns,e.formatDate=function(e,t={}){let n=ko(t),r=Me(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo})[0]:""},e.formatRange=function(e,t,n){let r=ko("object"==typeof n&&n?n:{}),i=Me(n),s=r.createMarkerMeta(e),o=r.createMarkerMeta(t);return s&&o?r.formatRange(s.marker,o.marker,i,{forcedStartTzo:s.forcedTzo,forcedEndTzo:o.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:Ne.defaultRangeSeparator}):""},e.globalLocales=Rs,e.globalPlugins=so,e.joinClassNames=Xe,e.sliceEvents=function(e,t){return pi(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg},e.version="7.0.0-beta.6",Object.defineProperty(e,"__esModule",{value:!0}),e}({});