(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){
/*! tablesorter (FORK) - updated 2024-08-13 (v2.32.0)*/
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){return function(h,u,p){"use strict";var g=h.tablesorter||{};h.extend(!0,g.defaults,{fixedUrl:"",widgetOptions:{storage_fixedUrl:"",storage_group:"",storage_page:"",storage_storageType:"",storage_tableId:"",storage_useSessionStorage:""}}),g.storage=function(e,t,r,i){var a=!1,l={},s=(e=h(e)[0]).config,n=s&&s.widgetOptions,o=g.debug(s,"storage"),c=(i&&i.storageType||n&&n.storage_storageType).toString().charAt(0).toLowerCase(),d=c?"":i&&i.useSessionStorage||n&&n.storage_useSessionStorage,f=h(e),e=i&&i.id||f.attr(i&&i.group||n&&n.storage_group||"data-table-group")||n&&n.storage_tableId||e.id||h(".tablesorter").index(f),f=i&&i.url||f.attr(i&&i.page||n&&n.storage_page||"data-table-page")||n&&n.storage_fixedUrl||s&&s.fixedUrl||u.location.pathname;if("c"!==c&&(c="s"===c||d?"sessionStorage":"localStorage")in u)try{u[c].setItem("_tmptest","temp"),a=!0,u[c].removeItem("_tmptest")}catch(e){console.warn(c+" is not supported in this browser")}if(o&&console.log("Storage >> Using",a?c:"cookies"),h.parseJSON&&(l=a?h.parseJSON(u[c][t]||"null")||{}:(i=p.cookie.split(/[;\s|=]/),0!==(n=h.inArray(t,i)+1)&&h.parseJSON(i[n]||"null")||{})),void 0===r||!u.JSON||!JSON.hasOwnProperty("stringify"))return l&&l[f]?l[f][e]:"";l[f]||(l[f]={}),l[f][e]=r,a?u[c][t]=JSON.stringify(l):((s=new Date).setTime(s.getTime()+31536e6),p.cookie=t+"="+JSON.stringify(l).replace(/\"/g,'"')+"; expires="+s.toGMTString()+"; path=/")}}(e,window,document),function(S){"use strict";var C=S.tablesorter||{};C.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"}},S.extend(C.css,{wrapper:"tablesorter-wrapper"}),C.addWidget({id:"uitheme",priority:10,format:function(e,t,r){var i,a,l,s,n,o,c,d,f,h,u,p,g=C.themes,m=t.$table.add(S(t.namespace+"_extra_table")),b=t.$headers.add(S(t.namespace+"_extra_headers")),y=t.theme||"jui",_=g[y]||{},v=S.trim([_.sortNone,_.sortDesc,_.sortAsc,_.active].join(" ")),w=S.trim([_.iconSortNone,_.iconSortDesc,_.iconSortAsc].join(" ")),x=C.debug(t,"uitheme");for(x&&(n=new Date),m.hasClass("tablesorter-"+y)&&t.theme===t.appliedTheme&&r.uitheme_applied||(r.uitheme_applied=!0,h=g[t.appliedTheme]||{},g=(p=!S.isEmptyObject(h))?[h.sortNone,h.sortDesc,h.sortAsc,h.active].join(" "):"",u=p?[h.iconSortNone,h.iconSortDesc,h.iconSortAsc].join(" "):"",p&&(r.zebra[0]=S.trim(" "+r.zebra[0].replace(" "+h.even,"")),r.zebra[1]=S.trim(" "+r.zebra[1].replace(" "+h.odd,"")),t.$tbodies.children().removeClass([h.even,h.odd].join(" "))),_.even&&(r.zebra[0]+=" "+_.even),_.odd&&(r.zebra[1]+=" "+_.odd),m.children("caption").removeClass(h.caption||"").addClass(_.caption),d=m.removeClass((t.appliedTheme?"tablesorter-"+(t.appliedTheme||""):"")+" "+(h.table||"")).addClass("tablesorter-"+y+" "+(_.table||"")).children("tfoot"),t.appliedTheme=t.theme,d.length&&d.children("tr").removeClass(h.footerRow||"").addClass(_.footerRow).children("th, td").removeClass(h.footerCells||"").addClass(_.footerCells),b.removeClass((p?[h.header,h.hover,g].join(" "):"")||"").addClass(_.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(e){S(this)["mouseenter"===e.type?"addClass":"removeClass"](_.hover||"")}),b.each(function(){var e=S(this);e.find("."+C.css.wrapper).length||e.wrapInner('
')}),t.cssIcon&&b.find("."+C.css.icon).removeClass(p?[h.icons,u].join(" "):"").addClass(_.icons||""),C.hasWidget(t.table,"filter")&&(a=function(){m.children("thead").children("."+C.css.filterRow).removeClass(p&&h.filterRow||"").addClass(_.filterRow||"")},r.filter_initialized?a():m.one("filterInit",function(){a()}))),i=0;i> Applied "+y+" theme"+C.benchmark(n))},remove:function(e,t,r,i){var a,l,s,n,o;r.uitheme_applied&&(a=t.$table,t=t.appliedTheme||"jui",l=C.themes[t]||C.themes.jui,s=a.children("thead").children(),n=l.sortNone+" "+l.sortDesc+" "+l.sortAsc,o=l.iconSortNone+" "+l.iconSortDesc+" "+l.iconSortAsc,a.removeClass("tablesorter-"+t+" "+l.table),r.uitheme_applied=!1,i||(a.find(C.css.header).removeClass(l.header),s.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(l.hover+" "+n+" "+l.active).filter("."+C.css.filterRow).removeClass(l.filterRow),s.find("."+C.css.icon).removeClass(l.icons+" "+o)))}})}(e),function(m){"use strict";var b=m.tablesorter||{};b.addWidget({id:"columns",priority:65,options:{columns:["primary","secondary","tertiary"]},format:function(e,t,r){for(var i,a,l,s,n,o=t.$table,c=t.$tbodies,d=t.sortList,f=d.length,h=r&&r.columns||["primary","secondary","tertiary"],u=h.length-1,p=h.join(" "),g=0;g=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(e,t,r){if(!O.orTest.test(t.iFilter)&&!O.orSplit.test(t.filter)||O.regex.test(t.filter))return null;for(var i,a,l=A.extend({},t),s=t.filter.split(O.orSplit),n=t.iFilter.split(O.orSplit),o=s.length,c=0;c]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/,lteTest:/<=/,notTest:/^\!/,wildOrTest:/[\?\*\|]/,wildTest:/\?\*/,fuzzyTest:/^~/,exactTest:/[=\"\|!]/}),n=d.$headers.filter(".filter-false, .parser-false").length,!1!==f.filter_columnFilters&&n!==d.$headers.length&&I.buildRow(r,d,f),a="addRows updateCell update updateRows updateComplete appendCache filterReset "+"filterAndSortReset filterResetSaved filterEnd search ".split(" ").join(d.namespace+"filter "),d.$table.bind(a,function(e,t){return n=f.filter_hideEmpty&&A.isEmptyObject(d.cache)&&!(d.delayInit&&"appendCache"===e.type),d.$table.find("."+g.filterRow).toggleClass(f.filter_filteredRow,n),/(search|filter)/.test(e.type)||(e.stopPropagation(),I.buildDefault(r,!0)),"filterReset"===e.type||"filterAndSortReset"===e.type?(d.$table.find("."+g.filter).add(f.filter_$externalFilters).val(""),"filterAndSortReset"===e.type?E.sortReset(this.config,function(){I.searching(r,[])}):I.searching(r,[])):"filterResetSaved"===e.type?E.storage(r,"tablesorter-filters",""):"filterEnd"===e.type?I.buildDefault(r,!0):(t="search"===e.type?t:"updateComplete"===e.type?d.$table.data("lastSearch"):"",/(update|add)/.test(e.type)&&"updateComplete"!==e.type&&(d.lastCombinedFilter=null,d.lastSearch=[],setTimeout(function(){d.$table.triggerHandler("filterFomatterUpdate")},100)),I.searching(r,t,!0)),!1}),f.filter_reset&&(f.filter_reset instanceof A?f.filter_reset.click(function(){d.$table.triggerHandler("filterReset")}):A(f.filter_reset).length&&A(document).undelegate(f.filter_reset,"click"+d.namespace+"filter").delegate(f.filter_reset,"click"+d.namespace+"filter",function(){d.$table.triggerHandler("filterReset")})),f.filter_functions)for(s=0;s'+(l.data("placeholder")||l.attr("data-placeholder")||f.filter_placeholder.select||"")+"":"",0<=(a=n=i).indexOf(f.filter_selectSourceSeparator)&&(a=(n=i.split(f.filter_selectSourceSeparator))[1],n=n[0]),t+="");d.$table.find("thead").find("select."+g.filter+'[data-column="'+s+'"]').append(t),("function"==typeof(a=f.filter_selectSource)||E.getColumnData(r,a,s))&&I.buildSelect(d.table,s,"",!0,l.hasClass(f.filter_onlyAvail))}I.buildDefault(r,!0),I.bindSearch(r,d.$table.find("."+g.filter),!0),f.filter_external&&I.bindSearch(r,f.filter_external),f.filter_hideFilters&&I.hideFilters(d),d.showProcessing&&(a="filterStart filterEnd ".split(" ").join(d.namespace+"filter-sp "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(e,t){l=t?d.$table.find("."+g.header).filter("[data-column]").filter(function(){return""!==t[A(this).data("column")]}):"",E.isProcessing(r,"filterStart"===e.type,t?l:"")})),d.filteredRows=d.totalRows,a="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(d.namespace+"filter "),d.$table.unbind(a.replace(E.regex.spaces," ")).bind(a,function(){I.completeInit(this)}),d.pager&&d.pager.initialized&&!f.filter_initialized?(d.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){I.filterInitComplete(d)},100)):f.filter_initialized||I.completeInit(r)},completeInit:function(e){var t=e.config,r=t.widgetOptions,i=I.setDefaults(e,t,r)||[];!i.length||t.delayInit&&""===i.join("")||E.setFilters(e,i,!0),t.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){r.filter_initialized||I.filterInitComplete(t)},100)},formatterUpdated:function(e,t){e=e&&e.closest("table"),e=e.length&&e[0].config,e=e&&e.widgetOptions;e&&!e.filter_initialized&&(e.filter_formatterInit[t]=1)},filterInitComplete:function(e){function t(){a.filter_initialized=!0,e.lastSearch=e.$table.data("lastSearch"),e.$table.triggerHandler("filterInit",e),I.findRows(e.table,e.lastSearch||[]),E.debug(e,"filter")&&console.log("Filter >> Widget initialized")}var r,i,a=e.widgetOptions,l=0;if(A.isEmptyObject(a.filter_formatter))t();else{for(i=a.filter_formatterInit.length,r=0;r',p=0;p");for(t.$filters=A(u+="").appendTo(t.$table.children("thead").eq(0)).children("td"),p=0;p").appendTo(i):((o=E.getColumnData(e,r.filter_formatter,p))?(r.filter_formatterCount++,(u=(u=o(i,p))&&0===u.length?i.children("input"):u)&&(0===u.parent().length||u.parent().length&&u.parent()[0]!==i[0])&&i.append(u)):u=A('').appendTo(i),u&&(c=a.data("placeholder")||a.attr("data-placeholder")||r.filter_placeholder.search||"",u.attr("placeholder",c))),u)&&(n=(A.isArray(r.filter_cssFilter)?void 0!==r.filter_cssFilter[p]&&r.filter_cssFilter[p]||"":r.filter_cssFilter)||"",u.addClass(g.filter+" "+n),c=(n=r.filter_filterLabel).match(/{{([^}]+?)}}/g),A.each(c=c||["{{label}}"],function(e,t){var r=new RegExp(t,"g"),t=a.attr("data-"+t.replace(/{{|}}/g,"")),t=void 0===t?a.text():t;n=n.replace(r,A.trim(t))}),u.attr({"data-column":i.attr("data-column"),"aria-label":n}),s)&&(u.attr("placeholder","").addClass(g.filterDisabled)[0].disabled=!0)},bindSearch:function(a,e,t){var r,l,s,i,n;a=A(a)[0],(e=A(e)).length&&(l=a.config,s=l.widgetOptions,i=l.namespace+"filter",n=s.filter_$externalFilters,!0!==t&&(r=s.filter_anyColumnSelector+","+s.filter_multipleColumnSelector,s.filter_$anyMatch=e.filter(r),n&&n.length?s.filter_$externalFilters=s.filter_$externalFilters.add(e):s.filter_$externalFilters=e,E.setFilters(a,l.$table.data("lastSearch")||[],!1===t)),r="keypress keyup keydown search change input ".split(" ").join(i+" "),e.attr("data-lastSearchTime",(new Date).getTime()).unbind(r.replace(E.regex.spaces," ")).bind("keydown"+i,function(e){if(e.which===o.escape&&!a.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+i,function(e){s=a.config.widgetOptions;var t=parseInt(A(this).attr("data-column"),10),r="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);if(void 0===r&&(r=s.filter_liveSearch.fallback||!1),A(this).attr("data-lastSearchTime",(new Date).getTime()),e.which===o.escape)this.value=s.filter_resetOnEsc?"":l.lastSearch[t];else{if(""!==this.value&&("number"==typeof r&&this.value.length=o.left&&e.which<=o.down)))return;if(!1===r&&""!==this.value&&e.which!==o.enter)return}I.searching(a,!0,!0,t)}).bind("search change keypress input blur ".split(" ").join(i+" "),function(e){var t=parseInt(A(this).attr("data-column"),10),r=e.type,i="boolean"==typeof s.filter_liveSearch?s.filter_liveSearch:E.getColumnData(a,s.filter_liveSearch,t);!a.config.widgetOptions.filter_initialized||e.which!==o.enter&&"search"!==r&&"blur"!==r&&("change"!==r&&"input"!==r||!0!==i&&(!0===i||"INPUT"===e.target.nodeName)||this.value===l.lastSearch[t])||(e.preventDefault(),A(this).attr("data-lastSearchTime",(new Date).getTime()),I.searching(a,"keypress"!==r||e.which===o.enter,!0,t))}))},searching:function(e,t,r,i){var a,l=e.config.widgetOptions;void 0===i?a=!1:void 0===(a="boolean"==typeof l.filter_liveSearch?l.filter_liveSearch:E.getColumnData(e,l.filter_liveSearch,i))&&(a=l.filter_liveSearch.fallback||!1),clearTimeout(l.filter_searchTimer),void 0===t||!0===t?l.filter_searchTimer=setTimeout(function(){I.checkFilters(e,t,r)},a?l.filter_searchDelay:10):I.checkFilters(e,t,r)},equalFilters:function(e,t,r){var i,a=[],l=[],s=e.columns+1;for(t=A.isArray(t)?t:[],r=A.isArray(r)?r:[],i=0;i=e.columns&&(s=e.columns-1);l<=s;l++)f[f.length]=l;t=t.replace(i[c],"")}if(!r&&/,/.test(t))for(d=(n=t.split(/\s*,\s*/)).length,o=0;o> Starting filter widget search",r),m=new Date),F.filteredRows=0,t=$||[],c=F.totalRows=0;c> Searching through "+(v&&_> Completed search"+E.benchmark(m)),R.filter_initialized&&(F.$table.triggerHandler("filterBeforeEnd",F),F.$table.triggerHandler("filterEnd",F)),setTimeout(function(){E.applyWidget(F.table)},0)}},getOptionSource:function(e,t,r){var i=(e=A(e)[0]).config,a=!1,l=i.widgetOptions.filter_selectSource,i=i.$table.data("lastSearch")||[],s="function"==typeof l||E.getColumnData(e,l,t);if(r&&""!==i[t]&&(r=!1),!0===s)a=l(e,t,r);else{if(s instanceof A||"string"===A.type(s)&&0<=s.indexOf(""))return s;if(A.isArray(s))a=s;else if("object"===A.type(l)&&s&&null===(a=s(e,t,r)))return null}return!1===a&&(a=I.getOptions(e,t,r)),I.processOptions(e,t,a)},processOptions:function(i,a,r){if(!A.isArray(r))return!1;var l,e,t,s,n,o=(i=A(i)[0]).config,c=null!=a&&0<=a&&a'+(h.data("placeholder")||h.attr("data-placeholder")||f.filter_placeholder.select||"")+"",h=d.$table.find("thead").find("select."+g.filter+'[data-column="'+t+'"]').val();if(void 0!==r&&""!==r||null!==(r=I.getOptionSource(e,t,a))){if(A.isArray(r)){for(l=0;l"+c.text.replace(O.quote,""")+""}else""+c!="[object Object]"&&(0<=(s=n=c=(""+c).replace(O.quote,""")).indexOf(f.filter_selectSourceSeparator)&&(s=(o=n.split(f.filter_selectSourceSeparator))[0],n=o[1]),u+=""!==c?"":"");r=[]}e=(d.$filters||d.$table.children("thead")).find("."+g.filter),(a=(e=f.filter_$externalFilters?e&&e.length?e.add(f.filter_$externalFilters):f.filter_$externalFilters:e).filter('select[data-column="'+t+'"]')).length&&(a[i?"html":"append"](u),A.isArray(r)||a.append(r).val(h),a.val(h))}}},buildDefault:function(e,t){for(var r,i,a=e.config,l=a.widgetOptions,s=a.columns,n=0;n'),y=b.parent().addClass($.css.stickyHide).css({position:d.length?"absolute":"fixed",padding:parseInt(b.parent().parent().css("padding-left"),10),top:p+m,left:0,visibility:"hidden",zIndex:o.stickyHeaders_zIndex||2}),p=b.children("thead:first"),_="",v=function(e,t){for(var r,i,a,l=e.filter(":visible"),s=l.length,n=0;na.top&&i thead:gt(0), tr.sticky-false").hide(),b.find("> tbody, > tfoot").remove(),b.find("caption").toggle(o.stickyHeaders_includeCaption),l=p.children().children(),b.css({height:0,width:0,margin:0}),l.find("."+$.css.resizer).remove(),c.addClass("hasStickyHeaders").bind("pagerComplete"+s,function(){x()}),$.bindEvents(e,p.children().children("."+$.css.header)),o.stickyHeaders_appendTo?C(o.stickyHeaders_appendTo).append(y):c.after(y),t.onRenderHeader)for(i=(a=p.children("tr").children()).length,r=0;r";c("head").append(e)}),d.resizable={init:function(e,t){if(!e.$table.hasClass("hasResizable")){e.$table.addClass("hasResizable");var r,i,a,l=e.$table,s=l.parent(),n=parseInt(l.css("margin-top"),10),o=t.resizable_vars={useStorage:d.storage&&!1!==t.resizable,$wrap:s,mouseXPosition:0,$target:null,$next:null,overflow:"auto"===s.css("overflow")||"scroll"===s.css("overflow")||"auto"===s.css("overflow-x")||"scroll"===s.css("overflow-x"),storedSizes:[]};for(d.resizableReset(e.table,!0),o.tableWidth=l.width(),o.fullWidth=Math.abs(s.width()-o.tableWidth)<20,o.useStorage&&o.overflow&&(d.storage(e.table,"tablesorter-table-original-css-width",o.tableWidth),a=d.storage(e.table,"tablesorter-table-resized-width")||"auto",d.resizable.setWidth(l,a,!0)),t.resizable_vars.storedSizes=s=(o.useStorage?d.storage(e.table,d.css.resizableStorage):[])||[],d.resizable.setWidths(e,t,s),d.resizable.updateStoredSizes(e,t),t.$resizable_container=c('').css({top:n}).insertBefore(l),i=0;i
').appendTo(t.$resizable_container).attr({"data-column":i,unselectable:"on"}).data("header",r).bind("selectstart",!1);d.resizable.bindings(e,t)}},updateStoredSizes:function(e,t){var r,i,a=e.columns,l=t.resizable_vars;for(l.storedSizes=[],r=0;r> Saving last sort: "+e.sortList+o.benchmark(a)):(l.addClass("hasSaveSort"),s="",o.storage&&(s=c(e),n&&console.log('saveSort >> Last sort loaded: "'+s+'"'+o.benchmark(a)),l.bind("saveSortReset",function(e){e.stopPropagation(),o.storage(t,"tablesorter-savesort","")})),i&&s&&0