tethys/public/js/dataTable.js
2020-09-14 13:46:27 +02:00

2 lines
153 KiB
JavaScript

!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";var r,o,l,i,s=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 o(t?oe(this[r.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||Wt(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 oe(this[r.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=r.fnVersionCheck;var n=this,l=e===a,i=this.length;for(var d in l&&(e={}),this.oApi=this.internal=r.internal,s.ext.internal)d&&(this[d]=Le(d));return this.each(function(){var r,o=i>1?se({},e,!0):e,d=0,u=this.getAttribute("id"),c=!1,f=s.defaults,p=t(this);if("table"==this.nodeName.toLowerCase()){B(f),k(f.column),T(f,f,!0),T(f.column,f.column,!0),T(f,t.extend(o,p.data()),!0);var h=s.settings;for(d=0,r=h.length;d<r;d++){var m=h[d];if(m.nTable==this||m.nTHead&&m.nTHead.parentNode==this||m.nTFoot&&m.nTFoot.parentNode==this){var b=o.bRetrieve!==a?o.bRetrieve:f.bRetrieve,g=o.bDestroy!==a?o.bDestroy:f.bDestroy;if(l||b)return m.oInstance;if(g){m.oInstance.fnDestroy();break}return void le(m,0,"Cannot reinitialise DataTable",3)}if(m.sTableId==this.id){h.splice(d,1);break}}null!==u&&""!==u||(u="DataTables_Table_"+s.ext._unique++,this.id=u);var y=t.extend(!0,{},s.models.oSettings,{sDestroyWidth:p[0].style.width,sInstance:u,sTableId:u});y.nTable=this,y.oApi=n.internal,y.oInit=o,h.push(y),y.oInstance=1===n.length?n:p.dataTable(),B(o),_(o.oLanguage),o.aLengthMenu&&!o.iDisplayLength&&(o.iDisplayLength=t.isArray(o.aLengthMenu[0])?o.aLengthMenu[0][0]:o.aLengthMenu[0]),o=se(t.extend(!0,{},f),o),ie(y.oFeatures,o,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),ie(y,o,["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"]]),ie(y.oScroll,o,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),ie(y.oLanguage,o,"fnInfoCallback"),ue(y,"aoDrawCallback",o.fnDrawCallback,"user"),ue(y,"aoServerParams",o.fnServerParams,"user"),ue(y,"aoStateSaveParams",o.fnStateSaveParams,"user"),ue(y,"aoStateLoadParams",o.fnStateLoadParams,"user"),ue(y,"aoStateLoaded",o.fnStateLoaded,"user"),ue(y,"aoRowCallback",o.fnRowCallback,"user"),ue(y,"aoRowCreatedCallback",o.fnCreatedRow,"user"),ue(y,"aoHeaderCallback",o.fnHeaderCallback,"user"),ue(y,"aoFooterCallback",o.fnFooterCallback,"user"),ue(y,"aoInitComplete",o.fnInitComplete,"user"),ue(y,"aoPreDrawCallback",o.fnPreDrawCallback,"user"),y.rowIdFn=K(o.rowId),N(y);var v=y.oClasses;if(t.extend(v,s.ext.classes,o.oClasses),p.addClass(v.sTable),y.iInitDisplayStart===a&&(y.iInitDisplayStart=o.iDisplayStart,y._iDisplayStart=o.iDisplayStart),null!==o.iDeferLoading){y.bDeferLoading=!0;var x=t.isArray(o.iDeferLoading);y._iRecordsDisplay=x?o.iDeferLoading[0]:o.iDeferLoading,y._iRecordsTotal=x?o.iDeferLoading[1]:o.iDeferLoading}var I=y.oLanguage;t.extend(!0,I,o.oLanguage),I.sUrl&&(t.ajax({dataType:"json",url:I.sUrl,success:function(e){_(e),T(f.oLanguage,e),t.extend(!0,I,e),Nt(y)},error:function(){Nt(y)}}),c=!0),null===o.asStripeClasses&&(y.asStripeClasses=[v.sStripeOdd,v.sStripeEven]);var F=y.asStripeClasses,S=p.children("tbody").find("tr").eq(0);-1!==t.inArray(!0,t.map(F,function(t,e){return S.hasClass(t)}))&&(t("tbody tr",this).removeClass(F.join(" ")),y.asDestroyStripes=F.slice());var w,C=[],D=this.getElementsByTagName("thead");if(0!==D.length&&(ut(y.aoHeader,D[0]),C=ct(y)),null===o.aoColumns)for(w=[],d=0,r=C.length;d<r;d++)w.push(null);else w=o.aoColumns;for(d=0,r=w.length;d<r;d++)P(y,C?C[d]:null);if(z(y,o.aoColumnDefs,w,function(t,e){R(y,t,e)}),S.length){var A=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(S[0]).children("th, td").each(function(t,e){var n=y.aoColumns[t];if(n.mData===t){var r=A(e,"sort")||A(e,"order"),o=A(e,"filter")||A(e,"search");null===r&&null===o||(n.mData={_:t+".display",sort:null!==r?t+".@data-"+r:a,type:null!==r?t+".@data-"+r:a,filter:null!==o?t+".@data-"+o:a},R(y,t))}})}var L=y.oFeatures,j=function(){if(o.aaSorting===a){var e=y.aaSorting;for(d=0,r=e.length;d<r;d++)e[d][1]=y.aoColumns[d].asSorting[0]}ee(y),L.bSort&&ue(y,"aoDrawCallback",function(){if(y.bSorted){var e=Kt(y),n={};t.each(e,function(t,e){n[e.src]=e.dir}),ce(y,null,"order",[y,e,n]),Yt(y)}}),ue(y,"aoDrawCallback",function(){(y.bSorted||"ssp"===he(y)||L.bDeferRender)&&ee(y)},"sc");var n=p.children("caption").each(function(){this._captionSide=t(this).css("caption-side")}),l=p.children("thead");0===l.length&&(l=t("<thead/>").appendTo(p)),y.nTHead=l[0];var i=p.children("tbody");0===i.length&&(i=t("<tbody/>").appendTo(p)),y.nTBody=i[0];var s=p.children("tfoot");if(0===s.length&&n.length>0&&(""!==y.oScroll.sX||""!==y.oScroll.sY)&&(s=t("<tfoot/>").appendTo(p)),0===s.length||0===s.children().length?p.addClass(v.sNoFooter):s.length>0&&(y.nTFoot=s[0],ut(y.aoFooter,y.nTFoot)),o.aaData)for(d=0;d<o.aaData.length;d++)U(y,o.aaData[d]);else(y.bDeferLoading||"dom"==he(y))&&$(y,t(y.nTBody).children("tr"));y.aiDisplay=y.aiDisplayMaster.slice(),y.bInitialised=!0,!1===c&&Nt(y)};o.bStateSave?(L.bStateSave=!0,ue(y,"aoDrawCallback",ae,"state_save"),re(y,o,j)):j()}else le(null,0,"Non-table node initialisation ("+this.nodeName+")",2)}),n=null,this},d={},u=/[\r\n\u2028]/g,c=/<.*?>/g,f=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,p=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),h=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,m=function(t){return!t||!0===t||"-"===t},b=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},g=function(t,e){return d[e]||(d[e]=new RegExp(St(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(d[e],"."):t},y=function(t,e,n){var a="string"==typeof t;return!!m(t)||(e&&a&&(t=g(t,e)),n&&a&&(t=t.replace(h,"")),!isNaN(parseFloat(t))&&isFinite(t))},v=function(t,e,n){return!!m(t)||(function(t){return m(t)||"string"==typeof t}(t)&&!!y(w(t),e,n)||null)},x=function(t,e,n){var r=[],o=0,l=t.length;if(n!==a)for(;o<l;o++)t[o]&&t[o][e]&&r.push(t[o][e][n]);else for(;o<l;o++)t[o]&&r.push(t[o][e]);return r},I=function(t,e,n,r){var o=[],l=0,i=e.length;if(r!==a)for(;l<i;l++)t[e[l]][n]&&o.push(t[e[l]][n][r]);else for(;l<i;l++)o.push(t[e[l]][n]);return o},F=function(t,e){var n,r=[];e===a?(e=0,n=t):(n=e,e=t);for(var o=e;o<n;o++)r.push(o);return r},S=function(t){for(var e=[],n=0,a=t.length;n<a;n++)t[n]&&e.push(t[n]);return e},w=function(t){return t.replace(c,"")},C=function(t){if(function(t){if(t.length<2)return!0;for(var e=t.slice().sort(),n=e[0],a=1,r=e.length;a<r;a++){if(e[a]===n)return!1;n=e[a]}return!0}(t))return t.slice();var e,n,a,r=[],o=t.length,l=0;t:for(n=0;n<o;n++){for(e=t[n],a=0;a<l;a++)if(r[a]===e)continue t;r.push(e),l++}return r};function D(e){var n,a,r={};t.each(e,function(t,o){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(a=t.replace(n[0],n[2].toLowerCase()),r[a]=t,"o"===n[1]&&D(e[t]))}),e._hungarianMap=r}function T(e,n,r){var o;e._hungarianMap||D(e),t.each(n,function(l,i){(o=e._hungarianMap[l])===a||!r&&n[o]!==a||("o"===o.charAt(0)?(n[o]||(n[o]={}),t.extend(!0,n[o],n[l]),T(e[o],n[o],r)):n[o]=n[l])})}function _(t){var e=s.defaults.oLanguage,n=e.sDecimal;if(n&&ke(n),t){var a=t.sZeroRecords;!t.sEmptyTable&&a&&"No data available in table"===e.sEmptyTable&&ie(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&a&&"Loading..."===e.sLoadingRecords&&ie(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var r=t.sDecimal;r&&n!==r&&ke(r)}}s.util={throttle:function(t,e){var n,r,o=e!==a?e:200;return function(){var e=this,l=+new Date,i=arguments;n&&l<n+o?(clearTimeout(r),r=setTimeout(function(){n=a,t.apply(e,i)},o)):(n=l,t.apply(e,i))}},escapeRegex:function(t){return t.replace(p,"\\$1")}};var A=function(t,e,n){t[e]!==a&&(t[n]=t[e])};function B(t){A(t,"ordering","bSort"),A(t,"orderMulti","bSortMulti"),A(t,"orderClasses","bSortClasses"),A(t,"orderCellsTop","bSortCellsTop"),A(t,"order","aaSorting"),A(t,"orderFixed","aaSortingFixed"),A(t,"paging","bPaginate"),A(t,"pagingType","sPaginationType"),A(t,"pageLength","iDisplayLength"),A(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<a;n++)e[n]&&T(s.models.oSearch,e[n])}function k(e){A(e,"orderable","bSortable"),A(e,"orderData","aDataSort"),A(e,"orderSequence","asSorting"),A(e,"orderDataType","sortDataType");var n=e.aDataSort;"number"!=typeof n||t.isArray(n)||(e.aDataSort=[n])}function N(n){if(!s.__browser){var a={};s.__browser=a;var r=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").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,s.__browser),n.oScroll.iBarWidth=s.__browser.barWidth}function L(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 P(e,a){var r=s.defaults.column,o=e.aoColumns.length,l=t.extend({},s.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({},s.models.oSearch,i[o]),R(e,o,t(a).data())}function R(e,n,r){var o=e.aoColumns[n],l=e.oClasses,i=t(o.nTh);if(!o.sWidthOrig){o.sWidthOrig=i.attr("width")||null;var d=(i.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);d&&(o.sWidthOrig=d[1])}r!==a&&null!==r&&(k(r),T(s.defaults.column,r,!0),r.mDataProp===a||r.mData||(r.mData=r.mDataProp),r.sType&&(o._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&i.addClass(r.sClass),t.extend(o,r),ie(o,r,"sWidth","sWidthOrig"),r.iDataSort!==a&&(o.aDataSort=[r.iDataSort]),ie(o,r,"aDataSort"));var u=o.mData,c=K(u),f=o.mRender?K(o.mRender):null,p=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};o._bAttrSrc=t.isPlainObject(u)&&(p(u.sort)||p(u.type)||p(u.filter)),o._setter=null,o.fnGetData=function(t,e,n){var r=c(t,e,a,n);return f&&e?f(r,e,t,n):r},o.fnSetData=function(t,e,n){return Z(u)(t,e,n)},"number"!=typeof u&&(e._rowReadObject=!0),e.oFeatures.bSort||(o.bSortable=!1,i.addClass(l.sSortableNone));var h=-1!==t.inArray("asc",o.asSorting),m=-1!==t.inArray("desc",o.asSorting);o.bSortable&&(h||m)?h&&!m?(o.sSortingClass=l.sSortableAsc,o.sSortingClassJUI=l.sSortJUIAscAllowed):!h&&m?(o.sSortingClass=l.sSortableDesc,o.sSortingClassJUI=l.sSortJUIDescAllowed):(o.sSortingClass=l.sSortable,o.sSortingClassJUI=l.sSortJUI):(o.sSortingClass=l.sSortableNone,o.sSortingClassJUI="")}function j(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;$t(t);for(var n=0,a=e.length;n<a;n++)e[n].nTh.style.width=e[n].sWidth}var r=t.oScroll;""===r.sY&&""===r.sX||Wt(t),ce(t,null,"column-sizing",[t])}function E(t,e){var n=M(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function O(e,n){var a=M(e,"bVisible"),r=t.inArray(n,a);return-1!==r?r:null}function H(e){var n=0;return t.each(e.aoColumns,function(e,a){a.bVisible&&"none"!==t(a.nTh).css("display")&&n++}),n}function M(e,n){var a=[];return t.map(e.aoColumns,function(t,e){t[n]&&a.push(e)}),a}function W(t){var e,n,r,o,l,i,d,u,c,f=t.aoColumns,p=t.aoData,h=s.ext.type.detect;for(e=0,n=f.length;e<n;e++)if(c=[],!(d=f[e]).sType&&d._sManualType)d.sType=d._sManualType;else if(!d.sType){for(r=0,o=h.length;r<o;r++){for(l=0,i=p.length;l<i&&(c[l]===a&&(c[l]=X(t,l,e,"type")),(u=h[r](c[l],t))||r===h.length-1)&&"html"!==u;l++);if(u){d.sType=u;break}}d.sType||(d.sType="string")}}function z(e,n,r,o){var l,i,s,d,u,c,f,p=e.aoColumns;if(n)for(l=n.length-1;l>=0;l--){var h=(f=n[l]).targets!==a?f.targets:f.aTargets;for(t.isArray(h)||(h=[h]),s=0,d=h.length;s<d;s++)if("number"==typeof h[s]&&h[s]>=0){for(;p.length<=h[s];)P(e);o(h[s],f)}else if("number"==typeof h[s]&&h[s]<0)o(p.length+h[s],f);else if("string"==typeof h[s])for(u=0,c=p.length;u<c;u++)("_all"==h[s]||t(p[u].nTh).hasClass(h[s]))&&o(u,f)}if(r)for(l=0,i=r.length;l<i;l++)o(l,r[l])}function U(e,n,r,o){var l=e.aoData.length,i=t.extend(!0,{},s.models.oRow,{src:r?"dom":"data",idx:l});i._aData=n,e.aoData.push(i);for(var d=e.aoColumns,u=0,c=d.length;u<c;u++)d[u].sType=null;e.aiDisplayMaster.push(l);var f=e.rowIdFn(n);return f!==a&&(e.aIds[f]=i),!r&&e.oFeatures.bDeferRender||at(e,l,r,o),l}function $(e,n){var a;return n instanceof t||(n=t(n)),n.map(function(t,n){return a=nt(e,n),U(e,a.data,n,a.cells)})}function X(t,e,n,r){var o=t.iDraw,l=t.aoColumns[n],i=t.aoData[e]._aData,s=l.sDefaultContent,d=l.fnGetData(i,r,{settings:t,row:e,col:n});if(d===a)return t.iDrawError!=o&&null===s&&(le(t,0,"Requested unknown parameter "+("function"==typeof l.mData?"{function}":"'"+l.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=o),s;if(d!==i&&null!==d||null===s||r===a){if("function"==typeof d)return d.call(i)}else d=s;return null===d&&"display"==r?"":d}function q(t,e,n,a){var r=t.aoColumns[n],o=t.aoData[e]._aData;r.fnSetData(o,a,{settings:t,row:e,col:n})}var V=/\[.*?\]$/,J=/\(\)$/;function G(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\\./g,".")})}function K(e){if(t.isPlainObject(e)){var n={};return t.each(e,function(t,e){e&&(n[t]=K(e))}),function(t,e,r,o){var l=n[e]||n._;return l!==a?l(t,e,r,o):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,n,a,r){return e(t,n,a,r)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){return t[e]};var r=function(e,n,o){var l,i,s,d;if(""!==o)for(var u=G(o),c=0,f=u.length;c<f;c++){if(l=u[c].match(V),i=u[c].match(J),l){if(u[c]=u[c].replace(V,""),""!==u[c]&&(e=e[u[c]]),s=[],u.splice(0,c+1),d=u.join("."),t.isArray(e))for(var p=0,h=e.length;p<h;p++)s.push(r(e[p],n,d));var m=l[0].substring(1,l[0].length-1);e=""===m?s:s.join(m);break}if(i)u[c]=u[c].replace(J,""),e=e[u[c]]();else{if(null===e||e[u[c]]===a)return a;e=e[u[c]]}}return e};return function(t,n){return r(t,n,e)}}function Z(e){if(t.isPlainObject(e))return Z(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,a){e(t,"set",n,a)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){t[e]=n};var n=function(e,r,o){for(var l,i,s,d,u,c=G(o),f=c[c.length-1],p=0,h=c.length-1;p<h;p++){if(i=c[p].match(V),s=c[p].match(J),i){if(c[p]=c[p].replace(V,""),e[c[p]]=[],(l=c.slice()).splice(0,p+1),u=l.join("."),t.isArray(r))for(var m=0,b=r.length;m<b;m++)n(d={},r[m],u),e[c[p]].push(d);else e[c[p]]=r;return}s&&(c[p]=c[p].replace(J,""),e=e[c[p]](r)),null!==e[c[p]]&&e[c[p]]!==a||(e[c[p]]={}),e=e[c[p]]}f.match(J)?e=e[f.replace(J,"")](r):e[f.replace(V,"")]=r};return function(t,a){return n(t,a,e)}}function Y(t){return x(t.aoData,"_aData")}function Q(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function tt(t,e,n){for(var r=-1,o=0,l=t.length;o<l;o++)t[o]==e?r=o:t[o]>e&&t[o]--;-1!=r&&n===a&&t.splice(r,1)}function et(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=X(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<l;o++)s(d[o],o)}else i._aData=nt(t,i,r,r===a?a:i._aData).data;i._aSortData=null,i._aFilterData=null;var u=t.aoColumns;if(r!==a)u[r].sType=null;else{for(o=0,l=u.length;o<l;o++)u[o].sType=null;rt(t,i)}}function nt(e,n,r,o){var l,i,s,d=[],u=n.firstChild,c=0,f=e.aoColumns,p=e._rowReadObject;o=o!==a?o:p?{}:[];var h=function(t,e){if("string"==typeof t){var n=t.indexOf("@");if(-1!==n){var a=t.substring(n+1);Z(t)(o,e.getAttribute(a))}}},m=function(e){r!==a&&r!==c||(i=f[c],s=t.trim(e.innerHTML),i&&i._bAttrSrc?(Z(i.mData._)(o,s),h(i.mData.sort,e),h(i.mData.type,e),h(i.mData.filter,e)):p?(i._setter||(i._setter=Z(i.mData)),i._setter(o,s)):o[c]=s);c++};if(u)for(;u;)"TD"!=(l=u.nodeName.toUpperCase())&&"TH"!=l||(m(u),d.push(u)),u=u.nextSibling;else for(var b=0,g=(d=n.anCells).length;b<g;b++)m(d[b]);var y=n.firstChild?n:n.nTr;if(y){var v=y.getAttribute("id");v&&Z(e.rowId)(o,v)}return{data:o,cells:d}}function at(e,a,r,o){var l,i,s,d,u,c,f=e.aoData[a],p=f._aData,h=[];if(null===f.nTr){for(l=r||n.createElement("tr"),f.nTr=l,f.anCells=h,l._DT_RowIndex=a,rt(e,f),d=0,u=e.aoColumns.length;d<u;d++)s=e.aoColumns[d],(i=(c=!r)?n.createElement(s.sCellType):o[d])._DT_CellIndex={row:a,column:d},h.push(i),!c&&(r&&!s.mRender&&s.mData===d||t.isPlainObject(s.mData)&&s.mData._===d+".display")||(i.innerHTML=X(e,a,d,"display")),s.sClass&&(i.className+=" "+s.sClass),s.bVisible&&!r?l.appendChild(i):!s.bVisible&&r&&i.parentNode.removeChild(i),s.fnCreatedCell&&s.fnCreatedCell.call(e.oInstance,i,X(e,a,d),p,a,d);ce(e,"aoRowCreatedCallback",null,[l,p,a,h])}f.nTr.setAttribute("role","row")}function rt(e,n){var a=n.nTr,r=n._aData;if(a){var o=e.rowIdFn(r);if(o&&(a.id=o),r.DT_RowClass){var l=r.DT_RowClass.split(" ");n.__rowc=n.__rowc?C(n.__rowc.concat(l)):l,t(a).removeClass(n.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowAttr&&t(a).attr(r.DT_RowAttr),r.DT_RowData&&t(a).data(r.DT_RowData)}}function ot(e){var n,a,r,o,l,i=e.nTHead,s=e.nTFoot,d=0===t("th, td",i).length,u=e.oClasses,c=e.aoColumns;for(d&&(o=t("<tr/>").appendTo(i)),n=0,a=c.length;n<a;n++)l=c[n],r=t(l.nTh).addClass(l.sClass),d&&r.appendTo(o),e.oFeatures.bSort&&(r.addClass(l.sSortingClass),!1!==l.bSortable&&(r.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),te(e,l.nTh,n))),l.sTitle!=r[0].innerHTML&&r.html(l.sTitle),pe(e,"header")(e,r,l,u);if(d&&ut(e.aoHeader,i),t(i).find(">tr").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<a;n++)(l=c[n]).nTf=f[n].cell,l.sClass&&t(l.nTf).addClass(l.sClass)}}function lt(e,n,r){var o,l,i,s,d,u,c,f,p,h=[],m=[],b=e.aoColumns.length;if(n){for(r===a&&(r=!1),o=0,l=n.length;o<l;o++){for(h[o]=n[o].slice(),h[o].nTr=n[o].nTr,i=b-1;i>=0;i--)e.aoColumns[i].bVisible||r||h[o].splice(i,1);m.push([])}for(o=0,l=h.length;o<l;o++){if(c=h[o].nTr)for(;u=c.firstChild;)c.removeChild(u);for(i=0,s=h[o].length;i<s;i++)if(f=1,p=1,m[o][i]===a){for(c.appendChild(h[o][i].cell),m[o][i]=1;h[o+f]!==a&&h[o][i].cell==h[o+f][i].cell;)m[o+f][i]=1,f++;for(;h[o][i+p]!==a&&h[o][i].cell==h[o][i+p].cell;){for(d=0;d<f;d++)m[o+d][i+p]=1;p++}t(h[o][i].cell).attr("rowspan",f).attr("colspan",p)}}}}function it(e){var n=ce(e,"aoPreDrawCallback","preDraw",[e]);if(-1===t.inArray(!1,n)){var r=[],o=0,l=e.asStripeClasses,i=l.length,s=(e.aoOpenRows.length,e.oLanguage),d=e.iInitDisplayStart,u="ssp"==he(e),c=e.aiDisplay;e.bDrawing=!0,d!==a&&-1!==d&&(e._iDisplayStart=u?d:d>=e.fnRecordsDisplay()?0:d,e.iInitDisplayStart=-1);var f=e._iDisplayStart,p=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,Ht(e,!1);else if(u){if(!e.bDestroying&&!pt(e))return}else e.iDraw++;if(0!==c.length)for(var h=u?0:f,m=u?e.aoData.length:p,b=h;b<m;b++){var g=c[b],y=e.aoData[g];null===y.nTr&&at(e,g);var v=y.nTr;if(0!==i){var x=l[o%i];y._sRowStripe!=x&&(t(v).removeClass(y._sRowStripe).addClass(x),y._sRowStripe=x)}ce(e,"aoRowCallback",null,[v,y._aData,o,b,g]),r.push(v),o++}else{var I=s.sZeroRecords;1==e.iDraw&&"ajax"==he(e)?I=s.sLoadingRecords:s.sEmptyTable&&0===e.fnRecordsTotal()&&(I=s.sEmptyTable),r[0]=t("<tr/>",{class:i?l[0]:""}).append(t("<td />",{valign:"top",colSpan:H(e),class:e.oClasses.sRowEmpty}).html(I))[0]}ce(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],Y(e),f,p,c]),ce(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],Y(e),f,p,c]);var F=t(e.nTBody);F.children().detach(),F.append(t(r)),ce(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}else Ht(e,!1)}function st(t,e){var n=t.oFeatures,a=n.bSort,r=n.bFilter;a&&Zt(t),r?yt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,it(t),t._drawHold=!1}function dt(e){var n=e.oClasses,a=t(e.nTable),r=t("<div/>").insertBefore(a),o=e.oFeatures,l=t("<div/>",{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,d,u,c,f,p,h=e.sDom.split(""),m=0;m<h.length;m++){if(i=null,"<"==(d=h[m])){if(u=t("<div/>")[0],"'"==(c=h[m+1])||'"'==c){for(f="",p=2;h[m+p]!=c;)f+=h[m+p],p++;if("H"==f?f=n.sJUIHeader:"F"==f&&(f=n.sJUIFooter),-1!=f.indexOf(".")){var b=f.split(".");u.id=b[0].substr(1,b[0].length-1),u.className=b[1]}else"#"==f.charAt(0)?u.id=f.substr(1,f.length-1):u.className=f;m+=p}l.append(u),l=t(u)}else if(">"==d)l=l.parent();else if("l"==d&&o.bPaginate&&o.bLengthChange)i=Rt(e);else if("f"==d&&o.bFilter)i=gt(e);else if("r"==d&&o.bProcessing)i=Ot(e);else if("t"==d)i=Mt(e);else if("i"==d&&o.bInfo)i=At(e);else if("p"==d&&o.bPaginate)i=jt(e);else if(0!==s.ext.feature.length)for(var g=s.ext.feature,y=0,v=g.length;y<v;y++)if(d==g[y].cFeature){i=g[y].fnInit(e);break}if(i){var x=e.aanFeatures;x[d]||(x[d]=[]),x[d].push(i),l.append(i)}}r.replaceWith(l),e.nHolding=null}function ut(e,n){var a,r,o,l,i,s,d,u,c,f,p=t(n).children("tr"),h=function(t,e,n){for(var a=t[e];a[n];)n++;return n};for(e.splice(0,e.length),o=0,s=p.length;o<s;o++)e.push([]);for(o=0,s=p.length;o<s;o++)for(0,r=(a=p[o]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase())for(u=(u=1*r.getAttribute("colspan"))&&0!==u&&1!==u?u:1,c=(c=1*r.getAttribute("rowspan"))&&0!==c&&1!==c?c:1,d=h(e,o,0),f=1===u,i=0;i<u;i++)for(l=0;l<c;l++)e[o+l][d+i]={cell:r,unique:f},e[o+l].nTr=a;r=r.nextSibling}}function ct(t,e,n){var a=[];n||(n=t.aoHeader,e&&ut(n=[],e));for(var r=0,o=n.length;r<o;r++)for(var l=0,i=n[r].length;l<i;l++)!n[r][l].unique||a[l]&&t.bSortCellsTop||(a[l]=n[r][l].cell);return a}function ft(e,n,a){if(ce(e,"aoServerParams","serverParams",[n]),n&&t.isArray(n)){var r={},o=/(.*?)\[\]$/;t.each(n,function(t,e){var n=e.name.match(o);if(n){var a=n[0];r[a]||(r[a]=[]),r[a].push(e.value)}else r[e.name]=e.value}),n=r}var l,i=e.ajax,s=e.oInstance,d=function(t){ce(e,null,"xhr",[e,t,e.jqXHR]),a(t)};if(t.isPlainObject(i)&&i.data){var u="function"==typeof(l=i.data)?l(n,e):l;n="function"==typeof l&&u?u:t.extend(!0,n,u),delete i.data}var c={data:n,success:function(t){var n=t.error||t.sError;n&&le(e,0,n),e.json=t,d(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,a,r){var o=ce(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,o)&&("parsererror"==a?le(e,0,"Invalid JSON response",1):4===n.readyState&&le(e,0,"Ajax error",7)),Ht(e,!1)}};e.oAjaxData=n,ce(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(s,e.sAjaxSource,t.map(n,function(t,e){return{name:e,value:t}}),d,e):e.sAjaxSource||"string"==typeof i?e.jqXHR=t.ajax(t.extend(c,{url:i||e.sAjaxSource})):"function"==typeof i?e.jqXHR=i.call(s,n,d,e):(e.jqXHR=t.ajax(t.extend(c,i)),i.data=l)}function pt(t){return!t.bAjaxDataGet||(t.iDraw++,Ht(t,!0),ft(t,ht(t),function(e){mt(t,e)}),!1)}function ht(e){var n,a,r,o,l=e.aoColumns,i=l.length,d=e.oFeatures,u=e.oPreviousSearch,c=e.aoPreSearchCols,f=[],p=Kt(e),h=e._iDisplayStart,m=!1!==d.bPaginate?e._iDisplayLength:-1,b=function(t,e){f.push({name:t,value:e})};b("sEcho",e.iDraw),b("iColumns",i),b("sColumns",x(l,"sName").join(",")),b("iDisplayStart",h),b("iDisplayLength",m);var g={draw:e.iDraw,columns:[],order:[],start:h,length:m,search:{value:u.sSearch,regex:u.bRegex}};for(n=0;n<i;n++)r=l[n],o=c[n],a="function"==typeof r.mData?"function":r.mData,g.columns.push({data:a,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),b("mDataProp_"+n,a),d.bFilter&&(b("sSearch_"+n,o.sSearch),b("bRegex_"+n,o.bRegex),b("bSearchable_"+n,r.bSearchable)),d.bSort&&b("bSortable_"+n,r.bSortable);d.bFilter&&(b("sSearch",u.sSearch),b("bRegex",u.bRegex)),d.bSort&&(t.each(p,function(t,e){g.order.push({column:e.col,dir:e.dir}),b("iSortCol_"+t,e.col),b("sSortDir_"+t,e.dir)}),b("iSortingCols",p.length));var y=s.ext.legacy.ajax;return null===y?e.sAjaxSource?f:g:y?f:g}function mt(t,e){var n=function(t,n){return e[t]!==a?e[t]:e[n]},r=bt(t,e),o=n("sEcho","draw"),l=n("iTotalRecords","recordsTotal"),i=n("iTotalDisplayRecords","recordsFiltered");if(o!==a){if(1*o<t.iDraw)return;t.iDraw=1*o}Q(t),t._iRecordsTotal=parseInt(l,10),t._iRecordsDisplay=parseInt(i,10);for(var s=0,d=r.length;s<d;s++)U(t,r[s]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,it(t),t._bInitComplete||Lt(t,e),t.bAjaxDataGet=!0,Ht(t,!1)}function bt(e,n){var r=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==a?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===r?n.aaData||n[r]:""!==r?K(r)(n):n}function gt(e){var a=e.oClasses,r=e.sTableId,o=e.oLanguage,l=e.oPreviousSearch,i=e.aanFeatures,s='<input type="search" class="'+a.sFilterInput+'"/>',d=o.sSearch;d=d.match(/_INPUT_/)?d.replace("_INPUT_",s):d+s;var u=t("<div/>",{id:i.f?null:r+"_filter",class:a.sFilter}).append(t("<label/>").append(d)),c=function(){i.f;var t=this.value?this.value:"";t!=l.sSearch&&(yt(e,{sSearch:t,bRegex:l.bRegex,bSmart:l.bSmart,bCaseInsensitive:l.bCaseInsensitive}),e._iDisplayStart=0,it(e))},f=null!==e.searchDelay?e.searchDelay:"ssp"===he(e)?400:0,p=t("input",u).val(l.sSearch).attr("placeholder",o.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",f?Xt(c,f):c).on("mouseup",function(t){setTimeout(function(){c.call(p[0])},10)}).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",r);return t(e.nTable).on("search.dt.DT",function(t,a){if(e===a)try{p[0]!==n.activeElement&&p.val(l.sSearch)}catch(t){}}),u[0]}function yt(t,e,n){var r=t.oPreviousSearch,o=t.aoPreSearchCols,l=function(t){r.sSearch=t.sSearch,r.bRegex=t.bRegex,r.bSmart=t.bSmart,r.bCaseInsensitive=t.bCaseInsensitive},i=function(t){return t.bEscapeRegex!==a?!t.bEscapeRegex:t.bRegex};if(W(t),"ssp"!=he(t)){It(t,e.sSearch,n,i(e),e.bSmart,e.bCaseInsensitive),l(e);for(var s=0;s<o.length;s++)xt(t,o[s].sSearch,s,i(o[s]),o[s].bSmart,o[s].bCaseInsensitive);vt(t)}else l(e);t.bFiltered=!0,ce(t,null,"search",[t])}function vt(e){for(var n,a,r=s.ext.search,o=e.aiDisplay,l=0,i=r.length;l<i;l++){for(var d=[],u=0,c=o.length;u<c;u++)a=o[u],n=e.aoData[a],r[l](e,n._aFilterData,a,n._aData,u)&&d.push(a);o.length=0,t.merge(o,d)}}function xt(t,e,n,a,r,o){if(""!==e){for(var l,i=[],s=t.aiDisplay,d=Ft(e,a,r,o),u=0;u<s.length;u++)l=t.aoData[s[u]]._aFilterData[n],d.test(l)&&i.push(s[u]);t.aiDisplay=i}}function It(t,e,n,a,r,o){var l,i,d,u=Ft(e,a,r,o),c=t.oPreviousSearch.sSearch,f=t.aiDisplayMaster,p=[];if(0!==s.ext.search.length&&(n=!0),i=Dt(t),e.length<=0)t.aiDisplay=f.slice();else{for((i||n||a||c.length>e.length||0!==e.indexOf(c)||t.bSorted)&&(t.aiDisplay=f.slice()),l=t.aiDisplay,d=0;d<l.length;d++)u.test(t.aoData[l[d]]._sFilterRow)&&p.push(l[d]);t.aiDisplay=p}}function Ft(e,n,a,r){if(e=n?e:St(e),a){var o=t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")});e="^(?=.*?"+o.join(")(?=.*?")+").*$"}return new RegExp(e,r?"i":"")}var St=s.util.escapeRegex,wt=t("<div>")[0],Ct=wt.textContent!==a;function Dt(t){var e,n,a,r,o,l,i,d,u=t.aoColumns,c=s.ext.type.search,f=!1;for(n=0,r=t.aoData.length;n<r;n++)if(!(d=t.aoData[n])._aFilterData){for(l=[],a=0,o=u.length;a<o;a++)(e=u[a]).bSearchable?(i=X(t,n,a,"filter"),c[e.sType]&&(i=c[e.sType](i)),null===i&&(i=""),"string"!=typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(wt.innerHTML=i,i=Ct?wt.textContent:wt.innerText),i.replace&&(i=i.replace(/[\r\n\u2028]/g,"")),l.push(i);d._aFilterData=l,d._sFilterRow=l.join(" "),f=!0}return f}function Tt(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function _t(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function At(e){var n=e.sTableId,a=e.aanFeatures.i,r=t("<div/>",{class:e.oClasses.sInfo,id:a?null:n+"_info"});return a||(e.aoDrawCallback.push({fn:Bt,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),r[0]}function Bt(e){var n=e.aanFeatures.i;if(0!==n.length){var a=e.oLanguage,r=e._iDisplayStart+1,o=e.fnDisplayEnd(),l=e.fnRecordsTotal(),i=e.fnRecordsDisplay(),s=i?a.sInfo:a.sInfoEmpty;i!==l&&(s+=" "+a.sInfoFiltered),s=kt(e,s+=a.sInfoPostFix);var d=a.fnInfoCallback;null!==d&&(s=d.call(e.oInstance,e,r,o,l,i,s)),t(n).html(s)}}function kt(t,e){var n=t.fnFormatNumber,a=t._iDisplayStart+1,r=t._iDisplayLength,o=t.fnRecordsDisplay(),l=-1===r;return e.replace(/_START_/g,n.call(t,a)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,o)).replace(/_PAGE_/g,n.call(t,l?1:Math.ceil(a/r))).replace(/_PAGES_/g,n.call(t,l?1:Math.ceil(o/r)))}function Nt(t){var e,n,a,r=t.iInitDisplayStart,o=t.aoColumns,l=t.oFeatures,i=t.bDeferLoading;if(t.bInitialised){for(dt(t),ot(t),lt(t,t.aoHeader),lt(t,t.aoFooter),Ht(t,!0),l.bAutoWidth&&$t(t),e=0,n=o.length;e<n;e++)(a=o[e]).sWidth&&(a.nTh.style.width=Gt(a.sWidth));ce(t,null,"preInit",[t]),st(t);var s=he(t);("ssp"!=s||i)&&("ajax"==s?ft(t,[],function(n){var a=bt(t,n);for(e=0;e<a.length;e++)U(t,a[e]);t.iInitDisplayStart=r,st(t),Ht(t,!1),Lt(t,n)}):(Ht(t,!1),Lt(t)))}else setTimeout(function(){Nt(t)},200)}function Lt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&j(t),ce(t,null,"plugin-init",[t,e]),ce(t,"aoInitComplete","init",[t,e])}function Pt(t,e){var n=parseInt(e,10);t._iDisplayLength=n,fe(t),ce(t,null,"length",[t,n])}function Rt(e){for(var n=e.oClasses,a=e.sTableId,r=e.aLengthMenu,o=t.isArray(r[0]),l=o?r[0]:r,i=o?r[1]:r,s=t("<select/>",{name:a+"_length","aria-controls":a,class:n.sLengthSelect}),d=0,u=l.length;d<u;d++)s[0][d]=new Option("number"==typeof i[d]?e.fnFormatNumber(i[d]):i[d],l[d]);var c=t("<div><label/></div>").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){Pt(e,t(this).val()),it(e)}),t(e.nTable).on("length.dt.DT",function(n,a,r){e===a&&t("select",c).val(r)}),c[0]}function jt(e){var n=e.sPaginationType,a=s.ext.pager[n],r="function"==typeof a,o=function(t){it(t)},l=t("<div/>").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;e<n;e++)pe(t,"pageButton")(t,i.p[e],e,p,c,f)}else a.fnUpdate(t,o)},sName:"pagination"})),l}function Et(t,e,n){var a=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay();0===o||-1===r?a=0:"number"==typeof e?(a=e*r)>o&&(a=0):"first"==e?a=0:"previous"==e?(a=r>=0?a-r:0)<0&&(a=0):"next"==e?a+r<o&&(a+=r):"last"==e?a=Math.floor((o-1)/r)*r:le(t,0,"Unknown paging action: "+e,5);var l=t._iDisplayStart!==a;return t._iDisplayStart=a,l&&(ce(t,null,"page",[t]),n&&it(t)),l}function Ot(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function Ht(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),ce(e,null,"processing",[e,n])}function Mt(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="<div/>",p=function(t){return t?Gt(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],g=m[1],y=c?m[2]:null;return r&&t(g).on("scroll.DT",function(t){var e=this.scrollLeft;b.scrollLeft=e,c&&(y.scrollLeft=e)}),t(g).css("max-height",o),a.bCollapse||t(g).css("height",o),e.nScrollHead=b,e.nScrollBody=g,e.nScrollFoot=y,e.aoDrawCallback.push({fn:Wt,sName:"scrolling"}),h[0]}function Wt(e){var n,r,o,l,i,s,d,u,c,f=e.oScroll,p=f.sX,h=f.sXInner,m=f.sY,b=f.iBarWidth,g=t(e.nScrollHead),y=g[0].style,v=g.children("div"),I=v[0].style,F=v.children("table"),S=e.nScrollBody,w=t(S),C=S.style,D=t(e.nScrollFoot).children("div"),T=D.children("table"),_=t(e.nTHead),A=t(e.nTable),B=A[0],k=B.style,N=e.nTFoot?t(e.nTFoot):null,L=e.oBrowser,P=L.bScrollOversize,R=x(e.aoColumns,"nTh"),O=[],H=[],M=[],W=[],z=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},U=S.scrollHeight>S.clientHeight;if(e.scrollBarVis!==U&&e.scrollBarVis!==a)return e.scrollBarVis=U,void j(e);e.scrollBarVis=U,A.children("thead, tfoot").remove(),N&&(s=N.clone().prependTo(A),r=N.find("tr"),l=s.find("tr")),i=_.clone().prependTo(A),n=_.find("tr"),o=i.find("tr"),i.find("th, td").removeAttr("tabindex"),p||(C.width="100%",g[0].style.width="100%"),t.each(ct(e,i),function(t,n){d=E(e,t),n.style.width=e.aoColumns[d].sWidth}),N&&zt(function(t){t.style.width=""},l),c=A.outerWidth(),""===p?(k.width="100%",P&&(A.find("tbody").height()>S.offsetHeight||"scroll"==w.css("overflow-y"))&&(k.width=Gt(A.outerWidth()-b)),c=A.outerWidth()):""!==h&&(k.width=Gt(h),c=A.outerWidth()),zt(z,o),zt(function(e){M.push(e.innerHTML),O.push(Gt(t(e).css("width")))},o),zt(function(e,n){-1!==t.inArray(e,R)&&(e.style.width=O[n])},n),t(o).height(0),N&&(zt(z,l),zt(function(e){W.push(e.innerHTML),H.push(Gt(t(e).css("width")))},l),zt(function(t,e){t.style.width=H[e]},r),t(l).height(0)),zt(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+M[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=O[e]},o),N&&zt(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+W[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=H[e]},l),A.outerWidth()<c?(u=S.scrollHeight>S.offsetHeight||"scroll"==w.css("overflow-y")?c+b:c,P&&(S.scrollHeight>S.offsetHeight||"scroll"==w.css("overflow-y"))&&(k.width=Gt(u-b)),""!==p&&""===h||le(e,1,"Possible column misalignment",6)):u="100%",C.width=Gt(u),y.width=Gt(u),N&&(e.nScrollFoot.style.width=Gt(u)),m||P&&(C.height=Gt(B.offsetHeight+b));var $=A.outerWidth();F[0].style.width=Gt($),I.width=Gt($);var X=A.height()>S.clientHeight||"scroll"==w.css("overflow-y"),q="padding"+(L.bScrollbarLeft?"Left":"Right");I[q]=X?b+"px":"0px",N&&(T[0].style.width=Gt($),D[0].style.width=Gt($),D[0].style[q]=X?b+"px":"0px"),A.children("colgroup").insertBefore(A.children("thead")),w.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(S.scrollTop=0)}function zt(t,e,n){for(var a,r,o=0,l=0,i=e.length;l<i;){for(a=e[l].firstChild,r=n?n[l].firstChild:null;a;)1===a.nodeType&&(n?t(a,r,o):t(a,o),o++),a=a.nextSibling,r=n?r.nextSibling:null;l++}}var Ut=/<.*?>/g;function $t(n){var a,r,o,l=n.nTable,i=n.aoColumns,s=n.oScroll,d=s.sY,u=s.sX,c=s.sXInner,f=i.length,p=M(n,"bVisible"),h=t("th",n.nTHead),m=l.getAttribute("width"),b=l.parentNode,g=!1,y=n.oBrowser,v=y.bScrollOversize,x=l.style.width;for(x&&-1!==x.indexOf("%")&&(m=x),a=0;a<p.length;a++)null!==(r=i[p[a]]).sWidth&&(r.sWidth=qt(r.sWidthOrig,b),g=!0);if(v||!g&&!u&&!d&&f==H(n)&&f==h.length)for(a=0;a<f;a++){var I=E(n,a);null!==I&&(i[I].sWidth=Gt(h.eq(a).width()))}else{var F=t(l).clone().css("visibility","hidden").removeAttr("id");F.find("tbody tr").remove();var S=t("<tr/>").appendTo(F.find("tbody"));for(F.find("thead, tfoot").remove(),F.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),F.find("tfoot th, tfoot td").css("width",""),h=ct(n,F.find("thead")[0]),a=0;a<p.length;a++)r=i[p[a]],h[a].style.width=null!==r.sWidthOrig&&""!==r.sWidthOrig?Gt(r.sWidthOrig):"",r.sWidthOrig&&u&&t(h[a]).append(t("<div/>").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(a=0;a<p.length;a++)r=i[o=p[a]],t(Vt(n,o)).clone(!1).append(r.sContentPadding).appendTo(S);t("[name]",F).removeAttr("name");var w=t("<div/>").css(u||d?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(F).appendTo(b);u&&c?F.width(c):u?(F.css("width","auto"),F.removeAttr("width"),F.width()<b.clientWidth&&m&&F.width(b.clientWidth)):d?F.width(b.clientWidth):m&&F.width(m);var C=0;for(a=0;a<p.length;a++){var D=t(h[a]),T=D.outerWidth()-D.width(),_=y.bBounding?Math.ceil(h[a].getBoundingClientRect().width):D.outerWidth();C+=_,i[p[a]].sWidth=Gt(_-T)}l.style.width=Gt(C),w.remove()}if(m&&(l.style.width=Gt(m)),(m||u)&&!n._reszEvt){var A=function(){t(e).on("resize.DT-"+n.sInstance,Xt(function(){j(n)}))};v?setTimeout(A,1e3):A(),n._reszEvt=!0}}var Xt=s.util.throttle;function qt(e,a){if(!e)return 0;var r=t("<div/>").css("width",Gt(e)).appendTo(a||n.body),o=r[0].offsetWidth;return r.remove(),o}function Vt(e,n){var a=Jt(e,n);if(a<0)return null;var r=e.aoData[a];return r.nTr?r.anCells[n]:t("<td/>").html(X(e,a,n,"display"))[0]}function Jt(t,e){for(var n,a=-1,r=-1,o=0,l=t.aoData.length;o<l;o++)(n=(n=(n=X(t,o,e,"display")+"").replace(Ut,"")).replace(/&nbsp;/g," ")).length>a&&(a=n.length,r=o);return r}function Gt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Kt(e){var n,r,o,l,i,d,u,c=[],f=e.aoColumns,p=e.aaSortingFixed,h=t.isPlainObject(p),m=[],b=function(e){e.length&&!t.isArray(e[0])?m.push(e):t.merge(m,e)};for(t.isArray(p)&&b(p),h&&p.pre&&b(p.pre),b(e.aaSorting),h&&p.post&&b(p.post),n=0;n<m.length;n++)for(r=0,o=(l=f[u=m[n][0]].aDataSort).length;r<o;r++)d=f[i=l[r]].sType||"string",m[n]._idx===a&&(m[n]._idx=t.inArray(m[n][1],f[i].asSorting)),c.push({src:u,col:i,dir:m[n][1],index:m[n]._idx,type:d,formatter:s.ext.type.order[d+"-pre"]});return c}function Zt(t){var e,n,a,r,o,l=[],i=s.ext.type.order,d=t.aoData,u=(t.aoColumns,0),c=t.aiDisplayMaster;for(W(t),e=0,n=(o=Kt(t)).length;e<n;e++)(r=o[e]).formatter&&u++,ne(t,r.col);if("ssp"!=he(t)&&0!==o.length){for(e=0,a=c.length;e<a;e++)l[c[e]]=e;u===o.length?c.sort(function(t,e){var n,a,r,i,s,u=o.length,c=d[t]._aSortData,f=d[e]._aSortData;for(r=0;r<u;r++)if(0!==(i=(n=c[(s=o[r]).col])<(a=f[s.col])?-1:n>a?1:0))return"asc"===s.dir?i:-i;return(n=l[t])<(a=l[e])?-1:n>a?1:0}):c.sort(function(t,e){var n,a,r,s,u,c=o.length,f=d[t]._aSortData,p=d[e]._aSortData;for(r=0;r<c;r++)if(n=f[(u=o[r]).col],a=p[u.col],0!==(s=(i[u.type+"-"+u.dir]||i["string-"+u.dir])(n,a)))return s;return(n=l[t])<(a=l[e])?-1:n>a?1:0})}t.bSorted=!0}function Yt(t){for(var e,n,a=t.aoColumns,r=Kt(t),o=t.oLanguage.oAria,l=0,i=a.length;l<i;l++){var s=a[l],d=s.asSorting,u=s.sTitle.replace(/<.*?>/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 Qt(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+1<d.length?r+1:n?null:0};if("number"==typeof s[0]&&(s=e.aaSorting=[s]),r&&e.oFeatures.bSortMulti){var c=t.inArray(n,x(s,"0"));-1!==c?(null===(l=u(s[c],!0))&&1===s.length&&(l=0),null===l?s.splice(c,1):(s[c][1]=d[l],s[c]._idx=l)):(s.push([n,d[0],0]),s[s.length-1]._idx=0)}else s.length&&s[0][0]==n?(l=u(s[0]),s.length=1,s[0][1]=d[l],s[0]._idx=l):(s.length=0,s.push([n,d[0]]),s[0]._idx=0);st(e),"function"==typeof o&&o(e)}function te(t,e,n,a){var r=t.aoColumns[n];de(e,{},function(e){!1!==r.bSortable&&(t.oFeatures.bProcessing?(Ht(t,!0),setTimeout(function(){Qt(t,n,e.shiftKey,a),"ssp"!==he(t)&&Ht(t,!1)},0)):Qt(t,n,e.shiftKey,a))})}function ee(e){var n,a,r,o=e.aLastSort,l=e.oClasses.sSortColumn,i=Kt(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(n=0,a=o.length;n<a;n++)r=o[n].src,t(x(e.aoData,"anCells",r)).removeClass(l+(n<2?n+1:3));for(n=0,a=i.length;n<a;n++)r=i[n].src,t(x(e.aoData,"anCells",r)).addClass(l+(n<2?n+1:3))}e.aLastSort=i}function ne(t,e){var n,a,r,o=t.aoColumns[e],l=s.ext.order[o.sSortDataType];l&&(n=l.call(t.oInstance,t,e,O(t,e)));for(var i=s.ext.type.order[o.sType+"-pre"],d=0,u=t.aoData.length;d<u;d++)(a=t.aoData[d])._aSortData||(a._aSortData=[]),a._aSortData[e]&&!l||(r=l?n[d]:X(t,d,e,"sort"),a._aSortData[e]=i?i(r):r)}function ae(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:Tt(e.oPreviousSearch),columns:t.map(e.aoColumns,function(t,n){return{visible:t.bVisible,search:Tt(e.aoPreSearchCols[n])}})};ce(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function re(e,n,r){var o,l,i=e.aoColumns,s=function(n){if(n&&n.time){var s=ce(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1===t.inArray(!1,s)){var d=e.iStateDuration;if(d>0&&n.time<+new Date-1e3*d)r();else if(n.columns&&i.length!==n.columns.length)r();else{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,_t(n.search)),n.columns)for(o=0,l=n.columns.length;o<l;o++){var u=n.columns[o];u.visible!==a&&(i[o].bVisible=u.visible),u.search!==a&&t.extend(e.aoPreSearchCols[o],_t(u.search))}ce(e,"aoStateLoaded","stateLoaded",[e,n]),r()}}else r()}else r()};if(e.oFeatures.bStateSave){var d=e.fnStateLoadCallback.call(e.oInstance,e,s);d!==a&&s(d)}else r()}function oe(e){var n=s.settings,a=t.inArray(e,x(n,"nTable"));return-1!==a?n[a]:null}function le(t,n,a,r){if(a="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+a,r&&(a+=". For more information about this error, please see http://datatables.net/tn/"+r),n)e.console&&console.log&&console.log(a);else{var o=s.ext,l=o.sErrMode||o.errMode;if(t&&ce(t,null,"error",[t,r,a]),"alert"==l)alert(a);else{if("throw"==l)throw new Error(a);"function"==typeof l&&l(t,r,a)}}}function ie(e,n,r,o){t.isArray(r)?t.each(r,function(a,r){t.isArray(r)?ie(e,n,r[0],r[1]):ie(e,n,r)}):(o===a&&(o=r),n[r]!==a&&(e[o]=n[r]))}function se(e,n,a){var r;for(var o in n)n.hasOwnProperty(o)&&(r=n[o],t.isPlainObject(r)?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],r)):a&&"data"!==o&&"aaData"!==o&&t.isArray(r)?e[o]=r.slice():e[o]=r);return e}function de(e,n,a){t(e).on("click.DT",n,function(n){t(e).trigger("blur"),a(n)}).on("keypress.DT",n,function(t){13===t.which&&(t.preventDefault(),a(t))}).on("selectstart.DT",function(){return!1})}function ue(t,e,n,a){n&&t[e].push({fn:n,sName:a})}function ce(e,n,a,r){var o=[];if(n&&(o=t.map(e[n].slice().reverse(),function(t,n){return t.fn.apply(e.oInstance,r)})),null!==a){var l=t.Event(a+".dt");t(e.nTable).trigger(l,r),o.push(l.result)}return o}function fe(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),a=t._iDisplayLength;e>=n&&(e=n-a),e-=e%a,(-1===a||e<0)&&(e=0),t._iDisplayStart=e}function pe(e,n){var a=e.renderer,r=s.ext.renderer[n];return t.isPlainObject(a)&&a[n]?r[a[n]]||r._:"string"==typeof a&&r[a]||r._}function he(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}var me=[],be=Array.prototype;o=function(e,n){if(!(this instanceof o))return new o(e,n);var a=[],r=function(e){var n=function(e){var n,a,r=s.settings,o=t.map(r,function(t,e){return t.nTable});return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(n=t.inArray(e,o))?[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-1!==(n=t.inArray(this,o))?r[n]:null}).toArray():void 0):[]}(e);n&&a.push.apply(a,n)};if(t.isArray(e))for(var l=0,i=e.length;l<i;l++)r(e[l]);else r(e);this.context=C(a),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},o.extend(this,this,me)},s.Api=o,t.extend(o.prototype,{any:function(){return 0!==this.count()},concat:be.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new o(e[t],this[t]):null},filter:function(t){var e=[];if(be.filter)e=be.filter.call(this,t,this);else for(var n=0,a=this.length;n<a;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new o(this.context,e)},flatten:function(){var t=[];return new o(this.context,t.concat.apply(t,this.toArray()))},join:be.join,indexOf:be.indexOf||function(t,e){for(var n=e||0,a=this.length;n<a;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,r){var l,i,s,d,u,c,f,p,h=[],m=this.context,b=this.selector;for("string"==typeof t&&(r=n,n=e,e=t,t=!1),i=0,s=m.length;i<s;i++){var g=new o(m[i]);if("table"===e)(l=n.call(g,m[i],i))!==a&&h.push(l);else if("columns"===e||"rows"===e)(l=n.call(g,m[i],this[i],i))!==a&&h.push(l);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(f=this[i],"column-rows"===e&&(c=Fe(m[i],b.opts)),d=0,u=f.length;d<u;d++)p=f[d],(l="cell"===e?n.call(g,m[i],p.row,p.column,i,d):n.call(g,m[i],p,i,d,c))!==a&&h.push(l)}if(h.length||r){var y=new o(m,t?h.concat.apply([],h):h),v=y.selector;return v.rows=b.rows,v.cols=b.cols,v.opts=b.opts,y}return this},lastIndexOf:be.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(be.map)e=be.map.call(this,t,this);else for(var n=0,a=this.length;n<a;n++)e.push(t.call(this,this[n],n));return new o(this.context,e)},pluck:function(t){return this.map(function(e){return e[t]})},pop:be.pop,push:be.push,reduce:be.reduce||function(t,e){return L(this,t,e,0,this.length,1)},reduceRight:be.reduceRight||function(t,e){return L(this,t,e,this.length-1,-1,-1)},reverse:be.reverse,selector:null,shift:be.shift,slice:function(){return new o(this.context,this)},sort:be.sort,splice:be.splice,toArray:function(){return be.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new o(this.context,C(this))},unshift:be.unshift}),o.extend=function(t,e,n){if(n.length&&e&&(e instanceof o||e.__dt_wrapper)){var a,r,l,i=function(t,e,n){return function(){var a=e.apply(t,arguments);return o.extend(a,a,n.methodExt),a}};for(a=0,r=n.length;a<r;a++)e[(l=n[a]).name]="function"===l.type?i(t,l.val,l):"object"===l.type?{}:l.val,e[l.name].__dt_wrapper=!0,o.extend(t,e[l.name],l.propExt)}},o.register=l=function(e,n){if(t.isArray(e))for(var a=0,r=e.length;a<r;a++)o.register(e[a],n);else{var l,i,s,d,u=e.split("."),c=me,f=function(t,e){for(var n=0,a=t.length;n<a;n++)if(t[n].name===e)return t[n];return null};for(l=0,i=u.length;l<i;l++){var p=f(c,s=(d=-1!==u[l].indexOf("()"))?u[l].replace("()",""):u[l]);p||(p={name:s,val:{},methodExt:[],propExt:[],type:"object"},c.push(p)),l===i-1?(p.val=n,p.type="function"==typeof n?"function":t.isPlainObject(n)?"object":"other"):c=d?p.methodExt:p.propExt}}},o.registerPlural=i=function(e,n,r){o.register(e,r),o.register(n,function(){var e=r.apply(this,arguments);return e===this?this:e instanceof o?e.length?t.isArray(e[0])?new o(e.context,e[0]):e[0]:a:e})};var ge=function(e,n){if(t.isArray(e))return t.map(e,function(t){return ge(t,n)});if("number"==typeof e)return[n[e]];var a=t.map(n,function(t,e){return t.nTable});return t(a).filter(e).map(function(e){var r=t.inArray(this,a);return n[r]}).toArray()};l("tables()",function(t){return t!==a&&null!==t?new o(ge(t,this.context)):this}),l("table()",function(t){var e=this.tables(t),n=e.context;return n.length?new o(n[0]):e}),i("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),i("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),i("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),i("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),i("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),l("draw()",function(t){return this.iterator("table",function(e){"page"===t?it(e):("string"==typeof t&&(t="full-hold"!==t),st(e,!1===t))})}),l("page()",function(t){return t===a?this.page.info().page:this.iterator("table",function(e){Et(e,t)})}),l("page.info()",function(t){if(0===this.context.length)return a;var e=this.context[0],n=e._iDisplayStart,r=e.oFeatures.bPaginate?e._iDisplayLength:-1,o=e.fnRecordsDisplay(),l=-1===r;return{page:l?0:Math.floor(n/r),pages:l?1:Math.ceil(o/r),start:n,end:e.fnDisplayEnd(),length:r,recordsTotal:e.fnRecordsTotal(),recordsDisplay:o,serverSide:"ssp"===he(e)}}),l("page.len()",function(t){return t===a?0!==this.context.length?this.context[0]._iDisplayLength:a:this.iterator("table",function(e){Pt(e,t)})});var ye=function(t,e,n){if(n){var a=new o(t);a.one("draw",function(){n(a.ajax.json())})}if("ssp"==he(t))st(t,e);else{Ht(t,!0);var r=t.jqXHR;r&&4!==r.readyState&&r.abort(),ft(t,[],function(n){Q(t);for(var a=bt(t,n),r=0,o=a.length;r<o;r++)U(t,a[r]);st(t,e),Ht(t,!1)})}};l("ajax.json()",function(){var t=this.context;if(t.length>0)return t[0].json}),l("ajax.params()",function(){var t=this.context;if(t.length>0)return t[0].oAjaxData}),l("ajax.reload()",function(t,e){return this.iterator("table",function(n){ye(n,!1===e,t)})}),l("ajax.url()",function(e){var n=this.context;return e===a?0===n.length?a:(n=n[0]).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})}),l("ajax.url().load()",function(t,e){return this.iterator("table",function(n){ye(n,!1===e,t)})});var ve=function(e,n,o,l,i){var s,d,u,c,f,p,h=[],m=typeof n;for(n&&"string"!==m&&"function"!==m&&n.length!==a||(n=[n]),u=0,c=n.length;u<c;u++)for(f=0,p=(d=n[u]&&n[u].split&&!n[u].match(/[\[\(:]/)?n[u].split(","):[n[u]]).length;f<p;f++)(s=o("string"==typeof d[f]?t.trim(d[f]):d[f]))&&s.length&&(h=h.concat(s));var b=r.selector[e];if(b.length)for(u=0,c=b.length;u<c;u++)h=b[u](l,i,h);return C(h)},xe=function(e){return e||(e={}),e.filter&&e.search===a&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},Ie=function(t){for(var e=0,n=t.length;e<n;e++)if(t[e].length>0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},Fe=function(e,n){var a,r=[],o=e.aiDisplay,l=e.aiDisplayMaster,i=n.search,s=n.order,d=n.page;if("ssp"==he(e))return"removed"===i?[]:F(0,l.length);if("current"==d)for(c=e._iDisplayStart,f=e.fnDisplayEnd();c<f;c++)r.push(o[c]);else if("current"==s||"applied"==s){if("none"==i)r=l.slice();else if("applied"==i)r=o.slice();else if("removed"==i){for(var u={},c=0,f=o.length;c<f;c++)u[o[c]]=null;r=t.map(l,function(t){return u.hasOwnProperty(t)?null:t})}}else if("index"==s||"original"==s)for(c=0,f=e.aoData.length;c<f;c++)"none"==i?r.push(c):(-1===(a=t.inArray(c,o))&&"removed"==i||a>=0&&"applied"==i)&&r.push(c);return r};l("rows()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=xe(n);var r=this.iterator("table",function(r){return function(e,n,r){var o;return ve("row",n,function(n){var l=b(n),i=e.aoData;if(null!==l&&!r)return[l];if(o||(o=Fe(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.parentNode?[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=S(I(e.aoData,o,"nTr"));return t(f).filter(n).map(function(){return this._DT_RowIndex}).toArray()},e,r)}(r,e,n)},1);return r.selector.rows=e,r.selector.opts=n,r}),l("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||a},1)}),l("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return I(t.aoData,e,"_aData")},1)}),i("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)}),i("rows().invalidate()","row().invalidate()",function(t){return this.iterator("row",function(e,n){et(e,n,t)})}),i("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),i("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,a=0,r=n.length;a<r;a++)for(var l=0,i=this[a].length;l<i;l++){var s=n[a].rowIdFn(n[a].aoData[this[a][l]]._aData);e.push((!0===t?"#":"")+s)}return new o(n,e)}),i("rows().remove()","row().remove()",function(){var t=this;return this.iterator("row",function(e,n,r){var o,l,i,s,d,u,c=e.aoData,f=c[n];for(c.splice(n,1),o=0,l=c.length;o<l;o++)if(u=(d=c[o]).anCells,null!==d.nTr&&(d.nTr._DT_RowIndex=o),null!==u)for(i=0,s=u.length;i<s;i++)u[i]._DT_CellIndex.row=o;tt(e.aiDisplayMaster,n),tt(e.aiDisplay,n),tt(t[r],n,!1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,fe(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<n;e++)t.aoData[e].idx=e}),this}),l("rows.add()",function(e){var n=this.iterator("table",function(t){var n,a,r,o=[];for(a=0,r=e.length;a<r;a++)(n=e[a]).nodeName&&"TR"===n.nodeName.toUpperCase()?o.push($(t,n)[0]):o.push(U(t,n));return o},1),a=this.rows(-1);return a.pop(),t.merge(a,n),a}),l("row()",function(t,e){return Ie(this.rows(t,e))}),l("row().data()",function(e){var n=this.context;if(e===a)return n.length&&this.length?n[0].aoData[this[0]]._aData:a;var r=n[0].aoData[this[0]];return r._aData=e,t.isArray(e)&&r.nTr&&r.nTr.id&&Z(n[0].rowId)(e,r.nTr.id),et(n[0],this[0],"data"),this}),l("row().node()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null}),l("row.add()",function(e){e instanceof t&&e.length&&(e=e[0]);var n=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?$(t,e)[0]:U(t,e)});return this.row(n[0])});var Se=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)}},we=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(),Ce(n[0]))}},Ce=function(t){var e=new o(t),n=t.aoData;e.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),x(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=H(a),s=0,d=n.length;s<d;s++)(l=n[s])._details&&l._details.children("td[colspan]").attr("colspan",i)}),e.on("destroy.dt.DT_details",function(a,r){if(t===r)for(var o=0,l=n.length;o<l;o++)n[o]._details&&Se(e,o)}))};l("row().child()",function(e,n){var r=this.context;return e===a?r.length&&this.length?r[0].aoData[this[0]]._details:a:(!0===e?this.child.show():!1===e?Se(this):r.length&&this.length&&function(e,n,a,r){var o=[],l=function(n,a){if(t.isArray(n)||n instanceof t)for(var r=0,i=n.length;r<i;r++)l(n[r],a);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())o.push(n);else{var s=t("<tr><td/></tr>").addClass(a);t("td",s).addClass(a).html(n)[0].colSpan=H(e),o.push(s[0])}};l(a,r),n._details&&n._details.detach(),n._details=t(o),n._detailsShow&&n._details.insertAfter(n.nTr)}(r[0],r[0].aoData[this[0]],e,n),this)}),l(["row().child.show()","row().child().show()"],function(t){return we(this,!0),this}),l(["row().child.hide()","row().child().hide()"],function(){return we(this,!1),this}),l(["row().child.remove()","row().child().remove()"],function(){return Se(this),this}),l("row().child.isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1});var De=/^([^:]+):(name|visIdx|visible)$/,Te=function(t,e,n,a,r){for(var o=[],l=0,i=r.length;l<i;l++)o.push(X(t,r[l],e));return o};l("columns()",function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=xe(n);var r=this.iterator("table",function(a){return function(e,n,a){var r=e.aoColumns,o=x(r,"sName"),l=x(r,"nTh");return ve("column",n,function(n){var i=b(n);if(""===n)return F(r.length);if(null!==i)return[i>=0?i:r.length+i];if("function"==typeof n){var s=Fe(e,a);return t.map(r,function(t,a){return n(a,Te(e,a,0,0,s),l[a])?a:null})}var d="string"==typeof n?n.match(De):"";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[E(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)}(a,e,n)},1);return r.selector.cols=e,r.selector.opts=n,r}),i("columns().header()","column().header()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),i("columns().footer()","column().footer()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),i("columns().data()","column().data()",function(){return this.iterator("column-rows",Te,1)}),i("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),i("columns().cache()","column().cache()",function(t){return this.iterator("column-rows",function(e,n,a,r,o){return I(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)},1)}),i("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,a,r){return I(t.aoData,r,"anCells",e)},1)}),i("columns().visible()","column().visible()",function(e,n){var r=this,o=this.iterator("column",function(n,r){if(e===a)return n.aoColumns[r].bVisible;!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,x(d,"bVisible"),n+1);for(l=0,i=c.length;l<i;l++)s=c[l].nTr,o=c[l].anCells,s&&s.insertBefore(o[n],o[f]||null)}else t(x(e.aoData,"anCells",n)).detach();u.bVisible=r}}(n,r,e)});return e!==a&&this.iterator("table",function(o){lt(o,o.aoHeader),lt(o,o.aoFooter),o.aiDisplay.length||t(o.nTBody).find("td[colspan]").attr("colspan",H(o)),ae(o),r.iterator("column",function(t,a){ce(t,null,"column-visibility",[t,a,e,n])}),(n===a||n)&&r.columns.adjust()}),o}),i("columns().indexes()","column().index()",function(t){return this.iterator("column",function(e,n){return"visible"===t?O(e,n):n},1)}),l("columns.adjust()",function(){return this.iterator("table",function(t){j(t)},1)}),l("column.index()",function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return E(n,e);if("fromData"===t||"toVisible"===t)return O(n,e)}}),l("column()",function(t,e){return Ie(this.columns(t,e))});l("cells()",function(e,n,r){if(t.isPlainObject(e)&&(e.row===a?(r=e,e=null):(r=n,n=null)),t.isPlainObject(n)&&(r=n,n=null),null===n||n===a)return this.iterator("table",function(n){return function(e,n,r){var o,l,i,s,d,u,c,f=e.aoData,p=Fe(e,r),h=S(I(f,p,"anCells")),m=t([].concat.apply([],h)),b=e.aoColumns.length;return ve("cell",n,function(n){var r="function"==typeof n;if(null===n||n===a||r){for(l=[],i=0,s=p.length;i<s;i++)for(o=p[i],d=0;d<b;d++)u={row:o,column:d},r?(c=f[o],n(u,X(e,o,d),c.anCells?c.anCells[d]:null)&&l.push(u)):l.push(u);return l}if(t.isPlainObject(n))return n.column!==a&&n.row!==a&&-1!==t.inArray(n.row,p)?[n]:[];var h=m.filter(n).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray();return h.length||!n.nodeName?h:(c=t(n).closest("*[data-dt-row]")).length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[]},e,r)}(n,e,xe(r))});var o,l,i,s,d=r?{page:r.page,order:r.order,search:r.search}:{},u=this.columns(n,d),c=this.rows(e,d),f=this.iterator("table",function(t,e){var n=[];for(o=0,l=c[e].length;o<l;o++)for(i=0,s=u[e].length;i<s;i++)n.push({row:c[e][o],column:u[e][i]});return n},1),p=r&&r.selected?this.cells(f,r):f;return t.extend(p.selector,{cols:n,rows:e,opts:r}),p}),i("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){var r=t.aoData[e];return r&&r.anCells?r.anCells[n]:a},1)}),l("cells().data()",function(){return this.iterator("cell",function(t,e,n){return X(t,e,n)},1)}),i("cells().cache()","cell().cache()",function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",function(e,n,a){return e.aoData[n][t][a]},1)}),i("cells().render()","cell().render()",function(t){return this.iterator("cell",function(e,n,a){return X(e,n,a,t)},1)}),i("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:O(t,n)}},1)}),i("cells().invalidate()","cell().invalidate()",function(t){return this.iterator("cell",function(e,n,a){et(e,n,t,a)})}),l("cell()",function(t,e,n){return Ie(this.cells(t,e,n))}),l("cell().data()",function(t){var e=this.context,n=this[0];return t===a?e.length&&n.length?X(e[0],n[0].row,n[0].column):a:(q(e[0],n[0].row,n[0].column,t),et(e[0],n[0].row,"data",n[0].column),this)}),l("order()",function(e,n){var r=this.context;return e===a?0!==r.length?r[0].aaSorting:a:("number"==typeof e?e=[[e,n]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),l("order.listener()",function(t,e,n){return this.iterator("table",function(a){te(a,t,e,n)})}),l("order.fixed()",function(e){if(!e){var n=this.context,r=n.length?n[0].aaSortingFixed:a;return t.isArray(r)?{pre:r}:r}return this.iterator("table",function(n){n.aaSortingFixed=t.extend(!0,{},e)})}),l(["columns().order()","column().order()"],function(e){var n=this;return this.iterator("table",function(a,r){var o=[];t.each(n[r],function(t,n){o.push([n,e])}),a.aaSorting=o})}),l("search()",function(e,n,r,o){var l=this.context;return e===a?0!==l.length?l[0].oPreviousSearch.sSearch:a:this.iterator("table",function(a){a.oFeatures.bFilter&&yt(a,t.extend({},a.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)})}),i("columns().search()","column().search()",function(e,n,r,o){return this.iterator("column",function(l,i){var s=l.aoPreSearchCols;if(e===a)return s[i].sSearch;l.oFeatures.bFilter&&(t.extend(s[i],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),yt(l,l.oPreviousSearch,1))})}),l("state()",function(){return this.context.length?this.context[0].oSavedState:null}),l("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),l("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),l("state.save()",function(){return this.iterator("table",function(t){ae(t)})}),s.versionCheck=s.fnVersionCheck=function(t){for(var e,n,a=s.version.split("."),r=t.split("."),o=0,l=r.length;o<l;o++)if((e=parseInt(a[o],10)||0)!==(n=parseInt(r[o],10)||0))return e>n;return!0},s.isDataTable=s.fnIsDataTable=function(e){var n=t(e).get(0),a=!1;return e instanceof s.Api||(t.each(s.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)},s.tables=s.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var a=t.map(s.settings,function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable});return n?new o(a):a},s.camelToHungarian=T,l("$()",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){l(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})}),l("clear()",function(){return this.iterator("table",function(t){Q(t)})}),l("settings()",function(){return new o(this.context,this.context)}),l("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),l("data()",function(){return this.iterator("table",function(t){return x(t.aoData,"_aData")}).flatten()}),l("destroy()",function(n){return n=n||!1,this.iterator("table",function(a){var r,l=a.nTableWrapper.parentNode,i=a.oClasses,d=a.nTable,u=a.nTBody,c=a.nTHead,f=a.nTFoot,p=t(d),h=t(u),m=t(a.nTableWrapper),b=t.map(a.aoData,function(t){return t.nTr});a.bDestroying=!0,ce(a,"aoDestroyCallback","destroy",[a]),n||new o(a).columns().visible(!0),m.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+a.sInstance),d!=c.parentNode&&(p.children("thead").detach(),p.append(c)),f&&d!=f.parentNode&&(p.children("tfoot").detach(),p.append(f)),a.aaSorting=[],a.aaSortingFixed=[],ee(a),t(b).removeClass(a.asStripeClasses.join(" ")),t("th, td",c).removeClass(i.sSortable+" "+i.sSortableAsc+" "+i.sSortableDesc+" "+i.sSortableNone),h.children().detach(),h.append(b);var g=n?"remove":"detach";p[g](),m[g](),!n&&l&&(l.insertBefore(d,a.nTableReinsertBefore),p.css("width",a.sDestroyWidth).removeClass(i.sTable),(r=a.asDestroyStripes.length)&&h.children().each(function(e){t(this).addClass(a.asDestroyStripes[e%r])}));var y=t.inArray(a,s.settings);-1!==y&&s.settings.splice(y,1)})}),t.each(["column","row","cell"],function(t,e){l(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)})})}),l("i18n()",function(e,n,r){var o=this.context[0],l=K(e)(o.oLanguage);return l===a&&(l=n),r!==a&&t.isPlainObject(l)&&(l=l[r]!==a?l[r]:l._),l.replace("%d",r)}),s.version="1.10.21",s.settings=[],s.models={},s.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},s.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},s.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},s.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){return{}}},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({},s.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},D(s.defaults),s.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},D(s.defaults.column),s.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"==he(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==he(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},s.ext=r={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:s.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:s.version},t.extend(r,{afnFiltering:r.search,aTypes:r.type.detect,ofnSearch:r.type.search,oSort:r.type.order,afnSortData:r.order,aoFeatures:r.feature,oApi:r.internal,oStdClasses:r.classes,oPagination:r.pager}),t.extend(s.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 _e=s.ext.pager;function Ae(t,e){var n=[],a=_e.numbers_length,r=Math.floor(a/2);return e<=a?n=F(0,e):t<=r?((n=F(0,a-2)).push("ellipsis"),n.push(e-1)):t>=e-1-r?((n=F(e-(a-2),e)).splice(0,0,"ellipsis"),n.splice(0,0,0)):((n=F(t-r+2,t+r-1)).push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}t.extend(_e,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Ae(t,e)]},simple_numbers:function(t,e){return["previous",Ae(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Ae(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Ae(t,e),"last"]},_numbers:Ae,numbers_length:7}),t.extend(!0,s.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,g,y=f.sPageButtonDisabled,v=function(t){Et(e,t.data.action,!0)};for(r=0,l=a.length;r<l;r++)if(c=a[r],t.isArray(c)){var x=t("<"+(c.DT_el||"div")+"/>").appendTo(n);b(x,c)}else{switch(d=null,u=c,g=e.iTabIndex,c){case"ellipsis":n.append('<span class="ellipsis">&#x2026;</span>');break;case"first":d=p.sFirst,0===i&&(g=-1,u+=" "+y);break;case"previous":d=p.sPrevious,0===i&&(g=-1,u+=" "+y);break;case"next":d=p.sNext,0!==s&&i!==s-1||(g=-1,u+=" "+y);break;case"last":d=p.sLast,i===s-1&&(g=-1,u+=" "+y);break;default:d=c+1,u=i===c?f.sPageButtonActive:""}null!==d&&(de(t("<a>",{class:f.sPageButton+" "+u,"aria-controls":e.sTableId,"aria-label":h[c],"data-dt-idx":m,tabindex:g,id:0===o&&"string"==typeof c?e.sTableId+"_"+c:null}).html(d).appendTo(n),{action:c},v),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+"]").trigger("focus")}}}),t.extend(s.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return y(t,n)?"num"+n:null},function(t,e){if(t&&!(t instanceof Date)&&!f.test(t))return null;var n=Date.parse(t);return null!==n&&!isNaN(n)||m(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return y(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return v(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return v(t,n,!0)?"html-num-fmt"+n:null},function(t,e){return m(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(s.ext.type.search,{html:function(t){return m(t)?t:"string"==typeof t?t.replace(u," ").replace(c,""):""},string:function(t){return m(t)?t:"string"==typeof t?t.replace(u," "):t}});var Be=function(t,e,n,a){return 0===t||t&&"-"!==t?(e&&(t=g(t,e)),t.replace&&(n&&(t=t.replace(n,"")),a&&(t=t.replace(a,""))),1*t):-1/0};function ke(e){t.each({num:function(t){return Be(t,e)},"num-fmt":function(t){return Be(t,e,h)},"html-num":function(t){return Be(t,e,c)},"html-num-fmt":function(t){return Be(t,e,c,h)}},function(t,n){r.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(r.type.search[t+e]=r.type.search.html)})}t.extend(r.type.order,{"date-pre":function(t){var e=Date.parse(t);return isNaN(e)?-1/0:e},"html-pre":function(t){return m(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return m(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),ke(""),t.extend(!0,s.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("<div/>").addClass(r.sSortJUIWrapper).append(n.contents()).append(t("<span/>").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 Ne=function(t){return"string"==typeof t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};function Le(t){return function(){var e=[oe(this[s.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return s.ext.internal[t].apply(this,e)}}return s.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 Ne(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:Ne,filter:Ne}}},t.extend(s.ext.internal,{_fnExternApiFunc:Le,_fnBuildAjax:ft,_fnAjaxUpdate:pt,_fnAjaxParameters:ht,_fnAjaxUpdateDraw:mt,_fnAjaxDataSrc:bt,_fnAddColumn:P,_fnColumnOptions:R,_fnAdjustColumnSizing:j,_fnVisibleToColumnIndex:E,_fnColumnIndexToVisible:O,_fnVisbleColumns:H,_fnGetColumns:M,_fnColumnTypes:W,_fnApplyColumnDefs:z,_fnHungarianMap:D,_fnCamelToHungarian:T,_fnLanguageCompat:_,_fnBrowserDetect:N,_fnAddData:U,_fnAddTr:$,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==a?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,n,a){return t.inArray(a,e.aoData[n].anCells)},_fnGetCellData:X,_fnSetCellData:q,_fnSplitObjNotation:G,_fnGetObjectDataFn:K,_fnSetObjectDataFn:Z,_fnGetDataMaster:Y,_fnClearTable:Q,_fnDeleteIndex:tt,_fnInvalidate:et,_fnGetRowElements:nt,_fnCreateTr:at,_fnBuildHead:ot,_fnDrawHead:lt,_fnDraw:it,_fnReDraw:st,_fnAddOptionsHtml:dt,_fnDetectHeader:ut,_fnGetUniqueThs:ct,_fnFeatureHtmlFilter:gt,_fnFilterComplete:yt,_fnFilterCustom:vt,_fnFilterColumn:xt,_fnFilter:It,_fnFilterCreateSearch:Ft,_fnEscapeRegex:St,_fnFilterData:Dt,_fnFeatureHtmlInfo:At,_fnUpdateInfo:Bt,_fnInfoMacros:kt,_fnInitialise:Nt,_fnInitComplete:Lt,_fnLengthChange:Pt,_fnFeatureHtmlLength:Rt,_fnFeatureHtmlPaginate:jt,_fnPageChange:Et,_fnFeatureHtmlProcessing:Ot,_fnProcessingDisplay:Ht,_fnFeatureHtmlTable:Mt,_fnScrollDraw:Wt,_fnApplyToChildren:zt,_fnCalculateColumnWidths:$t,_fnThrottle:Xt,_fnConvertToWidth:qt,_fnGetWidestNode:Vt,_fnGetMaxLenString:Jt,_fnStringToCss:Gt,_fnSortFlatten:Kt,_fnSort:Zt,_fnSortAria:Yt,_fnSortListener:Qt,_fnSortAttachListener:te,_fnSortingClasses:ee,_fnSortData:ne,_fnSaveState:ae,_fnLoadState:re,_fnSettingsFromNode:oe,_fnLog:le,_fnMap:ie,_fnBindAction:de,_fnCallbackReg:ue,_fnCallbackFire:ce,_fnLengthOverflow:fe,_fnRenderer:pe,_fnDataSource:he,_fnRowAttributes:rt,_fnExtend:se,_fnCalculateEnd:function(){}}),t.fn.dataTable=s,s.$=t,t.fn.dataTableSettings=s.settings,t.fn.dataTableExt=s.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(s,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;function s(e,n,a){t.fn.animate?e.stop().fadeIn(n,a):(e.css("display","block"),a&&a.call(e))}function d(e,n,a){t.fn.animate?e.stop().fadeOut(n,a):(e.css("display","none"),a&&a.call(e))}var u,c=function(e,n){if(!(this instanceof c))return function(t){return new c(t,e).container()};void 0===n&&(n={}),!0===n&&(n={}),t.isArray(n)&&(n={buttons:n}),this.c=t.extend(!0,{},c.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(c.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 r=e.split("-"),o=this.s,l=0,i=r.length-1;l<i;l++)o=o.buttons[1*r[l]];n=o.buttons,e=1*r[r.length-1]}return this._expandButton(n,t,o!==a,e),this._draw(),this},container:function(){return this.dom.container},disable:function(e){var n=this._nodeToButton(e);return t(n.node).addClass(this.c.dom.button.disabled).attr("disabled",!0),this},destroy:function(){t("body").off("keyup."+this.s.namespace);var e,n,a=this.s.buttons.slice();for(e=0,n=a.length;e<n;e++)this.remove(a[e].node);this.dom.container.remove();var r=this.s.dt.settings()[0];for(e=0,n=r.length;e<n;e++)if(r.inst===this){r.splice(e,1);break}return this},enable:function(e,n){if(!1===n)return this.disable(e);var a=this._nodeToButton(e);return t(a.node).removeClass(this.c.dom.button.disabled).removeAttr("disabled"),this},name:function(){return this.c.name},node:function(e){if(!e)return this.dom.container;var n=this._nodeToButton(e);return t(n.node)},processing:function(e,n){var r=this.s.dt,o=this._nodeToButton(e);return n===a?t(o.node).hasClass("processing"):(t(o.node).toggleClass("processing",n),t(r.table().node()).triggerHandler("buttons-processing.dt",[n,r.button(e),r,t(e),o.conf]),this)},remove:function(e){var n=this._nodeToButton(e),a=this._nodeToHost(e),r=this.s.dt;if(n.buttons.length)for(var o=n.buttons.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<i;l++)this.add(o[l]);a.on("destroy",function(t,n){n===r&&e.destroy()}),t("body").on("keyup."+this.s.namespace,function(t){if(!n.activeElement||n.activeElement===n.body){var a=String.fromCharCode(t.keyCode).toLowerCase();-1!==e.s.listenKeys.toLowerCase().indexOf(a)&&e._keypress(a,t)}})},_addKey:function(e){e.key&&(this.s.listenKeys+=t.isPlainObject(e.key)?e.key.key:e.key)},_draw:function(t,e){t||(t=this.dom.container,e=this.s.buttons),t.children().detach();for(var n=0,a=e.length;n<a;n++)t.append(e[n].inserter),t.append(" "),e[n].buttons&&e[n].buttons.length&&this._draw(e[n].collection,e[n].buttons)},_expandButton:function(e,n,r,o){for(var l=this.s.dt,i=t.isArray(n)?n:[n],s=0,d=i.length;s<d;s++){var u=this._resolveExtends(i[s]);if(u)if(t.isArray(u))this._expandButton(e,u,r,o);else{var c=this._buildButton(u,r);c&&(o!==a&&null!==o?(e.splice(o,0,c),o++):e.push(c),c.conf.buttons&&(c.collection=t("<"+this.c.dom.collection.tag+"/>"),c.conf._collection=c.collection,this._expandButton(c.buttons,c.conf.buttons,!0,o)),u.init&&u.init.call(l.button(c.node),l,t(c.node),u),0)}}},_buildButton:function(e,n){var r=this.c.dom.button,o=this.c.dom.buttonLiner,i=this.c.dom.collection,s=this.s.dt,d=function(t){return"function"==typeof t?t(s,p,e):t};if(n&&i.button&&(r=i.button),n&&i.buttonLiner&&(o=i.buttonLiner),e.available&&!e.available(s,e))return!1;var u=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])},c=e.tag||r.tag,f=e.clickBlurs===a||e.clickBlurs,p=t("<"+c+"/>").addClass(r.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(),!p.hasClass(r.disabled)&&e.action&&u(t,s,p,e),f&&p.trigger("blur")}).on("keyup.dtb",function(t){13===t.keyCode&&!p.hasClass(r.disabled)&&e.action&&u(t,s,p,e)});if("a"===c.toLowerCase()&&p.attr("href","#"),"button"===c.toLowerCase()&&p.attr("type","button"),o.tag){var h=t("<"+o.tag+"/>").html(d(e.text)).addClass(o.className);"a"===o.tag.toLowerCase()&&h.attr("href","#"),p.append(h)}else p.html(d(e.text));!1===e.enabled&&p.addClass(r.disabled),e.className&&p.addClass(e.className),e.titleAttr&&p.attr("title",d(e.titleAttr)),e.attr&&p.attr(e.attr),e.namespace||(e.namespace=".dt-button-"+l++);var m,b=this.c.dom.buttonContainer;return m=b&&b.tag?t("<"+b.tag+"/>").addClass(b.className).append(p):p,this._addKey(e),this.c.buttonCreated&&(m=this.c.buttonCreated(e,m)),{conf:e,node:p.get(0),inserter:m,buttons:[],inCollection:n,collection:null}},_nodeToButton:function(t,e){e||(e=this.s.buttons);for(var n=0,a=e.length;n<a;n++){if(e[n].node===t)return e[n];if(e[n].buttons.length){var r=this._nodeToButton(t,e[n].buttons);if(r)return r}}},_nodeToHost:function(t,e){e||(e=this.s.buttons);for(var n=0,a=e.length;n<a;n++){if(e[n].node===t)return e;if(e[n].buttons.length){var r=this._nodeToHost(t,e[n].buttons);if(r)return r}}},_keypress:function(e,n){if(!n._buttonsHandled){var a=function(a,r){if(a.key)if(a.key===e)n._buttonsHandled=!0,t(r).click();else if(t.isPlainObject(a.key)){if(a.key.key!==e)return;if(a.key.shiftKey&&!n.shiftKey)return;if(a.key.altKey&&!n.altKey)return;if(a.key.ctrlKey&&!n.ctrlKey)return;if(a.key.metaKey&&!n.metaKey)return;n._buttonsHandled=!0,t(r).click()}},r=function(t){for(var e=0,n=t.length;e<n;e++)a(t[e].conf,t[e].node),t[e].buttons.length&&r(t[e].buttons)};r(this.s.buttons)}},_removeKey:function(e){if(e.key){var n=t.isPlainObject(e.key)?e.key.key:e.key,a=this.s.listenKeys.split(""),r=t.inArray(n,a);a.splice(r,1),this.s.listenKeys=a.join("")}},_resolveExtends:function(e){var n,r,o=this.s.dt,l=function(n){for(var r=0;!t.isPlainObject(n)&&!t.isArray(n);){if(n===a)return;if("function"==typeof n){if(!(n=n(o,e)))return!1}else if("string"==typeof n){if(!i[n])throw"Unknown button type: "+n;n=i[n]}if(++r>30)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<r;n++)e.buttons.push(u[n]);e.postfixButtons=null}var c=e.prefixButtons;if(c){for(e.buttons||(e.buttons=[]),n=0,r=c.length;n<r;n++)e.buttons.splice(n,0,c[n]);e.prefixButtons=null}e.extend=s.extend}return e},_popover:function(a,r,o){var l=r,i=this.c,u=t.extend({align:"button-left",autoClose:!1,background:!0,backgroundClassName:"dt-button-background",contentClassName:i.dom.collection.className,collectionLayout:"",collectionTitle:"",dropup:!1,fade:400,rightAlignClassName:"dt-button-right",tag:i.dom.collection.tag},o),f=r.node(),p=function(){d(t(".dt-button-collection"),u.fade,function(){t(this).detach()}),t(l.buttons('[aria-haspopup="true"][aria-expanded="true"]').nodes()).attr("aria-expanded","false"),t("div.dt-button-background").off("click.dtb-collection"),c.background(!1,u.backgroundClassName,u.fade,f),t("body").off(".dtb-collection"),l.off("buttons-action.b-internal")};!1===a&&p();var h=t(l.buttons('[aria-haspopup="true"][aria-expanded="true"]').nodes());h.length&&(f=h.eq(0),p());var m=t("<div/>").addClass("dt-button-collection").addClass(u.collectionLayout).css("display","none");a=t(a).addClass(u.contentClassName).attr("role","menu").appendTo(m),f.attr("aria-expanded","true"),f.parents("body")[0]!==n.body&&(f=n.body.lastChild),u.collectionTitle&&m.prepend('<div class="dt-button-collection-title">'+u.collectionTitle+"</div>"),s(m.insertAfter(f));var b=t(r.table().container()),g=m.css("position");if("dt-container"===u.align&&(f=f.parent(),m.css("width",b.width())),"absolute"===g&&(m.hasClass(u.rightAlignClassName)||m.hasClass(u.leftAlignClassName)||"dt-container"===u.align)){var y=f.position();m.css({top:y.top+f.outerHeight(),left:y.left});var v=m.outerHeight(),x=b.offset().top+b.height(),I=y.top+f.outerHeight()+v-x,F=y.top-v,S=(P=b.offset().top)-F,w=y.top-v-5;(I>S||u.dropup)&&-w<P&&m.css("top",w);var C,D,T=b.offset().left,_=T+b.width(),A=(L=m.offset().left)+m.width(),B=(N=f.offset().left)+f.outerWidth(),k=0;if(m.hasClass(u.rightAlignClassName)){if(T>L+(k=B-A))k+=(C=T-(L+k))>(D=_-(A+k))?D:C}else if(_<A+(k=T-L))k+=(C=T-(L+k))>(D=_-(A+k))?D:C;m.css("left",m.position().left+k)}else if("absolute"===g){y=f.position();m.css({top:y.top+f.outerHeight(),left:y.left});v=m.outerHeight();var N,L,P,R=f.offset().top;k=0,B=(N=f.offset().left)+f.outerWidth(),A=(L=m.offset().left)+a.width(),w=y.top-v-5,x=b.offset().top+b.height(),I=y.top+f.outerHeight()+v-x,F=y.top-v;(I>(S=(P=b.offset().top)-F)||u.dropup)&&-w<P&&m.css("top",w),k="button-right"===u.align?B-A:N-L,m.css("left",m.position().left+k)}else{(R=m.height()/2)>t(e).height()/2&&(R=t(e).height()/2),m.css("marginTop",-1*R)}u.background&&c.background(!0,u.backgroundClassName,u.fade,f),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",r=t(e.target).parent()[0];(!t(e.target).parents()[n]().filter(a).length&&!t(r).hasClass("dt-buttons")||t(e.target).hasClass("dt-button-background"))&&p()}).on("keyup.dtb-collection",function(t){27===t.keyCode&&p()}),u.autoClose&&setTimeout(function(){l.on("buttons-action.b-internal",function(t,e,n,a){a[0]!==f[0]&&p()})},0),t(m).trigger("buttons-popover.dt")}}),c.background=function(e,r,o,l){o===a&&(o=400),l||(l=n.body),e?s(t("<div/>").addClass(r).css("display","none").insertAfter(l),o):d(t("div."+r),o,function(){t(this).removeClass(r).remove()})},c.instanceSelector=function(e,n){if(e===a||null===e)return t.map(n,function(t){return t.inst});var r=[],o=t.map(n,function(t){return t.name}),l=function(e){if(t.isArray(e))for(var a=0,i=e.length;a<i;a++)l(e[a]);else if("string"==typeof e)if(-1!==e.indexOf(","))l(e.split(","));else{var s=t.inArray(t.trim(e),o);-1!==s&&r.push(n[s].inst)}else"number"==typeof e&&r.push(n[e].inst)};return l(e),r},c.buttonSelector=function(e,n){for(var r=[],o=function(t,e,n){for(var r,l,i=0,s=e.length;i<s;i++)(r=e[i])&&(l=n!==a?n+i:i+"",t.push({node:r.node,name:r.conf.name,idx:l}),r.buttons&&o(t,r.buttons,l+"-"))},l=function(e,n){var i,s,d=[];o(d,n.s.buttons);var u=t.map(d,function(t){return t.node});if(t.isArray(e)||e instanceof t)for(i=0,s=e.length;i<s;i++)l(e[i],n);else if(null===e||e===a||"*"===e)for(i=0,s=d.length;i<s;i++)r.push({inst:n,node:d[i].node});else if("number"==typeof e)r.push({inst:n,node:n.s.buttons[e].node});else if("string"==typeof e)if(-1!==e.indexOf(",")){var c=e.split(",");for(i=0,s=c.length;i<s;i++)l(t.trim(c[i]),n)}else if(e.match(/^\d+(\-\d+)*$/)){var f=t.map(d,function(t){return t.idx});r.push({inst:n,node:d[t.inArray(e,f)].node})}else if(-1!==e.indexOf(":name")){var p=e.replace(":name","");for(i=0,s=d.length;i<s;i++)d[i].name===p&&r.push({inst:n,node:d[i].node})}else t(u).filter(e).each(function(){r.push({inst:n,node:this})});else if("object"==typeof e&&e.nodeName){var h=t.inArray(e,u);-1!==h&&r.push({inst:n,node:u[h]})}},i=0,s=e.length;i<s;i++){var d=e[i];l(n,d)}return r},c.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:""},button:{tag:"ActiveXObject"in e?"a":"button",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"span",className:""}}},c.version="1.6.3",t.extend(i,{collection:{text:function(t){return t.i18n("buttons.collection","Collection")},className:"buttons-collection",init:function(t,e,n){e.attr("aria-expanded",!1)},action:function(t,e,n,a){t.stopPropagation(),a._collection.parents("body").length?this.popover(!1,a):this.popover(a._collection,a)},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;return{extend:"collection",text:function(t){return t.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},t.page.len())},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(n.text)})},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 c.buttonSelector(c.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.register("button().popover()",function(t,e){return this.map(function(n){return n.inst._popover(t,this.button(this[0].node),e)})}),r.Api.register("buttons().containers()",function(){var e=t(),n=this._groupSelector;return this.iterator(!0,"table",function(t){if(t._buttons)for(var a=c.instanceSelector(n,t._buttons),r=0,o=a.length;r<o;r++)e=e.add(a[r].container())}),e}),r.Api.register("buttons().container()",function(){return this.containers().eq(0)}),r.Api.register("button().add()",function(t,e){var n=this.context;if(n.length){var a=c.instanceSelector(this._groupSelector,n[0]._buttons);a.length&&a[0].add(e,t)}return this.button(this._groupSelector,t)}),r.Api.register("buttons().destroy()",function(){return this.pluck("inst").unique().each(function(t){t.destroy()}),this}),r.Api.registerPlural("buttons().remove()","buttons().remove()",function(){return this.each(function(t){t.inst.remove(t.node)}),this}),r.Api.register("buttons.info()",function(e,n,r){var o=this;return!1===e?(this.off("destroy.btn-info"),d(t("#datatables_buttons_info"),400,function(){t(this).remove()}),clearTimeout(u),u=null,this):(u&&clearTimeout(u),t("#datatables_buttons_info").length&&t("#datatables_buttons_info").remove(),e=e?"<h2>"+e+"</h2>":"",s(t('<div id="datatables_buttons_info" class="dt-button-info"/>').html(e).append(t("<div/>")["string"==typeof n?"html":"append"](n)).css("display","none").appendTo("body")),r!==a&&0!==r&&(u=setTimeout(function(){o.buttons.info(!1)},r)),this.on("destroy.btn-info",function(){o.buttons.info(!1)}),this)}),r.Api.register("buttons.exportData()",function(t){if(this.context.length)return g(new r.Api(this.context[0]),t)}),r.Api.register("buttons.exportInfo()",function(t){return t||(t={}),{filename:f(t),title:h(t),messageTop:m(this,t.message||t.messageTop,"top"),messageBottom:m(this,t.messageBottom,"bottom")}});var f=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=p(e.extension);return r||(r=""),n+r},p=function(t){return null===t||t===a?null:"function"==typeof t?t():t},h=function(e){var n=p(e.title);return null===n?null:-1!==n.indexOf("*")?n.replace("*",t("head > title").text()||"Exported data"):n},m=function(e,n,a){var r=p(n);if(null===r)return null;var o=t("caption",e.table().container()).eq(0);return"*"===r?o.css("caption-side")!==a?null:o.length?o.text():"":r},b=t("<textarea/>")[0],g=function(e,n){var r=t.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(t){return o(t)},footer:function(t){return o(t)},body:function(t){return o(t)}},customizeData:null},n),o=function(t){return"string"!=typeof t?t:(t=(t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"")).replace(/<!\-\-.*?\-\->/g,""),r.stripHtml&&(t=t.replace(/<[^>]*>/g,"")),r.trim&&(t=t.replace(/^\s+|\s+$/g,"")),r.stripNewlines&&(t=t.replace(/\n/g," ")),r.decodeEntities&&(b.innerHTML=t,t=b.value),t)},l=e.columns(r.columns).indexes().map(function(t){var n=e.column(t).header();return r.format.header(n.innerHTML,t,n)}).toArray(),i=e.table().footer()?e.columns(r.columns).indexes().map(function(t){var n=e.column(t).footer();return r.format.footer(n?n.innerHTML:"",t,n)}).toArray():null,s=t.extend({},r.modifier);e.select&&"function"==typeof e.select.info&&s.selected===a&&e.rows(r.rows,t.extend({selected:!0},s)).any()&&t.extend(s,{selected:!0});for(var d=e.rows(r.rows,s).indexes().toArray(),u=e.cells(d,r.columns),c=u.render(r.orthogonal).toArray(),f=u.nodes().toArray(),p=l.length,h=[],m=0,g=0,y=p>0?c.length/p:0;g<y;g++){for(var v=[p],x=0;x<p;x++)v[x]=r.format.body(c[m],g,x,f[m]),m++;h[g]=v}var I={header:l,footer:i,body:h};return r.customizeData&&r.customizeData(I),I};function y(t,e){var n=new r.Api(t),a=e||(n.init().buttons||r.defaults.buttons);return new c(n,a).container()}return t.fn.dataTable.Buttons=c,t.fn.DataTable.Buttons=c,t(n).on("init.dt plugin-init.dt",function(t,e){if("dt"===t.namespace){var n=e.oInit.buttons||r.defaults.buttons;n&&!e._buttons&&new c(e,n).container()}}),r.ext.feature.push({fnInit:y,cFeature:"B"}),r.ext.features&&r.ext.features.register("buttons",y),c}),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],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).$),n.fn.dataTable.Buttons||require("datatables.net-buttons")(e,n),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,a){"use strict";var r=t.fn.dataTable,o={version:"1.0.4-TableTools2",clients:{},moviePath:"",nextId:1,$:function(t){return"string"==typeof t&&(t=n.getElementById(t)),t.addClass||(t.hide=function(){this.style.display="none"},t.show=function(){this.style.display=""},t.addClass=function(t){this.removeClass(t),this.className+=" "+t},t.removeClass=function(t){this.className=this.className.replace(new RegExp("\\s*"+t+"\\s*")," ").replace(/^\s+/,"").replace(/\s+$/,"")},t.hasClass=function(t){return!!this.className.match(new RegExp("\\s*"+t+"\\s*"))}),t},setMoviePath:function(t){this.moviePath=t},dispatch:function(t,e,n){var a=this.clients[t];a&&a.receiveEvent(e,n)},log:function(t){console.log("Flash: "+t)},register:function(t,e){this.clients[t]=e},getDOMObjectPosition:function(t){var e={left:0,top:0,width:t.width?t.width:t.offsetWidth,height:t.height?t.height:t.offsetHeight};for(""!==t.style.width&&(e.width=t.style.width.replace("px","")),""!==t.style.height&&(e.height=t.style.height.replace("px",""));t;)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},Client:function(t){this.handlers={},this.id=o.nextId++,this.movieId="ZeroClipboard_TableToolsMovie_"+this.id,o.register(this.id,this),t&&this.glue(t)}};o.Client.prototype={id:0,ready:!1,movie:null,clipText:"",fileName:"",action:"copy",handCursorEnabled:!0,cssEffects:!0,handlers:null,sized:!1,sheetName:"",glue:function(t,e){this.domElement=o.$(t);var a=99;this.domElement.style.zIndex&&(a=parseInt(this.domElement.style.zIndex,10)+1);var r=o.getDOMObjectPosition(this.domElement);this.div=n.createElement("div");var l=this.div.style;l.position="absolute",l.left="0px",l.top="0px",l.width=r.width+"px",l.height=r.height+"px",l.zIndex=a,void 0!==e&&""!==e&&(this.div.title=e),0!==r.width&&0!==r.height&&(this.sized=!0),this.domElement&&(this.domElement.appendChild(this.div),this.div.innerHTML=this.getHTML(r.width,r.height).replace(/&/g,"&amp;"))},positionElement:function(){var t=o.getDOMObjectPosition(this.domElement),e=this.div.style;if(e.position="absolute",e.width=t.width+"px",e.height=t.height+"px",0!==t.width&&0!==t.height){this.sized=!0;var n=this.div.childNodes[0];n.width=t.width,n.height=t.height}},getHTML:function(t,e){var n="",a="id="+this.id+"&width="+t+"&height="+e;navigator.userAgent.match(/MSIE/)?n+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+(location.href.match(/^https/i)?"https://":"http://")+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+t+'" height="'+e+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+o.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+a+'"/><param name="wmode" value="transparent"/></object>':n+='<embed id="'+this.movieId+'" src="'+o.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+t+'" height="'+e+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+a+'" wmode="transparent" />';return n},hide:function(){this.div&&(this.div.style.left="-2000px")},show:function(){this.reposition()},destroy:function(){var e=this;this.domElement&&this.div&&(t(this.div).remove(),this.domElement=null,this.div=null,t.each(o.clients,function(t,n){n===e&&delete o.clients[t]}))},reposition:function(t){if(t&&(this.domElement=o.$(t),this.domElement||this.hide()),this.domElement&&this.div){var e=o.getDOMObjectPosition(this.domElement),n=this.div.style;n.left=e.left+"px",n.top=e.top+"px"}},clearText:function(){this.clipText="",this.ready&&this.movie.clearText()},appendText:function(t){this.clipText+=t,this.ready&&this.movie.appendText(t)},setText:function(t){this.clipText=t,this.ready&&this.movie.setText(t)},setFileName:function(t){this.fileName=t,this.ready&&this.movie.setFileName(t)},setSheetData:function(t){this.ready&&this.movie.setSheetData(JSON.stringify(t))},setAction:function(t){this.action=t,this.ready&&this.movie.setAction(t)},addEventListener:function(t,e){t=t.toString().toLowerCase().replace(/^on/,""),this.handlers[t]||(this.handlers[t]=[]),this.handlers[t].push(e)},setHandCursor:function(t){this.handCursorEnabled=t,this.ready&&this.movie.setHandCursor(t)},setCSSEffects:function(t){this.cssEffects=!!t},receiveEvent:function(t,a){var r;switch(t=t.toString().toLowerCase().replace(/^on/,"")){case"load":if(this.movie=n.getElementById(this.movieId),!this.movie)return r=this,void setTimeout(function(){r.receiveEvent("load",null)},1);if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/))return r=this,setTimeout(function(){r.receiveEvent("load",null)},100),void(this.ready=!0);this.ready=!0,this.movie.clearText(),this.movie.appendText(this.clipText),this.movie.setFileName(this.fileName),this.movie.setAction(this.action),this.movie.setHandCursor(this.handCursorEnabled);break;case"mouseover":this.domElement&&this.cssEffects&&this.recoverActive&&this.domElement.addClass("active");break;case"mouseout":this.domElement&&this.cssEffects&&(this.recoverActive=!1,this.domElement.hasClass("active")&&(this.domElement.removeClass("active"),this.recoverActive=!0));break;case"mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case"mouseup":this.domElement&&this.cssEffects&&(this.domElement.removeClass("active"),this.recoverActive=!1)}if(this.handlers[t])for(var o=0,l=this.handlers[t].length;o<l;o++){var i=this.handlers[t][o];"function"==typeof i?i(this,a):"object"==typeof i&&2==i.length?i[0][i[1]](this,a):"string"==typeof i&&e[i](this,a)}}},o.hasFlash=function(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(t){if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]!==a&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return!0}return!1},e.ZeroClipboard_TableTools=o;var l=function(t,e){e.attr("id");e.parents("html").length?t.glue(e[0],""):setTimeout(function(){l(t,e)},500)},i=function(t,e){var n=e.match(/[\s\S]{1,8192}/g)||[];t.clearText();for(var a=0,r=n.length;a<r;a++)t.appendText(n[a])},s=function(t){return t.newline?t.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"},d=function(t,e){for(var n=s(e),r=t.buttons.exportData(e.exportOptions),o=e.fieldBoundary,l=e.fieldSeparator,i=new RegExp(o,"g"),d=e.escapeChar!==a?e.escapeChar:"\\",u=function(t){for(var e="",n=0,a=t.length;n<a;n++)n>0&&(e+=l),e+=o?o+(""+t[n]).replace(i,d+o)+o:t[n];return e},c=e.header?u(r.header)+n:"",f=e.footer&&r.footer?n+u(r.footer):"",p=[],h=0,m=r.body.length;h<m;h++)p.push(u(r.body[h]));return{str:c+p.join(n)+f,rows:p.length}},u={available:function(){return o.hasFlash()},init:function(t,e,n){o.moviePath=r.Buttons.swfPath;var a=new o.Client;a.setHandCursor(!0),a.addEventListener("mouseDown",function(a){n._fromFlash=!0,t.button(e[0]).trigger(),n._fromFlash=!1}),l(a,e),n._flash=a},destroy:function(t,e,n){n._flash.destroy()},fieldSeparator:",",fieldBoundary:'"',exportOptions:{},title:"*",messageTop:"*",messageBottom:"*",filename:"*",extension:".csv",header:!0,footer:!1};function c(t){for(var e="A".charCodeAt(0),n="Z".charCodeAt(0)-e+1,a="";t>=0;)a=String.fromCharCode(t%n+e)+a,t=Math.floor(t/n)-1;return a}function f(e,n,r){var o=e.createElement(n);return r&&(r.attr&&t(o).attr(r.attr),r.children&&t.each(r.children,function(t,e){o.appendChild(e)}),null!==r.text&&r.text!==a&&o.appendChild(e.createTextNode(r.text))),o}function p(t,e){var n,r,o,l=t.header[e].length;t.footer&&t.footer[e].length>l&&(l=t.footer[e].length);for(var i=0,s=t.body.length;i<s;i++){var d=t.body[i][e];if(-1!==(o=null!==d&&d!==a?d.toString():"").indexOf("\n")?((r=o.split("\n")).sort(function(t,e){return e.length-t.length}),n=r[0].length):n=o.length,n>l&&(l=n),l>40)return 52}return(l*=1.3)>6?l:6}var h,m="";m=void 0===e.XMLSerializer?new function(){this.serializeToString=function(t){return t.xml}}:new XMLSerializer;var b={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="" sheetId="1" r:id="rId1"/></sheets></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/><mergeCells count="0"/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/><numFmt numFmtId="165" formatCode="&quot;£&quot;#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="61"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},g=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(t){return t/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(t){return t/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\([\d,]+\)$/,style:61,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^[\d,]+$/,style:63},{match:/^[\d,]+\.\d{2}$/,style:64}];return r.Buttons.swfPath="//cdn.datatables.net/buttons/"+r.Buttons.version+"/swf/flashExport.swf",r.Api.register("buttons.resize()",function(){t.each(o.clients,function(t,e){e.domElement!==a&&e.domElement.parentNode&&e.positionElement()})}),r.ext.buttons.copyFlash=t.extend({},u,{className:"buttons-copy buttons-flash",text:function(t){return t.i18n("buttons.copy","Copy")},action:function(t,e,n,a){if(a._fromFlash){this.processing(!0);var r=a._flash,o=d(e,a),l=e.buttons.exportInfo(a),u=s(a),c=o.str;l.title&&(c=l.title+u+u+c),l.messageTop&&(c=l.messageTop+u+u+c),l.messageBottom&&(c=c+u+u+l.messageBottom),a.customize&&(c=a.customize(c,a,e)),r.setAction("copy"),i(r,c),this.processing(!1),e.buttons.info(e.i18n("buttons.copyTitle","Copy to clipboard"),e.i18n("buttons.copySuccess",{_:"Copied %d rows to clipboard",1:"Copied 1 row to clipboard"},data.rows),3e3)}},fieldSeparator:"\t",fieldBoundary:""}),r.ext.buttons.csvFlash=t.extend({},u,{className:"buttons-csv buttons-flash",text:function(t){return t.i18n("buttons.csv","CSV")},action:function(t,e,n,a){var r=a._flash,o=d(e,a),l=e.buttons.exportInfo(a),s=a.customize?a.customize(o.str,a,e):o.str;r.setAction("csv"),r.setFileName(l.filename),i(r,s)},escapeChar:'"'}),r.ext.buttons.excelFlash=t.extend({},u,{className:"buttons-excel buttons-flash",text:function(t){return t.i18n("buttons.excel","Excel")},action:function(e,n,r,o){this.processing(!0);var l,s,d=o._flash,u=0,y=t.parseXML(b["xl/worksheets/sheet1.xml"]),v=y.getElementsByTagName("sheetData")[0],x={_rels:{".rels":t.parseXML(b["_rels/.rels"])},xl:{_rels:{"workbook.xml.rels":t.parseXML(b["xl/_rels/workbook.xml.rels"])},"workbook.xml":t.parseXML(b["xl/workbook.xml"]),"styles.xml":t.parseXML(b["xl/styles.xml"]),worksheets:{"sheet1.xml":y}},"[Content_Types].xml":t.parseXML(b["[Content_Types].xml"])},I=n.buttons.exportData(o.exportOptions),F=function(e){s=f(y,"row",{attr:{r:l=u+1}});for(var n=0,r=e.length;n<r;n++){var i=c(n)+""+l,d=null;if(null===e[n]||e[n]===a||""===e[n]){if(!0!==o.createEmptyCells)continue;e[n]=""}e[n]=t.trim(e[n]);for(var p=0,h=g.length;p<h;p++){var m=g[p];if(e[n].match&&!e[n].match(/^0\d+/)&&e[n].match(m.match)){var b=e[n].replace(/[^\d\.\-]/g,"");m.fmt&&(b=m.fmt(b)),d=f(y,"c",{attr:{r:i,s:m.style},children:[f(y,"v",{text:b})]});break}}if(!d)if("number"==typeof e[n]||e[n].match&&e[n].match(/^-?\d+(\.\d+)?$/)&&!e[n].match(/^0\d+/))d=f(y,"c",{attr:{t:"n",r:i},children:[f(y,"v",{text:e[n]})]});else{var x=e[n].replace?e[n].replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):e[n];d=f(y,"c",{attr:{t:"inlineStr",r:i},children:{row:f(y,"is",{children:{row:f(y,"t",{text:x})}})}})}s.appendChild(d)}v.appendChild(s),u++};t("sheets sheet",x.xl["workbook.xml"]).attr("name",function(t){var e="Sheet1";return t.sheetName&&(e=t.sheetName.replace(/[\[\]\*\/\\\?\:]/g,"")),e}(o)),o.customizeData&&o.customizeData(I);var S=function(e,n){var a=t("mergeCells",y);a[0].appendChild(f(y,"mergeCell",{attr:{ref:"A"+e+":"+c(n)+e}})),a.attr("count",a.attr("count")+1),t("row:eq("+(e-1)+") c",y).attr("s","51")},w=n.buttons.exportInfo(o);w.title&&(F([w.title]),S(u,I.header.length-1)),w.messageTop&&(F([w.messageTop]),S(u,I.header.length-1)),o.header&&(F(I.header),t("row:last c",y).attr("s","2"));for(var C=0,D=I.body.length;C<D;C++)F(I.body[C]);o.footer&&I.footer&&(F(I.footer),t("row:last c",y).attr("s","2")),w.messageBottom&&(F([w.messageBottom]),S(u,I.header.length-1));var T=f(y,"cols");t("worksheet",y).prepend(T);for(var _=0,A=I.header.length;_<A;_++)T.appendChild(f(y,"col",{attr:{min:_+1,max:_+1,width:p(I,_),customWidth:1}}));o.customize&&o.customize(x,o,n),function e(n){h===a&&(h=-1===m.serializeToString(t.parseXML(b["xl/worksheets/sheet1.xml"])).indexOf("xmlns:r")),t.each(n,function(a,r){if(t.isPlainObject(r))e(r);else{if(h){var o,l,i=r.childNodes[0],s=[];for(o=i.attributes.length-1;o>=0;o--){var d=i.attributes[o].nodeName,u=i.attributes[o].nodeValue;-1!==d.indexOf(":")&&(s.push({name:d,value:u}),i.removeAttribute(d))}for(o=0,l=s.length;o<l;o++){var c=r.createAttribute(s[o].name.replace(":","_dt_b_namespace_token_"));c.value=s[o].value,i.setAttributeNode(c)}}var f=m.serializeToString(r);h&&(-1===f.indexOf("<?xml")&&(f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+f),f=f.replace(/_dt_b_namespace_token_/g,":")),f=f.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>"),n[a]=f}})}(x),d.setAction("excel"),d.setFileName(w.filename),d.setSheetData(x),i(d,""),this.processing(!1)},extension:".xlsx",createEmptyCells:!1}),r.ext.buttons.pdfFlash=t.extend({},u,{className:"buttons-pdf buttons-flash",text:function(t){return t.i18n("buttons.pdf","PDF")},action:function(t,e,n,a){this.processing(!0);var r=a._flash,o=e.buttons.exportData(a.exportOptions),l=e.buttons.exportInfo(a),s=e.table().node().offsetWidth,d=e.columns(a.columns).indexes().map(function(t){return e.column(t).header().offsetWidth/s});r.setAction("pdf"),r.setFileName(l.filename),i(r,JSON.stringify({title:l.title||"",messageTop:l.messageTop||"",messageBottom:l.messageBottom||"",colWidth:d.toArray(),orientation:a.orientation,size:a.pageSize,header:a.header?o.header:null,footer:a.footer?o.footer:null,body:o.body})),this.processing(!1)},extension:".pdf",orientation:"portrait",pageSize:"A4",newline:"\n"}),r.Buttons}),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n,a,r){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),n.fn.dataTable.Buttons||require("datatables.net-buttons")(e,n),t(n,e,e.document,a,r)}:t(jQuery,window,document)}(function(t,e,n,a,r,o){"use strict";var l=t.fn.dataTable;function i(){return a||e.JSZip}function s(){return r||e.pdfMake}l.Buttons.pdfMake=function(t){if(!t)return s();r=t},l.Buttons.jszip=function(t){if(!t)return i();a=t};var d=function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,n=function(){return t.URL||t.webkitURL||t},a=e.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in a,l=/constructor/i.test(t.HTMLElement)||t.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},d=function(t){setTimeout(function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()},4e4)},u=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},c=function(e,c,f){f||(e=u(e));var p,h=this,m="application/octet-stream"===e.type,b=function(){!function(t,e,n){for(var a=(e=[].concat(e)).length;a--;){var r=t["on"+e[a]];if("function"==typeof r)try{r.call(t,n||t)}catch(t){s(t)}}}(h,"writestart progress write writeend".split(" "))};if(h.readyState=h.INIT,r)return p=n().createObjectURL(e),void setTimeout(function(){var t,e;a.href=p,a.download=c,t=a,e=new MouseEvent("click"),t.dispatchEvent(e),b(),d(p),h.readyState=h.DONE});!function(){if((i||m&&l)&&t.FileReader){var a=new FileReader;return a.onloadend=function(){var e=i?a.result:a.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=o,h.readyState=h.DONE,b()},a.readAsDataURL(e),void(h.readyState=h.INIT)}p||(p=n().createObjectURL(e)),m?t.location.href=p:t.open(p,"_blank")||(t.location.href=p);h.readyState=h.DONE,b(),d(p)}()},f=c.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=u(t)),navigator.msSaveOrOpenBlob(t,e)}:(f.abort=function(){},f.readyState=f.INIT=0,f.WRITING=1,f.DONE=2,f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null,function(t,e,n){return new c(t,e||t.name||"download",n)})}}("undefined"!=typeof self&&self||void 0!==e&&e||this.content);l.fileSave=d;var u=function(t){var e="Sheet1";return t.sheetName&&(e=t.sheetName.replace(/[\[\]\*\/\\\?\:]/g,"")),e},c=function(t){return t.newline?t.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"},f=function(t,e){for(var n=c(e),a=t.buttons.exportData(e.exportOptions),r=e.fieldBoundary,l=e.fieldSeparator,i=new RegExp(r,"g"),s=e.escapeChar!==o?e.escapeChar:"\\",d=function(t){for(var e="",n=0,a=t.length;n<a;n++)n>0&&(e+=l),e+=r?r+(""+t[n]).replace(i,s+r)+r:t[n];return e},u=e.header?d(a.header)+n:"",f=e.footer&&a.footer?n+d(a.footer):"",p=[],h=0,m=a.body.length;h<m;h++)p.push(d(a.body[h]));return{str:u+p.join(n)+f,rows:p.length}},p=function(){if(!(-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Opera")))return!1;var t=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);return!!(t&&t.length>1&&1*t[1]<603.1)};function h(t){for(var e="A".charCodeAt(0),n="Z".charCodeAt(0)-e+1,a="";t>=0;)a=String.fromCharCode(t%n+e)+a,t=Math.floor(t/n)-1;return a}try{var m,b=new XMLSerializer}catch(t){}function g(e,n,a){var r=e.createElement(n);return a&&(a.attr&&t(r).attr(a.attr),a.children&&t.each(a.children,function(t,e){r.appendChild(e)}),null!==a.text&&a.text!==o&&r.appendChild(e.createTextNode(a.text))),r}function y(t,e){var n,a,r,l=t.header[e].length;t.footer&&t.footer[e].length>l&&(l=t.footer[e].length);for(var i=0,s=t.body.length;i<s;i++){var d=t.body[i][e];if(-1!==(r=null!==d&&d!==o?d.toString():"").indexOf("\n")?((a=r.split("\n")).sort(function(t,e){return e.length-t.length}),n=a[0].length):n=r.length,n>l&&(l=n),l>40)return 54}return(l*=1.35)>6?l:6}var v={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><definedNames/></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/><mergeCells count="0"/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/><numFmt numFmtId="165" formatCode="&quot;£&quot;#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="none" /></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="68"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="14" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},x=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(t){return t/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(t){return t/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\-?\d+$/,style:65},{match:/^\-?\d+\.\d{2}$/,style:66},{match:/^\([\d,]+\)$/,style:61,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+$/,style:63},{match:/^\-?[\d,]+\.\d{2}$/,style:64},{match:/^[\d]{4}\-[\d]{2}\-[\d]{2}$/,style:67,fmt:function(t){return Math.round(25569+Date.parse(t)/864e5)}}];return l.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(t){return t.i18n("buttons.copy","Copy")},action:function(e,a,r,o){this.processing(!0);var l=this,i=f(a,o),s=a.buttons.exportInfo(o),d=c(o),u=i.str,p=t("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});s.title&&(u=s.title+d+d+u),s.messageTop&&(u=s.messageTop+d+d+u),s.messageBottom&&(u=u+d+d+s.messageBottom),o.customize&&(u=o.customize(u,o,a));var h=t("<textarea readonly/>").val(u).appendTo(p);if(n.queryCommandSupported("copy")){p.appendTo(a.table().container()),h[0].focus(),h[0].select();try{var m=n.execCommand("copy");if(p.remove(),m)return a.buttons.info(a.i18n("buttons.copyTitle","Copy to clipboard"),a.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},i.rows),2e3),void this.processing(!1)}catch(t){}}var b=t("<span>"+a.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(p);a.buttons.info(a.i18n("buttons.copyTitle","Copy to clipboard"),b,0),h[0].focus(),h[0].select();var g=t(b).closest(".dt-button-info"),y=function(){g.off("click.buttons-copy"),t(n).off(".buttons-copy"),a.buttons.info(!1)};g.on("click.buttons-copy",y),t(n).on("keydown.buttons-copy",function(t){27===t.keyCode&&(y(),l.processing(!1))}).on("copy.buttons-copy cut.buttons-copy",function(){y(),l.processing(!1)})},exportOptions:{},fieldSeparator:"\t",fieldBoundary:"",header:!0,footer:!1,title:"*",messageTop:"*",messageBottom:"*"},l.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return e.FileReader!==o&&e.Blob},text:function(t){return t.i18n("buttons.csv","CSV")},action:function(t,e,a,r){this.processing(!0);var o=f(e,r).str,l=e.buttons.exportInfo(r),i=r.charset;r.customize&&(o=r.customize(o,r,e)),!1!==i?(i||(i=n.characterSet||n.charset),i&&(i=";charset="+i)):i="",r.bom&&(o="\ufeff"+o),d(new Blob([o],{type:"text/csv"+i}),l.filename,!0),this.processing(!1)},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1},l.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return e.FileReader!==o&&i()!==o&&!p()&&b},text:function(t){return t.i18n("buttons.excel","Excel")},action:function(n,a,r,l){this.processing(!0);var s,c,f,p,I=this,F=0,S=function(e){var n=v[e];return t.parseXML(n)},w=S("xl/worksheets/sheet1.xml"),C=w.getElementsByTagName("sheetData")[0],D={_rels:{".rels":S("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":S("xl/_rels/workbook.xml.rels")},"workbook.xml":S("xl/workbook.xml"),"styles.xml":S("xl/styles.xml"),worksheets:{"sheet1.xml":w}},"[Content_Types].xml":S("[Content_Types].xml")},T=a.buttons.exportData(l.exportOptions),_=function(e){p=g(w,"row",{attr:{r:f=F+1}});for(var n=0,a=e.length;n<a;n++){var r=h(n)+""+f,i=null;if(null===e[n]||e[n]===o||""===e[n]){if(!0!==l.createEmptyCells)continue;e[n]=""}var s=e[n];e[n]=t.trim(e[n]);for(var d=0,u=x.length;d<u;d++){var c=x[d];if(e[n].match&&!e[n].match(/^0\d+/)&&e[n].match(c.match)){var m=e[n].replace(/[^\d\.\-]/g,"");c.fmt&&(m=c.fmt(m)),i=g(w,"c",{attr:{r:r,s:c.style},children:[g(w,"v",{text:m})]});break}}if(!i)if("number"==typeof e[n]||e[n].match&&e[n].match(/^-?\d+(\.\d+)?$/)&&!e[n].match(/^0\d+/))i=g(w,"c",{attr:{t:"n",r:r},children:[g(w,"v",{text:e[n]})]});else{var b=s.replace?s.replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):s;i=g(w,"c",{attr:{t:"inlineStr",r:r},children:{row:g(w,"is",{children:{row:g(w,"t",{text:b,attr:{"xml:space":"preserve"}})}})}})}p.appendChild(i)}C.appendChild(p),F++};l.customizeData&&l.customizeData(T);var A=function(e,n){var a=t("mergeCells",w);a[0].appendChild(g(w,"mergeCell",{attr:{ref:"A"+e+":"+h(n)+e}})),a.attr("count",parseFloat(a.attr("count"))+1),t("row:eq("+(e-1)+") c",w).attr("s","51")},B=a.buttons.exportInfo(l);B.title&&(_([B.title]),A(F,T.header.length-1)),B.messageTop&&(_([B.messageTop]),A(F,T.header.length-1)),l.header&&(_(T.header),t("row:last c",w).attr("s","2")),s=F;for(var k=0,N=T.body.length;k<N;k++)_(T.body[k]);c=F,l.footer&&T.footer&&(_(T.footer),t("row:last c",w).attr("s","2")),B.messageBottom&&(_([B.messageBottom]),A(F,T.header.length-1));var L=g(w,"cols");t("worksheet",w).prepend(L);for(var P=0,R=T.header.length;P<R;P++)L.appendChild(g(w,"col",{attr:{min:P+1,max:P+1,width:y(T,P),customWidth:1}}));var j=D.xl["workbook.xml"];t("sheets sheet",j).attr("name",u(l)),l.autoFilter&&(t("mergeCells",w).before(g(w,"autoFilter",{attr:{ref:"A"+s+":"+h(T.header.length-1)+c}})),t("definedNames",j).append(g(j,"definedName",{attr:{name:"_xlnm._FilterDatabase",localSheetId:"0",hidden:1},text:u(l)+"!$A$"+s+":"+h(T.header.length-1)+c}))),l.customize&&l.customize(D,l,a),0===t("mergeCells",w).children().length&&t("mergeCells",w).remove();var E=new(i()),O={type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};!function n(a,r){m===o&&(m=-1===b.serializeToString((new e.DOMParser).parseFromString(v["xl/worksheets/sheet1.xml"],"text/xml")).indexOf("xmlns:r")),t.each(r,function(e,r){if(t.isPlainObject(r))n(a.folder(e),r);else{if(m){var o,l,i=r.childNodes[0],s=[];for(o=i.attributes.length-1;o>=0;o--){var d=i.attributes[o].nodeName,u=i.attributes[o].nodeValue;-1!==d.indexOf(":")&&(s.push({name:d,value:u}),i.removeAttribute(d))}for(o=0,l=s.length;o<l;o++){var c=r.createAttribute(s[o].name.replace(":","_dt_b_namespace_token_"));c.value=s[o].value,i.setAttributeNode(c)}}var f=b.serializeToString(r);m&&(-1===f.indexOf("<?xml")&&(f='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+f),f=(f=f.replace(/_dt_b_namespace_token_/g,":")).replace(/xmlns:NS[\d]+="" NS[\d]+:/g,"")),f=f.replace(/<([^<>]*?) xmlns=""([^<>]*?)>/g,"<$1 $2>"),a.file(e,f)}})}(E,D),E.generateAsync?E.generateAsync(O).then(function(t){d(t,B.filename),I.processing(!1)}):(d(E.generate(O),B.filename),this.processing(!1))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1,title:"*",messageTop:"*",messageBottom:"*",createEmptyCells:!1,autoFilter:!1,sheetName:""},l.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return e.FileReader!==o&&s()},text:function(t){return t.i18n("buttons.pdf","PDF")},action:function(e,n,a,r){this.processing(!0);var l=n.buttons.exportData(r.exportOptions),i=n.buttons.exportInfo(r),d=[];r.header&&d.push(t.map(l.header,function(t){return{text:"string"==typeof t?t:t+"",style:"tableHeader"}}));for(var u=0,c=l.body.length;u<c;u++)d.push(t.map(l.body[u],function(t){return null!==t&&t!==o||(t=""),{text:"string"==typeof t?t:t+"",style:u%2?"tableBodyEven":"tableBodyOdd"}}));r.footer&&l.footer&&d.push(t.map(l.footer,function(t){return{text:"string"==typeof t?t:t+"",style:"tableFooter"}}));var f={pageSize:r.pageSize,pageOrientation:r.orientation,content:[{table:{headerRows:1,body:d},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",fontSize:15},message:{}},defaultStyle:{fontSize:10}};i.messageTop&&f.content.unshift({text:i.messageTop,style:"message",margin:[0,0,0,12]}),i.messageBottom&&f.content.push({text:i.messageBottom,style:"message",margin:[0,0,0,12]}),i.title&&f.content.unshift({text:i.title,style:"title",margin:[0,0,0,12]}),r.customize&&r.customize(f,r,n);var h=s().createPdf(f);"open"!==r.download||p()?h.download(i.filename):h.open(),this.processing(!1)},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,messageTop:"*",messageBottom:"*",customize:null,download:"download"},l.Buttons}),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],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).$),n.fn.dataTable.Buttons||require("datatables.net-buttons")(e,n),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,a){"use strict";var r=t.fn.dataTable,o=n.createElement("a"),l=function(t){o.href=t;var e=o.host;return-1===e.indexOf("/")&&0!==o.pathname.indexOf("/")&&(e+="/"),o.protocol+"//"+e+o.pathname+o.search};return r.ext.buttons.print={className:"buttons-print",text:function(t){return t.i18n("buttons.print","Print")},action:function(n,r,o,i){var s=r.buttons.exportData(t.extend({decodeEntities:!1},i.exportOptions)),d=r.buttons.exportInfo(i),u=r.columns(i.exportOptions.columns).flatten().map(function(t){return r.settings()[0].aoColumns[r.column(t).index()].sClass}).toArray(),c=function(t,e){for(var n="<tr>",r=0,o=t.length;r<o;r++){var l=null===t[r]||t[r]===a?"":t[r];n+="<"+e+" "+(u[r]?'class="'+u[r]+'"':"")+">"+l+"</"+e+">"}return n+"</tr>"},f='<table class="'+r.table().node().className+'">';i.header&&(f+="<thead>"+c(s.header,"th")+"</thead>"),f+="<tbody>";for(var p=0,h=s.body.length;p<h;p++)f+=c(s.body[p],"td");f+="</tbody>",i.footer&&s.footer&&(f+="<tfoot>"+c(s.footer,"th")+"</tfoot>"),f+="</table>";var m=e.open("","");m.document.close();var b="<title>"+d.title+"</title>";t("style, link").each(function(){var e;b+=("link"===(e=t(this).clone()[0]).nodeName.toLowerCase()&&(e.href=l(e.href)),e.outerHTML)});try{m.document.head.innerHTML=b}catch(n){t(m.document.head).html(b)}m.document.body.innerHTML="<h1>"+d.title+"</h1><div>"+(d.messageTop||"")+"</div>"+f+"<div>"+(d.messageBottom||"")+"</div>",t(m.document.body).addClass("dt-print-view"),t("img",m.document.body).each(function(t,e){e.setAttribute("src",l(e.getAttribute("src")))}),i.customize&&i.customize(m,i,r);var g=function(){i.autoPrint&&(m.print(),m.close())};navigator.userAgent.match(/Trident\/\d.\d/)?g():m.setTimeout(g,1e3)},title:"*",messageTop:"*",messageBottom:"*",exportOptions:{},header:!0,footer:!1,autoPrint:!0,customize:null},r.Buttons});