"),t.width&&o.css({width:t.width,overflow:"visible"}),i.before(o),o.append(t.content||i.clone(!0,!0)),r=e.Deferred(),setTimeout(function(){var e=kendo.drawing.drawDOM(o,n);e.always(function(){o.remove()}).then(function(){r.resolve.apply(r,arguments)}).fail(function(){r.reject.apply(r,arguments)}).progress(function(){r.progress.apply(r,arguments)})},15),r.promise()}}}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.pdf.min",["kendo.core.min","kendo.drawing.min","pdf/core.min","pdf/mixins.min"],e)}(function(){},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.dialog.min",["kendo.core.min","kendo.popup.min"],e)}(function(){return function(e,t){function n(e){return t!==e}function i(e,t,n){return Math.max(Math.min(parseInt(e,10),n===1/0?n:parseInt(n,10)),parseInt(t,10))}function o(e){return e.keyCode==_.ENTER||e.keyCode==_.SPACEBAR}var r,a,s,l,d,c,u,h,p=window.kendo,f=p.ui.Widget,g=p.ui.Popup.TabKeyTrap,m=e.proxy,v=p.template,_=p.keys,b=e.isFunction,w="kendoWindow",k=".k-dialog",y=".k-window",x=".k-dialog-close",C="k-window-content k-dialog-content",S=".k-window-content",T="k-scroll",D="k-dialog-titleless",A=".k-dialog-title",E=A+"bar",I=".k-dialog-buttongroup",M=".k-button",R="k-alert",F="k-confirm",P="k-prompt",z=".k-textbox",B=".k-overlay",L=":visible",H="zIndex",N="body",O="initOpen",V="touchstart",W="touchmove",U="open",j="close",q="show",G="hide",$={small:"k-window-sm",medium:"k-window-md",large:"k-window-lg"},K="hidden",Y="overflow",Q="original-overflow-rule",X="tap-y",J={okText:"OK",cancel:"Cancel",promptInput:"Input"},Z=Math.ceil,ee=":not(link,meta,script,style)",te=f.extend({init:function(e,t){var n=this;f.fn.init.call(n,e,t),n._init(n.element,n.options),p.notify(n)},_init:function(i,o){var a,s=this;s._centerCallback=m(s._center,s),s.appendTo=e(N),n(o.visible)&&null!==o.visible||(o.visible=i.is(L)),s.wrapperTemplate===t&&(s.wrapperTemplate=r.wrapper),s._createDialog(),a=s.wrapper=i.closest(k),o._defaultFocus===t&&(s._defaultFocus=i[0]),s._tabindex(i),s._dimensions(),this._tabKeyTrap=new g(a),s.options.visible?s._triggerOpen():s.wrapper.hide()},setOptions:function(n){var i,o=this,r=o.options.size;n=e.extend(o.options,n),f.fn.setOptions.call(o,n),n.title!==t&&o.title(n.title),n.content&&(p.destroy(o.element.children()),o.element.html(n.content)),n.actions&&(o.wrapper.children(I).remove(),o._createActionbar(o.wrapper)),o.wrapper.show(),o._closable(o.wrapper),o.wrapper.removeClass($[r]),o._dimensions(),n.visible?o._triggerOpen():o.wrapper.hide(),t!==n.modal&&(i=o.options.visible!==!1,o._enableDocumentScrolling(),o._overlay(n.modal&&i))},_dimensions:function(){var e,t,n=this,o=n.wrapper,r=n.options,a=r.width,s=r.height,l=r.size,d=["minWidth","minHeight","maxWidth","maxHeight"];for(e=0;e
0?o.width(a):o.outerWidth(i(a,r.minWidth,r.maxWidth))),s&&((""+s).indexOf("%")>0?o.height(s):o.outerHeight(i(s,r.minHeight,r.maxHeight)),this._setElementHeight()),l&&$[l]&&o.addClass($[l])},_setElementMaxHeight:function(){var e,t=this,n=t.element,i=t.options.maxHeight;i!=1/0&&(e=parseFloat(i,10)-t._uiHeight(),e>0&&n.css({maxHeight:Z(e)+"px"}))},_setElementHeight:function(){var e=this,t=e.element,n=e.wrapper.outerHeight(!0),i=parseFloat(n,10)-e._uiHeight();i<0&&(i=0),t.css({height:Z(i)+"px"}),this._applyScrollClassName(t)},_applyScrollClassName:function(e){var t=e.get(0).scrollHeight>e.outerHeight();t?e.addClass(T):e.removeClass(T)},_uiHeight:function(){var e=this,t=e.wrapper,n=t.children(I),i=n[0]&&n[0].offsetHeight||0,o=t.children(E),r=o[0]&&o[0].offsetHeight||0;return i+r},_overlay:function(t){var n=this.appendTo.children(B),i=this.wrapper;return n.length||(n=e(r.overlay)),n.insertBefore(i[0]).toggle(t).css(H,parseInt(i.css(H),10)-1),t?this._waiAriaOverlay():this._removeWaiAriaOverlay(),this.options.modal.preventScroll&&this._stopDocumentScrolling(),n},_waiAriaOverlay:function(){var t=this.wrapper;this._overlayedNodes=t.prevAll(ee).add(t.nextAll(ee)).each(function(){var t=e(this);t.data("ariaHidden",t.attr("aria-hidden")),t.attr("aria-hidden","true")})},_removeWaiAriaOverlay:function(){return this._overlayedNodes&&this._overlayedNodes.each(function(){var t=e(this),n=t.data("ariaHidden");n?t.attr("aria-hidden",n):t.removeAttr("aria-hidden")})},_closeClick:function(e){e.preventDefault(),this.close(!1)},_closeKeyHandler:function(e){(o(e)||e.keyCode==_.ESC)&&this.close(!1)},_keydown:function(e){var t=this,n=t.options,i=e.keyCode;i==_.ESC&&!t._closing&&n.closable&&t.close(!1)},_createDialog:function(){var t=this,n=t.element,i=t.options,o=p.support.isRtl(n),a=e(r.titlebar(i)),s=(n.id||p.guid())+"_title",l=e(t.wrapperTemplate(i));l.toggleClass("k-rtl",o),n.addClass(C),t.appendTo.append(l),i.title!==!1?(l.append(a),a.attr("id",s),l.attr("aria-labelledby",s)):l.addClass(D),t._closable(l),l.append(n),i.content&&(p.destroy(n.children()),n.html(i.content)),i.actions.length&&t._createActionbar(l)},_closable:function(e){var t=this,n=t.options,i=e.children(E),o=i.find(".k-window-actions"),a=o.length?o.find(".k-dialog-close"):e.find(".k-dialog-close");a.remove(),n.closable!==!1&&(n.title!==!1&&o.length?o.append(r.close(n)):e.prepend(r.close(n)),e.autoApplyNS(w),t.element.autoApplyNS(w),e.find(x).on("click",m(t._closeClick,t)).on("keydown",m(t._closeKeyHandler,t)),t.element.on("keydown",m(t._keydown,t)))},_createActionbar:function(t){var n="stretched"===this.options.buttonLayout,i=n?"stretched":"normal",o=e(r.actionbar({buttonLayout:i}));this._addButtons(o),t.append(o)},_addButtons:function(t){var n,i,o,a=this,s=m(a._actionClick,a),l=m(a._actionKeyHandler,a),d=a.options.actions,c=d.length;for(o=0;o .k-overlay").remove(),n=null,t},close:function(e){return arguments.length||(e=!0),this._close(e),this._stopCenterOnResize(),this},_close:function(e){var t=this,n=t.wrapper,i=t.options,o=this._animationOptions("open"),r=this._animationOptions("close");if(n.is(L)&&!t.trigger(j,{userTriggered:!e})){if(t._closing)return;t._closing=!0,i.visible=!1,this._removeOverlay(),n.kendoStop().kendoAnimate({effects:r.effects||o.effects,reverse:r.reverse===!0,duration:r.duration,complete:m(this._closeAnimationEnd,this)})}return t},center:function(){this._center(),this._centerOnResize()},_center:function(){var t=this,n=t.wrapper,i=e(window),o=0,r=0,a=r+Math.max(0,(i.width()-n.width())/2),s=o+Math.max(0,(i.height()-n.height()-parseInt(n.css("paddingTop"),10))/2);return n.css({left:a,top:s}),t},_centerOnResize:function(){this._trackResize||(p.onResize(this._centerCallback),this._trackResize=!0)},_stopCenterOnResize:function(){p.unbindResize(this._centerCallback),this._trackResize=!1},_removeOverlay:function(){var e=this._modals(),t=this.options,n=t.modal&&!e.length;n?(this._overlay(!1).remove(),t.modal.preventScroll&&this._enableDocumentScrolling()):e.length&&(this._object(e.last())._overlay(!0),t.modal.preventScroll&&this._stopDocumentScrolling())},_stopDocumentScrolling:function(){var t,n,i=this,o=e("body");i._storeOverflowRule(o),o.css(Y,K),t=e("html"),n=t[0],i._storeOverflowRule(t),t.css(Y,K),p.support.mobileOS.ios&&(n.addEventListener(V,i._touchStart,{passive:!1}),n.addEventListener(W,i._touchMove,{passive:!1}))},_touchStart:function(t){e(this).data(X,t.changedTouches[0].pageY)},_touchMove:function(t){var n=t.target,i=e(t.target),o=t.changedTouches[0].pageY-e(this).data(X)>0,r=i.is(S)&&o&&0===i.scrollTop()||!o&&i.scrollTop()===n.scrollHeight-n.clientHeight;i.is(S)&&!r||t.preventDefault()},_enableDocumentScrolling:function(){var t=this,n=e(document.body),i=e("html"),o=i[0];t._restoreOverflowRule(n),t._restoreOverflowRule(i),p.support.mobileOS.ios&&(i.removeData(X),o.removeEventListener(V,t._touchStart,{passive:!1}),o.removeEventListener(W,t._touchMove,{passive:!1}))},_storeOverflowRule:function(e){if(!this._isOverflowStored(e)){var t=e.get(0).style.overflow;"string"==typeof t&&e.data(Q,t)}},_isOverflowStored:function(e){return"string"==typeof e.data(Q)},_restoreOverflowRule:function(e){var n=e.data(Q);null!==n&&n!==t?(e.css(Y,n),e.removeData(Q)):e.css(Y,"")},_closeAnimationEnd:function(){var e,t=this;t._closing=!1,t.wrapper.hide().css("opacity",""),t.trigger(G),t.options.modal&&(e=t._object(t._modals().last()),e&&e.toFront())},_modals:function(){var t=this,n=e(y).filter(function(){var n=e(this),i=t._object(n),o=i&&i.options;return o&&o.modal&&t.options.appendTo==o.appendTo&&o.visible&&n.is(L)}).sort(function(t,n){return+e(t).css("zIndex")-+e(n).css("zIndex")});return t=null,n},_object:function(e){var n=e.children(S),i=p.widgetInstance(n);return i?i:t},destroy:function(){var t=this;t._destroy(),f.fn.destroy.call(t),p.destroy(t.wrapper),t.wrapper.remove(),t.wrapper=t.element=e()},_destroy:function(){var e=this,t="."+w;e.wrapper.off(t),e.element.off(t),e.wrapper.find(x+","+I+" > "+M).off(t),e._stopCenterOnResize()},title:function(t){var n=this,i=n.wrapper,o=n.options,a=i.children(E),s=a.children(A),l=p.htmlEncode(t);return arguments.length?(t===!1?(a.remove(),i.addClass(D)):(a.length||(a=e(r.titlebar(o)).prependTo(i),s=a.children(A),i.removeClass(D)),s.html(l)),n.options.title=l,n):s.html()},content:function(e,t){var i=this,o=i.wrapper.children(S);return n(e)?(this.angular("cleanup",function(){return{elements:o.children()}}),p.destroy(o.children()),o.html(e),this.angular("compile",function(){var e,n=[];for(e=o.length;--e>=0;)n.push({dataItem:t});return{elements:o.children(),data:n}}),i.options.content=e,i):o.html()},_focusDialog:function(){this._defaultFocus&&this._focus(this._defaultFocus),this._tabKeyTrap.trap()},_focus:function(e){e&&e.focus()},events:[O,U,j,q,G],options:{title:"",buttonLayout:"stretched",actions:[],modal:!0,size:"auto",width:null,height:null,minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,content:null,visible:null,appendTo:N,closable:!0}}),ne=te.extend({options:{name:"Dialog",messages:{close:"Close"}}});p.ui.plugin(ne),a=te.extend({_init:function(e,t){var n=this;n.wrapperTemplate=r.alertWrapper,t._defaultFocus=null,n._ensureContentId(e),te.fn._init.call(n,e,t),n.bind(G,m(n.destroy,n)),n._ariaDescribedBy(),n._initFocus()},_ensureContentId:function(t){var n=e(t);n.attr("id")||n.attr("id",p.guid()+"_k-popup")},_ariaDescribedBy:function(){this.wrapper.attr("aria-describedby",this.element.attr("id"))},_initFocus:function(){var e=this.options;this._defaultFocus=this._chooseEntryFocus(),this._defaultFocus&&e.visible&&e.modal&&this._focusDialog()},_chooseEntryFocus:function(){return this.wrapper.find(I+" > "+M)[0]},options:{title:window.location.host,closable:!1,messages:J}}),s=a.extend({_init:function(e,t){var n=this;a.fn._init.call(n,e,t),n.wrapper.addClass(R)},options:{name:"Alert",modal:!0,actions:[{text:"#: messages.okText #"}]}}),p.ui.plugin(s),l=function(t){return e(r.alert).kendoAlert({content:t}).data("kendoAlert").open()},d=a.extend({_init:function(t,n){var i=this;a.fn._init.call(i,t,n),i.wrapper.addClass(F),i.result=e.Deferred()},options:{name:"Confirm",modal:!0,actions:[{text:"#: messages.okText #",primary:!0,action:function(e){e.sender.result.resolve()}},{text:"#: messages.cancel #",action:function(e){e.sender.result.reject()}}]}}),p.ui.plugin(d),c=function(t){var n=e(r.confirm).kendoConfirm({content:t}).data("kendoConfirm").open();return n.result},u=a.extend({_init:function(t,n){var i=this;a.fn._init.call(i,t,n),i.wrapper.addClass(P),i._createPrompt(),i.result=e.Deferred()},_createPrompt:function(){var t=this.options.value,n=e(r.promptInputContainer(this.options)).insertAfter(this.element);t&&n.children(z).val(t),this._defaultFocus=this._chooseEntryFocus(),this._focusDialog()},_chooseEntryFocus:function(){return this.wrapper.find(z)[0]},options:{name:"Prompt",modal:!0,value:"",actions:[{text:"#: messages.okText #",primary:!0,action:function(e){var t=e.sender,n=t.wrapper.find(z).val();t.result.resolve(n)}},{text:"#: messages.cancel #",action:function(e){var t=e.sender,n=t.wrapper.find(z).val();e.sender.result.reject(n)}}]}}),p.ui.plugin(u),h=function(t,n){var i=e(r.prompt).kendoPrompt({content:t,value:n}).data("kendoPrompt").open();return i.result},r={wrapper:v("
"),action:v(" "),titlebar:v(""),
close:v(" "),actionbar:v("
"),overlay:"
",alertWrapper:v("
"),alert:"
",confirm:"
",prompt:"
",promptInputContainer:v("
")},p.alert=l,p.confirm=c,p.prompt=h}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,n){(n||t)()}),function(e,define){define("kendo.grid.min",["kendo.data.min","kendo.columnsorter.min","kendo.editable.min","kendo.window.min","kendo.filtermenu.min","kendo.columnmenu.min","kendo.groupable.min","kendo.pager.min","kendo.selectable.min","kendo.sortable.min","kendo.reorderable.min","kendo.resizable.min","kendo.ooxml.min","kendo.excel.min","kendo.pane.min","kendo.progressbar.min","kendo.pdf.min","kendo.dialog.min","kendo.pane.min","kendo.switch.min"],e)}(function(){return function(e,t){function n(e,t){return"["+Be.attr(e)+"="+t+"]"}function i(e){return Array(e+1).join(' ')}function o(e){var t,n=" ";if(e){if(typeof e===un)return e;for(t in e)""!==e[t]&&(n+=t+'="'+e[t]+'"')}return n}function r(t,n){e("th, th .k-grid-filter, th .k-link",t).add(document.body).css("cursor",n)}function a(t,n,i,o,r){var a,s=n;for(n=e(),r=r||1,a=0;a0}function w(e){return Ye(e,function(e){var t=!e.hidden&&e.matchesMedia!==!1;return t&&e.columns&&(t=w(e.columns).length>0),t})}function k(e){var t,n,i=[];for(n=0;no?r-(i-o)||1:r+(o-i):i>o?r+(i-o):r-(o-i)||1}function S(t,n,i,o,r,a,s,l){var d,c,u=D(t),h=D([n]);u>h&&(d=Array(s+1).join(''),c=a.children(":not(.k-filter-row)"),e(Array(u-h+1).join(""+d+" ")).insertAfter(c.last())),O(a,u-h),A(i,o,r,a,l)}function T(t,n,i){var o,r,a,s,l,d,c,u;for(i=i||0,a=n,n=Y(n),s={},l=t.find(">tr:not(.k-filter-row)"),d=function(){var t=e(this);return!t.hasClass("k-group-cell")&&!t.hasClass("k-hierarchy-cell")},c=0,u=n.length;co&&(o=n));return i+o}function A(t,n,i,o,r){var a,s,l=R(t[0],n),d=i.find(">tr:not(.k-filter-row):eq("+l.row+")>th.k-header"),c=e(),u=l.cell;for(a=0;atr:not(.k-filter-row)").eq(l.row)[r](c),s=[],a=0;a-1&&t0||0===s&&!i)&&s++,l=Xe(n,a),t=I(a,s,n,l>s),d=Xe(t,o),(!t.columns||d&&d!==a.length-1)&&t&&t!=n&&t.columns?M(e,t,n,i,o):null)}function R(e,t,n,i){var o,r;for(n=n||0,i=i||{},i[n]=i[n]||0,r=0;r1&&(o[i].rowSpan=n-t||1)}function O(e,t){var n,i=e.find("tr:not(.k-filter-row) th:not(.k-group-cell,.k-hierarchy-cell)");for(n=0;n1&&(r[n].rowSpan-=o);return i.length-o}function W(e,t,n,i,o){var r,a,s,l=[];for(r=0,s=e.length;rtr:not(.k-filter-row)"),r=function(){var t=e(this);return!t.hasClass("k-group-cell")&&!t.hasClass("k-hierarchy-cell")},a=e();return o.length>1&&(a=o.find("th").filter(r).filter(function(){return this.rowSpan>1})),a=a.add(o.last().find("th").filter(r)),i=Be.attr("index"),a.sort(function(n,o){var r,a;return n=e(n),o=e(o),r=n.attr(i),a=o.attr(i),r===t&&(r=e(n).index()),a===t&&(a=e(o).index()),r=parseInt(r,10),a=parseInt(a,10),r>a?1:r0){for(n=h.eq(p-1),i=n.find("th:not(.k-group-cell,.k-hierarchy-cell)").filter(function(){return!e(this).attr("rowspan")}),o=0,r=u.find("th:not(.k-group-cell,.k-hierarchy-cell)").index(t),a=t.prevAll(":not(.k-group-cell,.k-hierarchy-cell)").filter(function(){return this.colSpan>1}),s=0;s =s&&r1&&(s-=l-1),o++}return c}function ee(t,n,i,o){var r,a=t;return o&&t.empty(),Oe?t[0].innerHTML=i:(r=document.createElement("div"),r.innerHTML="",t=r.firstChild.firstChild,n[0].replaceChild(t,a[0]),t=e(t)),t}function te(e){e=e||{};var t=e.style;return t?(t=t.replace(/display:[^;]*/i,"display:none"),t.match(/display:/i)||(t=t.replace(/(.*)?/i,"display:none;$1"))):t="display:none",$e({},e,{style:t})}function ne(e){e=e||{};var t=e.style||"";return t.indexOf("display:none")!==-1}function ie(e){e=e||{};var t=e.style;return t&&(e.style=t.replace(/(display\s*:\s*none\s*;?)*/gi,"")),e}function oe(t,n,i,o){var r,a=t.find(">colgroup"),s=Ke(n,function(e){return r=e.width,r&&0!==parseInt(r,10)?Be.format(' ',typeof r===un?r:r+"px"):" "});(i||a.find(".k-hierarchy-col").length)&&s.splice(0,0,' '),a.length&&a.remove(),a=e(Array(o+1).join(' ')+s.join("")),a.is("colgroup")||(a=e(" ").append(a)),t.prepend(a),Vn.msie&&8==Vn.version&&(t.css("display","inline-table"),window.setTimeout(function(){t.css("display","")},1))}function re(e,t){var n,i,o=0,r=e.find("th:not(.k-group-cell)");for(n=0,i=t.length;nform>table"),w(r),!1,0),o=i.find("tr:first")),le(o[0].cells,n,!0))}function pe(e,t,n){n=n||1;var i,o,r;for(o=0,r=e.length;ocolgroup>col");for(t=0,n=o.length;ti?(o=t.rows[t.rows.length-1],Bn.test(o.className)&&(o=t.rows[t.rows.length-2]),r=n-i):(o=e.rows[e.rows.length-1],Bn.test(o.className)&&(o=e.rows[e.rows.length-2]),r=i-n),o.style.height=o.offsetHeight+r+"px")}function me(e,t){var n,i=e.offsetHeight,o=t.offsetHeight;i>o?n=i+"px":i.k-icon,textarea,span.k-select,span.k-icon,span.k-link,label.k-checkbox-label,.k-input,.k-multiselect-wrap,.k-picker-wrap,.k-picker-wrap>.k-selected-color,.k-tool-icon,.k-dropdown")}function xe(n){var i=e(n.currentTarget),o=i.is("th"),r=this.table.add(this.lockedTable),a=this.thead.parent().add(e(">table",this.lockedHeader)),s=ye(n.target),l=e(n.target).is(".k-checkbox"),d=e(n.target),c=i.closest("table")[0];return s&&i.find(Be.roleSelector("filtercell")).length?(this._setCurrent(i),t):(c!==r[0]&&c!==r[1]&&c!==a[0]&&c!==a[1]||d.is("a.k-i-expand, a.k-i-collapse")||(this.options.navigatable&&this._setCurrent(i,!1,l),!o&&s||setTimeout(function(){Un&&e(Be._activeElement()).hasClass("k-widget")||!e(Be._activeElement()).is(Gt)&&ye(Be._activeElement())&&e.contains(c,Be._activeElement())||_e(c,!0)}),o&&!Be.support.touch&&n.preventDefault()),t)}function Ce(e,t){if(!t)return 0;var n=0;return Be.support.browser.webkit&&(n=e.width()),n}function Se(e){var n;return"string"==typeof e?(n=e.toLowerCase(),"true"===n?{rows:!0}:{rows:n.indexOf("rows")>-1,columns:n.indexOf("columns")>-1}):e===!0?{rows:!0}:t}function Te(t,n){var i,o;return!!t&&(n=e(n),!!(n[0]&&nt(t[0],n[0])&&(i=n.offset().top-t.offset().top,o=n.outerHeight()/2,(i>=0||it.abs(i)<=o)&&it.floor(i+o)<=t.height())))}function De(e){return e&&(e.hasClass("k-edit-cell")||e.parent().hasClass("k-grid-edit-row"))}function Ae(e){return' #=data.text#
'}function Ee(e){return'
'}function Ie(e,t,n,o,r,a){return''+i(t)+' '+n+"
"}function Me(e){return'
'}var Re,Fe,Pe,ze,Be=window.kendo,Le=Be.ui,He=Be.data.DataSource,Ne=Be.data.ObservableObject,Oe=Be.support.tbodyInnerHtml,Ve=Be._activeElement,We=Le.Widget,Ue=Be._outerWidth,je=Be._outerHeight,qe=Be.keys,Ge=e.isPlainObject,$e=e.extend,Ke=e.map,Ye=e.grep,Qe=e.isArray,Xe=e.inArray,Je=Array.prototype.push,Ze=e.proxy,et=Be.isFunction,tt=e.isEmptyObject,nt=e.contains,it=Math,ot=".",rt="progress",at="error",st="k-hierarchy-cell",lt=":not(.k-group-cell):not(["+Be.attr("virtual")+"]):not(.k-hierarchy-cell:not(:has(.k-icon.k-i-collapse,.k-icon.k-i-expand))):visible",dt="tbody>tr:not(.k-grouping-row):not(.k-detail-row):not(.k-group-footer) > td:not(.k-group-cell):not(.k-hierarchy-cell)",ct="tr:not(.k-footer-template):visible",ut=":not(.k-group-cell):not(.k-detail-cell):not(.k-hierarchy-cell):visible",ht="tr:not(.k-grouping-row):not(.k-detail-row):not(.k-footer-template):not(.k-group-footer):visible",pt=ht+":first",ft=ht+":last",gt=ct+":first>"+ut+":first",mt="th.k-header:not(.k-group-cell):not(.k-hierarchy-cell)",vt=".kendoGrid",_t="k-grid-content-locked",bt="k-group-cell",wt="edit",kt="beforeEdit",yt="save",xt="remove",Ct="detailInit",St="filterMenuInit",Tt="columnMenuInit",Dt="filterMenuOpen",At="columnMenuOpen",Et="cellClose",It="change",Mt="columnHide",Rt="columnShow",Ft="saveChanges",Pt="dataBound",zt="detailExpand",Bt="detailCollapse",Lt="itemchange",Ht="page",Nt="paging",Ot="scroll",Vt="sync",Wt="k-state-focused",Ut=":kendoFocusable",jt="k-state-selected",qt="k-checkbox",Gt="input[data-role='checkbox']."+qt,$t="k-grid-norecords",Kt="k-link",Yt="k-icon",Qt="k-sort-order",Xt="k-header-column-menu",Jt="k-grid-filter",Zt="resize",en="columnResize",tn="columnReorder",nn="columnLock",on="columnUnlock",rn="navigate",an="click",sn="mousedown",ln="height",dn="tabIndex",cn="function",un="string",hn="bottom",pn="container-for",fn="field",gn="input",mn="incell",vn="inline",_n="uid",bn=1,wn="colSpan",kn="overflow",yn="hidden",xn="sort",Cn="group-sort",Sn="Are you sure you want to delete this record?",Tn="No records available.",Dn="Delete",An="Cancel",En="Collapse",In="Expand",Mn="aria-label",Rn=/(\}|\#)/gi,Fn=/#/gi,Pn="[\\x20\\t\\r\\n\\f]",zn=RegExp("(^|"+Pn+")(k-group-cell|k-hierarchy-cell)("+Pn+"|$)"),Bn=RegExp("(^|"+Pn+")(k-filter-row)("+Pn+"|$)"),Ln='# if (iconClass) {# #=text# # } else { ##=text# # } #',Hn=' ',Nn=' ',On=!1,Vn=Be.support.browser,Wn=Vn.msie&&7==Vn.version,Un=Vn.msie&&8==Vn.version,jn=Vn.msie&&11===Vn.version,qn=/Mac OS/.test(navigator.userAgent),Gn={content:"k-content",widget:"k-widget",scrollContainer:"k-scroll-container"};Le.Pager&&(Re=Le.Pager.extend({init:function(e,t){Le.Pager.fn.init.call(this,e,$e(!0,{},t)),this.dataSource.options.useRanges=!0,this.dataSource._omitPrefetch=!0},options:{name:"GroupsPager"},totalPages:function(){var e=this;return Math.ceil((e._collapsedTotal()||0)/(e.pageSize()||1))},_collapsedTotal:function(){var e=this.dataSource;return e?e.groupsTotal(!0)||0:0}})),Fe=We.extend({init:function(e,t){var n=this;We.fn.init.call(n,e,t),n._refreshHandler=Ze(n.refresh,n),n.setDataSource(t.dataSource),n.wrap()},setDataSource:function(e){var t=this;t.dataSource&&t.dataSource.unbind(It,t._refreshHandler),t.dataSource=e,t.dataSource.bind(It,t._refreshHandler),t.dataSource.options.useRanges=!0},options:{name:"VirtualScrollable",itemHeight:e.noop,prefetch:!0,maxScrollHeight:25e4},events:[Nt,Ht,Ot],destroy:function(){var e=this;We.fn.destroy.call(e),e.dataSource.unbind(It,e._refreshHandler),e.wrapper.add(e.verticalScrollbar).off(vt),clearTimeout(e._timeout),e._scrollingTimeout&&clearTimeout(e._scrollingTimeout),e.drag&&(e.drag.destroy(),e.drag=null),e.wrapper=e.element=e.verticalScrollbar=null,e._refreshHandler=null},wrap:function(){var t,n=this,i=Be.support.scrollbar()+1,o=n.element;o.css({width:"auto",overflow:"hidden"}).css(On?"padding-left":"padding-right",i),n.content=o.children().first(),t=n.wrapper=n.content.wrap('
').parent().bind("DOMMouseScroll"+vt+" mousewheel"+vt,Ze(n._wheelScroll,n)),n._wrapper(),(Be.support.kineticScrollNeeded||Be.support.touch)&&(n.wrapper.css("touch-action","none"),n.drag=new Be.UserEvents(n.wrapper,{global:!0,allowSelection:!0,start:function(e){e.sender.capture()},move:function(e){n.verticalScrollbar.scrollTop(n.verticalScrollbar.scrollTop()-e.y.delta),t.scrollLeft(t.scrollLeft()-e.x.delta),e.preventDefault()}})),n.verticalScrollbar=e('
').css({width:i}).appendTo(o).bind("scroll"+vt,Ze(n._scroll,n))},_wrapper:function(){var e=this;jn&&(e.wrapper.css({"overflow-y":Ot}),e.element.css(On?"padding-left":"padding-right",0))},_wheelScroll:function(e){if(!e.ctrlKey){var t=this.verticalScrollbar,n=t.scrollTop(),i=Be.wheelDeltaY(e);!i||i>0&&0===n||i<0&&n+t[0].clientHeight==t[0].scrollHeight||(e.preventDefault(),this.verticalScrollbar.scrollTop(n+-i))}},_scroll:function(e){var n=this,i=!n.options.prefetch,o=e.currentTarget.scrollTop,r=n.dataSource,a=n.itemHeight,s=r.skip()||0,l=n._rangeStart||s,d=n.element.innerHeight(),c=!!(n._scrollbarTop&&n._scrollbarTop>o),u=it.max(it.floor(o/a),0),h=c?it.ceil(d/a):it.floor(d/a),p=it.max(u+h,0);return n._preventScroll?(n._preventScroll=!1,t):(n._prevScrollTop=n._scrollTop,n._scrollTop=o-l*a,n._scrollbarTop=o,n._scrolling=i,n._fetch(u,p,c)||(n.wrapper[0].scrollTop=n._scrollTop),n.trigger(Ot),i&&(n._scrollingTimeout&&clearTimeout(n._scrollingTimeout),n._scrollingTimeout=setTimeout(function(){n._scrolling=!1,n._page(n._rangeStart,n.dataSource.take())},100)),t)},scrollToTop:function(){this._scrollTo(0)},scrollToBottom:function(){var e=this.verticalScrollbar;this._scrollTo(e[0].scrollHeight-e.height())},_scrollWrapperToTop:function(){this.wrapper.scrollTop(0)},_scrollWrapperToBottom:function(){this.wrapper.scrollTop(this.wrapper[0].scrollHeight)},_scrollWrapperOnColumnResize:function(){var e=this,t=this.wrapper,n=t.scrollTop();t[0].scrollWidth>t[0].clientWidth?(!e._wrapperScrolled&&n||e._isScrolledToBottom())&&(t.scrollTop(n+Be.support.scrollbar()),e._scrollTop=t.scrollTop(),e._wrapperScrolled=!0):e._wrapperScrolled&&(e._isWrapperScrolledToBottom()||(t.scrollTop(n-Be.support.scrollbar()),e._scrollTop=t.scrollTop()),e._wrapperScrolled=!1)},_scrollTo:function(e){var t=this,n=t.verticalScrollbar;n.scrollTop()!==e&&(t._preventScroll=!0),t.wrapper.scrollTop(e),t._scrollTop=t.wrapper.scrollTop(),n.scrollTop(e),t._scrollbarTop=n.scrollTop()},_isScrolledToTop:function(){return 0===this.verticalScrollbar.scrollTop()},_isScrolledToBottom:function(){var e=this.verticalScrollbar,t=e.scrollTop();return t>0&&t>=parseInt(e[0].scrollHeight-e.height(),10)},_isWrapperScrolledToBottom:function(){var e=this.wrapper;return e.scrollTop()>=parseInt(e[0].scrollHeight-e.height(),10)},itemIndex:function(e){var t=this._rangeStart||this.dataSource.skip()||0;return t+e},position:function(e){var t,n=this._rangeStart||this.dataSource.skip()||0,i=this.dataSource.pageSize();return t=e>n?e-n:n-e-1,t>i?i:t},scrollIntoView:function(e){var t=this.wrapper[0],n=t.clientHeight,i=this._isScrolledToBottom()?t.scrollTop:this._scrollTop||t.scrollTop,o=e[0].offsetTop,r=e[0].offsetHeight;i>o?this.verticalScrollbar[0].scrollTop-=n/2:o+r>=i+n&&(this.verticalScrollbar[0].scrollTop+=n/2)},_fetch:function(t,n,i){var o=this,r=o.dataSource,a=o.itemHeight,s=r.take(),l=o._rangeStart||r.skip()||0,d=it.floor(t/s)*s,c=!1,u=.33,h=o.verticalScrollbar,p=Vn.webkit?1:0,f=r._isGroupPaged()?r.groupsTotal(!0):r.total();return t=l+s&&!i?(c=!0,l=it.min(t,f-s),o._scrollTop=h.scrollTop()>=h[0].scrollHeight-h[0].offsetHeight-p?o.wrapper[0].scrollHeight-o.wrapper[0].offsetHeight:o.dataSource._isGroupPaged()&&t>=f-s?o.wrapper[0].scrollHeight-o.wrapper[0].offsetHeight-(o._scrollTop-o._prevScrollTop):a,o._page(l,s)):!o._fetching&&o.options.prefetch&&(ts&&r.prefetch(d-s,s,e.noop),n>d+s*u&&r.prefetch(d+s,s,e.noop)),c},fetching:function(){return this._fetching},_page:function(t,n,i){var o=this,r=!o.options.prefetch,a=o.dataSource,s=a._isGroupPaged();i=et(i)?i:e.noop,o.trigger(Nt,{skip:t,take:n})||(clearTimeout(o._timeout),o._fetching=!0,o._rangeStart=t,s&&a._groupRangeExists()||!s&&a.inRange(t,n)?(Be.ui.progress(e(o.wrapper).parent(),!0),a.range(t,n,function(){Be.ui.progress(e(o.wrapper).parent(),!1),i(),o.trigger(Ht)},"page")):(r||Be.ui.progress(o.wrapper.parent(),!0),o._timeout=setTimeout(function(){o._scrolling||(r&&Be.ui.progress(o.wrapper.parent(),!0),a.range(t,n,function(){Be.ui.progress(o.wrapper.parent(),!1),i(),o.trigger(Ht)}))},100)))},repaintScrollbar:function(e){var n,i=this,o="",r=i.options.maxScrollHeight,a=i.dataSource,s=Be.support.kineticScrollNeeded?0:Be.support.scrollbar(),l=i.wrapper[0],d=i._isScrolledToBottom(),c=i.itemHeight=i.options.itemHeight()||0,u=l.scrollWidth>l.offsetWidth?s:0,h=(a._isGroupPaged()?a.groupsTotal(!0):a.total())*c+u;for(n=0;n ';h%r&&(o+='