(function(e,t,undefined){function a(t){var a=e(t.table);a.find("> tbody"),this.pageNavigation=a.data("page-navigation")||t.options.pageNavigation,this.pageSize=a.data("page-size")||t.options.pageSize,this.firstText=a.data("page-first-text")||t.options.firstText,this.previousText=a.data("page-previous-text")||t.options.previousText,this.nextText=a.data("page-next-text")||t.options.nextText,this.lastText=a.data("page-last-text")||t.options.lastText,this.currentPage=0,this.pages=[],this.control=!1}function i(){var t=this;t.name="Footable Paginate",t.init=function(i){i.options.paginate===!0&&e(i.table).bind({footable_initialized:function(){i.pageInfo=new a(i),i.raise("footable_setup_paging")},"footable_row_removed footable_redrawn footable_sorted footable_filtered footable_setup_paging":function(){i.pageInfo&&t.setupPaging(i)}})},t.setupPaging=function(a){var i=e(a.table).find("> tbody");t.createPages(a,i),t.createNavigation(a,i),t.fillPage(a,i,a.pageInfo.currentPage)},t.createPages=function(t,a){var i=1,o=t.pageInfo,n=i*o.pageSize,r=[],l=[];o.pages=[];var d=a.find("> tr:not(.footable-filtered,.footable-row-detail)");d.each(function(e,t){r.push(t),e===n-1?(o.pages.push(r),i++,n=i*o.pageSize,r=[]):e>=d.length-d.length%o.pageSize&&l.push(t)}),l.length>0&&o.pages.push(l),o.currentPage>=o.pages.length&&(o.currentPage=o.pages.length-1),0>o.currentPage&&(o.currentPage=0),1===o.pages.length?e(t.table).addClass("no-paging"):e(t.table).removeClass("no-paging")},t.createNavigation=function(a){var i=e(a.table).find(a.pageInfo.pageNavigation);if(0===i.length){if(i=e(a.pageInfo.pageNavigation),i.parents("table:first")!==e(a.table))return;i.length>1&&a.options.debug===!0&&console.error("More than one pagination control was found!")}if(0!==i.length){i.is("ul")||(0===i.find("ul:first").length&&i.append("