import{N as ns,_ as wt,b2 as ll,r as j,b3 as Vn,w as Xe,aJ as Ne,P as V,Q as de,R as S,E as y,aD as Ee,aE as et,J as De,a0 as X,T as gt,S as Q,U as mt,Y as An,W as re,aP as sr,b4 as ar,aC as Vt,aF as ie,b5 as ol,G as Ft,a1 as Ur,X as z,Z as Fn,aO as rs,b6 as is,p as rt,a5 as on,a6 as lr,ai as ss,A as We,am as as,aQ as ls,aL as os,c as W,s as me,e as cl,C as it,H as ul,a4 as jn,B as dl,o as or,a8 as fl,F as jt,$ as hl,b as zn,b7 as gl,i as ml,b8 as pl,a9 as vl,z as bl,b9 as yl,ac as El,ae as wl,af as Sl,ba as Al,bb as Cl,ag as Dl,ax as _l,a7 as Rl,an as Tl,aq as xl,ar as Ml,bc as kl,bd as Il,as as Ol,aU as Nl,be as Pl,V as Lr,bf as Hl,aM as Bl,bg as cs,bh as Pt,bi as Ul,a as Ll,O as Wl,bj as Vl}from"./index-92ee2a6e.js";import{V as cr,a as Wr,u as us,m as ds,b as fs,c as Fl,d as Vr}from"./group-67500155.js";import{h as jl,k as hs,g as Fr,e as se,j as Ht,i as zl,u as jr}from"./VTextarea-4e4db97f.js";function zt(t){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(t)}function Be(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function q(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function fe(t){q(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||zt(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Yl(t,e){q(2,arguments);var n=fe(t).getTime(),r=Be(e);return new Date(n+r)}var Gl={};function cn(){return Gl}function ql(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function Ql(t){return q(1,arguments),t instanceof Date||zt(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function $l(t){if(q(1,arguments),!Ql(t)&&typeof t!="number")return!1;var e=fe(t);return!isNaN(Number(e))}function Xl(t,e){q(2,arguments);var n=Be(e);return Yl(t,-n)}var Zl=864e5;function Jl(t){q(1,arguments);var e=fe(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/Zl)+1}function Yt(t){q(1,arguments);var e=1,n=fe(t),r=n.getUTCDay(),i=(r=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Kl(t){q(1,arguments);var e=gs(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Yt(n);return r}var eo=6048e5;function to(t){q(1,arguments);var e=fe(t),n=Yt(e).getTime()-Kl(e).getTime();return Math.round(n/eo)+1}function Gt(t,e){var n,r,i,s,a,l,o,c;q(1,arguments);var u=cn(),f=Be((n=(r=(i=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(o=u.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=fe(t),d=h.getUTCDay(),m=(d=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,d),m.setUTCHours(0,0,0,0);var b=Gt(m,e),v=new Date(0);v.setUTCFullYear(f,0,d),v.setUTCHours(0,0,0,0);var E=Gt(v,e);return u.getTime()>=b.getTime()?f+1:u.getTime()>=E.getTime()?f:f-1}function no(t,e){var n,r,i,s,a,l,o,c;q(1,arguments);var u=cn(),f=Be((n=(r=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(o=u.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=ms(t,e),d=new Date(0);d.setUTCFullYear(h,0,f),d.setUTCHours(0,0,0,0);var m=Gt(d,e);return m}var ro=6048e5;function io(t,e){q(1,arguments);var n=fe(t),r=Gt(n,e).getTime()-no(n,e).getTime();return Math.round(r/ro)+1}function O(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?r:1-r;return O(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):O(r+1,2)},d:function(e,n){return O(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return O(e.getUTCHours()%12||12,n.length)},H:function(e,n){return O(e.getUTCHours(),n.length)},m:function(e,n){return O(e.getUTCMinutes(),n.length)},s:function(e,n){return O(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),s=Math.floor(i*Math.pow(10,r-3));return O(s,n.length)}};const ye=so;var qe={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ao={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),s=i>0?i:1-i;return r.ordinalNumber(s,{unit:"year"})}return ye.y(e,n)},Y:function(e,n,r,i){var s=ms(e,i),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return O(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):O(a,n.length)},R:function(e,n){var r=gs(e);return O(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return O(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return O(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return O(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return ye.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return O(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var s=io(e,i);return n==="wo"?r.ordinalNumber(s,{unit:"week"}):O(s,n.length)},I:function(e,n,r){var i=to(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):O(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ye.d(e,n)},D:function(e,n,r){var i=Jl(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):O(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return O(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return O(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return O(s,n.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var i=e.getUTCHours(),s=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,r){var i=e.getUTCHours(),s;switch(i===12?s=qe.noon:i===0?s=qe.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,r){var i=e.getUTCHours(),s;switch(i>=17?s=qe.evening:i>=12?s=qe.afternoon:i>=4?s=qe.morning:s=qe.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ye.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ye.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):O(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):O(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ye.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ye.s(e,n)},S:function(e,n){return ye.S(e,n)},X:function(e,n,r,i){var s=i._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Yr(a);case"XXXX":case"XX":return Me(a);case"XXXXX":case"XXX":default:return Me(a,":")}},x:function(e,n,r,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Yr(a);case"xxxx":case"xx":return Me(a);case"xxxxx":case"xxx":default:return Me(a,":")}},O:function(e,n,r,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+zr(a,":");case"OOOO":default:return"GMT"+Me(a,":")}},z:function(e,n,r,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+zr(a,":");case"zzzz":default:return"GMT"+Me(a,":")}},t:function(e,n,r,i){var s=i._originalDate||e,a=Math.floor(s.getTime()/1e3);return O(a,n.length)},T:function(e,n,r,i){var s=i._originalDate||e,a=s.getTime();return O(a,n.length)}};function zr(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=r%60;if(s===0)return n+String(i);var a=e||"";return n+String(i)+a+O(s,2)}function Yr(t,e){if(t%60===0){var n=t>0?"-":"+";return n+O(Math.abs(t)/60,2)}return Me(t,e)}function Me(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),s=O(Math.floor(i/60),2),a=O(i%60,2);return r+s+n+a}const lo=ao;var Gr=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},ps=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},oo=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return Gr(e,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Gr(i,n)).replace("{{time}}",ps(s,n))},co={p:ps,P:oo};const uo=co;var fo=["D","DD"],ho=["YY","YYYY"];function go(t){return fo.indexOf(t)!==-1}function mo(t){return ho.indexOf(t)!==-1}function qr(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var po={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vo=function(e,n,r){var i,s=po[e];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const bo=vo;function Cn(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var yo={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Eo={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},So={date:Cn({formats:yo,defaultWidth:"full"}),time:Cn({formats:Eo,defaultWidth:"full"}),dateTime:Cn({formats:wo,defaultWidth:"full"})};const Ao=So;var Co={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Do=function(e,n,r,i){return Co[e]};const _o=Do;function lt(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,o=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[o]||t.values[l]}var c=t.argumentCallback?t.argumentCallback(e):e;return i[c]}}var Ro={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},To={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xo={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Mo={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ko={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Io={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Oo=function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},No={ordinalNumber:Oo,era:lt({values:Ro,defaultWidth:"wide"}),quarter:lt({values:To,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:lt({values:xo,defaultWidth:"wide"}),day:lt({values:Mo,defaultWidth:"wide"}),dayPeriod:lt({values:ko,defaultWidth:"wide",formattingValues:Io,defaultFormattingWidth:"wide"})};const Po=No;function ot(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;var a=s[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],o=Array.isArray(l)?Bo(l,function(f){return f.test(a)}):Ho(l,function(f){return f.test(a)}),c;c=t.valueCallback?t.valueCallback(o):o,c=n.valueCallback?n.valueCallback(c):c;var u=e.slice(a.length);return{value:c,rest:u}}}function Ho(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Bo(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],s=e.match(t.parsePattern);if(!s)return null;var a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(i.length);return{value:a,rest:l}}}var Lo=/^(\d+)(th|st|nd|rd)?/i,Wo=/\d+/i,Vo={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Fo={any:[/^b/i,/^(a|c)/i]},jo={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zo={any:[/1/i,/2/i,/3/i,/4/i]},Yo={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Go={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},qo={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Qo={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},$o={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xo={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zo={ordinalNumber:Uo({matchPattern:Lo,parsePattern:Wo,valueCallback:function(e){return parseInt(e,10)}}),era:ot({matchPatterns:Vo,defaultMatchWidth:"wide",parsePatterns:Fo,defaultParseWidth:"any"}),quarter:ot({matchPatterns:jo,defaultMatchWidth:"wide",parsePatterns:zo,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ot({matchPatterns:Yo,defaultMatchWidth:"wide",parsePatterns:Go,defaultParseWidth:"any"}),day:ot({matchPatterns:qo,defaultMatchWidth:"wide",parsePatterns:Qo,defaultParseWidth:"any"}),dayPeriod:ot({matchPatterns:$o,defaultMatchWidth:"any",parsePatterns:Xo,defaultParseWidth:"any"})};const Jo=Zo;var Ko={code:"en-US",formatDistance:bo,formatLong:Ao,formatRelative:_o,localize:Po,match:Jo,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ec=Ko;var tc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rc=/^'([^]*?)'?$/,ic=/''/g,sc=/[a-zA-Z]/;function ac(t,e,n){var r,i,s,a,l,o,c,u,f,h,d,m,b,v,E,w,D,A;q(2,arguments);var M=String(e),T=cn(),I=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:T.locale)!==null&&r!==void 0?r:ec,_=Be((s=(a=(l=(o=n==null?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&l!==void 0?l:T.firstWeekContainsDate)!==null&&a!==void 0?a:(f=T.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var J=Be((d=(m=(b=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(E=n.locale)===null||E===void 0||(w=E.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&b!==void 0?b:T.weekStartsOn)!==null&&m!==void 0?m:(D=T.locale)===null||D===void 0||(A=D.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&d!==void 0?d:0);if(!(J>=0&&J<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var ce=fe(t);if(!$l(ce))throw new RangeError("Invalid time value");var wn=ql(ce),Sn=Xl(ce,wn),K={firstWeekContainsDate:_,weekStartsOn:J,locale:I,_originalDate:ce},at=M.match(nc).map(function(G){var ee=G[0];if(ee==="p"||ee==="P"){var be=uo[ee];return be(G,I.formatLong)}return G}).join("").match(tc).map(function(G){if(G==="''")return"'";var ee=G[0];if(ee==="'")return lc(G);var be=lo[ee];if(be)return!(n!=null&&n.useAdditionalWeekYearTokens)&&mo(G)&&qr(G,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&go(G)&&qr(G,e,String(t)),be(Sn,G,I.localize,K);if(ee.match(sc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return G}).join("");return at}function lc(t){var e=t.match(rc);return e?e[1].replace(ic,"'"):t}const Qr=ns(),oc={components:{myHelper:ll},setup(){const t=j([]),e=j(!1),n=j(0),r=j(0);j(0),j(!1),j(!1);const i=j(0),s=j(!1),a=j(!1),l=(d,m)=>{console.log(d,m),sr.post("api/navigation/news/",{news:d,scores:m}).then(b=>{t.value[t.value.findIndex(v=>v.id==d)].scores=b.data})},o=d=>ac(new Date(d),"dd.MM.yyyy"),c=d=>{},u=ar.slice(0,-1),f=d=>d.split(" ").slice(0,10).join(" ");return Vn("api/navigation/news/",t),Xe(()=>Qr.cod2user,(d,m)=>{d&&Vn("api/navigation/news/",t)},{deep:!0}),{newss:t,show:e,burl:u,limitText:f,incrementLikes:n,derementLikes:r,message:i,commentShow:s,toggleIncrementLike:l,toggleDecrementLike:c,dialogCommentShow:a,commentadd:()=>{a.value=!a.value},accountStore:Qr,dateformat:o}}},cc={key:0},uc={class:"text-subtitle-2"};function dc(t,e,n,r,i,s){const a=Ne("my-helper");return V(),de(cr,{class:"py-1 newsVH px-0 bg-transparent overflow-auto"},{default:S(()=>[y(a,{pretext:r.newss},null,8,["pretext"]),(V(!0),Ee(De,null,et(r.newss,(l,o)=>(V(),de(X,{class:"mx-auto mb-0",key:o},{default:S(()=>[y(Vt,{src:`${r.burl}${l.link}`,height:"164px",cover:""},null,8,["src"]),y(gt,null,{default:S(()=>[Q(ie(l.title),1)]),_:2},1024),y(ol,null,{default:S(()=>[Q(ie(r.limitText(l.text)),1)]),_:2},1024),y(An,null,{default:S(()=>[y(se,{color:"teal-accent-4",variant:"text"},{default:S(()=>[Q(ie(l.author.fio),1)]),_:2},1024),y(Fr),y(se,{icon:l.show?"mdi-chevron-up":"mdi-chevron-down",onClick:c=>l.show=!l.show},null,8,["icon","onClick"])]),_:2},1024),y(Wr,null,{default:S(()=>[Ft(Ur("div",null,[y(Ht),y(mt,null,{default:S(()=>[Q(ie(l.text),1)]),_:2},1024),y(Ht),y(An,null,{default:S(()=>[y(re,null,{default:S(()=>[y(z,null,{default:S(()=>[y(se,{variant:"text",icon:l.scores.filter(c=>c.user==r.accountStore.user.id&&c.score==!0).length>0?"mdi-thumb-up":"mdi-thumb-up-outline",color:"blue-darken-3",onClick:c=>r.toggleIncrementLike(l.id,!0)},null,8,["icon","onClick"]),Q(" "+ie(l.scores.filter(c=>c.score==!0).length)+" ",1)]),_:2},1024),y(z,{class:"ml-8"},{default:S(()=>[y(se,{variant:"text",icon:"mdi-message-text-outline",color:"teal",onClick:c=>l.showComment=!l.showComment},null,8,["onClick"]),Q(" "+ie(l.comment.length)+" ",1)]),_:2},1024),y(z,{class:"text-center pr-0"},{default:S(()=>[y(se,{variant:"text",icon:l.scores.filter(c=>c.user==r.accountStore.user.id&&c.score==!1).length>0?"mdi-thumb-down":"mdi-thumb-down-outline",color:"red-lighten-2",onClick:c=>r.toggleIncrementLike(l.id,!1)},null,8,["icon","onClick"]),Q(" "+ie(l.scores.filter(c=>c.score==!1).length)+" ",1)]),_:2},1024)]),_:2},1024)]),_:2},1024),y(Ht,{class:"mb-2"})],512),[[Fn,l.show]])]),_:2},1024),y(Wr,null,{default:S(()=>[l.comment.length>0?Ft((V(),Ee("div",cc,[(V(!0),Ee(De,null,et(l.comment,(c,u)=>(V(),Ee("div",{key:u,class:"d-flex align-center flex-column py-3"},[Ur("div",uc,ie(r.dateformat(c.cdate)),1),y(X,{width:"400",subtitle:c.author,text:c.text,elevation:"1"},null,8,["subtitle","text"])]))),128))],512)),[[Fn,l.showComment]]):rs("",!0)]),_:2},1024)]),_:2},1024))),128)),y(re,{justify:"center"},{default:S(()=>[y(jl,{modelValue:r.dialogCommentShow,"onUpdate:modelValue":e[2]||(e[2]=l=>r.dialogCommentShow=l),persistent:"",width:"550"},{default:S(()=>[y(X,null,{default:S(()=>[y(gt,{class:"text-h5"},{default:S(()=>[Q(" Прокоментировать новость ")]),_:1}),y(mt,null,{default:S(()=>[y(hs,{variant:"solo","hide-details":"",rows:"5"})]),_:1}),y(An,null,{default:S(()=>[y(Fr),y(se,{color:"blue-darken-1",variant:"text",onClick:e[0]||(e[0]=l=>r.dialogCommentShow=!1)},{default:S(()=>[Q(" Отмена ")]),_:1}),y(se,{color:"blue-darken-1",variant:"text",onClick:e[1]||(e[1]=l=>r.dialogCommentShow=!1)},{default:S(()=>[Q(" Отправить ")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})}const fc=wt(oc,[["render",dc]]);const hc=t=>{const{touchstartX:e,touchendX:n,touchstartY:r,touchendY:i}=t,s=.5,a=16;t.offsetX=n-e,t.offsetY=i-r,Math.abs(t.offsetY)e+a&&t.right(t)),Math.abs(t.offsetX)r+a&&t.down(t))};function gc(t,e){var r;const n=t.changedTouches[0];e.touchstartX=n.clientX,e.touchstartY=n.clientY,(r=e.start)==null||r.call(e,{originalEvent:t,...e})}function mc(t,e){var r;const n=t.changedTouches[0];e.touchendX=n.clientX,e.touchendY=n.clientY,(r=e.end)==null||r.call(e,{originalEvent:t,...e}),hc(e)}function pc(t,e){var r;const n=t.changedTouches[0];e.touchmoveX=n.clientX,e.touchmoveY=n.clientY,(r=e.move)==null||r.call(e,{originalEvent:t,...e})}function vc(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:n=>gc(n,e),touchend:n=>mc(n,e),touchmove:n=>pc(n,e)}}function bc(t,e){var l;const n=e.value,r=n!=null&&n.parent?t.parentElement:t,i=(n==null?void 0:n.options)??{passive:!0},s=(l=e.instance)==null?void 0:l.$.uid;if(!r||!s)return;const a=vc(e.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[s]=a,is(a).forEach(o=>{r.addEventListener(o,a[o],i)})}function yc(t,e){var s,a;const n=(s=e.value)!=null&&s.parent?t.parentElement:t,r=(a=e.instance)==null?void 0:a.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const i=n._touchHandlers[r];is(i).forEach(l=>{n.removeEventListener(l,i[l])}),delete n._touchHandlers[r]}const vs={mounted:bc,unmounted:yc},bs=Symbol.for("vuetify:v-window"),ys=Symbol.for("vuetify:v-window-group"),Es=rt({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||t==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{default:"force"},...on(),...lr(),...ss()},"VWindow"),$r=We()({name:"VWindow",directives:{Touch:vs},props:Es(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{themeClasses:r}=as(t),{isRtl:i}=ls(),{t:s}=os(),a=us(t,ys),l=j(),o=W(()=>i.value?!t.reverse:t.reverse),c=me(!1),u=W(()=>{const A=t.direction==="vertical"?"y":"x",T=(o.value?!c.value:c.value)?"-reverse":"";return`v-window-${A}${T}-transition`}),f=me(0),h=j(void 0),d=W(()=>a.items.value.findIndex(A=>a.selected.value.includes(A.id)));Xe(d,(A,M)=>{const T=a.items.value.length,I=T-1;T<=2?c.value=At.continuous||d.value!==0),b=W(()=>t.continuous||d.value!==a.items.value.length-1);function v(){m.value&&a.prev()}function E(){b.value&&a.next()}const w=W(()=>{const A=[],M={icon:i.value?t.nextIcon:t.prevIcon,class:`v-window__${o.value?"right":"left"}`,onClick:a.prev,ariaLabel:s("$vuetify.carousel.prev")};A.push(m.value?n.prev?n.prev({props:M}):y(se,M,null):y("div",null,null));const T={icon:i.value?t.prevIcon:t.nextIcon,class:`v-window__${o.value?"left":"right"}`,onClick:a.next,ariaLabel:s("$vuetify.carousel.next")};return A.push(b.value?n.next?n.next({props:T}):y(se,T,null):y("div",null,null)),A}),D=W(()=>t.touch===!1?t.touch:{...{left:()=>{o.value?v():E()},right:()=>{o.value?E():v()},start:M=>{let{originalEvent:T}=M;T.stopPropagation()}},...t.touch===!0?{}:t.touch});return it(()=>Ft(y(t.tag,{ref:l,class:["v-window",{"v-window--show-arrows-on-hover":t.showArrows==="hover"},r.value,t.class],style:t.style},{default:()=>{var A,M;return[y("div",{class:"v-window__container",style:{height:h.value}},[(A=n.default)==null?void 0:A.call(n,{group:a}),t.showArrows!==!1&&y("div",{class:"v-window__controls"},[w.value])]),(M=n.additional)==null?void 0:M.call(n,{group:a})]}}),[[ul("touch"),D.value]])),{group:a}}}),Ec=rt({color:String,cycle:Boolean,delimiterIcon:{type:jn,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:t=>Number(t)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...Es({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),wc=We()({name:"VCarousel",props:Ec(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const r=dl(t,"modelValue"),{t:i}=os(),s=j();let a=-1;Xe(r,o),Xe(()=>t.interval,o),Xe(()=>t.cycle,c=>{c?o():window.clearTimeout(a)}),or(l);function l(){!t.cycle||!s.value||(a=window.setTimeout(s.value.group.next,+t.interval>0?+t.interval:6e3))}function o(){window.clearTimeout(a),window.requestAnimationFrame(l)}return it(()=>{const[c]=$r.filterProps(t);return y($r,jt({ref:s},c,{modelValue:r.value,"onUpdate:modelValue":u=>r.value=u,class:["v-carousel",{"v-carousel--hide-delimiter-background":t.hideDelimiterBackground,"v-carousel--vertical-delimiters":t.verticalDelimiters},t.class],style:[{height:zn(t.height)},t.style]}),{default:n.default,additional:u=>{let{group:f}=u;return y(De,null,[!t.hideDelimiters&&y("div",{class:"v-carousel__controls",style:{left:t.verticalDelimiters==="left"&&t.verticalDelimiters?0:"auto",right:t.verticalDelimiters==="right"?0:"auto"}},[f.items.value.length>0&&y(fl,{defaults:{VBtn:{color:t.color,icon:t.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[f.items.value.map((h,d)=>{const m={id:`carousel-item-${h.id}`,"aria-label":i("$vuetify.carousel.ariaLabel.delimiter",d+1,f.items.value.length),class:[f.isSelected(h.id)&&"v-btn--active"],onClick:()=>f.select(h.id,!0)};return n.item?n.item({props:m,item:h}):y(se,jt(h,m),null)})]})]),t.progress&&y(hl,{class:"v-carousel__progress",color:typeof t.progress=="string"?t.progress:void 0,modelValue:(f.getItemIndex(r.value)+1)/f.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),ws=rt({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...on(),...ds(),...gl()},"VWindowItem"),Xr=We()({name:"VWindowItem",directives:{Touch:vs},props:ws(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const r=ml(bs),i=fs(t,ys),{isBooted:s}=zl();if(!r||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const a=me(!1),l=W(()=>s.value&&(r.isReversed.value?t.reverseTransition!==!1:t.transition!==!1));function o(){!a.value||!r||(a.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function c(){var m;a.value||!r||(a.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=zn((m=r.rootRef.value)==null?void 0:m.clientHeight)),r.transitionCount.value+=1)}function u(){o()}function f(m){a.value&&bl(()=>{!l.value||!a.value||!r||(r.transitionHeight.value=zn(m.clientHeight))})}const h=W(()=>{const m=r.isReversed.value?t.reverseTransition:t.transition;return l.value?{name:typeof m!="string"?r.transition.value:m,onBeforeEnter:c,onAfterEnter:o,onEnterCancelled:u,onBeforeLeave:c,onAfterLeave:o,onLeaveCancelled:u,onEnter:f}:!1}),{hasContent:d}=pl(t,i.isSelected);return it(()=>y(vl,{transition:h.value,disabled:!s.value},{default:()=>{var m;return[Ft(y("div",{class:["v-window-item",i.selectedClass.value,t.class],style:t.style},[d.value&&((m=n.default)==null?void 0:m.call(n))]),[[Fn,i.isSelected.value]])]}})),{}}}),Sc=rt({...yl(),...ws()},"VCarouselItem"),Ac=We()({name:"VCarouselItem",inheritAttrs:!1,props:Sc(),setup(t,e){let{slots:n,attrs:r}=e;it(()=>{const[i]=Vt.filterProps(t),[s]=Xr.filterProps(t);return y(Xr,jt({class:"v-carousel-item"},s),{default:()=>[y(Vt,jt(r,i),n)]})})}}),Cc={setup(){const t=ar.slice(0,-1),e=j([{link:""}]),n=W(()=>new URL("/assets/mc-fb8687c4.png",self.location).href);return Vn("api/navigation/carousels/",e),{burl:t,carous:e,imageSrcgrupp:n}}};function Dc(t,e,n,r,i,s){return V(),de(wc,{interval:"10000",cover:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white",cycle:""},{default:S(()=>[(V(!0),Ee(De,null,et(r.carous,(a,l)=>(V(),de(Ac,{key:l,src:`${r.burl}${a.link}`,cover:"",eager:""},{default:S(()=>[y(cr,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:S(()=>[y(X,{class:"bgCard h-100 d-flex flex-column"},{default:S(()=>[y(gt,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-5 flex-column"},{default:S(()=>[y(re,null,{default:S(()=>[y(z,{class:"pa-0 pl-1 align-self-center"},{default:S(()=>[Q(ie(a.title),1)]),_:2},1024),y(z,{class:"flex-grow-0 pa-0 pr-1"},{default:S(()=>[y(Vt,{width:"50","aspect-ratio":1,src:`${r.burl}${a.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),y(mt,{class:"ml-2 mb-0 mb-2 w-50 flex-grow-0 pb-3 text-h6 bgText overflow-auto"},{default:S(()=>[y(hs,{class:"text-text_carous mt-n3 text-black textareas pt-2 font-weight-medium","model-value":a.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1})}const _c=wt(Cc,[["render",Dc]]);const Rc=rt({color:String,...El(),...on(),...wl(),...Sl(),...Al(),...Cl(),...Dl(),...lr(),...ss()},"VSheet"),Tc=We()({name:"VSheet",props:Rc(),setup(t,e){let{slots:n}=e;const{themeClasses:r}=as(t),{backgroundColorClasses:i,backgroundColorStyles:s}=_l(Rl(t,"color")),{borderClasses:a}=Tl(t),{dimensionStyles:l}=xl(t),{elevationClasses:o}=Ml(t),{locationStyles:c}=kl(t),{positionClasses:u}=Il(t),{roundedClasses:f}=Ol(t);return it(()=>y(t.tag,{class:["v-sheet",r.value,i.value,a.value,o.value,u.value,f.value,t.class],style:[s.value,l.value,c.value,t.style]},n)),{}}});function Zr(t){const n=Math.abs(t);return Math.sign(t)*(n/((1/.501-2)*(1-n)+1))}function Jr(t){let{selectedElement:e,containerSize:n,contentSize:r,isRtl:i,currentScrollOffset:s,isHorizontal:a}=t;const l=a?e.clientWidth:e.clientHeight,o=a?e.offsetLeft:e.offsetTop,c=i&&a?r-o-l:o,u=n+s,f=l+c,h=l*.4;return c<=s?s=Math.max(c-h,0):u<=f&&(s=Math.min(s-(u-f-h),r-n)),s}function xc(t){let{selectedElement:e,containerSize:n,contentSize:r,isRtl:i,isHorizontal:s}=t;const a=s?e.clientWidth:e.clientHeight,l=s?e.offsetLeft:e.offsetTop,o=i&&s?r-l-a/2-n/2:l+a/2-n/2;return Math.min(r-n,Math.max(0,o))}const Ss=Symbol.for("vuetify:v-slide-group"),Mc=rt({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:Ss},nextIcon:{type:jn,default:"$next"},prevIcon:{type:jn,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...on(),...lr(),...Fl({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),kc=We()({name:"VSlideGroup",props:Mc(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isRtl:r}=ls(),{mobile:i}=Nl(),s=us(t,t.symbol),a=me(!1),l=me(0),o=me(0),c=me(0),u=W(()=>t.direction==="horizontal"),{resizeRef:f,contentRect:h}=jr(),{resizeRef:d,contentRect:m}=jr(),b=W(()=>s.selected.value.length?s.items.value.findIndex(R=>R.id===s.selected.value[0]):-1),v=W(()=>s.selected.value.length?s.items.value.findIndex(R=>R.id===s.selected.value[s.selected.value.length-1]):-1);if(Pl){let R=-1;Xe(()=>[s.selected.value,h.value,m.value,u.value],()=>{cancelAnimationFrame(R),R=requestAnimationFrame(()=>{if(h.value&&m.value){const N=u.value?"width":"height";o.value=h.value[N],c.value=m.value[N],a.value=o.value+1=0&&d.value){const N=d.value.children[v.value];b.value===0||!a.value?l.value=0:t.centerActive?l.value=xc({selectedElement:N,containerSize:o.value,contentSize:c.value,isRtl:r.value,isHorizontal:u.value}):a.value&&(l.value=Jr({selectedElement:N,containerSize:o.value,contentSize:c.value,isRtl:r.value,currentScrollOffset:l.value,isHorizontal:u.value}))}})})}const E=me(!1);let w=0,D=0;function A(R){const N=u.value?"clientX":"clientY";D=(r.value&&u.value?-1:1)*l.value,w=R.touches[0][N],E.value=!0}function M(R){if(!a.value)return;const N=u.value?"clientX":"clientY",ne=r.value&&u.value?-1:1;l.value=ne*(D+w-R.touches[0][N])}function T(R){const N=c.value-o.value;l.value<0||!a.value?l.value=0:l.value>=N&&(l.value=N),E.value=!1}function I(){f.value&&(f.value[u.value?"scrollLeft":"scrollTop"]=0)}const _=me(!1);function J(R){if(_.value=!0,!(!a.value||!d.value)){for(const N of R.composedPath())for(const ne of d.value.children)if(ne===N){l.value=Jr({selectedElement:ne,containerSize:o.value,contentSize:c.value,isRtl:r.value,currentScrollOffset:l.value,isHorizontal:u.value});return}}}function ce(R){_.value=!1}function wn(R){var N;!_.value&&!(R.relatedTarget&&((N=d.value)!=null&&N.contains(R.relatedTarget)))&&K()}function Sn(R){d.value&&(u.value?R.key==="ArrowRight"?K(r.value?"prev":"next"):R.key==="ArrowLeft"&&K(r.value?"next":"prev"):R.key==="ArrowDown"?K("next"):R.key==="ArrowUp"&&K("prev"),R.key==="Home"?K("first"):R.key==="End"&&K("last"))}function K(R){var N,ne,Pr,Hr,Br;if(d.value)if(!R)(N=Hl(d.value)[0])==null||N.focus();else if(R==="next"){const Ge=(ne=d.value.querySelector(":focus"))==null?void 0:ne.nextElementSibling;Ge?Ge.focus():K("first")}else if(R==="prev"){const Ge=(Pr=d.value.querySelector(":focus"))==null?void 0:Pr.previousElementSibling;Ge?Ge.focus():K("last")}else R==="first"?(Hr=d.value.firstElementChild)==null||Hr.focus():R==="last"&&((Br=d.value.lastElementChild)==null||Br.focus())}function at(R){const N=l.value+(R==="prev"?-1:1)*o.value;l.value=Bl(N,0,c.value-o.value)}const G=W(()=>{let R=l.value>c.value-o.value?-(c.value-o.value)+Zr(c.value-o.value-l.value):-l.value;l.value<=0&&(R=Zr(-l.value));const N=r.value&&u.value?-1:1;return{transform:`translate${u.value?"X":"Y"}(${N*R}px)`,transition:E.value?"none":"",willChange:E.value?"transform":""}}),ee=W(()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected})),be=W(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!i.value;case!0:return a.value||Math.abs(l.value)>0;case"mobile":return i.value||a.value||Math.abs(l.value)>0;default:return!i.value&&(a.value||Math.abs(l.value)>0)}}),sl=W(()=>Math.abs(l.value)>0),al=W(()=>c.value>Math.abs(l.value)+o.value);return it(()=>y(t.tag,{class:["v-slide-group",{"v-slide-group--vertical":!u.value,"v-slide-group--has-affixes":be.value,"v-slide-group--is-overflowing":a.value},t.class],style:t.style,tabindex:_.value||s.selected.value.length?-1:0,onFocus:wn},{default:()=>{var R,N,ne;return[be.value&&y("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!sl.value}],onClick:()=>at("prev")},[((R=n.prev)==null?void 0:R.call(n,ee.value))??y(Vr,null,{default:()=>[y(Lr,{icon:r.value?t.nextIcon:t.prevIcon},null)]})]),y("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:I},[y("div",{ref:d,class:"v-slide-group__content",style:G.value,onTouchstartPassive:A,onTouchmovePassive:M,onTouchendPassive:T,onFocusin:J,onFocusout:ce,onKeydown:Sn},[(N=n.default)==null?void 0:N.call(n,ee.value)])]),be.value&&y("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!al.value}],onClick:()=>at("next")},[((ne=n.next)==null?void 0:ne.call(n,ee.value))??y(Vr,null,{default:()=>[y(Lr,{icon:r.value?t.prevIcon:t.nextIcon},null)]})])]}})),{selected:s.selected,scrollTo:at,scrollOffset:l,focus:K}}}),Ic=We()({name:"VSlideGroupItem",props:ds(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const r=fs(t,Ss);return()=>{var i;return(i=n.default)==null?void 0:i.call(n,{isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}}}),Oc={props:{digitalData:{type:Object,default:{}}},setup(){const t=ar.slice(0,-1);return{model:j(!1),burl:t}}};function Nc(t,e,n,r,i,s){const a=Ne("vue3-autocounter");return V(),de(X,{class:"d-flex ml-3"},{default:S(()=>[y(Tc,{class:"mx-auto",elevation:"0","max-width":"813"},{default:S(()=>[y(kc,{modelValue:r.model,"onUpdate:modelValue":e[0]||(e[0]=l=>r.model=l),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:S(()=>[(V(!0),Ee(De,null,et(n.digitalData,l=>(V(),de(Ic,{key:l},{default:S(()=>[y(X,{class:"ma-2 mt-4 d-flex flex-column",height:"100",width:"169",elevation:"0"},{default:S(()=>[y(X,{class:"h-100 text-center g text-numeral"},{default:S(()=>[y(gt,{class:"statstyle my-2 py-0 text-overline font-weight-bold"},{default:S(()=>[Q(ie(l.status),1)]),_:2},1024),y(mt,{class:"numstyle mt-4 py-0 font-weight-bold"},{default:S(()=>[y(a,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(l.num),duration:1},null,8,["endAmount"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})}const Pc=wt(Oc,[["render",Nc]]);var un,C,As,Cs,tt,Oe,Kr,Ds,_s,qt={},Rs=[],Hc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function we(t,e){for(var n in e)t[n]=e[n];return t}function Ts(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,n){var r,i,s,a={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:a[s]=e[s];if(arguments.length>2&&(a.children=arguments.length>3?un.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)a[s]===void 0&&(a[s]=t.defaultProps[s]);return Bt(t,a,r,i,null)}function Bt(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++As};return i==null&&C.vnode!=null&&C.vnode(s),s}function le(){return{current:null}}function U(t){return t.children}function Bc(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||Qt(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||Qt(t,s,e[s],n[s],r)}function ei(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Hc.test(e)?n:n+"px"}function Qt(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||ei(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||ei(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r||t.addEventListener(e,s?ni:ti,s):t.removeEventListener(e,s?ni:ti,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function ti(t){tt=!0;try{return this.l[t.type+!1](C.event?C.event(t):t)}finally{tt=!1}}function ni(t){tt=!0;try{return this.l[t.type+!0](C.event?C.event(t):t)}finally{tt=!1}}function Z(t,e){this.props=t,this.context=e}function pt(t,e){if(e==null)return t.__?pt(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&Oe.sort(function(o,c){return o.__v.__b-c.__v.__b}));$t.__r=0}function Ms(t,e,n,r,i,s,a,l,o,c){var u,f,h,d,m,b,v,E=r&&r.__k||Rs,w=E.length;for(n.__k=[],u=0;u0?Bt(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null){if(d.__=n,d.__b=n.__b+1,(h=E[u])===null||h&&d.key==h.key&&d.type===h.type)E[u]=void 0;else for(f=0;f=0;e--)if((n=t.__k[e])&&(r=Os(n)))return r}return null}function ur(t,e,n,r,i,s,a,l,o){var c,u,f,h,d,m,b,v,E,w,D,A,M,T,I,_=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,l=e.__e=n.__e,e.__h=null,s=[l]),(c=C.__b)&&c(e);try{e:if(typeof _=="function"){if(v=e.props,E=(c=_.contextType)&&r[c.__c],w=c?E?E.props.value:c.__:r,n.__c?b=(u=e.__c=n.__c).__=u.__E:("prototype"in _&&_.prototype.render?e.__c=u=new _(v,w):(e.__c=u=new Z(v,w),u.constructor=_,u.render=Wc),E&&E.sub(u),u.props=v,u.state||(u.state={}),u.context=w,u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),_.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=we({},u.__s)),we(u.__s,_.getDerivedStateFromProps(v,u.__s))),h=u.props,d=u.state,u.__v=e,f)_.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_.getDerivedStateFromProps==null&&v!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,w),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,w)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(J){J&&(J.__=e)}),D=0;D3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(r)}}),vt(g(Gc,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Qc(t,e){var n=g(qc,{__v:t,i:e});return n.containerInfo=e,n}(Rt.prototype=new Z).__a=function(t){var e=this,n=Ws(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),gi(e,t,r)):i()};n?n(s):s()}},Rt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Xt(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Rt.prototype.componentDidUpdate=Rt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){gi(t,n,e)})};var $c=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Xc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Zc=typeof document<"u",Jc=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Z.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var mi=C.event;function Kc(){}function eu(){return this.cancelBubble}function tu(){return this.defaultPrevented}C.event=function(t){return mi&&(t=mi(t)),t.persist=Kc,t.isPropagationStopped=eu,t.isDefaultPrevented=tu,t.nativeEvent=t};var pi={configurable:!0,get:function(){return this.class}},vi=C.vnode;C.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var a=n[s];Zc&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&a==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!Jc(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&Xc.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=a)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Xt(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Xt(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),t.props=r,n.class!=n.className&&(pi.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",pi))}t.$$typeof=$c,vi&&vi(t)};var bi=C.__r;C.__r=function(t){bi&&bi(t),t.__c};const Vs=[],qn=new Map;function dn(t){Vs.push(t),qn.forEach(e=>{js(e,t)})}function nu(t){t.isConnected&&Fs(t.getRootNode())}function Fs(t){let e=qn.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=iu();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}qn.set(t,e),ru(e)}}function ru(t){for(const e of Vs)js(t,e)}function js(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let Tn;function iu(){return Tn===void 0&&(Tn=su()),Tn}function su(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Fs(document);var au=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';dn(au);class dr{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(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function fr(t){t.parentNode&&t.parentNode.removeChild(t)}function Y(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(lu(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function lu(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function ou(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i{let r=Y(n.target,t);r&&e.call(r,n,r)}}function Gs(t,e,n,r){let i=uu(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function du(t,e,n,r){let i;return Gs(t,"mouseover",e,(s,a)=>{if(a!==i){i=a,n(s,a);let l=o=>{i=null,r(o,a),a.removeEventListener("mouseleave",l)};a.addEventListener("mouseleave",l)}})}const Ei=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function fu(t,e){let n=r=>{e(r),Ei.forEach(i=>{t.removeEventListener(i,n)})};Ei.forEach(r=>{t.addEventListener(r,n)})}function qs(t){return Object.assign({onClick:t},Qs(t))}function Qs(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let wi=0;function Ve(){return wi+=1,String(wi)}function hr(){document.body.classList.add("fc-not-allowed")}function gr(){document.body.classList.remove("fc-not-allowed")}function hu(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",fn)}function gu(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",fn)}function mu(t){t.addEventListener("contextmenu",fn)}function pu(t){t.removeEventListener("contextmenu",fn)}function vu(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;rr.replace("$"+s,i||""),t):n}function wu(t,e){return t-e}function Mn(t){return t%1===0}function Su(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Au=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function k(t,e){return typeof t=="string"?Cu(t):typeof t=="object"&&t?Si(t):typeof t=="number"?Si({[e||"milliseconds"]:t}):null}function Cu(t){let e=Au.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Si(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Du(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function _u(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Ru(t){return Ze(t)/365}function Tu(t){return Ze(t)/30}function Ze(t){return bt(t)/864e5}function bt(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Qn(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function _e(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i=1?Math.min(i,s):i}function kn(t,e,n,r){let i=$([e,0,1+Wu(e,n,r)]),s=P(t),a=Math.round(Fe(i,s));return Math.floor(a/7)+1}function Wu(t,e,n){let r=7+e-n;return-((7+$([t,0,r]).getUTCDay()-e)%7)+r-1}function Ci(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Di(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Se(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function $(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function $s(t){return!isNaN(t.valueOf())}function Ae(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Vu(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",mr(e,!0)))),r}function St(t){return t.toISOString().replace(/T.*$/,"")}function $n(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function mr(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+xn(i,2)}:${xn(s,2)}`:`GMT${n}${i}${s?`:${xn(s,2)}`:""}`}function x(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!_e(r,s)){n&&n(i);let a=t.apply(this,s);(!e||!e(a,i))&&(i=a)}return r=s,i}}function Lt(t,e,n){let r,i;return s=>{if(!r)i=t.call(this,s);else if(!oe(r,s)){n&&n(i);let a=t.call(this,s);(!e||!e(a,i))&&(i=a)}return r=s,i}}const _i={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Jt={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Tt=/\s*([ap])\.?m\.?/i,Fu=/,/g,ju=/\s+/g,zu=/\u200e/g,Yu=/UTC|GMT/;class Gu{constructor(e){let n={},r={},i=0;for(let s in e)s in _i?(r[s]=e[s],i=Math.max(_i[s],i)):(n[s]=e[s],s in Jt&&(i=Math.max(Jt[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=x(Ri)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:a}=this,l=Ju(e.marker,n.marker,r.calendarSystem);if(!l)return this.format(e,r);let o=l;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let c=this.format(e,r),u=this.format(n,r);if(c===u)return c;let f=Ku(s,o),h=Ri(f,a,r),d=h(e),m=h(n),b=ed(c,d,u,m),v=a.separator||i||r.defaultSeparator||"";return b?b.before+d+v+m+b.after:c+v+u}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Ri(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>mr(i.timeZoneOffset):r===0&&e.week?i=>Zu(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):qu(t,e,n)}function qu(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Qu(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:a}=s,l;i&&!a.getUTCMinutes()?l=i:l=r;let o=l.format(a);return $u(o,s,t,e,n)}}function Qu(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function $u(t,e,n,r,i){return t=t.replace(zu,""),n.timeZoneName==="short"&&(t=Xu(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":mr(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Fu,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Tt,"").trim():r.meridiem==="narrow"?t=t.replace(Tt,(s,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Tt,(s,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Tt,s=>s.toLocaleLowerCase())),t=t.replace(ju," "),t=t.trim(),t}function Xu(t,e){let n=!1;return t=t.replace(Yu,()=>(n=!0,e)),n||(t+=` ${e}`),t}function Zu(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function Ju(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:Ae(t)!==Ae(e)?1:0}function Ku(t,e){let n={};for(let r in t)(!(r in Jt)||Jt[r]<=e)&&(n[r]=t[r]);return n}function ed(t,e,n,r){let i=0;for(;i=0;s-=1){let a=t[s][r];if(typeof a=="object"&&a)i.unshift(a);else if(a!==void 0){n[r]=a;break}}i.length&&(n[r]=vr(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function Ue(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function je(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function Xs(t){let e={};for(let n of t)e[n]=!0;return e}function br(t){let e=[];for(let n in t)e.push(t[n]);return e}function oe(t,e){if(t===e)return!0;for(let n in t)if(en.call(t,n)&&!(n in e))return!1;for(let n in e)if(en.call(e,n)&&t[n]!==e[n])return!1;return!0}const id=/^on[A-Z]/;function sd(t,e){const n=Xn(t,e);for(let r of n)if(!id.test(r))return!1;return!0}function Xn(t,e){let n=[];for(let r in t)en.call(t,r)&&(r in e||n.push(r));for(let r in e)en.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function On(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&ad(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function ad(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function ld(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s{this.props.value!==a.value&&s.forEach(l=>{l.context=a.value,l.forceUpdate()})},this.sub=a=>{s.push(a);let l=a.componentWillUnmount;a.componentWillUnmount=()=>{s.splice(s.indexOf(a),1),l&&l.call(a)}}}return i},e}class md{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const ze=Js({});function pd(t,e,n,r,i,s,a,l,o,c,u,f,h){return{dateEnv:i,options:n,pluginHooks:a,emitter:c,dispatch:l,getCurrentData:o,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(d){c.on("_resize",d)},removeResizeHandler(d){c.off("_resize",d)},createScrollResponder(d){return new md(d,c,k(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:h}}class Ye extends Z{shouldComponentUpdate(e,n){return this.debug&&console.log(Xn(e,this.props),Xn(n,this.state)),!On(this.props,e,this.propEquality)||!On(this.state,n,this.stateEquality)}safeSetState(e){On(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ye.addPropsEquality=vd;Ye.addStateEquality=bd;Ye.contextType=ze;Ye.prototype.propEquality={};Ye.prototype.stateEquality={};class H extends Ye{}H.contextType=ze;function vd(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function bd(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function ve(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class yr extends H{constructor(){super(...arguments),this.id=Ve(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{Zn(this.props.generatorName,this.context.options)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&ve(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:a}=e,l=Ks(e,[],this.handleEl);let o=!1,c,u=[],f;if(i!=null){const h=typeof i=="function"?i(a,g):i;if(h===!0)o=!0;else{const d=h&&typeof h=="object";d&&"html"in h?l.dangerouslySetInnerHTML={__html:h.html}:d&&"domNodes"in h?u=Array.prototype.slice.call(h.domNodes):(d?Cs(h):typeof h!="function")?c=h:f=h}}else o=!Zn(e.generatorName,r);return o&&s&&(c=s(a)),this.queuedDomNodes=u,this.currentGeneratorMeta=f,g(e.elTag,l,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:a}=i.options;if(s){const l=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[r.generatorName];l&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:l},r),{elClasses:(r.elClasses||[]).filter(yd)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!_e(e,n)){n.forEach(fr);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}yr.addPropsEquality({elClasses:_e,elStyle:oe,elAttrs:sd,renderProps:oe});function Zn(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Ks(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function yd(t){return!!t}const ea=Js(0);class te extends Z{constructor(){super(...arguments),this.InnerContent=Ed.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&ve(this.props.elRef,e)}}render(){const{props:e}=this,n=wd(e.classNameGenerator,e.renderProps);if(e.children){const r=Ks(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?g(e.elTag,r,i):i}else return g(yr,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}te.contextType=ea;function Ed(t,e){const n=t.props;return g(yr,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function wd(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class tn extends H{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return g(te,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...ta(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function ta(t){return[`fc-${t.type}-view`,"fc-view"]}function Sd(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&rr&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return re.start)&&(t.start===null||e.end===null||t.start=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function Ce(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e=e.end?new Date(e.end.valueOf()-1):t}function na(t){let e=Math.floor(Fe(t.start,t.end))||1,n=P(t.start),r=F(n,e);return{start:n,end:r}}function wr(t,e=k(0)){let n=null,r=null;if(t.end){r=P(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=bt(e)&&(r=F(r,1))}return t.start&&(n=P(t.start),r&&r<=n&&(r=F(n,1))),{start:n,end:r}}function _d(t){let e=wr(t);return Fe(e.start,e.end)>1}function $e(t,e,n,r){return r==="year"?k(n.diffWholeYears(t,e),"year"):r==="month"?k(n.diffWholeMonths(t,e),"month"):Nu(t,e)}function Rd(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Td(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):Ct(t.now,e)}function Ct(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class ra{constructor(e){this.props=e,this.nowDate=Ct(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,a,l,o,c,u;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Dd(e,s)),a=this.buildCurrentRangeInfo(e,n),l=/^(year|month|week|day)$/.test(a.unit),o=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,l),o=this.trimHiddenDays(o),c=o,i.showNonCurrentDates||(c=Te(c,a.range)),c=this.adjustActiveRange(c),c=Te(c,s),u=Er(a.range,s),Ce(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:l,activeRange:c,renderRange:o,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,a=null,l;return r.duration?(i=r.duration,s=r.durationUnit,a=this.buildRangeFromDuration(e,n,i,s)):(l=this.props.dayCount)?(s="day",a=this.buildRangeFromDayCount(e,n,l)):(a=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=this.getFallbackDuration(),s=Qn(i).unit,a=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:a}}getFallbackDuration(){return k({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:a,end:l}=e;return r&&(Ze(i)<0&&(a=P(a),a=n.add(a,i)),Ze(s)>1&&(l=P(l),l=F(l,-1),l=n.add(l,s))),{start:a,end:l}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:a}=this.props,l,o,c;if(!a){let{dateIncrement:f}=this.props;f&&bt(f)!a[o.defId].recurringDef);for(let o in a){let c=a[o];if(c.recurringDef){let{duration:u}=c.recurringDef;u||(u=c.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let f=Md(c,u,e,r,i.recurringTypes);for(let h of f){let d=Sr(o,{start:h,end:r.add(h,u)});l[d.instanceId]=d}}}return{defs:a,instances:l}}function Md(t,e,n,r,i){let a=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(a=a.map(P)),a}const Wt={id:String,groupId:String,title:String,url:String,interactive:Boolean},ia={start:p,end:p,date:p,allDay:Boolean},kd=Object.assign(Object.assign(Object.assign({},Wt),ia),{extendedProps:p});function sa(t,e,n,r,i=Ar(n),s,a){let{refined:l,extra:o}=aa(t,n,i),c=Od(e,n),u=xd(l,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let h=Jn(l,o,e?e.sourceId:"",u.allDay,!!u.duration,n,s);return h.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:h,instance:null}}let f=Id(l,c,n,r);if(f){let h=Jn(l,o,e?e.sourceId:"",f.allDay,f.hasEnd,n,s),d=Sr(h.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return a&&h.publicId&&a[h.publicId]&&(d.instanceId=a[h.publicId]),{def:h,instance:d}}return null}function aa(t,e,n=Ar(e)){return pr(t,n)}function Ar(t){return Object.assign(Object.assign(Object.assign({},nn),kd),t.pluginHooks.eventRefiners)}function Jn(t,e,n,r,i,s,a){let l={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(a&&t.id?a[t.id]:"")||Ve(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:rn(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(l,o(t));return Object.freeze(l.ui.classNames),Object.freeze(l.extendedProps),l}function Id(t,e,n,r){let{allDay:i}=t,s,a=null,l=!1,o,c=null,u=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(u),s)a=s.marker;else if(!r)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),i&&a&&(a=P(a)),o&&(c=o.marker,i&&(c=P(c)),a&&c<=a&&(c=null)),c?l=!0:r||(l=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:l,range:{start:a,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function Od(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function yt(t,e,n,r,i,s){let a=ae(),l=Ar(n);for(let o of t){let c=sa(o,e,n,r,l,i,s);c&&Kn(c,a)}return a}function Kn(t,e=ae()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Cr(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=gn(t,s=>Nd(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return ae()}function Nd(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function ae(){return{defs:{},instances:{}}}function Dr(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function gn(t,e){let n=Ue(t.defs,e),r=Ue(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function Pd(t,e){let{defs:n,instances:r}=t,i={},s={};for(let a in n)e.defs[a]||(i[a]=n[a]);for(let a in r)!e.instances[a]&&i[r[a].defId]&&(s[a]=r[a]);return{defs:i,instances:s}}function Hd(t,e){return Array.isArray(t)?yt(t,null,e,!0):typeof t=="object"&&t?yt([t],null,e,!0):t!=null?String(t):null}function Ni(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const nn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:p,overlap:p,allow:p,className:Ni,classNames:Ni,color:String,backgroundColor:String,borderColor:String,textColor:String},Bd={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function rn(t,e){let n=Hd(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Ud(t){return t.reduce(Ld,Bd)}function Ld(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const Wd={id:String,defaultAllDay:Boolean,url:String,format:String,events:p,eventDataTransform:p,success:p,failure:p};function la(t,e,n=oa(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=pr(r,n),a=Vd(i,e);if(a)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Ve(),sourceDefId:a.sourceDefId,meta:a.meta,ui:rn(i,e),extendedProps:s}}return null}function oa(t){return Object.assign(Object.assign(Object.assign({},nn),Wd),t.pluginHooks.eventSourceRefiners)}function Vd(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}function Fd(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return jd(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return zd(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return Yd(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return Dr(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Le(t,r.activeRange,i):t;case"REMOVE_EVENTS":return Pd(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return ua(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return gn(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return ae();default:return t}}function jd(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let a=yt(ca(i,e,s),e,s);return r&&(a=Le(a,r,s)),Dr(ua(t,e.sourceId),a)}return t}function zd(t,e,n,r,i){const{defIdMap:s,instanceIdMap:a}=qd(t);let l=yt(ca(n,e,i),e,i,!1,s,a);return Le(l,r,i)}function ca(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Pi(t,i)),r&&(t=Pi(t,r)),t}function Pi(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function Yd(t,e,n,r){return n&&(e=Le(e,n,r)),Dr(t,e)}function Hi(t,e,n){let{defs:r}=t,i=je(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function ua(t,e){return gn(t,n=>n.sourceId!==e)}function Gd(t,e){return{defs:t.defs,instances:Ue(t.instances,n=>!e[n.instanceId])}}function qd(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const a=e[s],{publicId:l}=a;l&&(r[l]=s)}for(let s in n){const a=n[s],l=e[a.defId],{publicId:o}=l;o&&(i[o]=s)}return{defIdMap:r,instanceIdMap:i}}class mn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){Qd(this.handlers,e,n)}off(e,n){$d(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let a of s)a.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function Qd(t,e,n){(t[e]||(t[e]=[])).push(n)}function $d(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const Xd={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Zd(t,e){return yt(Jd(t),null,e)}function Jd(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},Xd),n)),e}function da(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},_r(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Kd(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function _r(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,gf(t,e.dateEnv)),n}function Bi(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=P(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function Rr(t,e,n,r){let i=sn(t.defs,e),s=ae();for(let a in t.defs){let l=t.defs[a];s.defs[a]=ef(l,i[a],n,r)}for(let a in t.instances){let l=t.instances[a],o=s.defs[l.defId];s.instances[a]=tf(l,o,i[l.defId],n,r)}return s}function ef(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function tf(t,e,n,r,i){let{dateEnv:s}=i,a=r.standardProps&&r.standardProps.allDay===!0,l=r.standardProps&&r.standardProps.hasEnd===!1,o=Object.assign({},t);return a&&(o.range=na(o.range)),r.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,r.datesDelta),end:s.add(o.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,r.startDelta),end:o.range.end}),r.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,r.endDelta)}),l&&(o.range={start:o.range.start,end:Bi(e.allDay,o.range.start,i)}),e.allDay&&(o.range={start:P(o.range.start),end:P(o.range.end)}),o.range.endha(n,e))}function ha(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Ud(n)}function ga(t,e){let n=t.map(nf);return n.sort((r,i)=>bu(r,i,e)),n.map(r=>r._seg)}function nf(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.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:t})}function rf(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,a=s.startEditable;for(let l of r)a=l(a,i,s,e);return a}function sf(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function af(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function ft(t,e,n,r,i,s,a){let{dateEnv:l,options:o}=n,{displayEventTime:c,displayEventEnd:u}=o,f=t.eventRange.def,h=t.eventRange.instance;c==null&&(c=r!==!1),u==null&&(u=i!==!1);let d=h.range.start,m=h.range.end,b=s||t.start||t.eventRange.range.start,v=a||t.end||t.eventRange.range.end,E=P(d).valueOf()===P(b).valueOf(),w=P(Re(m,-1)).valueOf()===P(Re(v,-1)).valueOf();return c&&!f.allDay&&(E||w)?(b=E?d:b,v=w?m:v,u&&f.hasEnd?l.formatRange(b,v,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:a?null:h.forcedEndTzo}):l.format(b,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function Je(t,e,n){let r=t.eventRange.range;return{isPast:r.end<(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&Ce(e,r.start)}}function lf(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function of(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Tr(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:a}=e,{eventInteractive:l}=a;return l==null&&(l=n.interactive,l==null&&(l=!!s.hasHandlers("eventClick"))),l?Qs(o=>{s.trigger("eventClick",{el:o.target,event:new B(e,n,r),jsEvent:o,view:e.viewApi})}):{}}const cf={start:p,end:p,allDay:Boolean};function uf(t,e,n){let r=df(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function df(t,e){let{refined:n,extra:r}=pr(t,cf),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:a},r)}function ff(t,e){return Cd(t.range,e.range)&&t.allDay===e.allDay&&hf(t,e)}function hf(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function gf(t,e){return Object.assign(Object.assign({},pa(t.range,e,t.allDay)),{allDay:t.allDay})}function ma(t,e,n){return Object.assign(Object.assign({},pa(t,e,n)),{timeZone:e.timeZone})}function pa(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function mf(t,e,n){let r=aa({editable:!1},n),i=Jn(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:ha(i,e),instance:Sr(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function pf(t,e,n){let r=!1,i=function(l){r||(r=!0,e(l))},s=function(l){r||(r=!0,n(l))},a=t(i,s);a&&typeof a.then=="function"&&a.then(i,s)}class Li extends Error{constructor(e,n){super(e),this.response=n}}function vf(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new Li("Failure parsing JSON",i)});throw new Li("Request failed",i)})}let Nn;function va(){return Nn==null&&(Nn=bf()),Nn}function bf(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="
",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class yf extends H{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return va()||a.push("fc-liquid-hack"),e.children(a,s,i,r)}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 st{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Ef(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function xr(t){return{[t.component.uid]:t}}const tr={};class wf{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,a;for(let l in n)i.push(l);for(s=0;s{this.dispatch({type:"REMOVE_EVENTS",eventStore:fa(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let a=r[s];if(a.publicId===e){if(a.recurringDef)return new B(n,a,null);for(let l in i){let o=i[l];if(o.defId===a.defId)return new B(n,a,o)}}}return null}getEvents(){let e=this.getCurrentData();return He(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new Qe(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new Qe(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Qe)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=la(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Qe(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=k(e);n&&this.trigger("_scrollRequest",{time:n})}}function Sf(t,e){return t.left>=e.left&&t.left=e.top&&t.topn:e&&t>=e.end)}}function pn(t,e){let n=["fc-day",`fc-day-${xu[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const _f=L({year:"numeric",month:"long",day:"numeric"}),Rf=L({week:"long"});function Et(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:a}=t;let l=i.format(e,n==="week"?Rf:_f);if(s.navLinks){let o=i.toDate(e);const c=u=>{let f=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof f=="function"?f.call(a,i.toDate(e),u):(typeof f=="string"&&(n=f),a.zoomTo(e,n))};return Object.assign({title:ut(s.navLinkHint,[l,o],l),"data-navlink":""},r?qs(c):{onClick:c})}return{"aria-label":l}}let Pn=null;function Tf(){return Pn===null&&(Pn=xf()),Pn}function xf(){let t=document.createElement("div");ct(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="
",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return fr(t),n}let Hn;function Mf(){return Hn||(Hn=kf()),Hn}function kf(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=ya(t);return document.body.removeChild(t),e}function ya(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function If(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,l=ya(t),o=l.y-r-i,c=l.x-s-a,u={borderLeft:r,borderRight:i,borderTop:s,borderBottom:a,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return Tf()&&n.direction==="rtl"?u.scrollbarLeft=o:u.scrollbarRight=o,e&&(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 Of(t,e=!1,n){let r=n?t.getBoundingClientRect():kr(t),i=If(t,e),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 e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function kr(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Nf(t){let e=Ea(t),n=t.getBoundingClientRect();for(let r of e){let i=ba(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function Ea(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class an{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s=n[s]&&e=n[s]&&e0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()0}canScrollRight(){return this.getScrollLeft()n.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);return this.isInsertionValid(r,e)?(this.insertEntryAt(e,r),1):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCntl.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:l.end,end:a.end}},s)),i?(r.push({index:e.index,thickness:e.thickness,span:wa(l,a)},...s),i):(r.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(Bn(i,n.level,n.levelCoord),Bn(r,n.level,[e])):Bn(r[n.level],n.lateral,e),this.stackCnts[ht(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,a=n.length,l=0,o=-1,c=-1,u=null,f=0;for(let m=0;m=l+this.getEntryThickness(e))break;let v=r[m],E,w=Vi(v,e.span.start,Wi),D=w[0]+w[1];for(;(E=v[D])&&E.span.startl&&(l=A,u=E,o=m,c=D),A===l&&(f=Math.max(f,s[ht(E)]+1)),D+=1}}let h=0;if(u)for(h=o+1;hn(t[i-1]))return[i,0];for(;ra)r=s+1;else return[s,1]}return[r,0]}class Uf{constructor(e,n){this.emitter=new mn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const Or={};function Lf(t,e){return!t||e>10?L({weekday:"short"}):e>1?L({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):L({weekday:"long"})}const Sa="fc-col-header-cell";function Aa(t){return t.text}class Wf extends H{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:a,dateProfile:l}=s,o=Mr(a,s.todayRange,null,l),c=[Sa].concat(pn(o,r)),u=e.format(a,s.dayHeaderFormat),f=!o.isDisabled&&s.colCnt>1?Et(this.context,a):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(a),view:i},s.extraRenderProps),{text:u}),o);return g(te,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:St(a)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Aa,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},d=>g("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&g(d,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const Vf=L({weekday:"long"});class Ff extends H{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,a=F(new Date(2592e5),e.dow),l={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(a,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:a},l),{view:i}),e.extraRenderProps),{text:o});return g(te,{elTag:"th",elClasses:[Sa,...pn(l,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:Aa,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},u=>g("div",{className:"fc-scrollgrid-sync-inner"},g(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,Vf)}})))}}class vn extends Z{constructor(e,n){super(e,n),this.initialNowDate=Ct(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=Re(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,k(1,e.unit)),a=s.valueOf()-r.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:i,todayRange:Fi(i)},nextState:{nowDate:s,todayRange:Fi(s)},waitMs:a}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}vn.contextType=ze;function Fi(t){let e=P(t),n=F(e,1);return{start:e,end:n}}class Ca extends H{constructor(){super(...arguments),this.createDayHeaderFormatter=x(jf)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return g(vn,{unit:"day"},(l,o)=>g("tr",{role:"row"},s&&s("day"),n.map(c=>i?g(Wf,{key:c.toISOString(),date:c,dateProfile:r,todayRange:o,colCnt:n.length,dayHeaderFormat:a}):g(Ff,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:a}))))}}function jf(t,e,n){return t||Lf(e,n)}class zf{constructor(e,n){let r=e.start,{end:i}=e,s=[],a=[],l=-1;for(;r=n.length?n[n.length-1]+1:n[r]}}class Yf{constructor(e,n){let{dates:r}=e,i,s,a;if(n){for(s=r[0].getUTCDay(),i=1;is.groupId===t)):typeof t=="object"&&t?Un(Le(t,e,i)):[]}function Un(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Jf(t,e){for(let n of t)if(hn(n,e))return!0;return!1}const It=/^(visible|hidden)$/;class Ta extends H{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,ve(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),g("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(It.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;in)return!0;return!1}needsYScrolling(){if(It.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;in)return!0;return!1}getXScrollbarWidth(){return It.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return It.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Pe{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,a=!1,l=!1;n!==null?(a=r in s,s[r]=n,i[r]=(i[r]||0)+1,l=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),l&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return ld(this.currentMap,e,n,r)}getAll(){return br(this.currentMap)}}function Kf(t){let e=ou(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,Su(r));return Math.ceil(n)}function xa(t,e){return t.liquid&&e.liquid}function eh(t,e){return e.maxHeight!=null||xa(t,e)}function th(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):g("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,g(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function nh(t,e){return _e(t,e,oe)}function rh(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;se,nh),this.renderMicroColGroup=x(rh),this.scrollerRefs=new Pe,this.scrollerElRefs=new Pe(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),a=this.renderMicroColGroup(s,n.shrinkWidth),l=ah(e.liquid,r);e.collapsibleWidth&&l.push("fc-scrollgrid-collapsible");let o=i.length,c=0,u,f=[],h=[],d=[];for(;c{}},i);return g(i?"th":"td",{ref:r.elRef,role:"presentation"},g("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},g(Ta,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:f,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},d)))}_handleScrollerEl(e,n){let r=uh(this.props.sections,n);r&&ve(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return sh(this.props.cols)?Kf(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Mf(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},a={};for(let l in n.currentMap){let o=n.currentMap[l];if(o&&o.needsYScrolling()){i=!0;break}}for(let l of this.props.sections){let o=l.key,c=r.currentMap[o];if(c){let u=c.parentNode;s[o]=Math.floor(u.getBoundingClientRect().width-(i?e.y:0)),a[o]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:a}}}Ma.addStateEquality({scrollerClientWidths:oe,scrollerClientHeights:oe});function uh(t,e){for(let n of t)if(n.key===e)return n;return null}class bn extends H{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Ui(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:a}=s,l={event:new B(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&rf(i,n),isStartResizable:!e.disableResizing&&sf(i,n),isEndResizable:!e.disableResizing&&af(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return g(te,Object.assign({},e,{elRef:this.handleEl,elClasses:[...lf(l),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:l,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Ui(this.el,this.props.seg)}}class dh extends H{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,a=r.eventTimeFormat||e.defaultTimeFormat,l=ft(i,a,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return g(bn,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:Tr(i,n),defaultGenerator:fh,timeText:l}),(o,c)=>g(U,null,g(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function fh(t){return g("div",{className:"fc-event-main-frame"},t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title-container"},g("div",{className:"fc-event-title fc-sticky"},t.event.title||g(U,null," "))))}const hh=L({day:"numeric"});class ka extends H{constructor(){super(...arguments),this.refineRenderProps=Lt(gh)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return g(te,Object.assign({},e,{elClasses:[...pn(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":St(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function Ia(t){return!!(t.dayCellContent||Zn("dayCellContent",t))}function gh(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=Mr(e,t.todayRange,null,r),a=t.showDayNumber?n.format(e,i?t.monthStartFormat:hh):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:a}),t.extraRenderProps)}class mh extends H{render(){let{props:e}=this,{seg:n}=e;return g(bn,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:ph,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function ph(t){let{title:e}=t.event;return e&&g("div",{className:"fc-event-title"},t.event.title)}function vh(t){return g("div",{className:`fc-${t}`})}const bh=t=>g(ze.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,a=n.computeWeekNumber(i),l=n.format(i,s);return g(te,Object.assign({},t,{renderProps:{num:a,text:l,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:yh,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function yh(t){return t.text}const Ln=10;class Eh extends H{constructor(){super(...arguments),this.state={titleId:pe()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&ve(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Ys(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return Qc(g("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),g("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},g("span",{className:"fc-popover-title",id:i.titleId},r.title),g("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),g("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,s=Nf(n);if(s){let a=i.getBoundingClientRect(),l=r?Y(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-a.width:s.left;l=Math.max(l,Ln),o=Math.min(o,document.documentElement.clientWidth-Ln-a.width),o=Math.max(o,Ln);let c=i.offsetParent.getBoundingClientRect();ct(i,{top:l-c.top,left:o-c.left})}}}class wh extends he{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:a}=r,l=n.format(i,e.dayPopoverFormat);return g(ka,{elRef:this.handleRootEl,date:i,dateProfile:a,todayRange:s},(o,c,u)=>g(Eh,{elRef:u.ref,id:r.id,title:l,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},Ia(e)&&g(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:a}=this;return e>=0&&e=0&&n{this.linkEl=e,this.props.elRef&&ve(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=zi(n).start;function a(l){let{def:o,instance:c,range:u}=l.eventRange;return{event:new B(r,o,c),start:r.dateEnv.toDate(u.start),end:r.dateEnv.toDate(u.end),isStart:l.isStart,isEnd:l.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return g(ze.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:a}=r,{moreLinkText:l}=s,{moreCnt:o}=e,c=zi(e),u=typeof l=="function"?l.call(a,o):`+${o} ${l}`,f=ut(s.moreLinkHint,[o],u),h={num:o,shortText:`+${o}`,text:u,view:i};return g(U,null,!!e.moreCnt&&g(te,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),qs(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Ah,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&g(wh,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Y(this.linkEl,".fc-view-harness"))}}function Ah(t){return t.text}function zi(t){if(t.allDayDate)return{start:t.allDayDate,end:F(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Ch(e),end:_h(e)}}function Ch(t){return t.reduce(Dh).eventRange.range.start}function Dh(t,e){return t.eventRange.range.starte.eventRange.range.end?t:e}class Th{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class xh extends Th{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const Mh=[],Oa={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Na=Object.assign(Object.assign({},Oa),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function kh(t){let e=t.length>0?t[0].code:"en",n=Mh.concat(t),r={en:Na};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Pa(t,e){return typeof t=="object"&&!Array.isArray(t)?Ha(t.code,[t.code],t):Ih(t,e)}function Ih(t,e){let n=[].concat(t||[]),r=Oh(n,e)||Na;return Ha(t,n,r)}function Oh(t,e){for(let n=0;n0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function Ha(t,e,n){let r=vr([Oa,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function ge(t){return{id:Ve(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function Nh(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(s){for(let a of s){const l=a.name,o=n[l];o===void 0?(n[l]=a.id,i(a.deps),r=Hh(r,a)):o!==a.id&&console.warn(`Duplicate plugin '${l}'`)}}return t&&i(t),i(e),r}function Ph(){let t=[],e=[],n;return(r,i)=>((!n||!_e(r,t)||!_e(i,e))&&(n=Nh(r,i)),t=r,e=i,n)}function Hh(t,e){return{premiumReleaseDate:Bh(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function Bh(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class xe extends At{}xe.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};xe.prototype.baseIconClass="fc-icon";xe.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};xe.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};xe.prototype.iconOverrideOption="buttonIcons";xe.prototype.iconOverrideCustomButtonOption="icon";xe.prototype.iconOverridePrefix="fc-icon-";function Uh(t,e){let n={},r;for(r in t)nr(r,n,t,e);for(r in e)nr(r,n,t,e);return n}function nr(t,e,n,r){if(e[t])return e[t];let i=Lh(t,e,n,r);return i&&(e[t]=i),i}function Lh(t,e,n,r){let i=n[t],s=r[t],a=u=>i&&i[u]!==null?i[u]:s&&s[u]!==null?s[u]:null,l=a("component"),o=a("superType"),c=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");c=nr(o,e,n,r)}return!l&&c&&(l=c.component),l?{type:t,component:l,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function Yi(t){return je(t,Wh)}function Wh(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Gi(e):n&&!(n.prototype instanceof H)&&(n=Gi(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Gi(t){return e=>g(ze.Consumer,null,n=>g(te,{elTag:"div",elClasses:ta(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Vh(t,e,n,r){let i=Yi(t),s=Yi(e.views),a=Uh(i,s);return je(a,l=>Fh(l,s,e,n,r))}function Fh(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,a=null,l="",o="",c={};if(s&&(a=jh(s),a)){let h=Qn(a);l=h.unit,h.value===1&&(o=l,c=e[l]?e[l].rawOptions:{})}let u=h=>{let d=h.buttonText||{},m=t.defaults.buttonTextKey;return m!=null&&d[m]!=null?d[m]:d[t.type]!=null?d[t.type]:d[o]!=null?d[o]:null},f=h=>{let d=h.buttonHints||{},m=t.defaults.buttonTextKey;return m!=null&&d[m]!=null?d[m]:d[t.type]!=null?d[t.type]:d[o]!=null?d[o]:null};return{type:t.type,component:t.component,duration:a,durationUnit:l,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(r)||u(n)||t.overrides.buttonText,buttonTextDefault:u(i)||t.defaults.buttonText||u(dt)||t.type,buttonTitleOverride:f(r)||f(n)||t.overrides.buttonHint,buttonTitleDefault:f(i)||t.defaults.buttonHint||f(dt)}}let qi={};function jh(t){let e=JSON.stringify(t),n=qi[e];return n===void 0&&(n=k(t),qi[e]=n),n}function zh(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Yh(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Gh(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function qh(t,e,n){let r=e?e.activeRange:null;return Ua({},eg(t,n),r,n)}function Qh(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Ua(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Xh(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?La(t,i,r):t;case"FETCH_EVENT_SOURCES":return Nr(t,e.sourceIds?Xs(e.sourceIds):Wa(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Kh(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function $h(t,e,n){let r=e?e.activeRange:null;return Nr(t,Wa(t,n),r,!0,n)}function Ba(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Ua(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=La(i,n,r)),Object.assign(Object.assign({},t),i)}function Xh(t,e){return Ue(t,n=>n.sourceId!==e)}function La(t,e,n){return Nr(t,Ue(t,r=>Zh(r,e,n)),e,!1,n)}function Zh(t,e,n){return Va(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.startt.fetchRange.end:!t.latestFetchId}function Nr(t,e,n,r,i){let s={};for(let a in t){let l=t[a];e[a]?s[a]=Jh(l,n,r,i):s[a]=l}return s}function Jh(t,e,n,r){let{options:i,calendarApi:s}=r,a=r.pluginHooks.eventSourceDefs[t.sourceDefId],l=Ve();return a.fetch({eventSource:t,range:e,isRefetch:n,context:r},o=>{let{rawEvents:c}=o;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(s,c,o.response)||c),t.success&&(c=t.success.call(s,c,o.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:l,fetchRange:e,rawEvents:c})},o=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,o),c=!0),t.failure&&(t.failure(o),c=!0),c||console.warn(o.message,o),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:l,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:l})}function Kh(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function Wa(t,e){return Ue(t,n=>Va(n,e))}function eg(t,e){let n=oa(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let a=la(s,e,n);a&&i.push(a)}return i}function Va(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function tg(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function ng(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function rg(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function ig(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function sg(t,e,n,r,i){let s=t.headerToolbar?Qi(t.headerToolbar,t,e,n,r,i):null,a=t.footerToolbar?Qi(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:a}}function Qi(t,e,n,r,i,s){let a={},l=[],o=!1;for(let c in t){let u=t[c],f=ag(u,e,n,r,i,s);a[c]=f.widgets,l.push(...f.viewsWithButtons),o=o||f.hasTitle}return{sectionWidgets:a,viewsWithButtons:l,hasTitle:o}}function ag(t,e,n,r,i,s){let a=e.direction==="rtl",l=e.customButtons||{},o=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},f=e.buttonHints||{},h=t?t.split(" "):[],d=[],m=!1;return{widgets:h.map(v=>v.split(",").map(E=>{if(E==="title")return m=!0,{buttonName:E};let w,D,A,M,T,I;if(w=l[E])A=_=>{w.click&&w.click.call(_.target,_,_.target)},(M=r.getCustomButtonIconClass(w))||(M=r.getIconClass(E,a))||(T=w.text),I=w.hint||w.text;else if(D=i[E]){d.push(E),A=()=>{s.changeView(E)},(T=D.buttonTextOverride)||(M=r.getIconClass(E,a))||(T=D.buttonTextDefault);let _=D.buttonTextOverride||D.buttonTextDefault;I=ut(D.buttonTitleOverride||D.buttonTitleDefault||e.viewHint,[_,E],_)}else if(s[E])if(A=()=>{s[E]()},(T=o[E])||(M=r.getIconClass(E,a))||(T=c[E]),E==="prevYear"||E==="nextYear"){let _=E==="prevYear"?"prev":"next";I=ut(u[_]||f[_],[c.year||"year","year"],c[E])}else I=_=>ut(u[E]||f[E],[c[_]||_,_],c[E]);return{buttonName:E,buttonClick:A,buttonIcon:M,buttonText:T,buttonHint:I}})),viewsWithButtons:d,hasTitle:m}}class lg{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let og={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const cg=ge({name:"array-event-source",eventSourceDefs:[og]});let ug={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;pf(i.bind(null,ma(t.range,r)),s=>e({rawEvents:s}),n)}};const dg=ge({name:"func-event-source",eventSourceDefs:[ug]}),fg={method:String,extraParams:p,startParam:String,endParam:String,timeZoneParam:String};let hg={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=mg(r,t.range,t.context);vf(r.method,r.url,i).then(([s,a])=>{e({rawEvents:s,response:a})},n)}};const gg=ge({name:"json-event-source",eventSourceRefiners:fg,eventSourceDefs:[hg]});function mg(t,e,n){let{dateEnv:r,options:i}=n,s,a,l,o,c={};return s=t.startParam,s==null&&(s=i.startParam),a=t.endParam,a==null&&(a=i.endParam),l=t.timeZoneParam,l==null&&(l=i.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(c,o),c[s]=r.formatIso(e.start),c[a]=r.formatIso(e.end),r.timeZone!=="local"&&(c[l]=r.timeZone),c}const pg={daysOfWeek:p,startTime:k,endTime:k,duration:k,startRecur:p,endRecur:p};let vg={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=_u(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Te(e,{start:t.startRecur,end:t.endRecur});return r?yg(t.daysOfWeek,t.startTime,r,n):[]}};const bg=ge({name:"simple-recurring-event",recurringTypes:[vg],eventRefiners:pg});function yg(t,e,n,r){let i=t?Xs(t):null,s=P(n.start),a=n.end,l=[];for(;sBa(t.eventSources)],propSetHandlers:{dateProfile:wg,eventStore:Sg}})];class Cg{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new dr(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Dg(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,L(e.titleFormat||_g(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function _g(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Zt(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Rg{constructor(e){this.computeCurrentViewData=x(this._computeCurrentViewData),this.organizeRawLocales=x(kh),this.buildLocale=x(Pa),this.buildPluginHooks=Ph(),this.buildDateEnv=x(Tg),this.buildTheme=x(xg),this.parseToolbars=x(sg),this.buildViewSpecs=x(Vh),this.buildDateProfileGenerator=Lt(Mg),this.buildViewApi=x(kg),this.buildViewUiProps=Lt(Ng),this.buildEventUiBySource=x(Ig,oe),this.buildEventUiBases=x(Og),this.parseContextBusinessHours=Lt(Pg),this.buildTitle=x(Dg),this.emitter=new mn,this.actionRunner=new Cg(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=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let a=Td(r.calendarOptions,r.dateEnv),l=s.dateProfileGenerator.build(a);Ce(l.activeRange,a)||(a=l.currentRange.start);let o={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of r.pluginHooks.contextInit)h(o);let c=qh(r.calendarOptions,l,o),u={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:l,businessHours:this.parseContextBusinessHours(o),eventSources:c,eventUiBases:{},eventStore:ae(),renderableEventStore:ae(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},f=Object.assign(Object.assign({},o),u);for(let h of r.pluginHooks.reducers)Object.assign(u,h(null,null,f));Wn(u,o)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=Yh(r.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),l=zh(r.currentViewType,e),o=this.computeCurrentViewData(l,a,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(o.options);let c={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:f}=r;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(f=o.dateProfileGenerator.build(u)),u=Rd(u,e),f=Gh(f,e,u,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Ce(f.currentRange,u))&&(u=f.currentRange.start);let h=Qh(r.eventSources,e,f,c),d=Fd(r.eventStore,e,h,f,c),b=Ba(h)&&!o.options.progressiveEventRendering&&r.renderableEventStore||d,{eventUiSingleBase:v,selectionConfig:E}=this.buildViewUiProps(c),w=this.buildEventUiBySource(h),D=this.buildEventUiBases(b.defs,v,w),A={dynamicOptionOverrides:s,currentViewType:l,currentDate:u,dateProfile:f,eventSources:h,eventStore:d,renderableEventStore:b,selectionConfig:E,eventUiBases:D,businessHours:this.parseContextBusinessHours(c),dateSelection:tg(r.dateSelection,e),eventSelection:ng(r.eventSelection,e),eventDrag:rg(r.eventDrag,e),eventResize:ig(r.eventResize,e)},M=Object.assign(Object.assign({},c),A);for(let _ of a.pluginHooks.reducers)Object.assign(A,_(r,e,M));let T=Wn(r,c),I=Wn(A,c);!T&&I?i.trigger("loading",!0):T&&!I&&i.trigger("loading",!1),this.state=A,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),l=i.pluginHooks.optionChangeHandlers,o=r&&r.calendarOptions,c=i.calendarOptions;if(o&&o!==c){o.timeZone!==c.timeZone&&(n.eventSources=a.eventSources=$h(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=Hi(a.eventStore,r.dateEnv,a.dateEnv),n.renderableEventStore=a.renderableEventStore=Hi(a.renderableEventStore,r.dateEnv,a.dateEnv));for(let u in l)(this.optionsForHandling.indexOf(u)!==-1||o[u]!==c[u])&&l[u](c[u],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:a,availableLocaleData:l,extra:o}=this.processRawCalendarOptions(e,n);Xi(o);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,l,i.defaultRangeSeparator),u=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),f=this.buildTheme(i,s),h=this.parseToolbars(i,this.stableOptionOverrides,f,u,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:c,viewSpecs:u,theme:f,toolbarConfig:h,localeDefaults:a,availableRawLocales:l.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=In([dt,e,n]),s=this.organizeRawLocales(r),a=s.map,l=this.buildLocale(i||s.defaultCode,a).options,o=this.buildPluginHooks(e.plugins||[],Ag),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xi),Mi),ki),o.listenerRefiners),o.optionRefiners),u={},f=In([dt,l,e,n]),h={},d=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,b=!1;for(let v in f)this.optionsForRefining.indexOf(v)===-1&&(f[v]===d[v]||ke[v]&&v in d&&ke[v](d[v],f[v]))?h[v]=m[v]:c[v]?(h[v]=c[v](f[v]),b=!0):u[v]=d[v];return b&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:l,extra:u}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:l}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);Xi(l);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:a,dateProfileGenerator:o,viewApi:c}}processRawViewOptions(e,n,r,i,s){let a=In([dt,e.optionDefaults,r,i,e.optionOverrides,s]),l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xi),Mi),ki),rd),n.listenerRefiners),n.optionRefiners),o={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,f=!1,h={};for(let d in a)a[d]===c[d]||ke[d]&&ke[d](a[d],c[d])?o[d]=u[d]:(a[d]===this.currentCalendarOptionsInput[d]||ke[d]&&ke[d](a[d],this.currentCalendarOptionsInput[d])?d in this.currentCalendarOptionsRefined&&(o[d]=this.currentCalendarOptionsRefined[d]):l[d]?o[d]=l[d](a[d]):h[d]=a[d],f=!0);return f&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function Tg(t,e,n,r,i,s,a,l){let o=Pa(e||a.defaultCode,a.map);return new hd({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:l})}function xg(t,e){let n=e.themeClasses[t.themeSystem]||xe;return new n(t)}function Mg(t){let e=t.dateProfileGeneratorClass||ra;return new e(t)}function kg(t,e,n){return new lg(t,e,n)}function Ig(t){return je(t,e=>e.ui)}function Og(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function Ng(t){let{options:e}=t;return{eventUiSingleBase:rn({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:rn({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Wn(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Pg(t){return Zd(t.options.businessHours,t)}function Xi(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class Hg extends H{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return g("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let a of e){let{buttonName:l,buttonClick:o,buttonText:c,buttonIcon:u,buttonHint:f}=a;if(l==="title")s=!1,i.push(g("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=l===n.activeButton,d=!n.isTodayEnabled&&l==="today"||!n.isPrevEnabled&&l==="prev"||!n.isNextEnabled&&l==="next",m=[`fc-${l}-button`,r.getClass("button")];h&&m.push(r.getClass("buttonActive")),i.push(g("button",{type:"button",title:typeof f=="function"?f(n.navUnit):f,disabled:d,"aria-pressed":h,className:m.join(" "),onClick:o},c||(u?g("span",{className:u}):"")))}}if(i.length>1){let a=s&&r.getClass("buttonGroup")||"";return g("div",{className:a},...i)}return i[0]}}class Zi extends H{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,a=e.sectionWidgets,l=a.center;return a.left?(r=!0,i=a.left):i=a.start,a.right?(r=!0,s=a.right):s=a.end,g("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",l||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return g(Hg,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class Bg extends H{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,ve(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",a="";return r?n.availableWidth!==null?s=n.availableWidth/r:a=`${1/r*100}%`:s=e.height||"",g("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Ug extends st{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,a=nt(r);if(a&&i.isValidSegDownEl(n.target)){let l=Y(n.target,".fc-event-forced-url"),o=l?l.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new B(i.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=Gs(e.el,"click",".fc-event",this.handleSegClick)}}class Lg extends st{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{nt(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=du(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,a=nt(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new B(s,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Wg extends Ye{constructor(){super(...arguments),this.buildViewContext=x(pd),this.buildViewPropTransformers=x(Fg),this.buildToolbarProps=x(Vg),this.headerRef=le(),this.footerRef=le(),this.interactionsStore={},this.state={viewLabelId:pe()},this.registerInteractiveComponent=(e,n)=>{let r=Ef(e,n),a=[Ug,Lg].concat(this.props.pluginHooks.componentInteractions).map(l=>new l(r));this.interactionsStore[e.uid]=a,tr[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete tr[e.uid]},this.resizeRunner=new dr(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Ct(e.options.now,e.dateEnv),e.viewTitle),s=!1,a="",l;e.isHeightAuto||e.forPrint?a="":r.height!=null?s=!0:r.contentHeight!=null?a=r.contentHeight:l=Math.max(r.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return g(ze.Provider,{value:o},n.header&&g(Zi,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),g(Bg,{liquid:s,height:a,aspectRatio:l,labeledById:c},this.renderView(e),this.buildAppendContent()),n.footer&&g(Zi,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return g(U,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let l of s)Object.assign(i,l.transform(i,e));let a=r.component;return g(a,Object.assign({},i))}}function Vg(t,e,n,r,i,s){let a=n.build(i,void 0,!1),l=n.buildPrev(e,r,!1),o=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!Ce(e.currentRange,i),isPrevEnabled:l.isValid,isNextEnabled:o.isValid}}function Fg(t){return t.map(e=>new e)}class jg extends wf{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;Ii(()=>{vt(g(yf,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,a,l)=>(this.setClassNames(i),this.setHeight(s),g(ea.Provider,{value:this.customContentRenderId},g(Wg,Object.assign({isHeightAuto:a,forPrint:l},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,vt(null,this.el),this.setClassNames([]),this.setHeight(""))},nu(e),this.el=e,this.renderRunner=new dr(this.handleRenderRequest),new Rg({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Ii(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!_e(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){zs(this.el,"height",e)}}const zg={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Yg=cs({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:$g(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(Pt(qg,{key:e.id,customRendering:e}));return Pt("div",{attrs:{"data-fc-render-id":this.renderId}},Pt(De,t))},mounted(){const t=new xh;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new jg(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Qg()}),Gg=Yg,qg=cs({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return Pt(Ul,{to:t.containerEl},e)}});function Qg(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in zg)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function $g(t){const e={};for(const n in t)e[Xg(n)]=t[n];return e}function Xg(t){return t.split("-").map((e,n)=>n?Zg(e):e).join("")}function Zg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Jg=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';dn(Jg);function Ot(t,e){let n=[];for(let r=0;r{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return g(U,null,n.map(s=>{let a=s.eventRange.instance.instanceId;return g("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},ja(s)?g(Ya,Object.assign({seg:s,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},Je(s,e.todayRange))):g(za,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},Je(s,e.todayRange))))}))}})}}function tm(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const nm=L({week:"narrow"});class rm extends he{constructor(){super(...arguments),this.rootElRef=le(),this.state={dayNumberId:pe()},this.handleRootEl=e=>{ve(this.rootElRef,e),ve(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:a}=e,{date:l,dateProfile:o}=n;const c=n.showDayNumber&&sm(l,o.currentRange,a);return g(ka,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:im,date:l,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(u,f)=>g("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&g(bh,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Et(e,l,"week"),date:l,defaultFormat:nm}),!f.isDisabled&&(n.showDayNumber||Ia(s)||n.forceDayTop)?g("div",{className:"fc-daygrid-day-top"},g(u,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Et(e,l)),{id:r.dayNumberId})})):n.showDayNumber?g("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},g("a",{className:"fc-daygrid-day-number"}," ")):void 0,g("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,g("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},g(em,{allDayDate:l,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),g("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function im(t){return t.dayNumberText||g(U,null," ")}function sm(t,e,n){const{start:r,end:i}=e,s=Re(i,-1),a=n.getYear(r),l=n.getMonth(r),o=n.getYear(s),c=n.getMonth(s);return!(a===o&&l===c)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf(){let w=t[E.index].eventRange.instance.instanceId+":"+E.span.start+":"+(E.span.end-1);return i[w]});l.allowReslicing=!0,l.strictOrder=r,e===!0||n===!0?(l.maxCoord=s,l.hiddenConsumes=!0):typeof e=="number"?l.maxStackCnt=e:typeof n=="number"&&(l.maxStackCnt=n,l.hiddenConsumes=!0);let o=[],c=[];for(let E=0;E1,v=d.span.start===l;f+=d.levelCoord-u,u=d.levelCoord+d.thickness,b?(f+=d.thickness,v&&h.push({seg:Ke(m,d.span.start,d.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:d.levelCoord,marginTop:0})):v&&(h.push({seg:Ke(m,d.span.start,d.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:d.levelCoord,marginTop:f}),f=0)}i.push(c),s.push(h),a.push(f)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:a}}function om(t,e){let n=[];for(let r=0;r!this.forceHidden[ht(s)];for(let s=0;s{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,a=Nt(e.businessHourSegs,s),l=Nt(e.bgEventSegs,s),o=Nt(this.getHighlightSegs(),s),c=Nt(this.getMirrorSegs(),s),{singleColPlacements:u,multiColPlacements:f,moreCnts:h,moreMarginTops:d}=am(ga(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return g("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((b,v)=>{let E=this.renderFgSegs(v,e.forPrint?u[v]:f[v],e.todayRange,m),w=this.renderFgSegs(v,um(c[v],f),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return g(rm,{key:b.key,elRef:this.cellElRefs.createRef(b.key),innerElRef:this.frameElRefs.createRef(b.key),dateProfile:e.dateProfile,date:b.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:b.extraRenderProps,extraDataAttrs:b.extraDataAttrs,extraClassNames:b.extraClassNames,extraDateSpan:b.extraDateSpan,moreCnt:h[v],moreMarginTop:d[v],singlePlacements:u[v],fgContentElRef:this.fgElRefs.createRef(b.key),fgContent:g(U,null,g(U,null,E),g(U,null,w)),bgContent:g(U,null,this.renderFillSegs(o[v],"highlight"),this.renderFillSegs(a[v],"non-business"),this.renderFillSegs(l[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!oe(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,s,a,l){let{context:o}=this,{eventSelection:c}=this.props,{framePositions:u}=this.state,f=this.props.cells.length===1,h=s||a||l,d=[];if(u)for(let m of n){let{seg:b}=m,{instanceId:v}=b.eventRange.instance,E=m.isVisible&&!i[v],w=m.isAbsolute,D="",A="";w&&(o.isRtl?(A=0,D=u.lefts[b.lastCol]-u.lefts[b.firstCol]):(D=0,A=u.rights[b.firstCol]-u.rights[b.lastCol])),d.push(g("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:Ga(b),ref:h?null:this.segHarnessRefs.createRef(qa(b)),style:{visibility:E?"":"hidden",marginTop:w?"":m.marginTop,top:w?m.absoluteTop:"",left:D,right:A}},ja(b)?g(Ya,Object.assign({seg:b,isDragging:s,isSelected:v===c,defaultDisplayEventEnd:f},Je(b,r))):g(za,Object.assign({seg:b,isDragging:s,isResizing:a,isDateSelecting:l,isSelected:v===c,defaultDisplayEventEnd:f},Je(b,r)))))}return d}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,a=[];if(s)for(let l of e){let o=r?{right:0,left:s.lefts[l.lastCol]-s.lefts[l.firstCol]}:{left:0,right:s.rights[l.firstCol]-s.rights[l.lastCol]};a.push(g("div",{key:of(l.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?g(mh,Object.assign({seg:l},Je(l,i))):vh(n)))}return g(U,{},...a)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(c=>i.currentMap[c.key]);if(o.length){let c=this.rootElRef.current,u=new an(c,o,!0,!1);(!r.framePositions||!r.framePositions.similarTo(u))&&this.setState({framePositions:new an(c,o,!0,!1)})}}const s=this.state.segHeights,a=this.querySegHeights(),l=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),a),maxContentHeight:l?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Qa.addStateEquality({segHeights:oe});function um(t,e){if(!t.length)return[];let n=dm(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function dm(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class $a extends he{constructor(){super(...arguments),this.splitBusinessHourSegs=x(Ot),this.splitBgEventSegs=x(Ot),this.splitFgEventSegs=x(Ot),this.splitDateSelectionSegs=x(Ot),this.splitEventDrag=x(Ji),this.splitEventResize=x(Ji),this.rowRefs=new Pe}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),a=this.splitFgEventSegs(e.fgEventSegs,r),l=this.splitDateSelectionSegs(e.dateSelectionSegs,r),o=this.splitEventDrag(e.eventDrag,r),c=this.splitEventResize(e.eventResize,r),u=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return g(vn,{unit:"day"},(f,h)=>g(U,null,e.cells.map((d,m)=>g(Qa,{ref:this.rowRefs.createRef(m),key:d.length?d[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:d,renderIntro:e.renderRowIntro,businessHourSegs:i[m],eventSelection:e.eventSelection,bgEventSegs:s[m].filter(fm),fgEventSegs:a[m],dateSelectionSegs:l[m],eventDrag:o[m],eventResize:c[m],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new an(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new an(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),a=i.topToIndex(n);if(a!=null&&s!=null){let l=this.props.cells[a][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,s),allDay:!0},l.extraDateSpan),dayEl:this.getCellEl(a,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=F(r,1);return{start:r,end:i}}}function fm(t){return t.eventRange.def.allDay}class hm extends he{constructor(){super(...arguments),this.elRef=le(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);let a=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return g("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},g("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,g("tbody",{role:"presentation"},g($a,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=gm(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function gm(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${$n(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${St(e.currentDate)}"]`)),n}class Xa extends Gf{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class mm extends he{constructor(){super(...arguments),this.slicer=new Xa,this.tableRef=le()}render(){let{props:e,context:n}=this;return g(hm,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class Za extends ra{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return Ja({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function Ja(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=Ai(s,1))),t.fixedWeekCount){let a=e.startOfWeek(e.startOfMonth(F(n.end,-1))),l=Math.ceil(Mu(a,i));i=Ai(i,6-l)}return{start:r,end:i}}class pm extends he{constructor(){super(...arguments),this.headerElRef=le()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],a=ji(i.options);return e&&s.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),g(tn,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},g(Ma,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:a,context:l}=this,o=!a.forPrint&&ji(l.options),c=!a.forPrint&&ch(l.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:oh}]}),g(tn,{elClasses:["fc-daygrid"],viewSpec:l.viewSpec},g(s,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:u}))}}class vm extends pm{constructor(){super(...arguments),this.buildDayTableModel=x(Ka),this.headerRef=le(),this.tableRef=le()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&g(Ca,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),a=l=>g(mm,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:l.tableColGroupNode,tableMinWidth:l.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:l.clientWidth,clientHeight:l.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,a,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,a)}}function Ka(t,e){let n=new zf(t.renderRange,e);return new Yf(n,/year|month|week/.test(t.currentRangeUnit))}var bm=ge({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:vm,dateProfileGeneratorClass:Za},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});Or.touchMouseIgnoreWait=500;let rr=0,ln=0,ir=!1;class el{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&ym(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Em()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.pageXOffset-this.prevScrollX+this.prevPageX,i=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new mn,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),wm()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Sm()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Y(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){ir=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Y(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return rr||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(ir=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,a=0,l=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(a=i-this.origPageX,l=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:a,deltaY:l}}}function ym(t){return t.button===0&&!t.ctrlKey}function Em(){rr+=1,setTimeout(()=>{rr-=1},Or.touchMouseIgnoreWait)}function wm(){ln+=1,ln===1&&window.addEventListener("touchmove",tl,{passive:!1})}function Sm(){ln-=1,ln||window.removeEventListener("touchmove",tl,{passive:!1})}function tl(t){ir&&t.preventDefault()}class Am{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=r-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",ct(r,{left:i.left,top:i.top}),fu(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(fr(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&ct(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.classList.add("fc-event-dragging"),ct(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class nl extends Ir{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class rl extends nl{constructor(e,n){super(new Pf(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Of(this.scrollController.el)}}class Cm extends nl{constructor(e){super(new Hf,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Ki=typeof performance=="function"?performance.now:Date.now;class Dm{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=Ki();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.pageXOffset,i=n-window.pageYOffset,s=this.pointerScreenY===null?0:i-this.pointerScreenY,a=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ki()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,a=s*s/(i*i)*this.maxVelocity*n,l=1;switch(e.name){case"left":l=-1;case"right":r.setScrollLeft(r.getScrollLeft()+a*l);break;case"top":l=-1;case"bottom":r.setScrollTop(r.getScrollTop()+a*l);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let a of s){let l=a.clientRect,o=e-l.left,c=l.right-e,u=n-l.top,f=l.bottom-n;o>=0&&c>=0&&u>=0&&f>=0&&(u<=r&&this.everMovedUp&&a.canScrollUp()&&(!i||i.distance>u)&&(i={scrollCache:a,name:"top",distance:u}),f<=r&&this.everMovedDown&&a.canScrollDown()&&(!i||i.distance>f)&&(i={scrollCache:a,name:"bottom",distance:f}),o<=r&&this.everMovedLeft&&a.canScrollLeft()&&(!i||i.distance>o)&&(i={scrollCache:a,name:"left",distance:o}),c<=r&&this.everMovedRight&&a.canScrollRight()&&(!i||i.distance>c)&&(i={scrollCache:a,name:"right",distance:c}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new Cm(!1):new rl(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class Dt extends Uf{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,hu(document.body),mu(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,a,{deltaX:l,deltaY:o}=i;a=l*l+o*o,a>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,gu(document.body),pu(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new el(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new Am,this.autoScroller=new Dm}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class _m{constructor(e){this.origRect=kr(e),this.scrollCaches=Ea(e).map(n=>new rl(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!Rm(i.getEventTarget())&&!Sf(r,i.clientRect))return!1;return!0}}function Rm(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class yn{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new mn}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=kr(i),r=Af(r,s));let a=this.initialHit=this.queryHitForOffset(r.left,r.top);if(a){if(this.useSubjectCenter&&s){let l=ba(s,a.rect);l&&(r=Cf(l))}this.coordAdjust=Df(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!En(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=je(this.droppableStore,e=>(e.component.prepareHits(),new _m(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let a in r){let l=r[a].component,o=i[a];if(o&&o.isWithinClipping(e,n)){let c=o.computeLeft(),u=o.computeTop(),f=e-c,h=n-u,{origRect:d}=o,m=d.right-d.left,b=d.bottom-d.top;if(f>=0&&f=0&&hs.layer)&&(v.componentId=a,v.context=l.context,v.rect.left+=c,v.rect.right+=c,v.rect.top+=u,v.rect.bottom+=u,s=v)}}}return s}}function En(t,e){return!t&&!e?!0:!!t!=!!e?!1:ff(t.dateSpan,e.dateSpan)}function il(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,Tm(t,e.dateEnv)),n}function Tm(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class xm extends st{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:a,finalHit:l}=this.hitDragging;if(a&&l&&En(a,l)){let{context:o}=i,c=Object.assign(Object.assign({},il(a.dateSpan,o)),{dayEl:a.dayEl,jsEvent:r.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",c)}}},this.dragging=new Dt(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new yn(this.dragging,xr(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Mm extends st{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=a=>{let{component:l,dragging:o}=this,{options:c}=l.context,u=c.selectable&&l.isValidDateDownEl(a.origEvent.target);o.setIgnoreMove(!u),o.delay=a.isTouch?km(l):null},this.handleDragStart=a=>{this.component.context.calendarApi.unselect(a)},this.handleHitUpdate=(a,l)=>{let{context:o}=this.component,c=null,u=!1;if(a){let f=this.hitDragging.initialHit;a.componentId===f.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(f,a)||(c=Im(f,a,o.pluginHooks.dateSelectionTransformers)),(!c||!qf(c,a.dateProfile,o))&&(u=!0,c=null)}c?o.dispatch({type:"SELECT_DATES",selection:c}):l||o.dispatch({type:"UNSELECT_DATES"}),u?hr():gr(),l||(this.dragSelection=c)},this.handlePointerUp=a=>{this.dragSelection&&(da(this.dragSelection,a,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new Dt(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new yn(this.dragging,xr(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function km(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Im(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(wu);let a={};for(let l of n){let o=l(t,e);if(o===!1)return null;o&&Object.assign(a,o)}return a.range={start:s[0],end:s[3]},a.allDay=r.allDay,a}class _t extends st{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=a=>{let l=a.origEvent.target,{component:o,dragging:c}=this,{mirror:u}=c,{options:f}=o.context,h=o.context;this.subjectEl=a.subjectEl;let d=this.subjectSeg=nt(a.subjectEl),b=(this.eventRange=d.eventRange).instance.instanceId;this.relevantEvents=Cr(h.getCurrentData().eventStore,b),c.minDistance=a.isTouch?0:f.eventDragMinDistance,c.delay=a.isTouch&&b!==o.props.eventSelection?Nm(o):null,f.fixedMirrorParent?u.parentNode=f.fixedMirrorParent:u.parentNode=Y(l,".fc"),u.revertDuration=f.dragRevertDuration;let v=o.isValidSegDownEl(l)&&!Y(l,".fc-event-resizer");c.setIgnoreMove(!v),this.isDragging=v&&a.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=a=>{let l=this.component.context,o=this.eventRange,c=o.instance.instanceId;a.isTouch?c!==this.component.props.eventSelection&&l.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):l.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(l.calendarApi.unselect(a),l.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new B(l,o.def,o.instance),jsEvent:a.origEvent,view:l.viewApi}))},this.handleHitUpdate=(a,l)=>{if(!this.isDragging)return;let o=this.relevantEvents,c=this.hitDragging.initialHit,u=this.component.context,f=null,h=null,d=null,m=!1,b={affectedEvents:o,mutatedEvents:ae(),isEvent:!0};if(a){f=a.context;let v=f.options;u===f||v.editable&&v.droppable?(h=Om(c,a,f.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(d=Rr(o,f.getCurrentData().eventUiBases,h,f),b.mutatedEvents=d,Da(b,a.dateProfile,f)||(m=!0,h=null,d=null,b.mutatedEvents=ae()))):f=null}this.displayDrag(f,b),m?hr():gr(),l||(u===f&&En(c,a)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!a||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=f,this.validMutation=h,this.mutatedRelevantEvents=d)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=a=>{if(this.isDragging){let l=this.component.context,o=l.viewApi,{receivingContext:c,validMutation:u}=this,f=this.eventRange.def,h=this.eventRange.instance,d=new B(l,f,h),m=this.relevantEvents,b=this.mutatedRelevantEvents,{finalHit:v}=this.hitDragging;if(this.clearDrag(),l.emitter.trigger("eventDragStop",{el:this.subjectEl,event:d,jsEvent:a.origEvent,view:o}),u){if(c===l){let E=new B(l,b.defs[f.defId],h?b.instances[h.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:b});let w={oldEvent:d,event:E,relatedEvents:He(b,l,h),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:m})}},D={};for(let A of l.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(D,A(u,l));l.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},w),D),{el:a.subjectEl,delta:u.datesDelta,jsEvent:a.origEvent,view:o})),l.emitter.trigger("eventChange",w)}else if(c){let E={event:d,relatedEvents:He(m,l,h),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:m})}};l.emitter.trigger("eventLeave",Object.assign(Object.assign({},E),{draggedEl:a.subjectEl,view:o})),l.dispatch({type:"REMOVE_EVENTS",eventStore:m}),l.emitter.trigger("eventRemove",E);let w=b.defs[f.defId],D=b.instances[h.instanceId],A=new B(c,w,D);c.dispatch({type:"MERGE_EVENTS",eventStore:b});let M={event:A,relatedEvents:He(b,c,D),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:b})}};c.emitter.trigger("eventAdd",M),a.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},il(v.dateSpan,c)),{draggedEl:a.subjectEl,jsEvent:a.origEvent,view:v.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},M),{draggedEl:a.subjectEl,view:v.context.viewApi}))}}else l.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new Dt(e.el);i.pointer.selector=_t.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new yn(this.dragging,tr);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:ae(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}_t.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Om(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=r.range.start,a=i.range.start,l={};r.allDay!==i.allDay&&(l.allDay=i.allDay,l.hasEnd=e.context.options.allDayMaintainDuration,i.allDay&&(s=P(s)));let o=$e(s,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);o.milliseconds&&(l.allDay=!1);let c={datesDelta:o,standardProps:l};for(let u of n)u(c,t,e);return c}function Nm(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Pm extends st{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:a}=this,l=this.querySegEl(s),o=nt(l),c=this.eventRange=o.eventRange;this.dragging.minDistance=a.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=s=>{let{context:a}=this.component,l=this.eventRange;this.relevantEvents=Cr(a.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=nt(o),a.calendarApi.unselect(),a.emitter.trigger("eventResizeStart",{el:o,event:new B(a,l.def,l.instance),jsEvent:s.origEvent,view:a.viewApi})},this.handleHitUpdate=(s,a,l)=>{let{context:o}=this.component,c=this.relevantEvents,u=this.hitDragging.initialHit,f=this.eventRange.instance,h=null,d=null,m=!1,b={affectedEvents:c,mutatedEvents:ae(),isEvent:!0};s&&(s.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,s)||(h=Hm(u,s,l.subjectEl.classList.contains("fc-event-resizer-start"),f.range))),h&&(d=Rr(c,o.getCurrentData().eventUiBases,h,o),b.mutatedEvents=d,Da(b,s.dateProfile,o)||(m=!0,h=null,d=null,b.mutatedEvents=null)),d?o.dispatch({type:"SET_EVENT_RESIZE",state:b}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),m?hr():gr(),a||(h&&En(u,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=d)},this.handleDragEnd=s=>{let{context:a}=this.component,l=this.eventRange.def,o=this.eventRange.instance,c=new B(a,l,o),u=this.relevantEvents,f=this.mutatedRelevantEvents;if(a.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:s.origEvent,view:a.viewApi}),this.validMutation){let h=new B(a,f.defs[l.defId],o?f.instances[o.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:f});let d={oldEvent:c,event:h,relatedEvents:He(f,a,o),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:u})}};a.emitter.trigger("eventResize",Object.assign(Object.assign({},d),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||k(0),endDelta:this.validMutation.endDelta||k(0),jsEvent:s.origEvent,view:a.viewApi})),a.emitter.trigger("eventChange",d)}else a.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Dt(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new yn(this.dragging,xr(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Y(e.subjectEl,".fc-event")}}function Hm(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,a=e.dateSpan.range.start,l=$e(s,a,i,t.largeUnit);if(n){if(i.add(r.start,l)r.start)return{endDelta:l};return null}class Bm{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=Ys(r.origEvent);this.matchesCancel=!!Y(s,i),this.matchesEvent=!!Y(s,_t.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,a=i.getCurrentData();if(!s.wasTouchScroll){if(a.dateSelection&&!this.isRecentPointerDateSelect){let l=i.options.unselectAuto;l&&(!l||!this.matchesCancel)&&i.calendarApi.unselect(r)}a.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new el(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Um={fixedMirrorParent:p},Lm={dateClick:p,eventDragStart:p,eventDragStop:p,eventDrop:p,eventResizeStart:p,eventResizeStop:p,eventResize:p,drop:p,eventReceive:p,eventLeave:p};Or.dataAttrPrefix="";var es=ge({name:"@fullcalendar/interaction",componentInteractions:[xm,Mm,_t,Pm],calendarInteractions:[Bm],elementDraggingImpl:Dt,optionRefiners:Um,listenerRefiners:Lm}),Wm=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';dn(Wm);class Vm extends H{constructor(){super(...arguments),this.state={textId:pe()}}render(){let{theme:e,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:s,dayDate:a,todayRange:l}=this.props,{textId:o}=this.state,c=Mr(a,l),u=r.listDayFormat?n.format(a,r.listDayFormat):"",f=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",h=Object.assign({date:n.toDate(a),view:i,textId:o,text:u,sideText:f,navLinkAttrs:Et(this.context,a),sideNavLinkAttrs:Et(this.context,a,"day",!1)},c);return g(te,{elTag:"tr",elClasses:["fc-list-day",...pn(c,e)],elAttrs:{"data-date":St(a)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Fm,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},d=>g("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},g(d,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function Fm(t){return g(U,null,t.text&&g("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&g("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const jm=L({hour:"numeric",minute:"2-digit",meridiem:"short"});class zm extends H{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:s,eventHeaderId:a,dateHeaderId:l}=e,o=r.eventTimeFormat||jm;return g(bn,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>Ym(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,u)=>g(U,null,Gm(i,o,n,s,l),g("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},g("span",{className:"fc-list-event-dot",style:{borderColor:u.borderColor||u.backgroundColor}})),g(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${l}`}})))}}function Ym(t,e){let n=Tr(t,e);return g("a",Object.assign({},n),t.eventRange.def.title)}function Gm(t,e,n,r,i){let{options:s}=n;if(s.displayEventTime!==!1){let a=t.eventRange.def,l=t.eventRange.instance,o=!1,c;if(a.allDay?o=!0:_d(t.eventRange.range)?t.isStart?c=ft(t,e,n,null,null,l.range.start,t.end):t.isEnd?c=ft(t,e,n,null,null,t.start,l.range.end):o=!0:c=ft(t,e,n),o){let u={text:n.options.allDayText,view:n.viewApi};return g(te,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:u,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:qm,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return g("td",{className:"fc-list-event-time"},c)}return null}function qm(t){return t.text}class Qm extends he{constructor(){super(...arguments),this.computeDateVars=x(Xm),this.eventStoreToSegs=x(this._eventStoreToSegs),this.state={timeHeaderId:pe(),eventHeaderId:pe(),dateHeaderIdRoot:pe()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return g(tn,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},g(Ta,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,r={text:e.noEventsText,view:n};return g(te,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:$m,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},i=>g(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:r,options:i}=this.context,{timeHeaderId:s,eventHeaderId:a,dateHeaderIdRoot:l}=this.state,o=Zm(e);return g(vn,{unit:"day"},(c,u)=>{let f=[];for(let h=0;h{e&&this.updateSize()}}render(){const{context:e,props:n,state:r}=this,{options:i}=e,{clientWidth:s,clientHeight:a}=r,l=r.monthHPadding||0,o=Math.min(s!=null?Math.floor(s/(i.multiMonthMinWidth+l)):1,i.multiMonthMaxColumns)||1,c=100/o+"%",u=s==null?null:s/o-l,f=s!=null&&o===1,h=this.splitDateProfileByMonth(e.dateProfileGenerator,n.dateProfile,e.dateEnv,f?!1:i.fixedWeekCount,i.showNonCurrentDates),d=this.buildMonthFormat(i.multiMonthTitleFormat,h),m=["fc-multimonth",f?"fc-multimonth-singlecol":"fc-multimonth-multicol",u!=null&&u<400?"fc-multimonth-compact":""];return g(tn,{elRef:this.scrollElRef,elClasses:m,viewSpec:e.viewSpec},h.map((b,v)=>{const E=$n(b.currentRange.start);return g(ep,Object.assign({},n,{key:E,isoDateStr:E,elRef:v===0?this.firstMonthElRef:void 0,titleFormat:d,dateProfile:b,width:c,tableWidth:u,clientWidth:s,clientHeight:a}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(e){oe(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const e=this.scrollElRef.current,n=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),n&&e&&this.state.monthHPadding==null&&this.setState({monthHPadding:e.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){const{currentDate:e}=this.props.dateProfile,n=this.scrollElRef.current,r=n.querySelector(`[data-date="${$n(e)}"]`);n.scrollTop=r.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const np=k(1,"month");function rp(t,e,n,r,i){const{start:s,end:a}=e.currentRange;let l=s;const o=[];for(;l.valueOf(){console.log(r.date)}});function n(){sr.get("api/general_vacation/generalvacation/").then(r=>{for(let i in r.data)r.data[i].map(s=>{let a=new Date(s.planned_date);e.events.push({description:"description for All Day Event",title:i,start:s.planned_date,end:new Date(a.setDate(a.getDate()+s.count_days)).toISOString().split("T")[0]})});console.log(r.data,"genvacation--------------------")})}return or(()=>{n()}),{calendarOptions:e}}};function dp(t,e,n,r,i,s){const a=Ne("full-calendar");return V(),de(a,{options:r.calendarOptions},null,8,["options"])}const fp=wt(up,[["render",dp]]);const hp={components:{NewsList:fc,CarouselList:_c,CarouselNumbers:Pc,CalendarFull:fp},setup(){const t=j([]);or(()=>{a()});const e=Wl();Vl();const n=null,r=ns(),i=[{status:"Работа",num:"57",img:"/media/newsimage/default.jpg"},{status:"Отпуск",num:"13",img:"/media/newsimage/numbers/vacation.jpg"},{status:"Болеют",num:"3",img:"/media/newsimage/numbers/med.jpg"},{status:"На море",num:"45",img:"/media/newsimage/numbers/vacation.jpg"},{status:"Дома",num:"1",img:"/media/newsimage/numbers/med.jpg"}],s=j([{status:"Всего",num:e.countvisitor.totalvisit,img:"/media/newsimage/numbers/calendar.jpg"},{status:"Сегодня",num:e.countvisitor.visittoday,img:"/media/newsimage/numbers/sept.jpg"},{status:"Уникальных",num:e.countvisitor.uniqtoday,img:"/media/newsimage/numbers/uni.jpg"}]);function a(){sr.get("api/feedback/feedbackdata/").then(l=>{console.log(l.data),t.value=l.data.results})}return{accountStore:r,stat:i,model:n,onlines:s,appStore:e,proba:a}}};function gp(t,e,n,r,i,s){const a=Ne("Carousel-list"),l=Ne("Calendar-full"),o=Ne("vue3-autocounter"),c=Ne("News-list");return V(),de(cr,{fluid:"",class:"d-flex mx-0"},{default:S(()=>[y(re,null,{default:S(()=>[y(z,{class:"d-flex flex-column",lg:"7"},{default:S(()=>[y(re,{class:"flex-grow-0"},{default:S(()=>[y(z,{class:"pr-0 pb-0"},{default:S(()=>[y(a)]),_:1})]),_:1}),y(re,null,{default:S(()=>[y(z,{class:"pr-0 pt-0 flex-column"},{default:S(()=>[y(X,{class:"h-100 bg-transparent pa-2 d-flex flex-column"},{default:S(()=>[y(re,{class:"d-flex"},{default:S(()=>[y(z,null,{default:S(()=>[y(l)]),_:1}),y(z,null,{default:S(()=>[y(l,{initial:"listYear"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),y(z,{class:"flex-column d-flex flex-grow-0 px-0",lg:"2"},{default:S(()=>[y(re,{class:"flex-grow-1 ma-0 mx-1"},{default:S(()=>[y(z,{class:"pt-0"},{default:S(()=>[y(X,{class:"h-100 flex-column"},{default:S(()=>[(V(!0),Ee(De,null,et(r.stat,u=>(V(),de(re,{key:u},{default:S(()=>[y(z,null,{default:S(()=>[y(X,{class:"ma-2 d-flex flex-column",height:"100",elevation:"0"},{default:S(()=>[y(X,{class:"h-100 text-center g text-numeral"},{default:S(()=>[y(gt,{class:"statstyle py-0 text-overline font-weight-bold"},{default:S(()=>[Q(ie(u.status),1)]),_:2},1024),y(mt,{class:"numstyle mt-2 py-0 font-weight-bold"},{default:S(()=>[y(o,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(u.num),duration:2},null,8,["endAmount"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024),y(Ht)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),y(re,{class:"flex-grow-0 ma-0 mx-1"},{default:S(()=>[y(z,{class:"py-0"},{default:S(()=>[y(X,{class:"h-100 flex-colmn"},{default:S(()=>[y(re,{class:"ma-3"},{default:S(()=>[(V(),Ee(De,null,et(6,u=>y(z,{key:u,lg:"6",class:"pa-1"},{default:S(()=>[y(se,{"prepend-icon":"mdi-wikipedia",block:"",variant:"outlined",class:"ma-1"},{default:S(()=>[Q(" Wiki ")]),_:1})]),_:2},1024)),64))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),y(z,{class:"d-flex flex-column justify-space-between px-0 py-2 pr-3 pb-0",lg:"3"},{default:S(()=>[y(X,{class:"h-100 bg-transparent",elevation:"0"},{default:S(()=>[r.accountStore.cod2user?(V(),de(c,{key:0})):rs("",!0)]),_:1})]),_:1})]),_:1})]),_:1})}const bp=wt(hp,[["render",gp]]);export{bp as default};