/*! FullCalendar Scheduler v1.5.0 Docs & License: http://fullcalendar.io/scheduler/ (c) 2016 Adam Shaw */ !function(e){"function"==typeof define&&define.amd?define(["jquery","moment","fullcalendar"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment"),require("fullcalendar")):e(jQuery,moment)}(function(e,t){var r,s,o,n,i,l,u,h,c,a,p,d,f,g,y,v,R,w,m,S,b,C,E,H,T,_,I,D,x,G,B,F,W,M,L,z,k,O,P,q,A,U,V,N,j,Y,Q,X,$,K,J,Z,ee,te,re,se,oe,ne,ie,le,ue,he,ce,ae,pe,de,fe,ge,ye,ve,Re,we,me,Se,be,Ce,Ee,He,Te,_e,Ie,De,xe,Ge,Be,Fe,We,Me,Le,ze,ke,Oe,Pe,qe,Ae,Ue,Ve,Ne,je,Ye=function(e,t){function r(){this.constructor=e}for(var s in t)Qe.call(t,s)&&(e[s]=t[s]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},Qe={}.hasOwnProperty,Xe=[].indexOf||function(e){for(var t=0,r=this.length;t td").filter(function(e,t){return t.rowSpan<=1})},a=function(t){function r(){r.__super__.constructor.apply(this,arguments),this.requestMovingEnd=ue(this.reportMovingEnd,500)}var s,o;return Ye(r,t),r.mixin(c),r.mixin(v),r.prototype.canvas=null,r.prototype.isScrolling=!1,r.prototype.isTouching=!1,r.prototype.isMoving=!1,r.prototype.isTouchScrollEnabled=!0,r.prototype.preventTouchScrollHandler=null,r.prototype.render=function(){return r.__super__.render.apply(this,arguments),this.canvas&&(this.canvas.render(),this.canvas.el.appendTo(this.scrollEl)),this.bindHandlers()},r.prototype.destroy=function(){return r.__super__.destroy.apply(this,arguments),this.unbindHandlers()},r.prototype.disableTouchScroll=function(){return this.isTouchScrollEnabled=!1,this.bindPreventTouchScroll()},r.prototype.enableTouchScroll=function(){if(this.isTouchScrollEnabled=!0,!this.isTouching)return this.unbindPreventTouchScroll()},r.prototype.bindPreventTouchScroll=function(){if(!this.preventTouchScrollHandler)return this.scrollEl.on("touchmove",this.preventTouchScrollHandler=d.preventDefault)},r.prototype.unbindPreventTouchScroll=function(){if(this.preventTouchScrollHandler)return this.scrollEl.off("touchmove",this.preventTouchScrollHandler),this.preventTouchScrollHandler=null},r.prototype.bindHandlers=function(){return this.listenTo(this.scrollEl,{scroll:this.reportScroll,touchstart:this.reportTouchStart,touchend:this.reportTouchEnd})},r.prototype.unbindHandlers=function(){return this.stopListeningTo(this.scrollEl)},r.prototype.reportScroll=function(){return this.isScrolling||this.reportScrollStart(),this.trigger("scroll"),this.isMoving=!0,this.requestMovingEnd()},r.prototype.reportScrollStart=function(){if(!this.isScrolling)return this.isScrolling=!0,this.trigger("scrollStart",this.isTouching)},r.prototype.requestMovingEnd=null,r.prototype.reportMovingEnd=function(){if(this.isMoving=!1,!this.isTouching)return this.reportScrollEnd()},r.prototype.reportScrollEnd=function(){if(this.isScrolling)return this.trigger("scrollEnd"),this.isScrolling=!1},r.prototype.reportTouchStart=function(){return this.isTouching=!0},r.prototype.reportTouchEnd=function(){if(this.isTouching&&(this.isTouching=!1,this.isTouchScrollEnabled&&this.unbindPreventTouchScroll(),!this.isMoving))return this.reportScrollEnd()},r.prototype.getScrollLeft=function(){var e,t,r;if(e=this.scrollEl.css("direction"),t=this.scrollEl[0],r=t.scrollLeft,"rtl"===e)switch(o){case"positive":r=r+t.clientWidth-t.scrollWidth;break;case"reverse":r=-r}return r},r.prototype.setScrollLeft=function(e){var t,r;if(t=this.scrollEl.css("direction"),r=this.scrollEl[0],"rtl"===t)switch(o){case"positive":e=e-r.clientWidth+r.scrollWidth;break;case"reverse":e=-e}return r.scrollLeft=e},r.prototype.getScrollFromLeft=function(){var e,t,r;if(e=this.scrollEl.css("direction"),t=this.scrollEl[0],r=t.scrollLeft,"rtl"===e)switch(o){case"negative":r=r-t.clientWidth+t.scrollWidth;break;case"reverse":r=-r-t.clientWidth+t.scrollWidth}return r},r.prototype.getNativeScrollLeft=function(){return this.scrollEl[0].scrollLeft},r.prototype.setNativeScrollLeft=function(e){return this.scrollEl[0].scrollLeft=e},o=null,s=function(){var t,r,s;return t=e('
A
').appendTo("body"),r=t[0],s=r.scrollLeft>0?"positive":(r.scrollLeft=1,t.scrollLeft>0?"reverse":"negative"),t.remove(),s},e(function(){return o=s()}),r}(d.Scroller),i=function(t){function r(){r.__super__.constructor.apply(this,arguments),"clipped-scroll"===this.overflowX&&(this.overflowX="scroll",this.isHScrollbarsClipped=!0),"clipped-scroll"===this.overflowY&&(this.overflowY="scroll",this.isVScrollbarsClipped=!0)}return Ye(r,t),r.prototype.isHScrollbarsClipped=!1,r.prototype.isVScrollbarsClipped=!1,r.prototype.renderEl=function(){var t;return t=r.__super__.renderEl.apply(this,arguments),e('
').append(t)},r.prototype.updateSize=function(){var e,t,r;return t=this.scrollEl,r=we(t),e={marginLeft:0,marginRight:0,marginTop:0,marginBottom:0},this.isHScrollbarsClipped&&(e.marginTop=-r.top,e.marginBottom=-r.bottom),this.isVScrollbarsClipped&&(e.marginLeft=-r.left,e.marginRight=-r.right),t.css(e),t.toggleClass("fc-no-scrollbars",(this.isHScrollbarsClipped||"hidden"===this.overflowX)&&(this.isVScrollbarsClipped||"hidden"===this.overflowY)&&!(r.top||r.bottom||r.left||r.right))},r.prototype.getScrollbarWidths=function(){var e;return e=we(this.scrollEl),this.isHScrollbarsClipped&&(e.top=0,e.bottom=0),this.isVScrollbarsClipped&&(e.left=0,e.right=0),e},r}(a),U=function(){function t(){this.gutters={}}return t.prototype.el=null,t.prototype.contentEl=null,t.prototype.bgEl=null,t.prototype.gutters=null,t.prototype.width=null,t.prototype.minWidth=null,t.prototype.render=function(){return this.el=e('
'),this.contentEl=this.el.find(".fc-content"),this.bgEl=this.el.find(".fc-bg")},t.prototype.setGutters=function(t){return t?e.extend(this.gutters,t):this.gutters={},this.updateSize()},t.prototype.setWidth=function(e){return this.width=e,this.updateSize()},t.prototype.setMinWidth=function(e){return this.minWidth=e,this.updateSize()},t.prototype.clearWidth=function(){return this.width=null,this.minWidth=null,this.updateSize()},t.prototype.updateSize=function(){var e;return e=this.gutters,this.el.toggleClass("fc-gutter-left",Boolean(e.left)).toggleClass("fc-gutter-right",Boolean(e.right)).toggleClass("fc-gutter-top",Boolean(e.top)).toggleClass("fc-gutter-bottom",Boolean(e.bottom)).css({paddingLeft:e.left||"",paddingRight:e.right||"",paddingTop:e.top||"",paddingBottom:e.bottom||"",width:null!=this.width?this.width+(e.left||0)+(e.right||0):"",minWidth:null!=this.minWidth?this.minWidth+(e.left||0)+(e.right||0):""}),this.bgEl.css({left:e.left||"",right:e.right||"",top:e.top||"",bottom:e.bottom||""})},t}(),A=function(){function e(e,t){var r,s,o,n;for(this.axis=e,this.scrollers=t,o=this.scrollers,r=0,s=o.length;r=n&&(r="center"===this.el.css("text-align"),s=!0),t.isVFollowing&&ve(e)-ve(i)>=n&&(o=!0),this.isHFollowing=s,this.isVFollowing=o,this.isCentered=r},e.prototype.updatePosition=function(){return this.computePosition(),this.assignPosition()},e.prototype.resetPosition=function(){return this.el.css({top:"",left:""})},e.prototype.computePosition=function(){var e,t,r,s,o,n,i,l;return i=this.follower.viewportRect,r=this.parentRect,e=this.containerRect,l=Ce(i,r),s=null,t=!1,l&&(s=ne(this.naturalRect),n=Ce(s,r),(this.isCentered&&!Ae(i,r)||n&&!Ae(i,n))&&(t=!0,this.isHFollowing&&(this.isCentered?(o=Re(s),s.left=(l.left+l.right)/2-o/2,s.right=s.left+o):me(s,i)||(t=!1),me(s,e)&&(t=!1)),this.isVFollowing&&(je(s,i)||(t=!1),je(s,e)&&(t=!1)),Ae(i,s)||(t=!1))),this.rect=s,this.doAbsolute=t},e.prototype.assignPosition=function(){var e,t;if(this.isEnabled)return this.rect?this.doAbsolute&&!this.follower.isForcedRelative?(this.absolutize(),this.absoluteEl.css({top:this.rect.top-this.follower.viewportRect.top+this.follower.scrollbarWidths.top,left:this.rect.left-this.follower.viewportRect.left+this.follower.scrollbarWidths.left,width:this.isBlock?this.naturalWidth:""})):(t=this.rect.top-this.naturalRect.top,e=this.rect.left-this.naturalRect.left,this.unabsolutize(),this.el.toggleClass("fc-following",Boolean(t||e)).css({top:t,left:e})):this.unabsolutize()},e.prototype.absolutize=function(){if(!this.isAbsolute)return this.absoluteEl||(this.absoluteEl=this.buildAbsoluteEl()),this.absoluteEl.appendTo(this.follower.scroller.el),this.el.css("visibility","hidden"),this.isAbsolute=!0},e.prototype.unabsolutize=function(){if(this.isAbsolute)return this.absoluteEl.detach(),this.el.css("visibility",""),this.isAbsolute=!1},e.prototype.buildAbsoluteEl=function(){var e;return e=this.el.clone().addClass("fc-following"),e.css({position:"absolute","z-index":1e3,"font-weight":this.el.css("font-weight"),"font-size":this.el.css("font-size"),"font-family":this.el.css("font-family"),"text-decoration":this.el.css("text-decoration"),color:this.el.css("color"),"padding-top":this.el.css("padding-top"),"padding-bottom":this.el.css("padding-bottom"),"padding-left":this.el.css("padding-left"),"padding-right":this.el.css("padding-right")}),this.follower.allowPointerEvents||e.css("pointer-events","none"),e},e}(),ne=function(e){return{left:e.left,right:e.right,top:e.top,bottom:e.bottom}},Re=function(e){return e.right-e.left},ve=function(e){return e.bottom-e.top},Ae=function(e,t){return Ue(e,t)&&Ve(e,t)},Ue=function(e,t){return t.left>=e.left&&t.right<=e.right},Ve=function(e,t){return t.top>=e.top&&t.bottom<=e.bottom},me=function(e,t){return e.leftt.right&&(e.left=t.right-Re(e),e.right=t.right,!0)},je=function(e,t){return e.topt.bottom&&(e.top=t.bottom-ve(e),e.bottom=t.bottom,!0)},_e=function(e,t){return{left:Math.min(e.left,t.left),right:Math.max(e.right,t.right),top:Math.min(e.top,t.top),bottom:Math.max(e.bottom,t.bottom)}},o=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return Ye(r,t),r.prototype.resourceManager=null,r.prototype.initialize=function(){return this.resourceManager=new x(this)},r.prototype.instantiateView=function(e){var t,r;return t=this.getViewSpec(e),r=t["class"],this.options.resources&&t.options.resources!==!1&&(t.queryResourceClass?r=t.queryResourceClass(t)||r:t.resourceClass&&(r=t.resourceClass)),new r(this,e,t.options,t.duration)},r.prototype.getResources=function(){return Array.prototype.slice.call(this.resourceManager.topLevelResources)},r.prototype.addResource=function(e,t){var r;null==t&&(t=!1),r=this.resourceManager.addResource(e),t&&this.view.scrollToResource&&r.then(function(e){return function(t){return e.view.scrollToResource(t)}}(this))},r.prototype.removeResource=function(e){return this.resourceManager.removeResource(e)},r.prototype.refetchResources=function(){this.resourceManager.fetchResources()},r.prototype.rerenderResources=function(){this.resourceManager.resetCurrentResources()},r.prototype.isSpanAllowed=function(e,t){var s,o;return!("object"==typeof t&&(s=this.getEventResourceIds(t),s.length&&!(e.resourceId&&(o=e.resourceId,Xe.call(s,o)>=0))))&&r.__super__.isSpanAllowed.apply(this,arguments)},r.prototype.getPeerEvents=function(e,t){var s,o,n,i,l,u,h,c,a,p,d,f,g,y;for(f=r.__super__.getPeerEvents.apply(this,arguments),p=e.resourceId?[e.resourceId]:t?this.getEventResourceIds(t):[],s=[],n=0,u=f.length;n1?this.datesAboveResources?this.renderHeadDateAndResourceHtml():this.renderHeadResourceAndDateHtml():this.renderHeadResourceHtml():d.DayTableMixin.renderHeadTrHtml.call(this)},renderHeadResourceHtml:function(){var e,t,r,s,o;for(o=[],r=this.flattenedResources,e=0,t=r.length;e1?' colspan="'+r+'"':"")+">"+Se(this.view.getResourceText(e))+""},renderHeadResourceDateCellHtml:function(e,t,r){return this.renderHeadDateCellHtml(e,r,'data-resource-id="'+t.id+'"')},processHeadResourceEls:function(t){return t.find(".fc-resource-cell").each(function(t){return function(r,s){var o;return o=t.datesAboveResources?t.getColResource(r):t.flattenedResources[t.isRTL?t.flattenedResources.length-1-r:r],t.view.publiclyTrigger("resourceRender",o,o,e(s),e())}}(this))},renderBgCellsHtml:function(e){var t,r,s,o,n,i;if(this.resourceCnt){for(s=[],t=o=0,n=this.colCnt;o"+e.join("")+this[t]()+""):""+this[t]()+e.join("")+""},computePerResourceBusinessHourSegs:function(e){var t,r,s,o,n,i,l,u,h,c,a,p,d,f,g;if(this.flattenedResources){for(r=!1,p=this.flattenedResources,i=0,h=p.length;i '},r.prototype.renderTimeGridSkeleton=function(){return this.timeGrid.setElement(this.el.find("tbody .fc-time-area")),this.timeGrid.headEl=this.el.find("thead .fc-time-area"),this.timeGrid.renderSkeleton(),this.isScrolled=!1,this.timeGrid.bodyScroller.on("scroll",Pe(this,"handleBodyScroll"))},r.prototype.handleBodyScroll=function(e,t){if(e){if(!this.isScrolled)return this.isScrolled=!0,this.el.addClass("fc-scrolled")}else if(this.isScrolled)return this.isScrolled=!1,this.el.removeClass("fc-scrolled")},r.prototype.unrenderSkeleton=function(){return this.timeGrid.removeElement(),this.handleBodyScroll(0),r.__super__.unrenderSkeleton.apply(this,arguments)},r.prototype.renderDates=function(){return this.timeGrid.renderDates()},r.prototype.unrenderDates=function(){return this.timeGrid.unrenderDates()},r.prototype.renderBusinessHours=function(){return this.timeGrid.renderBusinessHours()},r.prototype.unrenderBusinessHours=function(){return this.timeGrid.unrenderBusinessHours()},r.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},r.prototype.renderNowIndicator=function(e){return this.timeGrid.renderNowIndicator(e)},r.prototype.unrenderNowIndicator=function(){return this.timeGrid.unrenderNowIndicator()},r.prototype.prepareHits=function(){return this.timeGrid.prepareHits()},r.prototype.releaseHits=function(){return this.timeGrid.releaseHits()},r.prototype.queryHit=function(e,t){return this.timeGrid.queryHit(e,t)},r.prototype.getHitSpan=function(e){return this.timeGrid.getHitSpan(e)},r.prototype.getHitEl=function(e){return this.timeGrid.getHitEl(e)},r.prototype.updateWidth=function(){return this.timeGrid.updateWidth()},r.prototype.setHeight=function(e,t){var r;return r=t?"auto":e-this.timeGrid.headHeight()-this.queryMiscHeight(),this.timeGrid.bodyScroller.setHeight(r)},r.prototype.queryMiscHeight=function(){return this.el.outerHeight()-this.timeGrid.headScroller.el.outerHeight()-this.timeGrid.bodyScroller.el.outerHeight()},r.prototype.computeInitialScroll=function(){var e,r;return e=0,this.timeGrid.isTimeScale&&(r=this.opt("scrollTime"),r&&(r=t.duration(r),e=this.timeGrid.dateToCoord(this.start.clone().time(r)))),{left:e,top:0}},r.prototype.queryScroll=function(){return{left:this.timeGrid.bodyScroller.getScrollLeft(),top:this.timeGrid.bodyScroller.getScrollTop()}},r.prototype.setScroll=function(e){return this.timeGrid.headScroller.setScrollLeft(e.left),this.timeGrid.bodyScroller.setScrollLeft(e.left),this.timeGrid.bodyScroller.setScrollTop(e.top)},r.prototype.renderEvents=function(e){return this.timeGrid.renderEvents(e),this.updateWidth()},r.prototype.unrenderEvents=function(){return this.timeGrid.unrenderEvents(),this.updateWidth()},r.prototype.renderDrag=function(e,t){return this.timeGrid.renderDrag(e,t)},r.prototype.unrenderDrag=function(){return this.timeGrid.unrenderDrag()},r.prototype.getEventSegs=function(){return this.timeGrid.getEventSegs()},r.prototype.renderSelection=function(e){return this.timeGrid.renderSelection(e)},r.prototype.unrenderSelection=function(){return this.timeGrid.unrenderSelection()},r}(K),le=d.cssToStr,j=function(r){function s(){var e;s.__super__.constructor.apply(this,arguments),this.initScaleProps(),this.minTime=t.duration(this.opt("minTime")||"00:00"),this.maxTime=t.duration(this.opt("maxTime")||"24:00"),this.timeWindowMs=this.maxTime-this.minTime,this.snapDuration=(e=this.opt("snapDuration"))?t.duration(e):this.slotDuration,this.minResizeDuration=this.snapDuration,this.snapsPerSlot=ce(this.slotDuration,this.snapDuration),this.slotWidth=this.opt("slotWidth")}return Ye(s,r),s.prototype.slotDates=null,s.prototype.slotCnt=null,s.prototype.snapCnt=null,s.prototype.snapsPerSlot=null,s.prototype.snapDiffToIndex=null,s.prototype.snapIndexToDiff=null,s.prototype.headEl=null,s.prototype.slatContainerEl=null,s.prototype.slatEls=null,s.prototype.containerCoordCache=null,s.prototype.slatCoordCache=null,s.prototype.slatInnerCoordCache=null,s.prototype.headScroller=null,s.prototype.bodyScroller=null,s.prototype.joiner=null,s.prototype.follower=null,s.prototype.eventTitleFollower=null,s.prototype.minTime=null,s.prototype.maxTime=null,s.prototype.timeWindowMs=null,s.prototype.slotDuration=null,s.prototype.snapDuration=null,s.prototype.duration=null,s.prototype.labelInterval=null,s.prototype.headerFormats=null,s.prototype.isTimeScale=null,s.prototype.largeUnit=null,s.prototype.emphasizeWeeks=!1,s.prototype.titleFollower=null,s.prototype.segContainerEl=null,s.prototype.segContainerHeight=null,s.prototype.bgSegContainerEl=null,s.prototype.helperEls=null,s.prototype.innerEl=null,s.prototype.opt=function(e){return this.view.opt(e)},s.prototype.isValidDate=function(e){var t;return!this.view.isHiddenDay(e)&&(!this.isTimeScale||(t=e.time()-this.minTime,t=(t%864e5+864e5)%864e5,t').appendTo(this.bodyScroller.canvas.bgEl),this.segContainerEl=e('
').appendTo(this.bodyScroller.canvas.contentEl),this.bgSegContainerEl=this.bodyScroller.canvas.bgEl,this.containerCoordCache=new l({els:this.bodyScroller.canvas.el,isHorizontal:!0,isVertical:!0}),this.joiner=new A("horizontal",[this.headScroller,this.bodyScroller]),this.follower=new P(this.headScroller,(!0)),this.eventTitleFollower=new P(this.bodyScroller),this.eventTitleFollower.minTravel=50,this.isRTL?this.eventTitleFollower.containOnNaturalRight=!0:this.eventTitleFollower.containOnNaturalLeft=!0,s.__super__.renderSkeleton.apply(this,arguments)},s.prototype.headColEls=null,s.prototype.slatColEls=null,s.prototype.renderDates=function(){var e,t,r,s,o;for(this.headScroller.canvas.contentEl.html(this.renderHeadHtml()),this.headColEls=this.headScroller.canvas.contentEl.find("col"),this.slatContainerEl.html(this.renderSlatHtml()),this.slatColEls=this.slatContainerEl.find("col"),this.slatEls=this.slatContainerEl.find("td"),this.slatCoordCache=new l({els:this.slatEls,isHorizontal:!0}),this.slatInnerCoordCache=new l({els:this.slatEls.find("> div"),isHorizontal:!0,offsetParent:this.bodyScroller.canvas.el}),o=this.slotDates,t=r=0,s=o.length;r1&&Bthis.slotDuration,c=1===this.slotDuration.as("days"),i="",i+="",y=0,S=z.length;y";for(i+="",i+="",l=T=0,b=t.length;T",_=0,C=F.length;_1?' colspan="'+e.colspan+'"':"")+'>
'+e.spanHtml+"
";i+=""}for(i+="
",M="",M+="",D=0,E=L.length;D";for(M+="",M+="",l=G=0,H=L.length;G
'},s.prototype.businessHourSegs=null,s.prototype.renderBusinessHours=function(){var e;if(!this.largeUnit)return e=this.businessHourSegs=this.buildBusinessHourSegs(!this.isTimeScale),this.renderFill("businessHours",e,"bgevent")},s.prototype.unrenderBusinessHours=function(){return this.unrenderFill("businessHours")},s.prototype.nowIndicatorEls=null,s.prototype.getNowIndicatorUnit=function(){if(this.isTimeScale)return re(this.slotDuration)},s.prototype.renderNowIndicator=function(t){var r,s,o;return o=[],t=this.normalizeGridDate(t),t>=this.start&&t
").css(s).appendTo(this.headScroller.canvas.el)[0]),o.push(e("
").css(s).appendTo(this.bodyScroller.canvas.el)[0])),this.nowIndicatorEls=e(o)},s.prototype.unrenderNowIndicator=function(){if(this.nowIndicatorEls)return this.nowIndicatorEls.remove(),this.nowIndicatorEls=null},s.prototype.explicitSlotWidth=null,s.prototype.defaultSlotWidth=null,s.prototype.updateWidth=function(){var e,t,r,s,o,n;if(s=this.headColEls,s?(n=Math.round(this.slotWidth||(this.slotWidth=this.computeSlotWidth())),r=n*this.slotDates.length,t="",o=n,e=this.bodyScroller.getClientWidth(),e>r&&(t=e,r="",o=Math.floor(e/this.slotDates.length))):(r="",t=""),this.headScroller.canvas.setWidth(r),this.headScroller.canvas.setMinWidth(t),this.bodyScroller.canvas.setWidth(r),this.bodyScroller.canvas.setMinWidth(t),s&&this.headColEls.slice(0,-1).add(this.slatColEls.slice(0,-1)).width(o),this.headScroller.updateSize(),this.bodyScroller.updateSize(),this.joiner.update(),s&&(this.buildCoords(),this.updateSegPositions(),this.view.updateNowIndicator()),this.follower&&this.follower.update(),this.eventTitleFollower)return this.eventTitleFollower.update()},s.prototype.computeSlotWidth=function(){var t,r,s,o,n,i;return s=0,r=this.headEl.find("tr:last-child th .fc-cell-text"),r.each(function(t,r){var o;return o=e(r).outerWidth(),s=Math.max(s,o)}),t=s+1,i=ce(this.labelInterval,this.slotDuration),n=Math.ceil(t/i),o=this.headColEls.eq(0).css("min-width"),o&&(o=parseInt(o,10),o&&(n=Math.max(n,o))),n},s.prototype.buildCoords=function(){return this.containerCoordCache.build(),this.slatCoordCache.build(),this.slatInnerCoordCache.build()},s.prototype.computeDateSnapCoverage=function(e){var t,r,s;return r=ae(this.start,e,this.snapDuration),r<0?0:r>=this.snapDiffToIndex.length?this.snapCnt:(s=Math.floor(r),t=this.snapDiffToIndex[s],He(t)?t+=r-s:t=Math.ceil(t),t)},s.prototype.dateToCoord=function(e){var t,r,s,o,n;return n=this.computeDateSnapCoverage(e),s=n/this.snapsPerSlot,o=Math.floor(s),o=Math.min(o,this.slotCnt-1),r=s-o,t=this.slatInnerCoordCache,this.isRTL?t.getRightPosition(o)-t.getWidth(o)*r-this.containerCoordCache.getWidth(0):t.getLeftPosition(o)+t.getWidth(o)*r},s.prototype.rangeToCoords=function(e){return this.isRTL?{right:this.dateToCoord(e.start),left:this.dateToCoord(e.end)}:{left:this.dateToCoord(e.start),right:this.dateToCoord(e.end)}},s.prototype.headHeight=function(){var e;return e=this.headScroller.canvas.contentEl.find("table"),e.height.apply(e,arguments)},s.prototype.updateSegPositions=function(){var e,t,r,s,o;for(o=(this.segs||[]).concat(this.businessHourSegs||[]),t=0,r=o.length;t
'+(l?''+Se(l)+"":"")+''+(s.title?Se(s.title):" ")+'
'+(i?'
':"")+(n?'
':"")+""},s.prototype.updateSegFollowers=function(e){var t,r,s,o,n;if(this.eventTitleFollower){for(o=[],t=0,r=e.length;t').appendTo(s.innerEl),i.push(n[0]),f=0,d=m.length;f').appendTo(r.bgSegContainerEl),l=0,u=s.length;lt.left},S=18,w=6,R=200,m=1e3,u={months:1},O=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}],j.prototype.initScaleProps=function(){var t,r,s;return this.labelInterval=this.queryDurationOption("slotLabelInterval"),this.slotDuration=this.queryDurationOption("slotDuration"),this.ensureGridDuration(),this.validateLabelAndSlot(),this.ensureLabelInterval(),this.ensureSlotDuration(),t=this.opt("slotLabelFormat"),s=e.type(t),this.headerFormats="array"===s?t:"string"===s?[t]:this.computeHeaderFormats(),this.isTimeScale=pe(this.slotDuration),this.largeUnit=this.isTimeScale?void 0:(r=re(this.slotDuration),/year|month|week/.test(r)?r:void 0),this.emphasizeWeeks=1===this.slotDuration.as("days")&&this.duration.as("weeks")>=2&&!this.opt("businessHours")},j.prototype.queryDurationOption=function(e){var r,s;if(s=this.opt(e),null!=s&&(r=t.duration(s),+r))return r},j.prototype.validateLabelAndSlot=function(){var e,t,r;if(this.labelInterval&&(e=ce(this.duration,this.labelInterval),e>m&&(d.warn("slotLabelInterval results in too many cells"),this.labelInterval=null)),this.slotDuration&&(t=ce(this.duration,this.slotDuration),t>m&&(d.warn("slotDuration results in too many cells"),this.slotDuration=null)),this.labelInterval&&this.slotDuration&&(r=ce(this.labelInterval,this.slotDuration),!He(r)||r<1))return d.warn("slotLabelInterval must be a multiple of slotDuration"),this.slotDuration=null},j.prototype.ensureGridDuration=function(){var e,r,s,o,n;if(e=this.duration,!e){if(e=this.view.intervalDuration,!e)if(this.labelInterval||this.slotDuration)for(n=this.ensureLabelInterval(),s=O.length-1;s>=0&&(r=O[s],e=t.duration(r),o=ce(e,n),!(o>=S));s+=-1);else e=t.duration(u);this.duration=e}return e},j.prototype.ensureLabelInterval=function(){var e,r,s,o,n,i,l,u,h;if(n=this.labelInterval,!n){if(this.duration||this.slotDuration||this.ensureGridDuration(),this.slotDuration){for(r=0,i=O.length;r=S));s++);this.labelInterval=n}return n},j.prototype.ensureSlotDuration=function(){var e,r,s,o,n,i,l,u;if(i=this.slotDuration,!i){for(s=this.ensureLabelInterval(),r=0,o=O.length;r1&&l<=w){i=u;break}i&&this.duration&&(n=ce(this.duration,i),n>R&&(i=null)),i||(i=s),this.slotDuration=i}return i},j.prototype.computeHeaderFormats=function(){var e,t,r,s,o,n,i,l;switch(i=this.view,s=this.duration,o=this.labelInterval,n=re(o),l=this.opt("weekNumbers"),e=t=r=null,"week"!==n||l||(n="day"),n){case"year":e="YYYY";break;case"month":s.asYears()>1&&(e="YYYY"),t="MMM";break;case"week":s.asYears()>1&&(e="YYYY"),t=this.opt("shortWeekFormat");break;case"day":s.asYears()>1?e=this.opt("monthYearFormat"):s.asMonths()>1&&(e="MMMM"),l&&(t=this.opt("weekFormat")),r="dd D";break;case"hour":l&&(e=this.opt("weekFormat")),s.asDays()>1&&(t=this.opt("dayOfMonthFormat")),r=this.opt("smallTimeFormat");break;case"minute":o.asMinutes()/60>=w?(e=this.opt("hourFormat"),t="[:]mm"):e=this.opt("mediumTimeFormat");break;case"second":o.asSeconds()/60>=w?(e="LT",t="[:]ss"):e="LTS";break;case"millisecond":e="LTS",t="[.]SSS"}return[].concat(e||[],t||[],r||[])},d.views.timeline={"class":Y,defaults:{eventResizableFromStart:!0}},d.views.timelineDay={type:"timeline",duration:{days:1}},d.views.timelineWeek={type:"timeline",duration:{weeks:1}},d.views.timelineMonth={type:"timeline",duration:{months:1}},d.views.timelineYear={type:"timeline",duration:{years:1}},M=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return Ye(r,t),r.mixin(L),r.prototype.canRenderSpecificResources=!0,r.prototype.resourceGrid=null,r.prototype.tbodyHash=null,r.prototype.joiner=null,r.prototype.dividerEls=null,r.prototype.superHeaderText=null,r.prototype.isVGrouping=null,r.prototype.isHGrouping=null,r.prototype.groupSpecs=null,r.prototype.colSpecs=null,r.prototype.orderSpecs=null,r.prototype.rowHierarchy=null,r.prototype.resourceRowHash=null,r.prototype.nestingCnt=0,r.prototype.isNesting=null,r.prototype.dividerWidth=null,r.prototype.initialize=function(){return r.__super__.initialize.apply(this,arguments),this.processResourceOptions(),this.resourceGrid=new V(this),this.rowHierarchy=new k(this),this.resourceRowHash={}},r.prototype.instantiateGrid=function(){return new W(this)},r.prototype.processResourceOptions=function(){var e,t,r,s,o,n,i,l,u,h,c,a,p,d,f,g,y,v,R,w,m,S;for(e=this.opt("resourceColumns")||[],f=this.opt("resourceLabelText"),s="Resources",S=null,e.length?S=f:e.push({labelText:f||s,text:this.getResourceTextFunc()}),w=[],o=[],i=[],c=!1,h=!1,a=0,g=e.length;a
'},r.prototype.renderResourceGridSkeleton=function(){return this.resourceGrid.el=this.el.find("tbody .fc-resource-area"),this.resourceGrid.headEl=this.el.find("thead .fc-resource-area"),this.resourceGrid.renderSkeleton()},r.prototype.initDividerMoving=function(){var e;return this.dividerEls=this.el.find(".fc-divider"),this.dividerWidth=null!=(e=this.opt("resourceAreaWidth"))?e:this.resourceGrid.tableWidth,null!=this.dividerWidth&&this.positionDivider(this.dividerWidth),this.dividerEls.on("mousedown",function(e){return function(t){return e.dividerMousedown(t)}}(this))},r.prototype.dividerMousedown=function(e){var t,r,s,o,n;return r=this.opt("isRTL"),o=30,s=this.el.width()-30,n=this.getNaturalDividerWidth(),t=new h({dragStart:function(e){return function(){return e.dividerEls.addClass("fc-active")}}(this),drag:function(e){return function(t,i){var l;return l=r?n-t:n+t,l=Math.max(l,o),l=Math.min(l,s),e.dividerWidth=l,e.positionDivider(l),e.updateWidth()}}(this),dragEnd:function(e){return function(){return e.dividerEls.removeClass("fc-active")}}(this)}),t.startInteraction(e)},r.prototype.getNaturalDividerWidth=function(){return this.el.find(".fc-resource-area").width()},r.prototype.positionDivider=function(e){return this.el.find(".fc-resource-area").width(e)},r.prototype.renderEvents=function(e){return this.timeGrid.renderEvents(e),this.syncRowHeights(),this.updateWidth()},r.prototype.unrenderEvents=function(){return this.timeGrid.unrenderEvents(),this.syncRowHeights(),this.updateWidth()},r.prototype.updateWidth=function(){if(r.__super__.updateWidth.apply(this,arguments),this.resourceGrid.updateWidth(),this.joiner.update(),this.cellFollower)return this.cellFollower.update()},r.prototype.updateHeight=function(e){if(r.__super__.updateHeight.apply(this,arguments),e)return this.syncRowHeights()},r.prototype.setHeight=function(e,t){var r,s;return s=this.syncHeadHeights(),r=t?"auto":e-s-this.queryMiscHeight(),this.timeGrid.bodyScroller.setHeight(r),this.resourceGrid.bodyScroller.setHeight(r)},r.prototype.queryMiscHeight=function(){return this.el.outerHeight()-Math.max(this.resourceGrid.headScroller.el.outerHeight(),this.timeGrid.headScroller.el.outerHeight())-Math.max(this.resourceGrid.bodyScroller.el.outerHeight(),this.timeGrid.bodyScroller.el.outerHeight())},r.prototype.syncHeadHeights=function(){var e;return this.resourceGrid.headHeight("auto"),this.timeGrid.headHeight("auto"),e=Math.max(this.resourceGrid.headHeight(),this.timeGrid.headHeight()),this.resourceGrid.headHeight(e),this.timeGrid.headHeight(e),e},r.prototype.renderResources=function(e){var t,r,s;for(this.batchRows(),t=0,r=e.length;t0)return s;return null},r.prototype.compareResources=function(e,t){return te(e,t,this.orderSpecs)},r.prototype.ensureResourceGroup=function(e,t,r){var s,o,n,i,l,u,h,c,a,p,d;if(n=(e.resource||{})[r.field],o=null,r.order)for(a=t.children,i=l=0,h=a.length;l0)break}else for(p=t.children,i=u=0,c=p.length;u1))return this.syncRowHeights(e,!0)},r.prototype.getVisibleRows=function(){var e,t,r,s,o;for(r=this.rowHierarchy.getRows(),s=[],e=0,t=r.length;eu)){l.resourceId=i.resource.id,l.bottom=t-u;break}return l},r.prototype.setScroll=function(e){var t,s,o,n;return e.resourceId&&(n=this.getResourceRow(e.resourceId),n&&(t=n.getTr("event"),t&&(o=this.timeGrid.bodyScroller.canvas.el.offset().top,s=t.offset().top+t.outerHeight(),e.top=s-e.bottom-o))),r.__super__.setScroll.call(this,e),this.resourceGrid.bodyScroller.setScrollTop(e.top)},r.prototype.scrollToResource=function(e){var t,r,s,o;if(s=this.getResourceRow(e.id),s&&(t=s.getTr("event")))return r=this.timeGrid.bodyScroller.canvas.el.offset().top,o=t.offset().top-r,this.timeGrid.bodyScroller.setScrollTop(o),this.resourceGrid.bodyScroller.setScrollTop(o)},r}(Y),W=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return Ye(r,t),r.mixin(D),r.prototype.eventRows=null,r.prototype.shownEventRows=null,r.prototype.tbodyEl=null,r.prototype.rowCoordCache=null,r.prototype.spanToSegs=function(e){var t,s,o,n,i,l;if(l=r.__super__.spanToSegs.apply(this,arguments),t=this.view.calendar,n=e.resourceId)for(s=0,o=l.length;s
').appendTo(this.bodyScroller.canvas.contentEl),this.tbodyEl=t.find("tbody")},r.prototype.renderFgSegs=function(e){var t,r,s,o,n,i,l;for(e=this.renderFgSegEls(e),i=this.view.pairSegsWithRows(e),l=[],s=0,o=i.length;s'+this.colGroupHtml+"
"),this.tbodyEl=this.bodyScroller.canvas.contentEl.find("tbody"),this.el.append(this.bodyScroller.el),this.joiner=new A("horizontal",[this.headScroller,this.bodyScroller]),this.headTable=this.headEl.find("table"),this.headColEls=this.headEl.find("col"),this.headCellEls=this.headScroller.canvas.contentEl.find("tr:last-child th"),this.bodyColEls=this.el.find("col"),this.bodyTable=this.el.find("table"),this.colMinWidths=this.computeColMinWidths(),this.applyColWidths(),this.initColResizing()},t.prototype.renderHeadHtml=function(){var e,t,r,s,o,n,i,l,u,h,c;for(t=this.view.colSpecs,r="",e="",i=0,u=t.length;i':"";for(e+="",this.colGroupHtml=e,r+=e,r+="",this.view.superHeaderText&&(r+='"),r+="",n=!0,s=l=0,h=t.length;l
'+(c.isMain?'':"")+''+Se(c.labelText||"")+"
"+(o?"":'
')+"
";return r+="
",r+="
'+Se(this.view.superHeaderText)+"
"},t.prototype.givenColWidths=null,t.prototype.colWidths=null,t.prototype.colMinWidths=null,t.prototype.tableWidth=null,t.prototype.tableMinWidth=null,t.prototype.initColResizing=function(){return this.headEl.find("th .fc-col-resizer").each(function(t){return function(r,s){return s=e(s),s.on("mousedown",function(e){return t.colResizeMousedown(r,e,s)})}}(this))},t.prototype.colResizeMousedown=function(e,t,s){var o,n,i,l;return o=this.colWidths=this.queryColWidths(),o.pop(),o.push(null),l=o[e],i=Math.min(this.colMinWidths[e],r),n=new h({dragStart:function(e){return function(){return s.addClass("fc-active")}}(this),drag:function(t){return function(r,s){var n;return n=l+(t.isRTL?-r:r),n=Math.max(n,i),o[e]=n,t.applyColWidths()}}(this),dragEnd:function(e){return function(){return s.removeClass("fc-active")}}(this)}),n.startInteraction(t)},t.prototype.applyColWidths=function(){var e,t,r,s,o,n,i,l,u,h,c,a,p,d,f,g,y;for(r=this.colMinWidths,o=this.colWidths,e=!0,t=!1,y=0,h=0,p=o.length;h0?r[t-1]:null,t"),this.trHash[l]=n,i.push(n[0]),s="render"+ee(l)+"Content",this[s]&&this[s](n),t?t.trHash[l].after(n):o.prepend(n)}return this.trs=e(i).on("click",".fc-expander",Pe(this,"toggleExpanded")),this.isRendered=!0},t.prototype.unrender=function(){var t,r,s,o;if(this.isRendered){t=this.trHash;for(s in t)r=t[s],o="unrender"+ee(s)+"Content",this[o]&&this[o](r);return this.trHash={},this.trs.remove(),this.trs=e(),this.isRendered=!1,this.isShown=!1,this.hidden()}},t.prototype.recursivelyUnrender=function(){var e,t,r,s,o;for(this.unrender(),s=this.children,o=[],t=0,r=s.length;t div:not(.fc-cell-content):first"),t=Math.max(s.height(),t)}}(this)),t},t.prototype.setTrInnerHeight=function(t){return e.each(this.trHash,function(e){return function(e,r){return ye(r).find("> div:not(.fc-cell-content):first").height(t)}}(this))},t.prototype.shown=function(){if(this.hasOwnRow)return this.rowShown(this)},t.prototype.hidden=function(){if(this.hasOwnRow)return this.rowHidden(this)},t.prototype.rowShown=function(e){return(this.parent||this.view).rowShown(e)},t.prototype.rowHidden=function(e){return(this.parent||this.view).rowHidden(e)},t.prototype.added=function(){if(this.hasOwnRow)return this.rowAdded(this)},t.prototype.removed=function(){if(this.hasOwnRow)return this.rowRemoved(this)},t.prototype.rowAdded=function(e){return(this.parent||this.view).rowAdded(e)},t.prototype.rowRemoved=function(e){return(this.parent||this.view).rowRemoved(e)},t}(),z=function(t){function r(e,t,s){this.groupSpec=t,this.groupValue=s,r.__super__.constructor.apply(this,arguments)}return Ye(r,t),r.prototype.groupSpec=null,r.prototype.groupValue=null,r.prototype.rowRemoved=function(e){if(r.__super__.rowRemoved.apply(this,arguments),e!==this&&!this.children.length)return this.remove()},r.prototype.renderGroupContentEl=function(){var t,r;return t=e('
').append(this.renderGroupTextEl()),r=this.groupSpec.render,"function"==typeof r&&(t=r(t,this.groupValue)||t),t},r.prototype.renderGroupTextEl=function(){var t,r;return r=this.groupValue||"",t=this.groupSpec.text,"function"==typeof t&&(r=t(r)||r),e('').text(r)},r}(k),g=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return Ye(r,t),r.prototype.hasOwnRow=!0,r.prototype.renderSpreadsheetContent=function(t){var r;return r=this.renderGroupContentEl(),r.prepend(''),e('').attr("colspan",this.view.colSpecs.length).append(e("
").append(r)).appendTo(t)},r.prototype.renderEventContent=function(e){return e.append('
')},r}(z),X=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return Ye(r,t),r.prototype.rowspan=0,r.prototype.leadingTr=null,r.prototype.groupTd=null,r.prototype.rowShown=function(e){ return this.rowspan+=1,this.renderRowspan(),r.__super__.rowShown.apply(this,arguments)},r.prototype.rowHidden=function(e){return this.rowspan-=1,this.renderRowspan(),r.__super__.rowHidden.apply(this,arguments)},r.prototype.renderRowspan=function(){var t;return this.rowspan?(this.groupTd||(this.groupTd=e('').append(this.renderGroupContentEl())),this.groupTd.attr("rowspan",this.rowspan),t=this.getLeadingRow().getTr("spreadsheet"),t!==this.leadingTr?(t&&t.prepend(this.groupTd),this.leadingTr=t):void 0):(this.groupTd&&(this.groupTd.remove(),this.groupTd=null),this.leadingTr=null)},r}(z),p=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ye(t,e),t.prototype.hasOwnRow=!0,t.prototype.segContainerEl=null,t.prototype.segContainerHeight=null,t.prototype.innerEl=null,t.prototype.bgSegContainerEl=null,t.prototype.isSegsRendered=!1,t.prototype.isBusinessHourSegsRendered=!1,t.prototype.businessHourSegs=null,t.prototype.bgSegs=null,t.prototype.fgSegs=null,t.prototype.renderEventContent=function(e){return e.html('
'),this.segContainerEl=e.find(".fc-event-container"),this.innerEl=this.bgSegContainerEl=e.find("td > div"),this.ensureSegsRendered()},t.prototype.ensureSegsRendered=function(){if(!this.isSegsRendered)return this.ensureBusinessHourSegsRendered(),this.bgSegs&&this.view.timeGrid.renderFillInContainer("bgEvent",this,this.bgSegs),this.fgSegs&&this.view.timeGrid.renderFgSegsInContainers([[this,this.fgSegs]]),this.isSegsRendered=!0},t.prototype.ensureBusinessHourSegsRendered=function(){if(this.businessHourSegs&&!this.isBusinessHourSegsRendered)return this.view.timeGrid.renderFillInContainer("businessHours",this,this.businessHourSegs,"bgevent"),this.isBusinessHourSegsRendered=!0},t.prototype.unrenderEventContent=function(){return this.clearBusinessHourSegs(),this.bgSegs=null,this.fgSegs=null,this.isSegsRendered=!1},t.prototype.clearBusinessHourSegs=function(){var e,t,r,s;if(this.businessHourSegs){for(r=this.businessHourSegs,e=0,t=r.length;e0?this.enableExpanding():this.disableExpanding(),this.view.publiclyTrigger("resourceRender",this.resource,this.resource,this.getTr("spreadsheet").find("> td"),this.getTr("event").find("> td"))},r.prototype.renderEventContent=function(e){return r.__super__.renderEventContent.apply(this,arguments),e.attr("data-resource-id",this.resource.id)},r.prototype.renderSpreadsheetContent=function(t){var r,s,o,n,i,l,u,h,c;for(u=this.resource,l=this.view.colSpecs,n=0,i=l.length;n'+(r.isMain?this.renderGutterHtml():"")+''+(c?Se(c):" ")+"
"),"function"==typeof r.render&&(s=r.render(u,s,o)||s),h=e('').append(s),r.isMain&&h.wrapInner("
"),t.append(h));return t.attr("data-resource-id",u.id)},r.prototype.renderGutterHtml=function(){var e,t,r,s;for(e="",t=r=0,s=this.depth;r';return e+=''},r}(p),d.views.timeline.resourceClass=M,H=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ye(t,e),t.mixin($),t.prototype.timeGridClass=F,t.prototype.dayGridClass=_,t.prototype.renderHead=function(){return t.__super__.renderHead.apply(this,arguments),this.timeGrid.processHeadResourceEls(this.headContainerEl)},t.prototype.setResourcesOnGrids=function(e){if(this.timeGrid.setResources(e),this.dayGrid)return this.dayGrid.setResources(e)},t.prototype.unsetResourcesOnGrids=function(){if(this.timeGrid.unsetResources(),this.dayGrid)return this.dayGrid.unsetResources()},t}(d.AgendaView),d.views.agenda.queryResourceClass=function(e){var t;if(null!=(t=e.options.groupByResource||e.options.groupByDateAndResource)?t:1===e.duration.as("days"))return H},T=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ye(t,e),t.mixin($),t.prototype.dayGridClass=_,t.prototype.renderHead=function(){return t.__super__.renderHead.apply(this,arguments),this.dayGrid.processHeadResourceEls(this.headContainerEl)},t.prototype.setResourcesOnGrids=function(e){return this.dayGrid.setResources(e)},t.prototype.unsetResourcesOnGrids=function(){return this.dayGrid.unsetResources()},t}(d.BasicView),G=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ye(t,e),t.mixin($),t.prototype.dayGridClass=_,t.prototype.renderHead=function(){return t.__super__.renderHead.apply(this,arguments),this.dayGrid.processHeadResourceEls(this.headContainerEl)},t.prototype.setResourcesOnGrids=function(e){return this.dayGrid.setResources(e)},t.prototype.unsetResourcesOnGrids=function(){return this.dayGrid.unsetResources()},t}(d.MonthView),d.views.basic.queryResourceClass=function(e){var t;if(null!=(t=e.options.groupByResource||e.options.groupByDateAndResource)?t:1===e.duration.as("days"))return T},d.views.month.queryResourceClass=function(e){if(e.options.groupByResource||e.options.groupByDateAndResource)return G},E="2016-12-05",Q={years:1,weeks:1},y="http://fullcalendar.io/scheduler/license/",b=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],Oe=function(e,t){if(!Ee(window.location.href)&&!Te(e)&&!he(t))return qe('Please use a valid license key. More Info',t)},Te=function(r){var s,o,n,i;return e.inArray(r,b)!==-1||(o=(r||"").match(/^(\d+)\-fcs\-(\d+)$/),!!(o&&10===o[1].length&&(n=t.utc(1e3*parseInt(o[2])),i=t.utc(d.mockSchedulerReleaseDate||E),i.isValid()&&(s=i.clone().subtract(Q),n.isAfter(s)))))},Ee=function(e){return Boolean(e.match(/\w+\:\/\/fullcalendar\.io\/|\/demos\/[\w-]+\.html$/))},qe=function(t,r){return r.append(e('
').html(t))},void(he=function(e){return e.find(".fc-license-message").length>=1}))});