text: /** 
   * Kendo UI v2019.3.1023 (http://www.telerik.com/kendo-ui)                                                                                                                                              
   * Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.                                                                                      
   *                                                                                                                                                                                                      
   * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
   * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
   * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
                                                                                                                                                                                                         
  
  */
  !function(e,define){define("kendo.calendar.min",["kendo.core.min","kendo.selectable.min"],e)}(function(){return function(e,t){function a(e,t,a,n){var l,r=e.getFullYear(),i=t.getFullYear(),s=a.getFullYear();return r-=r%n,l=r+(n-1),r<i&&(r=i),l>s&&(l=s),r+"-"+l}function n(e){var t,a=0,n=e.min,l=e.max,r=e.start,i=e.setter,o=e.build,c=e.weekNumberBuild,u=e.cells||12,d=e.isWeekColumnVisible,f=e.perRow||4,g=e.otherMonth,v=e.lastDayOfMonth,h=e.weekNumber||j,m=e.content||z,p=e.empty||q,b=e.otherMonthCellTemplate||U,k=e.html||'<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><tbody><tr role="row">';for(d&&(k+=h(c(r)));a<u;a++)a>0&&a%f===0&&(k+='</tr><tr role="row">',d&&(k+=h(g||+r<=+v?c(r):{weekNumber:"&nbsp;"}))),r=_(r.getFullYear(),r.getMonth(),r.getDate()),V(r,0),t=o(r,a,e.disableDates),k+=t.cssClass.indexOf(ue)===-1||g?s(r,n,l)?m(t):p(t):b(t),i(r,1);return k+"</tr></tbody></table>"}function l(e,t,a){var n=e.getFullYear(),l=t.getFullYear(),r=l,i=0;return a&&(l-=l%a,r=l-l%a+a-1),n>r?i=1:n<l&&(i=-1),i}function r(){var e=new Oe;return new Oe(e.getFullYear(),e.getMonth(),e.getDate())}function i(e,t,a){var n=r();return e&&(n=new Oe((+e))),t>n?n=new Oe((+t)):a<n&&(n=new Oe((+a))),n}function s(e,t,a){return+e>=+t&&+e<=+a}function o(e,t){return e.slice(t).concat(e.slice(0,t))}function c(e,t,a){t=t instanceof Oe?t.getFullYear():e.getFullYear()+a*t,e.setFullYear(t)}function u(e,t){var a,n,l;return+t<+e&&(a=+e,M.views[0].setDate(e,t),M.views[0].setDate(t,new Date(a))),n=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),l=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),Math.ceil((+l-+n)/T.date.MS_PER_DAY)}function d(e,t,a,n){var l,r;for(l=0;l<=t;l++)r=new Date(a.getTime()),r=new Date(r.setDate(r.getDate()+l)),n(r)||e.push(r)}function f(t){var a=e(this).hasClass("k-state-disabled");a||e(this).toggleClass(se,De.indexOf(t.type)>-1||t.type==be)}function g(e){e.preventDefault()}function _(e,t,a){var n=new Oe(e,t,a);return n.setFullYear(e,t,a),n}function v(e){return I(e).calendars.standard}function h(e){var a=Ve[e.start],n=Ve[e.depth],l=I(e.culture);e.format=E(e.format||l.calendars.standard.patterns.d),isNaN(a)&&(a=0,e.start=ae),(n===t||n>a)&&(e.depth=ae),null===e.dates&&(e.dates=[])}function m(e){K&&e.find("*").attr("unselectable","on")}function p(e,t){e.addClass("k-"+t)}function b(e,t){for(var a=0,n=t.length;a<n;a++)if(e===+t[a])return!0;return!1}function k(e,t){return!!e&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function D(e,t){return!!e&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())}function w(t){return T.isFunction(t)?t:e.isArray(t)?S(t):e.noop}function y(e){var t,a=[];for(t=0;t<e.length;t++)a.push(e[t].setHours(0,0,0,0));return a}function S(t){var a,n,l,r,i,s=[],o=["su","mo","tu","we","th","fr","sa"],c="if (found) { return true } else {return false}";if(t[0]instanceof Oe)s=y(t),a="var found = date && window.kendo.jQuery.inArray(date.setHours(0, 0, 0, 0),["+s+"]) > -1;"+c;else{for(l=0;l<t.length;l++)r=t[l].slice(0,2).toLowerCase(),i=e.inArray(r,o),i>-1&&s.push(i);a="var found = date && window.kendo.jQuery.inArray(date.getDay(),["+s+"]) > -1;"+c}return n=Function("date",a)}function C(e,t){return e instanceof Date&&t instanceof Date&&(e=e.getTime(),t=t.getTime()),e===t}function F(t){var a=e(t).attr(T.attr(ie)).split("/");return a=_(a[0],a[1],a[2])}var M,T=window.kendo,x=T.support,Y=T.ui,A=Y.Widget,N=T.keys,O=T.parseDate,V=T.date.adjustDST,B=T.date.weekInYear,H=T.ui.Selectable,E=T._extractFormat,W=T.template,I=T.getCulture,P=T.support.transitions,R=P?P.css+"transform-origin":"",z=W('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),q=W('<td role="gridcell" class="k-out-of-range"><a class="k-link"></a></td>',{useWithBlock:!1}),U=W('<td role="gridcell" class="k-out-of-range">&nbsp;</td>',{useWithBlock:!1}),j=W('<td class="k-alt">#= data.weekNumber #</td>',{useWithBlock:!1}),G=T.support.browser,K=G.msie&&G.version<9,L=T._outerWidth,Q=".kendoCalendar",J="click"+Q,X="keydown"+Q,Z="id",$="min",ee="left",te="slideIn",ae="month",ne="century",le="change",re="navigate",ie="value",se="k-state-hover",oe="k-state-disabled",ce="k-state-focused",ue="k-other-month",de=' class="'+ue+'"',fe="k-out-of-range",ge="k-nav-today",_e="td:has(.k-link)",ve="td:has(.k-link):not(."+oe+"):not(."+fe+")",he="td:not(:has(.k-link))",me="k-state-selected",pe="blur"+Q,be="focus",ke=be+Q,De=x.touch?"touchstart":"mouseenter",we=x.touch?"touchstart"+Q:"mouseenter"+Q,ye=x.touch?"touchend"+Q+" touchmove"+Q:"mouseleave"+Q,Se=6e4,Ce=864e5,Fe="_prevArrow",Me="_nextArrow",Te="aria-disabled",xe="aria-selected",Ye="aria-label",Ae=e.proxy,Ne=e.extend,Oe=Date,Ve={month:0,year:1,decade:2,century:3},Be=A.extend({init:function(t,a){var n,l,s=this;A.fn.init.call(s,t,a),t=s.wrapper=s.element,a=s.options,a.url=T.unescape(a.url),s.options.disableDates=w(s.options.disableDates),s._templates(),s._selectable(),s._header(),s._viewWrapper(),s._footer(s.footer),l=t.addClass("k-widget k-calendar "+(a.weekNumber?" k-week-number":"")).on(we+" "+ye,_e,f).on(X,"table.k-content",Ae(s._move,s)).on(J,_e,function(t){var n=t.currentTarget.firstChild,l=F(n);n.href.indexOf("#")!=-1&&t.preventDefault(),"month"==s._view.name&&s.options.disableDates(l)||"month"==s._view.name&&"single"!=a.selectable||s._click(e(n))}).on("mouseup"+Q,"table.k-content, .k-footer",function(){s._focusView(s.options.focusOnNav!==!1)}).attr(Z),l&&(s._cellID=l+"_cell_selected"),s._isMultipleSelection()&&s.options.weekNumber&&t.on(J,he,function(t){var a=e(t.currentTarget).closest("tr").find(ve).first(),n=s.selectable._lastActive=e(t.currentTarget).closest("tr").find(ve).last();s.selectable.selectRange(a,n,{event:t}),s._current=s._value=F(n.find("a")),s._class(ce,s._current)}),h(a),n=O(a.value,a.format,a.culture),s._selectDates=[],s._index=Ve[a.start],s._current=new Oe((+i(n,a.min,a.max))),s._addClassProxy=function(){if(s._active=!0,s._cell.hasClass(oe)){var e=s._view.toDateString(r());s._cell=s._cellByDate(e)}s._cell.addClass(ce)},s._removeClassProxy=function(){s._active=!1,s._cell.removeClass(ce)},s.value(n),s._isMultipleSelection()&&a.selectDates.length>0&&s.selectDates(a.selectDates),T.notify(s)},options:{name:"Calendar",value:null,min:new Oe(1900,0,1),max:new Oe(2099,11,31),dates:[],disableDates:null,url:"",culture:"",footer:"",format:"",month:{},weekNumber:!1,selectable:"single",selectDates:[],start:ae,depth:ae,animation:{horizontal:{effects:te,reverse:!0,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}},messages:{weekColumnHeader:""}},events:[le,re],setOptions:function(e){var t=this;h(e),e.disableDates=w(e.disableDates),t._destroySelectable(),A.fn.setOptions.call(t,e),t._templates(),t._selectable(),t._viewWrapper(),t._footer(t.footer),t._index=Ve[t.options.start],t.navigate(),e.weekNumber&&t.element.addClass("k-week-number")},destroy:function(){var e=this,t=e._today;e.element.off(Q),e._title.off(Q),e[Fe].off(Q),e[Me].off(Q),e._destroySelectable(),T.destroy(e._table),t&&T.destroy(t.off(Q)),A.fn.destroy.call(e)},current:function(){return this._current},view:function(){return this._view},focus:function(e){e=e||this._table,this._bindTable(e),e.trigger("focus")},min:function(e){return this._option($,e)},max:function(e){return this._option("max",e)},navigateToPast:function(){this._navigate(Fe,-1)},navigateToFuture:function(){this._navigate(Me,1)},navigateUp:function(){var e=this,t=e._index;e._title.hasClass(oe)||e.navigate(e._current,++t)},navigateDown:function(e){var a=this,n=a._index,l=a.options.depth;if(e)return n===Ve[l]?(C(a._value,a._current)&&C(a._value,e)||(a.value(e),a.trigger(le)),t):(a.navigate(e,--n),t)},navigate:function(a,n){var l,r,s,o,c,u,d,f,g,_,v,h,b,k,D,w;n=isNaN(n)?Ve[n]:n,l=this,r=l.options,s=r.culture,o=r.min,c=r.max,u=l._title,d=l._table,f=l._oldTable,g=l._current,_=a&&+a>+g,v=n!==t&&n!==l._index,a||(a=g),l._current=a=new Oe((+i(a,o,c))),n===t?n=l._index:l._index=n,l._view=b=M.views[n],k=b.compare,D=n===Ve[ne],u.toggleClass(oe,D).attr(Te,D),D=k(a,o)<1,l[Fe].toggleClass(oe,D).attr(Te,D),l[Fe].hasClass(oe)&&l[Fe].removeClass(se),D=k(a,c)>-1,l[Me].toggleClass(oe,D).attr(Te,D),l[Me].hasClass(oe)&&l[Me].removeClass(se),d&&f&&f.data("animating")&&(f.kendoStop(!0,!0),d.kendoStop(!0,!0)),l._oldTable=d,d&&!l._changeView||(u.html(b.title(a,o,c,s)),l._table=h=e(b.content(Ne({min:o,max:c,date:a,url:r.url,dates:r.dates,format:r.format,otherMonth:!0,culture:s,disableDates:r.disableDates,isWeekColumnVisible:r.weekNumber,messages:r.messages},l[b.name]))),p(h,b.name),m(h),w=d&&d.data("start")===h.data("start"),l._animate({from:d,to:h,vertical:v,future:_,replace:w}),l.trigger(re),l._focus(a)),n===Ve[r.depth]&&l._selectDates.length>0&&l._visualizeSelectedDatesInView(),"single"===l.options.selectable&&n===Ve[r.depth]&&l._value&&!l.options.disableDates(l._value)&&l._class("k-state-selected",l._value),l._class(ce,a),!d&&l._cell&&l._cell.removeClass(ce),l._changeView=!0},selectDates:function(a){var n,l,r=this;return a===t?r._selectDates:(l=a.map(function(e){return e.getTime()}).filter(function(e,t,a){return a.indexOf(e)===t}).map(function(e){return new Date(e)}),n=e.grep(l,function(e){if(e)return+r._validateValue(new Date(e.setHours(0,0,0,0)))===+e}),r._selectDates=n.length>0?n:0===l.length?l:r._selectDates,r._visualizeSelectedDatesInView(),t)},value:function(e){var a,n=this,l=n._view,r=n._view;return e===t?n._value:(e=n._validateValue(e),e&&n._isMultipleSelection()&&(a=new Date((+e)),a.setHours(0,0,0,0),n._selectDates=[a],n.selectable._lastActive=null),l&&null===e&&n._cell?n._cell.removeClass(me):(n._changeView=!e||r&&0!==r.compare(e,n._current),n.navigate(e)),t)},_validateValue:function(e){var a=this,n=a.options,l=n.min,r=n.max;return null===e&&(a._current=_(a._current.getFullYear(),a._current.getMonth(),a._current.getDate())),e=O(e,n.format,n.culture),null!==e&&(e=new Oe((+e)),s(e,l,r)||(e=null)),null!==e&&a.options.disableDates(new Date((+e)))?a._value===t&&(a._value=null):a._value=e,a._value},_visualizeSelectedDatesInView:function(){var t,a=this,n={};e.each(a._selectDates,function(e,t){n[T.calendar.views[0].toDateString(t)]=t}),a.selectable.clear(),t=a._table.find(_e).filter(function(t,a){return n[e(a.firstChild).attr(T.attr(ie))]}),t.length>0&&a.selectable._selectElement(t,!0)},_isMultipleSelection:function(){var e=this;return"multiple"===e.options.selectable},_selectable:function(){var e,t,a=this;a._isMultipleSelection()&&(e=a.options.selectable,t=H.parseOptions(e),t.multiple&&a.element.attr("aria-multiselectable","true"),a.selectable=new H(a.wrapper,{aria:!0,inputSelectors:"input,textarea,.k-multiselect-wrap,select,button,.k-button>span,.k-button>img,span.k-icon.k-i-arrow-60-down,span.k-icon.k-i-arrow-60-up",multiple:t.multiple,filter:"table.k-month:eq(0) "+ve,change:Ae(a._onSelect,a),relatedTarget:Ae(a._onRelatedTarget,a)}))},_onRelatedTarget:function(e){var t=this;t.selectable.options.multiple&&e.is(ve)&&(t._current=F(e.find("a")),t._class(ce,F(e.find("a"))))},_onSelect:function(a){var n=this,l=a,r=H.parseOptions(n.options.selectable);return r.multiple?(l.event.ctrlKey||l.event.metaKey?e(l.event.currentTarget).is(ve)?n._toggleSelection(e(l.event.currentTarget)):(n._cellsBySelector(ve).each(function(t,a){var l=F(e(a).find("a"));n._deselect(l)}),n._addSelectedCellsToArray()):l.event.shiftKey?n._rangeSelection(n._cell):e(l.event.currentTarget).is(_e)?n.value(F(e(l.event.currentTarget).find("a"))):(n._selectDates=[],n._addSelectedCellsToArray()),n.trigger(le),t):(e(l.event.currentTarget).is("td")&&!e(l.event.currentTarget).hasClass("k-state-selected")?e(l.event.currentTarget).addClass("k-state-selected"):n._click(e(l.event.currentTarget).find("a")),t)},_destroySelectable:function(){var e=this;e.selectable&&(e.selectable.destroy(),e.selectable=null)},_toggleSelection:function(e){var t=this,a=F(e.find("a"));e.hasClass("k-state-selected")?t._selectDates.push(a):t._deselect(a)},_rangeSelection:function(e,t){var a,n=this,l=t||F(n.selectable.value().first().find("a")),r=F(e.find("a"));n.selectable._lastActive||n._value?l=n.selectable._lastActive?F(n.selectable._lastActive.find("a")):new Date((+n._value)):n.selectable._lastActive=t?n._cellByDate(n._view.toDateString(t),ve):n.selectable.value().first(),n._selectDates=[],a=u(l,r),d(n._selectDates,a,l,n.options.disableDates),n._visualizeSelectedDatesInView()},_cellsBySelector:function(e){var t=this;return t._table.find(e)},_addSelectedCellsToArray:function(){var t=this;t.selectable.value().each(function(a,n){var l=F(e(n.firstChild));t.options.disableDates(l)||t._selectDates.push(l)})},_deselect:function(e){var t=this,a=t._selectDates.map(Number).indexOf(+e);a!=-1&&t._selectDates.splice(a,1)},_dateInView:function(e){var t=this,a=F(t._cellsBySelector(ve+":first").find("a")),n=F(t._cellsBySelector(ve+":last").find("a"));return+e<=+n&&+e>=+a},_isNavigatable:function(e,t){var a,n,l=this,r=l.options.disableDates;return"month"==l._view.name?!r(e):(n=l.wrapper.find("."+ce).index(),a=l.wrapper.find(".k-content td:eq("+(n+t)+")"),a.is(ve)||!r(e))},_move:function(a){var n,l,r,o,c,u=this,d=u.options,f=a.keyCode,g=u._view,v=u._index,h=u.options.min,m=u.options.max,p=new Oe((+u._current)),b=T.support.isRtl(u.wrapper),k=u.options.disableDates;return a.target===u._table[0]&&(u._active=!0),f==N.RIGHT&&!b||f==N.LEFT&&b?(n=1,l=!0):f==N.LEFT&&!b||f==N.RIGHT&&b?(n=-1,l=!0):f==N.UP?(n=0===v?-7:-4,l=!0):f==N.DOWN?(n=0===v?7:4,l=!0):f==N.SPACEBAR?(n=0,l=!0):f!=N.HOME&&f!=N.END||(r=f==N.HOME?"first":"last",o=g[r](p),p=new Oe(o.getFullYear(),o.getMonth(),o.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds()),p.setFullYear(o.getFullYear()),l=!0),a.ctrlKey||a.metaKey?f==N.RIGHT&&!b||f==N.LEFT&&b?(u.navigateToFuture(),l=!0):f==N.LEFT&&!b||f==N.RIGHT&&b?(u.navigateToPast(),l=!0):f==N.UP?(u.navigateUp(),l=!0):f==N.DOWN?(u._click(e(u._cell[0].firstChild)),l=!0):f!=N.ENTER&&f!=N.SPACEBAR||!u._isMultipleSelection()||(u._keyboardToggleSelection(a),c=F(e(u._cell[0]).find("a")),u._class(ce,c)):a.shiftKey?(n!==t||r)&&(r||g.setDate(p,n),s(p,h,m)||(p=i(p,d.min,d.max)),k(p)&&(p=u._nextNavigatable(p,n)),h=_(h.getFullYear(),h.getMonth(),h.getDate()),u._isMultipleSelection()?u._keyboardRangeSelection(a,p):u._focus(p)):(f==N.ENTER||f==N.SPACEBAR?("month"==g.name&&u._isMultipleSelection()?(u.value(F(e(u._cell.find("a")))),u.selectable._lastActive=e(u._cell[0]),u.trigger(le)):u._click(e(u._cell[0].firstChild)),l=!0):f==N.PAGEUP?(l=!0,u.navigateToPast()):f==N.PAGEDOWN&&(l=!0,u.navigateToFuture()),(n||r)&&(r||g.setDate(p,n),h=_(h.getFullYear(),h.getMonth(),h.getDate()),s(p,h,m)||(p=i(p,d.min,d.max)),u._isNavigatable(p,n)||(p=u._nextNavigatable(p,n)),u._isMultipleSelection()?u._dateInView(p)?(u._current=p,u._class(ce,p)):u.navigate(p):u._focus(p))),l&&a.preventDefault(),u._current},_keyboardRangeSelection:function(e,a){var n,l,r=this;return r._dateInView(a)?(r.selectable.options.filter=r.wrapper.find("table").length>1&&+a>+r._current?"table.k-month:eq(1) "+ve:"table.k-month:eq(0) "+ve,r._class(ce,a),r._current=a,r._rangeSelection(r._cellByDate(r._view.toDateString(a),ve),a),r.trigger(le),r.selectable.options.filter="table.k-month:eq(0) "+ve,t):(r._selectDates=[],n=r.selectable._lastActive?F(r.selectable._lastActive.find("a")):a,l=u(n,new Date((+a))),d(r._selectDates,l,n,r.options.disableDates),r.navigate(a),r._current=a,r.selectable._lastActive=r.selectable._lastActive||r._cellByDate(r._view.toDateString(a),ve),r.trigger(le),t)},_keyboardToggleSelection:function(t){var a=this;t.currentTarget=a._cell[0],a.selectable._lastActive=e(a._cell[0]),e(a._cell[0]).hasClass(me)?(a.selectable._unselect(e(a._cell[0])),a.selectable.trigger(le,{event:t})):a.selectable.value(e(a._cell[0]),{event:t})},_nextNavigatable:function(e,t){var a=this,n=!0,l=a._view,r=a.options.min,i=a.options.max,o=a.options.disableDates,c=new Date(e.getTime());for(l.setDate(c,-t);n;){if(l.setDate(e,t),!s(e,r,i)){e=c;break}n=o(e)}return e},_animate:function(e){var t=this,a=e.from,n=e.to,l=t._active,r=t.element.children(".k-calendar-view");a?a.parent().data("animating")?(a.off(Q),a.parent().kendoStop(!0,!0).remove(),a.remove(),r.append(n),t._focusView(l)):!a.is(":visible")||t.options.animation===!1||e.replace?(n.insertAfter(a),a.off(Q).remove(),t._focusView(l)):t[e.vertical?"_vertical":"_horizontal"](a,n,e.future):(r.append(n),t._bindTable(n))},_horizontal:function(e,t,a){var n=this,l=n._active,r=n.options.animation.horizontal,i=r.effects,s=L(e);i&&i.indexOf(te)!=-1&&(e.add(t).css({width:s}),e.wrap("<div/>"),n._focusView(l,e),e.parent().css({position:"relative",width:2*s,"float":ee,"margin-left":a?0:-s}),t[a?"insertAfter":"insertBefore"](e),Ne(r,{effects:te+":"+(a?"right":ee),complete:function(){e.off(Q).remove(),n._oldTable=null,t.unwrap(),n._focusView(l)}}),e.parent().kendoStop(!0,!0).kendoAnimate(r))},_vertical:function(e,t){var a,n,l=this,r=l.options.animation.vertical,i=r.effects,s=l._active;i&&i.indexOf("zoom")!=-1&&(t.insertBefore(e),e.css({position:"absolute",width:t.width()}),R&&(a=l._cellByDate(l._view.toDateString(l._current)),n=a.position(),n=n.left+parseInt(a.width()/2,10)+"px "+(n.top+parseInt(a.height()/2,10)+"px"),t.css(R,n)),e.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){e.off(Q).remove(),l._oldTable=null,l._focusView(s)}}),t.kendoStop(!0,!0).kendoAnimate(r))},_cellByDate:function(t,a){return this._table.find(a?a:"td:not(."+ue+")").filter(function(){return e(this.firstChild).attr(T.attr(ie))===t})},_class:function(e,t){var a,n=this,l=n._cellID,r=n._cell,i=n._view.toDateString(t);r&&r.length&&(r[0].removeAttribute(xe),r[0].removeAttribute(Ye),r[0].removeAttribute(Z)),t&&"month"==n._view.name&&(a=n.options.disableDates(t)),n._cellsBySelector(n._isMultipleSelection()?_e:"td:not(."+ue+")").removeClass(e),r=n._cellByDate(i,"multiple"==n.options.selectable?_e:"td:not(."+ue+")").attr(xe,!0),(e===ce&&!n._active&&n.options.focusOnNav!==!1||a)&&(e=""),r.addClass(e),r[0]&&(n._cell=r),l&&(r.attr(Z,l),n._table[0].removeAttribute("aria-activedescendant"),n._table.attr("aria-activedescendant",l))},_bindTable:function(e){e.on(ke,this._addClassProxy).on(pe,this._removeClassProxy)},_click:function(e){var t=this,a=t.options,n=new Date((+t._current)),l=F(e);V(l,0),"month"==t._view.name&&t.options.disableDates(l)&&(l=t._value),t._view.setDate(n,l),t.navigateDown(i(n,a.min,a.max))},_focus:function(e){var t=this,a=t._view;0!==a.compare(e,t._current)?t.navigate(e):(t._current=e,t._class(ce,e))},_focusView:function(e,t){e&&this.focus(t)},_viewWrapper:function(){var t=this,a=t.element,n=a.children(".k-calendar-view");n[0]||(n=e("<div class='k-calendar-view' />").insertAfter(a.find(".k-header")))},_footer:function(a){var n=this,l=r(),i=n.element,s=i.find(".k-footer");return a?(s[0]||(s=e('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(i)),n._today=s.show().find(".k-link").html(a(l)).attr("title",T.toString(l,"D",n.options.culture)),n._toggle(),t):(n._toggle(!1),s.hide(),t)},_header:function(){var e,t=this,a=t.element;a.find(".k-header")[0]||a.html('<div class="k-header"><a href="#" role="button" class="k-link k-nav-prev" '+Ye+'="Previous"><span class="k-icon k-i-arrow-60-left"></span></a><a href="#" role="button" aria-live="assertive" aria-atomic="true" class="k-link k-nav-fast"></a><a href="#" role="button" class="k-link k-nav-next" '+Ye+'="Next"><span class="k-icon k-i-arrow-60-right"></span></a></div>'),e=a.find(".k-link").on(we+" "+ye+" "+ke+" "+pe,f).on("click",function(){return!1}),t._title=e.eq(1).on(J,function(){t._active=t.options.focusOnNav!==!1,t.navigateUp()}),t[Fe]=e.eq(0).on(J,function(){t._active=t.options.focusOnNav!==!1,t.navigateToPast()}),t[Me]=e.eq(2).on(J,function(){t._active=t.options.focusOnNav!==!1,t.navigateToFuture()})},_navigate:function(e,t){var a,n=this,l=n._index+1,r=new Oe((+n._current));n._isMultipleSelection()&&(a=n._table.find("td:not(.k-other-month):not(.k-out-of-range)").has(".k-link").first(),r=F(a.find("a")),n._current=new Date((+r))),e=n[e],e.hasClass(oe)||(l>3?r.setFullYear(r.getFullYear()+100*t):M.views[l].setDate(r,t),n.navigate(r))},_option:function(e,a){var n,l=this,r=l.options,i=l._value||l._current;return a===t?r[e]:(a=O(a,r.format,r.culture),a&&(r[e]=new Oe((+a)),n=e===$?a>i:i>a,(n||D(i,a))&&(n&&(l._value=null),l._changeView=!0),l._changeView||(l._changeView=!(!r.month.content&&!r.month.empty)),l.navigate(l._value),l._toggle()),t)},_toggle:function(e){var a=this,n=a.options,l=a.options.disableDates(r()),i=a._today;e===t&&(e=s(r(),n.min,n.max)),i&&(i.off(J),e&&!l?i.addClass(ge).removeClass(oe).on(J,Ae(a._todayClick,a)):i.removeClass(ge).addClass(oe).on(J,g))},_todayClick:function(e){var t=this,a=Ve[t.options.depth],n=t.options.disableDates,l=r();e.preventDefault(),n(l)||(0===t._view.compare(t._current,l)&&t._index==a&&(t._changeView=!1),t._isMultipleSelection()&&(t._selectDates=[l],t.selectable._lastActive=null),t._value=l,t.navigate(l,a),t.trigger(le))},_templates:function(){var e=this,t=e.options,a=t.footer,n=t.month,l=n.content,r=n.weekNumber,i=n.empty,s='#= kendo.toString(data,"D","'+t.culture+'") #';e.month={content:W('<td#=data.cssClass# role="gridcell"><a tabindex="-1" class="k-link#=data.linkClass#" href="#=data.url#" '+T.attr(ie)+'="#=data.dateString#" title="#=data.title#">'+(l||"#=data.value#")+"</a></td>",{useWithBlock:!!l}),empty:W('<td role="gridcell">'+(i||"&nbsp;")+"</td>",{useWithBlock:!!i}),weekNumber:W('<td class="k-alt">'+(r||"#= data.weekNumber #")+"</td>",{useWithBlock:!!r})},a&&a!==!0&&(s=a),e.footer=a!==!1?W(s,{useWithBlock:!1}):null}});Y.plugin(Be),M={firstDayOfMonth:function(e){return _(e.getFullYear(),e.getMonth(),1)},firstVisibleDay:function(e,t){t=t||T.culture().calendar;var a=t.firstDay,n=new Oe(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());for(n.setFullYear(e.getFullYear());n.getDay()!=a;)M.setTime(n,-1*Ce);return n},setTime:function(e,t){var a=e.getTimezoneOffset(),n=new Oe(e.getTime()+t),l=n.getTimezoneOffset()-a;e.setTime(n.getTime()+l*Se)},views:[{name:ae,title:function(e,t,a,n){return v(n).months.names[e.getMonth()]+" "+e.getFullYear()},content:function(e){var t=this,a=0,l=e.min,i=e.max,s=e.date,c=e.dates,u=e.format,d=e.culture,f=e.url,g=e.showHeader,h=e.otherMonth,m=e.isWeekColumnVisible,p=f&&c[0],k=v(d),D=k.firstDay,w=k.days,y=o(w.names,D),S=o(w.namesShort,D),C=M.firstVisibleDay(s,k),F=t.first(s),x=t.last(s),Y=t.toDateString,A=r(),N='<table tabindex="0" role="grid" class="k-content" cellspacing="0" data-start="'+Y(C)+'">';for(N+=g?'<caption class="k-month-header">'+this.title(s,l,i,d)+'</caption><thead><tr role="row">':'<thead><tr role="row">',m&&(N+='<th scope="col" class="k-alt">'+e.messages.weekColumnHeader+"</th>");a<7;a++)N+='<th scope="col" title="'+y[a]+'">'+S[a]+"</th>";return V(A,0),A=+A,n({cells:42,perRow:7,html:N+='</tr></thead><tbody><tr role="row">',start:C,isWeekColumnVisible:m,weekNumber:e.weekNumber,min:_(l.getFullYear(),l.getMonth(),l.getDate()),max:_(i.getFullYear(),i.getMonth(),i.getDate()),otherMonth:h,content:e.content,lastDayOfMonth:x,empty:e.empty,setter:t.setDate,disableDates:e.disableDates,build:function(e,t,a){var n=[],l=e.getDay(),r="",i="#";return(e<F||e>x)&&n.push(ue),a(e)&&n.push(oe),+e===A&&n.push("k-today"),0!==l&&6!==l||n.push("k-weekend"),p&&b(+e,c)&&(i=f.replace("{0}",T.toString(e,u,d)),r=" k-action-link"),{date:e,dates:c,ns:T.ns,title:T.toString(e,"D",d),value:e.getDate(),dateString:Y(e),cssClass:n[0]?' class="'+n.join(" ")+'"':"",linkClass:r,url:i}},weekNumberBuild:function(e){return{weekNumber:B(e,T.culture().calendar.firstDay),currentDate:e}}})},first:function(e){return M.firstDayOfMonth(e)},last:function(e){var t=_(e.getFullYear(),e.getMonth()+1,0),a=M.firstDayOfMonth(e),n=Math.abs(t.getTimezoneOffset()-a.getTimezoneOffset());return n&&t.setHours(a.getHours()+n/60),t},compare:function(e,t){var a,n=e.getMonth(),l=e.getFullYear(),r=t.getMonth(),i=t.getFullYear();return a=l>i?1:l<i?-1:n==r?0:n>r?1:-1},setDate:function(e,t){var a=e.getHours();t instanceof Oe?e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):M.setTime(e,t*Ce),V(e,a)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/"+e.getDate()}},{name:"year",title:function(e){return e.getFullYear()},content:function(e){var t=v(e.culture).months.namesAbbr,a=this.toDateString,l=e.min,r=e.max,i="";return e.showHeader&&(i+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',i+=this.title(e.date),i+='</caption><tbody><tr role="row">'),n({min:_(l.getFullYear(),l.getMonth(),1),max:_(r.getFullYear(),r.getMonth(),1),start:_(e.date.getFullYear(),0,1),html:i,setter:this.setDate,build:function(e){return{value:t[e.getMonth()],ns:T.ns,dateString:a(e),cssClass:""}}})},first:function(e){return _(e.getFullYear(),0,e.getDate())},last:function(e){return _(e.getFullYear(),11,e.getDate())},compare:function(e,t){return l(e,t)},setDate:function(e,t){var a,n=e.getHours();t instanceof Oe?(a=t.getMonth(),e.setFullYear(t.getFullYear(),a,e.getDate()),a!==e.getMonth()&&e.setDate(0)):(a=e.getMonth()+t,e.setMonth(a),a>11&&(a-=12),a>0&&e.getMonth()!=a&&e.setDate(0)),V(e,n)},toDateString:function(e){return e.getFullYear()+"/"+e.getMonth()+"/1"}},{name:"decade",title:function(e,t,n){return a(e,t,n,10)},content:function(e){var t=e.date.getFullYear(),a=this.toDateString,l="";return e.showHeader&&(l+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',l+=this.title(e.date,e.min,e.max),l+='</caption><tbody><tr role="row">'),n({start:_(t-t%10-1,0,1),min:_(e.min.getFullYear(),0,1),max:_(e.max.getFullYear(),0,1),otherMonth:e.otherMonth,html:l,setter:this.setDate,build:function(e,t){return{value:e.getFullYear(),ns:T.ns,dateString:a(e),cssClass:0===t||11==t?de:""}}})},first:function(e){var t=e.getFullYear();return _(t-t%10,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return _(t-t%10+9,e.getMonth(),e.getDate())},compare:function(e,t){return l(e,t,10)},setDate:function(e,t){c(e,t,1)},toDateString:function(e){return e.getFullYear()+"/0/1"}},{name:ne,title:function(e,t,n){return a(e,t,n,100)},content:function(e){var t=e.date.getFullYear(),a=e.min.getFullYear(),l=e.max.getFullYear(),r=this.toDateString,i=a,s=l,o="";return i-=i%10,s-=s%10,s-i<10&&(s=i+9),e.showHeader&&(o+='<table tabindex="0" role="grid" class="k-content k-meta-view" cellspacing="0"><caption class="k-meta-header">',o+=this.title(e.date,e.min,e.max),o+='</caption><tbody><tr role="row">'),n({start:_(t-t%100-10,0,1),min:_(i,0,1),max:_(s,0,1),otherMonth:e.otherMonth,html:o,setter:this.setDate,build:function(e,t){var n=e.getFullYear(),i=n+9;return n<a&&(n=a),i>l&&(i=l),{ns:T.ns,value:n+" - "+i,dateString:r(e),cssClass:0===t||11==t?de:""}}})},first:function(e){var t=e.getFullYear();return _(t-t%100,e.getMonth(),e.getDate())},last:function(e){var t=e.getFullYear();return _(t-t%100+99,e.getMonth(),e.getDate())},compare:function(e,t){return l(e,t,100)},setDate:function(e,t){c(e,t,10)},toDateString:function(e){var t=e.getFullYear();return t-t%10+"/0/1"}}]},M.isEqualDatePart=k,M.isEqualDate=C,M.makeUnselectable=m,M.restrictValue=i,M.isInRange=s,M.addClassToViewContainer=p,M.normalize=h,M.viewsEnum=Ve,M.disabled=w,M.toDateObject=F,M.getToday=r,M.createDate=_,T.calendar=M}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});
  //# sourceMappingURL=kendo.calendar.min.js.map
  