1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-04 16:24:11 +01:00
DataTables/media/js/jquery.dataTables.min.js

180 lines
82 KiB
JavaScript
Raw Normal View History

2016-02-04 16:46:23 +01:00
/*!
Copyright 2008-2018 SpryMedia Ltd.
This source file is free software, available under the following license:
MIT license - http://datatables.net/license
This source file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
For details please refer to: http://www.datatables.net
2019-10-01 14:28:01 +02:00
DataTables 1.10.20-dev
2018-06-14 12:43:54 +02:00
©2008-2018 SpryMedia Ltd - datatables.net/license
2016-02-04 16:46:23 +01:00
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(g,A,z){g instanceof String&&(g=String(g));for(var p=g.length,I=0;I<p;I++){var M=g[I];if(A.call(z,M,I,g))return{i:I,v:M}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(g,A,z){g!=Array.prototype&&g!=Object.prototype&&(g[A]=z.value)};$jscomp.getGlobal=function(g){return"undefined"!=typeof window&&window===g?g:"undefined"!=typeof global&&null!=global?global:g};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(g,A,z,p){if(A){z=$jscomp.global;g=g.split(".");for(p=0;p<g.length-1;p++){var I=g[p];I in z||(z[I]={});z=z[I]}g=g[g.length-1];p=z[g];A=A(p);A!=p&&null!=A&&$jscomp.defineProperty(z,g,{configurable:!0,writable:!0,value:A})}};$jscomp.polyfill("Array.prototype.find",function(g){return g?g:function(g,z){return $jscomp.findInternal(this,g,z).v}},"es6","es3");
(function(g){"function"===typeof define&&define.amd?define(["jquery"],function(A){return g(A,window,document)}):"object"===typeof exports?module.exports=function(A,z){A||(A=window);z||(z="undefined"!==typeof window?require("jquery"):require("jquery")(A));return g(z,A,A.document)}:g(jQuery,window,document)})(function(g,A,z,p){function I(b){var c,d,e={};g.each(b,function(f,k){(c=f.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(c[1]+" ")&&(d=f.replace(c[0],c[2].toLowerCase()),
e[d]=f,"o"===c[1]&&I(b[f]))});b._hungarianMap=e}function M(b,c,d){b._hungarianMap||I(b);var e;g.each(c,function(f,k){e=b._hungarianMap[f];e===p||!d&&c[e]!==p||("o"===e.charAt(0)?(c[e]||(c[e]={}),g.extend(!0,c[e],c[f]),M(b[e],c[e],d)):c[e]=c[f])})}function Ha(b){var c=r.defaults.oLanguage,d=c.sDecimal;d&&Ia(d);if(b){var e=b.sZeroRecords;!b.sEmptyTable&&e&&"No data available in table"===c.sEmptyTable&&N(b,b,"sZeroRecords","sEmptyTable");!b.sLoadingRecords&&e&&"Loading..."===c.sLoadingRecords&&N(b,b,
"sZeroRecords","sLoadingRecords");b.sInfoThousands&&(b.sThousands=b.sInfoThousands);(b=b.sDecimal)&&d!==b&&Ia(b)}}function kb(b){G(b,"ordering","bSort");G(b,"orderMulti","bSortMulti");G(b,"orderClasses","bSortClasses");G(b,"orderCellsTop","bSortCellsTop");G(b,"order","aaSorting");G(b,"orderFixed","aaSortingFixed");G(b,"paging","bPaginate");G(b,"pagingType","sPaginationType");G(b,"pageLength","iDisplayLength");G(b,"searching","bFilter");"boolean"===typeof b.sScrollX&&(b.sScrollX=b.sScrollX?"100%":
"");"boolean"===typeof b.scrollX&&(b.scrollX=b.scrollX?"100%":"");if(b=b.aoSearchCols)for(var c=0,d=b.length;c<d;c++)b[c]&&M(r.models.oSearch,b[c])}function lb(b){G(b,"orderable","bSortable");G(b,"orderData","aDataSort");G(b,"orderSequence","asSorting");G(b,"orderDataType","sortDataType");var c=b.aDataSort;"number"!==typeof c||g.isArray(c)||(b.aDataSort=[c])}function mb(b){if(!r.__browser){var c={};r.__browser=c;var d=g("<div/>").css({position:"fixed",top:0,left:-1*g(A).scrollLeft(),height:1,width:1,
overflow:"hidden"}).append(g("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(g("<div/>").css({width:"100%",height:10}))).appendTo("body"),e=d.children(),f=e.children();c.barWidth=e[0].offsetWidth-e[0].clientWidth;c.bScrollOversize=100===f[0].offsetWidth&&100!==e[0].clientWidth;c.bScrollbarLeft=1!==Math.round(f.offset().left);c.bBounding=d[0].getBoundingClientRect().width?!0:!1;d.remove()}g.extend(b.oBrowser,r.__browser);b.oScroll.iBarWidth=r.__browser.barWidth}
function nb(b,c,d,e,f,k){var h=!1;if(d!==p){var l=d;h=!0}for(;e!==f;)b.hasOwnProperty(e)&&(l=h?c(l,b[e],e,b):b[e],h=!0,e+=k);return l}function Ja(b,c){var d=r.defaults.column,e=b.aoColumns.length;d=g.extend({},r.models.oColumn,d,{nTh:c?c:z.createElement("th"),sTitle:d.sTitle?d.sTitle:c?c.innerHTML:"",aDataSort:d.aDataSort?d.aDataSort:[e],mData:d.mData?d.mData:e,idx:e});b.aoColumns.push(d);d=b.aoPreSearchCols;d[e]=g.extend({},r.models.oSearch,d[e]);na(b,e,g(c).data())}function na(b,c,d){c=b.aoColumns[c];
var e=b.oClasses,f=g(c.nTh);if(!c.sWidthOrig){c.sWidthOrig=f.attr("width")||null;var k=(f.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);k&&(c.sWidthOrig=k[1])}d!==p&&null!==d&&(lb(d),M(r.defaults.column,d,!0),d.mDataProp===p||d.mData||(d.mData=d.mDataProp),d.sType&&(c._sManualType=d.sType),d.className&&!d.sClass&&(d.sClass=d.className),d.sClass&&f.addClass(d.sClass),g.extend(c,d),N(c,d,"sWidth","sWidthOrig"),d.iDataSort!==p&&(c.aDataSort=[d.iDataSort]),N(c,d,"aDataSort"));var h=c.mData,l=V(h),
m=c.mRender?V(c.mRender):null;d=function(b){return"string"===typeof b&&-1!==b.indexOf("@")};c._bAttrSrc=g.isPlainObject(h)&&(d(h.sort)||d(h.type)||d(h.filter));c._setter=null;c.fnGetData=function(b,c,d){var e=l(b,c,p,d);return m&&c?m(e,c,b,d):e};c.fnSetData=function(b,c,d){return R(h)(b,c,d)};"number"!==typeof h&&(b._rowReadObject=!0);b.oFeatures.bSort||(c.bSortable=!1,f.addClass(e.sSortableNone));b=-1!==g.inArray("asc",c.asSorting);d=-1!==g.inArray("desc",c.asSorting);c.bSortable&&(b||d)?b&&!d?(c.sSortingClass=
e.sSortableAsc,c.sSortingClassJUI=e.sSortJUIAscAllowed):!b&&d?(c.sSortingClass=e.sSortableDesc,c.sSortingClassJUI=e.sSortJUIDescAllowed):(c.sSortingClass=e.sSortable,c.sSortingClassJUI=e.sSortJUI):(c.sSortingClass=e.sSortableNone,c.sSortingClassJUI="")}function ba(b){if(!1!==b.oFeatures.bAutoWidth){var c=b.aoColumns;Ka(b);for(var d=0,e=c.length;d<e;d++)c[d].nTh.style.width=c[d].sWidth}c=b.oScroll;""===c.sY&&""===c.sX||oa(b);B(b,null,"column-sizing",[b])}function ca(b,c){b=pa(b,"bVisible");return"number"===
typeof b[c]?b[c]:null}function da(b,c){b=pa(b,"bVisible");c=g.inArray(c,b);return-1!==c?c:null}function X(b){var c=0;g.each(b.aoColumns,function(b,e){e.bVisible&&"none"!==g(e.nTh).css("display")&&c++});return c}function pa(b,c){var d=[];g.map(b.aoColumns,function(b,f){b[c]&&d.push(f)});return d}function La(b){var c=b.aoColumns,d=b.aoData,e=r.ext.type.detect,f,k,h;var l=0;for(f=c.length;l<f;l++){var g=c[l];var q=[];if(!g.sType&&g._sManualType)g.sType=g._sManualType;else if(!g.sType){var n=0;for(k=
e.length;n<k;n++){var w=0;for(h=d.length;w<h;w++){q[w]===p&&(q[w]=J(b,w,l,"type"));var v=e[n](q[w],b);if(!v&&n!==e.length-1)break;if("html"===v)break}if(v){g.sType=v;break}}g.sType||(g.sType="string")}}}function ob(b,c,d,e){var f,k,h,l=b.aoColumns;if(c)for(f=c.length-1;0<=f;f--){var m=c[f];var q=m.targets!==p?m.targets:m.aTargets;g.isArray(q)||(q=[q]);var n=0;for(k=q.length;n<k;n++)if("number"===typeof q[n]&&0<=q[n]){for(;l.length<=q[n];)Ja(b);e(q[n],m)}else if("number"===typeof q[n]&&0>q[n])e(l.length+
q[n],m);else if("string"===typeof q[n]){var w=0;for(h=l.length;w<h;w++)("_all"==q[n]||g(l[w].nTh).hasClass(q[n]))&&e(w,m)}}if(d)for(f=0,b=d.length;f<b;f++)e(f,d[f])}function S(b,c,d,e){var f=b.aoData.length,k=g.extend(!0,{},r.models.oRow,{src:d?"dom":"data",idx:f});k._aData=c;b.aoData.push(k);for(var h=b.aoColumns,l=0,m=h.length;l<m;l++)h[l].sType=null;b.aiDisplayMaster.push(f);c=b.rowIdFn(c);c!==p&&(b.aIds[c]=k);!d&&b.oFeatures.bDeferRender||Ma(b,f,d,e);return f}function qa(b,c){var d;c instanceof
g||(c=g(c));return c.map(function(c,f){d=Na(b,f);return S(b,d.data,f,d.cells)})}function J(b,c,d,e){var f=b.iDraw,k=b.aoColumns[d],h=b.aoData[c]._aData,l=k.sDefaultContent,g=k.fnGetData(h,e,{settings:b,row:c,col:d});if(g===p)return b.iDrawError!=f&&null===l&&(P(b,0,"Requested unknown parameter "+("function"==typeof k.mData?"{function}":"'"+k.mData+"'")+" for row "+c+", column "+d,4),b.iDrawError=f),l;if((g===h||null===g)&&null!==l&&e!==p)g=l;else if("function"===typeof g)return g.call(h);return null===
g&&"display"==e?"":g}function pb(b,c,d,e){b.aoColumns[d].fnSetData(b.aoData[c]._aData,e,{settings:b,row:c,col:d})}function Oa(b){return g.map(b.match(/(\\.|[^\.])+/g)||[""],function(b){return b.replace(/\\\./g,".")})}function V(b){if(g.isPlainObject(b)){var c={};g.each(b,function(b,d){d&&(c[b]=V(d))});return function(b,d,k,h){var e=c[d]||c._;return e!==p?e(b,d,k,h):b}}if(null===b)return function(b){return b};if("function"===typeof b)return function(c,d,k,h){return b(c,d,k,h)};if("string"!==typeof b||
-1===b.indexOf(".")&&-1===b.indexOf("[")&&-1===b.indexOf("("))return function(c,d){return c[b]};var d=function(b,c,k){if(""!==k){var e=Oa(k);for(var f=0,m=e.length;f<m;f++){k=e[f].match(ea);var q=e[f].match(Y);if(k){e[f]=e[f].replace(ea,"");""!==e[f]&&(b=b[e[f]]);q=[];e.splice(0,f+1);e=e.join(".");if(g.isArray(b))for(f=0,m=b.length;f<m;f++)q.push(d(b[f],c,e));b=k[0].substring(1,k[0].length-1);b=""===b?q:q.join(b);break}else if(q){e[f]=e[f].replace(Y,"");b=b[e[f]]();continue}if(null===b||b[e[f]]===
p)return p;b=b[e[f]]}}return b};return function(c,f){return d(c,f,b)}}function R(b){if(g.isPlainObject(b))return R(b._);if(null===b)return function(){};if("function"===typeof b)return function(c,e,f){b(c,"set",e,f)};if("string"!==typeof b||-1===b.indexOf(".")&&-1===b.indexOf("[")&&-1===b.indexOf("("))return function(c,e){c[b]=e};var c=function(b,e,f){f=Oa(f);var d=f[f.length-1];for(var h,l,m=0,q=f.length-1;m<q;m++){h=f[m].match(ea);l=f[m].match(Y);if(h){f[m]=f[m].replace(ea,"");b[f[m]]=[];d=f.slice();
d.splice(0,m+1);h=d.join(".");if(g.isArray(e))for(l=0,q=e.length;l<q;l++)d={},c(d,e[l],h),b[f[m]].push(d);else b[f[m]]=e;return}l&&(f[m]=f[m].replace(Y,""),b=b[f[m]](e));if(null===b[f[m]]||b[f[m]]===p)b[f[m]]={};b=b[f[m]]}if(d.match(Y))b[d.replace(Y,"")](e);else b[d.replace(ea,"")]=e};return function(d,e){return c(d,e,b)}}function Pa(b){return K(b.aoData,"_aData")}function ra(b){b.aoData.length=0;b.aiDisplayMaster.length=0;b.aiDisplay.length=0;b.aIds={}}function sa(b,c,d){for(var e=-1,f=0,k=b.length;f<
k;f++)b[f]==c?e=f:b[f]>c&&b[f]--; -1!=e&&d===p&&b.splice(e,1)}function fa(b,c,d,e){var f=b.aoData[c],k,h=function(d,e){for(;d.childNodes.length;)d.removeChild(d.firstChild);d.innerHTML=J(b,c,e,"display")};if("dom"!==d&&(d&&"auto"!==d||"dom"!==f.src)){var l=f.anCells;if(l)if(e!==p)h(l[e],e);else for(d=0,k=l.length;d<k;d++)h(l[d],d)}else f._aData=Na(b,f,e,e===p?p:f._aData).data;f._aSortData=null;f._aFilterData=null;h=b.aoColumns;if(e!==p)h[e].sType=null;else{d=0;for(k=h.length;d<k;d++)h[d].sType=null;
Qa(b,f)}}function Na(b,c,d,e){var f=[],k=c.firstChild,h,l=0,m,q=b.aoColumns,n=b._rowReadObject;e=e!==p?e:n?{}:[];var w=function(b,c){if("string"===typeof b){var d=b.indexOf("@");-1!==d&&(d=b.substring(d+1),R(b)(e,c.getAttribute(d)))}},v=function(b){if(d===p||d===l)h=q[l],m=g.trim(b.innerHTML),h&&h._bAttrSrc?(R(h.mData._)(e,m),w(h.mData.sort,b),w(h.mData.type,b),w(h.mData.filter,b)):n?(h._setter||(h._setter=R(h.mData)),h._setter(e,m)):e[l]=m;l++};if(k)for(;k;){var r=k.nodeName.toUpperCase();if("TD"==
r||"TH"==r)v(k),f.push(k);k=k.nextSibling}else for(f=c.anCells,k=0,r=f.length;k<r;k++)v(f[k]);(c=c.firstChild?c:c.nTr)&&(c=c.getAttribute("id"))&&R(b.rowId)(e,c);return{data:e,cells:f}}function Ma(b,c,d,e){var f=b.aoData[c],k=f._aData,h=[],l,m;if(null===f.nTr){var q=d||z.createElement("tr");f.nTr=q;f.anCells=h;q._DT_RowIndex=c;Qa(b,f);var n=0;for(l=b.aoColumns.length;n<l;n++){var w=b.aoColumns[n];var p=(m=d?!1:!0)?z.createElement(w.sCellType):e[n];p._DT_CellIndex={row:c,column:n};h.push(p);if(m||
!(d&&!w.mRender&&w.mData===n||g.isPlainObject(w.mData)&&w.mData._===n+".display"))p.innerHTML=J(b,c,n,"display");w.sClass&&(p.className+=" "+w.sClass);w.bVisible&&!d?q.appendChild(p):!w.bVisible&&d&&p.parentNode.removeChild(p);w.fnCreatedCell&&w.fnCreatedCell.call(b.oInstance,p,J(b,c,n),k,c,n)}B(b,"aoRowCreatedCallback",null,[q,k,c,h])}f.nTr.setAttribute("role","row")}function Qa(b,c){var d=c.nTr,e=c._aData;if(d){if(b=b.rowIdFn(e))d.id=b;e.DT_RowClass&&(b=e.DT_RowClass.split(" "),c.__rowc=c.__rowc?
ua(c.__rowc.concat(b)):b,g(d).removeClass(c.__rowc.join(" ")).addClass(e.DT_RowClass));e.DT_RowAttr&&g(d).attr(e.DT_RowAttr);e.DT_RowData&&g(d).data(e.DT_RowData)}}function qb(b){var c,d,e=b.nTHead,f=b.nTFoot,k=0===g("th, td",e).length,h=b.oClasses,l=b.aoColumns;k&&(d=g("<tr/>").appendTo(e));var m=0;for(c=l.length;m<c;m++){var q=l[m];var n=g(q.nTh).addClass(q.sClass);k&&n.appendTo(d);b.oFeatures.bSort&&(n.addClass(q.sSortingClass),!1!==q.bSortable&&(n.attr("tabindex",b.iTabIndex).attr("aria-controls",
b.sTableId),Ra(b,q.nTh,m)));q.sTitle!=n[0].innerHTML&&n.html(q.sTitle);Sa(b,"header")(b,n,q,h)}k&&ha(b.aoHeader,e);g(e).find(">tr").attr("role","row");g(e).find(">tr>th, >tr>td").addClass(h.sHeaderTH);g(f).find(">tr>th, >tr>td").addClass(h.sFooterTH);if(null!==f)for(b=b.aoFooter[0],m=0,c=b.length;m<c;m++)q=l[m],q.nTf=b[m].cell,q.sClass&&g(q.nTf).addClass(q.sClass)}function ia(b,c,d){var e,f,k=[],h=[],l=b.aoColumns.length;if(c){d===p&&(d=!1);var m=0;for(e=c.length;m<e;m++){k[m]=c[m].slice();k[m].nTr=
c[m].nTr;for(f=l-1;0<=f;f--)b.aoColumns[f].bVisible||d||k[m].splice(f,1);h.push([])}m=0;for(e=k.length;m<e;m++){if(b=k[m].nTr)for(;f=b.firstChild;)b.removeChild(f);f=0;for(c=k[m].length;f<c;f++){var q=l=1;if(h[m][f]===p){b.appendChild(k[m][f].cell);for(h[m][f]=1;k[m+l]!==p&&k[m][f].cell==k[m+l][f].cell;)h[m+l][f]=1,l++;for(;k[m][f+q]!==p&&k[m][f].cell==k[m][f+q].cell;){for(d=0;d<l;d++)h[m+d][f+q]=1;q++}g(k[m][f].cell).attr("rowspan",l).attr("colspan",q)}}}}}function T(b){var c=B(b,"aoPreDrawCallback",
"preDraw",[b]);if(-1!==g.inArray(!1,c))L(b,!1);else{c=[];var d=0,e=b.asStripeClasses,f=e.length,k=b.oLanguage,h=b.iInitDisplayStart,l="ssp"==E(b),m=b.aiDisplay;b.bDrawing=!0;h!==p&&-1!==h&&(b._iDisplayStart=l?h:h>=b.fnRecordsDisplay()?0:h,b.iInitDisplayStart=-1);h=b._iDisplayStart;var q=b.fnDisplayEnd();if(b.bDeferLoading)b.bDeferLoading=!1,b.iDraw++,L(b,!1);else if(!l)b.iDraw++;else if(!b.bDestroying&&!rb(b))return;if(0!==m.length)for(k=l?b.aoData.length:q,l=l?0:h;l<k;l++){var n=m[l],w=b.aoData[n];
null===w.nTr&&Ma(b,n);var v=w.nTr;if(0!==f){var r=e[d%f];w._sRowStripe!=r&&(g(v).removeClass(w._sRowStripe).addClass(r),w._sRowStripe=r)}B(b,"aoRowCallback",null,[v,w._aData,d,l,n]);c.push(v);d++}else d=k.sZeroRecords,1==b.iDraw&&"ajax"==E(b)?d=k.sLoadingRecords:k.sEmptyTable&&0===b.fnRecordsTotal()&&(d=k.sEmptyTable),c[0]=g("<tr/>",{"class":f?e[0]:""}).append(g("<td />",{valign:"top",colSpan:X(b),"class":b.oClasses.sRowEmpty}).html(d))[0];B(b,"aoHeaderCallback","header",[g(b.nTHead).children("tr")[0],
Pa(b),h,q,m]);B(b,"aoFooterCallback","footer",[g(b.nTFoot).children("tr")[0],Pa(b),h,q,m]);e=g(b.nTBody);e.children().detach();e.append(g(c));B(b,"aoDrawCallback","draw",[b]);b.bSorted=!1;b.bFiltered=!1;b.bDrawing=!1}}function W(b,c){var d=b.oFeatures,e=d.bFilter;d.bSort&&sb(b);e?ja(b,b.oPreviousSearch):b.aiDisplay=b.aiDisplayMaster.slice();!0!==c&&(b._iDisplayStart=0);b._drawHold=c;T(b);b._drawHold=!1}function tb(b){var c=b.oClasses,d=g(b.nTable);d=g("<div/>").insertBefore(d);var e=b.oFeatures,f=
g("<div/>",{id:b.sTableId+"_wrapper","class":c.sWrapper+(b.nTFoot?"":" "+c.sNoFooter)});b.nHolding=d[0];b.nTableWrapper=f[0];b.nTableReinsertBefore=b.nTable.nextSibling;for(var k=b.sDom.split(""),h,l,m,q,n,p,v=0;v<k.length;v++){h=null;l=k[v];if("<"==l){m=g("<div/>")[0];q=k[v+1];if("'"==q||'"'==q){n="";for(p=2;k[v+p]!=q;)n+=k[v+p],p++;"H"==n?n=c.sJUIHeader:"F"==n&&(n=c.sJUIFooter);-1!=n.indexOf(".")?(q=n.split("."),m.id=q[0].substr(1,q[0].length-1),m.className=q[1]):"#"==n.charAt(0)?m.id=n.substr(1,
n.length-1):m.className=n;v+=p}f.append(m);f=g(m)}else if(">"==l)f=f.parent();else if("l"==l&&e.bPaginate&&e.bLengthChange)h=ub(b);else if("f"==l&&e.bFilter)h=vb(b);else if("r"==l&&e.bProcessing)h=wb(b);else if("t"==l)h=xb(b);else if("i"==l&&e.bInfo)h=yb(b);else if("p"==l&&e.bPaginate)h=zb(b);else if(0!==r.ext.feature.length)for(m=r.ext.feature,p=0,q=m.length;p<q;p++)if(l==m[p].cFeature){h=m[p].fnInit(b);break}h&&(m=b.aanFeatures,m[l]||(m[l]=[]),m[l].push(h),f.append(h))}d.replaceWith(f);b.nHolding=
null}function ha(b,c){c=g(c).children("tr");var d,e,f;b.splice(0,b.length);var k=0;for(f=c.length;k<f;k++)b.push([]);k=0;for(f=c.length;k<f;k++){var h=c[k];for(d=h.firstChild;d;){if("TD"==d.nodeName.toUpperCase()||"TH"==d.nodeName.toUpperCase()){var l=1*d.getAttribute("colspan");var m=1*d.getAttribute("rowspan");l=l&&0!==l&&1!==l?l:1;m=m&&0!==m&&1!==m?m:1;var q=0;for(e=b[k];e[q];)q++;var n=q;var p=1===l?!0:!1;for(e=0;e<l;e++)for(q=0;q<m;q++)b[k+q][n+e]={cell:d,unique:p},b[k+q].nTr=h}d=d.nextSibling}}}
function va(b,c,d){var e=[];d||(d=b.aoHeader,c&&(d=[],ha(d,c)));c=0;for(var f=d.length;c<f;c++)for(var k=0,h=d[c].length;k<h;k++)!d[c][k].unique||e[k]&&b.bSortCellsTop||(e[k]=d[c][k].cell);return e}function wa(b,c,d){B(b,"aoServerParams","serverParams",[c]);if(c&&g.isArray(c)){var e={},f=/(.*?)\[\]$/;g.each(c,function(b,c){(b=c.name.match(f))?(b=b[0],e[b]||(e[b]=[]),e[b].push(c.value)):e[c.name]=c.value});c=e}var k=b.ajax,h=b.oInstance,l=function(c){B(b,null,"xhr",[b,c,b.jqXHR]);d(c)};if(g.isPlainObject(k)&&
k.data){var m=k.data;var q="function"===typeof m?m(c,b):m;c="function"===typeof m&&q?q:g.extend(!0,c,q);delete k.data}q={data:c,success:function(c){var d=c.error||c.sError;d&&P(b,0,d);b.json=c;l(c)},dataType:"json",cache:!1,type:b.sServerMethod,error:function(c,d,e){e=B(b,null,"xhr",[b,null,b.jqXHR]);-1===g.inArray(!0,e)&&("parsererror"==d?P(b,0,"Invalid JSON response",1):4===c.readyState&&P(b,0,"Ajax error",7));L(b,!1)}};b.oAjaxData=c;B(b,null,"preXhr",[b,c]);b.fnServerData?b.fnServerData.call(h,
b.sAjaxSource,g.map(c,function(b,c){return{name:c,value:b}}),l,b):b.sAjaxSource||"string"===typeof k?b.jqXHR=g.ajax(g.extend(q,{url:k||b.sAjaxSource})):"function"===typeof k?b.jqXHR=k.call(h,c,l,b):(b.jqXHR=g.ajax(g.extend(q,k)),k.data=m)}function rb(b){return b.bAjaxDataGet?(b.iDraw++,L(b,!0),wa(b,Ab(b),function(c){Bb(b,c)}),!1):!0}function Ab(b){var c=b.aoColumns,d=c.length,e=b.oFeatures,f=b.oPreviousSearch,k=b.aoPreSearchCols,h=[],l=Z(b);var m=b._iDisplayStart;var q=!1!==e.bPaginate?b._iDisplayLength:
-1;var n=function(b,c){h.push({name:b,value:c})};n("sEcho",b.iDraw);n("iColumns",d);n("sColumns",K(c,"sName").join(","));n("iDisplayStart",m);n("iDisplayLength",q);var p={draw:b.iDraw,columns:[],order:[],start:m,length:q,search:{value:f.sSearch,regex:f.bRegex}};for(m=0;m<d;m++){var v=c[m];var ta=k[m];q="function"==typeof v.mData?"function":v.mData;p.columns.push({data:q,name:v.sName,searchable:v.bSearchable,orderable:v.bSortable,search:{value:ta.sSearch,regex:ta.bRegex}});n("mDataProp_"+m,q);e.bFilter&&
(n("sSearch_"+m,ta.sSearch),n("bRegex_"+m,ta.bRegex),n("bSearchable_"+m,v.bSearchable));e.bSort&&n("bSortable_"+m,v.bSortable)}e.bFilter&&(n("sSearch",f.sSearch),n("bRegex",f.bRegex));e.bSort&&(g.each(l,function(b,c){p.order.push({column:c.col,dir:c.dir});n("iSortCol_"+b,c.col);n("sSortDir_"+b,c.dir)}),n("iSortingCols",l.length));c=r.ext.legacy.ajax;return null===c?b.sAjaxSource?h:p:c?h:p}function Bb(b,c){var d=function(b,d){return c[b]!==p?c[b]:c[d]},e=xa(b,c),f=d("sEcho","draw"),k=d("iTotalRecords",
"recordsTotal");d=d("iTotalDisplayRecords","recordsFiltered");if(f){if(1*f<b.iDraw)return;b.iDraw=1*f}ra(b);b._iRecordsTotal=parseInt(k,10);b._iRecordsDisplay=parseInt(d,10);f=0;for(k=e.length;f<k;f++)S(b,e[f]);b.aiDisplay=b.aiDisplayMaster.slice();b.bAjaxDataGet=!1;T(b);b._bInitComplete||ya(b,c);b.bAjaxDataGet=!0;L(b,!1)}function xa(b,c){b=g.isPlainObject(b.ajax)&&b.ajax.dataSrc!==p?b.ajax.dataSrc:b.sAjaxDataProp;return"data"===b?c.aaData||c[b]:""!==b?V(b)(c):c}function vb(b){var c=b.oClasses,d=
b.sTableId,e=b.oLanguage,f=b.oPreviousSearch,k=b.aanFeatures,h='<input type="search" class="'+c.sFilterInput+'"/>',l=e.sSearch;l=l.match(/_INPUT_/)?l.replace("_INPUT_",h):l+h;c=g("<div/>",{id:k.f?null:d+"_filter","class":c.sFilter}).append(g("<label/>").append(l));k=function(){var c=this.value?this.value:"";c!=f.sSearch&&(ja(b,{sSearch:c,bRegex:f.bRegex,bSmart:f.bSmart,bCaseInsensitive:f.bCaseInsensitive}),b._iDisplayStart=0,T(b))};h=null!==b.searchDelay?b.searchDelay:"ssp"===E(b)?400:0;var m=g("input",
c).val(f.sSearch).attr("placeholder",e.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",h?Ta(k,h):k).on("keypress.DT",function(b){if(13==b.keyCode)return!1}).attr("aria-controls",d);g(b.nTable).on("search.dt.DT",function(c,d){if(b===d)try{m[0]!==z.activeElement&&m.val(f.sSearch)}catch(w){}});return c[0]}function ja(b,c,d){var e=b.oPreviousSearch,f=b.aoPreSearchCols,k=function(b){e.sSearch=b.sSearch;e.bRegex=b.bRegex;e.bSmart=b.bSmart;e.bCaseInsensitive=b.bCaseInsensitive},h=function(b){return b.bEscapeRegex!==
p?!b.bEscapeRegex:b.bRegex};La(b);if("ssp"!=E(b)){Cb(b,c.sSearch,d,h(c),c.bSmart,c.bCaseInsensitive);k(c);for(c=0;c<f.length;c++)Db(b,f[c].sSearch,c,h(f[c]),f[c].bSmart,f[c].bCaseInsensitive);Eb(b)}else k(c);b.bFiltered=!0;B(b,null,"search",[b])}function Eb(b){for(var c=r.ext.search,d=b.aiDisplay,e,f,k=0,h=c.length;k<h;k++){for(var l=[],m=0,q=d.length;m<q;m++)f=d[m],e=b.aoData[f],c[k](b,e._aFilterData,f,e._aData,m)&&l.push(f);d.length=0;g.merge(d,l)}}function Db(b,c,d,e,f,k){if(""!==c){var h=[],l=
b.aiDisplay;e=Ua(c,e,f,k);for(f=0;f<l.length;f++)c=b.aoData[l[f]]._aFilterData[d],e.test(c)&&h.push(l[f]);b.aiDisplay=h}}function Cb(b,c,d,e,f,k){e=Ua(c,e,f,k);k=b.oPreviousSearch.sSearch;var h=b.aiDisplayMaster;f=[];0!==r.ext.search.length&&(d=!0);var l=Fb(b);if(0>=c.length)b.aiDisplay=h.slice();else{if(l||d||k.length>c.length||0!==c.indexOf(k)||b.bSorted)b.aiDisplay=h.slice();c=b.aiDisplay;for(d=0;d<c.length;d++)e.test(b.aoData[c[d]]._sFilterRow)&&f.push(c[d]);b.aiDisplay=f}}function Ua(b,c,d,e){b=
c?b:Va(b);d&&(b="^(?=.*?"+g.map(b.match(/"[^"]+"|[^ ]+/g)||[""],function(b){if('"'===b.charAt(0)){var c=b.match(/^"(.*)"$/);b=c?c[1]:b}return b.replace('"',"")}).join(")(?=.*?")+").*$");return new RegExp(b,e?"i":"")}function Fb(b){var c=b.aoColumns,d,e,f=r.ext.type.search;var k=!1;var h=0;for(d=b.aoData.length;h<d;h++){var l=b.aoData[h];if(!l._aFilterData){var g=[];var q=0;for(e=c.length;q<e;q++){k=c[q];if(k.bSearchable){var n=J(b,h,q,"filter");f[k.sType]&&(n=f[k.sType](n));null===n&&(n="");"string"!==
typeof n&&n.toString&&(n=n.toString())}else n="";n.indexOf&&-1!==n.indexOf("&")&&(za.innerHTML=n,n=ac?za.textContent:za.innerText);n.replace&&(n=n.replace(/[\r\n\u2028]/g,""));g.push(n)}l._aFilterData=g;l._sFilterRow=g.join(" ");k=!0}}return k}function Gb(b){return{search:b.sSearch,smart:b.bSmart,regex:b.bRegex,caseInsensitive:b.bCaseInsensitive}}function Hb(b){return{sSearch:b.search,bSmart:b.smart,bRegex:b.regex,bCaseInsensitive:b.caseInsensitive}}function yb(b){var c=b.sTableId,d=b.aanFeatures.i,
e=g("<div/>",{"class":b.oClasses.sInfo,id:d?null:c+"_info"});d||(b.aoDrawCallback.push({fn:Ib,sName:"information"}),e.attr("role","status").attr("aria-live","polite"),g(b.nTable).attr("aria-describedby",c+"_info"));return e[0]}function Ib(b){var c=b.aanFeatures.i;if(0!==c.length){var d=b.oLanguage,e=b._iDisplayStart+1,f=b.fnDisplayEnd(),k=b.fnRecordsTotal(),h=b.fnRecordsDisplay(),l=h?d.sInfo:d.sInfoEmpty;h!==k&&(l+=" "+d.sInfoFiltered);l+=d.sInfoPostFix;l=Jb(b,l);d=d.fnInfoCallback;null!==d&&(l=d.call(b.oInstance,
b,e,f,k,h,l));g(c).html(l)}}function Jb(b,c){var d=b.fnFormatNumber,e=b._iDisplayStart+1,f=b._iDisplayLength,k=b.fnRecordsDisplay(),h=-1===f;return c.replace(/_START_/g,d.call(b,e)).replace(/_END_/g,d.call(b,b.fnDisplayEnd())).replace(/_MAX_/g,d.call(b,b.fnRecordsTotal())).replace(/_TOTAL_/g,d.call(b,k)).replace(/_PAGE_/g,d.call(b,h?1:Math.ceil(e/f))).replace(/_PAGES_/g,d.call(b,h?1:Math.ceil(k/f)))}function ka(b){var c=b.iInitDisplayStart,d=b.aoColumns;var e=b.oFeatures;var f=b.bDeferLoading;if(b.bInitialised){tb(b);
qb(b);ia(b,b.aoHeader);ia(b,b.aoFooter);L(b,!0);e.bAutoWidth&&Ka(b);var k=0;for(e=d.length;k<e;k++){var h=d[k];h.sWidth&&(h.nTh.style.width=C(h.sWidth))}B(b,null,"preInit",[b]);W(b);d=E(b);if("ssp"!=d||f)"ajax"==d?wa(b,[],function(d){var e=xa(b,d);for(k=0;k<e.length;k++)S(b,e[k]);b.iInitDisplayStart=c;W(b);L(b,!1);ya(b,d)},b):(L(b,!1),ya(b))}else setTimeout(function(){ka(b)},200)}function ya(b,c){b._bInitComplete=!0;(c||b.oInit.aaData)&&ba(b);B(b,null,"plugin-init",[b,c]);B(b,"aoInitComplete","init",
[b,c])}function Wa(b,c){c=parseInt(c,10);b._iDisplayLength=c;Xa(b);B(b,null,"length",[b,c])}function ub(b){var c=b.oClasses,d=b.sTableId,e=b.aLengthMenu,f=g.isArray(e[0]),k=f?e[0]:e;e=f?e[1]:e;f=g("<select/>",{name:d+"_length","aria-controls":d,"class":c.sLengthSelect});for(var h=0,l=k.length;h<l;h++)f[0][h]=new Option("number"===typeof e[h]?b.fnFormatNumber(e[h]):e[h],k[h]);var m=g("<div><label/></div>").addClass(c.sLength);b.aanFeatures.l||(m[0].id=d+"_length");m.children().append(b.oLanguage.sLengthMenu.replace("_MENU_",
f[0].outerHTML));g("select",m).val(b._iDisplayLength).on("change.DT",function(c){Wa(b,g(this).val());T(b)});g(b.nTable).on("length.dt.DT",function(c,d,e){b===d&&g("select",m).val(e)});return m[0]}function zb(b){var c=b.sPaginationType,d=r.ext.pager[c],e="function"===typeof d,f=function(b){T(b)};c=g("<div/>").addClass(b.oClasses.sPaging+c)[0];var k=b.aanFeatures;e||d.fnInit(b,c,f);k.p||(c.id=b.sTableId+"_paginate",b.aoDrawCallback.push({fn:function(b){if(e){var c=b._iDisplayStart,h=b._iDisplayLength,
g=b.fnRecordsDisplay(),n=-1===h;c=n?0:Math.ceil(c/h);h=n?1:Math.ceil(g/h);g=d(c,h);var p;n=0;for(p=k.p.length;n<p;n++)Sa(b,"pageButton")(b,k.p[n],n,g,c,h)}else d.fnUpdate(b,f)},sName:"pagination"}));return c}function Ya(b,c,d){var e=b._iDisplayStart,f=b._iDisplayLength,k=b.fnRecordsDisplay();0===k||-1===f?e=0:"number"===typeof c?(e=c*f,e>k&&(e=0)):"first"==c?e=0:"previous"==c?(e=0<=f?e-f:0,0>e&&(e=0)):"next"==c?e+f<k&&(e+=f):"last"==c?e=Math.floor((k-1)/f)*f:P(b,0,"Unknown paging action: "+c,5);c=
b._iDisplayStart!==e;b._iDisplayStart=e;c&&(B(b,null,"page",[b]),d&&T(b));return c}function wb(b){return g("<div/>",{id:b.aanFeatures.r?null:b.sTableId+"_processing","class":b.oClasses.sProcessing}).html(b.oLanguage.sProcessing).insertBefore(b.nTable)[0]}function L(b,c){b.oFeatures.bProcessing&&g(b.aanFeatures.r).css("display",c?"block":"none");B(b,null,"processing",[b,c])}function xb(b){var c=g(b.nTable);c.attr("role","grid");var d=b.oScroll;if(""===d.sX&&""===d.sY)return b.nTable;var e=d.sX,f=d.sY,
k=b.oClasses,h=c.children("caption"),l=h.length?h[0]._captionSide:null,m=g(c[0].cloneNode(!1)),q=g(c[0].cloneNode(!1)),n=c.children("tfoot");n.length||(n=null);m=g("<div/>",{"class":k.sScrollWrapper}).append(g("<div/>",{"class":k.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:e?e?C(e):null:"100%"}).append(g("<div/>",{"class":k.sScrollHeadInner}).css({"box-sizing":"content-box",width:d.sXInner||"100%"}).append(m.removeAttr("id").css("margin-left",0).append("top"===l?h:null).append(c.children("thead"))))).append(g("<div/>",
{"class":k.sScrollBody}).css({position:"relative",overflow:"auto",width:e?C(e):null}).append(c));n&&m.append(g("<div/>",{"class":k.sScrollFoot}).css({overflow:"hidden",border:0,width:e?e?C(e):null:"100%"}).append(g("<div/>",{"class":k.sScrollFootInner}).append(q.removeAttr("id").css("margin-left",0).append("bottom"===l?h:null).append(c.children("tfoot")))));c=m.children();var p=c[0];k=c[1];var v=n?c[2]:null;if(e)g(k).on("scroll.DT",function(b){b=this.scrollLeft;p.scrollLeft=b;n&&(v.scrollLeft=b)});
g(k).css(f&&d.bCollapse?"max-height":"height",f);b.nScrollHead=p;b.nScrollBody=k;b.nScrollFoot=v;b.aoDrawCallback.push({fn:oa,sName:"scrolling"});return m[0]}function oa(b){var c=b.oScroll,d=c.sX,e=c.sXInner,f=c.sY;c=c.iBarWidth;var k=g(b.nScrollHead),h=k[0].style,l=k.children("div"),m=l[0].style,q=l.children("table");l=b.nScrollBody;var n=g(l),w=l.style,v=g(b.nScrollFoot).children("div"),r=v.children("table"),u=g(b.nTHead),t=g(b.nTable),x=t[0],Aa=x.style,U=b.nTFoot?g(b.nTFoot):null,B=b.oBrowser,
y=B.bScrollOversize,bc=K(b.aoColumns,"nTh"),Za=[],z=[],A=[],D=[],H,I=function(b){b=b.style;b.paddingTop="0";b.paddingBottom="0";b.borderTopWidth="0";b.borderBottomWidth="0";b.height=0};var E=l.scrollHeight>l.clientHeight;if(b.scrollBarVis!==E&&b.scrollBarVis!==p)b.scrollBarVis=E,ba(b);else{b.scrollBarVis=E;t.children("thead, tfoot").remove();if(U){var F=U.clone().prependTo(t);var G=U.find("tr");F=F.find("tr")}var J=u.clone().prependTo(t);u=u.find("tr");E=J.find("tr");J.find("th, td").removeAttr("tabindex");
d||(w.width="100%",k[0].style.width="100%");g.each(va(b,J),function(c,d){H=ca(b,c);d.style.width=b.aoColumns[H].sWidth});U&&O(function(b){b.style.width=""},F);k=t.outerWidth();""===d?(Aa.width="100%",y&&(t.find("tbody").height()>l.offsetHeight||"scroll"==n.css("overflow-y"))&&(Aa.width=C(t.outerWidth()-c)),k=t.outerWidth()):""!==e&&(Aa.width=C(e),k=t.outerWidth());O(I,E);O(function(b){A.push(b.innerHTML);Za.push(C(g(b).css("width")))},E);O(function(b,c){-1!==g.inArray(b,bc)&&(b.style.width=Za[c])},
u);g(E).height(0);U&&(O(I,F),O(function(b){D.push(b.innerHTML);z.push(C(g(b).css("width")))},F),O(function(b,c){b.style.width=z[c]},G),g(F).height(0));O(function(b,c){b.innerHTML='<div class="dataTables_sizing">'+A[c]+"</div>";b.childNodes[0].style.height="0";b.childNodes[0].style.overflow="hidden";b.style.width=Za[c]},E);U&&O(function(b,c){b.innerHTML='<div class="dataTables_sizing">'+D[c]+"</div>";b.childNodes[0].style.height="0";b.childNodes[0].style.overflow="hidden";b.style.width=z[c]},F);t.outerWidth()<
k?(G=l.scrollHeight>l.offsetHeight||"scroll"==n.css("overflow-y")?k+c:k,y&&(l.scrollHeight>l.offsetHeight||"scroll"==n.css("overflow-y"))&&(Aa.width=C(G-c)),""!==d&&""===e||P(b,1,"Possible column misalignment",6)):G="100%";w.width=C(G);h.width=C(G);U&&(b.nScrollFoot.style.width=C(G));!f&&y&&(w.height=C(x.offsetHeight+c));d=t.outerWidth();q[0].style.width=C(d);m.width=C(d);e=t.height()>l.clientHeight||"scroll"==n.css("overflow-y");f="padding"+(B.bScrollbarLeft?"Left":"Right");m[f]=e?c+"px":"0px";U&&
(r[0].style.width=C(d),v[0].style.width=C(d),v[0].style[f]=e?c+"px":"0px");t.children("colgroup").insertBefore(t.children("thead"));n.trigger("scroll");!b.bSorted&&!b.bFiltered||b._drawHold||(l.scrollTop=0)}}function O(b,c,d){for(var e=0,f=0,k=c.length,h,l;f<k;){h=c[f].firstChild;for(l=d?d[f].firstChild:null;h;)1===h.nodeType&&(d?b(h,l,e):b(h,e),e++),h=h.nextSibling,l=d?l.nextSibling:null;f++}}function Ka(b){var c=b.nTable,d=b.aoColumns,e=b.oScroll,f=e.sY,k=e.sX,h=e.sXInner,l=d.length,m=pa(b,"bVisible"),
q=g("th",b.nTHead),n=c.getAttribute("width"),p=c.parentNode,v=!1,r,u=b.oBrowser;e=u.bScrollOversize;(r=c.style.width)&&-1!==r.indexOf("%")&&(n=r);for(r=0;r<m.length;r++){var t=d[m[r]];null!==t.sWidth&&(t.sWidth=Kb(t.sWidthOrig,p),v=!0)}if(e||!v&&!k&&!f&&l==X(b)&&l==q.length)for(r=0;r<l;r++)m=ca(b,r),null!==m&&(d[m].sWidth=C(q.eq(r).width()));else{l=g(c).clone().css("visibility","hidden").removeAttr("id");l.find("tbody tr").remove();var x=g("<tr/>").appendTo(l.find("tbody"));l.find("thead, tfoot").remove();
l.append(g(b.nTHead).clone()).append(g(b.nTFoot).clone());l.find("tfoot th, tfoot td").css("width","");q=va(b,l.find("thead")[0]);for(r=0;r<m.length;r++)t=d[m[r]],q[r].style.width=null!==t.sWidthOrig&&""!==t.sWidthOrig?C(t.sWidthOrig):"",t.sWidthOrig&&k&&g(q[r]).append(g("<div/>").css({width:t.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(b.aoData.length)for(r=0;r<m.length;r++)v=m[r],t=d[v],g(Lb(b,v)).clone(!1).append(t.sContentPadding).appendTo(x);g("[name]",l).removeAttr("name");t=g("<div/>").css(k||
f?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(l).appendTo(p);k&&h?l.width(h):k?(l.css("width","auto"),l.removeAttr("width"),l.width()<p.clientWidth&&n&&l.width(p.clientWidth)):f?l.width(p.clientWidth):n&&l.width(n);for(r=f=0;r<m.length;r++)p=g(q[r]),h=p.outerWidth()-p.width(),p=u.bBounding?Math.ceil(q[r].getBoundingClientRect().width):p.outerWidth(),f+=p,d[m[r]].sWidth=C(p-h);c.style.width=C(f);t.remove()}n&&(c.style.width=C(n));!n&&!k||b._reszEvt||(c=function(){g(A).on("resize.DT-"+
b.sInstance,Ta(function(){ba(b)}))},e?setTimeout(c,1E3):c(),b._reszEvt=!0)}function Kb(b,c){if(!b)return 0;b=g("<div/>").css("width",C(b)).appendTo(c||z.body);c=b[0].offsetWidth;b.remove();return c}function Lb(b,c){var d=Mb(b,c);if(0>d)return null;var e=b.aoData[d];return e.nTr?e.anCells[c]:g("<td/>").html(J(b,d,c,"display"))[0]}function Mb(b,c){for(var d,e=-1,f=-1,k=0,h=b.aoData.length;k<h;k++)d=J(b,k,c,"display")+"",d=d.replace(cc,""),d=d.replace(/&nbsp;/g," "),d.length>e&&(e=d.length,f=k);return f}
function C(b){return null===b?"0px":"number"==typeof b?0>b?"0px":b+"px":b.match(/\d$/)?b+"px":b}function Z(b){var c=[],d=b.aoColumns;var e=b.aaSortingFixed;var f=g.isPlainObject(e);var k=[];var h=function(b){b.length&&!g.isArray(b[0])?k.push(b):g.merge(k,b)};g.isArray(e)&&h(e);f&&e.pre&&h(e.pre);h(b.aaSorting);f&&e.post&&h(e.post);for(b=0;b<k.length;b++){var l=k[b][0];h=d[l].aDataSort;e=0;for(f=h.length;e<f;e++){var m=h[e];var q=d[m].sType||"string";k[b]._idx===p&&(k[b]._idx=g.inArray(k[b][1],d[m].asSorting));
c.push({src:l,col:m,dir:k[b][1],index:k[b]._idx,type:q,formatter:r.ext.type.order[q+"-pre"]})}}return c}function sb(b){var c,d=[],e=r.ext.type.order,f=b.aoData,k=0,h=b.aiDisplayMaster;La(b);var l=Z(b);var g=0;for(c=l.length;g<c;g++){var q=l[g];q.formatter&&k++;Nb(b,q.col)}if("ssp"!=E(b)&&0!==l.length){g=0;for(c=h.length;g<c;g++)d[h[g]]=g;k===l.length?h.sort(function(b,c){var e,k=l.length,h=f[b]._aSortData,g=f[c]._aSortData;for(e=0;e<k;e++){var m=l[e];var n=h[m.col];var q=g[m.col];n=n<q?-1:n>q?1:0;
if(0!==n)return"asc"===m.dir?n:-n}n=d[b];q=d[c];return n<q?-1:n>q?1:0}):h.sort(function(b,c){var k,h=l.length,g=f[b]._aSortData,m=f[c]._aSortData;for(k=0;k<h;k++){var n=l[k];var q=g[n.col];var p=m[n.col];n=e[n.type+"-"+n.dir]||e["string-"+n.dir];q=n(q,p);if(0!==q)return q}q=d[b];p=d[c];return q<p?-1:q>p?1:0})}b.bSorted=!0}function Ob(b){var c=b.aoColumns,d=Z(b);b=b.oLanguage.oAria;for(var e=0,f=c.length;e<f;e++){var k=c[e];var h=k.asSorting;var l=k.sTitle.replace(/<.*?>/g,"");var g=k.nTh;g.removeAttribute("aria-sort");
k.bSortable&&(0<d.length&&d[0].col==e?(g.setAttribute("aria-sort","asc"==d[0].dir?"ascending":"descending"),k=h[d[0].index+1]||h[0]):k=h[0],l+="asc"===k?b.sSortAscending:b.sSortDescending);g.setAttribute("aria-label",l)}}function $a(b,c,d,e){var f=b.aaSorting,k=b.aoColumns[c].asSorting,h=function(b,c){var d=b._idx;d===p&&(d=g.inArray(b[1],k));return d+1<k.length?d+1:c?null:0};"number"===typeof f[0]&&(f=b.aaSorting=[f]);d&&b.oFeatures.bSortMulti?(d=g.inArray(c,K(f,"0")),-1!==d?(c=h(f[d],!0),null===
c&&1===f.length&&(c=0),null===c?f.splice(d,1):(f[d][1]=k[c],f[d]._idx=c)):(f.push([c,k[0],0]),f[f.length-1]._idx=0)):f.length&&f[0][0]==c?(c=h(f[0]),f.length=1,f[0][1]=k[c],f[0]._idx=c):(f.length=0,f.push([c,k[0]]),f[0]._idx=0);W(b);"function"==typeof e&&e(b)}function Ra(b,c,d,e){var f=b.aoColumns[d];ab(c,{},function(c){!1!==f.bSortable&&(b.oFeatures.bProcessing?(L(b,!0),setTimeout(function(){$a(b,d,c.shiftKey,e);"ssp"!==E(b)&&L(b,!1)},0)):$a(b,d,c.shiftKey,e))})}function Ba(b){var c=b.aLastSort,
d=b.oClasses.sSortColumn,e=Z(b),f=b.oFeatures,k;if(f.bSort&&f.bSortClasses){f=0;for(k=c.length;f<k;f++){var h=c[f].src;g(K(b.aoData,"anCells",h)).removeClass(d+(2>f?f+1:3))}f=0;for(k=e.length;f<k;f++)h=e[f].src,g(K(b.aoData,"anCells",h)).addClass(d+(2>f?f+1:3))}b.aLastSort=e}function Nb(b,c){var d=b.aoColumns[c],e=r.ext.order[d.sSortDataType],f;e&&(f=e.call(b.oInstance,b,c,da(b,c)));for(var k,h=r.ext.type.order[d.sType+"-pre"],l=0,g=b.aoData.length;l<g;l++)if(d=b.aoData[l],d._aSortData||(d._aSortData=
[]),!d._aSortData[c]||e)k=e?f[l]:J(b,l,c,"sort"),d._aSortData[c]=h?h(k):k}function Ca(b){if(b.oFeatures.bStateSave&&!b.bDestroying){var c={time:+new Date,start:b._iDisplayStart,length:b._iDisplayLength,order:g.extend(!0,[],b.aaSorting),search:Gb(b.oPreviousSearch),columns:g.map(b.aoColumns,function(c,e){return{visible:c.bVisible,search:Gb(b.aoPreSearchCols[e])}})};B(b,"aoStateSaveParams","stateSaveParams",[b,c]);b.oSavedState=c;b.fnStateSaveCallback.call(b.oInstance,b,c)}}function Pb(b,c,d){var e,
f,k=b.aoColumns;c=function(c){if(c&&c.time){var h=B(b,"aoStateLoadParams","stateLoadParams",[b,c]);if(-1===g.inArray(!1,h)&&(h=b.iStateDuration,!(0<h&&c.time<+new Date-1E3*h||c.columns&&k.length!==c.columns.length))){b.oLoadedState=g.extend(!0,{},c);c.start!==p&&(b._iDisplayStart=c.start,b.iInitDisplayStart=c.start);c.length!==p&&(b._iDisplayLength=c.length);c.order!==p&&(b.aaSorting=[],g.each(c.order,function(c,d){b.aaSorting.push(d[0]>=k.length?[0,d[1]]:d)}));c.search!==p&&g.extend(b.oPreviousSearch,
Hb(c.search));if(c.columns)for(e=0,f=c.columns.length;e<f;e++)h=c.columns[e],h.visible!==p&&(k[e].bVisible=h.visible),h.search!==p&&g.extend(b.aoPreSearchCols[e],Hb(h.search));B(b,"aoStateLoaded","stateLoaded",[b,c])}}d()};if(b.oFeatures.bStateSave){var h=b.fnStateLoadCallback.call(b.oInstance,b,c);h!==p&&c(h)}else d()}function Da(b){var c=r.settings;b=g.inArray(b,K(c,"nTable"));return-1!==b?c[b]:null}function P(b,c,d,e){d="DataTables warning: "+(b?"table id="+b.sTableId+" - ":"")+d;e&&(d+=". For more information about this error, please see http://datatables.net/tn/"+
e);if(c)A.console&&console.log&&console.log(d);else if(c=r.ext,c=c.sErrMode||c.errMode,b&&B(b,null,"error",[b,e,d]),"alert"==c)alert(d);else{if("throw"==c)throw Error(d);"function"==typeof c&&c(b,e,d)}}function N(b,c,d,e){g.isArray(d)?g.each(d,function(d,e){g.isArray(e)?N(b,c,e[0],e[1]):N(b,c,e)}):(e===p&&(e=d),c[d]!==p&&(b[e]=c[d]))}function bb(b,c,d){var e;for(e in c)if(c.hasOwnProperty(e)){var f=c[e];g.isPlainObject(f)?(g.isPlainObject(b[e])||(b[e]={}),g.extend(!0,b[e],f)):d&&"data"!==e&&"aaData"!==
e&&g.isArray(f)?b[e]=f.slice():b[e]=f}return b}function ab(b,c,d){g(b).on("click.DT",c,function(c){g(b).blur();d(c)}).on("keypress.DT",c,function(b){13===b.which&&(b.preventDefault(),d(b))}).on("selectstart.DT",function(){return!1})}function F(b,c,d,e){d&&b[c].push({fn:d,sName:e})}function B(b,c,d,e){var f=[];c&&(f=g.map(b[c].slice().reverse(),function(c,d){return c.fn.apply(b.oInstance,e)}));null!==d&&(c=g.Event(d+".dt"),g(b.nTable).trigger(c,e),f.push(c.result));return f}function Xa(b){var c=b._iDisplayStart,
d=b.fnDisplayEnd(),e=b._iDisplayLength;c>=d&&(c=d-e);c-=c%e;if(-1===e||0>c)c=0;b._iDisplayStart=c}function Sa(b,c){b=b.renderer;var d=r.ext.renderer[c];return g.isPlainObject(b)&&b[c]?d[b[c]]||d._:"string"===typeof b?d[b]||d._:d._}function E(b){return b.oFeatures.bServerSide?"ssp":b.ajax||b.sAjaxSource?"ajax":"dom"}function la(b,c){var d=Qb.numbers_length,e=Math.floor(d/2);c<=d?b=aa(0,c):b<=e?(b=aa(0,d-2),b.push("ellipsis"),b.push(c-1)):(b>=c-1-e?b=aa(c-(d-2),c):(b=aa(b-e+2,b+e-1),b.push("ellipsis"),
b.push(c-1)),b.splice(0,0,"ellipsis"),b.splice(0,0,0));b.DT_el="span";return b}function Ia(b){g.each({num:function(c){return Ea(c,b)},"num-fmt":function(c){return Ea(c,b,cb)},"html-num":function(c){return Ea(c,b,Fa)},"html-num-fmt":function(c){return Ea(c,b,Fa,cb)}},function(c,d){D.type.order[c+b+"-pre"]=d;c.match(/^html\-/)&&(D.type.search[c+b]=D.type.search.html)})}function Rb(b){return function(){var c=[Da(this[r.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return r.ext.internal[b].apply(this,
c)}}var r=function(b){this.$=function(b,c){return this.api(!0).$(b,c)};this._=function(b,c){return this.api(!0).rows(b,c).data()};this.api=function(b){return b?new x(Da(this[D.iApiIndex])):new x(this)};this.fnAddData=function(b,c){var d=this.api(!0);b=g.isArray(b)&&(g.isArray(b[0])||g.isPlainObject(b[0]))?d.rows.add(b):d.row.add(b);(c===p||c)&&d.draw();return b.flatten().toArray()};this.fnAdjustColumnSizing=function(b){var c=this.api(!0).columns.adjust(),d=c.settings()[0],e=d.oScroll;b===p||b?c.draw(!1):
(""!==e.sX||""!==e.sY)&&oa(d)};this.fnClearTable=function(b){var c=this.api(!0).clear();(b===p||b)&&c.draw()};this.fnClose=function(b){this.api(!0).row(b).child.hide()};this.fnDeleteRow=function(b,c,d){var e=this.api(!0);b=e.rows(b);var f=b.settings()[0],k=f.aoData[b[0][0]];b.remove();c&&c.call(this,f,k);(d===p||d)&&e.draw();return k};this.fnDestroy=function(b){this.api(!0).destroy(b)};this.fnDraw=function(b){this.api(!0).draw(b)};this.fnFilter=function(b,c,d,e,f,g){f=this.api(!0);null===c||c===p?
f.search(b,d,e,g):f.column(c).search(b,d,e,g);f.draw()};this.fnGetData=function(b,c){var d=this.api(!0);if(b!==p){var e=b.nodeName?b.nodeName.toLowerCase():"";return c!==p||"td"==e||"th"==e?d.cell(b,c).data():d.row(b).data()||null}return d.data().toArray()};this.fnGetNodes=function(b){var c=this.api(!0);return b!==p?c.row(b).node():c.rows().nodes().flatten().toArray()};this.fnGetPosition=function(b){var c=this.api(!0),d=b.nodeName.toUpperCase();return"TR"==d?c.row(b).index():"TD"==d||"TH"==d?(b=c.cell(b).index(),
[b.row,b.columnVisible,b.column]):null};this.fnIsOpen=function(b){return this.api(!0).row(b).child.isShown()};this.fnOpen=function(b,c,d){return this.api(!0).row(b).child(c,d).show().child()[0]};this.fnPageChange=function(b,c){b=this.api(!0).page(b);(c===p||c)&&b.draw(!1)};this.fnSetColumnVis=function(b,c,d){b=this.api(!0).column(b).visible(c);(d===p||d)&&b.columns.adjust().draw()};this.fnSettings=function(){return Da(this[D.iApiIndex])};this.fnSort=function(b){this.api(!0).order(b).draw()};this.fnSortListener=
function(b,c,d){this.api(!0).order.listener(b,c,d)};this.fnUpdate=function(b,c,d,e,f){var k=this.api(!0);d===p||null===d?k.row(c).data(b):k.cell(c,d).data(b);(f===p||f)&&k.columns.adjust();(e===p||e)&&k.draw();return 0};this.fnVersionCheck=D.fnVersionCheck;var c=this,d=b===p,e=this.length;d&&(b={});this.oApi=this.internal=D.internal;for(var f in r.ext.internal)f&&(this[f]=Rb(f));this.each(function(){var f={},h=1<e?bb(f,b,!0):b,l=0,m;f=this.getAttribute("id");var q=!1,n=r.defaults,w=g(this);if("table"!=
this.nodeName.toLowerCase())P(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{kb(n);lb(n.column);M(n,n,!0);M(n.column,n.column,!0);M(n,g.extend(h,w.data()),!0);var v=r.settings;l=0;for(m=v.length;l<m;l++){var u=v[l];if(u.nTable==this||u.nTHead&&u.nTHead.parentNode==this||u.nTFoot&&u.nTFoot.parentNode==this){var x=h.bRetrieve!==p?h.bRetrieve:n.bRetrieve;if(d||x)return u.oInstance;if(h.bDestroy!==p?h.bDestroy:n.bDestroy){u.oInstance.fnDestroy();break}else{P(u,0,"Cannot reinitialise DataTable",
3);return}}if(u.sTableId==this.id){v.splice(l,1);break}}if(null===f||""===f)this.id=f="DataTables_Table_"+r.ext._unique++;var t=g.extend(!0,{},r.models.oSettings,{sDestroyWidth:w[0].style.width,sInstance:f,sTableId:f});t.nTable=this;t.oApi=c.internal;t.oInit=h;v.push(t);t.oInstance=1===c.length?c:w.dataTable();kb(h);Ha(h.oLanguage);h.aLengthMenu&&!h.iDisplayLength&&(h.iDisplayLength=g.isArray(h.aLengthMenu[0])?h.aLengthMenu[0][0]:h.aLengthMenu[0]);h=bb(g.extend(!0,{},n),h);N(t.oFeatures,h,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));
N(t,h,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]);N(t.oScroll,h,[["sScrollX","sX"],["sScrollXInner","sXInner"],
["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);N(t.oLanguage,h,"fnInfoCallback");F(t,"aoDrawCallback",h.fnDrawCallback,"user");F(t,"aoServerParams",h.fnServerParams,"user");F(t,"aoStateSaveParams",h.fnStateSaveParams,"user");F(t,"aoStateLoadParams",h.fnStateLoadParams,"user");F(t,"aoStateLoaded",h.fnStateLoaded,"user");F(t,"aoRowCallback",h.fnRowCallback,"user");F(t,"aoRowCreatedCallback",h.fnCreatedRow,"user");F(t,"aoHeaderCallback",h.fnHeaderCallback,"user");F(t,"aoFooterCallback",h.fnFooterCallback,
"user");F(t,"aoInitComplete",h.fnInitComplete,"user");F(t,"aoPreDrawCallback",h.fnPreDrawCallback,"user");t.rowIdFn=V(h.rowId);mb(t);var y=t.oClasses;g.extend(y,r.ext.classes,h.oClasses);w.addClass(y.sTable);t.iInitDisplayStart===p&&(t.iInitDisplayStart=h.iDisplayStart,t._iDisplayStart=h.iDisplayStart);null!==h.iDeferLoading&&(t.bDeferLoading=!0,f=g.isArray(h.iDeferLoading),t._iRecordsDisplay=f?h.iDeferLoading[0]:h.iDeferLoading,t._iRecordsTotal=f?h.iDeferLoading[1]:h.iDeferLoading);var z=t.oLanguage;
g.extend(!0,z,h.oLanguage);z.sUrl&&(g.ajax({dataType:"json",url:z.sUrl,success:function(b){Ha(b);M(n.oLanguage,b);g.extend(!0,z,b);ka(t)},error:function(){ka(t)}}),q=!0);null===h.asStripeClasses&&(t.asStripeClasses=[y.sStripeOdd,y.sStripeEven]);f=t.asStripeClasses;var A=w.children("tbody").find("tr").eq(0);-1!==g.inArray(!0,g.map(f,function(b,c){return A.hasClass(b)}))&&(g("tbody tr",this).removeClass(f.join(" ")),t.asDestroyStripes=f.slice());f=[];v=this.getElementsByTagName("thead");0!==v.length&&
(ha(t.aoHeader,v[0]),f=va(t));if(null===h.aoColumns)for(v=[],l=0,m=f.length;l<m;l++)v.push(null);else v=h.aoColumns;l=0;for(m=v.length;l<m;l++)Ja(t,f?f[l]:null);ob(t,h.aoColumnDefs,v,function(b,c){na(t,b,c)});if(A.length){var C=function(b,c){return null!==b.getAttribute("data-"+c)?c:null};g(A[0]).children("th, td").each(function(b,c){var d=t.aoColumns[b];if(d.mData===b){var e=C(c,"sort")||C(c,"order");c=C(c,"filter")||C(c,"search");if(null!==e||null!==c)d.mData={_:b+".display",sort:null!==e?b+".@data-"+
e:p,type:null!==e?b+".@data-"+e:p,filter:null!==c?b+".@data-"+c:p},na(t,b)}})}var D=t.oFeatures;f=function(){if(h.aaSorting===p){var b=t.aaSorting;l=0;for(m=b.length;l<m;l++)b[l][1]=t.aoColumns[l].asSorting[0]}Ba(t);D.bSort&&F(t,"aoDrawCallback",function(){if(t.bSorted){var b=Z(t),c={};g.each(b,function(b,d){c[d.src]=d.dir});B(t,null,"order",[t,b,c]);Ob(t)}});F(t,"aoDrawCallback",function(){(t.bSorted||"ssp"===E(t)||D.bDeferRender)&&Ba(t)},"sc");b=w.children("caption").each(function(){this._captionSide=
g(this).css("caption-side")});var c=w.children("thead");0===c.length&&(c=g("<thead/>").appendTo(w));t.nTHead=c[0];c=w.children("tbody");0===c.length&&(c=g("<tbody/>").appendTo(w));t.nTBody=c[0];c=w.children("tfoot");0===c.length&&0<b.length&&(""!==t.oScroll.sX||""!==t.oScroll.sY)&&(c=g("<tfoot/>").appendTo(w));0===c.length||0===c.children().length?w.addClass(y.sNoFooter):0<c.length&&(t.nTFoot=c[0],ha(t.aoFooter,t.nTFoot));if(h.aaData)for(l=0;l<h.aaData.length;l++)S(t,h.aaData[l]);else(t.bDeferLoading||
"dom"==E(t))&&qa(t,g(t.nTBody).children("tr"));t.aiDisplay=t.aiDisplayMaster.slice();t.bInitialised=!0;!1===q&&ka(t)};h.bStateSave?(D.bStateSave=!0,F(t,"aoDrawCallback",Ca,"state_save"),Pb(t,h,f)):f()}});c=null;return this},D,u,y,db={},Sb=/[\r\n\u2028]/g,Fa=/<.*?>/g,dc=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,ec=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,cb=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Q=function(b){return b&&!0!==b&&"-"!==b?!1:
!0},Tb=function(b){var c=parseInt(b,10);return!isNaN(c)&&isFinite(b)?c:null},Ub=function(b,c){db[c]||(db[c]=new RegExp(Va(c),"g"));return"string"===typeof b&&"."!==c?b.replace(/\./g,"").replace(db[c],"."):b},eb=function(b,c,d){var e="string"===typeof b;if(Q(b))return!0;c&&e&&(b=Ub(b,c));d&&e&&(b=b.replace(cb,""));return!isNaN(parseFloat(b))&&isFinite(b)},Vb=function(b,c,d){return Q(b)?!0:Q(b)||"string"===typeof b?eb(b.replace(Fa,""),c,d)?!0:null:null},K=function(b,c,d){var e=[],f=0,k=b.length;if(d!==
p)for(;f<k;f++)b[f]&&b[f][c]&&e.push(b[f][c][d]);else for(;f<k;f++)b[f]&&e.push(b[f][c]);return e},ma=function(b,c,d,e){var f=[],k=0,h=c.length;if(e!==p)for(;k<h;k++)b[c[k]][d]&&f.push(b[c[k]][d][e]);else for(;k<h;k++)f.push(b[c[k]][d]);return f},aa=function(b,c){var d=[];if(c===p){c=0;var e=b}else e=c,c=b;for(b=c;b<e;b++)d.push(b);return d},Wb=function(b){for(var c=[],d=0,e=b.length;d<e;d++)b[d]&&c.push(b[d]);return c},ua=function(b){a:{if(!(2>b.length)){var c=b.slice().sort();for(var d=c[0],e=1,
f=c.length;e<f;e++){if(c[e]===d){c=!1;break a}d=c[e]}}c=!0}if(c)return b.slice();c=[];f=b.length;var k,h=0;e=0;a:for(;e<f;e++){d=b[e];for(k=0;k<h;k++)if(c[k]===d)continue a;c.push(d);h++}return c};r.util={throttle:function(b,c){var d=c!==p?c:200,e,f;return function(){var c=this,h=+new Date,g=arguments;e&&h<e+d?(clearTimeout(f),f=setTimeout(function(){e=p;b.apply(c,g)},d)):(e=h,b.apply(c,g))}},escapeRegex:function(b){return b.replace(ec,"\\$1")}};var G=function(b,c,d){b[c]!==p&&(b[d]=b[c])},ea=/\[.*?\]$/,
Y=/\(\)$/,Va=r.util.escapeRegex,za=g("<div>")[0],ac=za.textContent!==p,cc=/<.*?>/g,Ta=r.util.throttle,Xb=[],H=Array.prototype,fc=function(b){var c,d=r.settings,e=g.map(d,function(b,c){return b.nTable});if(b){if(b.nTable&&b.oApi)return[b];if(b.nodeName&&"table"===b.nodeName.toLowerCase()){var f=g.inArray(b,e);return-1!==f?[d[f]]:null}if(b&&"function"===typeof b.settings)return b.settings().toArray();"string"===typeof b?c=g(b):b instanceof g&&(c=b)}else return[];if(c)return c.map(function(b){f=g.inArray(this,
e);return-1!==f?d[f]:null}).toArray()};var x=function(b,c){if(!(this instanceof x))return new x(b,c);var d=[],e=function(b){(b=fc(b))&&(d=d.concat(b))};if(g.isArray(b))for(var f=0,k=b.length;f<k;f++)e(b[f]);else e(b);this.context=ua(d);c&&g.merge(this,c);this.selector={rows:null,cols:null,opts:null};x.extend(this,this,Xb)};r.Api=x;g.extend(x.prototype,{any:function(){return 0!==this.count()},concat:H.concat,context:[],count:function(){return this.flatten().length},each:function(b){for(var c=0,d=this.length;c<
d;c++)b.call(this,this[c],c,this);return this},eq:function(b){var c=this.context;return c.length>b?new x(c[b],this[b]):null},filter:function(b){var c=[];if(H.filter)c=H.filter.call(this,b,this);else for(var d=0,e=this.length;d<e;d++)b.call(this,this[d],d,this)&&c.push(this[d]);return new x(this.context,c)},flatten:function(){var b=[];return new x(this.context,b.concat.apply(b,this.toArray()))},join:H.join,indexOf:H.indexOf||function(b,c){c=c||0;for(var d=this.length;c<d;c++)if(this[c]===b)return c;
return-1},iterator:function(b,c,d,e){var f=[],k,h,g=this.context,m,q=this.selector;"string"===typeof b&&(e=d,d=c,c=b,b=!1);var n=0;for(k=g.length;n<k;n++){var r=new x(g[n]);if("table"===c){var v=d.call(r,g[n],n);v!==p&&f.push(v)}else if("columns"===c||"rows"===c)v=d.call(r,g[n],this[n],n),v!==p&&f.push(v);else if("column"===c||"column-rows"===c||"row"===c||"cell"===c){var u=this[n];"column-rows"===c&&(m=Ga(g[n],q.opts));var y=0;for(h=u.length;y<h;y++)v=u[y],v="cell"===c?d.call(r,g[n],v.row,v.column,
n,y):d.call(r,g[n],v,n,y,m),v!==p&&f.push(v)}}return f.length||e?(b=new x(g,b?f.concat.apply([],f):f),c=b.selector,c.rows=q.rows,c.cols=q.cols,c.opts=q.opts,b):this},lastIndexOf:H.lastIndexOf||function(b,c){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(b){var c=[];if(H.map)c=H.map.call(this,b,this);else for(var d=0,e=this.length;d<e;d++)c.push(b.call(this,this[d],d));return new x(this.context,c)},pluck:function(b){return this.map(function(c){return c[b]})},pop:H.pop,
push:H.push,reduce:H.reduce||function(b,c){return nb(this,b,c,0,this.length,1)},reduceRight:H.reduceRight||function(b,c){return nb(this,b,c,this.length-1,-1,-1)},reverse:H.reverse,selector:null,shift:H.shift,slice:function(){return new x(this.context,this)},sort:H.sort,splice:H.splice,toArray:function(){return H.slice.call(this)},to$:function(){return g(this)},toJQuery:function(){return g(this)},unique:function(){return new x(this.context,ua(this))},unshift:H.unshift});x.extend=function(b,c,d){if(d.length&&
c&&(c instanceof x||c.__dt_wrapper)){var e,f=function(b,c,d){return function(){var e=c.apply(b,arguments);x.extend(e,e,d.methodExt);return e}};var k=0;for(e=d.length;k<e;k++){var h=d[k];c[h.name]="function"===typeof h.val?f(b,h.val,h):g.isPlainObject(h.val)?{}:h.val;c[h.name].__dt_wrapper=!0;x.extend(b,c[h.name],h.propExt)}}};x.register=u=function(b,c){if(g.isArray(b))for(var d=0,e=b.length;d<e;d++)x.register(b[d],c);else{e=b.split(".");var f=Xb,k;b=0;for(d=e.length;b<d;b++){var h=(k=-1!==e[b].indexOf("()"))?
e[b].replace("()",""):e[b];a:{var l=0;for(var m=f.length;l<m;l++)if(f[l].name===h){l=f[l];break a}l=null}l||(l={name:h,val:{},methodExt:[],propExt:[]},f.push(l));b===d-1?l.val=c:f=k?l.methodExt:l.propExt}}};x.registerPlural=y=function(b,c,d){x.register(b,d);x.register(c,function(){var b=d.apply(this,arguments);return b===this?this:b instanceof x?b.length?g.isArray(b[0])?new x(b.context,b[0]):b[0]:p:b})};var gc=function(b,c){if("number"===typeof b)return[c[b]];var d=g.map(c,function(b,c){return b.nTable});
return g(d).filter(b).map(function(b){b=g.inArray(this,d);return c[b]}).toArray()};u("tables()",function(b){return b?new x(gc(b,this.context)):this});u("table()",function(b){b=this.tables(b);var c=b.context;return c.length?new x(c[0]):b});y("tables().nodes()","table().node()",function(){return this.iterator("table",function(b){return b.nTable},1)});y("tables().body()","table().body()",function(){return this.iterator("table",function(b){return b.nTBody},1)});y("tables().header()","table().header()",
function(){return this.iterator("table",function(b){return b.nTHead},1)});y("tables().footer()","table().footer()",function(){return this.iterator("table",function(b){return b.nTFoot},1)});y("tables().containers()","table().container()",function(){return this.iterator("table",function(b){return b.nTableWrapper},1)});u("draw()",function(b){return this.iterator("table",function(c){"page"===b?T(c):("string"===typeof b&&(b="full-hold"===b?!1:!0),W(c,!1===b))})});u("page()",function(b){return b===p?this.page.info().page:
this.iterator("table",function(c){Ya(c,b)})});u("page.info()",function(b){if(0===this.context.length)return p;b=this.context[0];var c=b._iDisplayStart,d=b.oFeatures.bPaginate?b._iDisplayLength:-1,e=b.fnRecordsDisplay(),f=-1===d;return{page:f?0:Math.floor(c/d),pages:f?1:Math.ceil(e/d),start:c,end:b.fnDisplayEnd(),length:d,recordsTotal:b.fnRecordsTotal(),recordsDisplay:e,serverSide:"ssp"===E(b)}});u("page.len()",function(b){return b===p?0!==this.context.length?this.context[0]._iDisplayLength:p:this.iterator("table",
function(c){Wa(c,b)})});var Yb=function(b,c,d){if(d){var e=new x(b);e.one("draw",function(){d(e.ajax.json())})}if("ssp"==E(b))W(b,c);else{L(b,!0);var f=b.jqXHR;f&&4!==f.readyState&&f.abort();wa(b,[],function(d){ra(b);d=xa(b,d);for(var e=0,f=d.length;e<f;e++)S(b,d[e]);W(b,c);L(b,!1)})}};u("ajax.json()",function(){var b=this.context;if(0<b.length)return b[0].json});u("ajax.params()",function(){var b=this.context;if(0<b.length)return b[0].oAjaxData});u("ajax.reload()",function(b,c){return this.iterator("table",
function(d){Yb(d,!1===c,b)})});u("ajax.url()",function(b){var c=this.context;if(b===p){if(0===c.length)return p;c=c[0];return c.ajax?g.isPlainObject(c.ajax)?c.ajax.url:c.ajax:c.sAjaxSource}return this.iterator("table",function(c){g.isPlainObject(c.ajax)?c.ajax.url=b:c.ajax=b})});u("ajax.url().load()",function(b,c){return this.iterator("table",function(d){Yb(d,!1===c,b)})});var fb=function(b,c,d,e,f){var k=[],h,l,m;var q=typeof c;c&&"string"!==q&&"function"!==q&&c.length!==p||(c=[c]);q=0;for(l=c.length;q<
l;q++){var n=c[q]&&c[q].split&&!c[q].match(/[\[\(:]/)?c[q].split(","):[c[q]];var r=0;for(m=n.length;r<m;r++)(h=d("string"===typeof n[r]?g.trim(n[r]):n[r]))&&h.length&&(k=k.concat(h))}b=D.selector[b];if(b.length)for(q=0,l=b.length;q<l;q++)k=b[q](e,f,k);return ua(k)},gb=function(b){b||(b={});b.filter&&b.search===p&&(b.search=b.filter);return g.extend({search:"none",order:"current",page:"all"},b)},hb=function(b){for(var c=0,d=b.length;c<d;c++)if(0<b[c].length)return b[0]=b[c],b[0].length=1,b.length=
1,b.context=[b.context[c]],b;b.length=0;return b},Ga=function(b,c){var d=[],e=b.aiDisplay;var f=b.aiDisplayMaster;var k=c.search;var h=c.order;c=c.page;if("ssp"==E(b))return"removed"===k?[]:aa(0,f.length);if("current"==c)for(h=b._iDisplayStart,b=b.fnDisplayEnd();h<b;h++)d.push(e[h]);else if("current"==h||"applied"==h)if("none"==k)d=f.slice();else if("applied"==k)d=e.slice();else{if("removed"==k){var l={};h=0;for(b=e.length;h<b;h++)l[e[h]]=null;d=g.map(f,function(b){return l.hasOwnProperty(b)?null:
b})}}else if("index"==h||"original"==h)for(h=0,b=b.aoData.length;h<b;h++)"none"==k?d.push(h):(f=g.inArray(h,e),(-1===f&&"removed"==k||0<=f&&"applied"==k)&&d.push(h));return d},hc=function(b,c,d){var e;return fb("row",c,function(c){var f=Tb(c),h=b.aoData;if(null!==f&&!d)return[f];e||(e=Ga(b,d));if(null!==f&&-1!==g.inArray(f,e))return[f];if(null===c||c===p||""===c)return e;if("function"===typeof c)return g.map(e,function(b){var d=h[b];return c(b,d._aData,d.nTr)?b:null});if(c.nodeName){f=c._DT_RowIndex;
var l=c._DT_CellIndex;if(f!==p)return h[f]&&h[f].nTr===c?[f]:[];if(l)return h[l.row]&&h[l.row].nTr===c.parentNode?[l.row]:[];f=g(c).closest("*[data-dt-row]");return f.length?[f.data("dt-row")]:[]}if("string"===typeof c&&"#"===c.charAt(0)&&(f=b.aIds[c.replace(/^#/,"")],f!==p))return[f.idx];f=Wb(ma(b.aoData,e,"nTr"));return g(f).filter(c).map(function(){return this._DT_RowIndex}).toArray()},b,d)};u("rows()",function(b,c){b===p?b="":g.isPlainObject(b)&&(c=b,b="");c=gb(c);var d=this.iterator("table",
function(d){return hc(d,b,c)},1);d.selector.rows=b;d.selector.opts=c;return d});u("rows().nodes()",function(){return this.iterator("row",function(b,c){return b.aoData[c].nTr||p},1)});u("rows().data()",function(){return this.iterator(!0,"rows",function(b,c){return ma(b.aoData,c,"_aData")},1)});y("rows().cache()","row().cache()",function(b){return this.iterator("row",function(c,d){c=c.aoData[d];return"search"===b?c._aFilterData:c._aSortData},1)});y("rows().invalidate()","row().invalidate()",function(b){return this.iterator("row",
function(c,d){fa(c,d,b)})});y("rows().indexes()","row().index()",function(){return this.iterator("row",function(b,c){return c},1)});y("rows().ids()","row().id()",function(b){for(var c=[],d=this.context,e=0,f=d.length;e<f;e++)for(var k=0,h=this[e].length;k<h;k++){var g=d[e].rowIdFn(d[e].aoData[this[e][k]]._aData);c.push((!0===b?"#":"")+g)}return new x(d,c)});y("rows().remove()","row().remove()",function(){var b=this;this.iterator("row",function(c,d,e){var f=c.aoData,g=f[d],h,l;f.splice(d,1);var m=
0;for(h=f.length;m<h;m++){var q=f[m];var n=q.anCells;null!==q.nTr&&(q.nTr._DT_RowIndex=m);if(null!==n)for(q=0,l=n.length;q<l;q++)n[q]._DT_CellIndex.row=m}sa(c.aiDisplayMaster,d);sa(c.aiDisplay,d);sa(b[e],d,!1);0<c._iRecordsDisplay&&c._iRecordsDisplay--;Xa(c);d=c.rowIdFn(g._aData);d!==p&&delete c.aIds[d]});this.iterator("table",function(b){for(var c=0,e=b.aoData.length;c<e;c++)b.aoData[c].idx=c});return this});u("rows.add()",function(b){var c=this.iterator("table",function(c){var d,e=[];var g=0;for(d=
b.length;g<d;g++){var l=b[g];l.nodeName&&"TR"===l.nodeName.toUpperCase()?e.push(qa(c,l)[0]):e.push(S(c,l))}return e},1),d=this.rows(-1);d.pop();g.merge(d,c);return d});u("row()",function(b,c){return hb(this.rows(b,c))});u("row().data()",function(b){var c=this.context;if(b===p)return c.length&&this.length?c[0].aoData[this[0]]._aData:p;var d=c[0].aoData[this[0]];d._aData=b;g.isArray(b)&&d.nTr.id&&R(c[0].rowId)(b,d.nTr.id);fa(c[0],this[0],"data");return this});u("row().node()",function(){var b=this.context;
return b.length&&this.length?b[0].aoData[this[0]].nTr||null:null});u("row.add()",function(b){b instanceof g&&b.length&&(b=b[0]);var c=this.iterator("table",function(c){return b.nodeName&&"TR"===b.nodeName.toUpperCase()?qa(c,b)[0]:S(c,b)});return this.row(c[0])});var ic=function(b,c,d,e){var f=[],k=function(c,d){if(g.isArray(c)||c instanceof g)for(var e=0,h=c.length;e<h;e++)k(c[e],d);else c.nodeName&&"tr"===c.nodeName.toLowerCase()?f.push(c):(e=g("<tr><td/></tr>").addClass(d),g("td",e).addClass(d).html(c)[0].colSpan=
X(b),f.push(e[0]))};k(d,e);c._details&&c._details.detach();c._details=g(f);c._detailsShow&&c._details.insertAfter(c.nTr)},ib=function(b,c){var d=b.context;d.length&&(b=d[0].aoData[c!==p?c:b[0]])&&b._details&&(b._details.remove(),b._detailsShow=p,b._details=p)},Zb=function(b,c){var d=b.context;d.length&&b.length&&(b=d[0].aoData[b[0]],b._details&&((b._detailsShow=c)?b._details.insertAfter(b.nTr):b._details.detach(),jc(d[0])))},jc=function(b){var c=new x(b),d=b.aoData;c.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");
0<K(d,"_details").length&&(c.on("draw.dt.DT_details",function(e,f){b===f&&c.rows({page:"current"}).eq(0).each(function(b){b=d[b];b._detailsShow&&b._details.insertAfter(b.nTr)})}),c.on("column-visibility.dt.DT_details",function(c,f,g,h){if(b===f)for(f=X(f),g=0,h=d.length;g<h;g++)c=d[g],c._details&&c._details.children("td[colspan]").attr("colspan",f)}),c.on("destroy.dt.DT_details",function(e,f){if(b===f)for(e=0,f=d.length;e<f;e++)d[e]._details&&ib(c,e)}))};u("row().child()",function(b,c){var d=this.context;
if(b===p)return d.length&&this.length?d[0].aoData[this[0]]._details:p;!0===b?this.child.show():!1===b?ib(this):d.length&&this.length&&ic(d[0],d[0].aoData[this[0]],b,c);return this});u(["row().child.show()","row().child().show()"],function(b){Zb(this,!0);return this});u(["row().child.hide()","row().child().hide()"],function(){Zb(this,!1);return this});u(["row().child.remove()","row().child().remove()"],function(){ib(this);return this});u("row().child.isShown()",function(){var b=this.context;return b.length&&
this.length?b[0].aoData[this[0]]._detailsShow||!1:!1});var kc=/^([^:]+):(name|visIdx|visible)$/,$b=function(b,c,d,e,f){d=[];e=0;for(var g=f.length;e<g;e++)d.push(J(b,f[e],c));return d},lc=function(b,c,d){var e=b.aoColumns,f=K(e,"sName"),k=K(e,"nTh");return fb("column",c,function(c){var h=Tb(c);if(""===c)return aa(e.length);if(null!==h)return[0<=h?h:e.length+h];if("function"===typeof c){var m=Ga(b,d);return g.map(e,function(d,e){return c(e,$b(b,e,0,0,m),k[e])?e:null})}var q="string"===typeof c?c.match(kc):
"";if(q)switch(q[2]){case "visIdx":case "visible":h=parseInt(q[1],10);if(0>h){var n=g.map(e,function(b,c){return b.bVisible?c:null});return[n[n.length+h]]}return[ca(b,h)];case "name":return g.map(f,function(b,c){return b===q[1]?c:null});default:return[]}if(c.nodeName&&c._DT_CellIndex)return[c._DT_CellIndex.column];h=g(k).filter(c).map(function(){return g.inArray(this,k)}).toArray();if(h.length||!c.nodeName)return h;h=g(c).closest("*[data-dt-column]");return h.length?[h.data("dt-column")]:[]},b,d)};
u("columns()",function(b,c){b===p?b="":g.isPlainObject(b)&&(c=b,b="");c=gb(c);var d=this.iterator("table",function(d){return lc(d,b,c)},1);d.selector.cols=b;d.selector.opts=c;return d});y("columns().header()","column().header()",function(b,c){return this.iterator("column",function(b,c){return b.aoColumns[c].nTh},1)});y("columns().footer()","column().footer()",function(b,c){return this.iterator("column",function(b,c){return b.aoColumns[c].nTf},1)});y("columns().data()","column().data()",function(){return this.iterator("column-rows",
$b,1)});y("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(b,c){return b.aoColumns[c].mData},1)});y("columns().cache()","column().cache()",function(b){return this.iterator("column-rows",function(c,d,e,f,g){return ma(c.aoData,g,"search"===b?"_aFilterData":"_aSortData",d)},1)});y("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(b,c,d,e,f){return ma(b.aoData,f,"anCells",c)},1)});y("columns().visible()","column().visible()",
function(b,c){var d=this.iterator("column",function(c,d){if(b===p)return c.aoColumns[d].bVisible;var e=c.aoColumns,f=e[d],l=c.aoData,m;if(b!==p&&f.bVisible!==b){if(b){var q=g.inArray(!0,K(e,"bVisible"),d+1);var n=0;for(m=l.length;n<m;n++){var r=l[n].nTr;e=l[n].anCells;r&&r.insertBefore(e[d],e[q]||null)}}else g(K(c.aoData,"anCells",d)).detach();f.bVisible=b;ia(c,c.aoHeader);ia(c,c.aoFooter);c.aiDisplay.length||g(c.nTBody).find("td[colspan]").attr("colspan",X(c));Ca(c)}});b!==p&&(this.iterator("column",
function(d,f){B(d,null,"column-visibility",[d,f,b,c])}),(c===p||c)&&this.columns.adjust());return d});y("columns().indexes()","column().index()",function(b){return this.iterator("column",function(c,d){return"visible"===b?da(c,d):d},1)});u("columns.adjust()",function(){return this.iterator("table",function(b){ba(b)},1)});u("column.index()",function(b,c){if(0!==this.context.length){var d=this.context[0];if("fromVisible"===b||"toData"===b)return ca(d,c);if("fromData"===b||"toVisible"===b)return da(d,
c)}});u("column()",function(b,c){return hb(this.columns(b,c))});var mc=function(b,c,d){var e=b.aoData,f=Ga(b,d),k=Wb(ma(e,f,"anCells")),h=g([].concat.apply([],k)),l,m=b.aoColumns.length,q,n,r,v,u,x;return fb("cell",c,function(c){var d="function"===typeof c;if(null===c||c===p||d){q=[];n=0;for(r=f.length;n<r;n++)for(l=f[n],v=0;v<m;v++)u={row:l,column:v},d?(x=e[l],c(u,J(b,l,v),x.anCells?x.anCells[v]:null)&&q.push(u)):q.push(u);return q}if(g.isPlainObject(c))return c.column!==p&&c.row!==p&&-1!==g.inArray(c.row,
f)?[c]:[];d=h.filter(c).map(function(b,c){return{row:c._DT_CellIndex.row,column:c._DT_CellIndex.column}}).toArray();if(d.length||!c.nodeName)return d;x=g(c).closest("*[data-dt-row]");return x.length?[{row:x.data("dt-row"),column:x.data("dt-column")}]:[]},b,d)};u("cells()",function(b,c,d){g.isPlainObject(b)&&(b.row===p?(d=b,b=null):(d=c,c=null));g.isPlainObject(c)&&(d=c,c=null);if(null===c||c===p)return this.iterator("table",function(c){return mc(c,b,gb(d))});var e=d?{page:d.page,order:d.order,search:d.search}:
{},f=this.columns(c,e),k=this.rows(b,e),h,l,m,q;e=this.iterator("table",function(b,c){b=[];h=0;for(l=k[c].length;h<l;h++)for(m=0,q=f[c].length;m<q;m++)b.push({row:k[c][h],column:f[c][m]});return b},1);d&&d.selected&&(e=this.cells(a,d));g.extend(e.selector,{cols:c,rows:b,opts:d});return e});y("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(b,c,d){return(b=b.aoData[c])&&b.anCells?b.anCells[d]:p},1)});u("cells().data()",function(){return this.iterator("cell",function(b,
c,d){return J(b,c,d)},1)});y("cells().cache()","cell().cache()",function(b){b="search"===b?"_aFilterData":"_aSortData";return this.iterator("cell",function(c,d,e){return c.aoData[d][b][e]},1)});y("cells().render()","cell().render()",function(b){return this.iterator("cell",function(c,d,e){return J(c,d,e,b)},1)});y("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(b,c,d){return{row:c,column:d,columnVisible:da(b,d)}},1)});y("cells().invalidate()","cell().invalidate()",
function(b){return this.iterator("cell",function(c,d,e){fa(c,d,b,e)})});u("cell()",function(b,c,d){return hb(this.cells(b,c,d))});u("cell().data()",function(b){var c=this.context,d=this[0];if(b===p)return c.length&&d.length?J(c[0],d[0].row,d[0].column):p;pb(c[0],d[0].row,d[0].column,b);fa(c[0],d[0].row,"data",d[0].column);return this});u("order()",function(b,c){var d=this.context;if(b===p)return 0!==d.length?d[0].aaSorting:p;"number"===typeof b?b=[[b,c]]:b.length&&!g.isArray(b[0])&&(b=Array.prototype.slice.call(arguments));
return this.iterator("table",function(c){c.aaSorting=b.slice()})});u("order.listener()",function(b,c,d){return this.iterator("table",function(e){Ra(e,b,c,d)})});u("order.fixed()",function(b){if(!b){var c=this.context;c=c.length?c[0].aaSortingFixed:p;return g.isArray(c)?{pre:c}:c}return this.iterator("table",function(c){c.aaSortingFixed=g.extend(!0,{},b)})});u(["columns().order()","column().order()"],function(b){var c=this;return this.iterator("table",function(d,e){var f=[];g.each(c[e],function(c,
d){f.push([d,b])});d.aaSorting=f})});u("search()",function(b,c,d,e){var f=this.context;return b===p?0!==f.length?f[0].oPreviousSearch.sSearch:p:this.iterator("table",function(f){f.oFeatures.bFilter&&ja(f,g.extend({},f.oPreviousSearch,{sSearch:b+"",bRegex:null===c?!1:c,bSmart:null===d?!0:d,bCaseInsensitive:null===e?!0:e}),1)})});y("columns().search()","column().search()",function(b,c,d,e){return this.iterator("column",function(f,k){var h=f.aoPreSearchCols;if(b===p)return h[k].sSearch;f.oFeatures.bFilter&&
(g.extend(h[k],{sSearch:b+"",bRegex:null===c?!1:c,bSmart:null===d?!0:d,bCaseInsensitive:null===e?!0:e}),ja(f,f.oPreviousSearch,1))})});u("state()",function(){return this.context.length?this.context[0].oSavedState:null});u("state.clear()",function(){return this.iterator("table",function(b){b.fnStateSaveCallback.call(b.oInstance,b,{})})});u("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});u("state.save()",function(){return this.iterator("table",function(b){Ca(b)})});
r.versionCheck=r.fnVersionCheck=function(b){var c=r.version.split(".");b=b.split(".");for(var d,e,f=0,g=b.length;f<g;f++)if(d=parseInt(c[f],10)||0,e=parseInt(b[f],10)||0,d!==e)return d>e;return!0};r.isDataTable=r.fnIsDataTable=function(b){var c=g(b).get(0),d=!1;if(b instanceof r.Api)return!0;g.each(r.settings,function(b,f){b=f.nScrollHead?g("table",f.nScrollHead)[0]:null;var e=f.nScrollFoot?g("table",f.nScrollFoot)[0]:null;if(f.nTable===c||b===c||e===c)d=!0});return d};r.tables=r.fnTables=function(b){var c=
!1;g.isPlainObject(b)&&(c=b.api,b=b.visible);var d=g.map(r.settings,function(c){if(!b||b&&g(c.nTable).is(":visible"))return c.nTable});return c?new x(d):d};r.camelToHungarian=M;u("$()",function(b,c){c=this.rows(c).nodes();c=g(c);return g([].concat(c.filter(b).toArray(),c.find(b).toArray()))});g.each(["on","one","off"],function(b,c){u(c+"()",function(){var b=Array.prototype.slice.call(arguments);b[0]=g.map(b[0].split(/\s/),function(b){return b.match(/\.dt\b/)?b:b+".dt"}).join(" ");var e=g(this.tables().nodes());
e[c].apply(e,b);return this})});u("clear()",function(){return this.iterator("table",function(b){ra(b)})});u("settings()",function(){return new x(this.context,this.context)});u("init()",function(){var b=this.context;return b.length?b[0].oInit:null});u("data()",function(){return this.iterator("table",function(b){return K(b.aoData,"_aData")}).flatten()});u("destroy()",function(b){b=b||!1;return this.iterator("table",function(c){var d=c.nTableWrapper.parentNode,e=c.oClasses,f=c.nTable,k=c.nTBody,h=c.nTHead,
l=c.nTFoot,m=g(f);k=g(k);var q=g(c.nTableWrapper),n=g.map(c.aoData,function(b){return b.nTr}),p;c.bDestroying=!0;B(c,"aoDestroyCallback","destroy",[c]);b||(new x(c)).columns().visible(!0);q.off(".DT").find(":not(tbody *)").off(".DT");g(A).off(".DT-"+c.sInstance);f!=h.parentNode&&(m.children("thead").detach(),m.append(h));l&&f!=l.parentNode&&(m.children("tfoot").detach(),m.append(l));c.aaSorting=[];c.aaSortingFixed=[];Ba(c);g(n).removeClass(c.asStripeClasses.join(" "));g("th, td",h).removeClass(e.sSortable+
" "+e.sSortableAsc+" "+e.sSortableDesc+" "+e.sSortableNone);k.children().detach();k.append(n);h=b?"remove":"detach";m[h]();q[h]();!b&&d&&(d.insertBefore(f,c.nTableReinsertBefore),m.css("width",c.sDestroyWidth).removeClass(e.sTable),(p=c.asDestroyStripes.length)&&k.children().each(function(b){g(this).addClass(c.asDestroyStripes[b%p])}));d=g.inArray(c,r.settings);-1!==d&&r.settings.splice(d,1)})});g.each(["column","row","cell"],function(b,c){u(c+"s().every()",function(b){var d=this.selector.opts,f=
this;return this.iterator(c,function(e,g,l,m,q){b.call(f[c](g,"cell"===c?l:d,"cell"===c?d:p),g,l,m,q)})})});u("i18n()",function(b,c,d){var e=this.context[0];b=V(b)(e.oLanguage);b===p&&(b=c);d!==p&&g.isPlainObject(b)&&(b=b[d]!==p?b[d]:b._);return b.replace("%d",d)});r.version="1.10.20-dev";r.settings=[];r.models={};r.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};r.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,
idx:-1};r.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};r.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,
25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(b){return b.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,
fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(b){try{return JSON.parse((-1===b.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+b.sInstance+"_"+location.pathname))}catch(c){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(b,c){try{(-1===b.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+b.sInstance+"_"+location.pathname,JSON.stringify(c))}catch(d){}},fnStateSaveParams:null,
iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",
sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:g.extend({},r.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};I(r.defaults);r.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc",
"desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};I(r.defaults.column);r.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,
sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],
aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:p,oAjaxData:p,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,
bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==E(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==E(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var b=this._iDisplayLength,c=this._iDisplayStart,d=c+b,e=this.aiDisplay.length,f=this.oFeatures,g=
f.bPaginate;return f.bServerSide?!1===g||-1===b?c+e:Math.min(c+b,this._iRecordsDisplay):!g||d>e||-1===b?e:d},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};r.ext=D={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:r.fnVersionCheck,
iApiIndex:0,oJUIClasses:{},sVersion:r.version};g.extend(D,{afnFiltering:D.search,aTypes:D.type.detect,ofnSearch:D.type.search,oSort:D.type.order,afnSortData:D.order,aoFeatures:D.feature,oApi:D.internal,oStdClasses:D.classes,oPagination:D.pager});g.extend(r.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",
sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",
sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Qb=r.ext.pager;g.extend(Qb,{simple:function(b,c){return["previous","next"]},full:function(b,c){return["first","previous","next","last"]},numbers:function(b,c){return[la(b,c)]},simple_numbers:function(b,c){return["previous",la(b,c),"next"]},
full_numbers:function(b,c){return["first","previous",la(b,c),"next","last"]},first_last_numbers:function(b,c){return["first",la(b,c),"last"]},_numbers:la,numbers_length:7});g.extend(!0,r.ext.renderer,{pageButton:{_:function(b,c,d,e,f,k){var h=b.oClasses,l=b.oLanguage.oPaginate,m=b.oLanguage.oAria.paginate||{},q,n,r=0,u=function(c,e){var p,t=function(c){Ya(b,c.data.action,!0)};var v=0;for(p=e.length;v<p;v++){var w=e[v];if(g.isArray(w)){var x=g("<"+(w.DT_el||"div")+"/>").appendTo(c);u(x,w)}else{q=null;
n="";switch(w){case "ellipsis":c.append('<span class="ellipsis">&#x2026;</span>');break;case "first":q=l.sFirst;n=w+(0<f?"":" "+h.sPageButtonDisabled);break;case "previous":q=l.sPrevious;n=w+(0<f?"":" "+h.sPageButtonDisabled);break;case "next":q=l.sNext;n=w+(f<k-1?"":" "+h.sPageButtonDisabled);break;case "last":q=l.sLast;n=w+(f<k-1?"":" "+h.sPageButtonDisabled);break;default:q=w+1,n=f===w?h.sPageButtonActive:""}null!==q&&(x=g("<a>",{"class":h.sPageButton+" "+n,"aria-controls":b.sTableId,"aria-label":m[w],
"data-dt-idx":r,tabindex:b.iTabIndex,id:0===d&&"string"===typeof w?b.sTableId+"_"+w:null}).html(q).appendTo(c),ab(x,{action:w},t),r++)}}};try{var x=g(c).find(z.activeElement).data("dt-idx")}catch(nc){}u(g(c).empty(),e);x!==p&&g(c).find("[data-dt-idx="+x+"]").focus()}}});g.extend(r.ext.type.detect,[function(b,c){c=c.oLanguage.sDecimal;return eb(b,c)?"num"+c:null},function(b,c){if(b&&!(b instanceof Date)&&!dc.test(b))return null;c=Date.parse(b);return null!==c&&!isNaN(c)||Q(b)?"date":null},function(b,
c){c=c.oLanguage.sDecimal;return eb(b,c,!0)?"num-fmt"+c:null},function(b,c){c=c.oLanguage.sDecimal;return Vb(b,c)?"html-num"+c:null},function(b,c){c=c.oLanguage.sDecimal;return Vb(b,c,!0)?"html-num-fmt"+c:null},function(b,c){return Q(b)||"string"===typeof b&&-1!==b.indexOf("<")?"html":null}]);g.extend(r.ext.type.search,{html:function(b){return Q(b)?b:"string"===typeof b?b.replace(Sb," ").replace(Fa,""):""},string:function(b){return Q(b)?b:"string"===typeof b?b.replace(Sb," "):b}});var Ea=function(b,
c,d,e){if(0!==b&&(!b||"-"===b))return-Infinity;c&&(b=Ub(b,c));b.replace&&(d&&(b=b.replace(d,"")),e&&(b=b.replace(e,"")));return 1*b};g.extend(D.type.order,{"date-pre":function(b){b=Date.parse(b);return isNaN(b)?-Infinity:b},"html-pre":function(b){return Q(b)?"":b.replace?b.replace(/<.*?>/g,"").toLowerCase():b+""},"string-pre":function(b){return Q(b)?"":"string"===typeof b?b.toLowerCase():b.toString?b.toString():""},"string-asc":function(b,c){return b<c?-1:b>c?1:0},"string-desc":function(b,c){return b<
c?1:b>c?-1:0}});Ia("");g.extend(!0,r.ext.renderer,{header:{_:function(b,c,d,e){g(b.nTable).on("order.dt.DT",function(f,g,h,l){b===g&&(f=d.idx,c.removeClass(d.sSortingClass+" "+e.sSortAsc+" "+e.sSortDesc).addClass("asc"==l[f]?e.sSortAsc:"desc"==l[f]?e.sSortDesc:d.sSortingClass))})},jqueryui:function(b,c,d,e){g("<div/>").addClass(e.sSortJUIWrapper).append(c.contents()).append(g("<span/>").addClass(e.sSortIcon+" "+d.sSortingClassJUI)).appendTo(c);g(b.nTable).on("order.dt.DT",function(f,g,h,l){b===g&&
(f=d.idx,c.removeClass(e.sSortAsc+" "+e.sSortDesc).addClass("asc"==l[f]?e.sSortAsc:"desc"==l[f]?e.sSortDesc:d.sSortingClass),c.find("span."+e.sSortIcon).removeClass(e.sSortJUIAsc+" "+e.sSortJUIDesc+" "+e.sSortJUI+" "+e.sSortJUIAscAllowed+" "+e.sSortJUIDescAllowed).addClass("asc"==l[f]?e.sSortJUIAsc:"desc"==l[f]?e.sSortJUIDesc:d.sSortingClassJUI))})}}});var jb=function(b){return"string"===typeof b?b.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):b};r.render={number:function(b,c,d,
e,f){return{display:function(g){if("number"!==typeof g&&"string"!==typeof g)return g;var h=0>g?"-":"",k=parseFloat(g);if(isNaN(k))return jb(g);k=k.toFixed(d);g=Math.abs(k);k=parseInt(g,10);g=d?c+(g-k).toFixed(d).substring(2):"";return h+(e||"")+k.toString().replace(/\B(?=(\d{3})+(?!\d))/g,b)+g+(f||"")}}},text:function(){return{display:jb,filter:jb}}};g.extend(r.ext.internal,{_fnExternApiFunc:Rb,_fnBuildAjax:wa,_fnAjaxUpdate:rb,_fnAjaxParameters:Ab,_fnAjaxUpdateDraw:Bb,_fnAjaxDataSrc:xa,_fnAddColumn:Ja,
_fnColumnOptions:na,_fnAdjustColumnSizing:ba,_fnVisibleToColumnIndex:ca,_fnColumnIndexToVisible:da,_fnVisbleColumns:X,_fnGetColumns:pa,_fnColumnTypes:La,_fnApplyColumnDefs:ob,_fnHungarianMap:I,_fnCamelToHungarian:M,_fnLanguageCompat:Ha,_fnBrowserDetect:mb,_fnAddData:S,_fnAddTr:qa,_fnNodeToDataIndex:function(b,c){return c._DT_RowIndex!==p?c._DT_RowIndex:null},_fnNodeToColumnIndex:function(b,c,d){return g.inArray(d,b.aoData[c].anCells)},_fnGetCellData:J,_fnSetCellData:pb,_fnSplitObjNotation:Oa,_fnGetObjectDataFn:V,
_fnSetObjectDataFn:R,_fnGetDataMaster:Pa,_fnClearTable:ra,_fnDeleteIndex:sa,_fnInvalidate:fa,_fnGetRowElements:Na,_fnCreateTr:Ma,_fnBuildHead:qb,_fnDrawHead:ia,_fnDraw:T,_fnReDraw:W,_fnAddOptionsHtml:tb,_fnDetectHeader:ha,_fnGetUniqueThs:va,_fnFeatureHtmlFilter:vb,_fnFilterComplete:ja,_fnFilterCustom:Eb,_fnFilterColumn:Db,_fnFilter:Cb,_fnFilterCreateSearch:Ua,_fnEscapeRegex:Va,_fnFilterData:Fb,_fnFeatureHtmlInfo:yb,_fnUpdateInfo:Ib,_fnInfoMacros:Jb,_fnInitialise:ka,_fnInitComplete:ya,_fnLengthChange:Wa,
_fnFeatureHtmlLength:ub,_fnFeatureHtmlPaginate:zb,_fnPageChange:Ya,_fnFeatureHtmlProcessing:wb,_fnProcessingDisplay:L,_fnFeatureHtmlTable:xb,_fnScrollDraw:oa,_fnApplyToChildren:O,_fnCalculateColumnWidths:Ka,_fnThrottle:Ta,_fnConvertToWidth:Kb,_fnGetWidestNode:Lb,_fnGetMaxLenString:Mb,_fnStringToCss:C,_fnSortFlatten:Z,_fnSort:sb,_fnSortAria:Ob,_fnSortListener:$a,_fnSortAttachListener:Ra,_fnSortingClasses:Ba,_fnSortData:Nb,_fnSaveState:Ca,_fnLoadState:Pb,_fnSettingsFromNode:Da,_fnLog:P,_fnMap:N,_fnBindAction:ab,
_fnCallbackReg:F,_fnCallbackFire:B,_fnLengthOverflow:Xa,_fnRenderer:Sa,_fnDataSource:E,_fnRowAttributes:Qa,_fnExtend:bb,_fnCalculateEnd:function(){}});g.fn.dataTable=r;r.$=g;g.fn.dataTableSettings=r.settings;g.fn.dataTableExt=r.ext;g.fn.DataTable=function(b){return g(this).dataTable(b).api()};g.each(r,function(b,c){g.fn.DataTable[b]=c});return g.fn.dataTable});