(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof module==="object"&&typeof module.exports==="object"){module.exports=factory(require("jquery"))}else{factory(jQuery)}})(function(jQuery){(function($,window,document){"use strict";var ts=$.tablesorter||{};$.extend(true,ts.defaults,{fixedUrl:"",widgetOptions:{storage_fixedUrl:"",storage_group:"",storage_page:"",storage_storageType:"",storage_tableId:"",storage_useSessionStorage:""}});ts.storage=function(table,key,value,options){table=$(table)[0];var cookieIndex,cookies,date,hasStorage=false,values={},c=table.config,wo=c&&c.widgetOptions,debug=ts.debug(c,"storage"),storageType=(options&&options.storageType||wo&&wo.storage_storageType).toString().charAt(0).toLowerCase(),session=storageType?"":options&&options.useSessionStorage||wo&&wo.storage_useSessionStorage,$table=$(table),id=options&&options.id||$table.attr(options&&options.group||wo&&wo.storage_group||"data-table-group")||wo&&wo.storage_tableId||table.id||$(".tablesorter").index($table),url=options&&options.url||$table.attr(options&&options.page||wo&&wo.storage_page||"data-table-page")||wo&&wo.storage_fixedUrl||c&&c.fixedUrl||window.location.pathname;if(storageType!=="c"){storageType=storageType==="s"||session?"sessionStorage":"localStorage";if(storageType in window){try{window[storageType].setItem("_tmptest","temp");hasStorage=true;window[storageType].removeItem("_tmptest")}catch(error){console.warn(storageType+" is not supported in this browser")}}}if(debug){console.log("Storage >> Using",hasStorage?storageType:"cookies")}if(hasStorage){values=JSON.parse(window[storageType][key]||"null")||{}}else{cookies=document.cookie.split(/[;\s|=]/);cookieIndex=$.inArray(key,cookies)+1;values=cookieIndex!==0?JSON.parse(cookies[cookieIndex]||"null")||{}:{}}if(typeof value!=="undefined"&&window.JSON&&JSON.hasOwnProperty("stringify")){if(!values[url]){values[url]={}}values[url][id]=value;if(hasStorage){window[storageType][key]=JSON.stringify(values)}else{date=new Date;date.setTime(date.getTime()+31536e6);document.cookie=key+"="+JSON.stringify(values).replace(/\"/g,'"')+"; expires="+date.toGMTString()+"; path=/"}}else{return values&&values[url]?values[url][id]:""}}})(jQuery,window,document);(function($){"use strict";var ts=$.tablesorter||{};ts.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"glyphicon glyphicon-chevron-up",iconSortDesc:"glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}};$.extend(ts.css,{wrapper:"tablesorter-wrapper"});ts.addWidget({id:"uitheme",priority:10,format:function(table,c,wo){var i,tmp,hdr,icon,time,$header,$icon,$tfoot,$h,oldtheme,oldremove,oldIconRmv,hasOldTheme,themesAll=ts.themes,$table=c.$table.add($(c.namespace+"_extra_table")),$headers=c.$headers.add($(c.namespace+"_extra_headers")),theme=c.theme||"jui",themes=themesAll[theme]||{},remove=[themes.sortNone,themes.sortDesc,themes.sortAsc,themes.active].join(" ").trim(),iconRmv=[themes.iconSortNone,themes.iconSortDesc,themes.iconSortAsc].join(" ").trim(),debug=ts.debug(c,"uitheme");if(debug){time=new Date}if(!$table.hasClass("tablesorter-"+theme)||c.theme!==c.appliedTheme||!wo.uitheme_applied){wo.uitheme_applied=true;oldtheme=themesAll[c.appliedTheme]||{};hasOldTheme=!$.isEmptyObject(oldtheme);oldremove=hasOldTheme?[oldtheme.sortNone,oldtheme.sortDesc,oldtheme.sortAsc,oldtheme.active].join(" "):"";oldIconRmv=hasOldTheme?[oldtheme.iconSortNone,oldtheme.iconSortDesc,oldtheme.iconSortAsc].join(" "):"";if(hasOldTheme){wo.zebra[0]=" "+wo.zebra[0].replace(" "+oldtheme.even,"").trim();wo.zebra[1]=" "+wo.zebra[1].replace(" "+oldtheme.odd,"").trim();c.$tbodies.children().removeClass([oldtheme.even,oldtheme.odd].join(" "))}if(themes.even){wo.zebra[0]+=" "+themes.even}if(themes.odd){wo.zebra[1]+=" "+themes.odd}$table.children("caption").removeClass(oldtheme.caption||"").addClass(themes.caption);$tfoot=$table.removeClass((c.appliedTheme?"tablesorter-"+(c.appliedTheme||""):"")+" "+(oldtheme.table||"")).addClass("tablesorter-"+theme+" "+(themes.table||"")).children("tfoot");c.appliedTheme=c.theme;if($tfoot.length){$tfoot.children("tr").removeClass(oldtheme.footerRow||"").addClass(themes.footerRow).children("th, td").removeClass(oldtheme.footerCells||"").addClass(themes.footerCells)}$headers.removeClass((hasOldTheme?[oldtheme.header,oldtheme.hover,oldremove].join(" "):"")||"").addClass(themes.header).not(".sorter-false").off("mouseenter.tsuitheme mouseleave.tsuitheme").on("mouseenter.tsuitheme mouseleave.tsuitheme",function(event){$(this)[event.type==="mouseenter"?"addClass":"removeClass"](themes.hover||"")});$headers.each(function(){var $this=$(this);if(!$this.find("."+ts.css.wrapper).length){$this.wrapInner('
')}});if(c.cssIcon){$headers.find("."+ts.css.icon).removeClass(hasOldTheme?[oldtheme.icons,oldIconRmv].join(" "):"").addClass(themes.icons||"")}if(ts.hasWidget(c.table,"filter")){tmp=function(){$table.children("thead").children("."+ts.css.filterRow).removeClass(hasOldTheme?oldtheme.filterRow||"":"").addClass(themes.filterRow||"")};if(wo.filter_initialized){tmp()}else{$table.one("filterInit",function(){tmp()})}}}for(i=0;i> Applied "+theme+" theme"+ts.benchmark(time))}},remove:function(table,c,wo,refreshing){if(!wo.uitheme_applied){return}var $table=c.$table,theme=c.appliedTheme||"jui",themes=ts.themes[theme]||ts.themes.jui,$headers=$table.children("thead").children(),remove=themes.sortNone+" "+themes.sortDesc+" "+themes.sortAsc,iconRmv=themes.iconSortNone+" "+themes.iconSortDesc+" "+themes.iconSortAsc;$table.removeClass("tablesorter-"+theme+" "+themes.table);wo.uitheme_applied=false;if(refreshing){return}$table.find(ts.css.header).removeClass(themes.header);$headers.off("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(themes.hover+" "+remove+" "+themes.active).filter("."+ts.css.filterRow).removeClass(themes.filterRow);$headers.find("."+ts.css.icon).removeClass(themes.icons+" "+iconRmv)}})})(jQuery);(function($){"use strict";var ts=$.tablesorter||{};ts.addWidget({id:"columns",priority:65,options:{columns:["primary","secondary","tertiary"]},format:function(table,c,wo){var $tbody,tbodyIndex,$rows,rows,$row,$cells,remove,indx,$table=c.$table,$tbodies=c.$tbodies,sortList=c.sortList,len=sortList.length,css=wo&&wo.columns||["primary","secondary","tertiary"],last=css.length-1;remove=css.join(" ");for(tbodyIndex=0;tbodyIndex<$tbodies.length;tbodyIndex++){$tbody=ts.processTbody(table,$tbodies.eq(tbodyIndex),true);$rows=$tbody.children("tr");$rows.each(function(){$row=$(this);if(this.style.display!=="none"){$cells=$row.children().removeClass(remove);if(sortList&&sortList[0]){$cells.eq(sortList[0][0]).addClass(css[0]);if(len>1){for(indx=1;indx=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(c,data,vars){if((tsfRegex.orTest.test(data.iFilter)||tsfRegex.orSplit.test(data.filter))&&!tsfRegex.regex.test(data.filter)){var indx,filterMatched,query,regex,data2=$.extend({},data),filter=data.filter.split(tsfRegex.orSplit),iFilter=data.iFilter.split(tsfRegex.orSplit),len=filter.length;for(indx=0;indx=query:cachedValue>query}else if(tsfRegex.ltTest.test(data.iFilter)){result=tsfRegex.lteTest.test(data.iFilter)?cachedValue<=query:cachedValue=0)}}return null},exact:function(c,data){if(tsfRegex.exact.test(data.iFilter)){var txt=data.iFilter.replace(tsfRegex.exact,""),filter=tsf.parseFilter(c,txt,data)||"";return data.anyMatch?$.inArray(filter,data.rowArray)>=0:filter==data.iExact}return null},range:function(c,data){if(tsfRegex.toTest.test(data.iFilter)){var result,tmp,range1,range2,table=c.table,index=data.index,parsed=data.parsed[index],query=data.iFilter.split(tsfRegex.toSplit);tmp=query[0].replace(ts.regex.nondigit,"")||"";range1=ts.formatFloat(tsf.parseFilter(c,tmp,data),table);tmp=query[1].replace(ts.regex.nondigit,"")||"";range2=ts.formatFloat(tsf.parseFilter(c,tmp,data),table);if(parsed||c.parsers[index].type==="numeric"){result=c.parsers[index].format(""+query[0],table,c.$headers.eq(index),index);range1=result!==""&&!isNaN(result)?result:range1;result=c.parsers[index].format(""+query[1],table,c.$headers.eq(index),index);range2=result!==""&&!isNaN(result)?result:range2}if((parsed||c.parsers[index].type==="numeric")&&!isNaN(range1)&&!isNaN(range2)){result=data.cache}else{tmp=isNaN(data.iExact)?data.iExact.replace(ts.regex.nondigit,""):data.iExact;result=ts.formatFloat(tmp,table)}if(range1>range2){tmp=range1;range1=range2;range2=tmp}return result>=range1&&result<=range2||(range1===""||range2==="")}return null},wild:function(c,data){if(tsfRegex.wildOrTest.test(data.iFilter)){var query=""+(tsf.parseFilter(c,data.iFilter,data)||"");if(!tsfRegex.wildTest.test(query)&&data.nestedFilters){query=data.isMatch?query:"^("+query+")$"}try{return new RegExp(query.replace(tsfRegex.wild01,"\\S{1}").replace(tsfRegex.wild0More,"\\S*"),c.widgetOptions.filter_ignoreCase?"i":"").test(data.exact)}catch(error){return null}}return null},fuzzy:function(c,data){if(tsfRegex.fuzzyTest.test(data.iFilter)){var indx,patternIndx=0,len=data.iExact.length,txt=data.iFilter.slice(1),pattern=tsf.parseFilter(c,txt,data)||"";for(indx=0;indx]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+($header.data("placeholder")||$header.attr("data-placeholder")||wo.filter_placeholder.select||"")+"":"";val=string;txt=string;if(string.indexOf(wo.filter_selectSourceSeparator)>=0){val=string.split(wo.filter_selectSourceSeparator);txt=val[1];val=val[0]}options+=""}}c.$table.find("thead").find("select."+tscss.filter+'[data-column="'+column+'"]').append(options);txt=wo.filter_selectSource;fxn=typeof txt==="function"?true:ts.getColumnData(table,txt,column);if(fxn){tsf.buildSelect(c.table,column,"",true,$header.hasClass(wo.filter_onlyAvail))}}}}}tsf.buildDefault(table,true);tsf.bindSearch(table,c.$table.find("."+tscss.filter),true);if(wo.filter_external){tsf.bindSearch(table,wo.filter_external)}if(wo.filter_hideFilters){tsf.hideFilters(c)}if(c.showProcessing){txt="filterStart filterEnd ".split(" ").join(c.namespace+"filter-sp ");c.$table.off(txt.replace(ts.regex.spaces," ")).on(txt,function(event,columns){$header=columns?c.$table.find("."+tscss.header).filter("[data-column]").filter(function(){return columns[$(this).data("column")]!==""}):"";ts.isProcessing(table,event.type==="filterStart",columns?$header:"")})}c.filteredRows=c.totalRows;txt="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(c.namespace+"filter ");c.$table.off(txt.replace(ts.regex.spaces," ")).on(txt,function(){tsf.completeInit(this)});if(c.pager&&c.pager.initialized&&!wo.filter_initialized){c.$table.triggerHandler("filterFomatterUpdate");setTimeout(function(){tsf.filterInitComplete(c)},100)}else if(!wo.filter_initialized){tsf.completeInit(table)}},completeInit:function(table){var c=table.config,wo=c.widgetOptions,filters=tsf.setDefaults(table,c,wo)||[];if(filters.length){if(!(c.delayInit&&filters.join("")==="")){ts.setFilters(table,filters,true)}}c.$table.triggerHandler("filterFomatterUpdate");setTimeout(function(){if(!wo.filter_initialized){tsf.filterInitComplete(c)}},100)},formatterUpdated:function($cell,column){var $table=$cell&&$cell.closest("table");var config=$table.length&&$table[0].config,wo=config&&config.widgetOptions;if(wo&&!wo.filter_initialized){wo.filter_formatterInit[column]=1}},filterInitComplete:function(c){var indx,len,wo=c.widgetOptions,count=0,completed=function(){wo.filter_initialized=true;c.lastSearch=c.$table.data("lastSearch");c.$table.triggerHandler("filterInit",c);tsf.findRows(c.table,c.lastSearch||[]);if(ts.debug(c,"filter")){console.log("Filter >> Widget initialized")}};if($.isEmptyObject(wo.filter_formatter)){completed()}else{len=wo.filter_formatterInit.length;for(indx=0;indx';for(column=0;column1){buildFilter+='").appendTo(c.$table.children("thead").eq(0)).children("td");for(column=0;column").appendTo($filter)}else{ffxn=ts.getColumnData(table,wo.filter_formatter,column);if(ffxn){wo.filter_formatterCount++;buildFilter=ffxn($filter,column);if(buildFilter&&buildFilter.length===0){buildFilter=$filter.children("input")}if(buildFilter&&(buildFilter.parent().length===0||buildFilter.parent().length&&buildFilter.parent()[0]!==$filter[0])){$filter.append(buildFilter)}}else{buildFilter=$('').appendTo($filter)}if(buildFilter){tmp=$header.data("placeholder")||$header.attr("data-placeholder")||wo.filter_placeholder.search||"";buildFilter.attr("placeholder",tmp)}}if(buildFilter){name=(Array.isArray(wo.filter_cssFilter)?typeof wo.filter_cssFilter[column]!=="undefined"?wo.filter_cssFilter[column]||"":"":wo.filter_cssFilter)||"";buildFilter.addClass(tscss.filter+" "+name);name=wo.filter_filterLabel;tmp=name.match(/{{([^}]+?)}}/g);if(!tmp){tmp=["{{label}}"]}$.each(tmp,function(indx,attr){var regex=new RegExp(attr,"g"),data=$header.attr("data-"+attr.replace(/{{|}}/g,"")),text=typeof data==="undefined"?$header.text():data;name=name.replace(regex,text.trim())});buildFilter.attr({"data-column":$filter.attr("data-column"),"aria-label":name});if(disabled){buildFilter.attr("placeholder","").addClass(tscss.filterDisabled)[0].disabled=true}}}}},bindSearch:function(table,$el,internal){table=$(table)[0];$el=$($el);if(!$el.length){return}var tmp,c=table.config,wo=c.widgetOptions,namespace=c.namespace+"filter",$ext=wo.filter_$externalFilters;if(internal!==true){tmp=wo.filter_anyColumnSelector+","+wo.filter_multipleColumnSelector;wo.filter_$anyMatch=$el.filter(tmp);if($ext&&$ext.length){wo.filter_$externalFilters=wo.filter_$externalFilters.add($el)}else{wo.filter_$externalFilters=$el}ts.setFilters(table,c.$table.data("lastSearch")||[],internal===false)}tmp="keypress keyup keydown search change input ".split(" ").join(namespace+" ");$el.attr("data-lastSearchTime",(new Date).getTime()).off(tmp.replace(ts.regex.spaces," ")).on("keydown"+namespace,function(event){if(event.which===tskeyCodes.escape&&!table.config.widgetOptions.filter_resetOnEsc){return false}}).on("keyup"+namespace,function(event){wo=table.config.widgetOptions;var column=parseInt($(this).attr("data-column"),10),liveSearch=typeof wo.filter_liveSearch==="boolean"?wo.filter_liveSearch:ts.getColumnData(table,wo.filter_liveSearch,column);if(typeof liveSearch==="undefined"){liveSearch=wo.filter_liveSearch.fallback||false}$(this).attr("data-lastSearchTime",(new Date).getTime());if(event.which===tskeyCodes.escape){this.value=wo.filter_resetOnEsc?"":c.lastSearch[column]}else if(this.value!==""&&(typeof liveSearch==="number"&&this.value.length=tskeyCodes.left&&event.which<=tskeyCodes.down))){return}else if(liveSearch===false){if(this.value!==""&&event.which!==tskeyCodes.enter){return}}tsf.searching(table,true,true,column)}).on("search change keypress input blur ".split(" ").join(namespace+" "),function(event){var column=parseInt($(this).attr("data-column"),10),eventType=event.type,liveSearch=typeof wo.filter_liveSearch==="boolean"?wo.filter_liveSearch:ts.getColumnData(table,wo.filter_liveSearch,column);if(table.config.widgetOptions.filter_initialized&&(event.which===tskeyCodes.enter||(eventType==="search"||eventType==="blur")||(eventType==="change"||eventType==="input")&&(liveSearch===true||liveSearch!==true&&event.target.nodeName!=="INPUT")&&this.value!==c.lastSearch[column])){event.preventDefault();$(this).attr("data-lastSearchTime",(new Date).getTime());tsf.searching(table,eventType!=="keypress"||event.which===tskeyCodes.enter,true,column)}})},searching:function(table,filter,skipFirst,column){var liveSearch,wo=table.config.widgetOptions;if(typeof column==="undefined"){liveSearch=false}else{liveSearch=typeof wo.filter_liveSearch==="boolean"?wo.filter_liveSearch:ts.getColumnData(table,wo.filter_liveSearch,column);if(typeof liveSearch==="undefined"){liveSearch=wo.filter_liveSearch.fallback||false}}clearTimeout(wo.filter_searchTimer);if(typeof filter==="undefined"||filter===true){wo.filter_searchTimer=setTimeout(function(){tsf.checkFilters(table,filter,skipFirst)},liveSearch?wo.filter_searchDelay:10)}else{tsf.checkFilters(table,filter,skipFirst)}},equalFilters:function(c,filter1,filter2){var indx,f1=[],f2=[],len=c.columns+1;filter1=Array.isArray(filter1)?filter1:[];filter2=Array.isArray(filter2)?filter2:[];for(indx=0;indx1?filter.trim().split(/\s/):[filter.trim()],len=query.length-1,indx=0,val=mask;if(len<1&&maskLen>1){query[1]=query[0]}while(regex.test(val)){val=val.replace(regex,query[indx++]||"");if(regex.test(val)&&indxend){temp=start;start=end;end=temp}if(end>=c.columns){end=c.columns-1}for(;start<=end;start++){columns[columns.length]=start}val=val.replace(ranges[indx],"")}}if(!ignoreRanges&&/,/.test(val)){singles=val.split(/\s*,\s*/);len=singles.length;for(i=0;i-1})},multipleColumns:function(c,$input){var wo=c.widgetOptions,targets=wo.filter_initialized||!$input.filter(wo.filter_anyColumnSelector).length,val=(tsf.getLatestSearch($input).attr("data-column")||"").trim();return tsf.findRange(c,val,!targets)},processTypes:function(c,data,vars){var ffxn,filterMatched=null,matches=null;for(ffxn in tsf.types){if($.inArray(ffxn,vars.excludeMatch)<0&&matches===null){matches=tsf.types[ffxn](c,data,vars);if(matches!==null){data.matchedOn=ffxn;filterMatched=matches}}}return filterMatched},matchType:function(c,columnIndex){var isMatch,wo=c.widgetOptions,$el=c.$headerIndexed[columnIndex];if($el.hasClass("filter-exact")){isMatch=false}else if($el.hasClass("filter-match")){isMatch=true}else{if(wo.filter_columnFilters){$el=c.$filters.find("."+tscss.filter).add(wo.filter_$externalFilters).filter('[data-column="'+columnIndex+'"]')}else if(wo.filter_$externalFilters){$el=wo.filter_$externalFilters.filter('[data-column="'+columnIndex+'"]')}isMatch=$el.length?c.widgetOptions.filter_matchType[($el[0].nodeName||"").toLowerCase()]==="match":false}return isMatch},processRow:function(c,data,vars){var result,filterMatched,fxn,ffxn,txt,wo=c.widgetOptions,showRow=true,hasAnyMatchInput=wo.filter_$anyMatch&&wo.filter_$anyMatch.length,columnIndex=wo.filter_$anyMatch&&wo.filter_$anyMatch.length?tsf.multipleColumns(c,wo.filter_$anyMatch):[];data.$cells=data.$row.children();data.matchedOn=null;if(data.anyMatchFlag&&columnIndex.length>1||data.anyMatchFilter&&!hasAnyMatchInput){data.anyMatch=true;data.isMatch=true;data.rowArray=data.$cells.map(function(i){if($.inArray(i,columnIndex)>-1||data.anyMatchFilter&&!hasAnyMatchInput){if(data.parsed[i]){txt=data.cacheArray[i]}else{txt=data.rawArray[i];txt=wo.filter_ignoreCase?txt.toLowerCase().trim():txt.trim();if(c.sortLocaleCompare){txt=ts.replaceAccents(txt)}}return txt}}).get();data.filter=data.anyMatchFilter;data.iFilter=data.iAnyMatchFilter;data.exact=data.rowArray.join(" ");data.iExact=wo.filter_ignoreCase?data.exact.toLowerCase():data.exact;data.cache=data.cacheArray.slice(0,-1).join(" ");vars.excludeMatch=vars.noAnyMatch;filterMatched=tsf.processTypes(c,data,vars);if(filterMatched!==null){showRow=filterMatched}else{if(wo.filter_startsWith){showRow=false;columnIndex=Math.min(c.columns,data.rowArray.length);while(!showRow&&columnIndex>0){columnIndex--;showRow=showRow||data.rowArray[columnIndex].indexOf(data.iFilter)===0}}else{showRow=(data.iExact+data.childRowText).indexOf(data.iFilter)>=0}}data.anyMatch=false;if(data.filters.join("")===data.filter){return showRow}}for(columnIndex=0;columnIndex=0:data.filter===data.exact}else{txt=(data.iExact+data.childRowText).indexOf(tsf.parseFilter(c,data.iFilter,data));result=!wo.filter_startsWith&&txt>=0||wo.filter_startsWith&&txt===0}}}else{result=filterMatched}showRow=result?showRow:false}}return showRow},findRows:function(table,filters,currentFilters){if(tsf.equalFilters(table.config,table.config.lastSearch,currentFilters)||!table.config.widgetOptions.filter_initialized){return}var len,norm_rows,rowData,$rows,$row,rowIndex,tbodyIndex,$tbody,columnIndex,isChild,childRow,lastSearch,showRow,showParent,time,val,indx,notFiltered,searchFiltered,query,injected,res,id,txt,storedFilters=$.extend([],filters),c=table.config,wo=c.widgetOptions,debug=ts.debug(c,"filter"),data={anyMatch:false,filters:filters,filter_regexCache:[]},vars={noAnyMatch:["range","operators"],functions:[],excludeFilter:[],defaultColFilter:[],defaultAnyFilter:ts.getColumnData(table,wo.filter_defaultFilter,c.columns,true)||""};data.parsed=[];for(columnIndex=0;columnIndex> Starting filter widget search",filters);time=new Date}c.filteredRows=0;c.totalRows=0;currentFilters=storedFilters||[];for(tbodyIndex=0;tbodyIndex1){if(isNaN(res[0])){$.each(c.headerContent,function(i,txt){if(txt.toLowerCase().indexOf(res[0])>-1){id=i;filters[id]=res[1]}})}else{id=parseInt(res[0],10)-1}if(id>=0&&id> Searching through "+(searchFiltered&¬Filtered> Completed search"+ts.benchmark(time))}if(wo.filter_initialized){c.$table.triggerHandler("filterBeforeEnd",c);c.$table.triggerHandler("filterEnd",c)}setTimeout(function(){ts.applyWidget(c.table)},0)},getOptionSource:function(table,column,onlyAvail){table=$(table)[0];var c=table.config,wo=c.widgetOptions,arry=false,source=wo.filter_selectSource,last=c.$table.data("lastSearch")||[],fxn=typeof source==="function"?true:ts.getColumnData(table,source,column);if(onlyAvail&&last[column]!==""){onlyAvail=false}if(fxn===true){arry=source(table,column,onlyAvail)}else if(fxn instanceof $||$.type(fxn)==="string"&&fxn.indexOf("")>=0){return fxn}else if(Array.isArray(fxn)){arry=fxn}else if($.type(source)==="object"&&fxn){arry=fxn(table,column,onlyAvail);if(arry===null){return null}}if(arry===false){arry=tsf.getOptions(table,column,onlyAvail)}return tsf.processOptions(table,column,arry)},processOptions:function(table,column,arry){if(!Array.isArray(arry)){return false}table=$(table)[0];var cts,txt,indx,len,parsedTxt,str,c=table.config,validColumn=typeof column!=="undefined"&&column!==null&&column>=0&&column'+(node.data("placeholder")||node.attr("data-placeholder")||wo.filter_placeholder.select||"")+"",currentValue=c.$table.find("thead").find("select."+tscss.filter+'[data-column="'+column+'"]').val();if(typeof arry==="undefined"||arry===""){arry=tsf.getOptionSource(table,column,onlyAvail);if(arry===null){return}}if(Array.isArray(arry)){for(indx=0;indx"}else if(""+option!=="[object Object]"){txt=option=(""+option).replace(tsfRegex.quote,""");val=txt;if(txt.indexOf(wo.filter_selectSourceSeparator)>=0){t=txt.split(wo.filter_selectSourceSeparator);val=t[0];txt=t[1]}options+=option!==""?"":""}}arry=[]}$filters=(c.$filters?c.$filters:c.$table.children("thead")).find("."+tscss.filter);if(wo.filter_$externalFilters){$filters=$filters&&$filters.length?$filters.add(wo.filter_$externalFilters):wo.filter_$externalFilters}$filter=$filters.filter('select[data-column="'+column+'"]');if($filter.length){$filter[updating?"html":"append"](options);if(!Array.isArray(arry)){$filter.append(arry).val(currentValue)}$filter.val(currentValue)}},buildDefault:function(table,updating){var columnIndex,$header,noSelect,c=table.config,wo=c.widgetOptions,columns=c.columns;for(columnIndex=0;columnIndex1){$column=$column.slice(1)}if(i===c.columns){cols=$column.filter(wo.filter_anyColumnSelector);$column=cols.length?cols:$column}$column.val(setFilters[i]).trigger("change"+c.namespace)}else{filters[i]=$column.val()||"";if(i===c.columns){$column.slice(1).filter('[data-column*="'+$column.attr("data-column")+'"]').val(filters[i])}else{$column.slice(1).val(filters[i])}}if(i===c.columns&&$column.length){wo.filter_$anyMatch=$column}}}}}return filters};ts.setFilters=function(table,filter,apply,skipFirst){var c=table?$(table)[0].config:"",valid=ts.getFilters(table,true,filter,skipFirst);if(typeof apply==="undefined"){apply=true}if(c&&apply){c.lastCombinedFilter=null;c.lastSearch=[];tsf.searching(c.table,filter,skipFirst);c.$table.triggerHandler("filterFomatterUpdate")}return valid.length!==0}})(jQuery);(function($,window){"use strict";var ts=$.tablesorter||{};$.extend(ts.css,{sticky:"tablesorter-stickyHeader",stickyVis:"tablesorter-sticky-visible",stickyHide:"tablesorter-sticky-hidden",stickyWrap:"tablesorter-sticky-wrapper"});ts.addHeaderResizeEvent=function(table,disable,settings){table=$(table)[0];if(!table.config){return}var defaults={timer:250},options=$.extend({},defaults,settings),c=table.config,wo=c.widgetOptions,checkSizes=function(triggerEvent){var index,headers,$header,sizes,width,height,len=c.$headers.length;wo.resize_flag=true;headers=[];for(index=0;index=0&&!c.$table.hasClass("hasFilters")){return}var index,len,$t,$table=c.$table,$attach=$(wo.stickyHeaders_attachTo||wo.stickyHeaders_appendTo),namespace=c.namespace+"stickyheaders ",$yScroll=$(wo.stickyHeaders_yScroll||wo.stickyHeaders_attachTo||window),$xScroll=$(wo.stickyHeaders_xScroll||wo.stickyHeaders_attachTo||window),$thead=$table.children("thead:first"),$header=$thead.children("tr").not(".sticky-false").children(),$tfoot=$table.children("tfoot"),stickyOffset=getStickyOffset(c,wo),$nestedSticky=$table.parent().closest("."+ts.css.table).hasClass("hasStickyHeaders")?$table.parent().closest("table.tablesorter")[0].config.widgetOptions.$sticky.parent():[],nestedStickyTop=$nestedSticky.length?$nestedSticky.height():0,$stickyTable=wo.$sticky=$table.clone().addClass("containsStickyHeaders "+ts.css.sticky+" "+wo.stickyHeaders+" "+c.namespace.slice(1)+"_extra_table").wrap('
'),$stickyWrap=$stickyTable.parent().addClass(ts.css.stickyHide).css({position:$attach.length?"absolute":"fixed",padding:parseInt($stickyTable.parent().parent().css("padding-left"),10),top:stickyOffset+nestedStickyTop,left:0,visibility:"hidden",zIndex:wo.stickyHeaders_zIndex||2}),$stickyThead=$stickyTable.children("thead:first"),$stickyCells,laststate="",setWidth=function($orig,$clone){var index,width,border,$cell,$this,$cells=$orig.filter(":visible"),len=$cells.length;for(index=0;indexoffset.top&&scrollTop thead:gt(0), tr.sticky-false").hide();$stickyTable.find("> tbody, > tfoot").remove();$stickyTable.find("caption").toggle(wo.stickyHeaders_includeCaption);$stickyCells=$stickyThead.children().children();$stickyTable.css({height:0,width:0,margin:0});$stickyCells.find("."+ts.css.resizer).remove();$table.addClass("hasStickyHeaders").on("pagerComplete"+namespace,function(){resizeHeader()});ts.bindEvents(table,$stickyThead.children().children("."+ts.css.header));if(wo.stickyHeaders_appendTo){$(wo.stickyHeaders_appendTo).append($stickyWrap)}else{$table.after($stickyWrap)}if(c.onRenderHeader){$t=$stickyThead.children("tr").children();len=$t.length;for(index=0;index=0&&c.$filters){c.$filters.eq(column).find("a, select, input").filter(":visible").trigger("focus")}}});ts.filter.bindSearch($table,$stickyCells.find("."+ts.css.filter));if(wo.filter_hideFilters){ts.filter.hideFilters(c,$stickyTable)}}if(wo.stickyHeaders_addResizeEvent){$table.on("resize"+c.namespace+"stickyheaders",function(){resizeHeader()})}scrollSticky(true);$table.triggerHandler("stickyHeadersInit")},remove:function(table,c,wo){var namespace=c.namespace+"stickyheaders ";c.$table.removeClass("hasStickyHeaders").off("pagerComplete resize filterEnd stickyHeadersUpdate ".split(" ").join(namespace).replace(/\s+/g," ")).next("."+ts.css.stickyWrap).remove();if(wo.$sticky&&wo.$sticky.length){wo.$sticky.remove()}$(window).add(wo.stickyHeaders_xScroll).add(wo.stickyHeaders_yScroll).add(wo.stickyHeaders_attachTo).off("scroll resize ".split(" ").join(namespace).replace(/\s+/g," "));ts.addHeaderResizeEvent(table,true)}})})(jQuery,window);(function($,window){"use strict";var ts=$.tablesorter||{};$.extend(ts.css,{resizableContainer:"tablesorter-resizable-container",resizableHandle:"tablesorter-resizable-handle",resizableNoSelect:"tablesorter-disableSelection",resizableStorage:"tablesorter-resizable"});$(function(){var s="";$("head").append(s)});ts.resizable={init:function(c,wo){if(c.$table.hasClass("hasResizable")){return}c.$table.addClass("hasResizable");var noResize,$header,column,storedSizes,tmp,$table=c.$table,$parent=$table.parent(),marginTop=parseInt($table.css("margin-top"),10),vars=wo.resizable_vars={useStorage:ts.storage&&wo.resizable!==false,$wrap:$parent,mouseXPosition:0,$target:null,$next:null,overflow:$parent.css("overflow")==="auto"||$parent.css("overflow")==="scroll"||$parent.css("overflow-x")==="auto"||$parent.css("overflow-x")==="scroll",storedSizes:[]};ts.resizableReset(c.table,true);vars.tableWidth=$table.width();vars.fullWidth=Math.abs($parent.width()-vars.tableWidth)<20;if(vars.useStorage&&vars.overflow){ts.storage(c.table,"tablesorter-table-original-css-width",vars.tableWidth);tmp=ts.storage(c.table,"tablesorter-table-resized-width")||"auto";ts.resizable.setWidth($table,tmp,true)}wo.resizable_vars.storedSizes=storedSizes=(vars.useStorage?ts.storage(c.table,ts.css.resizableStorage):[])||[];ts.resizable.setWidths(c,wo,storedSizes);ts.resizable.updateStoredSizes(c,wo);wo.$resizable_container=$('
').css({top:marginTop}).insertBefore($table);for(column=0;column').appendTo(wo.$resizable_container).attr({"data-column":column,unselectable:"on"}).data("header",$header).on("selectstart",false)}}ts.resizable.bindings(c,wo)},updateStoredSizes:function(c,wo){var column,$header,len=c.columns,vars=wo.resizable_vars;vars.storedSizes=[];for(column=0;column=3.3?0:c.$table.position().left;$handles.each(function(){var $this=$(this),column=parseInt($this.attr("data-column"),10),columns=c.columns-1,$header=$this.data("header");if(!$header){return}if(!$header.is(":visible")||!wo.resizable_addLastColumn&&ts.resizable.checkVisibleColumns(c,column)){$this.hide()}else if(column0){vars.storedSizes[vars.target]+=leftEdge;ts.resizable.setWidth(vars.$target,vars.storedSizes[vars.target],true);for(column=0;column> Saving last sort: "+c.sortList+ts.benchmark(time))}}}else{$table.addClass("hasSaveSort");sortList="";if(ts.storage){sortList=getStoredSortList(c);if(debug){console.log('saveSort >> Last sort loaded: "'+sortList+'"'+ts.benchmark(time))}$table.on("saveSortReset",function(event){event.stopPropagation();ts.storage(table,"tablesorter-savesort","")})}if(init&&sortList&&sortList.length>0){c.sortList=sortList}else if(table.hasInitialized&&sortList&&sortList.length>0){if(sortListChanged(c,sortList)){ts.sortOn(c,sortList)}}}},remove:function(table,c){c.$table.removeClass("hasSaveSort");if(ts.storage){ts.storage(table,"tablesorter-savesort","")}}})})(jQuery);return jQuery.tablesorter});