/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. 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.pager.min",["kendo.data.min"],e)}(function(){return function(e,t){function a(e,t,a,n,s){return e({idx:t,text:a,ns:p.ns,numeric:n,title:s||""})}function n(e,t,a){return b({className:e.substring(1),text:t,wrapClassName:a||""})}function s(e,t,a,n){e.find(t).parent().attr(p.attr("page"),a).attr("tabindex",-1).toggleClass("k-state-disabled",n)}function i(e,t){s(e,u,1,t<=1)}function l(e,t){s(e,f,Math.max(1,t-1),t<=1)}function r(e,t,a){s(e,k,Math.min(a,t+1),t>=a)}function o(e,t,a){s(e,c,a,t>=a)}var p=window.kendo,g=p.ui,d=g.Widget,m=e.proxy,u=".k-i-seek-w",c=".k-i-seek-e",f=".k-i-arrow-w",k=".k-i-arrow-e",h="change",v=".kendoPager",x="click",S="keydown",w="disabled",b=p.template('<a href="\\#" aria-label="#=text#" title="#=text#" class="k-link k-pager-nav #= wrapClassName #"><span class="k-icon #= className #"></span></a>'),P=d.extend({init:function(t,a){var s,g,w,b,P=this;d.fn.init.call(P,t,a),a=P.options,P.dataSource=p.data.DataSource.create(a.dataSource),P.linkTemplate=p.template(P.options.linkTemplate),P.selectTemplate=p.template(P.options.selectTemplate),P.currentPageTemplate=p.template(P.options.currentPageTemplate),s=P.page(),g=P.totalPages(),P._refreshHandler=m(P.refresh,P),P.dataSource.bind(h,P._refreshHandler),a.previousNext&&(P.element.find(u).length||(P.element.append(n(u,a.messages.first,"k-pager-first")),i(P.element,s,g)),P.element.find(f).length||(P.element.append(n(f,a.messages.previous)),l(P.element,s,g))),a.numeric&&(P.list=P.element.find(".k-pager-numbers"),P.list.length||(P.list=e('<ul class="k-pager-numbers k-reset" />').appendTo(P.element))),a.input&&(P.element.find(".k-pager-input").length||P.element.append('<span class="k-pager-input k-label">'+a.messages.page+'<input class="k-textbox">'+p.format(a.messages.of,g)+"</span>"),P.element.on(S+v,".k-pager-input input",m(P._keydown,P))),a.previousNext&&(P.element.find(k).length||(P.element.append(n(k,a.messages.next)),r(P.element,s,g)),P.element.find(c).length||(P.element.append(n(c,a.messages.last,"k-pager-last")),o(P.element,s,g))),a.pageSizes&&(P.element.find(".k-pager-sizes").length||(w=a.pageSizes.length?a.pageSizes:["all",5,10,20],b=e.map(w,function(e){return e.toLowerCase&&"all"===e.toLowerCase()?"<option value='all'>"+a.messages.allPages+"</option>":"<option>"+e+"</option>"}),e('<span class="k-pager-sizes k-label"><select/>'+a.messages.itemsPerPage+"</span>").appendTo(P.element).find("select").html(b.join("")).end().appendTo(P.element)),P.element.find(".k-pager-sizes select").val(P.pageSize()),p.ui.DropDownList&&P.element.find(".k-pager-sizes select").show().kendoDropDownList(),P.element.on(h+v,".k-pager-sizes select",m(P._change,P))),a.refresh&&(P.element.find(".k-pager-refresh").length||P.element.append('<a href="#" class="k-pager-refresh k-link" title="'+a.messages.refresh+'"><span class="k-icon k-i-refresh">'+a.messages.refresh+"</span></a>"),P.element.on(x+v,".k-pager-refresh",m(P._refreshClick,P))),a.info&&(P.element.find(".k-pager-info").length||P.element.append('<span class="k-pager-info k-label" />')),P.element.on(x+v,"a",m(P._click,P)).addClass("k-pager-wrap k-widget k-floatwrap"),P.element.on(x+v,".k-current-page",m(P._toggleActive,P)),a.autoBind&&P.refresh(),p.notify(P)},destroy:function(){var e=this;d.fn.destroy.call(e),e.element.off(v),e.dataSource.unbind(h,e._refreshHandler),e._refreshHandler=null,p.destroy(e.element),e.element=e.list=null},events:[h],options:{name:"Pager",selectTemplate:'<li><span class="k-state-selected">#=text#</span></li>',currentPageTemplate:'<li class="k-current-page"><span class="k-link k-pager-nav">#=text#</span></li>',linkTemplate:'<li><a tabindex="-1" href="\\#" class="k-link" data-#=ns#page="#=idx#" #if (title !== "") {# title="#=title#" #}#>#=text#</a></li>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,messages:{allPages:"All",display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh",morePages:"More pages"}},setDataSource:function(e){var t=this;t.dataSource.unbind(h,t._refreshHandler),t.dataSource=t.options.dataSource=e,e.bind(h,t._refreshHandler),t.options.autoBind&&e.fetch()},refresh:function(e){var t,n,s,g,d,m,u=this,c=1,f=u.page(),k="",h=u.options,v=u.pageSize(),x=u.dataSource.total(),S=u.totalPages(),b=u.linkTemplate,P=h.buttonCount;if(!e||"itemchange"!=e.action){if(h.numeric){for(f>P&&(s=f%P,c=0===s?f-P+1:f-s+1),n=Math.min(c+P-1,S),c>1&&(k+=a(b,c-1,"...",!1,h.messages.morePages)),t=c;t<=n;t++)k+=a(t==f?u.selectTemplate:b,t,t,!0);n<S&&(k+=a(b,t,"...",!1,h.messages.morePages)),""===k&&(k=u.selectTemplate({text:0})),k=this.currentPageTemplate({text:f})+k,u.list.removeClass("k-state-expanded").html(k)}h.info&&(k=x>0?p.format(h.messages.display,Math.min((f-1)*v+1,x),Math.min(f*v,x),x):h.messages.empty,u.element.find(".k-pager-info").html(k)),h.input&&u.element.find(".k-pager-input").html(u.options.messages.page+'<input class="k-textbox">'+p.format(h.messages.of,S)).find("input").val(f).attr(w,x<1).toggleClass("k-state-disabled",x<1),h.previousNext&&(i(u.element,f,S),l(u.element,f,S),r(u.element,f,S),o(u.element,f,S)),h.pageSizes&&(g=u.element.find(".k-pager-sizes option[value='all']").length>0,d=g&&v===this.dataSource.total(),m=v,d&&(v="all",m=h.messages.allPages),u.element.find(".k-pager-sizes select").val(v).filter("["+p.attr("role")+"=dropdownlist]").kendoDropDownList("value",v).kendoDropDownList("text",m))}},_keydown:function(e){if(e.keyCode===p.keys.ENTER){var t=this.element.find(".k-pager-input").find("input"),a=parseInt(t.val(),10);(isNaN(a)||a<1||a>this.totalPages())&&(a=this.page()),t.val(a),this.page(a)}},_refreshClick:function(e){e.preventDefault(),this.dataSource.read()},_change:function(e){var t=e.currentTarget.value,a=parseInt(t,10),n=this.dataSource;isNaN(a)?"all"==(t+"").toLowerCase()&&n.pageSize(n.total()):n.pageSize(a)},_toggleActive:function(){this.list.toggleClass("k-state-expanded")},_click:function(t){var a=e(t.currentTarget);t.preventDefault(),a.is(".k-state-disabled")||this.page(a.attr(p.attr("page")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/(this.pageSize()||1))},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(e){return e===t?this.dataSource.total()>0?this.dataSource.page():0:(this.trigger("pageChange",{index:e})||(this.dataSource.page(e),this.trigger(h,{index:e})),t)}});g.plugin(P)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t,a){(a||t)()});
//# sourceMappingURL=kendo.pager.min.js.map
