!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,a){"use strict";function r(e){var n,a,o="a aa ai ao as b fn i m o s ",l={};t.each(e,function(t,i){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!==o.indexOf(n[1]+" ")&&(a=t.replace(n[0],n[2].toLowerCase()),l[a]=t,"o"===n[1]&&r(e[t]))}),e._hungarianMap=l}function o(e,n,l){e._hungarianMap||r(e);var i;t.each(n,function(r,s){(i=e._hungarianMap[r])===a||!l&&n[i]!==a||("o"===i.charAt(0)?(n[i]||(n[i]={}),t.extend(!0,n[i],n[r]),o(e[i],n[i],l)):n[i]=n[r])})}function l(t){var e=Jt.defaults.oLanguage,n=e.sDecimal;if(n&&zt(n),t){var a=t.sZeroRecords;!t.sEmptyTable&&a&&"No data available in table"===e.sEmptyTable&&Lt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&a&&"Loading..."===e.sLoadingRecords&&Lt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var r=t.sDecimal;r&&n!==r&&zt(r)}}function i(t){he(t,"ordering","bSort"),he(t,"orderMulti","bSortMulti"),he(t,"orderClasses","bSortClasses"),he(t,"orderCellsTop","bSortCellsTop"),he(t,"order","aaSorting"),he(t,"orderFixed","aaSortingFixed"),he(t,"paging","bPaginate"),he(t,"pagingType","sPaginationType"),he(t,"pageLength","iDisplayLength"),he(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,a=e.length;n").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("
").css({width:"100%",height:10}))).appendTo("body"),o=r.children(),l=o.children();a.barWidth=o[0].offsetWidth-o[0].clientWidth,a.bScrollOversize=100===l[0].offsetWidth&&100!==o[0].clientWidth,a.bScrollbarLeft=1!==Math.round(l.offset().left),a.bBounding=!!r[0].getBoundingClientRect().width,r.remove()}t.extend(n.oBrowser,Jt.__browser),n.oScroll.iBarWidth=Jt.__browser.barWidth}function u(t,e,n,r,o,l){var i,s=r,d=!1;for(n!==a&&(i=n,d=!0);s!==o;)t.hasOwnProperty(s)&&(i=d?e(i,t[s],s,t):t[s],d=!0,s+=l);return i}function c(e,a){var r=Jt.defaults.column,o=e.aoColumns.length,l=t.extend({},Jt.models.oColumn,r,{nTh:a||n.createElement("th"),sTitle:r.sTitle?r.sTitle:a?a.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o});e.aoColumns.push(l);var i=e.aoPreSearchCols;i[o]=t.extend({},Jt.models.oSearch,i[o]),f(e,o,t(a).data())}function f(e,n,r){var l=e.aoColumns[n],i=e.oClasses,d=t(l.nTh);if(!l.sWidthOrig){l.sWidthOrig=d.attr("width")||null;var u=(d.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);u&&(l.sWidthOrig=u[1])}r!==a&&null!==r&&(s(r),o(Jt.defaults.column,r),r.mDataProp===a||r.mData||(r.mData=r.mDataProp),r.sType&&(l._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&d.addClass(r.sClass),t.extend(l,r),Lt(l,r,"sWidth","sWidthOrig"),r.iDataSort!==a&&(l.aDataSort=[r.iDataSort]),Lt(l,r,"aDataSort"));var c=l.mData,f=T(c),p=l.mRender?T(l.mRender):null,h=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};l._bAttrSrc=t.isPlainObject(c)&&(h(c.sort)||h(c.type)||h(c.filter)),l._setter=null,l.fnGetData=function(t,e,n){var r=f(t,e,a,n);return p&&e?p(r,e,t,n):r},l.fnSetData=function(t,e,n){return _(c)(t,e,n)},"number"!=typeof c&&(e._rowReadObject=!0),e.oFeatures.bSort||(l.bSortable=!1,d.addClass(i.sSortableNone));var m=-1!==t.inArray("asc",l.asSorting),b=-1!==t.inArray("desc",l.asSorting);l.bSortable&&(m||b)?m&&!b?(l.sSortingClass=i.sSortableAsc,l.sSortingClassJUI=i.sSortJUIAscAllowed):!m&&b?(l.sSortingClass=i.sSortableDesc,l.sSortingClassJUI=i.sSortJUIDescAllowed):(l.sSortingClass=i.sSortable,l.sSortingClassJUI=i.sSortJUI):(l.sSortingClass=i.sSortableNone,l.sSortingClassJUI="")}function p(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;yt(t);for(var n=0,a=e.length;n=0;l--){p=n[l];var m=p.targets!==a?p.targets:p.aTargets;for(t.isArray(m)||(m=[m]),s=0,d=m.length;s=0){for(;h.length<=m[s];)c(e);o(m[s],p)}else if("number"==typeof m[s]&&m[s]<0)o(h.length+m[s],p);else if("string"==typeof m[s])for(u=0,f=h.length;ue&&t[o]--;-1!=r&&n===a&&t.splice(r,1)}function N(t,e,n,r){var o,l,i=t.aoData[e],s=function(n,a){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=w(t,e,a,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==i.src)){var d=i.anCells;if(d)if(r!==a)s(d[r],r);else for(o=0,l=d.length;o").appendTo(i)),n=0,a=c.length;ntr").attr("role","row"),t(i).find(">tr>th, >tr>td").addClass(u.sHeaderTH),t(s).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==s){var f=e.aoFooter[0];for(n=0,a=f.length;n=0;i--)e.aoColumns[i].bVisible||r||h[o].splice(i,1);m.push([])}for(o=0,l=h.length;o=e.fnRecordsDisplay()?0:d,e.iInitDisplayStart=-1);var f=e._iDisplayStart,p=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,pt(e,!1);else if(u){if(!e.bDestroying&&!$(e))return}else e.iDraw++;if(0!==c.length)for(var h=u?0:f,m=u?e.aoData.length:p,y=h;y",{class:i?l[0]:""}).append(t("",{valign:"top",colSpan:b(e),class:e.oClasses.sRowEmpty}).html(F))[0]}Et(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],A(e),f,p,c]),Et(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],A(e),f,p,c]);var S=t(e.nTBody);S.children().detach(),S.append(t(r)),Et(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}function H(t,e){var n=t.oFeatures,a=n.bSort,r=n.bFilter;a&&St(t),r?G(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,O(t),t._drawHold=!1}function M(e){var n=e.oClasses,a=t(e.nTable),r=t("
").insertBefore(a),o=e.oFeatures,l=t("
",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=r[0],e.nTableWrapper=l[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var i,s,d,u,c,f,p=e.sDom.split(""),h=0;h")[0],"'"==(u=p[h+1])||'"'==u){for(c="",f=2;p[h+f]!=u;)c+=p[h+f],f++;if("H"==c?c=n.sJUIHeader:"F"==c&&(c=n.sJUIFooter),-1!=c.indexOf(".")){var m=c.split(".");d.id=m[0].substr(1,m[0].length-1),d.className=m[1]}else"#"==c.charAt(0)?d.id=c.substr(1,c.length-1):d.className=c;h+=f}l.append(d),l=t(d)}else if(">"==s)l=l.parent();else if("l"==s&&o.bPaginate&&o.bLengthChange)i=dt(e);else if("f"==s&&o.bFilter)i=J(e);else if("r"==s&&o.bProcessing)i=ft(e);else if("t"==s)i=ht(e);else if("i"==s&&o.bInfo)i=at(e);else if("p"==s&&o.bPaginate)i=ut(e);else if(0!==Jt.ext.feature.length)for(var b=Jt.ext.feature,y=0,g=b.length;y',d=o.sSearch;d=d.match(/_INPUT_/)?d.replace("_INPUT_",s):d+s;var u=t("
",{id:i.f?null:r+"_filter",class:a.sFilter}).append(t("
").addClass(n.sLength);return e.aanFeatures.l||(c[0].id=a+"_length"),c.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",s[0].outerHTML)),t("select",c).val(e._iDisplayLength).on("change.DT",function(n){st(e,t(this).val()),O(e)}),t(e.nTable).on("length.dt.DT",function(n,a,r){e===a&&t("select",c).val(r)}),c[0]}function ut(e){var n=e.sPaginationType,a=Jt.ext.pager[n],r="function"==typeof a,o=function(t){O(t)},l=t("
").addClass(e.oClasses.sPaging+n)[0],i=e.aanFeatures;return r||a.fnInit(e,l,o),i.p||(l.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(r){var e,n,l=t._iDisplayStart,s=t._iDisplayLength,d=t.fnRecordsDisplay(),u=-1===s,c=u?0:Math.ceil(l/s),f=u?1:Math.ceil(d/s),p=a(c,f);for(e=0,n=i.p.length;eo&&(a=0):"first"==e?a=0:"previous"==e?(a=r>=0?a-r:0)<0&&(a=0):"next"==e?a+r",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function pt(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),Et(e,null,"processing",[e,n])}function ht(e){var n=t(e.nTable);n.attr("role","grid");var a=e.oScroll;if(""===a.sX&&""===a.sY)return e.nTable;var r=a.sX,o=a.sY,l=e.oClasses,i=n.children("caption"),s=i.length?i[0]._captionSide:null,d=t(n[0].cloneNode(!1)),u=t(n[0].cloneNode(!1)),c=n.children("tfoot"),f="
",p=function(t){return t?It(t):null};c.length||(c=null);var h=t(f,{class:l.sScrollWrapper}).append(t(f,{class:l.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?p(r):"100%"}).append(t(f,{class:l.sScrollHeadInner}).css({"box-sizing":"content-box",width:a.sXInner||"100%"}).append(d.removeAttr("id").css("margin-left",0).append("top"===s?i:null).append(n.children("thead"))))).append(t(f,{class:l.sScrollBody}).css({position:"relative",overflow:"auto",width:p(r)}).append(n));c&&h.append(t(f,{class:l.sScrollFoot}).css({overflow:"hidden",border:0,width:r?p(r):"100%"}).append(t(f,{class:l.sScrollFootInner}).append(u.removeAttr("id").css("margin-left",0).append("bottom"===s?i:null).append(n.children("tfoot")))));var m=h.children(),b=m[0],y=m[1],g=c?m[2]:null;return r&&t(y).on("scroll.DT",function(t){var e=this.scrollLeft;b.scrollLeft=e,c&&(g.scrollLeft=e)}),t(y).css(o&&a.bCollapse?"max-height":"height",o),e.nScrollHead=b,e.nScrollBody=y,e.nScrollFoot=g,e.aoDrawCallback.push({fn:mt,sName:"scrolling"}),h[0]}function mt(e){var n,r,o,l,i,s,d,u,c,f=e.oScroll,m=f.sX,b=f.sXInner,y=f.sY,g=f.iBarWidth,v=t(e.nScrollHead),x=v[0].style,I=v.children("div"),F=I[0].style,S=I.children("table"),w=e.nScrollBody,D=t(w),C=w.style,T=t(e.nScrollFoot),_=T.children("div"),A=_.children("table"),B=t(e.nTHead),k=t(e.nTable),N=k[0],L=N.style,P=e.nTFoot?t(e.nTFoot):null,R=e.oBrowser,j=R.bScrollOversize,E=ie(e.aoColumns,"nTh"),O=[],H=[],M=[],W=[],U=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},$=w.scrollHeight>w.clientHeight;if(e.scrollBarVis!==$&&e.scrollBarVis!==a)return e.scrollBarVis=$,void p(e);e.scrollBarVis=$,k.children("thead, tfoot").remove(),P&&(s=P.clone().prependTo(k),r=P.find("tr"),l=s.find("tr")),i=B.clone().prependTo(k),n=B.find("tr"),o=i.find("tr"),i.find("th, td").removeAttr("tabindex"),m||(C.width="100%",v[0].style.width="100%"),t.each(z(e,i),function(t,n){d=h(e,t),n.style.width=e.aoColumns[d].sWidth}),P&&bt(function(t){t.style.width=""},l),c=k.outerWidth(),""===m?(L.width="100%",j&&(k.find("tbody").height()>w.offsetHeight||"scroll"==D.css("overflow-y"))&&(L.width=It(k.outerWidth()-g)),c=k.outerWidth()):""!==b&&(L.width=It(b),c=k.outerWidth()),bt(U,o),bt(function(e){M.push(e.innerHTML),O.push(It(t(e).css("width")))},o),bt(function(e,n){-1!==t.inArray(e,E)&&(e.style.width=O[n])},n),t(o).height(0),P&&(bt(U,l),bt(function(e){W.push(e.innerHTML),H.push(It(t(e).css("width")))},l),bt(function(t,e){t.style.width=H[e]},r),t(l).height(0)),bt(function(t,e){t.innerHTML='
'+M[e]+"
",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=O[e]},o),P&&bt(function(t,e){t.innerHTML='
'+W[e]+"
",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=H[e]},l),k.outerWidth()w.offsetHeight||"scroll"==D.css("overflow-y")?c+g:c,j&&(w.scrollHeight>w.offsetHeight||"scroll"==D.css("overflow-y"))&&(L.width=It(u-g)),""!==m&&""===b||Nt(e,1,"Possible column misalignment",6)):u="100%",C.width=It(u),x.width=It(u),P&&(e.nScrollFoot.style.width=It(u)),y||j&&(C.height=It(N.offsetHeight+g));var X=k.outerWidth();S[0].style.width=It(X),F.width=It(X);var q=k.height()>w.clientHeight||"scroll"==D.css("overflow-y"),V="padding"+(R.bScrollbarLeft?"Left":"Right");F[V]=q?g+"px":"0px",P&&(A[0].style.width=It(X),_[0].style.width=It(X),_[0].style[V]=q?g+"px":"0px"),k.children("colgroup").insertBefore(k.children("thead")),D.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(w.scrollTop=0)}function bt(t,e,n){for(var a,r,o=0,l=0,i=e.length;l").appendTo(C.find("tbody"));for(C.find("thead, tfoot").remove(),C.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),C.find("tfoot th, tfoot td").css("width",""),g=z(n,C.find("thead")[0]),a=0;a").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(a=0;a").css(u||d?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(C).appendTo(x);u&&c?C.width(c):u?(C.css("width","auto"),C.removeAttr("width"),C.width()").css("width",It(e)).appendTo(a||n.body),o=r[0].offsetWidth;return r.remove(),o}function vt(e,n){var a=xt(e,n);if(a<0)return null;var r=e.aoData[a];return r.nTr?r.anCells[n]:t("").html(w(e,a,n,"display"))[0]}function xt(t,e){for(var n,a=-1,r=-1,o=0,l=t.aoData.length;oa&&(a=n.length,r=o);return r}function It(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Ft(e){var n,r,o,l,i,s,d,u=[],c=e.aoColumns,f=e.aaSortingFixed,p=t.isPlainObject(f),h=[],m=function(e){e.length&&!t.isArray(e[0])?h.push(e):t.merge(h,e)};for(t.isArray(f)&&m(f),p&&f.pre&&m(f.pre),m(e.aaSorting),p&&f.post&&m(f.post),n=0;na?1:0))return"asc"===d.dir?i:-i;return n=l[t],a=l[e],na?1:0}):u.sort(function(t,e){var n,a,r,d,u,c,f=o.length,p=s[t]._aSortData,h=s[e]._aSortData;for(r=0;ra?1:0})}t.bSorted=!0}function wt(t){for(var e,n,a=t.aoColumns,r=Ft(t),o=t.oLanguage.oAria,l=0,i=a.length;l/g,""),c=s.nTh;c.removeAttribute("aria-sort"),s.bSortable?(r.length>0&&r[0].col==l?(c.setAttribute("aria-sort","asc"==r[0].dir?"ascending":"descending"),n=d[r[0].index+1]||d[0]):n=d[0],e=u+("asc"===n?o.sSortAscending:o.sSortDescending)):e=u,c.setAttribute("aria-label",e)}}function Dt(e,n,r,o){var l,i=e.aoColumns[n],s=e.aaSorting,d=i.asSorting,u=function(e,n){var r=e._idx;return r===a&&(r=t.inArray(e[1],d)),r+10&&n.time<+new Date-1e3*d)return void r();if(n.columns&&i.length!==n.columns.length)return void r();if(e.oLoadedState=t.extend(!0,{},n),n.start!==a&&(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start),n.length!==a&&(e._iDisplayLength=n.length),n.order!==a&&(e.aaSorting=[],t.each(n.order,function(t,n){e.aaSorting.push(n[0]>=i.length?[0,n[1]]:n)})),n.search!==a&&t.extend(e.oPreviousSearch,nt(n.search)),n.columns)for(o=0,l=n.columns.length;o=n&&(e=n-a),e-=e%a,(-1===a||e<0)&&(e=0),t._iDisplayStart=e}function Ht(e,n){var a=e.renderer,r=Jt.ext.renderer[n];return t.isPlainObject(a)&&a[n]?r[a[n]]||r._:"string"==typeof a?r[a]||r._:r._}function Mt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Wt(t,e){var n=[],a=We.numbers_length,r=Math.floor(a/2);return e<=a?n=de(0,e):t<=r?(n=de(0,a-2),n.push("ellipsis"),n.push(e-1)):t>=e-1-r?(n=de(e-(a-2),e),n.splice(0,0,"ellipsis"),n.splice(0,0,0)):(n=de(t-r+2,t+r-1),n.push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function zt(e){t.each({num:function(t){return ze(t,e)},"num-fmt":function(t){return ze(t,e,te)},"html-num":function(t){return ze(t,e,Zt)},"html-num-fmt":function(t){return ze(t,e,Zt,te)}},function(t,n){$t.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&($t.type.search[t+e]=$t.type.search.html)})}function Ut(t){return function(){var e=[kt(this[Jt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Jt.ext.internal[t].apply(this,e)}}var $t,Xt,qt,Vt,Jt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new Xt(t?kt(this[$t.iApiIndex]):this)},this.fnAddData=function(e,n){var r=this.api(!0),o=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?r.rows.add(e):r.row.add(e);return(n===a||n)&&r.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],r=n.oScroll;t===a||t?e.draw(!1):""===r.sX&&""===r.sY||mt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===a||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var r=this.api(!0),o=r.rows(t),l=o.settings()[0],i=l.aoData[o[0][0]];return o.remove(),e&&e.call(this,l,i),(n===a||n)&&r.draw(),i},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,r,o,l){var i=this.api(!0);null===e||e===a?i.search(t,n,r,l):i.column(e).search(t,n,r,l),i.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==a){var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==a||"td"==r||"th"==r?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==a?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return e.row(t).index();if("TD"==n||"TH"==n){var a=e.cell(t).index();return[a.row,a.columnVisible,a.column]}return null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(e===a||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){var r=this.api(!0).column(t).visible(e);(n===a||n)&&r.columns.adjust().draw()},this.fnSettings=function(){return kt(this[$t.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,r,o){var l=this.api(!0);return n===a||null===n?l.row(e).data(t):l.cell(e,n).data(t),(o===a||o)&&l.columns.adjust(),(r===a||r)&&l.draw(),0},this.fnVersionCheck=$t.fnVersionCheck;var n=this,r=e===a,u=this.length;r&&(e={}),this.oApi=this.internal=$t.internal;for(var p in Jt.ext.internal)p&&(this[p]=Ut(p));return this.each(function(){var p,h={},m=u>1?Pt(h,e,!0):e,b=0,y=this.getAttribute("id"),g=!1,F=Jt.defaults,S=t(this);if("table"!=this.nodeName.toLowerCase())return void Nt(null,0,"Non-table node initialisation ("+this.nodeName+")",2);i(F),s(F.column),o(F,F,!0),o(F.column,F.column,!0),o(F,t.extend(m,S.data()));var w=Jt.settings;for(b=0,p=w.length;b").appendTo(S)),A.nTHead=r[0];var o=S.children("tbody");0===o.length&&(o=t("").appendTo(S)),A.nTBody=o[0];var l=S.children("tfoot");if(0===l.length&&n.length>0&&(""!==A.oScroll.sX||""!==A.oScroll.sY)&&(l=t("").appendTo(S)),0===l.length||0===l.children().length?S.addClass(B.sNoFooter):l.length>0&&(A.nTFoot=l[0],W(A.aoFooter,A.nTFoot)),m.aaData)for(b=0;b/g,Yt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Qt=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),te=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,ee=function(t){return!t||!0===t||"-"===t},ne=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},ae=function(t,e){return Gt[e]||(Gt[e]=new RegExp(ye(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Gt[e],"."):t},re=function(t,e,n){var a="string"==typeof t;return!!ee(t)||(e&&a&&(t=ae(t,e)),n&&a&&(t=t.replace(te,"")),!isNaN(parseFloat(t))&&isFinite(t))},oe=function(t){return ee(t)||"string"==typeof t},le=function(t,e,n){return!!ee(t)||(oe(t)?!!re(ce(t),e,n)||null:null)},ie=function(t,e,n){var r=[],o=0,l=t.length;if(n!==a)for(;o")[0],ve=ge.textContent!==a,xe=/<.*?>/g,Ie=Jt.util.throttle,Fe=[],Se=Array.prototype,we=function(e){var n,a,r=Jt.settings,o=t.map(r,function(t,e){return t.nTable});return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?(n=t.inArray(e,o),-1!==n?[r[n]]:null):e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?a=t(e):e instanceof t&&(a=e),a?a.map(function(e){return n=t.inArray(this,o),-1!==n?r[n]:null}).toArray():void 0):[]};Xt=function(e,n){if(!(this instanceof Xt))return new Xt(e,n);var a=[],r=function(t){var e=we(t);e&&(a=a.concat(e))};if(t.isArray(e))for(var o=0,l=e.length;ot?new Xt(e[t],this[t]):null},filter:function(t){var e=[];if(Se.filter)e=Se.filter.call(this,t,this);else for(var n=0,a=this.length;n0)return t[0].json}),qt("ajax.params()",function(){var t=this.context;if(t.length>0)return t[0].oAjaxData}),qt("ajax.reload()",function(t,e){return this.iterator("table",function(n){Ce(n,!1===e,t)})}),qt("ajax.url()",function(e){var n=this.context;return e===a?0===n.length?a:(n=n[0],n.ajax?t.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource):this.iterator("table",function(n){t.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e})}),qt("ajax.url().load()",function(t,e){return this.iterator("table",function(n){Ce(n,!1===e,t)})});var Te=function(e,n,r,o,l){var i,s,d,u,c,f,p=[],h=typeof n;for(n&&"string"!==h&&"function"!==h&&n.length!==a||(n=[n]),d=0,u=n.length;d0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Be=function(e,n){var a,r,o,l=[],i=e.aiDisplay,s=e.aiDisplayMaster,d=n.search,u=n.order,c=n.page;if("ssp"==Mt(e))return"removed"===d?[]:de(0,s.length);if("current"==c)for(a=e._iDisplayStart,r=e.fnDisplayEnd();a=0&&"applied"==d)&&l.push(a);return l},ke=function(e,n,r){var o;return Te("row",n,function(n){var l=ne(n),i=e.aoData;if(null!==l&&!r)return[l];if(o||(o=Be(e,r)),null!==l&&-1!==t.inArray(l,o))return[l];if(null===n||n===a||""===n)return o;if("function"==typeof n)return t.map(o,function(t){var e=i[t];return n(t,e._aData,e.nTr)?t:null});if(n.nodeName){var s=n._DT_RowIndex,d=n._DT_CellIndex;if(s!==a)return i[s]&&i[s].nTr===n?[s]:[];if(d)return i[d.row]&&i[d.row].nTr===n?[d.row]:[];var u=t(n).closest("*[data-dt-row]");return u.length?[u.data("dt-row")]:[]}if("string"==typeof n&&"#"===n.charAt(0)){var c=e.aIds[n.replace(/^#/,"")];if(c!==a)return[c.idx]}var f=ue(se(e.aoData,o,"nTr"));return t(f).filter(n).map(function(){return this._DT_RowIndex}).toArray()},e,r)};qt("rows()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=_e(n);var r=this.iterator("table",function(t){return ke(t,e,n)},1);return r.selector.rows=e,r.selector.opts=n,r}),qt("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||a},1)}),qt("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return se(t.aoData,e,"_aData")},1)}),Vt("rows().cache()","row().cache()",function(t){return this.iterator("row",function(e,n){var a=e.aoData[n];return"search"===t?a._aFilterData:a._aSortData},1)}),Vt("rows().invalidate()","row().invalidate()",function(t){return this.iterator("row",function(e,n){N(e,n,t)})}),Vt("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),Vt("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,a=0,r=n.length;a0&&e._iRecordsDisplay--,Ot(e);var p=e.rowIdFn(f._aData);p!==a&&delete e.aIds[p]}),this.iterator("table",function(t){for(var e=0,n=t.aoData.length;e").addClass(a);t("td",s).addClass(a).html(n)[0].colSpan=b(e),o.push(s[0])}};l(a,r),n._details&&n._details.detach(),n._details=t(o),n._detailsShow&&n._details.insertAfter(n.nTr)},Le=function(t,e){var n=t.context;if(n.length){var r=n[0].aoData[e!==a?e:t[0]];r&&r._details&&(r._details.remove(),r._detailsShow=a,r._details=a)}},Pe=function(t,e){var n=t.context;if(n.length&&t.length){var a=n[0].aoData[t[0]];a._details&&(a._detailsShow=e,e?a._details.insertAfter(a.nTr):a._details.detach(),Re(n[0]))}},Re=function(t){var e=new Xt(t),n=t.aoData;e.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),ie(n,"_details").length>0&&(e.on("draw.dt.DT_details",function(a,r){t===r&&e.rows({page:"current"}).eq(0).each(function(t){var e=n[t];e._detailsShow&&e._details.insertAfter(e.nTr)})}),e.on("column-visibility.dt.DT_details",function(e,a,r,o){if(t===a)for(var l,i=b(a),s=0,d=n.length;s=0?i:r.length+i];if("function"==typeof n){var s=Be(e,a);return t.map(r,function(t,a){return n(a,Ee(e,a,0,0,s),l[a])?a:null})}var d="string"==typeof n?n.match(je):"";if(d)switch(d[2]){case"visIdx":case"visible":var u=parseInt(d[1],10);if(u<0){var c=t.map(r,function(t,e){return t.bVisible?e:null});return[c[c.length+u]]}return[h(e,u)];case"name":return t.map(o,function(t,e){return t===d[1]?e:null});default:return[]}if(n.nodeName&&n._DT_CellIndex)return[n._DT_CellIndex.column];var f=t(l).filter(n).map(function(){return t.inArray(this,l)}).toArray();if(f.length||!n.nodeName)return f;var p=t(n).closest("*[data-dt-column]");return p.length?[p.data("dt-column")]:[]},e,a)},He=function(e,n,r){var o,l,i,s,d=e.aoColumns,u=d[n],c=e.aoData;if(r===a)return u.bVisible;if(u.bVisible!==r){if(r){var f=t.inArray(!0,ie(d,"bVisible"),n+1);for(l=0,i=c.length;ln;return!0},Jt.isDataTable=Jt.fnIsDataTable=function(e){var n=t(e).get(0),a=!1;return e instanceof Jt.Api||(t.each(Jt.settings,function(e,r){var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,l=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==n&&o!==n&&l!==n||(a=!0)}),a)},Jt.tables=Jt.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var a=t.map(Jt.settings,function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable});return n?new Xt(a):a},Jt.camelToHungarian=o,qt("$()",function(e,n){var a=this.rows(n).nodes(),r=t(a);return t([].concat(r.filter(e).toArray(),r.find(e).toArray()))}),t.each(["on","one","off"],function(e,n){qt(n+"()",function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" ");var a=t(this.tables().nodes());return a[n].apply(a,e),this})}),qt("clear()",function(){return this.iterator("table",function(t){B(t)})}),qt("settings()",function(){return new Xt(this.context,this.context)}),qt("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),qt("data()",function(){return this.iterator("table",function(t){return ie(t.aoData,"_aData")}).flatten()}),qt("destroy()",function(n){return n=n||!1,this.iterator("table",function(a){var r,o=a.nTableWrapper.parentNode,l=a.oClasses,i=a.nTable,s=a.nTBody,d=a.nTHead,u=a.nTFoot,c=t(i),f=t(s),p=t(a.nTableWrapper),h=t.map(a.aoData,function(t){return t.nTr});a.bDestroying=!0,Et(a,"aoDestroyCallback","destroy",[a]),n||new Xt(a).columns().visible(!0),p.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+a.sInstance),i!=d.parentNode&&(c.children("thead").detach(),c.append(d)),u&&i!=u.parentNode&&(c.children("tfoot").detach(),c.append(u)),a.aaSorting=[],a.aaSortingFixed=[],Tt(a),t(h).removeClass(a.asStripeClasses.join(" ")),t("th, td",d).removeClass(l.sSortable+" "+l.sSortableAsc+" "+l.sSortableDesc+" "+l.sSortableNone),f.children().detach(),f.append(h);var m=n?"remove":"detach";c[m](),p[m](),!n&&o&&(o.insertBefore(i,a.nTableReinsertBefore),c.css("width",a.sDestroyWidth).removeClass(l.sTable),(r=a.asDestroyStripes.length)&&f.children().each(function(e){t(this).addClass(a.asDestroyStripes[e%r])}));var b=t.inArray(a,Jt.settings);-1!==b&&Jt.settings.splice(b,1)})}),t.each(["column","row","cell"],function(t,e){qt(e+"s().every()",function(t){var n=this.selector.opts,r=this;return this.iterator(e,function(o,l,i,s,d){t.call(r[e](l,"cell"===e?i:n,"cell"===e?n:a),l,i,s,d)})})}),qt("i18n()",function(e,n,r){var o=this.context[0],l=T(e)(o.oLanguage);return l===a&&(l=n),r!==a&&t.isPlainObject(l)&&(l=l[r]!==a?l[r]:l._),l.replace("%d",r)}),Jt.version="1.10.19",Jt.settings=[],Jt.models={},Jt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Jt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Jt.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},Jt.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(t){return t.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(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},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:t.extend({},Jt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(Jt.defaults),Jt.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},r(Jt.defaults.column),Jt.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:a,oAjaxData:a,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"==Mt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Mt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,a=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+a:Math.min(e+t,this._iRecordsDisplay):!o||n>a||-1===t?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Jt.ext=$t={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:Jt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Jt.version},t.extend($t,{afnFiltering:$t.search,aTypes:$t.type.detect,ofnSearch:$t.type.search,oSort:$t.type.order,afnSortData:$t.order,aoFeatures:$t.feature,oApi:$t.internal,oStdClasses:$t.classes,oPagination:$t.pager}),t.extend(Jt.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 We=Jt.ext.pager;t.extend(We,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Wt(t,e)]},simple_numbers:function(t,e){return["previous",Wt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Wt(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Wt(t,e),"last"]},_numbers:Wt,numbers_length:7}),t.extend(!0,Jt.ext.renderer,{pageButton:{_:function(e,r,o,l,i,s){var d,u,c,f=e.oClasses,p=e.oLanguage.oPaginate,h=e.oLanguage.oAria.paginate||{},m=0,b=function(n,a){var r,l,c,y,g=function(t){ct(e,t.data.action,!0)};for(r=0,l=a.length;r").appendTo(n);b(v,y)}else{switch(d=null,u="",y){case"ellipsis":n.append('');break;case"first":d=p.sFirst,u=y+(i>0?"":" "+f.sPageButtonDisabled);break;case"previous":d=p.sPrevious,u=y+(i>0?"":" "+f.sPageButtonDisabled);break;case"next":d=p.sNext,u=y+(i",{class:f.sPageButton+" "+u,"aria-controls":e.sTableId,"aria-label":h[y],"data-dt-idx":m,tabindex:e.iTabIndex,id:0===o&&"string"==typeof y?e.sTableId+"_"+y:null}).html(d).appendTo(n),Rt(c,{action:y},g),m++)}};try{c=t(r).find(n.activeElement).data("dt-idx")}catch(t){}b(t(r).empty(),l),c!==a&&t(r).find("[data-dt-idx="+c+"]").focus()}}}),t.extend(Jt.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return re(t,n)?"num"+n:null},function(t,e){if(t&&!(t instanceof Date)&&!Yt.test(t))return null;var n=Date.parse(t);return null!==n&&!isNaN(n)||ee(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return re(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return le(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return le(t,n,!0)?"html-num-fmt"+n:null},function(t,e){return ee(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(Jt.ext.type.search,{html:function(t){return ee(t)?t:"string"==typeof t?t.replace(Kt," ").replace(Zt,""):""},string:function(t){return ee(t)?t:"string"==typeof t?t.replace(Kt," "):t}});var ze=function(t,e,n,a){return 0===t||t&&"-"!==t?(e&&(t=ae(t,e)),t.replace&&(n&&(t=t.replace(n,"")),a&&(t=t.replace(a,""))),1*t):-1/0};t.extend($t.type.order,{"date-pre":function(t){var e=Date.parse(t);return isNaN(e)?-1/0:e},"html-pre":function(t){return ee(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return ee(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return te?1:0},"string-desc":function(t,e){return te?-1:0}}),zt(""),t.extend(!0,Jt.ext.renderer,{header:{_:function(e,n,a,r){t(e.nTable).on("order.dt.DT",function(t,o,l,i){if(e===o){var s=a.idx;n.removeClass(a.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[s]?r.sSortAsc:"desc"==i[s]?r.sSortDesc:a.sSortingClass)}})},jqueryui:function(e,n,a,r){t("
").addClass(r.sSortJUIWrapper).append(n.contents()).append(t("").addClass(r.sSortIcon+" "+a.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",function(t,o,l,i){if(e===o){var s=a.idx;n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==i[s]?r.sSortAsc:"desc"==i[s]?r.sSortDesc:a.sSortingClass),n.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==i[s]?r.sSortJUIAsc:"desc"==i[s]?r.sSortJUIDesc:a.sSortingClassJUI)}})}}});var Ue=function(t){return"string"==typeof t?t.replace(//g,">").replace(/"/g,"""):t};return Jt.render={number:function(t,e,n,a,r){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var l=o<0?"-":"",i=parseFloat(o);if(isNaN(i))return Ue(o);i=i.toFixed(n),o=Math.abs(i);var s=parseInt(o,10),d=n?e+(o-s).toFixed(n).substring(2):"";return l+(a||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+d+(r||"")}}},text:function(){return{display:Ue,filter:Ue}}},t.extend(Jt.ext.internal,{_fnExternApiFunc:Ut,_fnBuildAjax:U,_fnAjaxUpdate:$,_fnAjaxParameters:X,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:V,_fnAddColumn:c,_fnColumnOptions:f,_fnAdjustColumnSizing:p,_fnVisibleToColumnIndex:h,_fnColumnIndexToVisible:m,_fnVisbleColumns:b,_fnGetColumns:y,_fnColumnTypes:g,_fnApplyColumnDefs:v,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:l,_fnBrowserDetect:d,_fnAddData:x,_fnAddTr:I,_fnNodeToDataIndex:F,_fnNodeToColumnIndex:S,_fnGetCellData:w,_fnSetCellData:D,_fnSplitObjNotation:C,_fnGetObjectDataFn:T,_fnSetObjectDataFn:_,_fnGetDataMaster:A,_fnClearTable:B,_fnDeleteIndex:k,_fnInvalidate:N,_fnGetRowElements:L,_fnCreateTr:P,_fnBuildHead:j,_fnDrawHead:E,_fnDraw:O,_fnReDraw:H,_fnAddOptionsHtml:M,_fnDetectHeader:W,_fnGetUniqueThs:z,_fnFeatureHtmlFilter:J,_fnFilterComplete:G,_fnFilterCustom:K,_fnFilterColumn:Z,_fnFilter:Y,_fnFilterCreateSearch:Q,_fnEscapeRegex:ye,_fnFilterData:tt,_fnFeatureHtmlInfo:at,_fnUpdateInfo:rt,_fnInfoMacros:ot,_fnInitialise:lt,_fnInitComplete:it,_fnLengthChange:st,_fnFeatureHtmlLength:dt,_fnFeatureHtmlPaginate:ut,_fnPageChange:ct,_fnFeatureHtmlProcessing:ft,_fnProcessingDisplay:pt,_fnFeatureHtmlTable:ht,_fnScrollDraw:mt,_fnApplyToChildren:bt,_fnCalculateColumnWidths:yt,_fnThrottle:Ie,_fnConvertToWidth:gt,_fnGetWidestNode:vt,_fnGetMaxLenString:xt,_fnStringToCss:It,_fnSortFlatten:Ft,_fnSort:St,_fnSortAria:wt,_fnSortListener:Dt,_fnSortAttachListener:Ct,_fnSortingClasses:Tt,_fnSortData:_t,_fnSaveState:At,_fnLoadState:Bt,_fnSettingsFromNode:kt,_fnLog:Nt,_fnMap:Lt,_fnBindAction:Rt,_fnCallbackReg:jt,_fnCallbackFire:Et,_fnLengthOverflow:Ot,_fnRenderer:Ht,_fnDataSource:Mt,_fnRowAttributes:R,_fnExtend:Pt,_fnCalculateEnd:function(){}}),t.fn.dataTable=Jt,Jt.$=t,t.fn.dataTableSettings=Jt.settings,t.fn.dataTableExt=Jt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(Jt,function(e,n){t.fn.DataTable[e]=n}),t.fn.dataTable}),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,a){"use strict";var r=t.fn.dataTable,o=0,l=0,i=r.ext.buttons,s=function(e,n){void 0===n&&(n={}),!0===n&&(n={}),t.isArray(n)&&(n={buttons:n}),this.c=t.extend(!0,{},s.defaults,n),n.buttons&&(this.c.buttons=n.buttons),this.s={dt:new r.Api(e),buttons:[],listenKeys:"",namespace:"dtb"+o++},this.dom={container:t("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};t.extend(s.prototype,{action:function(t,e){var n=this._nodeToButton(t);return e===a?n.conf.action:(n.conf.action=e,this)},active:function(e,n){var r=this._nodeToButton(e),o=this.c.dom.button.active,l=t(r.node);return n===a?l.hasClass(o):(l.toggleClass(o,n===a||n),this)},add:function(t,e){var n=this.s.buttons;if("string"==typeof e){for(var a=e.split("-"),r=this.s,o=0,l=a.length-1;o=0;o--)this.remove(n.buttons[o].node);n.conf.destroy&&n.conf.destroy.call(r.button(e),r,t(e),n.conf),this._removeKey(n.conf),t(n.node).remove();var l=t.inArray(n,a);return a.splice(l,1),this},text:function(e,n){var r=this._nodeToButton(e),o=this.c.dom.collection.buttonLiner,l=r.inCollection&&o&&o.tag?o.tag:this.c.dom.buttonLiner.tag,i=this.s.dt,s=t(r.node),d=function(t){return"function"==typeof t?t(i,s,r.conf):t};return n===a?d(r.conf.text):(r.conf.text=n,l?s.children(l).html(d(n)):s.html(d(n)),this)},_constructor:function(){var e=this,a=this.s.dt,r=a.settings()[0],o=this.c.buttons;r._buttons||(r._buttons=[]),r._buttons.push({inst:this,name:this.c.name});for(var l=0,i=o.length;l").addClass(p.className).attr("role","menu"),f.conf._collection=f.collection,this._expandButton(f.buttons,f.conf.buttons,!0,o)}c.init&&c.init.call(l.button(f.node),l,t(f.node),c),i++}}}},_buildButton:function(e,n){var a=this.c.dom.button,r=this.c.dom.buttonLiner,o=this.c.dom.collection,i=this.s.dt,s=function(t){return"function"==typeof t?t(i,c,e):t};if(n&&o.button&&(a=o.button),n&&o.buttonLiner&&(r=o.buttonLiner),e.available&&!e.available(i,e))return!1;var d=function(e,n,a,r){r.action.call(n.button(a),e,n,a,r),t(n.table().node()).triggerHandler("buttons-action.dt",[n.button(a),n,a,r])},u=e.tag||a.tag,c=t("<"+u+"/>").addClass(a.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(t){t.preventDefault(),!c.hasClass(a.disabled)&&e.action&&d(t,i,c,e),c.blur()}).on("keyup.dtb",function(t){13===t.keyCode&&!c.hasClass(a.disabled)&&e.action&&d(t,i,c,e)});if("a"===u.toLowerCase()&&c.attr("href","#"),"button"===u.toLowerCase()&&c.attr("type","button"),r.tag){var f=t("<"+r.tag+"/>").html(s(e.text)).addClass(r.className);"a"===r.tag.toLowerCase()&&f.attr("href","#"),c.append(f)}else c.html(s(e.text));!1===e.enabled&&c.addClass(a.disabled),e.className&&c.addClass(e.className),e.titleAttr&&c.attr("title",s(e.titleAttr)),e.attr&&c.attr(e.attr),e.namespace||(e.namespace=".dt-button-"+l++);var p,h=this.c.dom.buttonContainer;return p=h&&h.tag?t("<"+h.tag+"/>").addClass(h.className).append(c):c,this._addKey(e),{conf:e,node:c.get(0),inserter:p,buttons:[],inCollection:n,collection:null}},_nodeToButton:function(t,e){e||(e=this.s.buttons);for(var n=0,a=e.length;n30)throw"Buttons: Too many iterations"}return t.isArray(n)?n:t.extend({},n)};for(e=l(e);e&&e.extend;){if(!i[e.extend])throw"Cannot extend unknown button type: "+e.extend;var s=l(i[e.extend]);if(t.isArray(s))return s;if(!s)return!1;var d=s.className;e=t.extend({},s,e),d&&e.className!==d&&(e.className=d+" "+e.className);var u=e.postfixButtons;if(u){for(e.buttons||(e.buttons=[]),n=0,r=u.length;n").addClass(n).css("display","none").appendTo("body").fadeIn(r):t("body > div."+n).fadeOut(r,function(){t(this).removeClass(n).remove()})},s.instanceSelector=function(e,n){if(!e)return t.map(n,function(t){return t.inst});var a=[],r=t.map(n,function(t){return t.name}),o=function(e){if(t.isArray(e))for(var l=0,i=e.length;lx||l.dropup)&&l._collection.css("top",u.top-l._collection.outerHeight()-5);var I=u.left+l._collection.outerWidth(),F=c.offset().left+c.width();I>F&&l._collection.css("left",u.left-(I-F));var S=i.offset().left+l._collection.outerWidth();S>t(e).width()&&l._collection.css("left",u.left-(S-t(e).width()))}else{var w=l._collection.height()/2;w>t(e).height()/2&&(w=t(e).height()/2),l._collection.css("marginTop",-1*w)}l.background&&s.background(!0,l.backgroundClassName,l.fade);var D=function(){l._collection.fadeOut(l.fade,function(){l._collection.detach()}),t("div.dt-button-background").off("click.dtb-collection"),s.background(!1,l.backgroundClassName,l.fade),t("body").off(".dtb-collection"),r.off("buttons-action.b-internal")};setTimeout(function(){t("div.dt-button-background").on("click.dtb-collection",function(){}),t("body").on("click.dtb-collection",function(e){var n=t.fn.addBack?"addBack":"andSelf";t(e.target).parents()[n]().filter(l._collection).length||D()}).on("keyup.dtb-collection",function(t){27===t.keyCode&&D()}),l.autoClose&&r.on("buttons-action.b-internal",function(){D()})},10)},background:!0,collectionLayout:"",backgroundClassName:"dt-button-background",autoClose:!1,fade:400,attr:{"aria-haspopup":!0}},copy:function(t,e){return i.copyHtml5?"copyHtml5":i.copyFlash&&i.copyFlash.available(t,e)?"copyFlash":void 0},csv:function(t,e){return i.csvHtml5&&i.csvHtml5.available(t,e)?"csvHtml5":i.csvFlash&&i.csvFlash.available(t,e)?"csvFlash":void 0},excel:function(t,e){return i.excelHtml5&&i.excelHtml5.available(t,e)?"excelHtml5":i.excelFlash&&i.excelFlash.available(t,e)?"excelFlash":void 0},pdf:function(t,e){return i.pdfHtml5&&i.pdfHtml5.available(t,e)?"pdfHtml5":i.pdfFlash&&i.pdfFlash.available(t,e)?"pdfFlash":void 0},pageLength:function(e){var n=e.settings()[0].aLengthMenu,a=t.isArray(n[0])?n[0]:n,r=t.isArray(n[0])?n[1]:n,o=function(t){return t.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},t.page.len())};return{extend:"collection",text:o,className:"buttons-page-length",autoClose:!0,buttons:t.map(a,function(t,e){return{text:r[e],className:"button-page-length",action:function(e,n){n.page.len(t).draw()},init:function(e,n,a){var r=this,o=function(){r.active(e.page.len()===t)};e.on("length.dt"+a.namespace,o),o()},destroy:function(t,e,n){t.off("length.dt"+n.namespace)}}}),init:function(t,e,n){var a=this;t.on("length.dt"+n.namespace,function(){a.text(o(t))})},destroy:function(t,e,n){t.off("length.dt"+n.namespace)}}}}),r.Api.register("buttons()",function(t,e){e===a&&(e=t,t=a),this.selector.buttonGroup=t;var n=this.iterator(!0,"table",function(n){if(n._buttons)return s.buttonSelector(s.instanceSelector(t,n._buttons),e)},!0);return n._groupSelector=t,n}),r.Api.register("button()",function(t,e){var n=this.buttons(t,e) ;return n.length>1&&n.splice(1,n.length),n}),r.Api.registerPlural("buttons().active()","button().active()",function(t){return t===a?this.map(function(t){return t.inst.active(t.node)}):this.each(function(e){e.inst.active(e.node,t)})}),r.Api.registerPlural("buttons().action()","button().action()",function(t){return t===a?this.map(function(t){return t.inst.action(t.node)}):this.each(function(e){e.inst.action(e.node,t)})}),r.Api.register(["buttons().enable()","button().enable()"],function(t){return this.each(function(e){e.inst.enable(e.node,t)})}),r.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(t){t.inst.disable(t.node)})}),r.Api.registerPlural("buttons().nodes()","button().node()",function(){var e=t();return t(this.each(function(t){e=e.add(t.inst.node(t.node))})),e}),r.Api.registerPlural("buttons().processing()","button().processing()",function(t){return t===a?this.map(function(t){return t.inst.processing(t.node)}):this.each(function(e){e.inst.processing(e.node,t)})}),r.Api.registerPlural("buttons().text()","button().text()",function(t){return t===a?this.map(function(t){return t.inst.text(t.node)}):this.each(function(e){e.inst.text(e.node,t)})}),r.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(t){t.inst.node(t.node).trigger("click")})}),r.Api.registerPlural("buttons().containers()","buttons().container()",function(){var e=t(),n=this._groupSelector;return this.iterator(!0,"table",function(t){if(t._buttons)for(var a=s.instanceSelector(n,t._buttons),r=0,o=a.length;r"+e+"":"",t('
').html(e).append(t("
")["string"==typeof n?"html":"append"](n)).css("display","none").appendTo("body").fadeIn(),r!==a&&0!==r&&(d=setTimeout(function(){o.buttons.info(!1)},r)),this)}),r.Api.register("buttons.exportData()",function(t){if(this.context.length)return m(new r.Api(this.context[0]),t)}),r.Api.register("buttons.exportInfo()",function(t){return t||(t={}),{filename:u(t),title:f(t),messageTop:p(this,t.message||t.messageTop,"top"),messageBottom:p(this,t.messageBottom,"bottom")}});var u=function(e){var n="*"===e.filename&&"*"!==e.title&&e.title!==a&&null!==e.title&&""!==e.title?e.title:e.filename;if("function"==typeof n&&(n=n()),n===a||null===n)return null;-1!==n.indexOf("*")&&(n=t.trim(n.replace("*",t("head > title").text()))),n=n.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");var r=c(e.extension);return r||(r=""),n+r},c=function(t){return null===t||t===a?null:"function"==typeof t?t():t},f=function(e){var n=c(e.title);return null===n?null:-1!==n.indexOf("*")?n.replace("*",t("head > title").text()||"Exported data"):n},p=function(e,n,a){var r=c(n);if(null===r)return null;var o=t("caption",e.table().container()).eq(0);if("*"===r){return o.css("caption-side")!==a?null:o.length?o.text():""}return r},h=t("