/*! DataTables 1.13.4 * ©2008-2023 SpryMedia Ltd - datatables.net/license */ import jQuery from"jquery";let $=jQuery;var _ext,_api_register,_api_registerPlural,DataTable=function(e,S){if(DataTable.factory(e,S))return DataTable;if(this instanceof DataTable)return $(e).DataTable(S);S=e,this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new _Api(e?_fnSettingsFromNode(this[_ext.iApiIndex]):this)},this.fnAddData=function(e,t){var n=this.api(!0),e=(Array.isArray(e)&&(Array.isArray(e[0])||$.isPlainObject(e[0]))?n.rows:n.row).add(e);return void 0!==t&&!t||n.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],a=n.oScroll;void 0===e||e?t.draw(!1):""===a.sX&&""===a.sY||_fnScrollDraw(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();void 0!==e&&!e||t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var a=this.api(!0),e=a.rows(e),r=e.settings()[0],i=r.aoData[e[0][0]];return e.remove(),t&&t.call(this,r,i),void 0!==n&&!n||a.draw(),i},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,a,r,i){var o=this.api(!0);(null==t?o:o.column(t)).search(e,n,a,i),o.draw()},this.fnGetData=function(e,t){var n,a=this.api(!0);return void 0!==e?(n=e.nodeName?e.nodeName.toLowerCase():"",void 0!==t||"td"==n||"th"==n?a.cell(e,t).data():a.row(e).data()||null):a.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return void 0!==e?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(n=t.cell(e).index()).row,n.columnVisible,n.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){e=this.api(!0).page(e);void 0!==t&&!t||e.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t);void 0!==n&&!n||e.columns.adjust().draw()},this.fnSettings=function(){return _fnSettingsFromNode(this[_ext.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,a,r){var i=this.api(!0);return(null==n?i.row(t):i.cell(t,n)).data(e),void 0!==r&&!r||i.columns.adjust(),void 0!==a&&!a||i.draw(),0},this.fnVersionCheck=_ext.fnVersionCheck;var t,v=this,C=void 0===S,y=this.length;for(t in C&&(S={}),this.oApi=this.internal=_ext.internal,DataTable.ext.internal)t&&(this[t]=_fnExternApiFunc(t));return this.each(function(){var r=1").appendTo(l)),_.nTHead=n[0],l.children("tbody")),n=(0===a.length&&(a=$("").insertAfter(n)),_.nTBody=a[0],l.children("tfoot"));if(0===(n=0===n.length&&0").appendTo(l):n).length||0===n.children().length?l.addClass(h.sNoFooter):0/g,_re_date=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,_re_escape_regex=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),_re_formatted_numeric=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,_empty=function(e){return!e||!0===e||"-"===e},_intVal=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},_numToDecimal=function(e,t){return _re_dic[t]||(_re_dic[t]=new RegExp(_fnEscapeRegex(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(_re_dic[t],"."):e},_isNumber=function(e,t,n){var a=typeof e,r="string"==a;return"number"==a||"bigint"==a||(!!_empty(e)||(t&&r&&(e=_numToDecimal(e,t)),n&&r&&(e=e.replace(_re_formatted_numeric,"")),!isNaN(parseFloat(e))&&isFinite(e)))},_isHtml=function(e){return _empty(e)||"string"==typeof e},_htmlNumeric=function(e,t,n){return!!_empty(e)||(_isHtml(e)&&!!_isNumber(_stripHtml(e),t,n)||null)},_pluck=function(e,t,n){var a=[],r=0,i=e.length;if(void 0!==n)for(;r").css({position:"fixed",top:0,left:-1*$(window).scrollLeft(),height:1,width:1,overflow:"hidden"}).append($("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append($("
").css({width:"100%",height:10}))).appendTo("body")).children()).children(),t.barWidth=a[0].offsetWidth-a[0].clientWidth,t.bScrollOversize=100===r[0].offsetWidth&&100!==a[0].clientWidth,t.bScrollbarLeft=1!==Math.round(r.offset().left),t.bBounding=!!n[0].getBoundingClientRect().width,n.remove()),$.extend(e.oBrowser,DataTable.__browser),e.oScroll.iBarWidth=DataTable.__browser.barWidth}function _fnReduce(e,t,n,a,r,i){var o,l=a,s=!1;for(void 0!==n&&(o=n,s=!0);l!==r;)e.hasOwnProperty(l)&&(o=s?t(o,e[l],l,e):e[l],s=!0,l+=i);return o}function _fnAddColumn(e,t){var n=DataTable.defaults.column,a=e.aoColumns.length,n=$.extend({},DataTable.models.oColumn,n,{nTh:t||document.createElement("th"),sTitle:n.sTitle||(t?t.innerHTML:""),aDataSort:n.aDataSort||[a],mData:n.mData||a,idx:a}),n=(e.aoColumns.push(n),e.aoPreSearchCols);n[a]=$.extend({},DataTable.models.oSearch,n[a]),_fnColumnOptions(e,a,$(t).data())}function _fnColumnOptions(e,t,n){function a(e){return"string"==typeof e&&-1!==e.indexOf("@")}var t=e.aoColumns[t],r=e.oClasses,i=$(t.nTh),o=(t.sWidthOrig||(t.sWidthOrig=i.attr("width")||null,(u=(i.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(t.sWidthOrig=u[1])),null!=n&&(_fnCompatCols(n),_fnCamelToHungarian(DataTable.defaults.column,n,!0),void 0===n.mDataProp||n.mData||(n.mData=n.mDataProp),n.sType&&(t._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&i.addClass(n.sClass),u=t.sClass,$.extend(t,n),_fnMap(t,n,"sWidth","sWidthOrig"),u!==t.sClass&&(t.sClass=u+" "+t.sClass),void 0!==n.iDataSort&&(t.aDataSort=[n.iDataSort]),_fnMap(t,n,"aDataSort")),t.mData),l=_fnGetObjectDataFn(o),s=t.mRender?_fnGetObjectDataFn(t.mRender):null,u=(t._bAttrSrc=$.isPlainObject(o)&&(a(o.sort)||a(o.type)||a(o.filter)),t._setter=null,t.fnGetData=function(e,t,n){var a=l(e,t,void 0,n);return s&&t?s(a,t,e,n):a},t.fnSetData=function(e,t,n){return _fnSetObjectDataFn(o)(e,t,n)},"number"==typeof o||t._isArrayHost||(e._rowReadObject=!0),e.oFeatures.bSort||(t.bSortable=!1,i.addClass(r.sSortableNone)),-1!==$.inArray("asc",t.asSorting)),n=-1!==$.inArray("desc",t.asSorting);t.bSortable&&(u||n)?u&&!n?(t.sSortingClass=r.sSortableAsc,t.sSortingClassJUI=r.sSortJUIAscAllowed):!u&&n?(t.sSortingClass=r.sSortableDesc,t.sSortingClassJUI=r.sSortJUIDescAllowed):(t.sSortingClass=r.sSortable,t.sSortingClassJUI=r.sSortJUI):(t.sSortingClass=r.sSortableNone,t.sSortingClassJUI="")}function _fnAdjustColumnSizing(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;_fnCalculateColumnWidths(e);for(var n=0,a=t.length;nt&&e[r]--;-1!=a&&void 0===n&&e.splice(a,1)}function _fnInvalidate(n,a,e,t){function r(e,t){for(;e.childNodes.length;)e.removeChild(e.firstChild);e.innerHTML=_fnGetCellData(n,a,t,"display")}var i,o,l=n.aoData[a];if("dom"!==e&&(e&&"auto"!==e||"dom"!==l.src)){var s=l.anCells;if(s)if(void 0!==t)r(s[t],t);else for(i=0,o=s.length;i").appendTo(r)),c=0,f=s.length;c",{class:o?i[0]:""}).append($("",{valign:"top",colSpan:_fnVisbleColumns(e),class:e.oClasses.sRowEmpty}).html(t))[0]}_fnCallbackFire(e,"aoHeaderCallback","header",[$(e.nTHead).children("tr")[0],_fnGetDataMaster(e),u,c,s]),_fnCallbackFire(e,"aoFooterCallback","footer",[$(e.nTFoot).children("tr")[0],_fnGetDataMaster(e),u,c,s]);l=$(e.nTBody);l.children().detach(),l.append($(a)),_fnCallbackFire(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function _fnReDraw(e,t){var n=e.oFeatures,a=n.bSort,n=n.bFilter;a&&_fnSort(e),n?_fnFilterComplete(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,_fnDraw(e),e._drawHold=!1}function _fnAddOptionsHtml(e){for(var t,n,a,r,i,o,l,s=e.oClasses,u=$(e.nTable),u=$("
").insertBefore(u),c=e.oFeatures,f=$("
",{id:e.sTableId+"_wrapper",class:s.sWrapper+(e.nTFoot?"":" "+s.sNoFooter)}),d=(e.nHolding=u[0],e.nTableWrapper=f[0],e.nTableReinsertBefore=e.nTable.nextSibling,e.sDom.split("")),_=0;_")[0],"'"==(r=d[_+1])||'"'==r){for(i="",o=2;d[_+o]!=r;)i+=d[_+o],o++;"H"==i?i=s.sJUIHeader:"F"==i&&(i=s.sJUIFooter),-1!=i.indexOf(".")?(l=i.split("."),a.id=l[0].substr(1,l[0].length-1),a.className=l[1]):"#"==i.charAt(0)?a.id=i.substr(1,i.length-1):a.className=i,_+=o}f.append(a),f=$(a)}else if(">"==n)f=f.parent();else if("l"==n&&c.bPaginate&&c.bLengthChange)t=_fnFeatureHtmlLength(e);else if("f"==n&&c.bFilter)t=_fnFeatureHtmlFilter(e);else if("r"==n&&c.bProcessing)t=_fnFeatureHtmlProcessing(e);else if("t"==n)t=_fnFeatureHtmlTable(e);else if("i"==n&&c.bInfo)t=_fnFeatureHtmlInfo(e);else if("p"==n&&c.bPaginate)t=_fnFeatureHtmlPaginate(e);else if(0!==DataTable.ext.feature.length)for(var h=DataTable.ext.feature,p=0,g=h.length;p=e.fnRecordsDisplay()?0:n,e.iInitDisplayStart=-1)}function _fnBuildAjax(r,e,n){function t(e){var t=r.jqXHR?r.jqXHR.status:null;(null===e||"number"==typeof t&&204==t)&&_fnAjaxDataSrc(r,e={},[]),(t=e.error||e.sError)&&_fnLog(r,0,t),r.json=e,_fnCallbackFire(r,null,"xhr",[r,e,r.jqXHR]),n(e)}_fnCallbackFire(r,"aoServerParams","serverParams",[e]),e&&Array.isArray(e)&&(a={},i=/(.*?)\[\]$/,$.each(e,function(e,t){var n=t.name.match(i);n?(n=n[0],a[n]||(a[n]=[]),a[n].push(t.value)):a[t.name]=t.value}),e=a);var a,i,o,l=r.ajax,s=r.oInstance,u=($.isPlainObject(l)&&l.data&&(u="function"==typeof(o=l.data)?o(e,r):o,e="function"==typeof o&&u?u:$.extend(!0,e,u),delete l.data),{data:e,success:t,dataType:"json",cache:!1,type:r.sServerMethod,error:function(e,t,n){var a=_fnCallbackFire(r,null,"xhr",[r,null,r.jqXHR]);-1===$.inArray(!0,a)&&("parsererror"==t?_fnLog(r,0,"Invalid JSON response",1):4===e.readyState&&_fnLog(r,0,"Ajax error",7)),_fnProcessingDisplay(r,!1)}});r.oAjaxData=e,_fnCallbackFire(r,null,"preXhr",[r,e]),r.fnServerData?r.fnServerData.call(s,r.sAjaxSource,$.map(e,function(e,t){return{name:t,value:e}}),t,r):r.sAjaxSource||"string"==typeof l?r.jqXHR=$.ajax($.extend(u,{url:l||r.sAjaxSource})):"function"==typeof l?r.jqXHR=l.call(s,e,t,r):(r.jqXHR=$.ajax($.extend(u,l)),l.data=o)}function _fnAjaxUpdate(t){t.iDraw++,_fnProcessingDisplay(t,!0),_fnBuildAjax(t,_fnAjaxParameters(t),function(e){_fnAjaxUpdateDraw(t,e)})}function _fnAjaxParameters(e){function n(e,t){c.push({name:e,value:t})}for(var t,a,r,i=e.aoColumns,o=i.length,l=e.oFeatures,s=e.oPreviousSearch,u=e.aoPreSearchCols,c=[],f=_fnSortFlatten(e),d=e._iDisplayStart,_=!1!==l.bPaginate?e._iDisplayLength:-1,h=(n("sEcho",e.iDraw),n("iColumns",o),n("sColumns",_pluck(i,"sName").join(",")),n("iDisplayStart",d),n("iDisplayLength",_),{draw:e.iDraw,columns:[],order:[],start:d,length:_,search:{value:s.sSearch,regex:s.bRegex}}),p=0;p',s=(s=r.sSearch).match(/_INPUT_/)?s.replace("_INPUT_",l):s+l,l=$("
",{id:o.f?null:a+"_filter",class:e.sFilter}).append($("
").addClass(e.sLength);return a.aanFeatures.l||(c[0].id=t+"_length"),c.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),$("select",c).val(a._iDisplayLength).on("change.DT",function(e){_fnLengthChange(a,$(this).val()),_fnDraw(a)}),$(a.nTable).on("length.dt.DT",function(e,t,n){a===t&&$("select",c).val(n)}),c[0]}function _fnFeatureHtmlPaginate(e){function c(e){_fnDraw(e)}var t=e.sPaginationType,f=DataTable.ext.pager[t],d="function"==typeof f,t=$("
").addClass(e.oClasses.sPaging+t)[0],_=e.aanFeatures;return d||f.fnInit(e,t,c),_.p||(t.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(e){if(d)for(var t=e._iDisplayStart,n=e._iDisplayLength,a=e.fnRecordsDisplay(),r=-1===n,i=r?0:Math.ceil(t/n),o=r?1:Math.ceil(a/n),l=f(i,o),s=0,u=_.p.length;s",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing,role:"status"}).html(e.oLanguage.sProcessing).append("
").insertBefore(e.nTable)[0]}function _fnProcessingDisplay(e,t){e.oFeatures.bProcessing&&$(e.aanFeatures.r).css("display",t?"block":"none"),_fnCallbackFire(e,null,"processing",[e,t])}function _fnFeatureHtmlTable(e){var t,n,a,r,i,o,l,s,u,c,f,d,_=$(e.nTable),h=e.oScroll;return""===h.sX&&""===h.sY?e.nTable:(t=h.sX,n=h.sY,a=e.oClasses,i=(r=_.children("caption")).length?r[0]._captionSide:null,s=$(_[0].cloneNode(!1)),o=$(_[0].cloneNode(!1)),f="
",u=function(e){return e?_fnStringToCss(e):null},(l=_.children("tfoot")).length||(l=null),s=$(f,{class:a.sScrollWrapper}).append($(f,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:t?u(t):"100%"}).append($(f,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:h.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===i?r:null).append(_.children("thead"))))).append($(f,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:u(t)}).append(_)),l&&s.append($(f,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:t?u(t):"100%"}).append($(f,{class:a.sScrollFootInner}).append(o.removeAttr("id").css("margin-left",0).append("bottom"===i?r:null).append(_.children("tfoot"))))),u=s.children(),c=u[0],f=u[1],d=l?u[2]:null,t&&$(f).on("scroll.DT",function(e){var t=this.scrollLeft;c.scrollLeft=t,l&&(d.scrollLeft=t)}),$(f).css("max-height",n),h.bCollapse||$(f).css("height",n),e.nScrollHead=c,e.nScrollBody=f,e.nScrollFoot=d,e.aoDrawCallback.push({fn:_fnScrollDraw,sName:"scrolling"}),s[0])}function _fnScrollDraw(n){function e(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var t,a,r,i,o,l=n.oScroll,s=l.sX,u=l.sXInner,c=l.sY,l=l.iBarWidth,f=$(n.nScrollHead),d=f[0].style,_=f.children("div"),h=_[0].style,_=_.children("table"),p=n.nScrollBody,g=$(p),b=p.style,m=$(n.nScrollFoot).children("div"),D=m.children("table"),S=$(n.nTHead),v=$(n.nTable),C=v[0],y=C.style,T=n.nTFoot?$(n.nTFoot):null,w=n.oBrowser,x=w.bScrollOversize,A=(_pluck(n.aoColumns,"nTh"),[]),F=[],I=[],P=[],L=p.scrollHeight>p.clientHeight;n.scrollBarVis!==L&&void 0!==n.scrollBarVis?(n.scrollBarVis=L,_fnAdjustColumnSizing(n)):(n.scrollBarVis=L,v.children("thead, tfoot").remove(),T&&(L=T.clone().prependTo(v),o=T.find("tr"),a=L.find("tr"),L.find("[id]").removeAttr("id")),L=S.clone().prependTo(v),S=S.find("tr"),t=L.find("tr"),L.find("th, td").removeAttr("tabindex"),L.find("[id]").removeAttr("id"),s||(b.width="100%",f[0].style.width="100%"),$.each(_fnGetUniqueThs(n,L),function(e,t){r=_fnVisibleToColumnIndex(n,e),t.style.width=n.aoColumns[r].sWidth}),T&&_fnApplyToChildren(function(e){e.style.width=""},a),f=v.outerWidth(),""===s?(y.width="100%",x&&(v.find("tbody").height()>p.offsetHeight||"scroll"==g.css("overflow-y"))&&(y.width=_fnStringToCss(v.outerWidth()-l)),f=v.outerWidth()):""!==u&&(y.width=_fnStringToCss(u),f=v.outerWidth()),_fnApplyToChildren(e,t),_fnApplyToChildren(function(e){var t=window.getComputedStyle?window.getComputedStyle(e).width:_fnStringToCss($(e).width());I.push(e.innerHTML),A.push(t)},t),_fnApplyToChildren(function(e,t){e.style.width=A[t]},S),$(t).css("height",0),T&&(_fnApplyToChildren(e,a),_fnApplyToChildren(function(e){P.push(e.innerHTML),F.push(_fnStringToCss($(e).css("width")))},a),_fnApplyToChildren(function(e,t){e.style.width=F[t]},o),$(a).height(0)),_fnApplyToChildren(function(e,t){e.innerHTML='
'+I[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},t),T&&_fnApplyToChildren(function(e,t){e.innerHTML='
'+P[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=F[t]},a),Math.round(v.outerWidth())p.offsetHeight||"scroll"==g.css("overflow-y")?f+l:f,x&&(p.scrollHeight>p.offsetHeight||"scroll"==g.css("overflow-y"))&&(y.width=_fnStringToCss(i-l)),""!==s&&""===u||_fnLog(n,1,"Possible column misalignment",6)):i="100%",b.width=_fnStringToCss(i),d.width=_fnStringToCss(i),T&&(n.nScrollFoot.style.width=_fnStringToCss(i)),c||x&&(b.height=_fnStringToCss(C.offsetHeight+l)),L=v.outerWidth(),_[0].style.width=_fnStringToCss(L),h.width=_fnStringToCss(L),S=v.height()>p.clientHeight||"scroll"==g.css("overflow-y"),h[o="padding"+(w.bScrollbarLeft?"Left":"Right")]=S?l+"px":"0px",T&&(D[0].style.width=_fnStringToCss(L),m[0].style.width=_fnStringToCss(L),m[0].style[o]=S?l+"px":"0px"),v.children("colgroup").insertBefore(v.children("thead")),g.trigger("scroll"),!n.bSorted&&!n.bFiltered||n._drawHold||(p.scrollTop=0))}function _fnApplyToChildren(e,t,n){for(var a,r,i=0,o=0,l=t.length;o/g;function _fnCalculateColumnWidths(e){var t,n,a=e.nTable,r=e.aoColumns,i=e.oScroll,o=i.sY,l=i.sX,i=i.sXInner,s=r.length,u=_fnGetColumns(e,"bVisible"),c=$("th",e.nTHead),f=a.getAttribute("width"),d=a.parentNode,_=!1,h=e.oBrowser,p=h.bScrollOversize,g=a.style.width;for(g&&-1!==g.indexOf("%")&&(f=g),v=0;v").appendTo(g.find("tbody")));for(g.find("thead, tfoot").remove(),g.append($(e.nTHead).clone()).append($(e.nTFoot).clone()),g.find("tfoot th, tfoot td").css("width",""),c=_fnGetUniqueThs(e,g.find("thead")[0]),v=0;v").css({width:t.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(e.aoData.length)for(v=0;v").css(l||o?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(g).appendTo(d),S=(l&&i?g.width(i):l?(g.css("width","auto"),g.removeAttr("width"),g.width()").css("width",_fnStringToCss(e)).appendTo(t||document.body))[0].offsetWidth,e.remove(),t):0}function _fnGetWidestNode(e,t){var n,a=_fnGetMaxLenString(e,t);return a<0?null:(n=e.aoData[a]).nTr?n.anCells[t]:$("").html(_fnGetCellData(e,a,t,"display"))[0]}function _fnGetMaxLenString(e,t){for(var n,a=-1,r=-1,i=0,o=e.aoData.length;ia&&(a=n.length,r=i);return r}function _fnStringToCss(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function _fnSortFlatten(e){function t(e){e.length&&!Array.isArray(e[0])?_.push(e):$.merge(_,e)}var n,a,r,i,o,l,s,u=[],c=e.aoColumns,f=e.aaSortingFixed,d=$.isPlainObject(f),_=[];for(Array.isArray(f)&&t(f),d&&f.pre&&t(f.pre),t(e.aaSorting),d&&f.post&&t(f.post),n=0;n<_.length;n++)for(r=(i=c[s=_[n][a=0]].aDataSort).length;a/g,""),u=o.nTh;u.removeAttribute("aria-sort"),o=o.bSortable?s+("asc"===(0=i.length?[0,t[1]]:t)})),void 0!==e.search&&$.extend(n.oPreviousSearch,_fnSearchToHung(e.search)),e.columns){for(a=0,r=e.columns.length;ae?new _Api(t[e],this[e]):null},filter:function(e){var t=[];if(__arrayProto.filter)t=__arrayProto.filter.call(this,e,this);else for(var n=0,a=this.length;n").addClass(t),$("td",n).addClass(t).html(e)[0].colSpan=_fnVisbleColumns(i),l.push(n[0]))}var l=[];o(t,n),e._details&&e._details.detach(),e._details=$(l),e._detailsShow&&e._details.insertAfter(e.nTr)}),__details_state=DataTable.util.throttle(function(e){_fnSaveState(e[0])},500),__details_remove=function(e,t){var n=e.context;n.length&&(t=n[0].aoData[void 0!==t?t:e[0]])&&t._details&&(t._details.remove(),t._detailsShow=void 0,t._details=void 0,$(t.nTr).removeClass("dt-hasChild"),__details_state(n))},__details_display=function(e,t){var n,a=e.context;a.length&&e.length&&((n=a[0].aoData[e[0]])._details&&((n._detailsShow=t)?(n._details.insertAfter(n.nTr),$(n.nTr).addClass("dt-hasChild")):(n._details.detach(),$(n.nTr).removeClass("dt-hasChild")),_fnCallbackFire(a[0],null,"childRow",[t,e.row(e[0])]),__details_events(a[0]),__details_state(a)))},__details_events=function(s){var r=new _Api(s),e=".dt.DT_details",t="draw"+e,n="column-sizing"+e,e="destroy"+e,u=s.aoData;r.off(t+" "+n+" "+e),0<_pluck(u,"_details").length&&(r.on(t,function(e,t){s===t&&r.rows({page:"current"}).eq(0).each(function(e){e=u[e];e._detailsShow&&e._details.insertAfter(e.nTr)})}),r.on(n,function(e,t,n,a){if(s===t)for(var r,i=_fnVisbleColumns(t),o=0,l=u.length;o").appendTo(e);h(u,a)}else{switch(p=null,g=a,r=c.iTabIndex,a){case"ellipsis":e.append('');break;case"first":p=m.sFirst,0===d&&(r=-1,g+=" "+o);break;case"previous":p=m.sPrevious,0===d&&(r=-1,g+=" "+o);break;case"next":p=m.sNext,0!==_&&d!==_-1||(r=-1,g+=" "+o);break;case"last":p=m.sLast,0!==_&&d!==_-1||(r=-1,g+=" "+o);break;default:p=c.fnFormatNumber(a+1),g=d===a?b.sPageButtonActive:""}null!==p&&(u=c.oInit.pagingTag||"a",i=-1!==g.indexOf(o),_fnBindAction($("<"+u+">",{class:b.sPageButton+" "+g,"aria-controls":c.sTableId,"aria-disabled":i?"true":null,"aria-label":D[a],"aria-role":"link","aria-current":g===b.sPageButtonActive?"page":null,"data-dt-idx":a,tabindex:r,id:0===f&&"string"==typeof a?c.sTableId+"_"+a:null}).html(p).appendTo(e),{action:a},n))}}var p,g,n,b=c.oClasses,m=c.oLanguage.oPaginate,D=c.oLanguage.oAria.paginate||{};try{n=$(e).find(document.activeElement).data("dt-idx")}catch(e){}h($(e).empty(),t),void 0!==n&&$(e).find("[data-dt-idx="+n+"]").trigger("focus")}}}),$.extend(DataTable.ext.type.detect,[function(e,t){t=t.oLanguage.sDecimal;return _isNumber(e,t)?"num"+t:null},function(e,t){var n;return(!e||e instanceof Date||_re_date.test(e))&&(null!==(n=Date.parse(e))&&!isNaN(n)||_empty(e))?"date":null},function(e,t){t=t.oLanguage.sDecimal;return _isNumber(e,t,!0)?"num-fmt"+t:null},function(e,t){t=t.oLanguage.sDecimal;return _htmlNumeric(e,t)?"html-num"+t:null},function(e,t){t=t.oLanguage.sDecimal;return _htmlNumeric(e,t,!0)?"html-num-fmt"+t:null},function(e,t){return _empty(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),$.extend(DataTable.ext.type.search,{html:function(e){return _empty(e)?e:"string"==typeof e?e.replace(_re_new_lines," ").replace(_re_html,""):""},string:function(e){return!_empty(e)&&"string"==typeof e?e.replace(_re_new_lines," "):e}});var __numericReplace=function(e,t,n,a){var r;return 0===e||e&&"-"!==e?"number"==(r=typeof e)||"bigint"==r?e:((e=t?_numToDecimal(e,t):e).replace&&(n&&(e=e.replace(n,"")),a&&(e=e.replace(a,""))),+e):-1/0};function _addNumericSort(n){$.each({num:function(e){return __numericReplace(e,n)},"num-fmt":function(e){return __numericReplace(e,n,_re_formatted_numeric)},"html-num":function(e){return __numericReplace(e,n,_re_html)},"html-num-fmt":function(e){return __numericReplace(e,n,_re_html,_re_formatted_numeric)}},function(e,t){_ext.type.order[e+n+"-pre"]=t,e.match(/^html\-/)&&(_ext.type.search[e+n]=_ext.type.search.html)})}$.extend(_ext.type.order,{"date-pre":function(e){e=Date.parse(e);return isNaN(e)?-1/0:e},"html-pre":function(e){return _empty(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return _empty(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e").addClass(l.sSortJUIWrapper).append(i.contents()).append($("").addClass(l.sSortIcon+" "+o.sSortingClassJUI)).appendTo(i),$(r.nTable).on("order.dt.DT",function(e,t,n,a){r===t&&(t=o.idx,i.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==a[t]?l.sSortAsc:"desc"==a[t]?l.sSortDesc:o.sSortingClass),i.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==a[t]?l.sSortJUIAsc:"desc"==a[t]?l.sSortJUIDesc:o.sSortingClassJUI))})}}});var __htmlEscapeEntities=function(e){return"string"==typeof(e=Array.isArray(e)?e.join(","):e)?e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):e};function __mld(e,t,n,a,r){return window.moment?e[t](r):window.luxon?e[n](r):a?e[a](r):e}var __mlWarning=!1;function __mldObj(e,t,n){var a;if(window.moment){if(!(a=window.moment.utc(e,t,n,!0)).isValid())return null}else if(window.luxon){if(!(a=t&&"string"==typeof e?window.luxon.DateTime.fromFormat(e,t):window.luxon.DateTime.fromISO(e)).isValid)return null;a.setLocale(n)}else t?(__mlWarning||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),__mlWarning=!0):a=new Date(e);return a}function __mlHelper(s){return function(a,r,i,o){0===arguments.length?(i="en",a=r=null):1===arguments.length?(i="en",r=a,a=null):2===arguments.length&&(i=r,r=a,a=null);var l="datetime-"+r;return DataTable.ext.type.order[l]||(DataTable.ext.type.detect.unshift(function(e){return e===l&&l}),DataTable.ext.type.order[l+"-asc"]=function(e,t){e=e.valueOf(),t=t.valueOf();return e===t?0:e