2 "use strict";var _typeof=
"function"==typeof Symbol&&
"symbol"==typeof Symbol.iterator?
function(t){
return typeof t}:
function(t){
return t&&
"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?
"symbol":typeof t};Array.prototype.findIndex||Object.defineProperty(Array.prototype,
"findIndex",{value:
function(t){
if(null==
this)
throw new TypeError(
'"this" is null or not defined');var e=Object(
this),o=e.length>>>0;
if(
"function"!=typeof t)
throw new TypeError(
"predicate must be a function");
for(var i=arguments[1],n=0;n<o;){var s=e[n];
if(t.call(i,s,n,e))
return n;n++}
return-1}}),Array.prototype.find||Object.defineProperty(Array.prototype,
"find",{value:
function(t){
if(null==
this)
throw new TypeError(
'"this" is null or not defined');var e=Object(
this),o=e.length>>>0;
if(
"function"!=typeof t)
throw new TypeError(
"predicate must be a function");
for(var i=arguments[1],n=0;n<o;){var s=e[n];
if(t.call(i,s,n,e))
return s;n++}}});var ColumnManager=
function(t){this.table=t,this.blockHozScrollEvent=!1,this.headersElement=this.createHeadersElement(),this.element=this.createHeaderElement(),this.rowManager=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.element.insertBefore(this.headersElement,this.element.firstChild)};ColumnManager.prototype.createHeadersElement=
function(){var t=document.createElement(
"div");
return t.classList.add(
"tabulator-headers"),t},ColumnManager.prototype.createHeaderElement=
function(){var t=document.createElement(
"div");
return t.classList.add(
"tabulator-header"),this.table.options.headerVisible||t.classList.add(
"tabulator-header-hidden"),t},ColumnManager.prototype.initialize=
function(){},ColumnManager.prototype.setRowManager=
function(t){this.rowManager=t},ColumnManager.prototype.getElement=
function(){
return this.element},ColumnManager.prototype.getHeadersElement=
function(){
return this.headersElement},ColumnManager.prototype.scrollHorizontal=
function(t){var e=0,o=this.element.scrollWidth-this.table.element.clientWidth;this.element.scrollLeft=t,t>o?(e=t-o,this.element.style.marginLeft=-e+
"px"):this.element.style.marginLeft=0,
this.scrollLeft=t,
this.table.modExists(
"frozenColumns")&&this.table.modules.frozenColumns.scrollHorizontal()},ColumnManager.prototype.generateColumnsFromRowData=
function(t){var e,o,i=[];
if(t&&t.length){e=t[0];
for(var n in e){var s={field:n,title:n},l=e[n];
switch(
void 0===l?
"undefined":_typeof(l)){
case"undefined":o=
"string";
break;
case"boolean":o=
"boolean";
break;
case"object":o=Array.isArray(l)?
"array":
"string";
break;
default:o=isNaN(l)||
""===l?l.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?
"alphanum":
"string":
"number"}s.sorter=o,i.push(s)}this.table.options.columns=i,this.setColumns(this.table.options.columns)}},ColumnManager.prototype.setColumns=
function(t,e){
for(var o=
this;o.headersElement.firstChild;)o.headersElement.removeChild(o.headersElement.firstChild);o.columns=[],o.columnsByIndex=[],o.columnsByField={},o.table.modExists(
"frozenColumns")&&o.table.modules.frozenColumns.reset(),t.forEach(
function(t,e){o._addColumn(t)}),o._reIndexColumns(),o.table.options.responsiveLayout&&o.table.modExists(
"responsiveLayout",!0)&&o.table.modules.responsiveLayout.initialize(),o.redraw(!0)},ColumnManager.prototype._addColumn=
function(t,e,o){var i=
new Column(t,
this),n=i.getElement(),s=o?this.findColumnIndex(o):o;
if(o&&s>-1){var l=this.columns.indexOf(o.getTopColumn()),a=o.getElement();e?(this.columns.splice(l,0,i),a.parentNode.insertBefore(n,a)):(this.columns.splice(l+1,0,i),a.parentNode.insertBefore(n,a.nextSibling))}
else e?(this.columns.unshift(i),this.headersElement.insertBefore(i.getElement(),this.headersElement.firstChild)):(this.columns.push(i),this.headersElement.appendChild(i.getElement())),i.columnRendered();
return i},ColumnManager.prototype.registerColumnField=
function(t){t.definition.field&&(this.columnsByField[t.definition.field]=t)},ColumnManager.prototype.registerColumnPosition=
function(t){this.columnsByIndex.push(t)},ColumnManager.prototype._reIndexColumns=
function(){this.columnsByIndex=[],this.columns.forEach(
function(t){t.reRegisterPosition()})},ColumnManager.prototype._verticalAlignHeaders=
function(){var t=
this,e=0;t.columns.forEach(
function(t){var o;t.clearVerticalAlign(),(o=t.getHeight())>e&&(e=o)}),t.columns.forEach(
function(o){o.verticalAlign(t.table.options.columnHeaderVertAlign,e)}),t.rowManager.adjustTableSize()},ColumnManager.prototype.findColumn=
function(t){var e=
this;
if(
"object"!=(
void 0===t?
"undefined":_typeof(t)))
return this.columnsByField[t]||!1;
if(t instanceof Column)
return t;
if(t instanceof ColumnComponent)
return t._getSelf()||!1;
if(
"undefined"!=typeof HTMLElement&&t instanceof HTMLElement){
return e.columns.find(
function(e){
return e.element===t})||!1}
return!1},ColumnManager.prototype.getColumnByField=
function(t){
return this.columnsByField[t]},ColumnManager.prototype.getColumnsByFieldRoot=
function(t){var e=
this,o=[];
return Object.keys(this.columnsByField).forEach(
function(i){i.split(
".")[0]===t&&o.push(e.columnsByField[i])}),o},ColumnManager.prototype.getColumnByIndex=
function(t){
return this.columnsByIndex[t]},ColumnManager.prototype.getFirstVisibileColumn=
function(t){var t=this.columnsByIndex.findIndex(
function(t){
return t.visible});
return t>-1&&this.columnsByIndex[t]},ColumnManager.prototype.getColumns=
function(){
return this.columns},ColumnManager.prototype.findColumnIndex=
function(t){
return this.columnsByIndex.findIndex(
function(e){
return t===e})},ColumnManager.prototype.getRealColumns=
function(){
return this.columnsByIndex},ColumnManager.prototype.traverse=
function(t){this.columnsByIndex.forEach(
function(e,o){t(e,o)})},ColumnManager.prototype.getDefinitions=
function(t){var e=
this,o=[];
return e.columnsByIndex.forEach(
function(e){(!t||t&&e.visible)&&o.push(e.getDefinition())}),o},ColumnManager.prototype.getDefinitionTree=
function(){var t=
this,e=[];
return t.columns.forEach(
function(t){e.push(t.getDefinition(!0))}),e},ColumnManager.prototype.getComponents=
function(t){var e=
this,o=[];
return(t?e.columns:e.columnsByIndex).forEach(
function(t){o.push(t.getComponent())}),o},ColumnManager.prototype.getWidth=
function(){var t=0;
return this.columnsByIndex.forEach(
function(e){e.visible&&(t+=e.getWidth())}),t},ColumnManager.prototype.moveColumn=
function(t,e,o){this.moveColumnActual(t,e,o),this.table.options.responsiveLayout&&this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.modExists(
"columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),e.element.parentNode.insertBefore(t.element,e.element),o&&e.element.parentNode.insertBefore(e.element,t.element),this._verticalAlignHeaders(),this.table.rowManager.reinitialize()},ColumnManager.prototype.moveColumnActual=
function(t,e,o){this._moveColumnInArray(this.columns,t,e,o),this._moveColumnInArray(this.columnsByIndex,t,e,o,!0),this.table.options.responsiveLayout&&this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.table.options.columnMoved&&this.table.options.columnMoved.call(this.table,t.getComponent(),this.table.columnManager.getComponents()),this.table.options.persistence&&
this.table.modExists(
"persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save(
"columns")},ColumnManager.prototype._moveColumnInArray=
function(t,e,o,i,n){var s,l=t.indexOf(e);l>-1&&(t.splice(l,1),s=t.indexOf(o),s>-1?i&&(s+=1):s=l,t.splice(s,0,e),n&&this.table.rowManager.rows.forEach(
function(t){
if(t.cells.length){var e=t.cells.splice(l,1)[0];t.cells.splice(s,0,e)}}))},ColumnManager.prototype.scrollToColumn=
function(t,e,o){var i=
this,n=0,s=0,l=0,a=t.getElement();
return new Promise(
function(r,u){
if(
void 0===e&&(e=i.table.options.scrollToColumnPosition),
void 0===o&&(o=i.table.options.scrollToColumnIfVisible),t.visible){
switch(e){
case"middle":
case"center":l=-i.element.clientWidth/2;
break;
case"right":l=a.clientWidth-i.headersElement.clientWidth}
if(!o&&(s=a.offsetLeft)>0&&s+a.offsetWidth<i.element.clientWidth)
return!1;n=a.offsetLeft+i.element.scrollLeft+l,n=Math.max(Math.min(n,i.table.rowManager.element.scrollWidth-i.table.rowManager.element.clientWidth),0),i.table.rowManager.scrollHorizontal(n),i.scrollHorizontal(n),r()}
else console.warn(
"Scroll Error - Column not visible"),u(
"Scroll Error - Column not visible")})},ColumnManager.prototype.generateCells=
function(t){var e=
this,o=[];
return e.columnsByIndex.forEach(
function(e){o.push(e.generateCell(t))}),o},ColumnManager.prototype.getFlexBaseWidth=
function(){var t=
this,e=t.table.element.clientWidth,o=0;
return t.rowManager.element.scrollHeight>t.rowManager.element.clientHeight&&(e-=t.rowManager.element.offsetWidth-t.rowManager.element.clientWidth),this.columnsByIndex.forEach(
function(i){var n,s,l;i.visible&&(n=i.definition.width||0,s=
void 0===i.minWidth?t.table.options.columnMinWidth:parseInt(i.minWidth),l=
"string"==typeof n?n.indexOf(
"%")>-1?e/100*parseInt(n):parseInt(n):n,o+=l>s?l:s)}),o},ColumnManager.prototype.addColumn=function(t,e,o){var i=
this;
return new Promise(
function(n,s){var l=i._addColumn(t,e,o);i._reIndexColumns(),i.table.options.responsiveLayout&&i.table.modExists(
"responsiveLayout",!0)&&i.table.modules.responsiveLayout.initialize(),i.table.modExists(
"columnCalcs")&&i.table.modules.columnCalcs.recalc(i.table.rowManager.activeRows),i.redraw(),
"fitColumns"!=i.table.modules.layout.getMode()&&l.reinitializeWidth(),i._verticalAlignHeaders(),i.table.rowManager.reinitialize(),n(l)})},ColumnManager.prototype.deregisterColumn=
function(t){var e,o=t.getField();o&&
delete this.columnsByField[o],e=this.columnsByIndex.indexOf(t),e>-1&&this.columnsByIndex.splice(e,1),e=this.columns.indexOf(t),e>-1&&this.columns.splice(e,1),this.table.options.responsiveLayout&&this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.initialize(),this.redraw()},ColumnManager.prototype.redraw=
function(t){t&&(Tabulator.prototype.helpers.elVisible(this.element)&&this._verticalAlignHeaders(),this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),[
"fitColumns",
"fitDataStretch"].indexOf(this.table.modules.layout.getMode())>-1?this.table.modules.layout.layout():t?this.table.modules.layout.layout():this.table.options.responsiveLayout&&this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.modExists(
"frozenColumns")&&this.table.modules.frozenColumns.layout(),this.table.modExists(
"columnCalcs")&&this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),t&&(this.table.options.persistence&&this.table.modExists(
"persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save(
"columns"),this.table.modExists(
"columnCalcs")&&this.table.modules.columnCalcs.redraw()),this.table.footerManager.redraw()};var ColumnComponent=
function(t){this._column=t,this.type=
"ColumnComponent"};ColumnComponent.prototype.getElement=
function(){
return this._column.getElement()},ColumnComponent.prototype.getDefinition=
function(){
return this._column.getDefinition()},ColumnComponent.prototype.getField=
function(){
return this._column.getField()},ColumnComponent.prototype.getCells=
function(){var t=[];
return this._column.cells.forEach(
function(e){t.push(e.getComponent())}),t},ColumnComponent.prototype.getVisibility=
function(){
return this._column.visible},ColumnComponent.prototype.show=
function(){this._column.isGroup?this._column.columns.forEach(
function(t){t.show()}):this._column.show()},ColumnComponent.prototype.hide=
function(){this._column.isGroup?this._column.columns.forEach(
function(t){t.hide()}):this._column.hide()},ColumnComponent.prototype.toggle=
function(){this._column.visible?this.hide():this.show()},ColumnComponent.prototype.delete=function(){
return this._column.delete()},ColumnComponent.prototype.getSubColumns=
function(){var t=[];
return this._column.columns.length&&this._column.columns.forEach(
function(e){t.push(e.getComponent())}),t},ColumnComponent.prototype.getParentColumn=
function(){
return this._column.parent instanceof Column&&this._column.parent.getComponent()},ColumnComponent.prototype._getSelf=
function(){
return this._column},ColumnComponent.prototype.scrollTo=
function(){
return this._column.table.columnManager.scrollToColumn(this._column)},ColumnComponent.prototype.getTable=
function(){
return this._column.table},ColumnComponent.prototype.headerFilterFocus=
function(){this._column.table.modExists(
"filter",!0)&&this._column.table.modules.filter.setHeaderFilterFocus(this._column)},ColumnComponent.prototype.reloadHeaderFilter=
function(){this._column.table.modExists(
"filter",!0)&&this._column.table.modules.filter.reloadHeaderFilter(this._column)},ColumnComponent.prototype.setHeaderFilterValue=
function(t){this._column.table.modExists(
"filter",!0)&&this._column.table.modules.filter.setHeaderFilterValue(this._column,t)},ColumnComponent.prototype.move=
function(t,e){var o=this._column.table.columnManager.findColumn(t);o?this._column.table.columnManager.moveColumn(this._column,o,e):console.warn(
"Move Error - No matching column found:",o)},ColumnComponent.prototype.getNextColumn=
function(){var t=this._column.nextColumn();
return!!t&&t.getComponent()},ColumnComponent.prototype.getPrevColumn=
function(){var t=this._column.prevColumn();
return!!t&&t.getComponent()},ColumnComponent.prototype.updateDefinition=
function(t){
return this._column.updateDefinition(t)};var Column=
function t(e,o){var i=
this;this.table=o.table,this.definition=e,this.parent=o,this.type=
"column",this.columns=[],this.cells=[],this.element=this.createElement(),this.contentElement=!1,this.groupElement=this.createGroupElement(),this.isGroup=!1,this.tooltip=!1,this.hozAlign=
"",this.field=
"",this.fieldStructure=
"",this.getFieldValue=
"",this.setFieldValue=
"",this.titleFormatterRendered=!1,this.setField(this.definition.field),this.table.options.invalidOptionWarnings&&this.checkDefinition(),this.modules={},this.cellEvents={cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1},this.width=null,this.widthStyled=
"",this.minWidth=null,this.minWidthStyled=
"",this.widthFixed=!1,this.visible=!0,this._mapDepricatedFunctionality(),e.columns?(this.isGroup=!0,e.columns.forEach(
function(e,o){var n=
new t(e,i);i.attachColumn(n)}),i.checkColumnVisibility()):o.registerColumnField(
this),e.rowHandle&&!1!==this.table.options.movableRows&&this.table.modExists(
"moveRow")&&this.table.modules.moveRow.setHandle(!0),this._buildHeader(),this.bindModuleColumns()};Column.prototype.createElement=
function(){var t=document.createElement(
"div");
return t.classList.add(
"tabulator-col"),t.setAttribute(
"role",
"columnheader"),t.setAttribute(
"aria-sort",
"none"),t},Column.prototype.createGroupElement=
function(){var t=document.createElement(
"div");
return t.classList.add(
"tabulator-col-group-cols"),t},Column.prototype.checkDefinition=
function(){var t=
this;Object.keys(this.definition).forEach(
function(e){-1===t.defaultOptionList.indexOf(e)&&console.warn(
"Invalid column definition option in '"+(t.field||t.definition.title)+
"' column:",e)})},Column.prototype.setField=
function(t){this.field=t,this.fieldStructure=t?this.table.options.nestedFieldSeparator?t.split(this.table.options.nestedFieldSeparator):[t]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNesteData:this._setFlatData},Column.prototype.registerColumnPosition=
function(t){this.parent.registerColumnPosition(t)},Column.prototype.registerColumnField=
function(t){this.parent.registerColumnField(t)},Column.prototype.reRegisterPosition=
function(){this.isGroup?this.columns.forEach(
function(t){t.reRegisterPosition()}):this.registerColumnPosition(
this)},Column.prototype._mapDepricatedFunctionality=
function(){
void 0!==this.definition.hideInHtml&&(this.definition.htmlOutput=!this.definition.hideInHtml,console.warn(
"hideInHtml column definition property is deprecated, you should now use htmlOutput"))},Column.prototype.setTooltip=
function(){var t=
this,e=t.definition,o=e.headerTooltip||!1===e.tooltip?e.headerTooltip:t.table.options.tooltipsHeader;o?!0===o?e.field?t.table.modules.localize.bind(
"columns|"+e.field,
function(o){t.element.setAttribute(
"title",o||e.title)}):t.element.setAttribute(
"title",e.title):(
"function"==typeof o&&!1===(o=o(t.getComponent()))&&(o=
""),t.element.setAttribute(
"title",o)):t.element.setAttribute(
"title",
"")},Column.prototype._buildHeader=
function(){
for(var t=
this,e=t.definition;t.element.firstChild;)t.element.removeChild(t.element.firstChild);e.headerVertical&&(t.element.classList.add(
"tabulator-col-vertical"),
"flip"===e.headerVertical&&t.element.classList.add(
"tabulator-col-vertical-flip")),t.contentElement=t._bindEvents(),t.contentElement=t._buildColumnHeaderContent(),t.element.appendChild(t.contentElement),t.isGroup?t._buildGroupHeader():t._buildColumnHeader(),t.setTooltip(),t.table.options.resizableColumns&&t.table.modExists(
"resizeColumns")&&t.table.modules.resizeColumns.initializeColumn(
"header",t,t.element),e.headerFilter&&t.table.modExists(
"filter")&&t.table.modExists(
"edit")&&(
void 0!==e.headerFilterPlaceholder&&e.field&&t.table.modules.localize.setHeaderFilterColumnPlaceholder(e.field,e.headerFilterPlaceholder),t.table.modules.filter.initializeColumn(t)),t.table.modExists(
"frozenColumns")&&t.table.modules.frozenColumns.initializeColumn(t),t.table.options.movableColumns&&!t.isGroup&&t.table.modExists(
"moveColumn")&&t.table.modules.moveColumn.initializeColumn(t),(e.topCalc||e.bottomCalc)&&t.table.modExists(
"columnCalcs")&&t.table.modules.columnCalcs.initializeColumn(t),t.table.modExists(
"persistence")&&t.table.modules.persistence.config.columns&&t.table.modules.persistence.initializeColumn(t),t.element.addEventListener(
"mouseenter",
function(e){t.setTooltip()})},Column.prototype._bindEvents=
function(){var t,e,o,i=
this,n=i.definition;
"function"==typeof n.headerClick&&i.element.addEventListener(
"click",
function(t){n.headerClick(t,i.getComponent())}),
"function"==typeof n.headerDblClick&&i.element.addEventListener(
"dblclick",
function(t){n.headerDblClick(t,i.getComponent())}),
"function"==typeof n.headerContext&&i.element.addEventListener(
"contextmenu",
function(t){n.headerContext(t,i.getComponent())}),
"function"==typeof n.headerTap&&(o=!1,i.element.addEventListener(
"touchstart",
function(t){o=!0},{passive:!0}),i.element.addEventListener(
"touchend",
function(t){o&&n.headerTap(t,i.getComponent()),o=!1})),
"function"==typeof n.headerDblTap&&(t=null,i.element.addEventListener(
"touchend",
function(e){t?(clearTimeout(t),t=null,n.headerDblTap(e,i.getComponent())):t=setTimeout(
function(){clearTimeout(t),t=null},300)})),
"function"==typeof n.headerTapHold&&(e=null,i.element.addEventListener(
"touchstart",
function(t){clearTimeout(e),e=setTimeout(
function(){clearTimeout(e),e=null,o=!1,n.headerTapHold(t,i.getComponent())},1e3)},{passive:!0}),i.element.addEventListener(
"touchend",
function(t){clearTimeout(e),e=null})),
"function"==typeof n.cellClick&&(i.cellEvents.cellClick=n.cellClick),
"function"==typeof n.cellDblClick&&(i.cellEvents.cellDblClick=n.cellDblClick),
"function"==typeof n.cellContext&&(i.cellEvents.cellContext=n.cellContext),
"function"==typeof n.cellMouseEnter&&(i.cellEvents.cellMouseEnter=n.cellMouseEnter),
"function"==typeof n.cellMouseLeave&&(i.cellEvents.cellMouseLeave=n.cellMouseLeave),
"function"==typeof n.cellMouseOver&&(i.cellEvents.cellMouseOver=n.cellMouseOver),
"function"==typeof n.cellMouseOut&&(i.cellEvents.cellMouseOut=n.cellMouseOut),
"function"==typeof n.cellMouseMove&&(i.cellEvents.cellMouseMove=n.cellMouseMove),
"function"==typeof n.cellTap&&(i.cellEvents.cellTap=n.cellTap),
"function"==typeof n.cellDblTap&&(i.cellEvents.cellDblTap=n.cellDblTap),
"function"==typeof n.cellTapHold&&(i.cellEvents.cellTapHold=n.cellTapHold),
"function"==typeof n.cellEdited&&(i.cellEvents.cellEdited=n.cellEdited),
"function"==typeof n.cellEditing&&(i.cellEvents.cellEditing=n.cellEditing),
"function"==typeof n.cellEditCancelled&&(i.cellEvents.cellEditCancelled=n.cellEditCancelled)},Column.prototype._buildColumnHeader=
function(){var t=
this,e=t.definition,o=t.table;
if(o.modExists(
"sort")&&o.modules.sort.initializeColumn(t,t.contentElement),o.modExists(
"format")&&o.modules.format.initializeColumn(t),
void 0!==e.editor&&o.modExists(
"edit")&&o.modules.edit.initializeColumn(t),
void 0!==e.validator&&o.modExists(
"validate")&&o.modules.validate.initializeColumn(t),o.modExists(
"mutator")&&o.modules.mutator.initializeColumn(t),o.modExists(
"accessor")&&o.modules.accessor.initializeColumn(t),_typeof(o.options.responsiveLayout)&&o.modExists(
"responsiveLayout")&&o.modules.responsiveLayout.initializeColumn(t),
void 0!==e.visible&&(e.visible?t.show(!0):t.hide(!0)),e.cssClass){e.cssClass.split(
" ").forEach(
function(e){t.element.classList.add(e)})}e.field&&
this.element.setAttribute(
"tabulator-field",e.field),t.setMinWidth(
void 0===e.minWidth?t.table.options.columnMinWidth:parseInt(e.minWidth)),t.reinitializeWidth(),t.tooltip=t.definition.tooltip||!1===t.definition.tooltip?t.definition.tooltip:t.table.options.tooltips,t.hozAlign=
void 0===t.definition.align?
"":t.definition.align},Column.prototype._buildColumnHeaderContent=
function(){var t=
this,e=(t.definition,t.table,document.createElement(
"div"));
return e.classList.add(
"tabulator-col-content"),e.appendChild(t._buildColumnHeaderTitle()),e},Column.prototype._buildColumnHeaderTitle=
function(){var t=
this,e=t.definition,o=t.table,i=document.createElement(
"div");
if(i.classList.add(
"tabulator-col-title"),e.editableTitle){var n=document.createElement(
"input");n.classList.add(
"tabulator-title-editor"),n.addEventListener(
"click",
function(t){t.stopPropagation(),n.focus()}),n.addEventListener(
"change",
function(){e.title=n.value,o.options.columnTitleChanged.call(t.table,t.getComponent())}),i.appendChild(n),e.field?o.modules.localize.bind(
"columns|"+e.field,
function(t){n.value=t||e.title||
" "}):n.value=e.title||
" "}
else e.field?o.modules.localize.bind(
"columns|"+e.field,
function(o){t._formatColumnHeaderTitle(i,o||e.title||
" ")}):t._formatColumnHeaderTitle(i,e.title||
" ");
return i},Column.prototype._formatColumnHeaderTitle=
function(t,e){var o,i,n,s,l,a=
this;
if(this.definition.titleFormatter&&
this.table.modExists(
"format"))
switch(o=this.table.modules.format.getFormatter(
this.definition.titleFormatter),l=
function(t){a.titleFormatterRendered=t},s={getValue:
function(){
return e},getElement:
function(){
return t}},n=this.definition.titleFormatterParams||{},n=
"function"==typeof n?n():n,i=o.call(this.table.modules.format,s,n,l),void 0===i?
"undefined":_typeof(i)){
case"object":i instanceof Node?t.appendChild(i):(t.innerHTML=
"",console.warn(
"Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));
break;
case"undefined":
case"null":t.innerHTML=
"";
break;
default:t.innerHTML=i}
else t.innerHTML=e},Column.prototype._buildGroupHeader=
function(){var t=
this;
if(this.element.classList.add(
"tabulator-col-group"),this.element.setAttribute(
"role",
"columngroup"),this.element.setAttribute(
"aria-title",this.definition.title),this.definition.cssClass){this.definition.cssClass.split(
" ").forEach(
function(e){t.element.classList.add(e)})}this.element.appendChild(
this.groupElement)},Column.prototype._getFlatData=
function(t){
return t[this.field]},Column.prototype._getNestedData=
function(t){
for(var e,o=t,i=this.fieldStructure,n=i.length,s=0;s<n&&(o=o[i[s]],e=o,o);s++);
return e},Column.prototype._setFlatData=
function(t,e){this.field&&(t[this.field]=e)},Column.prototype._setNesteData=
function(t,e){
for(var o=t,i=this.fieldStructure,n=i.length,s=0;s<n;s++)s==n-1?o[i[s]]=e:(o[i[s]]||(o[i[s]]={}),o=o[i[s]])},Column.prototype.attachColumn=
function(t){var e=
this;e.groupElement?(e.columns.push(t),e.groupElement.appendChild(t.getElement())):console.warn(
"Column Warning - Column being attached to another column instead of column group")},Column.prototype.verticalAlign=
function(t,e){var o=this.parent.isGroup?this.parent.getGroupElement().clientHeight:e||this.parent.getHeadersElement().clientHeight;this.element.style.height=o+
"px",this.isGroup&&(this.groupElement.style.minHeight=o-this.contentElement.offsetHeight+
"px"),this.isGroup||
"top"===t||(this.element.style.paddingTop=
"bottom"===t?
this.element.clientHeight-
this.contentElement.offsetHeight+
"px":(
this.element.clientHeight-
this.contentElement.offsetHeight)/2+
"px"),this.columns.forEach(
function(e){e.verticalAlign(t)})},Column.prototype.clearVerticalAlign=
function(){this.element.style.paddingTop=
"",this.element.style.height=
"",this.element.style.minHeight=
"",this.groupElement.style.minHeight=
"",this.columns.forEach(
function(t){t.clearVerticalAlign()})},Column.prototype.bindModuleColumns=
function(){
"rownum"==this.definition.formatter&&(this.table.rowManager.rowNumColumn=
this)},Column.prototype.getElement=
function(){
return this.element},Column.prototype.getGroupElement=
function(){
return this.groupElement},Column.prototype.getField=
function(){
return this.field},Column.prototype.getFirstColumn=
function(){
return this.isGroup?!!this.columns.length&&this.columns[0].getFirstColumn():
this},Column.prototype.getLastColumn=
function(){
return this.isGroup?!!this.columns.length&&this.columns[this.columns.length-1].getLastColumn():
this},Column.prototype.getColumns=
function(){
return this.columns},Column.prototype.getCells=
function(){
return this.cells},Column.prototype.getTopColumn=
function(){
return this.parent.isGroup?this.parent.getTopColumn():
this},Column.prototype.getDefinition=
function(t){var e=[];
return this.isGroup&&t&&(this.columns.forEach(
function(t){e.push(t.getDefinition(!0))}),this.definition.columns=e),this.definition},Column.prototype.checkColumnVisibility=
function(){var t=!1;this.columns.forEach(
function(e){e.visible&&(t=!0)}),t?(this.show(),this.parent.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!1)):this.hide()},Column.prototype.show=
function(t,e){this.visible||(this.visible=!0,this.element.style.display=
"",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(
function(t){t.show()}),this.isGroup||null!==this.width||this.reinitializeWidth(),this.table.columnManager._verticalAlignHeaders(),this.table.options.persistence&&this.table.modExists(
"persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save(
"columns"),!e&&this.table.options.responsiveLayout&&this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.updateColumnVisibility(
this,this.visible),t||this.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths())},Column.prototype.hide=
function(t,e){this.visible&&(this.visible=!1,this.element.style.display=
"none",this.table.columnManager._verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(
function(t){t.hide()}),this.table.options.persistence&&
this.table.modExists(
"persistence",!0)&&this.table.modules.persistence.config.columns&&this.table.modules.persistence.save(
"columns"),!e&&this.table.options.responsiveLayout&&this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.updateColumnVisibility(
this,this.visible),t||this.table.options.columnVisibilityChanged.call(this.table,this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths())},Column.prototype.matchChildWidths=
function(){var t=0;this.contentElement&&this.columns.length&&(this.columns.forEach(
function(e){e.visible&&(t+=e.getWidth())}),this.contentElement.style.maxWidth=t-1+
"px")},Column.prototype.setWidth=
function(t){this.widthFixed=!0,this.setWidthActual(t)},Column.prototype.setWidthActual=
function(t){isNaN(t)&&(t=Math.floor(this.table.element.clientWidth/100*parseInt(t))),t=Math.max(
this.minWidth,t),this.width=t,this.widthStyled=t?t+
"px":
"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(
function(t){t.setWidth()}),this.parent.isGroup&&
this.parent.matchChildWidths(),this.table.modExists(
"frozenColumns")&&this.table.modules.frozenColumns.layout()},Column.prototype.checkCellHeights=
function(){var t=[];this.cells.forEach(
function(e){e.row.heightInitialized&&(null!==e.row.getElement().offsetParent?(t.push(e.row),e.row.clearCellHeight()):e.row.heightInitialized=!1)}),t.forEach(
function(t){t.calcHeight()}),t.forEach(
function(t){t.setCellHeight()})},Column.prototype.getWidth=
function(){
return this.width},Column.prototype.getHeight=
function(){
return this.element.offsetHeight},Column.prototype.setMinWidth=
function(t){this.minWidth=t,this.minWidthStyled=t?t+
"px":
"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(
function(t){t.setMinWidth()})},Column.prototype.delete=
function(){var t=
this;
return new Promise(
function(e,o){t.isGroup&&t.columns.forEach(
function(t){t.delete()});
for(var i=t.cells.length,n=0;n<i;n++)t.cells[0].delete();t.element.parentNode.removeChild(t.element),t.table.columnManager.deregisterColumn(t),e()})},Column.prototype.columnRendered=
function(){this.titleFormatterRendered&&this.titleFormatterRendered()},Column.prototype.generateCell=
function(t){var e=
this,o=
new Cell(e,t);
return this.cells.push(o),o},Column.prototype.nextColumn=
function(){var t=this.table.columnManager.findColumnIndex(
this);
return t>-1&&this._nextVisibleColumn(t+1)},Column.prototype._nextVisibleColumn=
function(t){var e=this.table.columnManager.getColumnByIndex(t);
return!e||e.visible?e:this._nextVisibleColumn(t+1)},Column.prototype.prevColumn=
function(){var t=this.table.columnManager.findColumnIndex(
this);
return t>-1&&this._prevVisibleColumn(t-1)},Column.prototype._prevVisibleColumn=
function(t){var e=this.table.columnManager.getColumnByIndex(t);
return!e||e.visible?e:this._prevVisibleColumn(t-1)},Column.prototype.reinitializeWidth=
function(t){this.widthFixed=!1,
void 0===this.definition.width||t||this.setWidth(this.definition.width),this.table.modExists(
"filter")&&this.table.modules.filter.hideHeaderFilterElements(),this.fitToData(),this.table.modExists(
"filter")&&this.table.modules.filter.showHeaderFilterElements()},Column.prototype.fitToData=
function(){var t=
this;this.widthFixed||(this.element.style.width=
"",t.cells.forEach(
function(t){t.clearWidth()}));var e=this.element.offsetWidth;t.width&&this.widthFixed||(t.cells.forEach(
function(t){var o=t.getWidth();o>e&&(e=o)}),e&&t.setWidthActual(e+1))},Column.prototype.updateDefinition=
function(t){var e=
this;
return new Promise(
function(o,i){var n;e.isGroup?(console.warn(
"Column Update Error - The updateDefintion function is only available on columns, not column groups"),i(
"Column Update Error - The updateDefintion function is only available on columns, not column groups")):(n=Object.assign({},e.getDefinition()),n=Object.assign(n,t),e.table.columnManager.addColumn(n,!1,e).then(
function(t){n.field==e.field&&(e.field=!1),e.delete().then(
function(){o(t.getComponent())}).catch(
function(t){i(t)})}).catch(
function(t){i(t)}))})},Column.prototype.deleteCell=
function(t){var e=this.cells.indexOf(t);e>-1&&this.cells.splice(e,1)},
3 Column.prototype.defaultOptionList=[
"title",
"field",
"columns",
"visible",
"align",
"width",
"minWidth",
"widthGrow",
"widthShrink",
"resizable",
"frozen",
"responsive",
"tooltip",
"cssClass",
"rowHandle",
"hideInHtml",
"print",
"htmlOutput",
"sorter",
"sorterParams",
"formatter",
"formatterParams",
"variableHeight",
"editable",
"editor",
"editorParams",
"validator",
"mutator",
"mutatorParams",
"mutatorData",
"mutatorDataParams",
"mutatorEdit",
"mutatorEditParams",
"mutatorClipboard",
"mutatorClipboardParams",
"accessor",
"accessorParams",
"accessorData",
"accessorDataParams",
"accessorDownload",
"accessorDownloadParams",
"accessorClipboard",
"accessorClipboardParams",
"clipboard",
"download",
"downloadTitle",
"topCalc",
"topCalcParams",
"topCalcFormatter",
"topCalcFormatterParams",
"bottomCalc",
"bottomCalcParams",
"bottomCalcFormatter",
"bottomCalcFormatterParams",
"cellClick",
"cellDblClick",
"cellContext",
"cellTap",
"cellDblTap",
"cellTapHold",
"cellMouseEnter",
"cellMouseLeave",
"cellMouseOver",
"cellMouseOut",
"cellMouseMove",
"cellEditing",
"cellEdited",
"cellEditCancelled",
"headerSort",
"headerSortStartingDir",
"headerSortTristate",
"headerClick",
"headerDblClick",
"headerContext",
"headerTap",
"headerDblTap",
"headerTapHold",
"headerTooltip",
"headerVertical",
"editableTitle",
"titleFormatter",
"titleFormatterParams",
"headerFilter",
"headerFilterPlaceholder",
"headerFilterParams",
"headerFilterEmptyCheck",
"headerFilterFunc",
"headerFilterFuncParams",
"headerFilterLiveFilter",
"print"],Column.prototype.getComponent=
function(){
return new ColumnComponent(
this)};var RowManager=
function(t){this.table=t,this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.columnManager=null,this.height=0,this.firstRender=!1,this.renderMode=
"classic",this.rows=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[],this.rowNumColumn=!1,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRederInPosition=!1};RowManager.prototype.createHolderElement=
function(){var t=document.createElement(
"div");
return t.classList.add(
"tabulator-tableHolder"),t.setAttribute(
"tabindex",0),t},RowManager.prototype.createTableElement=
function(){var t=document.createElement(
"div");
return t.classList.add(
"tabulator-table"),t},RowManager.prototype.getElement=
function(){
return this.element},RowManager.prototype.getTableElement=
function(){
return this.tableElement},RowManager.prototype.getRowPosition=
function(t,e){
return e?this.activeRows.indexOf(t):this.rows.indexOf(t)},RowManager.prototype.setColumnManager=
function(t){this.columnManager=t},RowManager.prototype.initialize=
function(){var t=
this;t.setRenderMode(),t.element.appendChild(t.tableElement),t.firstRender=!0,t.element.addEventListener(
"scroll",
function(){var e=t.element.scrollLeft;t.scrollLeft!=e&&(t.columnManager.scrollHorizontal(e),t.table.options.groupBy&&t.table.modules.groupRows.scrollHeaders(e),t.table.modExists(
"columnCalcs")&&t.table.modules.columnCalcs.scrollHorizontal(e),t.table.options.scrollHorizontal(e)),t.scrollLeft=e}),
"virtual"===this.renderMode&&t.element.addEventListener(
"scroll",
function(){var e=t.element.scrollTop,o=t.scrollTop>e;t.scrollTop!=e?(t.scrollTop=e,t.scrollVertical(o),
"scroll"==t.table.options.ajaxProgressiveLoad&&t.table.modules.ajax.nextPage(t.element.scrollHeight-t.element.clientHeight-e),t.table.options.scrollVertical(e)):t.scrollTop=e})},RowManager.prototype.findRow=
function(t){var e=
this;
if(
"object"!=(
void 0===t?
"undefined":_typeof(t))){
if(
void 0===t||null===t)
return!1;
return e.rows.find(
function(o){
return o.data[e.table.options.index]==t})||!1}
if(t instanceof Row)
return t;
if(t instanceof RowComponent)
return t._getSelf()||!1;
if(
"undefined"!=typeof HTMLElement&&t instanceof HTMLElement){
return e.rows.find(
function(e){
return e.element===t})||!1}
return!1},RowManager.prototype.getRowFromDataObject=
function(t){
return this.rows.find(
function(e){
return e.data===t})||!1},RowManager.prototype.getRowFromPosition=
function(t,e){
return e?this.activeRows[t]:this.rows[t]},RowManager.prototype.scrollToRow=
function(t,e,o){var i,n=
this,s=this.getDisplayRows().indexOf(t),l=t.getElement(),a=0;
return new Promise(
function(t,r){
if(s>-1){
if(
void 0===e&&(e=n.table.options.scrollToRowPosition),
void 0===o&&(o=n.table.options.scrollToRowIfVisible),
"nearest"===e)
switch(n.renderMode){
case"classic":i=Tabulator.prototype.helpers.elOffset(l).top,e=Math.abs(n.element.scrollTop-i)>Math.abs(n.element.scrollTop+n.element.clientHeight-i)?
"bottom":
"top";
break;
case"virtual":e=Math.abs(n.vDomTop-s)>Math.abs(n.vDomBottom-s)?
"bottom":
"top"}
if(!o&&Tabulator.prototype.helpers.elVisible(l)&&(a=Tabulator.prototype.helpers.elOffset(l).top-Tabulator.prototype.helpers.elOffset(n.element).top)>0&&a<n.element.clientHeight-l.offsetHeight)
return!1;
switch(n.renderMode){
case"classic":n.element.scrollTop=Tabulator.prototype.helpers.elOffset(l).top-Tabulator.prototype.helpers.elOffset(n.element).top+n.element.scrollTop;
break;
case"virtual":n._virtualRenderFill(s,!0)}
switch(e){
case"middle":
case"center":n.element.scrollHeight-n.element.scrollTop==n.element.clientHeight?n.element.scrollTop=n.element.scrollTop+(l.offsetTop-n.element.scrollTop)-(n.element.scrollHeight-l.offsetTop)/2:n.element.scrollTop=n.element.scrollTop-n.element.clientHeight/2;
break;
case"bottom":n.element.scrollHeight-n.element.scrollTop==n.element.clientHeight?n.element.scrollTop=n.element.scrollTop-(n.element.scrollHeight-l.offsetTop)+l.offsetHeight:n.element.scrollTop=n.element.scrollTop-n.element.clientHeight+l.offsetHeight}t()}
else console.warn(
"Scroll Error - Row not visible"),r(
"Scroll Error - Row not visible")})},RowManager.prototype.setData=
function(t,e){var o=
this,i=
this;
return new Promise(
function(n,s){e&&o.getDisplayRows().length?i.table.options.pagination?i._setDataActual(t,!0):o.reRenderInPosition(
function(){i._setDataActual(t)}):(o.table.options.autoColumns&&o.table.columnManager.generateColumnsFromRowData(t),o.resetScroll(),o._setDataActual(t)),n()})},RowManager.prototype._setDataActual=
function(t,e){var o=
this;o.table.options.dataLoading.call(this.table,t),this._wipeElements(),this.table.options.history&&this.table.modExists(
"history")&&this.table.modules.history.clear(),Array.isArray(t)?(this.table.modExists(
"selectRow")&&this.table.modules.selectRow.clearSelectionData(),this.table.options.reactiveData&&this.table.modExists(
"reactiveData",!0)&&this.table.modules.reactiveData.watchData(t),t.forEach(
function(t,e){
if(t&&
"object"===(
void 0===t?
"undefined":_typeof(t))){var i=
new Row(t,o);o.rows.push(i)}
else console.warn(
"Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",t)}),o.table.options.dataLoaded.call(
this.table,t),o.refreshActiveData(!1,!1,e)):console.error(
"Data Loading Error - Unable to process data due to invalid data type \nExpecting: array \nReceived: ",
void 0===t?
"undefined":_typeof(t),
"\nData: ",t)},RowManager.prototype._wipeElements=
function(){this.rows.forEach(
function(t){t.wipe()}),this.table.options.groupBy&&
this.table.modExists(
"groupRows")&&this.table.modules.groupRows.wipe(),this.rows=[]},RowManager.prototype.deleteRow=
function(t,e){var o=this.rows.indexOf(t),i=this.activeRows.indexOf(t);i>-1&&this.activeRows.splice(i,1),o>-1&&this.rows.splice(o,1),this.setActiveRows(this.activeRows),this.displayRowIterator(
function(e){var o=e.indexOf(t);o>-1&&e.splice(o,1)}),e||this.reRenderInPosition(),this.table.options.rowDeleted.call(this.table,t.getComponent()),this.table.options.dataEdited.call(
this.table,
this.getData()),this.table.options.groupBy&&
this.table.modExists(
"groupRows")?this.table.modules.groupRows.updateGroupRows(!0):this.table.options.pagination&&this.table.modExists(
"page")?this.refreshActiveData(!1,!1,!0):this.table.options.pagination&&this.table.modExists(
"page")&&this.refreshActiveData(
"page")},RowManager.prototype.addRow=function(t,e,o,i){var n=this.addRowActual(t,e,o,i);
return this.table.options.history&&this.table.modExists(
"history")&&this.table.modules.history.action(
"rowAdd",n,{data:t,pos:e,index:o}),n},RowManager.prototype.addRows=
function(t,e,o){var i=
this,n=
this,s=0,l=[];
return new Promise(
function(a,r){e=i.findAddRowPos(e),Array.isArray(t)||(t=[t]),s=t.length-1,(
void 0===o&&e||
void 0!==o&&!e)&&t.reverse(),t.forEach(
function(t,i){var s=n.addRow(t,e,o,!0);l.push(s)}),i.table.options.groupBy&&i.table.modExists(
"groupRows")?i.table.modules.groupRows.updateGroupRows(!0):i.table.options.pagination&&i.table.modExists(
"page")?i.refreshActiveData(!1,!1,!0):i.reRenderInPosition(),i.table.modExists(
"columnCalcs")&&i.table.modules.columnCalcs.recalc(i.table.rowManager.activeRows),a(l)})},RowManager.prototype.findAddRowPos=
function(t){
return void 0===t&&(t=this.table.options.addRowPos),
"pos"===t&&(t=!0),
"bottom"===t&&(t=!1),t},RowManager.prototype.addRowActual=
function(t,e,o,i){var n,s=t instanceof Row?t:
new Row(t||{},
this),l=this.findAddRowPos(e);
if(!o&&this.table.options.pagination&&
"page"==
this.table.options.paginationAddRow&&(n=
this.getDisplayRows(),l?n.length?o=n[0]:this.activeRows.length&&(o=this.activeRows[this.activeRows.length-1],l=!1):n.length&&(o=n[n.length-1],l=!(n.length<
this.table.modules.page.getPageSize()))),o&&(o=this.findRow(o)),this.table.options.groupBy&&
this.table.modExists(
"groupRows")){this.table.modules.groupRows.assignRowToGroup(s);var a=s.getGroup().rows;a.length>1&&(!o||o&&-1==a.indexOf(o)?l?a[0]!==s&&(o=a[0],this._moveRowInArray(s.getGroup().rows,s,o,!l)):a[a.length-1]!==s&&(o=a[a.length-1],this._moveRowInArray(s.getGroup().rows,s,o,!l)):this._moveRowInArray(s.getGroup().rows,s,o,!l))}if(o){var r=this.rows.indexOf(o),u=this.activeRows.indexOf(o);this.displayRowIterator(
function(t){var e=t.indexOf(o);e>-1&&t.splice(l?e:e+1,0,s)}),u>-1&&this.activeRows.splice(l?u:u+1,0,s),r>-1&&this.rows.splice(l?r:r+1,0,s)}
else l?(this.displayRowIterator(
function(t){t.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(
function(t){t.push(s)}),this.activeRows.push(s),this.rows.push(s));
return this.setActiveRows(this.activeRows),this.table.options.rowAdded.call(this.table,s.getComponent()),this.table.options.dataEdited.call(
this.table,
this.getData()),i||this.reRenderInPosition(),s},RowManager.prototype.moveRow=
function(t,e,o){this.table.options.history&&this.table.modExists(
"history")&&this.table.modules.history.action(
"rowMove",t,{pos:this.getRowPosition(t),to:e,after:o}),this.moveRowActual(t,e,o),this.table.options.rowMoved.call(this.table,t.getComponent())},RowManager.prototype.moveRowActual=
function(t,e,o){var i=
this;
if(this._moveRowInArray(this.rows,t,e,o),this._moveRowInArray(this.activeRows,t,e,o),this.displayRowIterator(
function(n){i._moveRowInArray(n,t,e,o)}),this.table.options.groupBy&&
this.table.modExists(
"groupRows")){var n=e.getGroup(),s=t.getGroup();n===s?this._moveRowInArray(n.rows,t,e,o):(s&&s.removeRow(t),n.insertRow(t,e,o))}},RowManager.prototype._moveRowInArray=function(t,e,o,i){var n,s,l,a;
if(e!==o&&(n=t.indexOf(e),n>-1&&(t.splice(n,1),s=t.indexOf(o),s>-1?i?t.splice(s+1,0,e):t.splice(s,0,e):t.splice(n,0,e)),t===this.getDisplayRows())){l=n<s?n:s,a=s>n?s:n+1;
for(var r=l;r<=a;r++)t[r]&&this.styleRow(t[r],r)}},RowManager.prototype.clearData=
function(){this.setData([])},RowManager.prototype.getRowIndex=
function(t){
return this.findRowIndex(t,this.rows)},RowManager.prototype.getDisplayRowIndex=
function(t){var e=this.getDisplayRows().indexOf(t);
return e>-1&&e},RowManager.prototype.nextDisplayRow=
function(t,e){var o=this.getDisplayRowIndex(t),i=!1;
return!1!==o&&o<this.displayRowsCount-1&&(i=this.getDisplayRows()[o+1]),!i||i instanceof Row&&
"row"==i.type?i:
this.nextDisplayRow(i,e)},RowManager.prototype.prevDisplayRow=
function(t,e){var o=this.getDisplayRowIndex(t),i=!1;
return o&&(i=this.getDisplayRows()[o-1]),!i||i instanceof Row&&
"row"==i.type?i:
this.prevDisplayRow(i,e)},RowManager.prototype.findRowIndex=
function(t,e){var o;
return!!((t=this.findRow(t))&&(o=e.indexOf(t))>-1)&&o},RowManager.prototype.getData=
function(t,e){var o=[];
return this.getRows(t).forEach(
function(t){o.push(t.getData(e||
"data"))}),o},RowManager.prototype.getComponents=
function(t){var e=[];
return this.getRows(t).forEach(
function(t){e.push(t.getComponent())}),e},RowManager.prototype.getDataCount=
function(t){
return this.getRows(t).length},RowManager.prototype._genRemoteRequest=
function(){var t=
this,e=t.table,o=e.options,i={};
if(e.modExists(
"page")){
if(o.ajaxSorting){var n=t.table.modules.sort.getSort();n.forEach(
function(t){
delete t.column}),i[t.table.modules.page.paginationDataSentNames.sorters]=n}
if(o.ajaxFiltering){var s=t.table.modules.filter.getFilters(!0,!0);i[t.table.modules.page.paginationDataSentNames.filters]=s}t.table.modules.ajax.setParams(i,!0)}e.modules.ajax.sendRequest().then(
function(e){t.setData(e)}).
catch(
function(t){})},RowManager.prototype.filterRefresh=
function(){var t=this.table,e=t.options,o=this.scrollLeft;e.ajaxFiltering?
"remote"==e.pagination&&t.modExists(
"page")?(t.modules.page.reset(!0),t.modules.page.setPage(1).then(
function(){}).
catch(
function(){})):e.ajaxProgressiveLoad?t.modules.ajax.loadData().then(
function(){}).
catch(
function(){}):this._genRemoteRequest():this.refreshActiveData(
"filter"),this.scrollHorizontal(o)},RowManager.prototype.sorterRefresh=
function(t){var e=this.table,o=this.table.options,i=this.scrollLeft;o.ajaxSorting?(
"remote"==o.pagination||o.progressiveLoad)&&e.modExists(
"page")?(e.modules.page.reset(!0),e.modules.page.setPage(1).then(
function(){}).
catch(
function(){})):o.ajaxProgressiveLoad?e.modules.ajax.loadData().then(
function(){}).
catch(
function(){}):this._genRemoteRequest():this.refreshActiveData(t?
"filter":
"sort"),this.scrollHorizontal(i)},RowManager.prototype.scrollHorizontal=
function(t){this.scrollLeft=t,this.element.scrollLeft=t,this.table.options.groupBy&&this.table.modules.groupRows.scrollHeaders(t),this.table.modExists(
"columnCalcs")&&this.table.modules.columnCalcs.scrollHorizontal(t)},RowManager.prototype.refreshActiveData=
function(t,e,o){var i,n=
this,s=
this,l=this.table,a=[
"all",
"filter",
"sort",
"display",
"freeze",
"group",
"tree",
"page"];
if(this.redrawBlock)
return void((!this.redrawBlockRestoreConfig||a.indexOf(t)<a.indexOf(this.redrawBlockRestoreConfig.stage))&&(this.redrawBlockRestoreConfig={stage:t,skipStage:e,renderInPosition:o}));
switch(s.table.modExists(
"edit")&&s.table.modules.edit.cancelEdit(),t||(t=
"all"),l.options.selectable&&!l.options.selectablePersistence&&l.modExists(
"selectRow")&&l.modules.selectRow.deselectRows(),t){
case"all":
case"filter":e?e=!1:l.modExists(
"filter")?s.setActiveRows(l.modules.filter.filter(s.rows)):s.setActiveRows(s.rows.slice(0));
case"sort":e?e=!1:l.modExists(
"sort")&&l.modules.sort.sort(this.activeRows),this.rowNumColumn&&this.activeRows.forEach(
function(t){var e=t.getCell(n.rowNumColumn);e&&e._generateContents()});
case"display":this.resetDisplayRows();
case"freeze":e?e=!1:this.table.modExists(
"frozenRows")&&l.modules.frozenRows.isFrozen()&&(l.modules.frozenRows.getDisplayIndex()||l.modules.frozenRows.setDisplayIndex(this.getNextDisplayIndex()),i=l.modules.frozenRows.getDisplayIndex(),!0!==(i=s.setDisplayRows(l.modules.frozenRows.getRows(
this.getDisplayRows(i-1)),i))&&l.modules.frozenRows.setDisplayIndex(i));
case"group":e?e=!1:l.options.groupBy&&l.modExists(
"groupRows")&&(l.modules.groupRows.getDisplayIndex()||l.modules.groupRows.setDisplayIndex(this.getNextDisplayIndex()),i=l.modules.groupRows.getDisplayIndex(),!0!==(i=s.setDisplayRows(l.modules.groupRows.getRows(
this.getDisplayRows(i-1)),i))&&l.modules.groupRows.setDisplayIndex(i));
case"tree":e?e=!1:l.options.dataTree&&l.modExists(
"dataTree")&&(l.modules.dataTree.getDisplayIndex()||l.modules.dataTree.setDisplayIndex(this.getNextDisplayIndex()),i=l.modules.dataTree.getDisplayIndex(),!0!==(i=s.setDisplayRows(l.modules.dataTree.getRows(
this.getDisplayRows(i-1)),i))&&l.modules.dataTree.setDisplayIndex(i)),l.options.pagination&&l.modExists(
"page")&&!o&&
"local"==l.modules.page.getMode()&&l.modules.page.reset();
case"page":e?e=!1:l.options.pagination&&l.modExists(
"page")&&(l.modules.page.getDisplayIndex()||l.modules.page.setDisplayIndex(this.getNextDisplayIndex()),i=l.modules.page.getDisplayIndex(),
"local"==l.modules.page.getMode()&&l.modules.page.setMaxRows(this.getDisplayRows(i-1).length),!0!==(i=s.setDisplayRows(l.modules.page.getRows(
this.getDisplayRows(i-1)),i))&&l.modules.page.setDisplayIndex(i))}Tabulator.prototype.helpers.elVisible(s.element)&&(o?s.reRenderInPosition():(s.renderTable(),l.options.layoutColumnsOnNewData&&s.table.columnManager.redraw(!0))),l.modExists(
"columnCalcs")&&l.modules.columnCalcs.recalc(this.activeRows)},RowManager.prototype.setActiveRows=
function(t){this.activeRows=t,this.activeRowsCount=this.activeRows.length},RowManager.prototype.resetDisplayRows=
function(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length,this.table.modExists(
"frozenRows")&&this.table.modules.frozenRows.setDisplayIndex(0),this.table.options.groupBy&&this.table.modExists(
"groupRows")&&this.table.modules.groupRows.setDisplayIndex(0),this.table.options.pagination&&this.table.modExists(
"page")&&this.table.modules.page.setDisplayIndex(0)},RowManager.prototype.getNextDisplayIndex=
function(){
return this.displayRows.length},RowManager.prototype.setDisplayRows=
function(t,e){var o=!0;
return e&&
void 0!==this.displayRows[e]?(this.displayRows[e]=t,o=!0):(this.displayRows.push(t),o=e=this.displayRows.length-1),e==this.displayRows.length-1&&(
this.displayRowsCount=
this.displayRows[
this.displayRows.length-1].length),o},RowManager.prototype.getDisplayRows=
function(t){
return void 0===t?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[t]||[]},RowManager.prototype.getVisibleRows=
function(t){var e=this.element.scrollTop,o=this.element.clientHeight+e,i=!1,n=0,s=0,l=this.getDisplayRows();
if(t){this.getDisplayRows();
for(var a=this.vDomTop;a<=this.vDomBottom;a++)
if(l[a])
if(i){
if(!(o-l[a].getElement().offsetTop>=0))
break;s=a}
else if(e-l[a].getElement().offsetTop>=0)n=a;
else{
if(i=!0,!(o-l[a].getElement().offsetTop>=0))
break;s=a}}
else n=this.vDomTop,s=this.vDomBottom;
return l.slice(n,s+1)},RowManager.prototype.displayRowIterator=
function(t){this.displayRows.forEach(t),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length},RowManager.prototype.getRows=
function(t){var e;
switch(t){
case"active":e=this.activeRows;
break;
case"visible":e=this.getVisibleRows(!0);
break;
default:e=this.rows}
return e},RowManager.prototype.reRenderInPosition=
function(t){
if(
"virtual"==this.getRenderMode())
if(this.redrawBlock)t?t():this.redrawBlockRederInPosition=!0;
else{
for(var e=this.element.scrollTop,o=!1,i=!1,n=
this.scrollLeft,s=
this.getDisplayRows(),l=this.vDomTop;l<=this.vDomBottom;l++)
if(s[l]){var a=e-s[l].getElement().offsetTop;
if(!(!1===i||Math.abs(a)<i))
break;i=a,o=l}t&&t(),this._virtualRenderFill(!1===o?this.displayRowsCount-1:o,!0,i||0),this.scrollHorizontal(n)}
else this.renderTable(),t&&t()},RowManager.prototype.setRenderMode=
function(){(this.table.element.clientHeight||this.table.options.height)&&this.table.options.virtualDom?
this.renderMode=
"virtual":
this.renderMode=
"classic"},RowManager.prototype.getRenderMode=
function(){
return this.renderMode},RowManager.prototype.renderTable=
function(){var t=
this;
switch(t.table.options.renderStarted.call(
this.table),t.element.scrollTop=0,t.renderMode){
case"classic":t._simpleRender();
break;
case"virtual":t._virtualRenderFill()}t.firstRender&&(t.displayRowsCount?(t.firstRender=!1,t.table.modules.layout.layout()):t.renderEmptyScroll()),t.table.modExists(
"frozenColumns")&&t.table.modules.frozenColumns.layout(),t.displayRowsCount||t.table.options.placeholder&&(this.renderMode&&t.table.options.placeholder.setAttribute(
"tabulator-render-mode",this.renderMode),t.getElement().appendChild(t.table.options.placeholder)),t.table.options.renderComplete.call(
this.table)},RowManager.prototype._simpleRender=
function(){this._clearVirtualDom(),this.displayRowsCount?this.checkClassicModeGroupHeaderWidth():this.renderEmptyScroll()},RowManager.prototype.checkClassicModeGroupHeaderWidth=function(){var t=
this,e=this.tableElement,o=!0;t.getDisplayRows().forEach(
function(i,n){t.styleRow(i,n),e.appendChild(i.getElement()),i.initialize(!0),
"group"!==i.type&&(o=!1)}),e.style.minWidth=o?t.table.columnManager.getWidth()+
"px":
""},RowManager.prototype.renderEmptyScroll=
function(){this.tableElement.style.minWidth=this.table.columnManager.getWidth()+
"px",this.tableElement.style.minHeight=
"1px",this.tableElement.style.visibility=
"hidden"},RowManager.prototype._clearVirtualDom=
function(){var t=this.tableElement;
for(this.table.options.placeholder&&
this.table.options.placeholder.parentNode&&
this.table.options.placeholder.parentNode.removeChild(
this.table.options.placeholder);t.firstChild;)t.removeChild(t.firstChild);t.style.paddingTop=
"",t.style.paddingBottom=
"",t.style.minWidth=
"",t.style.minHeight=
"",t.style.visibility=
"",this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0},RowManager.prototype.styleRow=
function(t,e){var o=t.getElement();e%2?(o.classList.add(
"tabulator-row-even"),o.classList.remove(
"tabulator-row-odd")):(o.classList.add(
"tabulator-row-odd"),o.classList.remove(
"tabulator-row-even"))},RowManager.prototype._virtualRenderFill=
function(t,e,o){var i=
this,n=i.tableElement,s=i.element,l=0,a=0,r=0,u=0,c=!0,h=i.getDisplayRows();
if(t=t||0,o=o||0,t){
for(;n.firstChild;)n.removeChild(n.firstChild);var p=(i.displayRowsCount-t+1)*i.vDomRowHeight;p<i.height&&(t-=Math.ceil((i.height-p)/i.vDomRowHeight))<0&&(t=0),l=Math.min(Math.max(Math.floor(i.vDomWindowBuffer/i.vDomRowHeight),i.vDomWindowMinMarginRows),t),t-=l}
else i._clearVirtualDom();
if(i.displayRowsCount&&Tabulator.prototype.helpers.elVisible(i.element)){
for(i.vDomTop=t,i.vDomBottom=t-1;(a<=i.height+i.vDomWindowBuffer||u<i.vDomWindowMinTotalRows)&&i.vDomBottom<i.displayRowsCount-1;){var d=i.vDomBottom+1,m=h[d],f=0;i.styleRow(m,d),n.appendChild(m.getElement()),m.initialized?m.heightInitialized||m.normalizeHeight(!0):m.initialize(!0),f=m.getHeight(),u<l?r+=f:a+=f,f>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*f),
"group"!==m.type&&(c=!1),i.vDomBottom++,u++}t?(i.vDomTopPad=e?i.vDomRowHeight*this.vDomTop+o:i.scrollTop-r,i.vDomBottomPad=i.vDomBottom==i.displayRowsCount-1?0:Math.max(i.vDomScrollHeight-i.vDomTopPad-a-r,0)):(this.vDomTopPad=0,i.vDomRowHeight=Math.floor((a+r)/u),i.vDomBottomPad=i.vDomRowHeight*(i.displayRowsCount-i.vDomBottom-1),i.vDomScrollHeight=r+a+i.vDomBottomPad-i.height),n.style.paddingTop=i.vDomTopPad+
"px",n.style.paddingBottom=i.vDomBottomPad+
"px",e&&(this.scrollTop=i.vDomTopPad+r+o-(this.element.scrollWidth>this.element.clientWidth?this.element.offsetHeight-this.element.clientHeight:0)),this.scrollTop=Math.min(this.scrollTop,this.element.scrollHeight-
this.height),this.element.scrollWidth>this.element.offsetWidth&&e&&(this.scrollTop+=this.element.offsetHeight-this.element.clientHeight),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,s.scrollTop=
this.scrollTop,n.style.minWidth=c?i.table.columnManager.getWidth()+
"px":
"",i.table.options.groupBy&&
"fitDataFill"!=i.table.modules.layout.getMode()&&i.displayRowsCount==i.table.modules.groupRows.countGroups()&&(i.tableElement.style.minWidth=i.table.columnManager.getWidth())}
else this.renderEmptyScroll()},RowManager.prototype.scrollVertical=
function(t){var e=this.scrollTop-this.vDomScrollPosTop,o=this.scrollTop-this.vDomScrollPosBottom,i=2*this.vDomWindowBuffer;
if(-e>i||o>i){var n=this.scrollLeft;this._virtualRenderFill(Math.floor(
this.element.scrollTop/
this.element.scrollHeight*
this.displayRowsCount)),this.scrollHorizontal(n)}
else t?(e<0&&this._addTopRow(-e),o<0&&this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer&&this._removeBottomRow(-o)):(e>=0&&this.scrollTop>this.vDomWindowBuffer&&this._removeTopRow(e),o>=0&&this._addBottomRow(o))},RowManager.prototype._addTopRow=
function(t){var e=arguments.length>1&&
void 0!==arguments[1]?arguments[1]:0,o=this.tableElement,i=this.getDisplayRows();
if(this.vDomTop){var n=this.vDomTop-1,s=i[n],l=s.getHeight()||this.vDomRowHeight;t>=l&&(this.styleRow(s,n),o.insertBefore(s.getElement(),o.firstChild),s.initialized&&s.heightInitialized||(
this.vDomTopNewRows.push(s),s.heightInitialized||s.clearCellHeight()),s.initialize(),this.vDomTopPad-=l,this.vDomTopPad<0&&(this.vDomTopPad=n*this.vDomRowHeight),n||(this.vDomTopPad=0),o.style.paddingTop=this.vDomTopPad+
"px",this.vDomScrollPosTop-=l,this.vDomTop--),t=-(this.scrollTop-this.vDomScrollPosTop),s.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*s.getHeight()),e<this.vDomMaxRenderChain&&this.vDomTop&&t>=(i[this.vDomTop-1].getHeight()||this.vDomRowHeight)?this._addTopRow(t,e+1):this._quickNormalizeRowHeight(this.vDomTopNewRows)}},RowManager.prototype._removeTopRow=function(t){var e=this.tableElement,o=this.getDisplayRows()[this.vDomTop],i=o.getHeight()||this.vDomRowHeight;
if(t>=i){var n=o.getElement();n.parentNode.removeChild(n),this.vDomTopPad+=i,e.style.paddingTop=this.vDomTopPad+
"px",this.vDomScrollPosTop+=this.vDomTop?i:i+this.vDomWindowBuffer,this.vDomTop++,t=this.scrollTop-this.vDomScrollPosTop,this._removeTopRow(t)}},RowManager.prototype._addBottomRow=
function(t){var e=arguments.length>1&&
void 0!==arguments[1]?arguments[1]:0,o=this.tableElement,i=this.getDisplayRows();
if(this.vDomBottom<this.displayRowsCount-1){var n=this.vDomBottom+1,s=i[n],l=s.getHeight()||this.vDomRowHeight;t>=l&&(this.styleRow(s,n),o.appendChild(s.getElement()),s.initialized&&s.heightInitialized||(
this.vDomBottomNewRows.push(s),s.heightInitialized||s.clearCellHeight()),s.initialize(),this.vDomBottomPad-=l,(this.vDomBottomPad<0||n==this.displayRowsCount-1)&&(this.vDomBottomPad=0),o.style.paddingBottom=this.vDomBottomPad+
"px",this.vDomScrollPosBottom+=l,this.vDomBottom++),t=this.scrollTop-this.vDomScrollPosBottom,s.getHeight()>this.vDomWindowBuffer&&(this.vDomWindowBuffer=2*s.getHeight()),e<this.vDomMaxRenderChain&&this.vDomBottom<this.displayRowsCount-1&&t>=(i[this.vDomBottom+1].getHeight()||this.vDomRowHeight)?this._addBottomRow(t,e+1):this._quickNormalizeRowHeight(this.vDomBottomNewRows)}},RowManager.prototype._removeBottomRow=function(t){var e=this.tableElement,o=this.getDisplayRows()[this.vDomBottom],i=o.getHeight()||this.vDomRowHeight;
if(t>=i){var n=o.getElement();n.parentNode&&n.parentNode.removeChild(n),this.vDomBottomPad+=i,this.vDomBottomPad<0&&(this.vDomBottomPad=0),e.style.paddingBottom=
this.vDomBottomPad+
"px",
this.vDomScrollPosBottom-=i,
this.vDomBottom--,t=-(
this.scrollTop-
this.vDomScrollPosBottom),this._removeBottomRow(t)}},RowManager.prototype._quickNormalizeRowHeight=
function(t){t.forEach(
function(t){t.calcHeight()}),t.forEach(
function(t){t.setCellHeight()}),t.length=0},RowManager.prototype.normalizeHeight=
function(){this.activeRows.forEach(
function(t){t.normalizeHeight()})},RowManager.prototype.adjustTableSize=
function(){
if(
"virtual"===this.renderMode){this.height=this.element.clientHeight,this.vDomWindowBuffer=this.table.options.virtualDomBuffer||this.height;var t=this.columnManager.getElement().offsetHeight+(this.table.footerManager&&!this.table.footerManager.external?this.table.footerManager.getElement().offsetHeight:0);this.element.style.minHeight=
"calc(100% - "+t+
"px)",this.element.style.height=
"calc(100% - "+t+
"px)",this.element.style.maxHeight=
"calc(100% - "+t+
"px)"}},RowManager.prototype.reinitialize=
function(){this.rows.forEach(
function(t){t.reinitialize()})},RowManager.prototype.blockRedraw=
function(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1},RowManager.prototype.restoreRedraw=
function(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.stage,
this.redrawBlockRestoreConfig.skipStage,
this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRederInPosition&&this.reRenderInPosition(),this.redrawBlockRederInPosition=!1},RowManager.prototype.redraw=
function(t){var e=this.scrollLeft;this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,t?this.renderTable():(
"classic"==this.renderMode?this.table.options.groupBy?this.refreshActiveData(
"group",!1,!1):this._simpleRender():(this.reRenderInPosition(),this.scrollHorizontal(e)),this.displayRowsCount||this.table.options.placeholder&&this.getElement().appendChild(this.table.options.placeholder))},RowManager.prototype.resetScroll=function(){
if(this.element.scrollLeft=0,
this.element.scrollTop=0,
"ie"===
this.table.browser){var t=document.createEvent(
"Event");t.initEvent(
"scroll",!1,!0),this.element.dispatchEvent(t)}
else this.element.dispatchEvent(
new Event(
"scroll"))};var RowComponent=
function(t){this._row=t};RowComponent.prototype.getData=
function(t){
return this._row.getData(t)},RowComponent.prototype.getElement=
function(){
return this._row.getElement()},RowComponent.prototype.getCells=
function(){var t=[];
return this._row.getCells().forEach(
function(e){t.push(e.getComponent())}),t},RowComponent.prototype.getCell=
function(t){var e=this._row.getCell(t);
return!!e&&e.getComponent()},RowComponent.prototype.getIndex=
function(){
return this._row.getData(
"data")[this._row.table.options.index]},RowComponent.prototype.getPosition=
function(t){
return this._row.table.rowManager.getRowPosition(this._row,t)},RowComponent.prototype.delete=
function(){
return this._row.delete()},RowComponent.prototype.scrollTo=
function(){
return this._row.table.rowManager.scrollToRow(this._row)},RowComponent.prototype.pageTo=
function(){
if(this._row.table.modExists(
"page",!0))
return this._row.table.modules.page.setPageToRow(
this._row)},RowComponent.prototype.move=
function(t,e){this._row.moveToRow(t,e)},RowComponent.prototype.update=
function(t){
return this._row.updateData(t)},RowComponent.prototype.normalizeHeight=
function(){this._row.normalizeHeight(!0)},RowComponent.prototype.select=
function(){this._row.table.modules.selectRow.selectRows(this._row)},RowComponent.prototype.deselect=
function(){this._row.table.modules.selectRow.deselectRows(this._row)},RowComponent.prototype.toggleSelect=
function(){this._row.table.modules.selectRow.toggleRow(this._row)},RowComponent.prototype.isSelected=
function(){
return this._row.table.modules.selectRow.isRowSelected(this._row)},RowComponent.prototype._getSelf=
function(){
return this._row},RowComponent.prototype.freeze=
function(){this._row.table.modExists(
"frozenRows",!0)&&this._row.table.modules.frozenRows.freezeRow(this._row)},RowComponent.prototype.unfreeze=
function(){this._row.table.modExists(
"frozenRows",!0)&&this._row.table.modules.frozenRows.unfreezeRow(this._row)},RowComponent.prototype.treeCollapse=
function(){this._row.table.modExists(
"dataTree",!0)&&this._row.table.modules.dataTree.collapseRow(this._row)},RowComponent.prototype.treeExpand=
function(){this._row.table.modExists(
"dataTree",!0)&&this._row.table.modules.dataTree.expandRow(this._row)},RowComponent.prototype.treeToggle=
function(){this._row.table.modExists(
"dataTree",!0)&&this._row.table.modules.dataTree.toggleRow(this._row)},RowComponent.prototype.getTreeParent=
function(){
return!!this._row.table.modExists(
"dataTree",!0)&&this._row.table.modules.dataTree.getTreeParent(this._row)},RowComponent.prototype.getTreeChildren=
function(){
return!!this._row.table.modExists(
"dataTree",!0)&&this._row.table.modules.dataTree.getTreeChildren(this._row)},RowComponent.prototype.reformat=
function(){
return this._row.reinitialize()},RowComponent.prototype.getGroup=
function(){
return this._row.getGroup().getComponent()},RowComponent.prototype.getTable=
function(){
return this._row.table},RowComponent.prototype.getNextRow=
function(){var t=this._row.nextRow();
return t?t.getComponent():t},
4 RowComponent.prototype.getPrevRow=
function(){var t=this._row.prevRow();
return t?t.getComponent():t};var Row=
function(t,e){var o=arguments.length>2&&
void 0!==arguments[2]?arguments[2]:
"row";this.table=e.table,this.parent=e,this.data={},this.type=o,this.element=this.createElement(),this.modules={},this.cells=[],this.height=0,this.heightStyled=
"",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.setData(t),this.generateElement()};Row.prototype.createElement=
function(){var t=document.createElement(
"div");
return t.classList.add(
"tabulator-row"),t.setAttribute(
"role",
"row"),t},Row.prototype.getElement=
function(){
return this.element},Row.prototype.detachElement=
function(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},Row.prototype.generateElement=
function(){var t,e,o,i=
this;!1!==i.table.options.selectable&&i.table.modExists(
"selectRow")&&i.table.modules.selectRow.initializeRow(
this),!1!==i.table.options.movableRows&&i.table.modExists(
"moveRow")&&i.table.modules.moveRow.initializeRow(
this),!1!==i.table.options.dataTree&&i.table.modExists(
"dataTree")&&i.table.modules.dataTree.initializeRow(
this),
"collapse"===i.table.options.responsiveLayout&&i.table.modExists(
"responsiveLayout")&&i.table.modules.responsiveLayout.initializeRow(
this),i.table.options.rowClick&&i.element.addEventListener(
"click",
function(t){i.table.options.rowClick(t,i.getComponent())}),i.table.options.rowDblClick&&i.element.addEventListener(
"dblclick",
function(t){i.table.options.rowDblClick(t,i.getComponent())}),i.table.options.rowContext&&i.element.addEventListener(
"contextmenu",
function(t){i.table.options.rowContext(t,i.getComponent())}),i.table.options.rowMouseEnter&&i.element.addEventListener(
"mouseenter",
function(t){i.table.options.rowMouseEnter(t,i.getComponent())}),i.table.options.rowMouseLeave&&i.element.addEventListener(
"mouseleave",
function(t){i.table.options.rowMouseLeave(t,i.getComponent())}),i.table.options.rowMouseOver&&i.element.addEventListener(
"mouseover",
function(t){i.table.options.rowMouseOver(t,i.getComponent())}),i.table.options.rowMouseOut&&i.element.addEventListener(
"mouseout",
function(t){i.table.options.rowMouseOut(t,i.getComponent())}),i.table.options.rowMouseMove&&i.element.addEventListener(
"mousemove",
function(t){i.table.options.rowMouseMove(t,i.getComponent())}),i.table.options.rowTap&&(o=!1,i.element.addEventListener(
"touchstart",
function(t){o=!0},{passive:!0}),i.element.addEventListener(
"touchend",
function(t){o&&i.table.options.rowTap(t,i.getComponent()),o=!1})),i.table.options.rowDblTap&&(t=null,i.element.addEventListener(
"touchend",
function(e){t?(clearTimeout(t),t=null,i.table.options.rowDblTap(e,i.getComponent())):t=setTimeout(
function(){clearTimeout(t),t=null},300)})),i.table.options.rowTapHold&&(e=null,i.element.addEventListener(
"touchstart",
function(t){clearTimeout(e),e=setTimeout(
function(){clearTimeout(e),e=null,o=!1,i.table.options.rowTapHold(t,i.getComponent())},1e3)},{passive:!0}),i.element.addEventListener(
"touchend",
function(t){clearTimeout(e),e=null}))},Row.prototype.generateCells=
function(){this.cells=this.table.columnManager.generateCells(
this)},Row.prototype.initialize=
function(t){var e=
this;
if(!e.initialized||t){
for(e.deleteCells();e.element.firstChild;)e.element.removeChild(e.element.firstChild);this.table.modExists(
"frozenColumns")&&this.table.modules.frozenColumns.layoutRow(
this),this.generateCells(),e.cells.forEach(
function(t){e.element.appendChild(t.getElement()),t.cellRendered()}),t&&e.normalizeHeight(),e.table.options.dataTree&&e.table.modExists(
"dataTree")&&e.table.modules.dataTree.layoutRow(
this),
"collapse"===e.table.options.responsiveLayout&&e.table.modExists(
"responsiveLayout")&&e.table.modules.responsiveLayout.layoutRow(
this),e.table.options.rowFormatter&&e.table.options.rowFormatter(e.getComponent()),e.table.options.resizableRows&&e.table.modExists(
"resizeRows")&&e.table.modules.resizeRows.initializeRow(e),e.initialized=!0}},Row.prototype.reinitializeHeight=
function(){this.heightInitialized=!1,null!==this.element.offsetParent&&this.normalizeHeight(!0)},Row.prototype.reinitialize=
function(){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=
""),null!==this.element.offsetParent&&
this.initialize(!0)},Row.prototype.calcHeight=
function(t){var e=0,o=this.table.options.resizableRows?this.element.clientHeight:0;this.cells.forEach(
function(t){var o=t.getHeight();o>e&&(e=o)}),this.height=t?Math.max(e,o):this.manualHeight?this.height:Math.max(e,o),this.heightStyled=this.height?this.height+
"px":
"",this.outerHeight=this.element.offsetHeight},Row.prototype.setCellHeight=
function(){this.cells.forEach(
function(t){t.setHeight()}),this.heightInitialized=!0},Row.prototype.clearCellHeight=
function(){this.cells.forEach(
function(t){t.clearHeight()})},Row.prototype.normalizeHeight=
function(t){t&&this.clearCellHeight(),this.calcHeight(t),this.setCellHeight()},Row.prototype.setHeight=
function(t,e){(this.height!=t||e)&&(this.manualHeight=!0,this.height=t,this.heightStyled=t?t+
"px":
"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight)},Row.prototype.getHeight=
function(){
return this.outerHeight},Row.prototype.getWidth=
function(){
return this.element.offsetWidth},Row.prototype.deleteCell=
function(t){var e=this.cells.indexOf(t);e>-1&&this.cells.splice(e,1)},Row.prototype.setData=
function(t){this.table.modExists(
"mutator")&&(t=this.table.modules.mutator.transformRow(t,
"data",t)),this.data=t,this.table.options.reactiveData&&
this.table.modExists(
"reactiveData",!0)&&this.table.modules.reactiveData.watchRow(
this)},Row.prototype.updateData=
function(t){var e=
this,o=Tabulator.prototype.helpers.elVisible(this.element),i={};
return new Promise(
function(n,s){
"string"==typeof t&&(t=JSON.parse(t)),e.table.options.reactiveData&&e.table.modExists(
"reactiveData",!0)&&e.table.modules.reactiveData.block(),e.table.modExists(
"mutator")&&(i=Object.assign(i,e.data),i=Object.assign(i,t),t=e.table.modules.mutator.transformRow(i,
"data",t));
for(var l in t)e.data[l]=t[l];e.table.options.reactiveData&&e.table.modExists(
"reactiveData",!0)&&e.table.modules.reactiveData.unblock();
for(var l in t){e.table.columnManager.getColumnsByFieldRoot(l).forEach(
function(i){var n=e.getCell(i.getField());
if(n){var s=i.getFieldValue(t);n.getValue()!=s&&(n.setValueProcessData(s),o&&n.cellRendered())}})}o?(e.normalizeHeight(),e.table.options.rowFormatter&&e.table.options.rowFormatter(e.getComponent())):(e.initialized=!1,e.height=0,e.heightStyled=
""),!1!==e.table.options.dataTree&&e.table.modExists(
"dataTree")&&e.table.modules.dataTree.redrawNeeded(t)&&(e.table.modules.dataTree.initializeRow(e),e.table.modules.dataTree.layoutRow(e),e.table.rowManager.refreshActiveData(
"tree",!1,!0)),e.table.options.rowUpdated.call(e.table,e.getComponent()),n()})},Row.prototype.getData=function(t){var e=
this;
return t?e.table.modExists(
"accessor")?e.table.modules.accessor.transformRow(e.data,t):
void 0:this.data},Row.prototype.getCell=
function(t){
return t=this.table.columnManager.findColumn(t),this.cells.find(
function(e){
return e.column===t})},Row.prototype.getCellIndex=
function(t){
return this.cells.findIndex(
function(e){
return e===t})},Row.prototype.findNextEditableCell=
function(t){var e=!1;
if(t<this.cells.length-1)
for(var o=t+1;o<this.cells.length;o++){var i=this.cells[o];
if(i.column.modules.edit&&Tabulator.prototype.helpers.elVisible(i.getElement())){var n=!0;
if(
"function"==typeof i.column.modules.edit.check&&(n=i.column.modules.edit.check(i.getComponent())),n){e=i;
break}}}
return e},Row.prototype.findPrevEditableCell=
function(t){var e=!1;
if(t>0)
for(var o=t-1;o>=0;o--){var i=this.cells[o],n=!0;
if(i.column.modules.edit&&Tabulator.prototype.helpers.elVisible(i.getElement())&&(
"function"==typeof i.column.modules.edit.check&&(n=i.column.modules.edit.check(i.getComponent())),n)){e=i;
break}}
return e},Row.prototype.getCells=
function(){
return this.cells},Row.prototype.nextRow=
function(){
return this.table.rowManager.nextDisplayRow(
this,!0)||!1},Row.prototype.prevRow=
function(){
return this.table.rowManager.prevDisplayRow(
this,!0)||!1},Row.prototype.moveToRow=
function(t,e){var o=this.table.rowManager.findRow(t);o?(this.table.rowManager.moveRowActual(
this,o,!e),this.table.rowManager.refreshActiveData(
"display",!1,!0)):console.warn(
"Move Error - No matching row found:",t)},Row.prototype.delete=
function(){var t=
this;
return new Promise(
function(e,o){var i,n;t.table.options.history&&t.table.modExists(
"history")&&(t.table.options.groupBy&&t.table.modExists(
"groupRows")?(n=t.getGroup().rows,(i=n.indexOf(t))&&(i=n[i-1])):(i=t.table.rowManager.getRowIndex(t))&&(i=t.table.rowManager.rows[i-1]),t.table.modules.history.action(
"rowDelete",t,{data:t.getData(),pos:!i,index:i})),t.deleteActual(),e()})},Row.prototype.deleteActual=
function(t){this.table.rowManager.getRowIndex(
this);this.table.modExists(
"selectRow")&&this.table.modules.selectRow._deselectRow(
this,!0),this.table.options.reactiveData&&this.table.modExists(
"reactiveData",!0),this.modules.group&&this.modules.group.removeRow(
this),this.table.rowManager.deleteRow(
this,t),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.table.modExists(
"columnCalcs")&&(this.table.options.groupBy&&this.table.modExists(
"groupRows")?this.table.modules.columnCalcs.recalcRowGroup(
this):this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows))},Row.prototype.deleteCells=
function(){
for(var t=this.cells.length,e=0;e<t;e++)this.cells[0].delete()},Row.prototype.wipe=
function(){
for(this.deleteCells();this.element.firstChild;)this.element.removeChild(
this.element.firstChild);this.element=!1,this.modules={},this.element.parentNode&&this.element.parentNode.removeChild(this.element)},Row.prototype.getGroup=
function(){
return this.modules.group||!1},Row.prototype.getComponent=
function(){
return new RowComponent(
this)};var CellComponent=
function(t){this._cell=t};CellComponent.prototype.getValue=
function(){
return this._cell.getValue()},CellComponent.prototype.getOldValue=
function(){
return this._cell.getOldValue()},CellComponent.prototype.getElement=
function(){
return this._cell.getElement()},CellComponent.prototype.getRow=
function(){
return this._cell.row.getComponent()},CellComponent.prototype.getData=
function(){
return this._cell.row.getData()},CellComponent.prototype.getField=
function(){
return this._cell.column.getField()},CellComponent.prototype.getColumn=
function(){
return this._cell.column.getComponent()},CellComponent.prototype.setValue=
function(t,e){
void 0===e&&(e=!0),this._cell.setValue(t,e)},CellComponent.prototype.restoreOldValue=
function(){this._cell.setValueActual(this._cell.getOldValue())},CellComponent.prototype.edit=
function(t){
return this._cell.edit(t)},CellComponent.prototype.cancelEdit=
function(){this._cell.cancelEdit()},CellComponent.prototype.nav=
function(){
return this._cell.nav()},CellComponent.prototype.checkHeight=
function(){this._cell.checkHeight()},CellComponent.prototype.getTable=
function(){
return this._cell.table},CellComponent.prototype._getSelf=
function(){
return this._cell};var Cell=
function(t,e){this.table=t.table,this.column=t,this.row=e,this.element=null,this.value=null,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.build()};Cell.prototype.build=
function(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(
this.row.data))},Cell.prototype.generateElement=
function(){this.element=document.createElement(
"div"),this.element.className=
"tabulator-cell",this.element.setAttribute(
"role",
"gridcell"),this.element=this.element},Cell.prototype._configureCell=
function(){var t=
this,e=t.column.cellEvents,o=t.element,i=this.column.getField();
if(o.style.textAlign=t.column.hozAlign,i&&o.setAttribute(
"tabulator-field",i),t.column.definition.cssClass){t.column.definition.cssClass.split(
" ").forEach(
function(t){o.classList.add(t)})}
"hover"===this.table.options.tooltipGenerationMode&&o.addEventListener(
"mouseenter",
function(e){t._generateTooltip()}),t._bindClickEvents(e),t._bindTouchEvents(e),t._bindMouseEvents(e),t.column.modules.edit&&t.table.modules.edit.bindEditor(t),t.column.definition.rowHandle&&!1!==t.table.options.movableRows&&t.table.modExists(
"moveRow")&&t.table.modules.moveRow.initializeCell(t),t.column.visible||t.hide()},Cell.prototype._bindClickEvents=
function(t){var e=
this,o=e.element;(t.cellClick||e.table.options.cellClick)&&o.addEventListener(
"click",
function(o){var i=e.getComponent();t.cellClick&&t.cellClick.call(e.table,o,i),e.table.options.cellClick&&e.table.options.cellClick.call(e.table,o,i)}),t.cellDblClick||
this.table.options.cellDblClick?o.addEventListener(
"dblclick",
function(o){var i=e.getComponent();t.cellDblClick&&t.cellDblClick.call(e.table,o,i),e.table.options.cellDblClick&&e.table.options.cellDblClick.call(e.table,o,i)}):o.addEventListener(
"dblclick",
function(t){t.preventDefault();
try{
if(document.selection){var o=document.body.createTextRange();o.moveToElementText(e.element),o.select()}
else if(window.getSelection){var o=document.createRange();o.selectNode(e.element),window.getSelection().removeAllRanges(),window.getSelection().addRange(o)}}
catch(t){}}),(t.cellContext||
this.table.options.cellContext)&&o.addEventListener(
"contextmenu",
function(o){var i=e.getComponent();t.cellContext&&t.cellContext.call(e.table,o,i),e.table.options.cellContext&&e.table.options.cellContext.call(e.table,o,i)})},Cell.prototype._bindMouseEvents=
function(t){var e=
this,o=e.element;(t.cellMouseEnter||e.table.options.cellMouseEnter)&&o.addEventListener(
"mouseenter",
function(o){var i=e.getComponent();t.cellMouseEnter&&t.cellMouseEnter.call(e.table,o,i),e.table.options.cellMouseEnter&&e.table.options.cellMouseEnter.call(e.table,o,i)}),(t.cellMouseLeave||e.table.options.cellMouseLeave)&&o.addEventListener(
"mouseleave",
function(o){var i=e.getComponent();t.cellMouseLeave&&t.cellMouseLeave.call(e.table,o,i),e.table.options.cellMouseLeave&&e.table.options.cellMouseLeave.call(e.table,o,i)}),(t.cellMouseOver||e.table.options.cellMouseOver)&&o.addEventListener(
"mouseover",
function(o){var i=e.getComponent();t.cellMouseOver&&t.cellMouseOver.call(e.table,o,i),e.table.options.cellMouseOver&&e.table.options.cellMouseOver.call(e.table,o,i)}),(t.cellMouseOut||e.table.options.cellMouseOut)&&o.addEventListener(
"mouseout",
function(o){var i=e.getComponent();t.cellMouseOut&&t.cellMouseOut.call(e.table,o,i),e.table.options.cellMouseOut&&e.table.options.cellMouseOut.call(e.table,o,i)}),(t.cellMouseMove||e.table.options.cellMouseMove)&&o.addEventListener(
"mousemove",
function(o){var i=e.getComponent();t.cellMouseMove&&t.cellMouseMove.call(e.table,o,i),e.table.options.cellMouseMove&&e.table.options.cellMouseMove.call(e.table,o,i)})},Cell.prototype._bindTouchEvents=
function(t){var e,o,i,n=
this,s=n.element;(t.cellTap||this.table.options.cellTap)&&(i=!1,s.addEventListener(
"touchstart",
function(t){i=!0},{passive:!0}),s.addEventListener(
"touchend",
function(e){
if(i){var o=n.getComponent();t.cellTap&&t.cellTap.call(n.table,e,o),n.table.options.cellTap&&n.table.options.cellTap.call(n.table,e,o)}i=!1})),(t.cellDblTap||this.table.options.cellDblTap)&&(e=null,s.addEventListener(
"touchend",
function(o){
if(e){clearTimeout(e),e=null;var i=n.getComponent();t.cellDblTap&&t.cellDblTap.call(n.table,o,i),n.table.options.cellDblTap&&n.table.options.cellDblTap.call(n.table,o,i)}
else e=setTimeout(
function(){clearTimeout(e),e=null},300)})),(t.cellTapHold||
this.table.options.cellTapHold)&&(o=null,s.addEventListener(
"touchstart",
function(e){clearTimeout(o),o=setTimeout(
function(){clearTimeout(o),o=null,i=!1;var s=n.getComponent();t.cellTapHold&&t.cellTapHold.call(n.table,e,s),n.table.options.cellTapHold&&n.table.options.cellTapHold.call(n.table,e,s)},1e3)},{passive:!0}),s.addEventListener(
"touchend",
function(t){clearTimeout(o),o=null}))},Cell.prototype._generateContents=
function(){var t;
switch(t=this.table.modExists(
"format")?this.table.modules.format.formatValue(
this):this.element.innerHTML=this.value,
void 0===t?
"undefined":_typeof(t)){
case"object":
if(t instanceof Node){
for(;this.element.firstChild;)this.element.removeChild(
this.element.firstChild);this.element.appendChild(t)}
else this.element.innerHTML=
"",null!=t&&console.warn(
"Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",t);
break;
case"undefined":
case"null":this.element.innerHTML=
"";
break;
default:this.element.innerHTML=t}},Cell.prototype.cellRendered=
function(){this.table.modExists(
"format")&&this.table.modules.format.cellRendered&&this.table.modules.format.cellRendered(
this)},Cell.prototype._generateTooltip=
function(){var t=this.column.tooltip;t?(!0===t?t=this.value:
"function"==typeof t&&!1===(t=t(this.getComponent()))&&(t=
""),
void 0===t&&(t=
""),this.element.setAttribute(
"title",t)):this.element.setAttribute(
"title",
"")},Cell.prototype.getElement=
function(){
return this.element},Cell.prototype.getValue=
function(){
return this.value},Cell.prototype.getOldValue=
function(){
return this.oldValue},Cell.prototype.setValue=
function(t,e){var o,i=this.setValueProcessData(t,e);i&&(this.table.options.history&&this.table.modExists(
"history")&&this.table.modules.history.action(
"cellEdit",
this,{oldValue:this.oldValue,newValue:this.value}),o=this.getComponent(),this.column.cellEvents.cellEdited&&this.column.cellEvents.cellEdited.call(this.table,o),this.table.options.cellEdited.call(this.table,o),this.table.options.dataEdited.call(this.table,this.table.rowManager.getData()))},Cell.prototype.setValueProcessData=
function(t,e){var o=!1;
return this.value!=t&&(o=!0,e&&this.column.modules.mutate&&(t=this.table.modules.mutator.transformCell(
this,t))),this.setValueActual(t),o&&this.table.modExists(
"columnCalcs")&&(this.column.definition.topCalc||this.column.definition.bottomCalc)&&(this.table.options.groupBy&&
this.table.modExists(
"groupRows")?(
"table"!=this.table.options.columnCalcs&&
"both"!=this.table.options.columnCalcs||this.table.modules.columnCalcs.recalc(this.table.rowManager.activeRows),
"table"!=this.table.options.columnCalcs&&this.table.modules.columnCalcs.recalcRowGroup(this.row)):this.table.modules.columnCalcs.recalc(
this.table.rowManager.activeRows)),o},Cell.prototype.setValueActual=
function(t){this.oldValue=this.value,this.value=t,this.table.options.reactiveData&&this.table.modExists(
"reactiveData")&&this.table.modules.reactiveData.block(),this.column.setFieldValue(this.row.data,t),this.table.options.reactiveData&&this.table.modExists(
"reactiveData")&&this.table.modules.reactiveData.unblock(),this._generateContents(),this._generateTooltip(),this.table.options.resizableColumns&&this.table.modExists(
"resizeColumns")&&this.table.modules.resizeColumns.initializeColumn(
"cell",this.column,this.element),this.table.modExists(
"frozenColumns")&&this.table.modules.frozenColumns.layoutElement(this.element,this.column)},Cell.prototype.setWidth=
function(){this.width=this.column.width,this.element.style.width=this.column.widthStyled},Cell.prototype.clearWidth=
function(){this.width=
"",this.element.style.width=
""},Cell.prototype.getWidth=
function(){
return this.width||this.element.offsetWidth},Cell.prototype.setMinWidth=
function(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled},Cell.prototype.checkHeight=
function(){this.row.reinitializeHeight()},Cell.prototype.clearHeight=
function(){this.element.style.height=
"",this.height=null},Cell.prototype.setHeight=
function(){this.height=this.row.height,this.element.style.height=this.row.heightStyled},Cell.prototype.getHeight=
function(){
return this.height||this.element.offsetHeight},Cell.prototype.show=
function(){this.element.style.display=
""},Cell.prototype.hide=
function(){this.element.style.display=
"none"},Cell.prototype.edit=
function(t){
if(this.table.modExists(
"edit",!0))
return this.table.modules.edit.editCell(
this,t)},Cell.prototype.cancelEdit=
function(){
if(this.table.modExists(
"edit",!0)){var t=this.table.modules.edit.getCurrentCell();t&&t._getSelf()===
this?this.table.modules.edit.cancelEdit():console.warn(
"Cancel Editor Error - This cell is not currently being edited ")}},Cell.prototype.delete=
function(){this.table.rowManager.redrawBlock||this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(
this),this.row.deleteCell(
this),this.calcs={}},Cell.prototype.nav=
function(){var t=
this,e=!1,o=this.row.getCellIndex(
this);
return{next:
function(){var e,o=this.right();
return!!o||!(!(e=t.table.rowManager.nextDisplayRow(t.row,!0))||!(o=e.findNextEditableCell(-1)))&&(o.edit(),!0)},prev:
function(){var e,o=this.left();
return!!o||!(!(e=t.table.rowManager.prevDisplayRow(t.row,!0))||!(o=e.findPrevEditableCell(e.cells.length)))&&(o.edit(),!0)},left:
function(){
return!!(e=t.row.findPrevEditableCell(o))&&(e.edit(),!0)},right:
function(){
return!!(e=t.row.findNextEditableCell(o))&&(e.edit(),!0)},up:
function(){var e=t.table.rowManager.prevDisplayRow(t.row,!0);e&&e.cells[o].edit()},down:
function(){var e=t.table.rowManager.nextDisplayRow(t.row,!0);e&&e.cells[o].edit()}}},Cell.prototype.getIndex=
function(){this.row.getCellIndex(
this)},Cell.prototype.getComponent=
function(){
return new CellComponent(
this)};var FooterManager=
function(t){this.table=t,this.active=!1,this.element=this.createElement(),this.external=!1,this.links=[],this._initialize()};FooterManager.prototype.createElement=
function(){var t=document.createElement(
"div");
return t.classList.add(
"tabulator-footer"),t},FooterManager.prototype._initialize=
function(t){
if(this.table.options.footerElement)
switch(_typeof(this.table.options.footerElement)){
case"string":
"<"===this.table.options.footerElement[0]?this.element.innerHTML=this.table.options.footerElement:(this.external=!0,this.element=document.querySelector(this.table.options.footerElement));
break;
default:this.element=this.table.options.footerElement}},FooterManager.prototype.getElement=
function(){
return this.element},FooterManager.prototype.append=
function(t,e){this.activate(e),this.element.appendChild(t),this.table.rowManager.adjustTableSize()},FooterManager.prototype.prepend=
function(t,e){this.activate(e),this.element.insertBefore(t,this.element.firstChild),this.table.rowManager.adjustTableSize()},FooterManager.prototype.remove=
function(t){t.parentNode.removeChild(t),this.deactivate()},FooterManager.prototype.deactivate=
function(t){this.element.firstChild&&!t||(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)},FooterManager.prototype.activate=
function(t){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=
"")),t&&this.links.push(t)},FooterManager.prototype.redraw=
function(){this.links.forEach(
function(t){t.footerRedraw()})};var Tabulator=
function t(e,o){this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.browser=
"",this.browserSlow=!1,this.browserMobile=!1,this.modules={},this.initializeElement(e),this.initializeOptions(o||{}),this._create(),t.prototype.comms.register(
this)};Tabulator.prototype.defaultOptions={height:!1,layout:
"fitData",layoutColumnsOnNewData:!1,columnMinWidth:40,columnHeaderVertAlign:
"top",columnVertAlign:!1,resizableColumns:!0,resizableRows:!1,autoResize:!0,columns:[],data:[],autoColumns:!1,reactiveData:!1,nestedFieldSeparator:
".",tooltips:!1,tooltipsHeader:!1,tooltipGenerationMode:
"load",initialSort:!1,initialFilter:!1,initialHeaderFilter:!1,columnHeaderSortMulti:!0,sortOrderReverse:!1,headerSort:!0,headerSortTristate:!1,footerElement:!1,index:
"id",keybindings:[],tabEndNewRow:!1,invalidOptionWarnings:!0,clipboard:!1,clipboardCopyStyled:!0,clipboardCopySelector:
"active",clipboardCopyFormatter:
"table",clipboardPasteParser:
"table",clipboardPasteAction:
"insert",clipboardCopyConfig:!1,clipboardCopied:
function(){},clipboardPasted:
function(){},clipboardPasteError:
function(){},downloadDataFormatter:!1,downloadReady:
function(t,e){
return e},downloadComplete:!1,downloadConfig:!1,dataTree:!1,dataTreeElementColumn:!1,dataTreeBranchElement:!0,dataTreeChildIndent:9,dataTreeChildField:
"_children",dataTreeCollapseElement:!1,dataTreeExpandElement:!1,dataTreeStartExpanded:!1,dataTreeRowExpanded:
function(){},dataTreeRowCollapsed:
function(){},printAsHtml:!1,printFormatter:!1,printHeader:!1,printFooter:!1,printCopyStyle:!0,printVisibleRows:!0,printConfig:{},addRowPos:
"bottom",selectable:
"highlight",selectableRangeMode:
"drag",selectableRollingSelection:!0,selectablePersistence:!0,selectableCheck:
function(t,e){
return!0},headerFilterPlaceholder:!1,headerVisible:!0,history:!1,locale:!1,langs:{},virtualDom:!0,virtualDomBuffer:0,persistentLayout:!1,persistentSort:!1,persistentFilter:!1,persistenceID:
"",persistenceMode:!0,persistenceReaderFunc:!1,persistenceWriterFunc:!1,persistence:!1,responsiveLayout:!1,responsiveLayoutCollapseStartOpen:!0,responsiveLayoutCollapseUseFormatters:!0,responsiveLayoutCollapseFormatter:!1,pagination:!1,paginationSize:!1,paginationInitialPage:1,paginationButtonCount:5,paginationSizeSelector:!1,paginationElement:!1,paginationDataSent:{},paginationDataReceived:{},paginationAddRow:
"page",ajaxURL:!1,ajaxURLGenerator:!1,ajaxParams:{},ajaxConfig:
"get",ajaxContentType:
"form",ajaxRequestFunc:!1,ajaxLoader:!0,ajaxLoaderLoading:!1,ajaxLoaderError:!1,ajaxFiltering:!1,ajaxSorting:!1,ajaxProgressiveLoad:!1,ajaxProgressiveLoadDelay:0,ajaxProgressiveLoadScrollMargin:0,groupBy:!1,groupStartOpen:!0,groupValues:!1,groupHeader:!1,htmlOutputConfig:!1,movableColumns:!1,movableRows:!1,movableRowsConnectedTables:!1,movableRowsSender:!1,movableRowsReceiver:
"insert",movableRowsSendingStart:
function(){},movableRowsSent:
function(){},movableRowsSentFailed:
function(){},movableRowsSendingStop:
function(){},movableRowsReceivingStart:
function(){},movableRowsReceived:
function(){},movableRowsReceivedFailed:
function(){},movableRowsReceivingStop:
function(){},scrollToRowPosition:
"top",scrollToRowIfVisible:!0,scrollToColumnPosition:
"left",scrollToColumnIfVisible:!0,rowFormatter:!1,placeholder:!1,tableBuilding:
function(){},tableBuilt:
function(){},renderStarted:
function(){},renderComplete:
function(){},rowClick:!1,rowDblClick:!1,rowContext:!1,rowTap:!1,rowDblTap:!1,rowTapHold:!1,rowMouseEnter:!1,rowMouseLeave:!1,rowMouseOver:!1,rowMouseOut:!1,rowMouseMove:!1,rowAdded:
function(){},rowDeleted:
function(){},rowMoved:
function(){},rowUpdated:
function(){},rowSelectionChanged:
function(){},rowSelected:
function(){},rowDeselected:
function(){},rowResized:
function(){},cellClick:!1,cellDblClick:!1,cellContext:!1,cellTap:!1,cellDblTap:!1,cellTapHold:!1,cellMouseEnter:!1,cellMouseLeave:!1,cellMouseOver:!1,cellMouseOut:!1,cellMouseMove:!1,cellEditing:
function(){},cellEdited:
function(){},cellEditCancelled:
function(){},columnMoved:!1,columnResized:
function(){},columnTitleChanged:
function(){},columnVisibilityChanged:
function(){},htmlImporting:
function(){},htmlImported:
function(){},dataLoading:
function(){},dataLoaded:
function(){},dataEdited:
function(){},ajaxRequesting:
function(){},ajaxResponse:!1,ajaxError:
function(){},dataFiltering:!1,dataFiltered:!1,dataSorting:
function(){},dataSorted:
function(){},groupToggleElement:
"arrow",groupClosedShowCalcs:!1,dataGrouping:
function(){},dataGrouped:!1,groupVisibilityChanged:
function(){},groupClick:!1,groupDblClick:!1,groupContext:!1,groupTap:!1,groupDblTap:!1,groupTapHold:!1,columnCalcs:!0,pageLoaded:
function(){},localized:
function(){},validationFailed:
function(){},historyUndo:
function(){},historyRedo:
function(){},scrollHorizontal:
function(){},scrollVertical:
function(){}},Tabulator.prototype.initializeOptions=
function(t){
if(!1!==t.invalidOptionWarnings)
for(var e in t)
void 0===this.defaultOptions[e]&&console.warn(
"Invalid table constructor option:",e);
for(var e in this.defaultOptions)e in t?this.options[e]=t[e]:Array.isArray(this.defaultOptions[e])?this.options[e]=[]:
"object"===_typeof(this.defaultOptions[e])?this.options[e]={}:this.options[e]=this.defaultOptions[e]},Tabulator.prototype.initializeElement=
function(t){
return"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?(this.element=t,!0):
"string"==typeof t?(this.element=document.querySelector(t),!!this.element||(console.error(
"Tabulator Creation Error - no element found matching selector: ",t),!1)):(console.error(
"Tabulator Creation Error - Invalid element provided:",t),!1)},Tabulator.prototype._mapDepricatedFunctionality=function(){(this.options.persistentLayout||this.options.persistentSort||this.options.persistentFilter)&&(this.options.persistence||(
this.options.persistence={})),this.options.persistentLayout&&(console.warn(
"persistentLayout option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&
void 0===this.options.persistence.columns&&(this.options.persistence.columns=!0)),this.options.persistentSort&&(console.warn(
"persistentSort option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&
void 0===this.options.persistence.sort&&(this.options.persistence.sort=!0)),this.options.persistentFilter&&(console.warn(
"persistentFilter option is deprecated, you should now use the persistence option"),!0!==this.options.persistence&&
void 0===this.options.persistence.filter&&(this.options.persistence.filter=!0)),this.options.columnVertAlign&&(console.warn(
"columnVertAlign option is deprecated, you should now use the columnHeaderVertAlign option"),this.options.columnHeaderVertAlign=this.options.columnVertAlign)},Tabulator.prototype._clearSelection=
function(){this.element.classList.add(
"tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove(
"tabulator-block-select")},Tabulator.prototype._create=
function(){this._clearObjectPointers(),this._mapDepricatedFunctionality(),this.bindModules(),
"TABLE"===this.element.tagName&&this.modExists(
"htmlTableImport",!0)&&this.modules.htmlTableImport.parseTable(),this.columnManager=
new ColumnManager(
this),this.rowManager=
new RowManager(
this),this.footerManager=
new FooterManager(
this),this.columnManager.setRowManager(this.rowManager),this.rowManager.setColumnManager(this.columnManager),this._buildElement(),this._loadInitialData()},Tabulator.prototype._clearObjectPointers=
function(){this.options.columns=this.options.columns.slice(0),this.options.reactiveData||(this.options.data=this.options.data.slice(0))},Tabulator.prototype._buildElement=
function(){var t=
this,e=this.element,o=this.modules,i=this.options;
for(i.tableBuilding.call(
this),e.classList.add(
"tabulator"),e.setAttribute(
"role",
"grid");e.firstChild;)e.removeChild(e.firstChild);i.height&&(i.height=isNaN(i.height)?i.height:i.height+
"px",e.style.height=i.height),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modExists(
"layout",!0)&&o.layout.initialize(i.layout),!1!==i.headerFilterPlaceholder&&o.localize.setHeaderFilterPlaceholder(i.headerFilterPlaceholder);
for(var n in i.langs)o.localize.installLang(n,i.langs[n]);
if(o.localize.setLocale(i.locale),
"string"==typeof i.placeholder){var s=document.createElement(
"div");s.classList.add(
"tabulator-placeholder");var l=document.createElement(
"span");l.innerHTML=i.placeholder,s.appendChild(l),i.placeholder=s}
if(e.appendChild(
this.columnManager.getElement()),e.appendChild(
this.rowManager.getElement()),i.footerElement&&
this.footerManager.activate(),i.persistence&&this.modExists(
"persistence",!0)&&o.persistence.initialize(),i.persistence&&this.modExists(
"persistence",!0)&&o.persistence.config.columns&&(i.columns=o.persistence.load(
"columns",i.columns)),i.movableRows&&
this.modExists(
"moveRow")&&o.moveRow.initialize(),i.autoColumns&&this.options.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modExists(
"columnCalcs")&&o.columnCalcs.initialize(),
5 this.columnManager.setColumns(i.columns),i.dataTree&&this.modExists(
"dataTree",!0)&&o.dataTree.initialize(),this.modExists(
"frozenRows")&&this.modules.frozenRows.initialize(),(i.persistence&&this.modExists(
"persistence",!0)&&o.persistence.config.sort||i.initialSort)&&this.modExists(
"sort",!0)){var a=[];i.persistence&&this.modExists(
"persistence",!0)&&o.persistence.config.sort?!1===(a=o.persistence.load(
"sort"))&&i.initialSort&&(a=i.initialSort):i.initialSort&&(a=i.initialSort),o.sort.setSort(a)}
if((i.persistence&&
this.modExists(
"persistence",!0)&&o.persistence.config.filter||i.initialFilter)&&this.modExists(
"filter",!0)){var r=[];i.persistence&&this.modExists(
"persistence",!0)&&o.persistence.config.filter?!1===(r=o.persistence.load(
"filter"))&&i.initialFilter&&(r=i.initialFilter):i.initialFilter&&(r=i.initialFilter),o.filter.setFilter(r)}i.initialHeaderFilter&&this.modExists(
"filter",!0)&&i.initialHeaderFilter.forEach(
function(e){var i=t.columnManager.findColumn(e.field);
if(!i)
return console.warn(
"Column Filter Error - No matching column found:",e.field),!1;o.filter.setHeaderFilterValue(i,e.value)}),this.modExists(
"ajax")&&o.ajax.initialize(),i.pagination&&this.modExists(
"page",!0)&&o.page.initialize(),i.groupBy&&this.modExists(
"groupRows",!0)&&o.groupRows.initialize(),this.modExists(
"keybindings")&&o.keybindings.initialize(),this.modExists(
"selectRow")&&o.selectRow.clearSelectionData(!0),i.autoResize&&this.modExists(
"resizeTable")&&o.resizeTable.initialize(),this.modExists(
"clipboard")&&o.clipboard.initialize(),i.printAsHtml&&this.modExists(
"print")&&o.print.initialize(),i.tableBuilt.call(
this)},Tabulator.prototype._loadInitialData=
function(){var t=
this;
if(t.options.pagination&&t.modExists(
"page"))
if(t.modules.page.reset(!0),
"local"==t.options.pagination){
if(t.options.data.length)t.rowManager.setData(t.options.data);
else{
if((t.options.ajaxURL||t.options.ajaxURLGenerator)&&t.modExists(
"ajax"))
return void t.modules.ajax.loadData().then(
function(){}).
catch(
function(){t.options.paginationInitialPage&&t.modules.page.setPage(t.options.paginationInitialPage)});t.rowManager.setData(t.options.data)}t.options.paginationInitialPage&&t.modules.page.setPage(t.options.paginationInitialPage)}
else t.options.ajaxURL?t.modules.page.setPage(t.options.paginationInitialPage).then(
function(){}).
catch(
function(){}):t.rowManager.setData([]);
else t.options.data.length?t.rowManager.setData(t.options.data):(t.options.ajaxURL||t.options.ajaxURLGenerator)&&t.modExists(
"ajax")?t.modules.ajax.loadData().then(
function(){}).
catch(
function(){}):t.rowManager.setData(t.options.data)},Tabulator.prototype.destroy=
function(){var t=this.element;
for(Tabulator.prototype.comms.deregister(
this),this.options.reactiveData&&this.modExists(
"reactiveData",!0)&&this.modules.reactiveData.unwatchData(),this.rowManager.rows.forEach(
function(t){t.wipe()}),this.rowManager.rows=[],
this.rowManager.activeRows=[],
this.rowManager.displayRows=[],
this.options.autoResize&&
this.modExists(
"resizeTable")&&this.modules.resizeTable.clearBindings(),this.modExists(
"keybindings")&&this.modules.keybindings.clearBindings();t.firstChild;)t.removeChild(t.firstChild);t.classList.remove(
"tabulator")},Tabulator.prototype._detectBrowser=
function(){var t=navigator.userAgent||navigator.vendor||window.opera;t.indexOf(
"Trident")>-1?(this.browser=
"ie",this.browserSlow=!0):t.indexOf(
"Edge")>-1?(this.browser=
"edge",this.browserSlow=!0):t.indexOf(
"Firefox")>-1?(this.browser=
"firefox",this.browserSlow=!1):(this.browser=
"other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|
id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))},Tabulator.prototype.blockRedraw=function(){
return this.rowManager.blockRedraw()},Tabulator.prototype.restoreRedraw=
function(){
return this.rowManager.restoreRedraw()},Tabulator.prototype.setDataFromLocalFile=
function(t){var e=
this;
return new Promise(
function(o,i){var n=document.createElement(
"input");n.type=
"file",n.accept=t||
".json,application/json",n.addEventListener(
"change",
function(t){var s,l=n.files[0],a=
new FileReader;a.readAsText(l),a.onload=
function(t){
try{s=JSON.parse(a.result)}
catch(t){
return console.warn(
"File Load Error - File contents is invalid JSON",t),
void i(t)}e._setData(s).then(
function(t){o(t)}).
catch(
function(t){o(t)})},a.onerror=
function(t){console.warn(
"File Load Error - Unable to read file"),i()}}),n.click()})},Tabulator.prototype.setData=
function(t,e,o){
return this.modExists(
"ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(t,e,o)},Tabulator.prototype._setData=
function(t,e,o,i){var n=
this;
return"string"!=typeof t?t?n.rowManager.setData(t,i):n.modExists(
"ajax")&&(n.modules.ajax.getUrl||n.options.ajaxURLGenerator)?
"remote"==n.options.pagination&&n.modExists(
"page",!0)?(n.modules.page.reset(!0),n.modules.page.setPage(1)):n.modules.ajax.loadData(i):n.rowManager.setData([],i):0==t.indexOf(
"{")||0==t.indexOf(
"[")?n.rowManager.setData(JSON.parse(t),i):n.modExists(
"ajax",!0)?(e&&n.modules.ajax.setParams(e),o&&n.modules.ajax.setConfig(o),n.modules.ajax.setUrl(t),
"remote"==n.options.pagination&&n.modExists(
"page",!0)?(n.modules.page.reset(!0),n.modules.page.setPage(1)):n.modules.ajax.loadData(i)):
void 0},Tabulator.prototype.clearData=
function(){this.modExists(
"ajax")&&this.modules.ajax.blockActiveRequest(),this.rowManager.clearData()},Tabulator.prototype.getData=
function(t){
return!0===t&&(console.warn(
"passing a boolean to the getData function is deprecated, you should now pass the string 'active'"),t=
"active"),this.rowManager.getData(t)},Tabulator.prototype.getDataCount=
function(t){
return!0===t&&(console.warn(
"passing a boolean to the getDataCount function is deprecated, you should now pass the string 'active'"),t=
"active"),this.rowManager.getDataCount(t)},Tabulator.prototype.searchRows=
function(t,e,o){
if(this.modExists(
"filter",!0))
return this.modules.filter.search(
"rows",t,e,o)},Tabulator.prototype.searchData=
function(t,e,o){
if(this.modExists(
"filter",!0))
return this.modules.filter.search(
"data",t,e,o)},Tabulator.prototype.getHtml=
function(t,e,o){
if(this.modExists(
"htmlTableExport",!0))
return this.modules.htmlTableExport.getHtml(t,e,o)},Tabulator.prototype.print=
function(t,e,o){
if(this.modExists(
"print",!0))
return this.modules.print.printFullscreen(t,e,o)},Tabulator.prototype.getAjaxUrl=
function(){
if(this.modExists(
"ajax",!0))
return this.modules.ajax.getUrl()},Tabulator.prototype.replaceData=
function(t,e,o){
return this.modExists(
"ajax")&&this.modules.ajax.blockActiveRequest(),this._setData(t,e,o,!0)},Tabulator.prototype.updateData=
function(t){var e=
this,o=
this,i=0;
return new Promise(
function(n,s){e.modExists(
"ajax")&&e.modules.ajax.blockActiveRequest(),
"string"==typeof t&&(t=JSON.parse(t)),t?t.forEach(
function(t){var e=o.rowManager.findRow(t[o.options.index]);e&&(i++,e.updateData(t).then(
function(){--i||n()}))}):(console.warn(
"Update Error - No data provided"),s(
"Update Error - No data provided"))})},Tabulator.prototype.addData=
function(t,e,o){var i=
this;
return new Promise(
function(n,s){i.modExists(
"ajax")&&i.modules.ajax.blockActiveRequest(),
"string"==typeof t&&(t=JSON.parse(t)),t?i.rowManager.addRows(t,e,o).then(
function(t){var e=[];t.forEach(
function(t){e.push(t.getComponent())}),n(e)}):(console.warn(
"Update Error - No data provided"),s(
"Update Error - No data provided"))})},Tabulator.prototype.updateOrAddData=
function(t){var e=
this,o=
this,i=[],n=0;
return new Promise(
function(s,l){e.modExists(
"ajax")&&e.modules.ajax.blockActiveRequest(),
"string"==typeof t&&(t=JSON.parse(t)),t?t.forEach(
function(t){var e=o.rowManager.findRow(t[o.options.index]);n++,e?e.updateData(t).then(
function(){n--,i.push(e.getComponent()),n||s(i)}):o.rowManager.addRows(t).then(
function(t){n--,i.push(t[0].getComponent()),n||s(i)})}):(console.warn(
"Update Error - No data provided"),l(
"Update Error - No data provided"))})},Tabulator.prototype.getRow=
function(t){var e=this.rowManager.findRow(t);
return e?e.getComponent():(console.warn(
"Find Error - No matching row found:",t),!1)},Tabulator.prototype.getRowFromPosition=
function(t,e){var o=this.rowManager.getRowFromPosition(t,e);
return o?o.getComponent():(console.warn(
"Find Error - No matching row found:",t),!1)},Tabulator.prototype.deleteRow=
function(t){var e=
this;
return new Promise(
function(o,i){
function n(){++s==t.length&&l&&(a.rowManager.reRenderInPosition(),o())}var s=0,l=0,a=e;Array.isArray(t)||(t=[t]),t.forEach(
function(t){var o=e.rowManager.findRow(t,!0);o?o.delete().then(
function(){l++,n()}).
catch(
function(t){n(),i(t)}):(console.warn(
"Delete Error - No matching row found:",t),i(
"Delete Error - No matching row found"),n())})})},Tabulator.prototype.addRow=
function(t,e,o){var i=
this;
return new Promise(
function(n,s){
"string"==typeof t&&(t=JSON.parse(t)),i.rowManager.addRows(t,e,o).then(
function(t){i.modExists(
"columnCalcs")&&i.modules.columnCalcs.recalc(i.rowManager.activeRows),n(t[0].getComponent())})})},Tabulator.prototype.updateOrAddRow=
function(t,e){var o=
this;
return new Promise(
function(i,n){var s=o.rowManager.findRow(t);
"string"==typeof e&&(e=JSON.parse(e)),s?s.updateData(e).then(
function(){o.modExists(
"columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),i(s.getComponent())}).catch(
function(t){n(t)}):s=o.rowManager.addRows(e).then(
function(t){o.modExists(
"columnCalcs")&&o.modules.columnCalcs.recalc(o.rowManager.activeRows),i(t[0].getComponent())}).
catch(
function(t){n(t)})})},Tabulator.prototype.updateRow=
function(t,e){var o=
this;
return new Promise(
function(i,n){var s=o.rowManager.findRow(t);
"string"==typeof e&&(e=JSON.parse(e)),s?s.updateData(e).then(
function(){i(s.getComponent())}).catch(
function(t){n(t)}):(console.warn(
"Update Error - No matching row found:",t),n(
"Update Error - No matching row found"))})},Tabulator.prototype.scrollToRow=
function(t,e,o){var i=
this;
return new Promise(
function(n,s){var l=i.rowManager.findRow(t);l?i.rowManager.scrollToRow(l,e,o).then(
function(){n()}).
catch(
function(t){s(t)}):(console.warn(
"Scroll Error - No matching row found:",t),s(
"Scroll Error - No matching row found"))})},Tabulator.prototype.moveRow=
function(t,e,o){var i=this.rowManager.findRow(t);i?i.moveToRow(e,o):console.warn(
"Move Error - No matching row found:",t)},Tabulator.prototype.getRows=
function(t){
return!0===t&&(console.warn(
"passing a boolean to the getRows function is deprecated, you should now pass the string 'active'"),t=
"active"),this.rowManager.getComponents(t)},Tabulator.prototype.getRowPosition=
function(t,e){var o=this.rowManager.findRow(t);
return o?this.rowManager.getRowPosition(o,e):(console.warn(
"Position Error - No matching row found:",t),!1)},Tabulator.prototype.copyToClipboard=
function(t,e,o,i){this.modExists(
"clipboard",!0)&&this.modules.clipboard.copy(t,e,o,i)},Tabulator.prototype.setColumns=
function(t){this.columnManager.setColumns(t)},Tabulator.prototype.getColumns=
function(t){
return this.columnManager.getComponents(t)},Tabulator.prototype.getColumn=
function(t){var e=this.columnManager.findColumn(t);
return e?e.getComponent():(console.warn(
"Find Error - No matching column found:",t),!1)},Tabulator.prototype.getColumnDefinitions=
function(){
return this.columnManager.getDefinitionTree()},Tabulator.prototype.getColumnLayout=
function(){
if(this.modExists(
"persistence",!0))
return this.modules.persistence.parseColumns(
this.columnManager.getColumns())},Tabulator.prototype.setColumnLayout=
function(t){
return!!this.modExists(
"persistence",!0)&&(this.columnManager.setColumns(this.modules.persistence.mergeDefinition(
this.options.columns,t)),!0)},Tabulator.prototype.showColumn=
function(t){var e=this.columnManager.findColumn(t);
if(!e)
return console.warn(
"Column Show Error - No matching column found:",t),!1;e.show(),this.options.responsiveLayout&&this.modExists(
"responsiveLayout",!0)&&this.modules.responsiveLayout.update()},Tabulator.prototype.hideColumn=
function(t){var e=this.columnManager.findColumn(t);
if(!e)
return console.warn(
"Column Hide Error - No matching column found:",t),!1;e.hide(),this.options.responsiveLayout&&this.modExists(
"responsiveLayout",!0)&&this.modules.responsiveLayout.update()},Tabulator.prototype.toggleColumn=
function(t){var e=this.columnManager.findColumn(t);
if(!e)
return console.warn(
"Column Visibility Toggle Error - No matching column found:",t),!1;e.visible?e.hide():e.show()},Tabulator.prototype.addColumn=
function(t,e,o){var i=
this;
return new Promise(
function(n,s){var l=i.columnManager.findColumn(o);i.columnManager.addColumn(t,e,l).then(
function(t){n(t.getComponent())}).catch(
function(t){s(t)})})},Tabulator.prototype.deleteColumn=
function(t){var e=
this;
return new Promise(
function(o,i){var n=e.columnManager.findColumn(t);n?n.delete().then(
function(){o()}).
catch(
function(t){i(t)}):(console.warn(
"Column Delete Error - No matching column found:",t),i())})},Tabulator.prototype.updateColumnDefinition=
function(t,e){var o=
this;
return new Promise(
function(e,i){var n=o.columnManager.findColumn(t);n?n.updateDefinition().then(
function(t){e(t)}).
catch(
function(t){i(t)}):(console.warn(
"Column Update Error - No matching column found:",t),i())})},Tabulator.prototype.moveColumn=
function(t,e,o){var i=this.columnManager.findColumn(t),n=this.columnManager.findColumn(e);i?n?this.columnManager.moveColumn(i,n,o):console.warn(
"Move Error - No matching column found:",n):console.warn(
"Move Error - No matching column found:",t)},Tabulator.prototype.scrollToColumn=
function(t,e,o){var i=
this;
return new Promise(
function(n,s){var l=i.columnManager.findColumn(t);l?i.columnManager.scrollToColumn(l,e,o).then(
function(){n()}).
catch(
function(t){s(t)}):(console.warn(
"Scroll Error - No matching column found:",t),s(
"Scroll Error - No matching column found"))})},Tabulator.prototype.setLocale=
function(t){this.modules.localize.setLocale(t)},Tabulator.prototype.getLocale=
function(){
return this.modules.localize.getLocale()},Tabulator.prototype.getLang=
function(t){
return this.modules.localize.getLang(t)},Tabulator.prototype.redraw=
function(t){this.columnManager.redraw(t),this.rowManager.redraw(t)},Tabulator.prototype.setHeight=
function(t){
"classic"!==this.rowManager.renderMode?(this.options.height=isNaN(t)?t:t+
"px",this.element.style.height=this.options.height,this.rowManager.redraw()):console.warn(
"setHeight function is not available in classic render mode")},Tabulator.prototype.setSort=
function(t,e){this.modExists(
"sort",!0)&&(this.modules.sort.setSort(t,e),this.rowManager.sorterRefresh())},Tabulator.prototype.getSorters=
function(){
if(this.modExists(
"sort",!0))
return this.modules.sort.getSort()},Tabulator.prototype.clearSort=
function(){this.modExists(
"sort",!0)&&(this.modules.sort.clear(),this.rowManager.sorterRefresh())},Tabulator.prototype.setFilter=
function(t,e,o){this.modExists(
"filter",!0)&&(this.modules.filter.setFilter(t,e,o),this.rowManager.filterRefresh())},Tabulator.prototype.addFilter=
function(t,e,o){this.modExists(
"filter",!0)&&(this.modules.filter.addFilter(t,e,o),this.rowManager.filterRefresh())},Tabulator.prototype.getFilters=
function(t){
if(this.modExists(
"filter",!0))
return this.modules.filter.getFilters(t)},Tabulator.prototype.setHeaderFilterFocus=
function(t){
if(this.modExists(
"filter",!0)){var e=this.columnManager.findColumn(t);
if(!e)
return console.warn(
"Column Filter Focus Error - No matching column found:",t),!1;this.modules.filter.setHeaderFilterFocus(e)}},Tabulator.prototype.setHeaderFilterValue=
function(t,e){
if(this.modExists(
"filter",!0)){var o=this.columnManager.findColumn(t);
if(!o)
return console.warn(
"Column Filter Error - No matching column found:",t),!1;this.modules.filter.setHeaderFilterValue(o,e)}},Tabulator.prototype.getHeaderFilters=
function(){
if(this.modExists(
"filter",!0))
return this.modules.filter.getHeaderFilters()},Tabulator.prototype.removeFilter=
function(t,e,o){this.modExists(
"filter",!0)&&(this.modules.filter.removeFilter(t,e,o),this.rowManager.filterRefresh())},Tabulator.prototype.clearFilter=
function(t){this.modExists(
"filter",!0)&&(this.modules.filter.clearFilter(t),this.rowManager.filterRefresh())},Tabulator.prototype.clearHeaderFilter=
function(){this.modExists(
"filter",!0)&&(this.modules.filter.clearHeaderFilter(),this.rowManager.filterRefresh())},Tabulator.prototype.selectRow=
function(t){this.modExists(
"selectRow",!0)&&(!0===t&&(console.warn(
"passing a boolean to the selectRowselectRow function is deprecated, you should now pass the string 'active'"),t=
"active"),this.modules.selectRow.selectRows(t))},Tabulator.prototype.deselectRow=
function(t){this.modExists(
"selectRow",!0)&&this.modules.selectRow.deselectRows(t)},Tabulator.prototype.toggleSelectRow=
function(t){this.modExists(
"selectRow",!0)&&this.modules.selectRow.toggleRow(t)},Tabulator.prototype.getSelectedRows=
function(){
if(this.modExists(
"selectRow",!0))
return this.modules.selectRow.getSelectedRows()},Tabulator.prototype.getSelectedData=
function(){
if(this.modExists(
"selectRow",!0))
return this.modules.selectRow.getSelectedData()},Tabulator.prototype.setMaxPage=
function(t){
if(!this.options.pagination||!
this.modExists(
"page"))
return!1;this.modules.page.setMaxPage(t)},Tabulator.prototype.setPage=
function(t){
return this.options.pagination&&this.modExists(
"page")?this.modules.page.setPage(t):
new Promise(
function(t,e){e()})},Tabulator.prototype.setPageToRow=
function(t){var e=
this;
return new Promise(
function(o,i){e.options.pagination&&e.modExists(
"page")?(t=e.rowManager.findRow(t),t?e.modules.page.setPageToRow(t).then(
function(){o()}).
catch(
function(){i()}):i()):i()})},Tabulator.prototype.setPageSize=
function(t){
if(!this.options.pagination||!
this.modExists(
"page"))
return!1;this.modules.page.setPageSize(t),this.modules.page.setPage(1).then(
function(){}).
catch(
function(){})},Tabulator.prototype.getPageSize=
function(){
if(this.options.pagination&&
this.modExists(
"page",!0))
return this.modules.page.getPageSize()},Tabulator.prototype.previousPage=
function(){
if(!this.options.pagination||!
this.modExists(
"page"))
return!1;this.modules.page.previousPage()},Tabulator.prototype.nextPage=
function(){
if(!this.options.pagination||!
this.modExists(
"page"))
return!1;this.modules.page.nextPage()},Tabulator.prototype.getPage=
function(){
return!(!this.options.pagination||!this.modExists(
"page"))&&this.modules.page.getPage()},Tabulator.prototype.getPageMax=
function(){
return!(!this.options.pagination||!this.modExists(
"page"))&&this.modules.page.getPageMax()},Tabulator.prototype.setGroupBy=
function(t){
if(!this.modExists(
"groupRows",!0))
return!1;this.options.groupBy=t,this.modules.groupRows.initialize(),this.rowManager.refreshActiveData(
"display"),this.options.persistence&&this.modExists(
"persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save(
"group")},Tabulator.prototype.setGroupStartOpen=
function(t){
if(!this.modExists(
"groupRows",!0))
return!1;this.options.groupStartOpen=t,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData(
"group"),this.options.persistence&&this.modExists(
"persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save(
"group")):console.warn(
"Grouping Update - cant refresh view, no groups have been set")},Tabulator.prototype.setGroupHeader=
function(t){
if(!this.modExists(
"groupRows",!0))
return!1;this.options.groupHeader=t,this.modules.groupRows.initialize(),this.options.groupBy?(this.rowManager.refreshActiveData(
"group"),this.options.persistence&&this.modExists(
"persistence",!0)&&this.modules.persistence.config.group&&this.modules.persistence.save(
"group")):console.warn(
"Grouping Update - cant refresh view, no groups have been set")},Tabulator.prototype.getGroups=
function(t){
return!!this.modExists(
"groupRows",!0)&&this.modules.groupRows.getGroups(!0)},Tabulator.prototype.getGroupedData=
function(){
if(this.modExists(
"groupRows",!0))
return this.options.groupBy?
this.modules.groupRows.getGroupedData():this.getData()},Tabulator.prototype.getCalcResults=
function(){
return!!this.modExists(
"columnCalcs",!0)&&this.modules.columnCalcs.getResults()},Tabulator.prototype.navigatePrev=
function(){var t=!1;
return!(!this.modExists(
"edit",!0)||!(t=this.modules.edit.currentCell))&&t.nav().prev()},Tabulator.prototype.navigateNext=
function(){var t=!1;
return!(!this.modExists(
"edit",!0)||!(t=this.modules.edit.currentCell))&&t.nav().next()},Tabulator.prototype.navigateLeft=
function(){var t=!1;
return!(!this.modExists(
"edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().left())},Tabulator.prototype.navigateRight=
function(){var t=!1;
return!(!this.modExists(
"edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().right())},Tabulator.prototype.navigateUp=
function(){var t=!1;
return!(!this.modExists(
"edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().up())},Tabulator.prototype.navigateDown=
function(){var t=!1;
return!(!this.modExists(
"edit",!0)||!(t=this.modules.edit.currentCell))&&(e.preventDefault(),t.nav().down())},Tabulator.prototype.undo=
function(){
return!(!this.options.history||!this.modExists(
"history",!0))&&this.modules.history.undo()},Tabulator.prototype.redo=
function(){
return!(!this.options.history||!this.modExists(
"history",!0))&&this.modules.history.redo()},Tabulator.prototype.getHistoryUndoSize=
function(){
return!(!this.options.history||!this.modExists(
"history",!0))&&this.modules.history.getHistoryUndoSize()},Tabulator.prototype.getHistoryRedoSize=
function(){
return!(!this.options.history||!this.modExists(
"history",!0))&&this.modules.history.getHistoryRedoSize()},Tabulator.prototype.download=
function(t,e,o,i){this.modExists(
"download",!0)&&this.modules.download.download(t,e,o,i)},Tabulator.prototype.downloadToTab=
function(t,e,o,i){this.modExists(
"download",!0)&&this.modules.download.download(t,e,o,i,!0)},Tabulator.prototype.tableComms=
function(t,e,o,i){this.modules.comms.receive(t,e,o,i)},Tabulator.prototype.moduleBindings={},Tabulator.prototype.extendModule=
function(t,e,o){
if(Tabulator.prototype.moduleBindings[t]){var i=Tabulator.prototype.moduleBindings[t].prototype[e];
if(i)
if(
"object"==(
void 0===o?
"undefined":_typeof(o)))
for(var n in o)i[n]=o[n];
else console.warn(
"Module Error - Invalid value type, it must be an object");
else console.warn(
"Module Error - property does not exist:",e)}
else console.warn(
"Module Error - module does not exist:",t)},Tabulator.prototype.registerModule=
function(t,e){Tabulator.prototype.moduleBindings[t]=e},Tabulator.prototype.bindModules=
function(){this.modules={};
for(var t in Tabulator.prototype.moduleBindings)this.modules[t]=
new Tabulator.prototype.moduleBindings[t](
this)},Tabulator.prototype.modExists=
function(t,e){
return!!this.modules[t]||(e&&console.error(
"Tabulator Module Not Installed: "+t),!1)},Tabulator.prototype.helpers={elVisible:
function(t){
return!(t.offsetWidth<=0&&t.offsetHeight<=0)},elOffset:
function(t){var e=t.getBoundingClientRect();
return{top:e.top+window.pageYOffset-document.documentElement.clientTop,left:e.left+window.pageXOffset-document.documentElement.clientLeft}},deepClone:
function(t){var e=Array.isArray(t)?[]:{};
for(var o in t)null!=t[o]&&
"object"===_typeof(t[o])?t[o]instanceof Date?e[o]=
new Date(t[o]):e[o]=this.deepClone(t[o]):e[o]=t[o];
return e}},Tabulator.prototype.comms={tables:[],
register:
function(t){Tabulator.prototype.comms.tables.push(t)},deregister:
function(t){var e=Tabulator.prototype.comms.tables.indexOf(t);e>-1&&Tabulator.prototype.comms.tables.splice(e,1)},lookupTable:
function(t,e){var o,i,n=[];
if(
"string"==typeof t){
if(o=document.querySelectorAll(t),o.length)
for(var s=0;s<o.length;s++)(i=Tabulator.prototype.comms.matchElement(o[s]))&&n.push(i)}
else"undefined"!=typeof HTMLElement&&t instanceof HTMLElement||t instanceof Tabulator?(i=Tabulator.prototype.comms.matchElement(t))&&n.push(i):Array.isArray(t)?t.forEach(
function(t){n=n.concat(Tabulator.prototype.comms.lookupTable(t))}):e||console.warn(
"Table Connection Error - Invalid Selector",t);
return n},matchElement:
function(t){
return Tabulator.prototype.comms.tables.find(
function(e){
return t instanceof Tabulator?e===t:e.element===t})}},Tabulator.prototype.findTable=
function(t){var e=Tabulator.prototype.comms.lookupTable(t,!0);
return!(Array.isArray(e)&&!e.length)&&e};var Layout=
function(t){this.table=t,this.mode=null};Layout.prototype.initialize=
function(t){this.modes[t]?this.mode=t:(console.warn(
"Layout Error - invalid mode set, defaulting to 'fitData' : "+t),this.mode=
"fitData"),this.table.element.setAttribute(
"tabulator-layout",
this.mode)},Layout.prototype.getMode=
function(){
return this.mode},Layout.prototype.layout=
function(){this.modes[this.mode].call(
this,this.table.columnManager.columnsByIndex)},Layout.prototype.modes={fitData:
function(t){t.forEach(
function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&
this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataFill:
function(t){t.forEach(
function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&
this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitDataStretch:
function(t){var e=
this,o=0,i=this.table.rowManager.element.clientWidth,n=0,s=!1;t.forEach(
function(t,i){t.widthFixed||t.reinitializeWidth(),(e.table.options.responsiveLayout?t.modules.responsive.visible:t.visible)&&(s=t),t.visible&&(o+=t.getWidth())}),s?(n=i-o+s.getWidth(),this.table.options.responsiveLayout&&this.table.modExists(
"responsiveLayout",!0)&&(s.setWidth(0),this.table.modules.responsiveLayout.update()),n>0?s.setWidth(n):s.reinitializeWidth()):this.table.options.responsiveLayout&&
this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()},fitColumns:
function(t){
function e(t){
return"string"==typeof t?t.indexOf(
"%")>-1?n/100*parseInt(t):parseInt(t):t}function o(t,i,n,s){
function l(t){
return n*(t.column.definition.widthGrow||1)}
function a(t){
return e(t.width)-n*(t.column.definition.widthShrink||0)}var r=[],u=0,c=0,h=0,p=0,d=0,m=[];
return t.forEach(
function(t,e){var o=s?a(t):l(t);t.column.minWidth>=o?r.push(t):(m.push(t),d+=s?t.column.definition.widthShrink||1:t.column.definition.widthGrow||1)}),r.length?(r.forEach(
function(t){u+=s?t.width-t.column.minWidth:t.column.minWidth,t.width=t.column.minWidth}),c=i-u,h=d?Math.floor(c/d):c,p=c-h*d,p+=o(m,c,h,s)):(p=d?i-Math.floor(i/d)*d:i,m.forEach(
function(t){t.width=s?a(t):l(t)})),p}var i=this,n=i.table.element.clientWidth,s=0,l=0,a=0,r=0,u=[],c=[],h=0,p=0,d=0;this.table.options.responsiveLayout&&this.table.modExists(
"responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(n-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),t.forEach(
function(t){var o,i,n;t.visible&&(o=t.definition.width,i=parseInt(t.minWidth),o?(n=e(o),s+=n>i?n:i,t.definition.widthShrink&&(c.push({column:t,width:n>i?n:i}),h+=t.definition.widthShrink)):(u.push({column:t,width:0}),a+=t.definition.widthGrow||1))}),l=n-s,r=Math.floor(l/a);var d=o(u,l,r,!1);u.length&&d>0&&(u[u.length-1].width+=+d),u.forEach(
function(t){l-=t.width}),p=Math.abs(d)+l,p>0&&h&&(d=o(c,p,Math.floor(p/h),!0)),c.length&&(c[c.length-1].width-=d),u.forEach(
function(t){t.column.setWidth(t.width)}),c.forEach(
function(t){t.column.setWidth(t.width)})}},Tabulator.prototype.registerModule(
"layout",Layout);var Localize=
function(t){this.table=t,this.locale=
"default",this.lang=!1,this.bindings={}};Localize.prototype.setHeaderFilterPlaceholder=
function(t){this.langs.default.headerFilters.default=t},Localize.prototype.setHeaderFilterColumnPlaceholder=
function(t,e){this.langs.default.headerFilters.columns[t]=e,this.lang&&!this.lang.headerFilters.columns[t]&&(this.lang.headerFilters.columns[t]=e)},Localize.prototype.installLang=
function(t,e){this.langs[t]?this._setLangProp(this.langs[t],e):this.langs[t]=e},Localize.prototype._setLangProp=function(t,e){
for(var o in e)t[o]&&
"object"==_typeof(t[o])?this._setLangProp(t[o],e[o]):t[o]=e[o]},Localize.prototype.setLocale=function(t){
function e(t,o){
for(var i in t)
"object"==_typeof(t[i])?(o[i]||(o[i]={}),e(t[i],o[i])):o[i]=t[i]}var o=
this;
if(t=t||
"default",!0===t&&navigator.language&&(t=navigator.language.toLowerCase()),t&&!o.langs[t]){var i=t.split(
"-")[0];o.langs[i]?(console.warn(
"Localization Error - Exact matching locale not found, using closest match: ",t,i),t=i):(console.warn(
"Localization Error - Matching locale not found, using default: ",t),t=
"default")}o.locale=t,o.lang=Tabulator.prototype.helpers.deepClone(o.langs.default||{}),
"default"!=t&&e(o.langs[t],o.lang),o.table.options.localized.call(o.table,o.locale,o.lang),o._executeBindings()},Localize.prototype.getLocale=
function(t){
return self.locale},Localize.prototype.getLang=
function(t){
return t?this.langs[t]:this.lang},Localize.prototype.getText=
function(t,e){var t=e?t+
"|"+e:t,o=t.split(
"|");
return this._getLangElement(o,this.locale)||
""},Localize.prototype._getLangElement=
function(t,e){var o=
this,i=o.lang;
return t.forEach(
function(t){var e;i&&(e=i[t],i=
void 0!==e&&e)}),i},Localize.prototype.bind=
function(t,e){this.bindings[t]||(this.bindings[t]=[]),this.bindings[t].push(e),e(this.getText(t),this.lang)},Localize.prototype._executeBindings=
function(){var t=
this;
for(var e in t.bindings)!
function(e){t.bindings[e].forEach(
function(o){o(t.getText(e),t.lang)})}(e)},Localize.prototype.langs={
default:{groups:{item:
"item",items:
"items"},columns:{},ajax:{loading:
"Loading",error:
"Error"},pagination:{page_size:
"Page Size",first:
"First",first_title:
"First Page",last:
"Last",last_title:
"Last Page",prev:
"Prev",prev_title:
"Prev Page",next:
"Next",next_title:
"Next Page"},headerFilters:{
default:
"filter column...",columns:{}}}},Tabulator.prototype.registerModule(
"localize",Localize);var Comms=
function(t){this.table=t};Comms.prototype.getConnections=
function(t){var e,o=
this,i=[];
return e=Tabulator.prototype.comms.lookupTable(t),e.forEach(
function(t){o.table!==t&&i.push(t)}),i},Comms.prototype.send=
function(t,e,o,i){var n=
this,s=this.getConnections(t);s.forEach(
function(t){t.tableComms(n.table.element,e,o,i)}),!s.length&&t&&console.warn(
"Table Connection Error - No tables matching selector found",t)},
6 Comms.prototype.receive=
function(t,e,o,i){
if(this.table.modExists(e))
return this.table.modules[e].commsReceived(t,o,i);console.warn(
"Inter-table Comms Error - no such module:",e)},Tabulator.prototype.registerModule(
"comms",Comms);