/*!
   SpryMedia Ltd.

 This source file is free software, available under the following license:
   MIT license - http://datatables.net/license/mit

 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
 Responsive 2.3.0
 2014-2022 SpryMedia Ltd - datatables.net/license
*/
var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,o=0;o<i;o++){var r=e[o];if(t.call(n,r,o,e))return{i:o,v:r}}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.ISOLATE_POLYFILLS=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(e,t){var n=$jscomp.propertyToPolyfillSymbol[t];return null==n?e[t]:void 0!==(n=e[n])?n:e[t]};$jscomp.polyfill=function(e,t,n,i){t&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,t,n,i):$jscomp.polyfillUnisolated(e,t,n,i))},$jscomp.polyfillUnisolated=function(e,t,n,i){for(n=$jscomp.global,e=e.split("."),i=0;i<e.length-1;i++){var o=e[i];if(!(o in n))return;n=n[o]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:t})},$jscomp.polyfillIsolated=function(e,t,n,i){var o=e.split(".");e=1===o.length,i=o[0],i=!e&&i in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var r=0;r<o.length-1;r++){var s=o[r];if(!(s in i))return;i=i[s]}o=o[o.length-1],null!=(t=t(n=$jscomp.IS_SYMBOL_NATIVE&&"es6"===n?i[o]:null))&&(e?$jscomp.defineProperty($jscomp.polyfills,o,{configurable:!0,writable:!0,value:t}):t!==n&&($jscomp.propertyToPolyfillSymbol[o]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(o):$jscomp.POLYFILL_PREFIX+o,o=$jscomp.propertyToPolyfillSymbol[o],$jscomp.defineProperty(i,o,{configurable:!0,writable:!0,value:t})))},$jscomp.polyfill("Array.prototype.find",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}}),"es6","es3"),function(e){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(t){return e(t,window,document)})):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n&&n.fn.dataTable||(n=require("datatables.net")(t,n).$),e(n,t,t.document)}:e(jQuery,window,document)}((function(e,t,n,i){function o(e,t,n){var o=t+"-"+n;if(l[o]){e=e.cell(t,n).node(),t=[];for(var r=0,s=(n=l[o][0].parentNode.childNodes).length;r<s;r++)t.push(n[r]);for(n=0,r=t.length;n<r;n++)e.appendChild(t[n]);l[o]=i}}var r=e.fn.dataTable,s=function(t,n){if(!r.versionCheck||!r.versionCheck("1.10.10"))throw"DataTables Responsive requires DataTables 1.10.10 or newer";this.s={dt:new r.Api(t),columns:[],current:[]},this.s.dt.settings()[0].responsive||(n&&"string"==typeof n.details?n.details={type:n.details}:n&&!1===n.details?n.details={type:!1}:n&&!0===n.details&&(n.details={type:"inline"}),this.c=e.extend(!0,{},s.defaults,r.defaults.responsive,n),t.responsive=this,this._constructor())};e.extend(s.prototype,{_constructor:function(){var n=this,i=this.s.dt,o=i.settings()[0],s=e(t).innerWidth();i.settings()[0]._responsive=this,e(t).on("resize.dtr orientationchange.dtr",r.util.throttle((function(){var i=e(t).innerWidth();i!==s&&(n._resize(),s=i)}))),o.oApi._fnCallbackReg(o,"aoRowCreatedCallback",(function(t,o,r){-1!==e.inArray(!1,n.s.current)&&e(">td, >th",t).each((function(t){t=i.column.index("toData",t),!1===n.s.current[t]&&e(this).css("display","none")}))})),i.on("destroy.dtr",(function(){i.off(".dtr"),e(i.table().body()).off(".dtr"),e(t).off("resize.dtr orientationchange.dtr"),i.cells(".dtr-control").nodes().to$().removeClass("dtr-control"),e.each(n.s.current,(function(e,t){!1===t&&n._setColumnVis(e,!0)}))})),this.c.breakpoints.sort((function(e,t){return e.width<t.width?1:e.width>t.width?-1:0})),this._classLogic(),this._resizeAuto(),!1!==(o=this.c.details).type&&(n._detailsInit(),i.on("column-visibility.dtr",(function(){n._timer&&clearTimeout(n._timer),n._timer=setTimeout((function(){n._timer=null,n._classLogic(),n._resizeAuto(),n._resize(!0),n._redrawChildren()}),100)})),i.on("draw.dtr",(function(){n._redrawChildren()})),e(i.table().node()).addClass("dtr-"+o.type)),i.on("column-reorder.dtr",(function(e,t,i){n._classLogic(),n._resizeAuto(),n._resize(!0)})),i.on("column-sizing.dtr",(function(){n._resizeAuto(),n._resize()})),i.on("column-calc.dt",(function(e,t){e=n.s.current;for(var i=0;i<e.length;i++){var o=t.visible.indexOf(i);!1===e[i]&&0<=o&&t.visible.splice(o,1)}})),i.on("preXhr.dtr",(function(){var e=[];i.rows().every((function(){this.child.isShown()&&e.push(this.id(!0))})),i.one("draw.dtr",(function(){n._resizeAuto(),n._resize(),i.rows(e).every((function(){n._detailsDisplay(this,!1)}))}))})),i.on("draw.dtr",(function(){n._controlClass()})).on("init.dtr",(function(t,o,r){"dt"===t.namespace&&(n._resizeAuto(),n._resize(),e.inArray(!1,n.s.current)&&i.columns.adjust())})),this._resize()},_columnsVisiblity:function(t){var n,i=this.s.dt,o=this.s.columns,r=o.map((function(e,t){return{columnIdx:t,priority:e.priority}})).sort((function(e,t){return e.priority!==t.priority?e.priority-t.priority:e.columnIdx-t.columnIdx})),s=e.map(o,(function(n,o){return!1===i.column(o).visible()?"not-visible":(!n.auto||null!==n.minWidth)&&(!0===n.auto?"-":-1!==e.inArray(t,n.includeIn))})),l=0,a=0;for(n=s.length;a<n;a++)!0===s[a]&&(l+=o[a].minWidth);for(a=(a=i.settings()[0].oScroll).sY||a.sX?a.iBarWidth:0,l=i.table().container().offsetWidth-a-l,a=0,n=s.length;a<n;a++)o[a].control&&(l-=o[a].minWidth);var d=!1;for(a=0,n=r.length;a<n;a++){var c=r[a].columnIdx;"-"===s[c]&&!o[c].control&&o[c].minWidth&&(d||0>l-o[c].minWidth?(d=!0,s[c]=!1):s[c]=!0,l-=o[c].minWidth)}for(r=!1,a=0,n=o.length;a<n;a++)if(!o[a].control&&!o[a].never&&!1===s[a]){r=!0;break}for(a=0,n=o.length;a<n;a++)o[a].control&&(s[a]=r),"not-visible"===s[a]&&(s[a]=!1);return-1===e.inArray(!0,s)&&(s[0]=!0),s},_classLogic:function(){var t=this,n=this.c.breakpoints,o=this.s.dt,r=o.columns().eq(0).map((function(e){var t=this.column(e),n=t.header().className;return e=o.settings()[0].aoColumns[e].responsivePriority,t=t.header().getAttribute("data-priority"),e===i&&(e=t===i||null===t?1e4:1*t),{className:n,includeIn:[],auto:!1,control:!1,never:!!n.match(/\b(dtr\-)?never\b/),priority:e}})),s=function(t,n){t=r[t].includeIn,-1===e.inArray(n,t)&&t.push(n)},l=function(e,i,o,l){if(o){if("max-"===o)for(l=t._find(i).width,i=0,o=n.length;i<o;i++)n[i].width<=l&&s(e,n[i].name);else if("min-"===o)for(l=t._find(i).width,i=0,o=n.length;i<o;i++)n[i].width>=l&&s(e,n[i].name);else if("not-"===o)for(i=0,o=n.length;i<o;i++)-1===n[i].name.indexOf(l)&&s(e,n[i].name)}else r[e].includeIn.push(i)};r.each((function(t,i){for(var o=t.className.split(" "),r=!1,s=0,a=o.length;s<a;s++){var d=o[s].trim();if("all"===d||"dtr-all"===d)return r=!0,void(t.includeIn=e.map(n,(function(e){return e.name})));if("none"===d||"dtr-none"===d||t.never)return void(r=!0);if("control"===d||"dtr-control"===d)return r=!0,void(t.control=!0);e.each(n,(function(e,t){e=t.name.split("-");var n=d.match(new RegExp("(min\\-|max\\-|not\\-)?("+e[0]+")(\\-[_a-zA-Z0-9])?"));n&&(r=!0,n[2]===e[0]&&n[3]==="-"+e[1]?l(i,t.name,n[1],n[2]+n[3]):n[2]!==e[0]||n[3]||l(i,t.name,n[1],n[2]))}))}r||(t.auto=!0)})),this.s.columns=r},_controlClass:function(){if("inline"===this.c.details.type){var t=this.s.dt,n=e.inArray(!0,this.s.current);t.cells(null,(function(e){return e!==n}),{page:"current"}).nodes().to$().filter(".dtr-control").removeClass("dtr-control"),t.cells(null,n,{page:"current"}).nodes().to$().addClass("dtr-control")}},_detailsDisplay:function(t,n){var i=this,o=this.s.dt,r=this.c.details;if(r&&!1!==r.type){var l="string"==typeof r.renderer?s.renderer[r.renderer]():r.renderer;!0!==(r=r.display(t,n,(function(){return l(o,t[0],i._detailsObj(t[0]))})))&&!1!==r||e(o.table().node()).triggerHandler("responsive-display.dt",[o,t,r,n])}},_detailsInit:function(){var t=this,n=this.s.dt,o=this.c.details;"inline"===o.type&&(o.target="td.dtr-control, th.dtr-control"),n.on("draw.dtr",(function(){t._tabIndexes()})),t._tabIndexes(),e(n.table().body()).on("keyup.dtr","td, th",(function(t){13===t.keyCode&&e(this).data("dtr-keyboard")&&e(this).click()}));var r=o.target;o="string"==typeof r?r:"td, th",r===i&&null===r||e(n.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",o,(function(i){if(e(n.table().node()).hasClass("collapsed")&&-1!==e.inArray(e(this).closest("tr").get(0),n.rows().nodes().toArray())){if("number"==typeof r){var o=0>r?n.columns().eq(0).length+r:r;if(n.cell(this).index().column!==o)return}o=n.row(e(this).closest("tr")),"click"===i.type?t._detailsDisplay(o,!1):"mousedown"===i.type?e(this).css("outline","none"):"mouseup"===i.type&&e(this).trigger("blur").css("outline","")}}))},_detailsObj:function(t){var n=this,i=this.s.dt;return e.map(this.s.columns,(function(o,r){if(!o.never&&!o.control)return{className:(o=i.settings()[0].aoColumns[r]).sClass,columnIndex:r,data:i.cell(t,r).render(n.c.orthogonal),hidden:i.column(r).visible()&&!n.s.current[r],rowIndex:t,title:null!==o.sTitle?o.sTitle:e(i.column(r).header()).text()}}))},_find:function(e){for(var t=this.c.breakpoints,n=0,i=t.length;n<i;n++)if(t[n].name===e)return t[n]},_redrawChildren:function(){var e=this,t=this.s.dt;t.rows({page:"current"}).iterator("row",(function(n,i){t.row(i),e._detailsDisplay(t.row(i),!0)}))},_resize:function(n){var i,o=this,r=this.s.dt,s=e(t).innerWidth(),l=this.c.breakpoints,a=l[0].name,d=this.s.columns,c=this.s.current.slice();for(i=l.length-1;0<=i;i--)if(s<=l[i].width){a=l[i].name;break}var u=this._columnsVisiblity(a);for(this.s.current=u,l=!1,i=0,s=d.length;i<s;i++)if(!1===u[i]&&!d[i].never&&!d[i].control&&!1==!r.column(i).visible()){l=!0;break}e(r.table().node()).toggleClass("collapsed",l);var p=!1,f=0;r.columns().eq(0).each((function(e,t){!0===u[t]&&f++,(n||u[t]!==c[t])&&(p=!0,o._setColumnVis(e,u[t]))})),p&&(this._redrawChildren(),e(r.table().node()).trigger("responsive-resize.dt",[r,this.s.current]),0===r.page.info().recordsDisplay&&e("td",r.table().body()).eq(0).attr("colspan",f)),o._controlClass()},_resizeAuto:function(){var t=this.s.dt,n=this.s.columns;if(this.c.auto&&-1!==e.inArray(!0,e.map(n,(function(e){return e.auto})))){e.isEmptyObject(l)||e.each(l,(function(e){e=e.split("-"),o(t,1*e[0],1*e[1])})),t.table().node();var i=t.table().node().cloneNode(!1),r=e(t.table().header().cloneNode(!1)).appendTo(i),s=e(t.table().body()).clone(!1,!1).empty().appendTo(i);i.style.width="auto";var a=t.columns().header().filter((function(e){return t.column(e).visible()})).to$().clone(!1).css("display","table-cell").css("width","auto").css("min-width",0);if(e(s).append(e(t.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display",""),s=t.table().footer()){s=e(s.cloneNode(!1)).appendTo(i);var d=t.columns().footer().filter((function(e){return t.column(e).visible()})).to$().clone(!1).css("display","table-cell");e("<tr/>").append(d).appendTo(s)}e("<tr/>").append(a).appendTo(r),"inline"===this.c.details.type&&e(i).addClass("dtr-inline collapsed"),e(i).find("[name]").removeAttr("name"),e(i).css("position","relative"),(i=e("<div/>").css({width:1,height:1,overflow:"hidden",clear:"both"}).append(i)).insertBefore(t.table().node()),a.each((function(e){e=t.column.index("fromVisible",e),n[e].minWidth=this.offsetWidth||0})),i.remove()}},_responsiveOnlyHidden:function(){var t=this.s.dt;return e.map(this.s.current,(function(e,n){return!1===t.column(n).visible()||e}))},_setColumnVis:function(t,n){var i=this.s.dt,r=n?"":"none";e(i.column(t).header()).css("display",r).toggleClass("dtr-hidden",!n),e(i.column(t).footer()).css("display",r).toggleClass("dtr-hidden",!n),i.column(t).nodes().to$().css("display",r).toggleClass("dtr-hidden",!n),e.isEmptyObject(l)||i.cells(null,t).indexes().each((function(e){o(i,e.row,e.column)}))},_tabIndexes:function(){var t=this.s.dt,n=t.cells({page:"current"}).nodes().to$(),i=t.settings()[0],o=this.c.details.target;n.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]"),"number"==typeof o?t.cells(null,o,{page:"current"}).nodes().to$().attr("tabIndex",i.iTabIndex).data("dtr-keyboard",1):("td:first-child, th:first-child"===o&&(o=">td:first-child, >th:first-child"),e(o,t.rows({page:"current"}).nodes()).attr("tabIndex",i.iTabIndex).data("dtr-keyboard",1))}}),s.breakpoints=[{name:"desktop",width:1/0},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}],s.display={childRow:function(t,n,i){return n?e(t.node()).hasClass("parent")?(t.child(i(),"child").show(),!0):void 0:t.child.isShown()?(t.child(!1),e(t.node()).removeClass("parent"),!1):(t.child(i(),"child").show(),e(t.node()).addClass("parent"),!0)},childRowImmediate:function(t,n,i){return!n&&t.child.isShown()||!t.responsive.hasHidden()?(t.child(!1),e(t.node()).removeClass("parent"),!1):(t.child(i(),"child").show(),e(t.node()).addClass("parent"),!0)},modal:function(t){return function(i,o,r){if(o)e("div.dtr-modal-content").empty().append(r());else{var s=function(){l.remove(),e(n).off("keypress.dtr")},l=e('<div class="dtr-modal"/>').append(e('<div class="dtr-modal-display"/>').append(e('<div class="dtr-modal-content"/>').append(r())).append(e('<div class="dtr-modal-close">&times;</div>').click((function(){s()})))).append(e('<div class="dtr-modal-background"/>').click((function(){s()}))).appendTo("body");e(n).on("keyup.dtr",(function(e){27===e.keyCode&&(e.stopPropagation(),s())}))}t&&t.header&&e("div.dtr-modal-content").prepend("<h2>"+t.header(i)+"</h2>")}}};var l={};s.renderer={listHiddenNodes:function(){return function(t,n,i){var o=e('<ul data-dtr-index="'+n+'" class="dtr-details"/>'),r=!1;return e.each(i,(function(n,i){i.hidden&&(e("<li "+(i.className?'class="'+i.className+'"':"")+' data-dtr-index="'+i.columnIndex+'" data-dt-row="'+i.rowIndex+'" data-dt-column="'+i.columnIndex+'"><span class="dtr-title">'+i.title+"</span> </li>").append(e('<span class="dtr-data"/>').append(function(e,t,n){var i=t+"-"+n;if(l[i])return l[i];var o=[];for(e=e.cell(t,n).node().childNodes,t=0,n=e.length;t<n;t++)o.push(e[t]);return l[i]=o}(t,i.rowIndex,i.columnIndex))).appendTo(o),r=!0)})),!!r&&o}},listHidden:function(){return function(t,n,i){return!!(t=e.map(i,(function(e){var t=e.className?'class="'+e.className+'"':"";return e.hidden?"<li "+t+' data-dtr-index="'+e.columnIndex+'" data-dt-row="'+e.rowIndex+'" data-dt-column="'+e.columnIndex+'"><span class="dtr-title">'+e.title+'</span> <span class="dtr-data">'+e.data+"</span></li>":""})).join(""))&&e('<ul data-dtr-index="'+n+'" class="dtr-details"/>').append(t)}},tableAll:function(t){return t=e.extend({tableClass:""},t),function(n,i,o){return n=e.map(o,(function(e){return"<tr "+(e.className?'class="'+e.className+'"':"")+' data-dt-row="'+e.rowIndex+'" data-dt-column="'+e.columnIndex+'"><td>'+e.title+":</td> <td>"+e.data+"</td></tr>"})).join(""),e('<table class="'+t.tableClass+' dtr-details" width="100%"/>').append(n)}}},s.defaults={breakpoints:s.breakpoints,auto:!0,details:{display:s.display.childRow,renderer:s.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var a=e.fn.dataTable.Api;return a.register("responsive()",(function(){return this})),a.register("responsive.index()",(function(t){return{column:(t=e(t)).data("dtr-index"),row:t.parent().data("dtr-index")}})),a.register("responsive.rebuild()",(function(){return this.iterator("table",(function(e){e._responsive&&e._responsive._classLogic()}))})),a.register("responsive.recalc()",(function(){return this.iterator("table",(function(e){e._responsive&&(e._responsive._resizeAuto(),e._responsive._resize())}))})),a.register("responsive.hasHidden()",(function(){var t=this.context[0];return!!t._responsive&&-1!==e.inArray(!1,t._responsive._responsiveOnlyHidden())})),a.registerPlural("columns().responsiveHidden()","column().responsiveHidden()",(function(){return this.iterator("column",(function(e,t){return!!e._responsive&&e._responsive._responsiveOnlyHidden()[t]}),1)})),s.version="2.3.0",e.fn.dataTable.Responsive=s,e.fn.DataTable.Responsive=s,e(n).on("preInit.dt.dtr",(function(t,n,i){"dt"===t.namespace&&(e(n.nTable).hasClass("responsive")||e(n.nTable).hasClass("dt-responsive")||n.oInit.responsive||r.defaults.responsive)&&(!1!==(t=n.oInit.responsive)&&new s(n,e.isPlainObject(t)?t:{}))})),s}));