var myMeterMobile;!function(n){"use strict";n.extend({tablesorter:new function(){function i(){var n=arguments[0],t=arguments.length>1?Array.prototype.slice.call(arguments):n;typeof console!="undefined"&&typeof console.log!="undefined"?console[/error/i.test(n)?"error":/warn/i.test(n)?"warn":"log"](t):alert(t)}function r(n,t){i(n+" ("+((new Date).getTime()-t.getTime())+"ms)")}function f(n){for(var t in n)return!1;return!0}function u(i,r,u){if(!r)return"";var e,o=i.config,f=o.textExtraction||"",s="";return s=f==="basic"?n(r).attr(o.textAttribute)||r.textContent||r.innerText||n(r).text()||"":typeof f=="function"?f(r,i,u):typeof(e=t.getColumnData(i,f,u))=="function"?e(r,i,u):r.textContent||r.innerText||n(r).text()||"",n.trim(s)}function d(r,f,e,o){for(var s,l,a=t.parsers.length,h=!1,c="",v=!0;c===""&&v;)e++,f[e]?(h=f[e].cells[o],c=u(r,h,o),l=n(h),r.config.debug&&i("Checking if value was empty on row "+e+", column: "+o+': "'+c+'"')):v=!1;while(--a>=0)if(s=t.parsers[a],s&&s.id!=="text"&&s.is&&s.is(c,r,h,l))return s;return t.getParserById("text")}function o(n){var u=n.config,p=u.$tbodies=u.$table.children("tbody:not(."+u.cssInfoBlock+")"),a,e,w,f,o,s,b,h,c,k,l=0,v="",y=p.length;if(y===0)return u.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(u.debug&&(k=new Date,i("Detecting parsers for each column")),e={extractors:[],parsers:[]};l<y;){if(a=p[l].rows,a[l])for(w=u.columns,f=0;f<w;f++)o=u.$headers.filter('[data-column="'+f+'"]:last'),s=t.getColumnData(n,u.headers,f),c=t.getParserById(t.getData(o,s,"extractor")),h=t.getParserById(t.getData(o,s,"sorter")),b=t.getData(o,s,"parser")==="false",u.empties[f]=(t.getData(o,s,"empty")||u.emptyTo||(u.emptyToBottom?"bottom":"top")).toLowerCase(),u.strings[f]=(t.getData(o,s,"string")||u.stringTo||"max").toLowerCase(),b&&(h=t.getParserById("no-parser")),c||(c=!1),h||(h=d(n,a,-1,f)),u.debug&&(v+="column:"+f+"; extractor:"+c.id+"; parser:"+h.id+"; string:"+u.strings[f]+"; empty: "+u.empties[f]+"\n"),e.parsers[f]=h,e.extractors[f]=c;l+=e.parsers.length?y:1}u.debug&&(i(v?v:"No parsers detected"),r("Completed detecting parsers",k));u.parsers=e.parsers;u.extractors=e.extractors}function e(f){var c,l,g,v,a,o,h,s,it,b,nt,d,y,k,e=f.config,p=e.$table.children("tbody"),tt=e.extractors,w=e.parsers;if(e.cache={},e.totalRows=0,!w)return e.debug?i("Warning: *Empty table!* Not building a cache"):"";for(e.debug&&(nt=new Date),e.showProcessing&&t.isProcessing(f,!0),h=0;h<p.length;h++)if(k=[],c=e.cache[h]={normalized:[]},!p.eq(h).hasClass(e.cssInfoBlock)){for(d=p[h]&&p[h].rows.length||0,a=0;a<d;++a){if(y={child:[]},s=n(p[h].rows[a]),it=[new Array(e.columns)],b=[],s.hasClass(e.cssChildRow)&&a!==0){l=c.normalized.length-1;c.normalized[l][e.columns].$row=c.normalized[l][e.columns].$row.add(s);s.prev().hasClass(e.cssChildRow)||s.prev().addClass(t.css.cssHasChild);y.child[l]=n.trim(s[0].textContent||s[0].innerText||s.text()||"");continue}for(y.$row=s,y.order=a,o=0;o<e.columns;++o){if(typeof w[o]=="undefined"){e.debug&&i("No parser found for cell:",s[0].cells[o],"does it have a header?");continue}l=u(f,s[0].cells[o],o);g=typeof tt[o].id=="undefined"?l:tt[o].format(l,f,s[0].cells[o],o);v=w[o].id==="no-parser"?"":w[o].format(g,f,s[0].cells[o],o);b.push(e.ignoreCase&&typeof v=="string"?v.toLowerCase():v);(w[o].type||"").toLowerCase()==="numeric"&&(k[o]=Math.max(Math.abs(v)||0,k[o]||0))}b[e.columns]=y;c.normalized.push(b)}c.colMax=k;e.totalRows+=c.normalized.length}e.showProcessing&&t.isProcessing(f);e.debug&&r("Building cache for "+d+" rows",nt)}function s(i,u){var e=i.config,b=e.widgetOptions,v=i.tBodies,l=[],y=e.cache,h,p,c,a,o,s,w;if(f(y))return e.appender?e.appender(i,l):i.isUpdating?e.$table.trigger("updateComplete",i):"";for(e.debug&&(w=new Date),s=0;s<v.length;s++)if(c=n(v[s]),c.length&&!c.hasClass(e.cssInfoBlock)){for(a=t.processTbody(i,c,!0),h=y[s].normalized,p=h.length,o=0;o<p;o++)l.push(h[o][e.columns].$row),e.appender&&(!e.pager||e.pager.removeRows&&b.pager_removeRows||e.pager.ajax)||a.append(h[o][e.columns].$row);t.processTbody(i,a,!1)}e.appender&&e.appender(i,l);e.debug&&r("Rebuilt table",w);u||e.appender||t.applyWidget(i);i.isUpdating&&e.$table.trigger("updateComplete",i)}function y(n){return/^d/i.test(n)||n===1}function p(u){var c,e,o,a,s,h,v,f=u.config;f.headerList=[];f.headerContent=[];f.debug&&(v=new Date);f.columns=t.computeColumnIndex(f.$table.children("thead, tfoot").children("tr"));a=f.cssIcon?'<i class="'+(f.cssIcon===t.css.icon?t.css.icon:f.cssIcon+" "+t.css.icon)+'"><\/i>':"";f.$headers=n(u).find(f.selectorHeaders).each(function(i){e=n(this);c=t.getColumnData(u,f.headers,i,!0);f.headerContent[i]=n(this).html();f.headerTemplate!==""&&(s=f.headerTemplate.replace(/\{content\}/g,n(this).html()).replace(/\{icon\}/g,a),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(e,[i,s]),o&&typeof o=="string"&&(s=o)),n(this).html('<div class="'+t.css.headerIn+'">'+s+"<\/div>"));f.onRenderHeader&&f.onRenderHeader.apply(e,[i,f,f.$table]);this.column=parseInt(n(this).attr("data-column"),10);this.order=y(t.getData(e,c,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2];this.count=-1;this.lockedOrder=!1;h=t.getData(e,c,"lockedOrder")||!1;typeof h!="undefined"&&h!==!1&&(this.order=this.lockedOrder=y(h)?[1,1,1]:[0,0,0]);e.addClass(t.css.header+" "+f.cssHeader);f.headerList[i]=this;e.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow).attr("role","row");f.tabIndex&&e.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"});l(u);f.debug&&(r("Built headers:",v),i(f.$headers))}function c(n,t,i){var r=n.config;r.$table.find(r.selectorRemove).remove();o(n);e(n);v(r.$table,t,i)}function l(i){var r,u,f,e=i.config;e.$headers.each(function(o,s){u=n(s);f=t.getColumnData(i,e.headers,o,!0);r=t.getData(s,f,"sorter")==="false"||t.getData(s,f,"parser")==="false";s.sortDisabled=r;u[r?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+r);i.id&&(r?u.removeAttr("aria-controls"):u.attr("aria-controls",i.id))})}function h(i){var e,u,o,r=i.config,f=r.sortList,l=f.length,c=t.css.sortNone+" "+r.cssNone,s=[t.css.sortAsc+" "+r.cssAsc,t.css.sortDesc+" "+r.cssDesc],h=[r.cssIconAsc,r.cssIconDesc,r.cssIconNone],v=["ascending","descending"],a=n(i).find("tfoot tr").children().add(r.$extraHeaders).removeClass(s.join(" "));for(r.$headers.removeClass(s.join(" ")).addClass(c).attr("aria-sort","none").find("."+r.cssIcon).removeClass(h.join(" ")).addClass(h[2]),u=0;u<l;u++)if(f[u][1]!==2&&(e=r.$headers.not(".sorter-false").filter('[data-column="'+f[u][0]+'"]'+(l===1?":last":"")),e.length)){for(o=0;o<e.length;o++)e[o].sortDisabled||e.eq(o).removeClass(c).addClass(s[f[u][1]]).attr("aria-sort",v[f[u][1]]).find("."+r.cssIcon).removeClass(h[2]).addClass(h[f[u][1]]);a.length&&a.filter('[data-column="'+f[u][0]+'"]').removeClass(c).addClass(s[f[u][1]])}r.$headers.not(".sorter-false").each(function(){var i=n(this),u=this.order[(this.count+1)%(r.sortReset?3:2)],f=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[u===0?"nextAsc":u===1?"nextDesc":"nextNone"];i.attr("aria-label",f)})}function g(t){var r,u,i=t.config;i.widthFixed&&i.$table.children("colgroup").length===0&&(r=n("<colgroup>"),u=n(t).width(),n(t.tBodies).not("."+i.cssInfoBlock).find("tr:first").children(":visible").each(function(){r.append(n("<col>").css("width",parseInt(n(this).width()/u*1e3,10)/10+"%"))}),i.$table.prepend(r))}function nt(t,i){var f,r,u,s,o,e=t.config,h=i||e.sortList;e.sortList=[];n.each(h,function(t,i){if(s=parseInt(i[0],10),u=e.$headers.filter('[data-column="'+s+'"]:last')[0],u){r=(""+i[1]).match(/^(1|d|s|o|n)/);r=r?r[0]:"";switch(r){case"1":case"d":r=1;break;case"s":r=o||0;break;case"o":f=u.order[(o||0)%(e.sortReset?3:2)];r=f===0?1:f===1?0:2;break;case"n":u.count=u.count+1;r=u.order[u.count%(e.sortReset?3:2)];break;default:r=0}o=t===0?r:o;f=[s,parseInt(r,10)||0];e.sortList.push(f);r=n.inArray(f[1],u.order);u.count=r>=0?r:f[1]%(e.sortReset?3:2)}})}function tt(n,t){return n&&n[t]?n[t].type||"":""}function w(i,r,u){if(i.isUpdating)return setTimeout(function(){w(i,r,u)},50);var l,o,e,c,v,f=i.config,p=!u[f.sortMultiSortKey],y=f.$table;if(y.trigger("sortStart",i),r.count=u[f.sortResetKey]?2:(r.count+1)%(f.sortReset?3:2),f.sortRestart&&(o=r,f.$headers.each(function(){this!==o&&(p||!n(this).is("."+t.css.sortDesc+",."+t.css.sortAsc))&&(this.count=-1)})),o=parseInt(n(r).attr("data-column"),10),p){if(f.sortList=[],f.sortForce!==null)for(l=f.sortForce,e=0;e<l.length;e++)l[e][0]!==o&&f.sortList.push(l[e]);if(c=r.order[r.count],c<2&&(f.sortList.push([o,c]),r.colSpan>1))for(e=1;e<r.colSpan;e++)f.sortList.push([o+e,c])}else{if(f.sortAppend&&f.sortList.length>1)for(e=0;e<f.sortAppend.length;e++)v=t.isValueInArray(f.sortAppend[e][0],f.sortList),v>=0&&f.sortList.splice(v,1);if(t.isValueInArray(o,f.sortList)>=0)for(e=0;e<f.sortList.length;e++)v=f.sortList[e],c=f.$headers.filter('[data-column="'+v[0]+'"]:last')[0],v[0]===o&&(v[1]=c.order[r.count],v[1]===2&&(f.sortList.splice(e,1),c.count=-1));else if(c=r.order[r.count],c<2&&(f.sortList.push([o,c]),r.colSpan>1))for(e=1;e<r.colSpan;e++)f.sortList.push([o+e,c])}if(f.sortAppend!==null)for(l=f.sortAppend,e=0;e<l.length;e++)l[e][0]!==o&&f.sortList.push(l[e]);y.trigger("sortBegin",i);setTimeout(function(){h(i);a(i);s(i);y.trigger("sortEnd",i)},1)}function a(n){var s,h,c,i,b,v,k,y,o,p,w,e=0,u=n.config,l=u.textSorter||"",a=u.sortList,d=a.length,g=n.tBodies.length;if(!u.serverSideSorting&&!f(u.cache)){for(u.debug&&(b=new Date),h=0;h<g;h++)v=u.cache[h].colMax,k=u.cache[h].normalized,k.sort(function(r,f){for(s=0;s<d;s++){if(i=a[s][0],y=a[s][1],e=y===0,u.sortStable&&r[i]===f[i]&&d===1)return r[u.columns].order-f[u.columns].order;if(c=/n/i.test(tt(u.parsers,i)),c&&u.strings[i]?(c=typeof u.string[u.strings[i]]=="boolean"?(e?1:-1)*(u.string[u.strings[i]]?-1:1):u.strings[i]?u.string[u.strings[i]]||0:0,o=u.numberSorter?u.numberSorter(r[i],f[i],e,v[i],n):t["sortNumeric"+(e?"Asc":"Desc")](r[i],f[i],c,v[i],i,n)):(p=e?r:f,w=e?f:r,o=typeof l=="function"?l(p[i],w[i],e,i,n):typeof l=="object"&&l.hasOwnProperty(i)?l[i](p[i],w[i],e,i,n):t["sortNatural"+(e?"Asc":"Desc")](r[i],f[i],i,n,u)),o)return o}return r[u.columns].order-f[u.columns].order});u.debug&&r("Sorting on "+a.toString()+" and dir "+y+" time",b)}}function b(t,i){var r=t[0];r.isUpdating&&t.trigger("updateComplete",r);n.isFunction(i)&&i(t[0])}function v(n,i,r){var u=n[0].config.sortList;i!==!1&&!n[0].isProcessing&&u.length?n.trigger("sorton",[u,function(){b(n,r)},!0]):(b(n,r),t.applyWidget(n[0],!1))}function k(i){var r=i.config,y=r.$table;y.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(r.namespace+" ")).bind("sortReset"+r.namespace,function(t,u){t.stopPropagation();r.sortList=[];h(i);a(i);s(i);n.isFunction(u)&&u(i)}).bind("updateAll"+r.namespace,function(n,u,f){n.stopPropagation();i.isUpdating=!0;t.refreshWidgets(i,!0,!0);t.restoreHeaders(i);p(i);t.bindEvents(i,r.$headers,!0);k(i);c(i,u,f)}).bind("update"+r.namespace+" updateRows"+r.namespace,function(n,t,r){n.stopPropagation();i.isUpdating=!0;l(i);c(i,t,r)}).bind("updateCell"+r.namespace,function(t,f,e,o){t.stopPropagation();i.isUpdating=!0;y.find(r.selectorRemove).remove();var l,w,a,s,p=y.find("tbody"),h=n(f),c=p.index(n.fn.closest?h.closest("tbody"):h.parents("tbody").filter(":first")),b=n.fn.closest?h.closest("tr"):h.parents("tr").filter(":first");f=h[0];p.length&&c>=0&&(a=p.eq(c).find("tr").index(b),s=h.index(),r.cache[c].normalized[a][r.columns].$row=b,w=typeof r.extractors[s].id=="undefined"?u(i,f,s):r.extractors[s].format(u(i,f,s),i,f,s),l=r.parsers[s].id==="no-parser"?"":r.parsers[s].format(w,i,f,s),r.cache[c].normalized[a][s]=r.ignoreCase&&typeof l=="string"?l.toLowerCase():l,(r.parsers[s].type||"").toLowerCase()==="numeric"&&(r.cache[c].colMax[s]=Math.max(Math.abs(l)||0,r.cache[c].colMax[s]||0)),v(y,e,o))}).bind("addRows"+r.namespace,function(t,e,s,h){if(t.stopPropagation(),i.isUpdating=!0,f(r.cache))l(i),c(i,s,h);else{e=n(e).attr("role","row");var p,a,d,g,b,nt,w,tt=e.filter("tr").length,k=y.find("tbody").index(e.parents("tbody").filter(":first"));for(r.parsers&&r.parsers.length||o(i),p=0;p<tt;p++){for(d=e[p].cells.length,w=[],nt={child:[],$row:e.eq(p),order:r.cache[k].normalized.length},a=0;a<d;a++)g=typeof r.extractors[a].id=="undefined"?u(i,e[p].cells[a],a):r.extractors[a].format(u(i,e[p].cells[a],a),i,e[p].cells[a],a),b=r.parsers[a].id==="no-parser"?"":r.parsers[a].format(g,i,e[p].cells[a],a),w[a]=r.ignoreCase&&typeof b=="string"?b.toLowerCase():b,(r.parsers[a].type||"").toLowerCase()==="numeric"&&(r.cache[k].colMax[a]=Math.max(Math.abs(w[a])||0,r.cache[k].colMax[a]||0));w.push(nt);r.cache[k].normalized.push(w)}v(y,s,h)}}).bind("updateComplete"+r.namespace,function(){i.isUpdating=!1}).bind("sorton"+r.namespace,function(r,u,o,c){var l=i.config;r.stopPropagation();y.trigger("sortStart",this);nt(i,u);h(i);l.delayInit&&f(l.cache)&&e(i);y.trigger("sortBegin",this);a(i);s(i,c);y.trigger("sortEnd",this);t.applyWidget(i);n.isFunction(o)&&o(i)}).bind("appendCache"+r.namespace,function(t,r,u){t.stopPropagation();s(i,u);n.isFunction(r)&&r(i)}).bind("updateCache"+r.namespace,function(t,u){r.parsers&&r.parsers.length||o(i);e(i);n.isFunction(u)&&u(i)}).bind("applyWidgetId"+r.namespace,function(n,u){n.stopPropagation();t.getWidgetById(u).format(i,r,r.widgetOptions)}).bind("applyWidgets"+r.namespace,function(n,r){n.stopPropagation();t.applyWidget(i,r)}).bind("refreshWidgets"+r.namespace,function(n,r,u){n.stopPropagation();t.refreshWidgets(i,r,u)}).bind("destroy"+r.namespace,function(n,r,u){n.stopPropagation();t.destroy(i,r,u)}).bind("resetToLoadState"+r.namespace,function(){t.refreshWidgets(i,!0,!0);r=n.extend(!0,t.defaults,r.originalSettings);i.hasInitialized=!1;t.setup(i,r)})}var t=this;t.version="2.18.3";t.parsers=[];t.widgets=[];t.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,widgetClass:"widget-{name}",initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssInfoBlock:"tablesorter-infoOnly",cssAllowClicks:"tablesorter-allowClicks",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]};t.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"};t.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"};t.log=i;t.benchmark=r;t.construct=function(i){return this.each(function(){var r=this,u=n.extend(!0,{},t.defaults,i);u.originalSettings=i;!r.hasInitialized&&t.buildTable&&this.tagName!=="TABLE"?t.buildTable(r,u):t.setup(r,u)})};t.setup=function(r,u){if(!r||!r.tHead||r.tBodies.length===0||r.hasInitialized===!0)return u.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var s="",f=n(r),c=n.metadata;r.hasInitialized=!1;r.isProcessing=!0;r.config=u;n.data(r,"tablesorter",u);u.debug&&n.data(r,"startoveralltimer",new Date);u.supportsDataObject=function(n){return n[0]=parseInt(n[0],10),n[0]>1||n[0]===1&&parseInt(n[1],10)>=4}(n.fn.jquery.split("."));u.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,"null":0,top:!0,bottom:!1};u.emptyTo=u.emptyTo.toLowerCase();u.stringTo=u.stringTo.toLowerCase();/tablesorter\-/.test(f.attr("class"))||(s=u.theme!==""?" tablesorter-"+u.theme:"");u.table=r;u.$table=f.addClass(t.css.table+" "+u.tableClass+s).attr("role","grid");u.$headers=f.find(u.selectorHeaders);u.namespace=u.namespace?"."+u.namespace.replace(/\W/g,""):".tablesorter"+Math.random().toString(16).slice(2);u.$table.children().children("tr").attr("role","row");u.$tbodies=f.children("tbody:not(."+u.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"});u.$table.children("caption").length&&(s=u.$table.children("caption")[0],s.id||(s.id=u.namespace.slice(1)+"caption"),u.$table.attr("aria-labelledby",s.id));u.widgetInit={};u.textExtraction=u.$table.attr("data-text-extraction")||u.textExtraction||"basic";p(r);g(r);o(r);u.totalRows=0;u.delayInit||e(r);t.bindEvents(r,u.$headers,!0);k(r);u.supportsDataObject&&typeof f.data().sortlist!="undefined"?u.sortList=f.data().sortlist:c&&f.metadata()&&f.metadata().sortlist&&(u.sortList=f.metadata().sortlist);t.applyWidget(r,!0);u.sortList.length>0?f.trigger("sorton",[u.sortList,{},!u.initWidgets,!0]):(h(r),u.initWidgets&&t.applyWidget(r,!1));u.showProcessing&&f.unbind("sortBegin"+u.namespace+" sortEnd"+u.namespace).bind("sortBegin"+u.namespace+" sortEnd"+u.namespace,function(n){clearTimeout(u.processTimer);t.isProcessing(r);n.type==="sortBegin"&&(u.processTimer=setTimeout(function(){t.isProcessing(r,!0)},500))});r.hasInitialized=!0;r.isProcessing=!1;u.debug&&t.benchmark("Overall initialization time",n.data(r,"startoveralltimer"));f.trigger("tablesorter-initialized",r);typeof u.initialized=="function"&&u.initialized(r)};t.getColumnData=function(t,i,r,u){if(typeof i!="undefined"&&i!==null){t=n(t)[0];var s,o,f,e=t.config;if(i[r])return u?i[r]:i[e.$headers.index(e.$headers.filter('[data-column="'+r+'"]:last'))];for(f in i)if(typeof f=="string"&&(o=e.$headers.filter('[data-column="'+r+'"]:last').filter(f).add(e.$headers.filter('[data-column="'+r+'"]:last').find(f)),o.length))return i[f];return s}};t.computeColumnIndex=function(t){for(var u=[],b={},c=0,s,i,h,l,e,a,r,v,y,p,f,w,o=0;o<t.length;o++)for(a=t[o].cells,s=0;s<a.length;s++){for(e=a[s],l=n(e),r=e.parentNode.rowIndex,v=r+"-"+l.index(),y=e.rowSpan||1,p=e.colSpan||1,typeof u[r]=="undefined"&&(u[r]=[]),i=0;i<u[r].length+1;i++)if(typeof u[r][i]=="undefined"){f=i;break}for(b[v]=f,c=Math.max(f,c),l.attr({"data-column":f}),i=r;i<r+y;i++)for(typeof u[i]=="undefined"&&(u[i]=[]),w=u[i],h=f;h<f+p;h++)w[h]="x"}return c+1};t.isProcessing=function(i,r,u){i=n(i);var f=i[0].config,e=u||i.find("."+t.css.header);r?(typeof u!="undefined"&&f.sortList.length>0&&(e=e.filter(function(){return this.sortDisabled?!1:t.isValueInArray(parseFloat(n(this).attr("data-column")),f.sortList)>=0})),i.add(e).addClass(t.css.processing+" "+f.cssProcessing)):i.add(e).removeClass(t.css.processing+" "+f.cssProcessing)};t.processTbody=function(t,i,r){t=n(t)[0];var u;if(r)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),n.fn.detach?i.detach():i.remove();u=n(t).find("span.tablesorter-savemyplace");i.insertAfter(u);u.remove();t.isProcessing=!1};t.clearTableBody=function(t){n(t)[0].config.$tbodies.children().detach()};t.bindEvents=function(t,i,r){t=n(t)[0];var o,u=t.config;r!==!0&&(u.$extraHeaders=u.$extraHeaders?u.$extraHeaders.add(i):i);i.find(u.selectorSort).add(i.filter(u.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(u.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(u.namespace+" "),function(r,s){var h,c=r.type;if(((r.which||r.button)===1||/sort|keyup/.test(c))&&(c!=="keyup"||r.which===13)&&(c!=="mouseup"||s===!0||!((new Date).getTime()-o>250))){if(c==="mousedown")return o=(new Date).getTime(),/(input|select|button|textarea)/i.test(r.target.tagName)||n(r.target).closest("td,th").hasClass(u.cssAllowClicks)?"":!u.cancelSelection;u.delayInit&&f(u.cache)&&e(t);h=n.fn.closest?n(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:n(this).parents("th, td")[0];h=u.$headers[i.index(h)];h.sortDisabled||w(t,h,r)}});u.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})};t.restoreHeaders=function(i){var r=n(i)[0].config;r.$table.find(r.selectorHeaders).each(function(i){n(this).find("."+t.css.headerIn).length&&n(this).html(r.headerContent[i])})};t.destroy=function(i,r,u){if(i=n(i)[0],i.hasInitialized){t.refreshWidgets(i,!0,!0);var e=n(i),f=i.config,o=e.find("thead:first"),s=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+f.cssHeaderRow),h=e.find("tfoot:first > tr").children("th, td");r===!1&&n.inArray("uitheme",f.widgets)>=0&&(e.trigger("applyWidgetId",["uitheme"]),e.trigger("applyWidgetId",["zebra"]));o.find("tr").not(s).remove();e.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(f.namespace+" "));f.$headers.add(h).removeClass([t.css.header,f.cssHeader,f.cssAsc,f.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true");s.find(f.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(f.namespace+" "));t.restoreHeaders(i);e.toggleClass(t.css.table+" "+f.tableClass+" tablesorter-"+f.theme,r===!1);i.hasInitialized=!1;delete i.config.cache;typeof u=="function"&&u(i)}};t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i};t.sortNatural=function(n,i){if(n===i)return 0;var o,h,s,c,u,e,r,l,f=t.regex;if(f.hex.test(i)){if(h=parseInt(n.match(f.hex),16),c=parseInt(i.match(f.hex),16),h<c)return-1;if(h>c)return 1}for(o=n.replace(f.chunk,"\\0$1\\0").replace(f.chunks,"").split("\\0"),s=i.replace(f.chunk,"\\0$1\\0").replace(f.chunks,"").split("\\0"),l=Math.max(o.length,s.length),r=0;r<l;r++){if(u=isNaN(o[r])?o[r]||0:parseFloat(o[r])||0,e=isNaN(s[r])?s[r]||0:parseFloat(s[r])||0,isNaN(u)!==isNaN(e))return isNaN(u)?1:-1;if(typeof u!=typeof e&&(u+="",e+=""),u<e)return-1;if(u>e)return 1}return 0};t.sortNaturalAsc=function(n,i,r,u,f){if(n===i)return 0;var e=f.string[f.empties[r]||f.emptyTo];return n===""&&e!==0?typeof e=="boolean"?e?-1:1:-e||-1:i===""&&e!==0?typeof e=="boolean"?e?1:-1:e||1:t.sortNatural(n,i)};t.sortNaturalDesc=function(n,i,r,u,f){if(n===i)return 0;var e=f.string[f.empties[r]||f.emptyTo];return n===""&&e!==0?typeof e=="boolean"?e?-1:1:e||1:i===""&&e!==0?typeof e=="boolean"?e?1:-1:-e||-1:t.sortNatural(i,n)};t.sortText=function(n,t){return n>t?1:n<t?-1:0};t.getTextValue=function(n,t,i){if(i){for(var f=n?n.length:0,u=i+t,r=0;r<f;r++)u+=n.charCodeAt(r);return t*u}return 0};t.sortNumericAsc=function(n,i,r,u,f,e){if(n===i)return 0;var s=e.config,o=s.string[s.empties[f]||s.emptyTo];return n===""&&o!==0?typeof o=="boolean"?o?-1:1:-o||-1:i===""&&o!==0?typeof o=="boolean"?o?1:-1:o||1:(isNaN(n)&&(n=t.getTextValue(n,r,u)),isNaN(i)&&(i=t.getTextValue(i,r,u)),n-i)};t.sortNumericDesc=function(n,i,r,u,f,e){if(n===i)return 0;var s=e.config,o=s.string[s.empties[f]||s.emptyTo];return n===""&&o!==0?typeof o=="boolean"?o?-1:1:o||1:i===""&&o!==0?typeof o=="boolean"?o?1:-1:-o||-1:(isNaN(n)&&(n=t.getTextValue(n,r,u)),isNaN(i)&&(i=t.getTextValue(i,r,u)),i-n)};t.sortNumeric=function(n,t){return n-t};t.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"};t.replaceAccents=function(n){var i,u="[",r=t.characterEquivalents;if(!t.characterRegex){t.characterRegexArray={};for(i in r)typeof i=="string"&&(u+=r[i],t.characterRegexArray[i]=new RegExp("["+r[i]+"]","g"));t.characterRegex=new RegExp(u+"]")}if(t.characterRegex.test(n))for(i in r)typeof i=="string"&&(n=n.replace(t.characterRegexArray[i],i));return n};t.isValueInArray=function(n,t){for(var r=t.length,i=0;i<r;i++)if(t[i][0]===n)return i;return-1};t.addParser=function(n){for(var u=t.parsers.length,r=!0,i=0;i<u;i++)t.parsers[i].id.toLowerCase()===n.id.toLowerCase()&&(r=!1);r&&t.parsers.push(n)};t.getParserById=function(n){if(n=="false")return!1;for(var r=t.parsers.length,i=0;i<r;i++)if(t.parsers[i].id.toLowerCase()===n.toString().toLowerCase())return t.parsers[i];return!1};t.addWidget=function(n){t.widgets.push(n)};t.hasWidget=function(t,i){return t=n(t),t.length&&t[0].config&&t[0].config.widgetInit[i]||!1};t.getWidgetById=function(n){for(var i,u=t.widgets.length,r=0;r<u;r++)if(i=t.widgets[r],i&&i.hasOwnProperty("id")&&i.id.toLowerCase()===n.toLowerCase())return i};t.applyWidget=function(i,u){i=n(i)[0];var f=i.config,s=f.widgetOptions,l=" "+f.table.className+" ",c=[],a,h,o,e;u!==!1&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(f.debug&&(a=new Date),e=new RegExp("\\s"+f.widgetClass.replace(/\{name\}/i,"([\\w-]+)")+"\\s","g"),l.match(e)&&(o=l.match(e),o&&n.each(o,function(n,t){f.widgets.push(t.replace(e,"$1"))})),f.widgets.length&&(i.isApplyingWidgets=!0,f.widgets=n.grep(f.widgets,function(t,i){return n.inArray(t,f.widgets)===i}),n.each(f.widgets||[],function(n,i){e=t.getWidgetById(i);e&&e.id&&(e.priority||(e.priority=10),c[n]=e)}),c.sort(function(n,t){return n.priority<t.priority?-1:n.priority===t.priority?0:1}),n.each(c,function(r,e){e&&((u||!f.widgetInit[e.id])&&(f.widgetInit[e.id]=!0,e.hasOwnProperty("options")&&(s=i.config.widgetOptions=n.extend(!0,{},e.options,s)),e.hasOwnProperty("init")&&(f.debug&&(h=new Date),e.init(i,e,f,s),f.debug&&t.benchmark("Initializing "+e.id+" widget",h))),!u&&e.hasOwnProperty("format")&&(f.debug&&(h=new Date),e.format(i,f,s,!1),f.debug&&t.benchmark((u?"Initializing ":"Applying ")+e.id+" widget",h)))})),setTimeout(function(){i.isApplyingWidgets=!1;n.data(i,"lastWidgetApplication",new Date)},0),f.debug&&(o=f.widgets.length,r("Completed "+(u===!0?"initializing ":"applying ")+o+" widget"+(o!==1?"s":""),a)))};t.refreshWidgets=function(r,u,f){r=n(r)[0];for(var s=r.config,h=s.widgets,o=t.widgets,c=o.length,e=0;e<c;e++)o[e]&&o[e].id&&(u||n.inArray(o[e].id,h)<0)&&(s.debug&&i('Refeshing widgets: Removing "'+o[e].id+'"'),o[e].hasOwnProperty("remove")&&s.widgetInit[o[e].id]&&(o[e].remove(r,s,s.widgetOptions),s.widgetInit[o[e].id]=!1));f!==!0&&t.applyWidget(r,u)};t.getData=function(t,i,r){var f="",u=n(t),e,o;return u.length?(e=n.metadata?u.metadata():!1,o=" "+(u.attr("class")||""),typeof u.data(r)!="undefined"||typeof u.data(r.toLowerCase())!="undefined"?f+=u.data(r)||u.data(r.toLowerCase()):e&&typeof e[r]!="undefined"?f+=e[r]:i&&typeof i[r]!="undefined"?f+=i[r]:o!==" "&&o.match(" "+r+"-")&&(f=o.match(new RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),n.trim(f)):""};t.formatFloat=function(t,i){if(typeof t!="string"||t==="")return t;var r,u=i&&i.config?i.config.usNumberFormat!==!1:typeof i!="undefined"?i:!0;return t=u?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),r=parseFloat(t),isNaN(r)?n.trim(t):r};t.isDigit=function(n){return isNaN(n)?/^[\-+(]?\d+[)]?$/.test(n.toString().replace(/[,.'"\s]/g,"")):!0}}});var t=n.tablesorter;n.fn.extend({tablesorter:t.construct});t.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"});t.addParser({id:"text",is:function(){return!0},format:function(i,r){var u=r.config;return i&&(i=n.trim(u.ignoreCase?i.toLocaleLowerCase():i),i=u.sortLocaleCompare?t.replaceAccents(i):i),i},type:"text"});t.addParser({id:"digit",is:function(n){return t.isDigit(n)},format:function(i,r){var u=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),r);return i&&typeof u=="number"?u:i?n.trim(i&&r.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"});t.addParser({id:"currency",is:function(n){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((n||"").replace(/[+\-,. ]/g,""))},format:function(i,r){var u=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),r);return i&&typeof u=="number"?u:i?n.trim(i&&r.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"});t.addParser({id:"url",is:function(n){return/^(https?|ftp|file):\/\//.test(n)},format:function(t){return t?n.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},parsed:!0,type:"text"});t.addParser({id:"isoDate",is:function(n){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(n)},format:function(n){var t=n?new Date(n.replace(/-/g,"/")):n;return t instanceof Date&&isFinite(t)?t.getTime():n},type:"numeric"});t.addParser({id:"percent",is:function(n){return/(\d\s*?%|%\s*?\d)/.test(n)&&n.length<15},format:function(n,i){return n?t.formatFloat(n.replace(/%/g,""),i):n},type:"numeric"});t.addParser({id:"image",is:function(n,t,i,r){return r.find("img").length>0},format:function(t,i,r){return n(r).find("img").attr(i.config.imgAttr||"alt")||t},parsed:!0,type:"text"});t.addParser({id:"usLongDate",is:function(n){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(n)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(n)},format:function(n){var t=n?new Date(n.replace(/(\S)([AP]M)$/i,"$1 $2")):n;return t instanceof Date&&isFinite(t)?t.getTime():n},type:"numeric"});t.addParser({id:"shortDate",is:function(n){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((n||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(n,i,r,u){if(n){var e,f,o=i.config,s=o.$headers.filter("[data-column="+u+"]:last"),h=s.length&&s[0].dateFormat||t.getData(s,t.getColumnData(i,o.headers,u),"dateFormat")||o.dateFormat;return f=n.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),h==="mmddyyyy"?f=f.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):h==="ddmmyyyy"?f=f.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):h==="yyyymmdd"&&(f=f.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3")),e=new Date(f),e instanceof Date&&isFinite(e)?e.getTime():n}return n},type:"numeric"});t.addParser({id:"time",is:function(n){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(n)},format:function(n){var t=n?new Date("2000/01/01 "+n.replace(/(\S)([AP]M)$/i,"$1 $2")):n;return t instanceof Date&&isFinite(t)?t.getTime():n},type:"numeric"});t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,r){var u=i.config,f=u.parserMetadataName?u.parserMetadataName:"sortValue";return n(r).metadata()[f]},type:"numeric"});t.addWidget({id:"zebra",priority:90,format:function(t,i,r){var o,s,h,f,e,l,u,a=new RegExp(i.cssChildRow,"i"),c=i.$tbodies;for(i.debug&&(l=new Date),u=0;u<c.length;u++)f=0,o=c.eq(u),s=o.children("tr:visible").not(i.selectorRemove),s.each(function(){h=n(this);a.test(this.className)||f++;e=f%2==0;h.removeClass(r.zebra[e?1:0]).addClass(r.zebra[e?0:1])})},remove:function(n,i,r){for(var f,e=i.$tbodies,o=(r.zebra||["even","odd"]).join(" "),u=0;u<e.length;u++)f=t.processTbody(n,e.eq(u),!0),f.children().removeClass(o),t.processTbody(n,f,!1)}})}(jQuery),function(n,t){"use strict";var i=n.tablesorter=n.tablesorter||{};i.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",footerRow:"",footerCells:"",icons:"",sortNone:"bootstrap-icon-unsorted",sortAsc:"icon-chevron-up glyphicon glyphicon-chevron-up",sortDesc:"icon-chevron-down glyphicon glyphicon-chevron-down",active:"",hover:"",filterRow:"",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",footerRow:"",footerCells:"",icons:"ui-icon",sortNone:"ui-icon-carat-2-n-s",sortAsc:"ui-icon-carat-1-n",sortDesc:"ui-icon-carat-1-s",active:"ui-state-active",hover:"ui-state-hover",filterRow:"",even:"ui-widget-content",odd:"ui-state-default"}};n.extend(i.css,{filterRow:"tablesorter-filter-row",filter:"tablesorter-filter",wrapper:"tablesorter-wrapper",resizer:"tablesorter-resizer",sticky:"tablesorter-stickyHeader",stickyVis:"tablesorter-sticky-visible",stickyWrap:"tablesorter-sticky-wrapper"});i.storage=function(i,r,u,f){i=n(i)[0];var h,c,s,l=!1,e={},v=i.config,a=n(i),y=f&&f.id||a.attr(f&&f.group||"data-table-group")||i.id||n(".tablesorter").index(a),o=f&&f.url||a.attr(f&&f.page||"data-table-page")||v&&v.fixedUrl||t.location.pathname;if("localStorage"in t)try{t.localStorage.setItem("_tmptest","temp");l=!0;t.localStorage.removeItem("_tmptest")}catch(p){}if(n.parseJSON&&(l?e=n.parseJSON(localStorage[r]||"{}"):(c=document.cookie.split(/[;\s|=]/),h=n.inArray(r,c)+1,e=h!==0?n.parseJSON(c[h]||"{}"):{})),(u||u==="")&&t.JSON&&JSON.hasOwnProperty("stringify"))e[o]||(e[o]={}),e[o][y]=u,l?localStorage[r]=JSON.stringify(e):(s=new Date,s.setTime(s.getTime()+31536e6),document.cookie=r+"="+JSON.stringify(e).replace(/\"/g,'"')+"; expires="+s.toGMTString()+"; path=/");else return e&&e[o]?e[o][y]:""};i.addHeaderResizeEvent=function(t,i,r){t=n(t)[0];var f,s=n.extend({},{timer:250},r),e=t.config,u=e.widgetOptions,o=function(t){u.resize_flag=!0;f=[];e.$headers.each(function(){var t=n(this),i=t.data("savedSizes")||[0,0],r=this.offsetWidth,u=this.offsetHeight;(r!==i[0]||u!==i[1])&&(t.data("savedSizes",[r,u]),f.push(this))});f.length&&t!==!1&&e.$table.trigger("resize",[f]);u.resize_flag=!1};if(o(!1),clearInterval(u.resize_timer),i)return u.resize_flag=!1,!1;u.resize_timer=setInterval(function(){u.resize_flag||o()},s.timer)};i.addWidget({id:"uitheme",priority:10,format:function(t,r,u){var s,k,a,o,v,y,p,e,w,d=i.themes,h=r.$table,c=r.$headers,l=r.theme||"jui",f=d[l]||d.jui,b=[f.sortNone,f.sortDesc,f.sortAsc,f.active].join(" ");for(r.debug&&(k=new Date),h.hasClass("tablesorter-"+l)&&r.theme===r.appliedTheme&&t.hasInitialized||(e=f[r.appliedTheme]||{},w=e?[e.sortNone,e.sortDesc,e.sortAsc,e.active].join(" "):"",e&&(u.zebra[0]=u.zebra[0].replace(" "+e.even,""),u.zebra[1]=u.zebra[1].replace(" "+e.odd,"")),f.even!==""&&(u.zebra[0]+=" "+f.even),f.odd!==""&&(u.zebra[1]+=" "+f.odd),h.children("caption").removeClass(e.caption).addClass(f.caption),y=h.removeClass(r.appliedTheme?"tablesorter-"+(r.appliedTheme||""):"").addClass("tablesorter-"+l+" "+f.table).children("tfoot"),y.length&&y.children("tr").removeClass(e.footerRow||"").addClass(f.footerRow).children("th, td").removeClass(e.footerCells||"").addClass(f.footerCells),c.add(r.$extraHeaders).removeClass(e.header+" "+e.hover+" "+w).addClass(f.header).not(".sorter-false").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(t){n(this)[t.type==="mouseenter"?"addClass":"removeClass"](f.hover)}),c.find("."+i.css.wrapper).length||c.wrapInner('<div class="'+i.css.wrapper+'" style="position:relative;height:100%;width:100%"><\/div>'),r.cssIcon&&c.find("."+i.css.icon).removeClass(e.icons+" "+w).addClass(f.icons),h.hasClass("hasFilters")&&h.children("thead").children("."+i.css.filterRow).removeClass(e.filterRow).addClass(f.filterRow),r.appliedTheme=r.theme),s=0;s<r.columns;s++)o=r.$headers.add(r.$extraHeaders).not(".sorter-false").filter('[data-column="'+s+'"]'),v=i.css.icon?o.find("."+i.css.icon):o,p=c.not(".sorter-false").filter('[data-column="'+s+'"]:last'),p.length&&(p[0].sortDisabled?(o.removeClass(b),v.removeClass(b+" "+f.icons)):(a=o.hasClass(i.css.sortAsc)?f.sortAsc:o.hasClass(i.css.sortDesc)?f.sortDesc:o.hasClass(i.css.header)?f.sortNone:"",o[a===f.sortNone?"removeClass":"addClass"](f.active),v.removeClass(b).addClass(a)));r.debug&&i.benchmark("Applying "+l+" theme",k)},remove:function(n,t){var u=t.$table,f=t.theme||"jui",r=i.themes[f]||i.themes.jui,e=u.children("thead").children(),o=r.sortNone+" "+r.sortDesc+" "+r.sortAsc;u.removeClass("tablesorter-"+f+" "+r.table).find(i.css.header).removeClass(r.header);e.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(r.hover+" "+o+" "+r.active).find("."+i.css.filterRow).removeClass(r.filterRow);e.find("."+i.css.icon).removeClass(r.icons)}});i.addWidget({id:"columns",priority:30,options:{columns:["primary","secondary","tertiary"]},format:function(t,r,u){for(var a,h,c,p,v,f,k=r.$table,w=r.$tbodies,o=r.sortList,l=o.length,e=u&&u.columns||["primary","secondary","tertiary"],b=e.length-1,y=e.join(" "),s=0;s<w.length;s++)a=i.processTbody(t,w.eq(s),!0),h=a.children("tr"),h.each(function(){if(p=n(this),this.style.display!=="none"&&(v=p.children().removeClass(y),o&&o[0]&&(v.eq(o[0][0]).addClass(e[0]),l>1)))for(f=1;f<l;f++)v.eq(o[f][0]).addClass(e[f]||e[b])}),i.processTbody(t,a,!1);if(c=u.columns_thead!==!1?["thead tr"]:[],u.columns_tfoot!==!1&&c.push("tfoot tr"),c.length&&(h=k.find(c.join(",")).children().removeClass(y),l))for(f=0;f<l;f++)h.filter('[data-column="'+o[f][0]+'"]').addClass(e[f]||e[b])},remove:function(t,r,u){var f,e,s=r.$tbodies,o=(u.columns||["primary","secondary","tertiary"]).join(" ");for(r.$headers.removeClass(o),r.$table.children("tfoot").children("tr").children("th, td").removeClass(o),f=0;f<s.length;f++)e=i.processTbody(t,s.eq(f),!0),e.children("tr").each(function(){n(this).children().removeClass(o)}),i.processTbody(t,e,!1)}});i.addWidget({id:"filter",priority:50,options:{filter_childRows:!1,filter_columnFilters:!0,filter_cellFilter:"",filter_cssFilter:"",filter_defaultFilter:{},filter_excludeFilter:{},filter_external:"",filter_filteredRow:"filtered",filter_formatter:null,filter_functions:null,filter_hideEmpty:!0,filter_hideFilters:!1,filter_ignoreCase:!0,filter_liveSearch:!0,filter_onlyAvail:"filter-onlyAvail",filter_placeholder:{search:"",select:""},filter_reset:null,filter_saveFilters:!1,filter_searchDelay:300,filter_searchFiltered:!0,filter_selectSource:null,filter_startsWith:!1,filter_useParsedData:!1,filter_serversideFiltering:!1,filter_defaultAttrib:"data-value",filter_selectSourceSeparator:"|"},format:function(n,t,r){t.$table.hasClass("hasFilters")||i.filter.init(n,t,r)},remove:function(t,r,u){var f,e,s=r.$table,o=r.$tbodies;for(s.removeClass("hasFilters").unbind("addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search ".split(" ").join(r.namespace+"filter ")).find("."+i.css.filterRow).remove(),f=0;f<o.length;f++)e=i.processTbody(t,o.eq(f),!0),e.children().removeClass(u.filter_filteredRow).show(),i.processTbody(t,e,!1);u.filter_reset&&n(document).undelegate(u.filter_reset,"click.tsfilter")}});i.filter={regex:{regex:/^\/((?:\\\/|[^\/])+)\/([mig]{0,3})?$/,child:/tablesorter-childRow/,filtered:/filtered/,type:/undefined|number/,exact:/(^[\"\'=]+)|([\"\'=]+$)/g,nondigit:/[^\w,. \-()]/g,operators:/[<>=]/g,query:"(q|query)"},types:{regex:function(n,t){if(i.filter.regex.regex.test(t.iFilter)){var r,u=i.filter.regex.regex.exec(t.iFilter);try{r=new RegExp(u[1],u[2]).test(t.iExact)}catch(f){r=!1}return r}return null},operators:function(t,r){if(/^[<>]=?/.test(r.iFilter)){var e,u,o=t.table,s=r.index,h=r.parsed[s],f=i.formatFloat(r.iFilter.replace(i.filter.regex.operators,""),o),c=t.parsers[s],l=f;return(h||c.type==="numeric")&&(u=i.filter.parseFilter(t,n.trim(""+r.iFilter.replace(i.filter.regex.operators,"")),s,h,!0),f=typeof u=="number"&&u!==""&&!isNaN(u)?u:f),e=(h||c.type==="numeric")&&!isNaN(f)&&typeof r.cache!="undefined"?r.cache:isNaN(r.iExact)?i.formatFloat(r.iExact.replace(i.filter.regex.nondigit,""),o):i.formatFloat(r.iExact,o),/>/.test(r.iFilter)&&(u=/>=/.test(r.iFilter)?e>=f:e>f),/</.test(r.iFilter)&&(u=/<=/.test(r.iFilter)?e<=f:e<f),u||l!==""||(u=!0),u}return null},notMatch:function(t,r){if(/^\!/.test(r.iFilter)){var f,u=i.filter.parseFilter(t,r.iFilter.replace("!",""),r.index,r.parsed[r.index]);return i.filter.regex.exact.test(u)?(u=u.replace(i.filter.regex.exact,""),u===""?!0:n.trim(u)!==r.iExact):(f=r.iExact.search(n.trim(u)),u===""?!0:!(t.widgetOptions.filter_startsWith?f===0:f>=0))}return null},exact:function(t,r){if(i.filter.regex.exact.test(r.iFilter)){var u=i.filter.parseFilter(t,r.iFilter.replace(i.filter.regex.exact,""),r.index,r.parsed[r.index]);return r.anyMatch?n.inArray(u,r.rowArray)>=0:u==r.iExact}return null},and:function(t,r){if(i.filter.regex.andTest.test(r.filter)){for(var f=r.index,s=r.parsed[f],e=r.iFilter.split(i.filter.regex.andSplit),u=r.iExact.search(n.trim(i.filter.parseFilter(t,e[0],f,s)))>=0,o=e.length-1;u&&o;)u=u&&r.iExact.search(n.trim(i.filter.parseFilter(t,e[o],f,s)))>=0,o--;return u}return null},range:function(n,t){if(i.filter.regex.toTest.test(t.iFilter)){var r,c,o=n.table,u=t.index,s=t.parsed[u],h=t.iFilter.split(i.filter.regex.toSplit),f=i.formatFloat(i.filter.parseFilter(n,h[0].replace(i.filter.regex.nondigit,""),u,s),o),e=i.formatFloat(i.filter.parseFilter(n,h[1].replace(i.filter.regex.nondigit,""),u,s),o);return(s||n.parsers[u].type==="numeric")&&(r=n.parsers[u].format(""+h[0],o,n.$headers.eq(u),u),f=r!==""&&!isNaN(r)?r:f,r=n.parsers[u].format(""+h[1],o,n.$headers.eq(u),u),e=r!==""&&!isNaN(r)?r:e),r=(s||n.parsers[u].type==="numeric")&&!isNaN(f)&&!isNaN(e)?t.cache:isNaN(t.iExact)?i.formatFloat(t.iExact.replace(i.filter.regex.nondigit,""),o):i.formatFloat(t.iExact,o),f>e&&(c=f,f=e,e=c),r>=f&&r<=e||f===""||e===""}return null},wild:function(t,r){if(/[\?\*\|]/.test(r.iFilter)||i.filter.regex.orReplace.test(r.filter)){var f=r.index,e=r.parsed[f],u=i.filter.parseFilter(t,r.iFilter.replace(i.filter.regex.orReplace,"|"),f,e);return!t.$headers.filter('[data-column="'+f+'"]:last').hasClass("filter-match")&&/\|/.test(u)&&(u[u.length-1]==="|"&&(u+="*"),u=r.anyMatch&&n.isArray(r.rowArray)?"("+u+")":"^("+u+")$"),new RegExp(u.replace(/\?/g,"\\S{1}").replace(/\*/g,"\\S*")).test(r.iExact)}return null},fuzzy:function(n,t){if(/^~/.test(t.iFilter)){for(var u=0,e=t.iExact.length,f=i.filter.parseFilter(n,t.iFilter.slice(1),t.index,t.parsed[t.index]),r=0;r<e;r++)t.iExact[r]===f[u]&&(u+=1);return u===f.length?!0:!1}return null}},init:function(t,r,u){i.language=n.extend(!0,{},{to:"to",or:"or",and:"and"},i.language);var c,f,e,o,s,a,h,l,v,y=i.filter.regex;if(r.$table.addClass("hasFilters"),u.searchTimer=null,u.filter_initTimer=null,u.filter_formatterCount=0,u.filter_formatterInit=[],u.filter_anyColumnSelector='[data-column="all"],[data-column="any"]',u.filter_multipleColumnSelector='[data-column*="-"],[data-column*=","]',e="\\{"+i.filter.regex.query+"\\}",n.extend(y,{child:new RegExp(r.cssChildRow),filtered:new RegExp(u.filter_filteredRow),alreadyFiltered:new RegExp("(\\s+("+i.language.or+"|-|"+i.language.to+")\\s+)","i"),toTest:new RegExp("\\s+(-|"+i.language.to+")\\s+","i"),toSplit:new RegExp("(?:\\s+(?:-|"+i.language.to+")\\s+)","gi"),andTest:new RegExp("\\s+("+i.language.and+"|&&)\\s+","i"),andSplit:new RegExp("(?:\\s+(?:"+i.language.and+"|&&)\\s+)","gi"),orReplace:new RegExp("\\s+("+i.language.or+")\\s+","gi"),iQuery:new RegExp(e,"i"),igQuery:new RegExp(e,"ig")}),u.filter_columnFilters!==!1&&r.$headers.filter(".filter-false, .parser-false").length!==r.$headers.length&&i.filter.buildRow(t,r,u),r.$table.bind("addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search ".split(" ").join(r.namespace+"filter "),function(f,e){return r.$table.find("."+i.css.filterRow).toggle(!(u.filter_hideEmpty&&n.isEmptyObject(r.cache)&&!(r.delayInit&&f.type==="appendCache"))),/(search|filter)/.test(f.type)||(f.stopPropagation(),i.filter.buildDefault(t,!0)),f.type==="filterReset"?(r.$table.find("."+i.css.filter).add(u.filter_$externalFilters).val(""),i.filter.searching(t,[])):f.type==="filterEnd"?i.filter.buildDefault(t,!0):(e=f.type==="search"?e:f.type==="updateComplete"?r.$table.data("lastSearch"):"",/(update|add)/.test(f.type)&&f.type!=="updateComplete"&&(r.lastCombinedFilter=null,r.lastSearch=[]),i.filter.searching(t,e,!0)),!1}),u.filter_reset&&(u.filter_reset instanceof n?u.filter_reset.click(function(){r.$table.trigger("filterReset")}):n(u.filter_reset).length&&n(document).undelegate(u.filter_reset,"click.tsfilter").delegate(u.filter_reset,"click.tsfilter",function(){r.$table.trigger("filterReset")})),u.filter_functions)for(s=0;s<r.columns;s++)if(l=i.getColumnData(t,u.filter_functions,s),l)if(o=r.$headers.filter('[data-column="'+s+'"]:last').removeClass("filter-select"),v=!(o.hasClass("filter-false")||o.hasClass("parser-false")),c="",l===!0&&v)i.filter.buildSelect(t,s);else if(typeof l=="object"&&v){for(f in l)typeof f=="string"&&(c+=c===""?'<option value="">'+(o.data("placeholder")||o.attr("data-placeholder")||u.filter_placeholder.select||"")+"<\/option>":"",h=f,e=f,f.indexOf(u.filter_selectSourceSeparator)>=0&&(h=f.split(u.filter_selectSourceSeparator),e=h[1],h=h[0]),c+="<option "+(e===h?"":'data-function-name="'+f+'" ')+'value="'+h+'">'+e+"<\/option>");r.$table.find("thead").find("select."+i.css.filter+'[data-column="'+s+'"]').append(c)}i.filter.buildDefault(t,!0);i.filter.bindSearch(t,r.$table.find("."+i.css.filter),!0);u.filter_external&&i.filter.bindSearch(t,u.filter_external);u.filter_hideFilters&&i.filter.hideFilters(t,r);r.showProcessing&&r.$table.bind("filterStart"+r.namespace+"filter filterEnd"+r.namespace+"filter",function(u,f){o=f?r.$table.find("."+i.css.header).filter("[data-column]").filter(function(){return f[n(this).data("column")]!==""}):"";i.isProcessing(t,u.type==="filterStart",f?o:"")});r.filteredRows=r.totalRows;r.$table.bind("tablesorter-initialized pagerBeforeInitialized",function(){var n=this.config.widgetOptions;a=i.filter.setDefaults(t,r,n)||[];a.length&&(r.delayInit&&a.join("")===""||i.setFilters(t,a,!0));r.$table.trigger("filterFomatterUpdate");setTimeout(function(){n.filter_initialized||i.filter.filterInitComplete(r)},100)});r.pager&&r.pager.initialized&&!u.filter_initialized&&(r.$table.trigger("filterFomatterUpdate"),setTimeout(function(){i.filter.filterInitComplete(r)},100))},formatterUpdated:function(n,t){var i=n.closest("table")[0].config.widgetOptions;i.filter_initialized||(i.filter_formatterInit[t]=1)},filterInitComplete:function(t){var r=t.widgetOptions,f=0,u=function(){r.filter_initialized=!0;t.$table.trigger("filterInit",t);i.filter.findRows(t.table,t.$table.data("lastSearch")||[])};n.isEmptyObject(r.filter_formatter)?u():(n.each(r.filter_formatterInit,function(n,t){t===1&&f++}),clearTimeout(r.filter_initTimer),r.filter_initialized||f!==r.filter_formatterCount?r.filter_initialized||(r.filter_initTimer=setTimeout(function(){u()},500)):u())},setDefaults:function(t,r,u){var s,o,f,e=i.getFilters(t)||[];if(u.filter_saveFilters&&i.storage&&(o=i.storage(t,"tablesorter-filters")||[],s=n.isArray(o),s&&o.join("")===""||!s||(e=o)),e.join("")==="")for(f=0;f<r.columns;f++)e[f]=r.$headers.filter('[data-column="'+f+'"]:last').attr(u.filter_defaultAttrib)||e[f];return r.$table.data("lastSearch",e),e},parseFilter:function(n,t,i,r,u){return u||r?n.parsers[i].format(t,n.table,[],i):t},buildRow:function(t,r,u){for(var h,o,l,c,a,s,v=r.columns,y=n.isArray(u.filter_cellFilter),e='<tr role="row" class="'+i.css.filterRow+'">',f=0;f<v;f++)e+=y?"<td"+(u.filter_cellFilter[f]?' class="'+u.filter_cellFilter[f]+'"':"")+"><\/td>":"<td"+(u.filter_cellFilter!==""?' class="'+u.filter_cellFilter+'"':"")+"><\/td>";for(r.$filters=n(e+="<\/tr>").appendTo(r.$table.children("thead").eq(0)).find("td"),f=0;f<v;f++)c=!1,o=r.$headers.filter('[data-column="'+f+'"]:last'),s=i.getColumnData(t,u.filter_functions,f),l=u.filter_functions&&s&&typeof s!="function"||o.hasClass("filter-select"),h=i.getColumnData(t,r.headers,f),c=i.getData(o[0],h,"filter")==="false"||i.getData(o[0],h,"parser")==="false",l?e=n("<select>").appendTo(r.$filters.eq(f)):(s=i.getColumnData(t,u.filter_formatter,f),s?(u.filter_formatterCount++,e=s(r.$filters.eq(f),f),e&&e.length===0&&(e=r.$filters.eq(f).children("input")),e&&(e.parent().length===0||e.parent().length&&e.parent()[0]!==r.$filters[f])&&r.$filters.eq(f).append(e)):e=n('<input type="search">').appendTo(r.$filters.eq(f)),e&&e.attr("placeholder",o.data("placeholder")||o.attr("data-placeholder")||u.filter_placeholder.search||"")),e&&(a=(n.isArray(u.filter_cssFilter)?typeof u.filter_cssFilter[f]!="undefined"?u.filter_cssFilter[f]||"":"":u.filter_cssFilter)||"",e.addClass(i.css.filter+" "+a).attr("data-column",f),c&&(e.attr("placeholder","").addClass("disabled")[0].disabled=!0))},bindSearch:function(t,r,u){if(t=n(t)[0],r=n(r),r.length){var e=t.config,f=e.widgetOptions,o=f.filter_$externalFilters;u!==!0&&(f.filter_$anyMatch=r.filter(f.filter_anyColumnSelector+","+f.filter_multipleColumnSelector),f.filter_$externalFilters=o&&o.length?f.filter_$externalFilters.add(r):r,i.setFilters(t,e.$table.data("lastSearch")||[],u===!1));r.attr("data-lastSearchTime",(new Date).getTime()).unbind("keypress keyup search change ".split(" ").join(e.namespace+"filter ")).bind("keyup"+e.namespace+"filter",function(r){if(n(this).attr("data-lastSearchTime",(new Date).getTime()),r.which===27)this.value="";else{if(f.filter_liveSearch===!1)return;if(this.value!==""&&(typeof f.filter_liveSearch=="number"&&this.value.length<f.filter_liveSearch||r.which!==13&&r.which!==8&&(r.which<32||r.which>=37&&r.which<=40)))return}i.filter.searching(t,!0,!0)}).bind("search change keypress ".split(" ").join(e.namespace+"filter "),function(r){var u=n(this).data("column");(r.which===13||r.type==="search"||r.type==="change"&&this.value!==e.lastSearch[u])&&(r.preventDefault(),n(this).attr("data-lastSearchTime",(new Date).getTime()),i.filter.searching(t,!1,!0))})}},searching:function(n,t,r){var u=n.config.widgetOptions;clearTimeout(u.searchTimer);typeof t=="undefined"||t===!0?u.searchTimer=setTimeout(function(){i.filter.checkFilters(n,t,r)},u.filter_liveSearch?u.filter_searchDelay:10):i.filter.checkFilters(n,t,r)},checkFilters:function(t,r,u){var f=t.config,s=f.widgetOptions,h=n.isArray(r),e=h?r:i.getFilters(t,!0),o=(e||[]).join("");if(n.isEmptyObject(f.cache)){f.delayInit&&f.pager&&f.pager.initialized&&f.$table.trigger("updateCache",[function(){i.filter.checkFilters(t,!1,u)}]);return}if(h&&(i.setFilters(t,e,!1,u!==!0),s.filter_initialized||(f.lastCombinedFilter="")),s.filter_hideFilters&&f.$table.find("."+i.css.filterRow).trigger(o===""?"mouseleave":"mouseenter"),f.lastCombinedFilter!==o||r===!1)if(r===!1&&(f.lastCombinedFilter=null,f.lastSearch=[]),s.filter_initialized&&f.$table.trigger("filterStart",[e]),f.showProcessing)setTimeout(function(){return i.filter.findRows(t,e,o),!1},30);else return i.filter.findRows(t,e,o),!1},hideFilters:function(t,r){var u,e,f;n(t).find("."+i.css.filterRow).addClass("hideme").bind("mouseenter mouseleave",function(t){var i=t;u=n(this);clearTimeout(f);f=setTimeout(function(){/enter|over/.test(i.type)?u.removeClass("hideme"):n(document.activeElement).closest("tr")[0]!==u[0]&&r.lastCombinedFilter===""&&u.addClass("hideme")},200)}).find("input, select").bind("focus blur",function(t){e=n(this).closest("tr");clearTimeout(f);var u=t;f=setTimeout(function(){i.getFilters(r.$table).join("")===""&&e[u.type==="focus"?"removeClass":"addClass"]("hideme")},200)})},defaultFilter:function(t,r){if(t==="")return t;var e=i.filter.regex.iQuery,s=r.match(i.filter.regex.igQuery).length,f=s>1?n.trim(t).split(/\s/):[n.trim(t)],h=f.length-1,o=0,u=r;for(h<1&&s>1&&(f[1]=f[0]);e.test(u);)u=u.replace(e,f[o++]||""),e.test(u)&&o<h&&(f[o]||"")!==""&&(u=r.replace(e,u));return u},getLatestSearch:function(t){return t.sort(function(t,i){return n(i).attr("data-lastSearchTime")-n(t).attr("data-lastSearchTime")})},multipleColumns:function(t,r){var o,s,u,h=t.widgetOptions,c=h.filter_initialized||!r.filter(h.filter_anyColumnSelector).length,e=[],f=n.trim(i.filter.getLatestSearch(r).attr("data-column"));if(c&&/-/.test(f)&&(o=f.match(/(\d+)\s*-\s*(\d+)/g),n.each(o,function(n,i){var o,s=i.split(/\s*-\s*/),r=parseInt(s[0],10)||0,u=parseInt(s[1],10)||t.columns-1;for(r>u&&(o=r,r=u,u=o),u>=t.columns&&(u=t.columns-1);r<=u;r++)e.push(r);f=f.replace(i,"")})),c&&/,/.test(f)&&(s=f.split(/\s*,\s*/),n.each(s,function(n,i){i!==""&&(u=parseInt(i,10),u<t.columns&&e.push(u))})),!e.length)for(u=0;u<t.columns;u++)e.push(u);return e},findRows:function(t,r,u){if(t.config.lastCombinedFilter!==u&&t.config.widgetOptions.filter_initialized){var it,h,l,b,ht,rt,ut,s,y,ft,et,g,k,c,ct,a,p,tt,v,w,lt,d,ot,nt=i.filter.regex,e=t.config,o=e.widgetOptions,st=e.$table.children("tbody"),f={anyMatch:!1},at=["range","notMatch","operators"];for(f.parsed=e.$headers.map(function(r){return e.parsers&&e.parsers[r]&&e.parsers[r].parsed||i.getData&&i.getData(e.$headers.filter('[data-column="'+r+'"]:last'),i.getColumnData(t,e.headers,r),"filter")==="parsed"||n(this).hasClass("filter-parsed")}).get(),e.debug&&(i.log("Starting filter widget search",r),ct=new Date),e.filteredRows=0,e.totalRows=0,u=(r||[]).join(""),b=0;b<st.length;b++)if(!st.eq(b).hasClass(e.cssInfoBlock||i.css.info)){if(ht=i.processTbody(t,st.eq(b),!0),s=e.columns,h=n(n.map(e.cache[b].normalized,function(n){return n[s].$row.get()})),u===""||o.filter_serversideFiltering)h.removeClass(o.filter_filteredRow).not("."+e.cssChildRow).show();else{if(h=h.not("."+e.cssChildRow),it=h.length,v=o.filter_searchFiltered,ft=e.lastSearch||e.$table.data("lastSearch")||[],v)for(p=0;p<s+1;p++)a=r[p]||"",v||(p=s),v=v&&ft.length&&a.indexOf(ft[p]||"")===0&&!nt.alreadyFiltered.test(a)&&!/[=\"\|!]/.test(a)&&!(/(>=?\s*-\d)/.test(a)||/(<=?\s*\d)/.test(a))&&!(a!==""&&e.$filters&&e.$filters.eq(p).find("select").length&&!e.$headers.filter('[data-column="'+p+'"]:last').hasClass("filter-match"));for(tt=h.not("."+o.filter_filteredRow).length,v&&tt===0&&(v=!1),e.debug&&i.log("Searching through "+(v&&tt<it?tt:"all")+" rows"),(o.filter_$anyMatch&&o.filter_$anyMatch.length||r[e.columns])&&(f.anyMatchFlag=!0,f.anyMatchFilter=o.filter_$anyMatch&&i.filter.getLatestSearch(o.filter_$anyMatch).val()||r[e.columns]||"",e.sortLocaleCompare&&(f.anyMatchFilter=i.replaceAccents(f.anyMatchFilter)),o.filter_defaultFilter&&nt.iQuery.test(i.getColumnData(t,o.filter_defaultFilter,e.columns,!0)||"")&&(f.anyMatchFilter=i.filter.defaultFilter(f.anyMatchFilter,i.getColumnData(t,o.filter_defaultFilter,e.columns,!0)),v=!1),f.iAnyMatchFilter=(o.filter_ignoreCase&&e.ignoreCase)?f.anyMatchFilter.toLocaleLowerCase():f.anyMatchFilter),l=0;l<it;l++)if(f.cacheArray=e.cache[b].normalized[l],y=h[l].className,!nt.child.test(y)&&(!v||!nt.filtered.test(y))){if(c=!0,y=h.eq(l).nextUntil("tr:not(."+e.cssChildRow+")"),f.childRowText=y.length&&o.filter_childRows?y.text():"",f.childRowText=o.filter_ignoreCase?f.childRowText.toLocaleLowerCase():f.childRowText,rt=h.eq(l).children(),f.anyMatchFlag){if(s=i.filter.multipleColumns(e,o.filter_$anyMatch),f.anyMatch=!0,f.rowArray=rt.map(function(t){if(n.inArray(t,s)>-1){var r;return f.parsed[t]?r=f.cacheArray[t]:(r=o.filter_ignoreCase?n(this).text().toLowerCase():n(this).text(),e.sortLocaleCompare&&(r=i.replaceAccents(r))),r}}).get(),f.filter=f.anyMatchFilter,f.iFilter=f.iAnyMatchFilter,f.exact=f.rowArray.join(" "),f.iExact=o.filter_ignoreCase?f.exact.toLowerCase():f.exact,f.cache=f.cacheArray.slice(0,-1).join(" "),w=null,n.each(i.filter.types,function(t,i){if(n.inArray(t,at)<0&&(g=i(e,f),g!==null))return w=g,!1}),w!==null)c=w;else if(o.filter_startsWith)for(c=!1,s=e.columns;!c&&s>0;)s--,c=c||f.rowArray[s].indexOf(f.iFilter)===0;else c=(f.iExact+f.childRowText).indexOf(f.iFilter)>=0;f.anyMatch=!1}for(s=0;s<e.columns;s++)f.filter=r[s],f.index=s,lt=(i.getColumnData(t,o.filter_excludeFilter,s,!0)||"").split(/\s+/),f.filter&&(f.cache=f.cacheArray[s],o.filter_useParsedData||f.parsed[s]?f.exact=f.cache:(f.exact=n.trim(rt.eq(s).text()),f.exact=e.sortLocaleCompare?i.replaceAccents(f.exact):f.exact),f.iExact=!nt.type.test(typeof f.exact)&&o.filter_ignoreCase?f.exact.toLocaleLowerCase():f.exact,k=c,ot=o.filter_columnFilters?e.$filters.add(e.$externalFilters).filter('[data-column="'+s+'"]').find("select option:selected").attr("data-function-name")||"":"",f.filter=e.sortLocaleCompare?i.replaceAccents(f.filter):f.filter,a=!0,o.filter_defaultFilter&&nt.iQuery.test(i.getColumnData(t,o.filter_defaultFilter,s)||"")&&(f.filter=i.filter.defaultFilter(f.filter,i.getColumnData(t,o.filter_defaultFilter,s)),a=!1),f.iFilter=o.filter_ignoreCase?(f.filter||"").toLocaleLowerCase():f.filter,d=i.getColumnData(t,o.filter_functions,s),ut=e.$headers.filter('[data-column="'+s+'"]:last'),et=ut.hasClass("filter-select"),d||et&&a?d===!0||et?k=ut.hasClass("filter-match")?f.iExact.search(f.iFilter)>=0:f.filter===f.exact:typeof d=="function"?k=d(f.exact,f.cache,f.filter,s,h.eq(l)):typeof d[ot||f.filter]=="function"&&(k=d[ot||f.filter](f.exact,f.cache,f.filter,s,h.eq(l))):(w=null,n.each(i.filter.types,function(t,i){if(n.inArray(t,lt)<0&&(g=i(e,f),g!==null))return w=g,!1}),w!==null?k=w:(f.exact=(f.iExact+f.childRowText).indexOf(i.filter.parseFilter(e,f.iFilter,s,f.parsed[s])),k=!o.filter_startsWith&&f.exact>=0||o.filter_startsWith&&f.exact===0)),c=k?c:!1);h.eq(l).toggle(c).toggleClass(o.filter_filteredRow,!c);y.length&&y.toggleClass(o.filter_filteredRow,!c)}}e.filteredRows+=h.not("."+o.filter_filteredRow).length;e.totalRows+=h.length;i.processTbody(t,ht,!1)}e.lastCombinedFilter=u;e.lastSearch=r;e.$table.data("lastSearch",r);o.filter_saveFilters&&i.storage&&i.storage(t,"tablesorter-filters",r);e.debug&&i.benchmark("Completed filter widget search",ct);o.filter_initialized&&e.$table.trigger("filterEnd",e);setTimeout(function(){e.$table.trigger("applyWidgets")},0)}},getOptionSource:function(t,r,u){var o,s=t.config,l=s.widgetOptions,c=[],f=!1,h=l.filter_selectSource,a=s.$table.data("lastSearch")||[],e=n.isFunction(h)?!0:i.getColumnData(t,h,r);if(u&&a[r]!==""&&(u=!1),e===!0)f=h(t,r,u);else{if(e instanceof n||n.type(e)==="string"&&e.indexOf("<\/option>")>=0)return e;n.isArray(e)?f=e:n.type(h)==="object"&&e&&(f=e(t,r,u))}return f===!1&&(f=i.filter.getOptions(t,r,u)),f=n.grep(f,function(t,i){return n.inArray(t,f)===i}),s.$headers.filter('[data-column="'+r+'"]:last').hasClass("filter-select-nosort")?f:(n.each(f,function(n,i){c.push({t:i,p:s.parsers&&s.parsers[r].format(i,t,[],r)})}),o=s.textSorter||"",c.sort(function(u,f){var e=u.p.toString(),s=f.p.toString();return n.isFunction(o)?o(e,s,!0,r,t):typeof o=="object"&&o.hasOwnProperty(r)?o[r](e,s,!0,r,t):i.sortNatural?i.sortNatural(e,s):!0}),f=[],n.each(c,function(n,t){f.push(t.t)}),f)},getOptions:function(t,i,r){for(var f,l,h,o,s,u=t.config,a=u.widgetOptions,v=u.$table.children("tbody"),c=[],e=0;e<v.length;e++)if(!v.eq(e).hasClass(u.cssInfoBlock))for(o=u.cache[e],l=u.cache[e].normalized.length,f=0;f<l;f++)(h=o.row?o.row[f]:o.normalized[f][u.columns].$row[0],r&&h.className.match(a.filter_filteredRow))||(a.filter_useParsedData||u.parsers[i].parsed||u.$headers.filter('[data-column="'+i+'"]:last').hasClass("filter-parsed")?c.push(""+o.normalized[f][i]):(s=h.cells[i],s&&c.push(n.trim(s.textContent||s.innerText||n(s).text()))));return c},buildSelect:function(t,r,u,f,e){if(t=n(t)[0],r=parseInt(r,10),t.config.cache&&!n.isEmptyObject(t.config.cache)){var o,v,s,y,h,a,c=t.config,l=c.widgetOptions,p=c.$headers.filter('[data-column="'+r+'"]:last'),w='<option value="">'+(p.data("placeholder")||p.attr("data-placeholder")||l.filter_placeholder.select||"")+"<\/option>",b=c.$table.find("thead").find("select."+i.css.filter+'[data-column="'+r+'"]').val();if((typeof u=="undefined"||u==="")&&(u=i.filter.getOptionSource(t,r,e)),n.isArray(u)){for(o=0;o<u.length;o++)s=u[o]=(""+u[o]).replace(/\"/g,"&quot;"),v=s,s.indexOf(l.filter_selectSourceSeparator)>=0&&(y=s.split(l.filter_selectSourceSeparator),v=y[0],s=y[1]),w+=u[o]!==""?"<option "+(v===s?"":'data-function-name="'+u[o]+'" ')+'value="'+v+'">'+s+"<\/option>":"";u=[]}h=(c.$filters?c.$filters:c.$table.children("thead")).find("."+i.css.filter);l.filter_$externalFilters&&(h=h&&h.length?h.add(l.filter_$externalFilters):l.filter_$externalFilters);a=h.filter('select[data-column="'+r+'"]');a.length&&(a[f?"html":"append"](w),n.isArray(u)||a.append(u).val(b),a.val(b))}},buildDefault:function(n,t){for(var u,e,f=n.config,o=f.widgetOptions,s=f.columns,r=0;r<s;r++)u=f.$headers.filter('[data-column="'+r+'"]:last'),e=!(u.hasClass("filter-false")||u.hasClass("parser-false")),(u.hasClass("filter-select")||i.getColumnData(n,o.filter_functions,r)===!0)&&e&&i.filter.buildSelect(n,r,"",t,u.hasClass(o.filter_onlyAvail))}};i.getFilters=function(t,r,u,f){var o,c,e,a,l=!1,s=t?n(t)[0].config:"",h=s?s.widgetOptions:"";if(r!==!0&&h&&!h.filter_columnFilters)return n(t).data("lastSearch");if(s&&(s.$filters&&(c=s.$filters.find("."+i.css.filter)),h.filter_$externalFilters&&(c=c&&c.length?c.add(h.filter_$externalFilters):h.filter_$externalFilters),c&&c.length))for(l=u||[],o=0;o<s.columns+1;o++)a=o===s.columns?h.filter_anyColumnSelector+","+h.filter_multipleColumnSelector:'[data-column="'+o+'"]',e=c.filter(a),e.length&&(e=i.filter.getLatestSearch(e),n.isArray(u)?(f&&e.slice(1),o===s.columns&&(a=e.filter(h.filter_anyColumnSelector),e=a.length?a:e),e.val(u[o]).trigger("change.tsfilter")):(l[o]=e.val()||"",o===s.columns?e.slice(1).filter('[data-column*="'+e.attr("data-column")+'"]').val(l[o]):e.slice(1).val(l[o])),o===s.columns&&e.length&&(h.filter_$anyMatch=e));return l.length===0&&(l=!1),l};i.setFilters=function(t,r,u,f){var e=t?n(t)[0].config:"",o=i.getFilters(t,!0,r,f);return e&&u&&(e.lastCombinedFilter=null,e.lastSearch=[],i.filter.searching(e.$table[0],r,f),e.$table.trigger("filterFomatterUpdate")),!!o};i.addWidget({id:"stickyHeaders",priority:60,options:{stickyHeaders:"",stickyHeaders_attachTo:null,stickyHeaders_xScroll:null,stickyHeaders_yScroll:null,stickyHeaders_offset:0,stickyHeaders_filteredToTop:!0,stickyHeaders_cloneId:"-sticky",stickyHeaders_addResizeEvent:!0,stickyHeaders_includeCaption:!0,stickyHeaders_zIndex:2},format:function(r,u,f){if(!u.$table.hasClass("hasStickyHeaders")&&(!(n.inArray("filter",u.widgets)>=0)||u.$table.hasClass("hasFilters"))){var e=u.$table,s=n(f.stickyHeaders_attachTo),a=u.namespace+"stickyheaders ",h=n(f.stickyHeaders_yScroll||f.stickyHeaders_attachTo||t),v=n(f.stickyHeaders_xScroll||f.stickyHeaders_attachTo||t),it=e.children("thead:first"),rt=it.children("tr").not(".sticky-false").children(),ut=e.children("tfoot"),y=isNaN(f.stickyHeaders_offset)?n(f.stickyHeaders_offset):"",p=s.length?0:y.length?y.height()||0:parseInt(f.stickyHeaders_offset,10)||0,c=e.parent().closest("."+i.css.table).hasClass("hasStickyHeaders")?e.parent().closest("table.tablesorter")[0].config.widgetOptions.$sticky.parent():[],w=c.length?c.height():0,o=f.$sticky=e.clone().addClass("containsStickyHeaders "+i.css.sticky+" "+f.stickyHeaders).wrap('<div class="'+i.css.stickyWrap+'">'),l=o.parent().css({position:s.length?"absolute":"fixed",margin:0,top:p+w,left:0,visibility:"hidden",zIndex:f.stickyHeaders_zIndex||2}),k=o.children("thead:first"),b,g="",d=0,nt=function(i,r){i.filter(":visible").each(function(i){var f,e,o=r.filter(":visible").eq(i),u=n(this);u.css("box-sizing")==="border-box"?f=u.outerWidth():o.css("border-collapse")==="collapse"?t.getComputedStyle?f=parseFloat(t.getComputedStyle(this,null).width):(e=parseFloat(u.css("border-width")),f=u.outerWidth()-parseFloat(u.css("padding-left"))-parseFloat(u.css("padding-right"))-e):f=u.width();o.css({"min-width":f,"max-width":f})})},tt=function(){p=y.length?y.height()||0:parseInt(f.stickyHeaders_offset,10)||0;d=0;l.css({left:s.length?parseInt(s.css("padding-left"),10)||0:e.offset().left-parseInt(e.css("margin-left"),10)-v.scrollLeft()-d,width:e.outerWidth()});nt(e,o);nt(rt,b)};o.attr("id")&&(o[0].id+=f.stickyHeaders_cloneId);o.find("thead:gt(0), tr.sticky-false").hide();o.find("tbody, tfoot").remove();f.stickyHeaders_includeCaption||o.find("caption").remove();b=k.children().children();o.css({height:0,width:0,margin:0});b.find("."+i.css.resizer).remove();e.addClass("hasStickyHeaders").bind("pagerComplete"+a,function(){tt()});i.bindEvents(r,k.children().children(".tablesorter-header"));e.after(l);u.onRenderHeader&&k.children("tr").children().each(function(t){u.onRenderHeader.apply(n(this),[t,u,o])});v.add(h).unbind("scroll resize ".split(" ").join(a)).bind("scroll resize ".split(" ").join(a),function(t){if(e.is(":visible")){w=c.length?c.offset().top-h.scrollTop()+c.height():0;var u="tablesorter-sticky-",o=e.offset(),a=n.isWindow(h[0]),y=n.isWindow(v[0]),f=(s.length?a?h.scrollTop():h.offset().top:h.scrollTop())+p+w,b=e.height()-(l.height()+(ut.height()||0)),r=f>o.top&&f<o.top+b?"visible":"hidden",i={visibility:r};s.length&&(i.top=a?f:s.scrollTop());y&&(i.left=e.offset().left-parseInt(e.css("margin-left"),10)-v.scrollLeft()-d);c.length&&(i.top=(i.top||0)+p+w);l.removeClass(u+"visible "+u+"hidden").addClass(u+r).css(i);(r!==g||t.type==="resize")&&(tt(),g=r)}});f.stickyHeaders_addResizeEvent&&i.addHeaderResizeEvent(r);e.hasClass("hasFilters")&&f.filter_columnFilters&&(e.bind("filterEnd"+a,function(){var r=n(document.activeElement).closest("td"),o=r.parent().children().index(r);l.hasClass(i.css.stickyVis)&&f.stickyHeaders_filteredToTop&&(t.scrollTo(0,e.position().top),o>=0&&u.$filters&&u.$filters.eq(o).find("a, select, input").filter(":visible").focus())}),i.filter.bindSearch(e,b.find("."+i.css.filter)),f.filter_hideFilters&&i.filter.hideFilters(o,u));e.trigger("stickyHeadersInit")}},remove:function(r,u,f){var e=u.namespace+"stickyheaders ";u.$table.removeClass("hasStickyHeaders").unbind("pagerComplete filterEnd ".split(" ").join(e)).next("."+i.css.stickyWrap).remove();f.$sticky&&f.$sticky.length&&f.$sticky.remove();n(".hasStickyHeaders").length||n(t).add(f.stickyHeaders_xScroll).add(f.stickyHeaders_yScroll).add(f.stickyHeaders_attachTo).unbind("scroll resize ".split(" ").join(e));i.addHeaderResizeEvent(r,!1)}});i.addWidget({id:"resizable",priority:40,options:{resizable:!0,resizable_addLastColumn:!1,resizable_widths:[],resizable_throttle:!1},format:function(r,u,f){if(!u.$table.hasClass("hasResizable")){u.$table.addClass("hasResizable");i.resizableReset(r,!0);var v,y,l,h,p,o={},c=u.$table,b=c.parent(),k=c.parent().css("overflow")==="auto",a=0,e=null,s=null,d=Math.abs(c.parent().width()-c.width())<20,w=function(n){if(a!==0&&e){var t=n.pageX-a,i=e.width();e.width(i+t);e.width()!==i&&d?s.width(s.width()-t):k&&(c.width(function(n,i){return i+t}),s.length||(b[0].scrollLeft=c.width()));a=n.pageX}},g=function(){i.storage&&e&&s&&(o={},o[e.index()]=e.width(),o[s.index()]=s.width(),e.width(o[e.index()]),s.width(o[s.index()]),f.resizable!==!1&&i.storage(r,"tablesorter-resizable",u.$headers.map(function(){return n(this).width()}).get()));a=0;e=s=null;n(t).trigger("resize")};if(o=i.storage&&f.resizable!==!1?i.storage(r,"tablesorter-resizable"):{},o)for(h in o)!isNaN(h)&&h<u.$headers.length&&u.$headers.eq(h).width(o[h]);v=c.children("thead:first").children("tr");v.children().each(function(){var t,f=n(this);h=f.attr("data-column");t=i.getData(f,i.getColumnData(r,u.headers,h),"resizable")==="false";v.children().filter('[data-column="'+h+'"]')[t?"addClass":"removeClass"]("resizable-false")});v.each(function(){l=n(this).children().not(".resizable-false");n(this).find("."+i.css.wrapper).length||l.wrapInner('<div class="'+i.css.wrapper+'" style="position:relative;height:100%;width:100%"><\/div>');f.resizable_addLastColumn||(l=l.slice(0,-1));y=y?y.add(l):l});y.each(function(){var t=n(this),r=parseInt(t.css("padding-right"),10)+10;t.find("."+i.css.wrapper).append('<div class="'+i.css.resizer+'" style="cursor:w-resize;position:absolute;z-index:1;right:-'+r+'px;top:0;height:100%;width:20px;"><\/div>')}).find("."+i.css.resizer).bind("mousedown",function(t){e=n(t.target).closest("th");var i=u.$headers.filter('[data-column="'+e.attr("data-column")+'"]');i.length>1&&(e=e.add(i));s=t.shiftKey?e.parent().find("th").not(".resizable-false").filter(":last"):e.nextAll(":not(.resizable-false)").eq(0);a=t.pageX});n(document).bind("mousemove.tsresize",function(n){a!==0&&e&&(f.resizable_throttle?(clearTimeout(p),p=setTimeout(function(){w(n)},isNaN(f.resizable_throttle)?5:f.resizable_throttle)):w(n))}).bind("mouseup.tsresize",function(){g()});c.find("thead:first").bind("contextmenu.tsresize",function(){i.resizableReset(r);var t=n.isEmptyObject?n.isEmptyObject(o):!0;return o={},t})}},remove:function(n,t){t.$table.removeClass("hasResizable").children("thead").unbind("mouseup.tsresize mouseleave.tsresize contextmenu.tsresize").children("tr").children().unbind("mousemove.tsresize mouseup.tsresize").find("."+i.css.resizer).remove();i.resizableReset(n)}});i.resizableReset=function(t,r){n(t).each(function(){var u,f=this.config,e=f&&f.widgetOptions;t&&f&&(f.$headers.each(function(t){u=n(this);e.resizable_widths[t]?u.css("width",e.resizable_widths[t]):u.hasClass("resizable-false")||u.css("width","")}),i.storage&&!r&&i.storage(this,"tablesorter-resizable",{}))})};i.addWidget({id:"saveSort",priority:20,options:{saveSort:!0},init:function(n,t,i,r){t.format(n,i,r,!0)},format:function(t,r,u,f){var o,h,s=r.$table,c=u.saveSort!==!1,e={sortList:r.sortList};r.debug&&(h=new Date);s.hasClass("hasSaveSort")?c&&t.hasInitialized&&i.storage&&(i.storage(t,"tablesorter-savesort",e),r.debug&&i.benchmark("saveSort widget: Saving last sort: "+r.sortList,h)):(s.addClass("hasSaveSort"),e="",i.storage&&(o=i.storage(t,"tablesorter-savesort"),e=o&&o.hasOwnProperty("sortList")&&n.isArray(o.sortList)?o.sortList:"",r.debug&&i.benchmark('saveSort: Last sort loaded: "'+e+'"',h),s.bind("saveSortReset",function(n){n.stopPropagation();i.storage(t,"tablesorter-savesort","")})),f&&e&&e.length>0?r.sortList=e:t.hasInitialized&&e&&e.length>0&&s.trigger("sorton",[e]))},remove:function(n){i.storage&&i.storage(n,"tablesorter-savesort","")}})}(jQuery,window);jQuery.fn.equalHeight=function(n){n==undefined&&(n=!1);n&&this.height("auto");var t=0;this.each(function(){$(this).height()>t&&(t=$(this).height())});this.height(t)};jQuery.fn.center=function(){return this.css("position","absolute"),this.css("top",($(window).height()-this.height())/2+$(window).scrollTop()+"px"),this.css("left",($(window).width()-this.width())/2+$(window).scrollLeft()+"px"),this};jQuery.fn.equalMinHeight=function(){var n=0;this.each(function(){$(this).height()>n&&(n=$(this).height())});$(".ie6,.ie7").length?this.height(n):this.css({"min-height":n})};jQuery.fn.catTabs=function(n){n=n||{};n.linkSelector=n.linkSelector||"#tabList .tabNav";n.activeLinkClass=n.activeLinkClass||"active";n.tabContentSelector=n.tabContentSelector||".tabContent .tabContentSection";var t=this,i=t.find(n.linkSelector),r=t.find(n.tabContentSelector);i.click(function(t){t.preventDefault();r.hide().filter(this.hash).show();i.removeClass(n.activeLinkClass).filter(this).addClass(n.activeLinkClass);$("#tabList li").removeClass(n.activeLinkClass).filter($(this).parent()).addClass(n.activeLinkClass)}).filter(":first").click()};jQuery.fn.searchable=function(){$(this).before('<div class="input-group filter-group row row-bottom-margin col-md-4 col-sm-12"><span class="input-group-addon"><span class="glyphicon glyphicon-search"><\/span><\/span><input type="text" class="table-filter form-control"><\/div>');$(this).addClass("searchable");$(".table-filter").unbind();$(".table-filter").on("keyup",function(){var t=new RegExp($(this).val(),"i"),n=$(this).closest(".filter-group").next(".searchable").find("tbody tr");n.hide();n.filter(function(){return t.test($(this).text())}).show()});$(".table-filter").bind("mouseup",function(){var n=$(this),t=n.val();t!=""&&setTimeout(function(){var t=n.val();t==""&&n.trigger("keyup")},1)})},function(){}(window.jQuery);/*@cc_on@if(@_win32)document.execCommand("BackgroundImageCache",!1,!0);@end@*/(function(n){n.fn.hoverIntent=function(t,i){var r={sensitivity:7,interval:100,timeout:0};r=n.extend(r,i?{over:t,out:i}:t);var u,f,e,o,s=function(n){u=n.pageX;f=n.pageY},h=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(e-u)+Math.abs(o-f)<r.sensitivity)return n(i).unbind("mousemove",s),i.hoverIntent_s=1,r.over.apply(i,[t]);e=u;o=f;i.hoverIntent_t=setTimeout(function(){h(t,i)},r.interval)},l=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,r.out.apply(t,[n])},c=function(t){for(var u=(t.type=="mouseover"?t.fromElement:t.toElement)||t.relatedTarget,f,i;u&&u!=this;)try{u=u.parentNode}catch(t){u=this}if(u==this)return!1;f=jQuery.extend({},t);i=this;i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t));t.type=="mouseover"?(e=f.pageX,o=f.pageY,n(i).bind("mousemove",s),i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){h(f,i)},r.interval))):(n(i).unbind("mousemove",s),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){l(f,i)},r.timeout)))};return this.mouseover(c).mouseout(c)}})(jQuery),function(n,t,i){function u(n){return n}function f(n){return decodeURIComponent(n.replace(r," "))}var r=/\+/g;n.cookie=function(r,e,o){var v,h,c,l,s,a;if(e!==i&&!/Object/.test(Object.prototype.toString.call(e)))return o=n.extend({},n.cookie.defaults,o),e===null&&(o.expires=-1),typeof o.expires=="number"&&(v=o.expires,h=o.expires=new Date,h.setDate(h.getDate()+v)),e=String(e),t.cookie=[encodeURIComponent(r),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");for(o=e||n.cookie.defaults||{},c=o.raw?u:f,l=t.cookie.split("; "),s=0;a=l[s]&&l[s].split("=");s++)if(c(a.shift())===r)return c(a.join("="));return null};n.cookie.defaults={};n.removeCookie=function(t,i){return n.cookie(t,i)!==null?(n.cookie(t,null,i),!0):!1}}(jQuery,document),function(n,t){"use strict";var i=t.event,r,u;i.special.smartresize={setup:function(){t(this).bind("resize",i.special.smartresize.handler)},teardown:function(){t(this).unbind("resize",i.special.smartresize.handler)},handler:function(n,t){var u=this,f=arguments;n.type="smartresize";r&&clearTimeout(r);r=setTimeout(function(){i.dispatch.apply(u,f)},t==="execAsap"?0:100)}};t.fn.smartresize=function(n){return n?this.bind("smartresize",n):this.trigger("smartresize",["execAsap"])};t.Mason=function(n,i){this.element=t(i);this._create(n);this._init()};t.Mason.settings={isResizable:!0,isAnimated:!1,animationOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1,containerStyle:{position:"relative"}};t.Mason.prototype={_filterFindBricks:function(n){var t=this.options.itemSelector;return t?n.filter(t).add(n.find(t)):n},_getBricks:function(n){return this._filterFindBricks(n).css({position:"absolute"}).addClass("masonry-brick")},_create:function(i){var r,u,f,e,o,s;this.options=t.extend(!0,{},t.Mason.settings,i);this.styleQueue=[];r=this.element[0].style;this.originalStyle={height:r.height||""};u=this.options.containerStyle;for(f in u)this.originalStyle[f]=r[f]||"";this.element.css(u);this.horizontalDirection=this.options.isRTL?"right":"left";e=this.element.css("padding-"+this.horizontalDirection);o=this.element.css("padding-top");this.offset={x:e?parseInt(e,10):0,y:o?parseInt(o,10):0};this.isFluid=this.options.columnWidth&&typeof this.options.columnWidth=="function";s=this;setTimeout(function(){s.element.addClass("masonry")},0);this.options.isResizable&&t(n).bind("smartresize.masonry",function(){s.resize()});this.reloadItems()},_init:function(n){this._getColumns();this._reLayout(n)},option:function(n){t.isPlainObject(n)&&(this.options=t.extend(!0,this.options,n))},layout:function(n,t){for(var u,f,o,s,e,i=0,r=n.length;i<r;i++)this._placeBrick(n[i]);if(u={},u.height=Math.max.apply(Math,this.colYs),this.options.isFitWidth){for(f=0,i=this.cols;--i;){if(this.colYs[i]!==0)break;f++}u.width=(this.cols-f)*this.columnWidth-this.options.gutterWidth}for(this.styleQueue.push({$el:this.element,style:u}),o=this.isLaidOut?this.options.isAnimated?"animate":"css":"css",s=this.options.animationOptions,i=0,r=this.styleQueue.length;i<r;i++)e=this.styleQueue[i],e.$el[o](e.style,s);this.styleQueue=[];t&&t.call(n);this.isLaidOut=!0},_getColumns:function(){var t=this.options.isFitWidth?this.element.parent():this.element,n=t.width();this.columnWidth=this.isFluid?this.options.columnWidth(n):this.options.columnWidth||this.$bricks.outerWidth(!0)||n;this.columnWidth+=this.options.gutterWidth;this.cols=Math.floor((n+this.options.gutterWidth)/this.columnWidth);this.cols=Math.max(this.cols,1)},_placeBrick:function(n){var s=t(n),r,l,u,a,f,e,o,i,h,c,v,y;if(r=Math.ceil(s.outerWidth(!0)/this.columnWidth),r=Math.min(r,this.cols),r===1)u=this.colYs;else for(l=this.cols+1-r,u=[],f=0;f<l;f++)a=this.colYs.slice(f,f+r),u[f]=Math.max.apply(Math,a);for(e=Math.min.apply(Math,u),o=0,i=0,h=u.length;i<h;i++)if(u[i]===e){o=i;break}for(c={top:e+this.offset.y},c[this.horizontalDirection]=this.columnWidth*o+this.offset.x,this.styleQueue.push({$el:s,style:c}),v=e+s.outerHeight(!0),y=this.cols+1-h,i=0;i<y;i++)this.colYs[o+i]=v},resize:function(){var n=this.cols;this._getColumns();(this.isFluid||this.cols!==n)&&this._reLayout()},_reLayout:function(n){var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.layout(this.$bricks,n)},reloadItems:function(){this.$bricks=this._getBricks(this.element.children())},reload:function(n){this.reloadItems();this._init(n)},appended:function(n,t,i){if(t){this._filterFindBricks(n).css({top:this.element.height()});var r=this;setTimeout(function(){r._appended(n,i)},1)}else this._appended(n,i)},_appended:function(n,t){var i=this._getBricks(n);this.$bricks=this.$bricks.add(i);this.layout(i,t)},remove:function(n){this.$bricks=this.$bricks.not(n);n.remove()},destroy:function(){var r,i;this.$bricks.removeClass("masonry-brick").each(function(){this.style.position="";this.style.top="";this.style.left=""});r=this.element[0].style;for(i in this.originalStyle)r[i]=this.originalStyle[i];this.element.unbind(".masonry").removeClass("masonry").removeData("masonry");t(n).unbind(".masonry")}};t.fn.imagesLoaded=function(n){function u(){n.call(i,r)}function f(n){var i=n.target;i.src!==o&&t.inArray(i,s)===-1&&(s.push(i),--e<=0&&(setTimeout(u),r.unbind(".imagesLoaded",f)))}var i=this,r=i.find("img").add(i.filter("img")),e=r.length,o="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",s=[];return e||u(),r.bind("load.imagesLoaded error.imagesLoaded",f).each(function(){var n=this.src;this.src=o;this.src=n}),i};u=function(t){n.console&&n.console.error(t)};t.fn.masonry=function(n){if(typeof n=="string"){var i=Array.prototype.slice.call(arguments,1);this.each(function(){var r=t.data(this,"masonry");if(!r){u("cannot call methods on masonry prior to initialization; attempted to call method '"+n+"'");return}if(!t.isFunction(r[n])||n.charAt(0)==="_"){u("no such method '"+n+"' for masonry instance");return}r[n].apply(r,i)})}else this.each(function(){var i=t.data(this,"masonry");i?(i.option(n||{}),i._init()):t.data(this,"masonry",new t.Mason(n,this))});return this}}(window,jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function a(t){var i={},r=/^jQuery\d+$/;return n.each(t.attributes,function(n,t){t.specified&&!r.test(t.name)&&(i[t.name]=t.value)}),i}function u(i,r){var f=this,u=n(f);if(f.value==u.attr("placeholder")&&u.hasClass(t.customClass))if(u.data("placeholder-password")){if(u=u.hide().nextAll('input[type="password"]:first').show().attr("id",u.removeAttr("id").data("placeholder-id")),i===!0)return u[0].value=r;u.focus()}else f.value="",u.removeClass(t.customClass),f==s()&&f.select()}function e(){var r,f=this,i=n(f),e=this.id;if(""===f.value){if("password"===f.type){if(!i.data("placeholder-textinput")){try{r=i.clone().attr({type:"text"})}catch(o){r=n("<input>").attr(n.extend(a(this),{type:"text"}))}r.removeAttr("name").data({"placeholder-password":i,"placeholder-id":e}).bind("focus.placeholder",u);i.data({"placeholder-textinput":r,"placeholder-id":e}).before(r)}i=i.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",e).show()}i.addClass(t.customClass);i[0].value=i.attr("placeholder")}else i.removeClass(t.customClass)}function s(){try{return document.activeElement}catch(n){}}var r,i,h="[object OperaMini]"==Object.prototype.toString.call(window.operamini),f="placeholder"in document.createElement("input")&&!h,o="placeholder"in document.createElement("textarea")&&!h,c=n.valHooks,l=n.propHooks,t;f&&o?(i=n.fn.placeholder=function(){return this},i.input=i.textarea=!0):(t={},i=n.fn.placeholder=function(i){var r;return t=n.extend({},{customClass:"placeholder"},i),r=this,r.filter((f?"textarea":":input")+"[placeholder]").not("."+t.customClass).bind({"focus.placeholder":u,"blur.placeholder":e}).data("placeholder-enabled",!0).trigger("blur.placeholder"),r},i.input=f,i.textarea=o,r={get:function(i){var r=n(i),u=r.data("placeholder-password");return u?u[0].value:r.data("placeholder-enabled")&&r.hasClass(t.customClass)?"":i.value},set:function(i,r){var f=n(i),o=f.data("placeholder-password");return o?o[0].value=r:f.data("placeholder-enabled")?(""===r?(i.value=r,i!=s()&&e.call(i)):f.hasClass(t.customClass)?u.call(i,!0,r)||(i.value=r):i.value=r,f):i.value=r}},f||(c.input=r,l.value=r),o||(c.textarea=r,l.value=r),n(function(){n(document).delegate("form","submit.placeholder",function(){var i=n("."+t.customClass,this).each(u);setTimeout(function(){i.each(e)},10)})}),n(window).bind("beforeunload.placeholder",function(){n("."+t.customClass).each(function(){this.value=""})}))});myMeterMobile=myMeterMobile||{};myMeterMobile.plugins=myMeterMobile.plugins||{};myMeterMobile.plugins.horizontalScrollNavigation=function(n,t){var i=t(window).width()/2,r,u,f,e;return n.setNavigationLocation=function(n){var r=n.offset().left-i,u=r+t(".scroll-horizontal").scrollLeft()+n.width()/2;t(".scroll-horizontal").animate({scrollLeft:u},400);t(".scroll-content .active").removeClass("active");n.addClass("active")},n.initialize=function(){r=0;t(".scroll-content:not(.initialized)").find(".nav-item").each(function(){r+=t(this).outerWidth(!0)});u=t(".scroll-content .nav-item").first().offset().left;f=i-t(".scroll-content .nav-item").first().outerWidth()/2-u;e=i-t(".scroll-content .nav-item").last().outerWidth()/2+parseInt(t(".scroll-content .nav-item").last().css("margin-left"));t(".scroll-content:not(.initialized)").width(r+e+1);t(".scroll-content:not(.initialized)").css("margin-left",f+"px");t(".scroll-content:not(.initialized) .nav-link").on("click",function(){myMeterMobile.plugins.horizontalSwipeNavigation.navigateToPage(t(this).data("target"),!0)});t(".scroll-content").addClass("initialized")},n}(myMeterMobile.plugins.horizontalScrollNavigation||{},jQuery);jQuery.fn.horizontalScrollNavigation=function(){myMeterMobile.plugins.horizontalScrollNavigation.initialize()};myMeterMobile=myMeterMobile||{};myMeterMobile.plugins=myMeterMobile.plugins||{};myMeterMobile.plugins.horizontalSwipeNavigation=function(n,t){var o,u,s,h,f,i=0,r=!1,e={minimumSwipeDistance:t(window).width()/3,maximumVerticalSwipe:150};return n.navigateToPage=function(n,r,u){var f=t(n),e;t(".swipe-navigation-page.active-content").removeClass("active-content").addClass("unloading");f.addClass("active-content loading");e=t('.scroll-content .nav-link[data-target="'+n+'"]');myMeterMobile.plugins.horizontalScrollNavigation.setNavigationLocation(e);i=t(".swipe-navigation-page").index(f)*t(window).width();typeof r!="undefined"&&r?(t(".swipe-navigation-view").scrollLeft(i),t(".swipe-navigation-page:not(.active-content)").html(""),processAjax({url:f.data("action"),data:u,complete:function(){t(".unloading").removeClass("unloading")}})):t(".swipe-navigation-view").animate({scrollLeft:i},400,function(){t(".swipe-navigation-page:not(.active-content)").html("");processAjax({url:f.data("action"),data:u,complete:function(){t(".unloading").removeClass("unloading")}})})},n.initialize=function(n){t.extend(e,n);t(".swipe-navigation-page").width(t(window).width());t(".swipe-navigation-page").height(t(window).height()-t(".main-nav").outerHeight(!0));t(".swipe-navigation-view").width(t(window).width());t(".swipe-navigation-view").height(t(window).height()-t(".main-nav").outerHeight(!0));t(".swipe-navigation-container").width(t(window).width()*t(".swipe-navigation-page").length);t(".swipe-navigation-page").on("touchstart",function(n){t(n.target).is(".swipe-disabled")||t(n.target).parents(".swipe-disabled").length||(r=!1,o=n.originalEvent.touches?n.originalEvent.touches[0].pageX:n.pageX,s=n.originalEvent.touches?n.originalEvent.touches[0].pageY:n.pageY)});t(".swipe-navigation-page").on("touchmove",function(n){if(!t(n.target).is(".swipe-disabled")&&!t(n.target).parents(".swipe-disabled").length){r=!0;var i=n.originalEvent.touches?n.originalEvent.touches[0].pageX:n.pageX,e=n.originalEvent.touches?n.originalEvent.touches[0].pageY:n.pageY;f=i>u?"right":"left";u=i;h=e}});t(".swipe-navigation-page").on("touchend",function(n){var a,v,c,l;if(!t(n.target).is(".swipe-disabled")&&!t(n.target).parents(".swipe-disabled").length)if(a=Math.abs(u-o)>e.minimumSwipeDistance,v=Math.abs(h-s)<e.maximumVerticalSwipe,r&&a&&v)switch(f){case"right":if(c=t(".swipe-navigation-page.active-content").prev(),!c.length)return!1;myMeterMobile.plugins.horizontalSwipeNavigation.navigateToPage("#"+c.attr("id"),!1);break;case"left":if(l=t(".swipe-navigation-page.active-content").next(),!l.length)return!1;myMeterMobile.plugins.horizontalSwipeNavigation.navigateToPage("#"+l.attr("id"),!1)}else r&&t(".swipe-navigation-view").animate({scrollLeft:i})})},n}(myMeterMobile.plugins.horizontalWipeNavigation||{},jQuery);jQuery.fn.horizontalSwipeNavigation=function(n){myMeterMobile.plugins.horizontalSwipeNavigation.initialize(n)};window.kontext=function(n){function r(r,f){t=Array.prototype.slice.call(n.find(".layer"));n.addClass("animate");f=f||(r>i()?"right":"left");typeof r=="string"&&(r=parseInt(r));typeof r!="number"&&(r=i(r));r=Math.max(Math.min(r,t.length),0);t[r]&&!t[r].classList.contains("show")&&(t.forEach(function(n){n.classList.remove("left","right");n.classList.add(f);n.classList.contains("show")?(n.classList.remove("show"),n.classList.add("hide")):n.classList.remove("hide")}),t[r].classList.add("show"),u.dispatch(t[r],r))}function e(){var n=i()-1;r(n>=0?n:t.length+n,"left")}function o(){r((i()+1)%t.length,"right")}function i(n){var i=0;return t.forEach(function(t,r){if(n&&n==t||!n&&t.classList.contains("show")){i=r;return}}),i}function s(){return t.length}var u=new kontext.Signal,t=Array.prototype.slice.call(n.find(".layer")),f="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style;return f&&n.addClass("capable"),{show:r,prev:e,getNext:o,getIndex:i,getTotal:s,changed:u}};kontext.Signal=function(){this.listeners=[]};kontext.Signal.prototype.add=function(n){this.listeners.push(n)};kontext.Signal.prototype.remove=function(n){var t=this.listeners.indexOf(n);t>=0&&this.listeners.splice(t,1)};kontext.Signal.prototype.dispatch=function(){var n=Array.prototype.slice.call(arguments);this.listeners.forEach(function(t){t.apply(null,n)})};jQuery.fn.setTileHeight=function(){$(".kontext").each(function(){var n=$(this).find(".one .card"),t=$(this).find(".two"),i=n.outerHeight(!0);t.css({"margin-top":i*-1+"px"})})};jQuery.fn.swap=function(){$(this).each(function(){var n=kontext($(this));$(this).setTileHeight();$(this).find(".layer").click(function(t){$(t.target).is("a:not(.swap-enabled),button:not(.swap-enabled),input:not(.swap-enabled),select:not(.swap-enabled),.swap-disabled")||$(t.target).parents(".swap-disabled").length||n.getNext()})})};myMeterMobile=myMeterMobile||{};myMeterMobile.plugins=myMeterMobile.plugins||{};myMeterMobile.plugins.preloader=function(n,t){return n.preloadingQueue=0,n.execute=function(n,i){n==="hide"?myMeterMobile.plugins.preloader.preloadingQueue<=1?(myMeterMobile.plugins.preloader.preloadingQueue=0,t(".preloader-container").remove()):myMeterMobile.plugins.preloader.preloadingQueue--:(myMeterMobile.plugins.preloader.preloadingQueue++,t(".preloader-container").length||(i.prepend('<div class="preloader preloader-container">'),typeof n!="undefined"&&typeof n.height!="undefined"?t(".preloader-container").height(n.height):t(".preloader-container").height(t(window).height())))},n}(myMeterMobile.plugins.preloader||{},jQuery);jQuery.fn.preloader=function(n){myMeterMobile.plugins.preloader.execute(n,$(this))};jQuery.fn.progress=function(n){var t=parseFloat(n.progress)/100,i=new ProgressBar.Circle("#"+$(this).attr("id"),{color:n.color,strokeWidth:10,trailColor:"#ABB7B7",trailWidth:10,easing:"easeInOut",duration:1e3,text:{value:"0",style:{color:"#373a3c"}},step:function(i,r){r.setText(n.label((r.value()/t*n.total).toFixed(0)))}});i.animate(t)};myMeterMobile=myMeterMobile||{};myMeterMobile.plugins=myMeterMobile.plugins||{};myMeterMobile.plugins.pulldownMenu=function(n,t){var u=t("#menu_btn"),r=t("#menu"),i=t(".main-nav").outerHeight(),c=screen.height/2-i,f=c-i-u.height(),a=0,v=screen.height,o,e,s,l=function(n){var t=n.pageY-s;t=n.originalEvent.touches[0].pageY-s;t=Math.min(Math.max(0,t),v-a)+u.height();t>=i+r.height()?r.css("margin-top",i):t<=i+u.height()?r.css("margin-top",-f):r.css({"margin-top":t-r.height()});e=n.originalEvent.touches?n.originalEvent.touches[0].pageY:n.pageY},h=function(){t(document).off("touchmove",l).off("touchend",h)};return n.initialize=function(){r.css({height:c,"margin-top":-f});u.on("touchstart",function(n){n.preventDefault();s=n.originalEvent.touches[0].pageY-t(this).offset().top;o=n.originalEvent.touches?n.originalEvent.touches[0].pageY:n.pageY;t(document).on("touchmove",l)});u.on("touchend",function(){if(e>o)e-o>80?t("#menu").animate({"margin-top":i},200):t("#menu").animate({"margin-top":-f},200);else if(e>81)o-e>80?t("#menu").animate({"margin-top":-f},200):t("#menu").animate({"margin-top":i},200);else return;h()});t(".nav-link").on("click",function(){t("#menu").animate({"margin-top":-f},200);h()})},n}(myMeterMobile.plugins.pulldownMenu||{},jQuery);jQuery.fn.pulldownMenu=function(){myMeterMobile.plugins.pulldownMenu.initialize()};myMeterMobile=myMeterMobile||{};myMeterMobile.plugins=myMeterMobile.plugins||{};myMeterMobile.plugins.searchSelect=function(n,t){var i=[];return n.initialize=function(n,r){var u=!0;i.forEach(function(f){f.search.selector===n.selector&&(t.extend(f,{select:t(r.select),search:n,options:t(r.select).find("option"),input:r.input}),n.data("search-select-index",i.indexOf(f)),u=!1)});u&&(i.push({select:t(r.select),search:n,options:t(r.select).find("option"),input:r.input}),n.data("search-select-index",i.length-1));typeof r.input!="undefined"&&t(r.input).val(t(r.select).val());t(r.select).on("change",function(){typeof r.input!="undefined"&&t(r.input).val(t(this).val())});n.on("keyup",function(){var n=i[t(this).data("search-select-index")],r;n.select.find("option").remove();n.options.each(function(){t(this).text().toLowerCase().indexOf(n.search.val().toLowerCase())>=0&&n.select.append(t(this))});r=n.select.find("option").first().val();n.select.val(r).trigger("change");typeof n.input!="undefined"&&t(n.input).val(r)})},n}(myMeterMobile.plugins.searchSelect||{},jQuery);jQuery.fn.searchSelect=function(n){myMeterMobile.plugins.searchSelect.initialize($(this),n)}