0?r+=o:i=!1})),o>=n&&(!i||o<=r)},e.prototype.resizeColumnSets=function(t,e,o){var n=this;if(!t||t.every((function(t){return n.checkMinAndMaxWidthsForSet(t)}))){var r=[],i=[];t.forEach((function(t){var e=t.width,n=t.columns,s=t.ratios,a={},l={};n.forEach((function(t){return i.push(t)}));for(var u=!0,c=0,p=function(){if(++c>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";u=!1;var t=[],o=0,r=e;n.forEach((function(e,n){if(l[e.getId()])r-=a[e.getId()];else{t.push(e);var i=s[n];o+=i}}));var i=1/o;t.forEach((function(o,n){var c;n===t.length-1?c=r:(c=Math.round(s[n]*e*i),r-=c);var p=o.getMinWidth(),d=o.getMaxWidth();Object(h.exists)(p)&&c0&&c>d&&(c=d,l[o.getId()]=!0,u=!0),a[o.getId()]=c}))};u;){if("break"===p())break}n.forEach((function(t){var e=a[t.getId()];t.getActualWidth()!==e&&(t.setActualWidth(e,o),r.push(t))}))}));var s=r.length>0,a=this.refreshFlexedColumns({resizingCols:i,skipSetLeft:!0});s&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkViewportColumns());var l=i.concat(a);(s||e)&&this.fireColumnResizedEvent(l,e,o,a)}else if(e){var u=t&&t.length>0?t[0].columns:null;this.fireColumnResizedEvent(u,e,o)}},e.prototype.setColumnAggFunc=function(t,e,o){if(void 0===o&&(o="api"),t){var n=this.getPrimaryColumn(t);n&&(n.setAggFunc(e),this.fireColumnEvent(s.a.EVENT_COLUMN_VALUE_CHANGED,[n],o))}},e.prototype.fireColumnEvent=function(t,e,o){var n={type:t,columns:e,column:e&&1==e.length?e[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(n)},e.prototype.moveRowGroupColumn=function(t,e,o){void 0===o&&(o="api");var n=this.rowGroupColumns[t];this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(e,0,n);var r={type:s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r)},e.prototype.moveColumns=function(t,e,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),e>this.gridColumns.length-t.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+e),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var n=this.getGridColumns(t);if(!!this.doesMovePassRules(n,e)){Object(d.moveInArray)(this.gridColumns,n,e),this.updateDisplayedColumns(o);var r={type:s.a.EVENT_COLUMN_MOVED,columns:n,column:1===n.length?n[0]:null,toIndex:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(t,e){var o=this.gridColumns.slice();return Object(d.moveInArray)(o,t,e),!!this.doesMovePassMarryChildren(o)&&!!this.doesMovePassLockedPositions(o)},e.prototype.sortColumnsLikeGridColumns=function(t){var e=this;!t||t.length<=1||(t.filter((function(t){return e.gridColumns.indexOf(t)<0})).length>0||t.sort((function(t,o){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(o)})))},e.prototype.doesMovePassLockedPositions=function(t){var e=!1,o=!0;return t.forEach((function(t){t.getColDef().lockPosition?e&&(o=!1):e=!0})),o},e.prototype.doesMovePassMarryChildren=function(t){var e=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof l.a){var n=o,r=n.getColGroupDef();if(r&&r.marryChildren){var i=[];n.getLeafColumns().forEach((function(e){var o=t.indexOf(e);i.push(o)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>n.getLeafColumns().length-1&&(e=!1)}}})),e},e.prototype.moveColumn=function(t,e,o){void 0===o&&(o="api"),this.moveColumns([t],e,o)},e.prototype.moveColumnByIndex=function(t,e,o){void 0===o&&(o="api");var n=this.gridColumns[t];this.moveColumn(n,e,o)},e.prototype.getColumnDefs=function(){var t=this;if(this.primaryColumns){var e=this.primaryColumns.slice();return this.gridColsArePrimary?e.sort((function(e,o){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)})):this.lastPrimaryOrder&&e.sort((function(e,o){return t.lastPrimaryOrder.indexOf(e)-t.lastPrimaryOrder.indexOf(o)})),this.columnDefFactory.buildColumnDefs(e,this.rowGroupColumns,this.pivotColumns)}},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(t){switch(t){case p.a.PINNED_LEFT:return this.leftWidth;case p.a.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedColumnsCenter),e=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==t,this.bodyWidth!==t||this.leftWidth!==e||this.rightWidth!==o){this.bodyWidth=t,this.leftWidth=e,this.rightWidth=o;var n={type:s.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},e.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},e.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},e.prototype.getDisplayedColumns=function(t){switch(t){case p.a.PINNED_LEFT:return this.getDisplayedLeftColumns();case p.a.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return Object(h.missingOrEmpty)(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return Object(h.missingOrEmpty)(this.rowGroupColumns)},e.prototype.setColumnVisible=function(t,e,o){void 0===o&&(o="api"),this.setColumnsVisible([t],e,o)},e.prototype.setColumnsVisible=function(t,e,o){var n=this;void 0===e&&(e=!1),void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(t,(function(t){return t.isVisible()!==e&&(t.setVisible(e,o),!0)}),o,(function(){return{type:s.a.EVENT_COLUMN_VISIBLE,visible:e,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:o}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(t,e,o){void 0===o&&(o="api"),t&&this.setColumnsPinned([t],e,o)},e.prototype.setColumnsPinned=function(t,e,o){var n,r=this;(void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),n=!0===e||e===p.a.PINNED_LEFT?p.a.PINNED_LEFT:e===p.a.PINNED_RIGHT?p.a.PINNED_RIGHT:null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==n&&(t.setPinned(n),!0)}),o,(function(){return{type:s.a.EVENT_COLUMN_PINNED,pinned:n,column:null,columns:null,api:r.gridApi,columnApi:r.columnApi,source:o}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(t,e,o,n){var r=this;if(!Object(h.missingOrEmpty)(t)){var i=[];if(t.forEach((function(t){var o=r.getGridColumn(t);o&&(!1!==e(o)&&i.push(o))})),i.length&&(this.updateDisplayedColumns(o),Object(h.exists)(n)&&n)){var s=n();s.columns=i,s.column=1===i.length?i[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o>0?e[o-1]:null},e.prototype.getDisplayedColAfter=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o0},e.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&Object(h.exists)(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(e){return t.push(e)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(e){return t.push(e)})),t},e.prototype.createStateItemFromColumn=function(t){var e=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,o=t.isPivotActive()?this.pivotColumns.indexOf(t):null,n=t.isValueActive()?t.getAggFunc():null,r=null!=t.getSort()?t.getSort():null,i=null!=t.getSortIndex()?t.getSortIndex():null,s=null!=t.getFlex()&&t.getFlex()>0?t.getFlex():null;return{colId:t.getColId(),width:t.getActualWidth(),hide:!t.isVisible(),pinned:t.getPinned(),sort:r,sortIndex:i,aggFunc:n,rowGroup:t.isRowGroupActive(),rowGroupIndex:e,pivot:t.isPivotActive(),pivotIndex:o,flex:s}},e.prototype.getColumnState=function(){if(Object(h.missing)(this.primaryColumns)||!this.isAlive())return[];var t=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.getPrimaryAndAutoGroupCols=function(){return this.groupAutoColumns?O(this.primaryColumns||[],this.groupAutoColumns):this.primaryColumns},e.prototype.orderColumnStateList=function(t){var e=Object(g.convertToMap)(this.gridColumns.map((function(t,e){return[t.getColId(),e]})));t.sort((function(t,o){return(e.has(t.colId)?e.get(t.colId):-1)-(e.has(o.colId)?e.get(o.colId):-1)}))},e.prototype.resetColumnState=function(t){void 0===t&&(t="api");var e=this.getColumnsFromTree(this.primaryColumnTree),o=[],n=1e3,r=1e3,i=[];this.groupAutoColumns&&(i=i.concat(this.groupAutoColumns)),e&&(i=i.concat(e)),i.forEach((function(t){var e=function(t,e){return null!=t?t:null!=e?e:null},i=t.getColDef(),s=e(i.sort,i.initialSort),a=e(i.sortIndex,i.initialSortIndex),l=e(i.hide,i.initialHide),u=e(i.pinned,i.initialPinned),c=e(i.width,i.initialWidth),p=e(i.flex,i.initialFlex),d=e(i.rowGroupIndex,i.initialRowGroupIndex),f=e(i.rowGroup,i.initialRowGroup);null!=d||null!=f&&0!=f||(d=null,f=null);var g=e(i.pivotIndex,i.initialPivotIndex),y=e(i.pivot,i.initialPivot);null!=g||null!=y&&0!=y||(g=null,y=null);var v=e(i.aggFunc,i.initialAggFunc),m={colId:t.getColId(),sort:s,sortIndex:a,hide:l,pinned:u,width:c,flex:p,rowGroup:f,rowGroupIndex:d,pivot:y,pivotIndex:g,aggFunc:v};Object(h.missing)(d)&&f&&(m.rowGroupIndex=n++),Object(h.missing)(g)&&y&&(m.pivotIndex=r++),o.push(m)})),this.applyColumnState({state:o,applyOrder:!0},t)},e.prototype.applyColumnState=function(t,e){var o=this;if(void 0===e&&(e="api"),Object(h.missingOrEmpty)(this.primaryColumns))return!1;if(t&&t.state&&!t.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;this.columnAnimationService.start();var n=this.compareColumnStatesAndRaiseEvents(e);this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns.slice(),i=!0,s={},a={},l=[],u=this.rowGroupColumns.slice(),c=this.pivotColumns.slice();t.state&&t.state.forEach((function(n){var u=p.a.GROUP_AUTO_COLUMN_ID,c=n.colId||"";if(Object(f.startsWith)(c,u))l.push(n);else{var h=o.getPrimaryColumn(c);h?(o.syncColumnWithStateItem(h,n,t.defaultState,s,a,!1,e),Object(d.removeFromArray)(r,h)):i=!1}}));var g=function(n){return o.syncColumnWithStateItem(n,null,t.defaultState,s,a,!1,e)};r.forEach(g);var y=function(t,e,o,n){var r=t[o.getId()],i=t[n.getId()],s=null!=r,a=null!=i;if(s&&a)return r-i;if(s)return-1;if(a)return 1;var l=e.indexOf(o),u=e.indexOf(n),c=l>=0;return c&&u>=0?l-u:c?-1:1};this.rowGroupColumns.sort(y.bind(this,s,u)),this.pivotColumns.sort(y.bind(this,a,c)),this.updateGridColumns();var v=this.groupAutoColumns?this.groupAutoColumns.slice():[];return l.forEach((function(n){var r=o.getAutoColumn(n.colId);Object(d.removeFromArray)(v,r),o.syncColumnWithStateItem(r,n,t.defaultState,null,null,!0,e)})),v.forEach(g),this.applyOrderAfterApplyState(t),this.updateDisplayedColumns(e),this.dispatchEverythingChanged(e),n(),this.columnAnimationService.finish(),i},e.prototype.applyOrderAfterApplyState=function(t){if(this.gridColsArePrimary&&t.applyOrder&&t.state){var e=[],o={},n={};this.gridColumns.forEach((function(t){return n[t.getId()]=t})),t.state.forEach((function(t){if(t.colId&&!o[t.colId]){var r=n[t.colId];r&&(e.push(r),o[t.colId]=!0)}})),this.gridColumns.forEach((function(t){o[t.getColId()]||e.push(t)})),e=this.putFixedColumnsFirst(e),this.doesMovePassMarryChildren(e)?this.gridColumns=e:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},e.prototype.compareColumnStatesAndRaiseEvents=function(t){var e=this;if(!!!this.columnDefs)return function(){};var o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},n=this.getColumnState(),r={};return n.forEach((function(t){r[t.colId]=t})),function(){if(!e.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=e.getPrimaryAndAutoGroupCols(),a=function(o,n,r,i){var s=n.map(i),a=r.map(i);if(!Object(d.areEqual)(s,a)){var l={type:o,columns:r,column:1===r.length?r[0]:null,api:e.gridApi,columnApi:e.columnApi,source:t};e.eventService.dispatchEvent(l)}},l=function(t){var e=[];return(i||[]).forEach((function(o){var n=r[o.getColId()];n&&t(n,o)&&e.push(o)})),e},u=function(t){return t.getColId()};a(s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,e.rowGroupColumns,u),a(s.a.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,e.pivotColumns,u);l((function(t,e){var o=null!=t.aggFunc,n=o!=e.isValueActive(),r=o&&t.aggFunc!=e.getAggFunc();return n||r})).length>0&&e.fireColumnEvent(s.a.EVENT_COLUMN_VALUE_CHANGED,e.valueColumns,t);e.fireColumnResizedEvent(l((function(t,e){return t.width!=e.getActualWidth()})),!0,t);e.raiseColumnPinnedEvent(l((function(t,e){return t.pinned!=e.getPinned()})),t);e.raiseColumnVisibleEvent(l((function(t,e){return t.hide==e.isVisible()})),t);l((function(t,e){return t.sort!=e.getSort()||t.sortIndex!=e.getSortIndex()})).length>0&&e.sortController.dispatchSortChangedEvents(),e.raiseColumnMovedEvent(n,t)}}},e.prototype.raiseColumnPinnedEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,n=this.getCommonValue(t,(function(t){return t.getPinned()})),r={type:s.a.EVENT_COLUMN_PINNED,pinned:null!=n?n:null,columns:t,column:o,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(r)}},e.prototype.getCommonValue=function(t,e){if(t&&0!=t.length){for(var o=e(t[0]),n=1;n=c&&t.setActualWidth(g,s)}var y=a("sort").value1;void 0!==y&&(y===p.a.SORT_DESC||y===p.a.SORT_ASC?t.setSort(y):t.setSort(void 0));var v=a("sortIndex").value1;if(void 0!==v&&t.setSortIndex(v),!i){var m=a("aggFunc").value1;void 0!==m&&("string"==typeof m?(t.setAggFunc(m),t.isValueActive()||(t.setValueActive(!0,s),this.valueColumns.push(t))):(Object(h.exists)(m)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),t.isValueActive()&&(t.setValueActive(!1,s),Object(d.removeFromArray)(this.valueColumns,t))));var C=a("rowGroup","rowGroupIndex"),O=C.value1,w=C.value2;void 0===O&&void 0===w||("number"==typeof w||O?(t.isRowGroupActive()||(t.setRowGroupActive(!0,s),this.rowGroupColumns.push(t)),n&&"number"==typeof w&&(n[t.getId()]=w)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,s),Object(d.removeFromArray)(this.rowGroupColumns,t)));var b=a("pivot","pivotIndex"),E=b.value1,R=b.value2;void 0===E&&void 0===R||("number"==typeof R||E?(t.isPivotActive()||(t.setPivotActive(!0,s),this.pivotColumns.push(t)),r&&"number"==typeof R&&(r[t.getId()]=R)):t.isPivotActive()&&(t.setPivotActive(!1,s),Object(d.removeFromArray)(this.pivotColumns,t)))}}},e.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},e.prototype.getColumns=function(t,e){var o=[];return t&&t.forEach((function(t){var n=e(t);n&&o.push(n)})),o},e.prototype.getColumnWithValidation=function(t){if(null==t)return null;var e=this.getGridColumn(t);return e||console.warn("AG Grid: could not find column "+t),e},e.prototype.getPrimaryColumn=function(t){return this.primaryColumns?this.getColumn(t,this.primaryColumns,this.primaryColumnsMap):null},e.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns,this.gridColumnsMap)},e.prototype.getColumn=function(t,e,o){if(!t)return null;if("string"==typeof t&&o[t])return o[t];for(var n=0;n=0:u?void 0!==d?d:!!(void 0!==g)&&(null!=g&&g>=0):e.indexOf(o)>=0)&&((u?null!=f||null!=g:null!=f)?a.push(o):l.push(o))}));var u=function(t){var e=n(t.getColDef()),o=r(t.getColDef());return null!=e?e:o};a.sort((function(t,e){var o=u(t),n=u(e);return o===n?0:o=0&&c.push(t)})),l.forEach((function(t){c.indexOf(t)<0&&c.push(t)})),e.forEach((function(t){c.indexOf(t)<0&&o(t,!1)})),c.forEach((function(t){e.indexOf(t)<0&&o(t,!0)})),c},e.prototype.extractPivotColumns=function(t,e){this.pivotColumns=this.extractColumns(e,this.pivotColumns,(function(e,o){return e.setPivotActive(o,t)}),(function(t){return t.pivotIndex}),(function(t){return t.initialPivotIndex}),(function(t){return t.pivot}),(function(t){return t.initialPivot}))},e.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var e=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof l.a){var o=t.getColGroupDef(),n={groupId:t.getGroupId(),open:o?o.openByDefault:void 0};e.push(n)}})),this.setColumnGroupState(e,t)},e.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(e){if(e instanceof l.a){var o=e;t.push({groupId:o.getGroupId(),open:o.isExpanded()})}})),t},e.prototype.setColumnGroupState=function(t,e){var o=this;void 0===e&&(e="api"),this.columnAnimationService.start();var n=[];t.forEach((function(t){var e=t.groupId,r=t.open,i=o.getOriginalColumnGroup(e);i&&i.isExpanded()!==r&&(o.logger.log("columnGroupOpened("+i.getGroupId()+","+r+")"),i.setExpanded(r),n.push(i))})),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e),n.forEach((function(t){var e={type:s.a.EVENT_COLUMN_GROUP_OPENED,columnGroup:t,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(e)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(t,e,o){var n;void 0===o&&(o="api"),n=t instanceof l.a?t.getId():t||"",this.setColumnGroupState([{groupId:n,open:e}],o)},e.prototype.getOriginalColumnGroup=function(t){if(t instanceof l.a)return t;"string"!=typeof t&&console.error("AG Grid: group key must be a string");var e=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof l.a){var n=o;n.getId()===t&&(e=n)}})),e},e.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&!this.secondaryColumnsPresent?this.gridColumns.filter((function(e){var o=t.groupAutoColumns&&Object(d.includes)(t.groupAutoColumns,e),n=t.valueColumns&&Object(d.includes)(t.valueColumns,e);return o||n})):this.gridColumns.filter((function(e){return t.groupAutoColumns&&Object(d.includes)(t.groupAutoColumns,e)||e.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(t){var e=!1;return t.forEach((function(t){Object(h.exists)(t.getColDef().colSpan)&&(e=!0)})),e},e.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[];var e=function(e){var o=e.getColDef();o&&Object(h.exists)(o.showRowGroup)&&t.groupDisplayColumns.push(e)};this.gridColumns.forEach(e),this.groupAutoColumns&&this.groupAutoColumns.forEach(e)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(t){var e=this.calculateColumnsForDisplay();this.buildDisplayedTrees(e),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(t,e){void 0===e&&(e="api");var o=t&&t.length>0;if(o||this.secondaryColumnsPresent){if(o){this.processSecondaryColumnDefinitions(t);var n=this.columnFactory.createColumnTree(t,!1);this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.updateGridColumns(),this.updateDisplayedColumns(e)}},e.prototype.processSecondaryColumnDefinitions=function(t){var e=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),o=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(e||o){var n=function(t){t.forEach((function(t){if(Object(h.exists)(t.children)){var r=t;o&&o(r),n(r.children)}else{e&&e(t)}}))};t&&n(t)}},e.prototype.updateGridColumns=function(){var t=this;this.gridColsArePrimary&&(this.lastPrimaryOrder=this.gridColumns),this.secondaryColumns&&this.secondaryBalancedTree?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1):this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.gridColumns=this.putFixedColumnsFirst(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(e){return t.gridColumnsMap[e.getId()]=e})),this.setAutoHeightActive();var e={type:s.a.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(t){return t.getColDef().autoHeight})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var t=this.rowModel.getType();if(!(t===p.a.ROW_MODEL_TYPE_CLIENT_SIDE||t===p.a.ROW_MODEL_TYPE_SERVER_SIDE)){Object(y.doOnce)((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},e.prototype.orderGridColsLikeLastPrimary=function(){if(!Object(h.missing)(this.lastPrimaryOrder)){var t=Object(g.convertToMap)(this.lastPrimaryOrder.map((function(t,e){return[t,e]}))),e=!0;if(this.gridColumns.forEach((function(o){t.has(o)&&(e=!1)})),!e){var o=Object(g.convertToMap)(this.gridColumns.map((function(t){return[t,!0]}))),n=this.lastPrimaryOrder.filter((function(t){return o.has(t)})),r=Object(g.convertToMap)(n.map((function(t){return[t,!0]}))),i=this.gridColumns.filter((function(t){return!r.has(t)})),s=n.slice();i.forEach((function(t){var e=t.getOriginalParent();if(e){for(var o=[];!o.length&&e;){e.getLeafColumns().forEach((function(t){var e=s.indexOf(t)>=0,n=o.indexOf(t)<0;e&&n&&o.push(t)})),e=e.getOriginalParent()}if(o.length){var n=o.map((function(t){return s.indexOf(t)})),r=Math.max.apply(Math,n);Object(d.insertIntoArray)(s,t,r+1)}else s.push(t)}else s.push(t)})),this.gridColumns=s}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},e.prototype.putFixedColumnsFirst=function(t){var e=t.filter((function(t){return t.getColDef().lockPosition})),o=t.filter((function(t){return!t.getColDef().lockPosition}));return e.concat(o)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!Object(h.missing)(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=t.concat(this.gridBalancedTree)}},e.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(t),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var e={type:s.a.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.deriveDisplayedColumns=function(t){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(t),this.displayedAutoHeightCols=this.displayedColumns.filter((function(t){return t.getColDef().autoHeight}))},e.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},e.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},e.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},e.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(t){var e=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),n=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(r){if(n){var i=e.getWidthOfColsInList(r);r.forEach((function(e){i-=e.getActualWidth(),e.setLeft(i,t)}))}else{var s=0;r.forEach((function(e){e.setLeft(s,t),s+=e.getActualWidth()}))}Object(d.removeAllFromArray)(o,r)})),o.forEach((function(e){e.setLeft(null,t)}))}},e.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(t){t.forEach((function(t){t instanceof r.a&&t.checkLeft()}))}))},e.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,e){e.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof i.a&&e.push(t)}))},e.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},e.prototype.getVirtualHeaderGroupRow=function(t,e){var o;switch(t){case p.a.PINNED_LEFT:o=this.viewportRowLeft[e];break;case p.a.PINNED_RIGHT:o=this.viewportRowRight[e];break;default:o=this.viewportRowCenter[e]}return Object(h.missing)(o)&&(o=[]),o},e.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var t={};this.viewportColumns.forEach((function(e){return t[e.getId()]=!0}));var e=function(o,n,r){for(var s=!1,a=0;an;return t.getFlex()&&o},i=this.displayedColumnsCenter.filter((function(t){return!r(t)})),s=this.displayedColumnsCenter.filter((function(t){return r(t)})),a=[];if(!s.length)return[];var l,u=[];t:for(;;){var c=s.reduce((function(t,e){return t+e.getFlex()}),0);l=this.flexViewportWidth-this.getWidthOfColsInList(i);for(var p=0;pm&&(y=m),y){f.setActualWidth(y,o),Object(d.removeFromArray)(s,f),a.push(f),i.push(f);continue t}u[p]=Math.round(g)}break}var C=l;return s.forEach((function(t,e){t.setActualWidth(Math.min(u[e],C),o),a.push(t),C-=u[e]})),t.skipSetLeft||this.setLeftValues(o),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.fireColumnResizedEvent(a,!0,o,s),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),s},e.prototype.sizeColumnsToFit=function(t,e,o){void 0===e&&(e="sizeColumnsToFit");var n=this.getAllDisplayedColumns();if(!(t<=0)&&n.length){var r=[],i=[];n.forEach((function(t){!0===t.getColDef().suppressSizeToFit?i.push(t):r.push(t)}));var s=r.slice(0),a=!1,l=function(t){Object(d.removeFromArray)(r,t),i.push(t)};for(r.forEach((function(t){return t.resetActualWidth(e)}));!a;){a=!0;var u=t-this.getWidthOfColsInList(i);if(u<=0)r.forEach((function(t){t.setMinimum(e)}));else for(var c=u/this.getWidthOfColsInList(r),p=u,f=r.length-1;f>=0;f--){var g=r[f],y=g.getMinWidth(),v=g.getMaxWidth(),m=Math.round(g.getActualWidth()*c);Object(h.exists)(y)&&m0||this.usingTreeData)&&!e&&!t){var o=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);(!this.autoColsEqual(o,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},e.prototype.autoColsEqual=function(t,e){return Object(d.areEqual)(t,e,(function(t,e){return t.getColId()===e.getColId()}))},e.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,e){return t+e.getActualWidth()}),0)},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},e.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(t){return t.getColDef().floatingFilter}))},e.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsWrapper.isEnableRtl(),e=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&e.reverse();for(var o=0;o=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.calculateColMinWidth=function(t){return null!=t.minWidth?t.minWidth:this.gridOptionsWrapper.getMinColWidth()},e.prototype.calculateColMaxWidth=function(t){return null!=t.maxWidth?t.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Object(l.getMaxSafeInteger)()},e.prototype.calculateColInitialWidth=function(t){var e,o=this.calculateColMinWidth(t),n=this.calculateColMaxWidth(t),r=Object(u.attrToNumber)(t.width),i=Object(u.attrToNumber)(t.initialWidth);return e=null!=r?r:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(e,n),o)},e.prototype.getOriginalPathForColumn=function(t,e){var o=[],n=!1,r=function(e,s){for(var a=0;a=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.createDisplayedGroups=function(t,e,o,n,r){var i,s,a=this,u=[],c=this.mapOldGroupsById(r);return t.forEach((function(t){for(var r=a.getOriginalPathForColumn(e,t),p=[],d=!s,h=0;h=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}return s(e,t),e.prototype.setupComponents=function(t){var e=this;t&&t.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(t){var e=t.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[e]=t.componentClass},e.prototype.getComponentClass=function(t){return this.componentsMappedByName[t]},e=a([Object(r.b)("agStackComponentsRegistry")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(55),i=o(175),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultFilterOptions=function(){return r.a.DEFAULT_FILTER_OPTIONS},e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(45),i=o(7),s=o(2),a=o(10),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return l(e,t),e.prototype.init=function(t){this.params=t,this.focusAfterAttached=t.cellStartedEdit,this.eTextArea.setMaxLength(t.maxLength||200).setCols(t.cols||60).setRows(t.rows||10),Object(s.exists)(t.value)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},e.prototype.onKeyDown=function(t){var e=t.which||t.keyCode;(e===a.a.LEFT||e===a.a.UP||e===a.a.RIGHT||e===a.a.DOWN||t.shiftKey&&e===a.a.ENTER)&&t.stopPropagation()},e.prototype.afterGuiAttached=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},e.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},e.TEMPLATE='',u([Object(i.b)("eTextArea")],e.prototype,"eTextArea",void 0),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n,r=o(64),i=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isPopup=function(){return!0},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n,r=o(58),i=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isPopup=function(){return!0},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(0),i=o(13),s=o(2),a=o(1),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.refreshCount=0,o}return l(e,t),e.prototype.init=function(t){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(t)},e.prototype.showDelta=function(t,e){var o=Math.abs(e),n=t.formatValue(o),r=Object(s.exists)(n)?n:o,i=e>=0;this.eDelta.innerHTML=i?"↑"+r:"↓"+r,Object(a.addOrRemoveCssClass)(this.eDelta,"ag-value-change-delta-up",i),Object(a.addOrRemoveCssClass)(this.eDelta,"ag-value-change-delta-down",!i)},e.prototype.setTimerToRemoveDelta=function(){var t=this;this.refreshCount++;var e=this.refreshCount;window.setTimeout((function(){e===t.refreshCount&&t.hideDeltaValue()}),2e3)},e.prototype.hideDeltaValue=function(){Object(a.removeCssClass)(this.eValue,"ag-value-change-value-highlight"),Object(a.clearElement)(this.eDelta)},e.prototype.refresh=function(t){var e=t.value;if(e===this.lastValue)return!1;if(Object(s.exists)(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:Object(s.exists)(t.value)?this.eValue.innerHTML=e:Object(a.clearElement)(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof e&&"number"==typeof this.lastValue){var o=e-this.lastValue;this.showDelta(t,o)}return this.lastValue&&Object(a.addCssClass)(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=e,!0},e.TEMPLATE='',u([Object(r.a)("filterManager")],e.prototype,"filterManager",void 0),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(0),i=o(13),s=o(1),a=o(2),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return l(e,t),e.prototype.init=function(t){this.refresh(t)},e.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=Object(s.loadTemplate)(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){e===t.refreshCount&&Object(s.addCssClass)(t.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){e===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},e.prototype.refresh=function(t){var e=t.value;return Object(a.missing)(e)&&(e=""),e!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=e,Object(a.exists)(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:Object(a.exists)(t.value)?this.eCurrent.innerHTML=e:Object(s.clearElement)(this.eCurrent),!0))},e.TEMPLATE='\n \n ',u([Object(r.a)("filterManager")],e.prototype,"filterManager",void 0),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return O}));var n,r=o(3),i=o(10),s=o(6),a=o(0),l=o(20),u=o(24),c=o(15),p=o(2),d=o(23),h=o(39),f=o(11),g=o(65),y=o(60),v=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),m=function(){return(m=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.init=function(t,e,o,n,r,i,s){this.params=s,this.eGui=e,this.eCheckbox=o,this.eExpanded=n,this.eContracted=r,this.comp=t,this.compClass=i;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value,c=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},e.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var t=this.params.colDef;if(null==t)return!0;if(!0===t.showRowGroup)return!0;var e=this.columnModel.getRowGroupColumns();return!e||0===e.length||e[0].getId()===t.showRowGroup},e.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var t=this.params.pinned===r.a.PINNED_LEFT,e=this.params.pinned===r.a.PINNED_RIGHT,o=!t&&!e;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!e:!o:this.columnModel.isPinningLeft()?!t:!o},e.prototype.findDisplayedGroupNode=function(){var t=this.params.column,e=this.params.node;if(this.showingValueForOpenedParent)for(var o=e.parent;null!=o;){if(o.rowGroupColumn&&t.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}Object(p.missing)(this.displayedGroupNode)&&(this.displayedGroupNode=e)},e.prototype.setupShowingValueForOpenedParent=function(){var t=this.params.node,e=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.groupData){if(null!=t.rowGroupColumn){var o=t.rowGroupColumn.getId();if(e.isRowGroupDisplayed(o))return void(this.showingValueForOpenedParent=!1)}var n=null!=t.groupData[e.getId()];this.showingValueForOpenedParent=n}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},e.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},e.prototype.addGroupValue=function(){var t=this.adjustParamsWithDetailsFromRelatedColumn(),e=this.getInnerCompDetails(t),o=t.valueFormatted,n=t.value,r=null!=o?o:n;this.comp.setInnerRenderer(e,r)},e.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var t=this.displayedGroupNode.rowGroupColumn,e=this.params.column;if(!t)return this.params;if(null!=e&&!e.isRowGroupDisplayed(t.getId()))return this.params;var o=this.params,n=this.params,r=n.value,i=n.scope,s=n.node,a=this.valueFormatterService.formatValue(t,s,i,r);return m(m({},o),{valueFormatted:a})},e.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,e="";if(t){var o=Object(f.cloneObject)(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+(null!=this.params.value?this.params.value:"");var n=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(n,e)},e.prototype.getInnerCompDetails=function(t){var e=this;if(t.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,t);var o=this.userComponentFactory.getInnerRendererDetails(t,t),n=function(t){return t&&t.componentClass==e.compClass};if(o&&!n(o))return o;var r=this.displayedGroupNode.rowGroupColumn,i=r?r.getColDef():void 0;if(i){var s=this.userComponentFactory.getCellRendererDetails(i,t);if(s&&!n(s))return s;if(n(s)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,t)}},e.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,l.b.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},e.prototype.updateChildCount=function(){var t=this.displayedGroupNode.allChildrenCount,e=this.isShowRowGroupForThisRow()&&null!=t&&t>=0?"("+t+")":"";this.comp.setChildCount(e)},e.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var t=this.displayedGroupNode.rowGroupColumn;if(!t)return!1;var e=this.params.column;return null==e||e.isRowGroupDisplayed(t.getId())},e.prototype.addExpandAndContract=function(){var t=this.params,e=Object(d.createIconNoSpan)("groupExpanded",this.gridOptionsWrapper,null),o=Object(d.createIconNoSpan)("groupContracted",this.gridOptionsWrapper,null);e&&this.eExpanded.appendChild(e),o&&this.eContracted.appendChild(o);var n=t.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(n,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(n,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,l.b.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,l.b.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,l.b.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,l.b.EVENT_HAS_CHILDREN_CHANGED,r)},e.prototype.onExpandClicked=function(t){Object(u.isStopPropagationForAgGrid)(t)||(Object(u.stopPropagationForAgGrid)(t),this.onExpandOrContract())},e.prototype.onExpandOrContract=function(){var t=this.displayedGroupNode,e=!t.expanded;t.setExpanded(e)},e.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var t=this.displayedGroupNode,e=this.columnModel.isPivotMode()&&t.leafGroup;if(!(t.isExpandable()&&!t.footer&&!e))return!1;var o=this.params.column;return null==o||"string"!=typeof o.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},e.prototype.showExpandAndContractIcons=function(){var t=this.params,e=this.displayedGroupNode,o=this.columnModel,n=t.node,r=this.isExpandable();if(r){var i=!!this.showingValueForOpenedParent||n.expanded;this.comp.setExpandedDisplayed(i),this.comp.setContractedDisplayed(!i)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=o.isPivotMode(),a=s&&e.leafGroup,l=r&&!a,u=n.footer&&-1===n.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",l),this.comp.addOrRemoveCssClass("ag-row-group",l),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",a):u||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!l)},e.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},e.prototype.setupIndent=function(){var t=this.params.node;this.params.suppressPadding||(this.addManagedListener(t,l.b.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},e.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var t=this.params,e=t.node,o=!!t.colDef,n=this.gridOptionsWrapper.isTreeData(),r=!o||n||!0===t.colDef.showRowGroup?e.uiLevel:0;t.padding>=0&&Object(c.doOnce)((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},e.prototype.addFullWidthRowDraggerIfNeeded=function(){var t=this;if(this.params.fullWidth&&this.params.rowDrag){var e=new y.a((function(){return t.params.value}),this.params.node);this.createManagedBean(e,this.context),this.eGui.insertAdjacentElement("afterbegin",e.getGui())}},e.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"==typeof t?t(this.params):!0===t},e.prototype.addCheckboxIfNeeded=function(){var t=this,e=this.displayedGroupNode,o=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(o){var n=new g.a;this.getContext().createBean(n),n.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(n)}))}this.comp.setCheckboxVisible(o)},e.prototype.onKeyDown=function(t){Object(h.isKeyPressed)(t,i.a.ENTER)&&!this.params.suppressEnterExpand&&(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract())},e.prototype.onCellDblClicked=function(t){Object(u.isStopPropagationForAgGrid)(t)||(Object(u.isElementInEventPath)(this.eExpanded,t)||Object(u.isElementInEventPath)(this.eContracted,t)||this.onExpandOrContract())},C([Object(a.a)("expressionService")],e.prototype,"expressionService",void 0),C([Object(a.a)("valueFormatterService")],e.prototype,"valueFormatterService",void 0),C([Object(a.a)("columnModel")],e.prototype,"columnModel",void 0),C([Object(a.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),C([Object(a.a)("gridOptions")],e.prototype,"gridOptions",void 0),e}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return f}));var n,r=o(0),i=o(6),s=o(5),a=o(3),l=o(66),u=o(11),c=o(2),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t,e){return function(o,n){e(o,n,t)}},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.setBeans=function(t){this.logger=t.create("selectionService"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()&&this.addManagedListener(this.eventService,s.a.EVENT_ROW_DATA_CHANGED,this.reset.bind(this))},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,s.a.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var t=[];return Object(u.iterateObject)(this.selectedNodes,(function(e,o){o&&t.push(o)})),t},e.prototype.getSelectedRows=function(){var t=[];return Object(u.iterateObject)(this.selectedNodes,(function(e,o){o&&o.data&&t.push(o.data)})),t},e.prototype.removeGroupsFromSelection=function(){var t=this;Object(u.iterateObject)(this.selectedNodes,(function(e,o){o&&o.group&&(t.selectedNodes[o.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(t){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===a.a.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getRootNode();t||(t=new l.a(!0,e)).setInactive(),t.forEachChangedNodeDepthFirst((function(t){t!==e&&t.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(t){return this.selectedNodes[t]},e.prototype.clearOtherNodes=function(t){var e=this,o={},n=0;return Object(u.iterateObject)(this.selectedNodes,(function(r,i){if(i&&i.id!==t.id){var s=e.selectedNodes[i.id];n+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),e.groupSelectsChildren&&i.parent&&(o[i.parent.id]=i.parent)}})),Object(u.iterateObject)(o,(function(t,e){e.calculateSelectedFromChildren()})),n},e.prototype.onRowSelected=function(t){var e=t.node;this.groupSelectsChildren&&e.group||(e.isSelected()?this.selectedNodes[e.id]=e:this.selectedNodes[e.id]=void 0)},e.prototype.syncInRowNode=function(t,e){this.syncInOldRowNode(t,e),this.syncInNewRowNode(t)},e.prototype.syncInOldRowNode=function(t,e){if(Object(c.exists)(e)&&t.id!==e.id&&e){var o=e.id;this.selectedNodes[o]==t&&(this.selectedNodes[e.id]=e)}},e.prototype.syncInNewRowNode=function(t){Object(c.exists)(this.selectedNodes[t.id])?(t.setSelectedInitialValue(!0),this.selectedNodes[t.id]=t):t.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===a.a.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getTopLevelNodes();if(null!==t){var e=[];return function t(o){for(var n=0,r=o.length;n=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},s=function(){function t(){}return t.prototype.sizeColumnsToFit=function(t){void 0===t&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},t.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},t.prototype.getOriginalColumnGroup=function(t){return this.columnModel.getOriginalColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},t.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},t.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},t.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnModel.getColumnState()},t.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},t.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,e){this.columnModel.setColumnVisible(t,e,"api")},t.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},t.prototype.setColumnPinned=function(t,e){this.columnModel.setColumnPinned(t,e,"api")},t.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},t.prototype.getAllColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},t.prototype.moveColumn=function(t,e){"number"==typeof t?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(t,e,"api")):this.columnModel.moveColumn(t,e,"api")},t.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},t.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},t.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e)},t.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e)},t.prototype.setColumnWidth=function(t,e,o,n){void 0===o&&(o=!0),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,o,n)},t.prototype.setColumnWidths=function(t,e,o){void 0===e&&(e=!0),this.columnModel.setColumnWidths(t,!1,e,o)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getSecondaryPivotColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},t.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},t.prototype.autoSizeColumn=function(t,e){return this.columnModel.autoSizeColumn(t,e,"api")},t.prototype.autoSizeColumns=function(t,e){return this.columnModel.autoSizeColumns(t,e,"api")},t.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},t.prototype.setSecondaryColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},t.prototype.getSecondaryColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.getPrimaryColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(r.f.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.columnGroupOpened=function(t,e){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(t,e)},t.prototype.hideColumns=function(t,e){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(t,!e,"api")},t.prototype.hideColumn=function(t,e){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(t,!e,"api")},t.prototype.setState=function(t){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(t)},t.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},t.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},t.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},t.prototype.removeAggregationColumn=function(t){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(t,"api")},t.prototype.removeAggregationColumns=function(t){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(t,"api")},t.prototype.addAggregationColumn=function(t){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(t,"api")},t.prototype.addAggregationColumns=function(t){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(t,"api")},t.prototype.setColumnAggFunction=function(t,e){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(t,e,"api")},t.prototype.getDisplayNameForCol=function(t){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(t,null)},t.prototype.setColumnState=function(t){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:t,applyOrder:!0},"api")},i([Object(n.a)("columnModel")],t.prototype,"columnModel",void 0),i([n.g],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=i([Object(n.b)("columnApi")],t)}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return O}));var n,r=o(12),i=o(40),s=o(21),a=o(5),l=o(3),u=o(0),c=o(6),p=o(2),d=o(11),h=o(38),f=o(15),g=o(41),y=o(8),v=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),m=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},C=function(){for(var t=0,e=0,o=arguments.length;e=0&&e.push(o)})),e},e.prototype.redrawRows=function(t){var e=null!=t&&t.length>0;if(e){var o=this.getRenderedIndexesForRowNodes(t);this.removeRowCtrls(o)}this.redrawAfterModelUpdate({recycleRows:e})},e.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var e=t.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==e)return null;var o=document.activeElement,n=this.gridOptionsWrapper.getDomData(o,g.a.DOM_DATA_KEY_CELL_CTRL),r=this.gridOptionsWrapper.getDomData(o,i.a.DOM_DATA_KEY_ROW_CTRL);return n||r?e:null},e.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var e=this.getCellToRestoreFocusToAfterRefresh(t);this.updateContainerHeights(),this.scrollToTopIfNewData(t);var o=!this.printLayout&&!!t.recycleRows,n=t.animate&&this.gridOptionsWrapper.isAnimateRows(),r=o?this.recycleRows():null;o||this.removeAllRowComps();var i=function(){if(null==e||null==r)return!1;var t=!1;return Object(d.iterateObject)(r,(function(o,n){var r=n.getRowNode(),i=r.rowIndex==e.rowIndex,s=r.rowPinned==e.rowPinned;i&&s&&(t=!0)})),t}();this.redraw(r,n),t.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i||this.restoreFocusedCell(e),this.releaseLockOnRefresh()},e.prototype.scrollToTopIfNewData=function(t){var e=t.newData||t.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();e&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},e.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.rowContainerHeightService.setModelHeight(t)}},e.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.refreshView(), call setTimeout(function() { api.refreshView(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},e.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},e.prototype.restoreFocusedCell=function(t){t&&this.focusService.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0)},e.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.getAllRowCtrls().forEach((function(e){e.stopEditing(t)}))},e.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach((function(t){return t.onNewColumnsLoaded()}))},e.prototype.getAllCellCtrls=function(){var t=[];return this.getAllRowCtrls().forEach((function(e){return t=t.concat(e.getAllCellCtrls())})),t},e.prototype.getAllRowCtrls=function(){var t=this,e=C(this.topRowCtrls,this.bottomRowCtrls);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(o){return e.push(t.rowCtrlsByRowIndex[o])})),e},e.prototype.addRenderedRowListener=function(t,e,o){var n=this.rowCtrlsByRowIndex[e];n&&n.addEventListener(t,o)},e.prototype.flashCells=function(t){void 0===t&&(t={});var e=t.flashDelay,o=t.fadeDelay;this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){return t.flashCell({flashDelay:e,fadeDelay:o})}))},e.prototype.refreshCells=function(t){void 0===t&&(t={});var e={forceRefresh:t.force,newData:!1,suppressFlash:t.suppressFlash};this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){if(t.refreshShouldDestroy()){var o=t.getRowCtrl();o&&o.refreshCell(t)}else t.refreshCell(e)}))},e.prototype.getCellRendererInstances=function(t){return this.getCellCtrls(t.rowNodes,t.columns).map((function(t){return t.getCellRenderer()})).filter((function(t){return null!=t}))},e.prototype.getCellEditorInstances=function(t){var e=[];return this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){var o=t.getCellEditor();o&&e.push(o)})),e},e.prototype.getEditingCells=function(){var t=[];return this.getAllCellCtrls().forEach((function(e){if(e.isEditing()){var o=e.getCellPosition();t.push(o)}})),t},e.prototype.getCellCtrls=function(t,e){var o,n,r=this,i=[];Object(p.exists)(t)&&(o={top:{},bottom:{},normal:{}},t.forEach((function(t){var e=t.id;t.rowPinned===l.a.PINNED_TOP?o.top[e]=!0:t.rowPinned===l.a.PINNED_BOTTOM?o.bottom[e]=!0:o.normal[e]=!0}))),Object(p.exists)(e)&&(n={},e.forEach((function(t){var e=r.columnModel.getGridColumn(t);Object(p.exists)(e)&&(n[e.getId()]=!0)})));var s=function(t){var e=t.getRowNode(),r=e.id,s=e.rowPinned;if(Object(p.exists)(o))if(s===l.a.PINNED_BOTTOM){if(!o.bottom[r])return}else if(s===l.a.PINNED_TOP){if(!o.top[r])return}else if(!o.normal[r])return;t.getAllCellCtrls().forEach((function(t){var e=t.getColumn().getId();n&&!n[e]||i.push(t)}))};return Object(d.iterateObject)(this.rowCtrlsByRowIndex,(function(t,e){s(e)})),this.topRowCtrls&&this.topRowCtrls.forEach(s),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(s),i},e.prototype.destroy=function(){this.removeAllRowComps(),t.prototype.destroy.call(this)},e.prototype.removeAllRowComps=function(){var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},e.prototype.recycleRows=function(){var t=[];Object(d.iterateObject)(this.rowCtrlsByRowIndex,(function(e,o){null==o.getRowNode().id&&t.push(e)})),this.removeRowCtrls(t);var e={};return Object(d.iterateObject)(this.rowCtrlsByRowIndex,(function(t,o){var n=o.getRowNode();e[n.id]=o})),this.rowCtrlsByRowIndex={},e},e.prototype.removeRowCtrls=function(t){var e=this;t.forEach((function(t){var o=e.rowCtrlsByRowIndex[t];o&&(o.destroyFirstPass(),o.destroySecondPass()),delete e.rowCtrlsByRowIndex[t]}))},e.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},e.prototype.removeRowCompsNotToDraw=function(t){var e={};t.forEach((function(t){return e[t]=!0}));var o=Object.keys(this.rowCtrlsByRowIndex).filter((function(t){return!e[t]}));this.removeRowCtrls(o)},e.prototype.calculateIndexesToDraw=function(t){var e=this,o=Object(h.createArrayOfNumbers)(this.firstRenderedRow,this.lastRenderedRow),n=function(t,n){var r=n.getRowNode().rowIndex;null!=r&&(re.lastRenderedRow)&&e.doNotUnVirtualiseRow(n)&&o.push(r)};return Object(d.iterateObject)(this.rowCtrlsByRowIndex,n),Object(d.iterateObject)(t,n),o.sort((function(t,e){return t-e})),o},e.prototype.redraw=function(t,e,o){var n=this;void 0===e&&(e=!1),void 0===o&&(o=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw(t);this.removeRowCompsNotToDraw(r),this.printLayout&&(e=!1);var i=[];(r.forEach((function(r){var s=n.createOrUpdateRowCtrl(r,t,e,o);Object(p.exists)(s)&&i.push(s)})),t)&&(o&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){n.destroyRowCtrls(t,e),n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(t,e));this.updateAllRowCtrls(),this.checkAngularCompile(),this.gridBodyCtrl.updateRowCount()},e.prototype.dispatchDisplayedRowsChanged=function(){var t={type:a.a.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(t)},e.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.isPinningLeft(),e=this.columnModel.isPinningRight();(this.pinningLeft!==t||e!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=e,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},e.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];Object(d.iterateObject)(this.rowCtrlsByRowIndex,(function(e,o){if(o.isFullWidth()){var n=o.getRowNode().rowIndex;t.push(n.toString())}})),this.refreshFloatingRowComps(),this.removeRowCtrls(t),this.redrawAfterScroll()},e.prototype.refreshFullWidthRows=function(t){var e=[],o=!!t,n=o?{}:void 0;o&&n&&t.forEach((function(t){return n[t.id]=!0})),Object(d.iterateObject)(this.rowCtrlsByRowIndex,(function(t,r){if(r.isFullWidth()){var i=r.getRowNode();if(o&&n){var s=i.level>0&&i.parent?i.parent.id:void 0;if(!n[i.id]&&!n[s])return}if(!r.refreshFullWidth()){var a=r.getRowNode().rowIndex;e.push(a.toString())}}})),this.removeRowCtrls(e),this.redrawAfterScroll()},e.prototype.createOrUpdateRowCtrl=function(t,e,o,n){var r,i=this.rowCtrlsByRowIndex[t];if(i||(r=this.paginationProxy.getRow(t),Object(p.exists)(r)&&Object(p.exists)(e)&&e[r.id]&&r.alreadyRendered&&(i=e[r.id],e[r.id]=null)),!i){if(r||(r=this.paginationProxy.getRow(t)),!Object(p.exists)(r))return;i=this.createRowCon(r,o,n)}return r&&(r.alreadyRendered=!0),this.rowCtrlsByRowIndex[t]=i,i},e.prototype.destroyRowCtrls=function(t,e){var o=this,n=[];Object(d.iterateObject)(t,(function(t,r){r&&(o.cachedRowCtrls&&r.isCacheable()?o.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),e?(o.zombieRowCtrls[r.getInstanceId()]=r,n.push((function(){r.destroySecondPass(),delete o.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),e&&(n.push((function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})),Object(f.executeInAWhile)(n))},e.prototype.checkAngularCompile=function(){var t=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.workOutFirstAndLastRowsToRender=function(){var t,e,o=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)t=this.paginationProxy.getPageFirstRow(),e=this.paginationProxy.getPageLastRow();else{var n=this.gridOptionsWrapper.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),i=!1,s=void 0,u=void 0;do{var c=this.paginationProxy.getPixelOffset(),p=this.paginationProxy.getCurrentPagePixelRange(),d=p.pageFirstPixel,h=p.pageLastPixel,f=this.rowContainerHeightService.getDivStretchOffset(),g=r.getScrollFeature().getVScrollPosition(),y=g.top,v=g.bottom;s=Math.max(y+c-n,d)+f,u=Math.min(v+c+n,h)+f,i=this.ensureAllRowsInRangeHaveHeightsCalculated(s,u)}while(i);var m=this.paginationProxy.getRowIndexAtPixel(s),C=this.paginationProxy.getRowIndexAtPixel(u),O=this.paginationProxy.getPageFirstRow(),w=this.paginationProxy.getPageLastRow();mw&&(C=w),t=m,e=C}else t=0,e=-1;var b=this.gridOptionsWrapper.getDomLayout()===l.a.DOM_LAYOUT_NORMAL,E=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),R=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);b&&!E&&e-t>R&&(e=t+R);var S=t!==this.firstRenderedRow,P=e!==this.lastRenderedRow;if(S||P){this.firstRenderedRow=t,this.lastRenderedRow=e;var A={type:a.a.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(A)}if(this.paginationProxy.isRowsToRender()){var _={type:a.a.EVENT_FIRST_DATA_RENDERED,firstRow:t,lastRow:e,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return o.eventService.dispatchEventOnce(_)}),50)}},e.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,e){var o=this.paginationProxy.ensureRowHeightsValid(t,e,-1,-1);return o&&this.updateContainerHeights(),o},e.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},e.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},e.prototype.doNotUnVirtualiseRow=function(t){var e=t.getRowNode(),o=this.focusService.isRowNodeFocused(e),n=t.isEditing(),r=e.detail;return!!(o||n||r)&&!!this.paginationProxy.isRowPresent(e)},e.prototype.createRowCon=function(t,e,o){var n=this.cachedRowCtrls?this.cachedRowCtrls.getRow(t):null;if(n)return n;var r=this.gridOptionsWrapper.isSuppressAnimationFrame(),s=o&&!r&&!this.printLayout;return new i.a(this.$scope,t,this.beans,e,s,this.printLayout)},e.prototype.getRenderedNodes=function(){var t=this.rowCtrlsByRowIndex;return Object.keys(t).map((function(e){return t[e].getRowNode()}))},e.prototype.getRowByPosition=function(t){var e;switch(t.rowPinned){case l.a.PINNED_TOP:e=this.topRowCtrls[t.rowIndex];break;case l.a.PINNED_BOTTOM:e=this.bottomRowCtrls[t.rowIndex];break;default:e=this.rowCtrlsByRowIndex[t.rowIndex]}return e},e.prototype.getRowNode=function(t){switch(t.rowPinned){case l.a.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case l.a.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},e.prototype.isRangeInRenderedViewport=function(t,e){if(null==t||null==e)return!1;var o=t>this.lastRenderedRow;return!(ethis.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},t.prototype.getRow=function(t){if(null==t||null==t.id)return null;var e=this.entriesMap[t.id];return e?(this.removeFromCache(e),e.setCached(!1),e.getRowNode()!=t?null:e):null},t.prototype.removeFromCache=function(t){var e=t.getRowNode().id;delete this.entriesMap[e],Object(y.removeFromArray)(this.entriesList,t)},t.prototype.getEntries=function(){return this.entriesList},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(3),i=o(0),s=o(13),a=o(107),l=o(79),u=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),c=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return u(e,t),e.prototype.postConstruct=function(){var t=this,e={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setHeightAndMinHeight:function(e){t.getGui().style.height=e,t.getGui().style.minHeight=e}};this.createManagedBean(new a.a).setComp(e,this.getGui(),this.getFocusableElement());var o=function(e){t.createManagedBean(e),t.appendChild(e)};o(new l.a(r.a.PINNED_LEFT)),o(new l.a(null)),o(new l.a(r.a.PINNED_RIGHT))},e.TEMPLATE='',c([i.e],e.prototype,"postConstruct",null),e}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return f}));var n,r=o(10),i=o(6),s=o(0),a=o(9),l=o(12),u=o(2),c=o(34),p=o(46),d=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),h=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.setComp=function(t,e,o){this.comp=t,this.eGui=e,this.createManagedBean(new c.a(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},e.prototype.setupHeaderHeight=function(){var t=this.setHeaderHeight.bind(this);t(),this.addManagedListener(this.gridOptionsWrapper,l.a.PROP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,l.a.PROP_PIVOT_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,l.a.PROP_GROUP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,l.a.PROP_PIVOT_GROUP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,l.a.PROP_FLOATING_FILTERS_HEIGHT,t),this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_CHANGED,t)},e.prototype.setHeaderHeight=function(){var t,e,o,n=this.columnModel,r=this.gridOptionsWrapper,i=0,s=n.getHeaderRowCount();n.isPivotMode()?(e=r.getPivotGroupHeaderHeight(),o=r.getPivotHeaderHeight()):(n.hasFloatingFilters()&&(s++,i=1),e=r.getGroupHeaderHeight(),o=r.getHeaderHeight());var a=s-(1+i);t=i*r.getFloatingFiltersHeight(),t+=a*e;var l=(t+=o)+1+"px";this.comp.setHeightAndMinHeight(l)},e.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)},e.prototype.onTabKeyDown=function(t){var e=this.gridOptionsWrapper.isEnableRtl(),o=t.shiftKey!==e?p.a.LEFT:p.a.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},e.prototype.handleKeyDown=function(t){var e=null;switch(t.keyCode){case r.a.LEFT:e=p.a.LEFT;case r.a.RIGHT:Object(u.exists)(e)||(e=p.a.RIGHT),this.headerNavigationService.navigateHorizontally(e,!1,t);break;case r.a.UP:e=p.a.UP;case r.a.DOWN:Object(u.exists)(e)||(e=p.a.DOWN),this.headerNavigationService.navigateVertically(e,null,t)&&t.preventDefault();break;default:return}},e.prototype.onFocusOut=function(t){var e=t.relatedTarget;!e&&this.eGui.contains(document.activeElement)||this.eGui.contains(e)||this.focusService.clearFocusedHeader()},h([Object(s.a)("headerNavigationService")],e.prototype,"headerNavigationService",void 0),h([Object(s.a)("focusService")],e.prototype,"focusService",void 0),h([Object(s.a)("columnModel")],e.prototype,"columnModel",void 0),h([Object(s.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(0),i=o(1),s=o(7),a=o(78),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return l(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},addOrRemoveBodyCssClass:function(e,o){return Object(i.addOrRemoveCssClass)(t.eFloatingFilterBody,e,o)},addOrRemoveButtonWrapperCssClass:function(e,o){return Object(i.addOrRemoveCssClass)(t.eButtonWrapper,e,o)},setCompDetails:function(e){return t.setCompDetails(e)},getFloatingFilterComp:function(){return t.compPromise},setWidth:function(t){return e.style.width=t},setMenuIcon:function(e){return t.eButtonShowMainFilter.appendChild(e)}};this.ctrl.setComp(o,e,this.eButtonShowMainFilter,this.eFloatingFilterBody)},e.prototype.setCompDetails=function(t){var e=this;this.compPromise=t.newAgStackInstance(),this.compPromise.then((function(t){return e.afterCompCreated(t)}))},e.prototype.afterCompCreated=function(t){var e=this;t&&(this.addDestroyFunc((function(){return e.context.destroyBean(t)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()))},e.TEMPLATE='',u([Object(s.b)("eFloatingFilterBody")],e.prototype,"eFloatingFilterBody",void 0),u([Object(s.b)("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),u([Object(s.b)("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),u([r.e],e.prototype,"postConstruct",null),e}(a.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return y}));var n,r=o(3),i=o(6),s=o(0),a=o(9),l=o(80),u=o(19),c=o(110),p=o(31),d=o(81),h=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),f=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},g=function(){for(var t=0,e=0,o=arguments.length;e=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(e,o){var n=t.call(this)||this;return n.pinned=e,n.eContainer=o,n}return c(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){switch(t.pinned){case l.a.PINNED_LEFT:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.leftRowContainerCtrl.getContainerElement()],[e.bottomLeftRowContainerCtrl.getContainerElement()],[e.topLeftRowContainerCtrl.getContainerElement()]];break;case l.a.PINNED_RIGHT:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.rightRowContainerCtrl.getContainerElement()],[e.bottomRightRowContainerCtrl.getContainerElement()],[e.topRightRowContainerCtrl.getContainerElement()]];break;default:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.centerRowContainerCtrl.getViewportElement()],[e.bottomCenterRowContainerCtrl.getViewportElement()],[e.topCenterRowContainerCtrl.getViewportElement()]]}}))},e.prototype.isInterestedIn=function(t){return t===r.b.HeaderCell||t===r.b.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new s.a(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new a.a(this.pinned)),this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===r.b.ToolPanel},e.prototype.onDragEnter=function(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(t)},e.prototype.onDragLeave=function(t){this.currentDropListener.onDragLeave(t)},e.prototype.onDragging=function(t){this.currentDropListener.onDragging(t)},e.prototype.onDragStop=function(t){this.currentDropListener.onDragStop(t)},p([Object(i.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),p([Object(i.a)("columnModel")],e.prototype,"columnModel",void 0),p([Object(i.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),p([i.e],e.prototype,"postConstruct",null),p([i.e],e.prototype,"init",null),e}(u.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n=o(0),r=o(3),i=o(22),s=o(2),a=o(8),l=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(){function t(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=e,this.centerContainer=!Object(s.exists)(t)}return t.prototype.init=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.getIconName=function(){return this.pinned?i.a.ICON_PINNED:i.a.ICON_MOVE},t.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===i.b.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,n=(e||[]).filter((function(t){return o[t.getId()]}));this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0)},t.prototype.onDragLeave=function(t){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!t.fromNudge){var e=t.dragSource.getDragItem().columns;this.setColumnsVisible(e,!1,"uiColumnDragged")}this.ensureIntervalCleared()},t.prototype.setColumnsVisible=function(t,e,o){if(void 0===o&&(o="api"),t){var n=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnModel.setColumnsVisible(n,e,o)}},t.prototype.setColumnsPinned=function(t,e,o){if(void 0===o&&(o="api"),t){var n=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnModel.setColumnsPinned(n,e,o)}},t.prototype.onDragStop=function(){this.ensureIntervalCleared()},t.prototype.normaliseX=function(t){this.gridOptionsWrapper.isEnableRtl()&&(t=this.eContainer.clientWidth-t);return this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=to-50):(this.needToMoveLeft=to-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(t,e){var o=this;if(void 0===e&&(e=!1),this.lastDraggingEvent=t,!Object(s.missing)(t.hDirection)){var n=this.normaliseX(t.x);e||this.checkCenterForScrolling(n);var r=this.normaliseDirection(t.hDirection),i=t.dragSource.type,a=t.dragSource.getDragItem().columns;a=a.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==o.pinned})),this.attemptMoveColumns(i,a,r,n,e)}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case i.c.Left:return i.c.Right;case i.c.Right:return i.c.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.calculateOldIndex=function(t){var e=this.columnModel.getAllGridColumns(),o=Object(a.sortNumerically)(t.map((function(t){return e.indexOf(t)}))),n=o[0];return Object(a.last)(o)-n!==o.length-1?null:n},t.prototype.attemptMoveColumns=function(t,e,o,n,r){var s=o===i.c.Left,a=o===i.c.Right,l=e.slice();this.columnModel.sortColumnsLikeGridColumns(l);var u=this.calculateValidMoves(l,a,n),c=this.calculateOldIndex(l);if(0!==u.length){var p=u[0],d=null!==c&&!r;if(t==i.b.HeaderCell&&(d=null!==c),d){if(s&&p>=c)return;if(a&&p<=c)return}for(var h=0;h0){for(var h=0;h0){var f=l[c-1];n=u.indexOf(f)+1}else-1===(n=u.indexOf(l[0]))&&(n=0);var g=[n],y=function(t,e){return t-e};if(e){for(var v=n+1,m=i.length-1;v<=m;)g.push(v),v++;g.sort(y)}else{v=n,m=i.length-1;for(var C=i[v];v<=m&&this.isColumnHidden(r,C);)v++,g.push(v),C=i[v];v=n-1;for(;v>=0;)g.push(v),v--;g.sort(y).reverse()}return g},t.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},t.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(i.a.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(i.a.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(i.a.ICON_MOVE))},t.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var e=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=o.scrollHorizontally(-t):this.needToMoveRight&&(e=o.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var n=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));if(n.length>0&&(this.dragAndDropService.setGhostIcon(i.a.ICON_PINNED),this.failedMoveAttempts>7)){var s=this.needToMoveLeft?r.a.PINNED_LEFT:r.a.PINNED_RIGHT;this.setColumnsPinned(n,s,"uiColumnDragged"),this.dragAndDropService.nudge()}}},l([Object(n.a)("columnModel")],t.prototype,"columnModel",void 0),l([Object(n.a)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),l([Object(n.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),l([Object(n.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),l([n.e],t.prototype,"init",null),t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n=o(22),r=o(0),i=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},s=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var o=t.dragItem.columns;o&&o.forEach((function(t){t.isPrimary()&&(t.isAnyFunctionActive()||(t.isAllowValue()?e.columnsToAggregate.push(t):t.isAllowRowGroup()?e.columnsToGroup.push(t):t.isAllowPivot()&&e.columnsToPivot.push(t)))}))}},t.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?n.a.ICON_PINNED:n.a.ICON_MOVE:null},t.prototype.onDragLeave=function(t){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(t){},t.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},i([Object(r.a)("columnModel")],t.prototype,"columnModel",void 0),i([Object(r.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return C}));var n,r=o(49),i=o(10),s=o(0),a=o(21),l=o(5),u=o(114),c=o(16),p=o(17),d=o(56),h=o(1),f=o(23),g=o(34),y=o(82),v=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),m=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},C=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.column=e,n}return v(e,t),e.prototype.setComp=function(e,o,n,r){t.prototype.setGui.call(this,o),this.comp=e,this.eButtonShowMainFilter=n,this.eFloatingFilterBody=r;var i=this.column.getColDef();this.active=!(!i.filter&&!i.filterFramework||!i.floatingFilter),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},e.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var t=Object(f.createIconNoSpan)("filter",this.gridOptionsWrapper,this.column);t&&this.eButtonShowMainFilter.appendChild(t)}},e.prototype.setupFocus=function(){this.createManagedBean(new g.a(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},e.prototype.onTabKeyDown=function(t){if(!(document.activeElement===this.eGui)){var e=this.focusService.findNextFocusableElement(this.eGui,null,t.shiftKey);e&&(t.preventDefault(),e.focus())}},e.prototype.handleKeyDown=function(t){var e=document.activeElement===this.eGui;switch(t.keyCode){case i.a.UP:case i.a.DOWN:e||t.preventDefault();case i.a.LEFT:case i.a.RIGHT:if(e)return;t.stopPropagation();case i.a.ENTER:e&&this.focusService.focusInto(this.eGui)&&t.preventDefault();break;case i.a.ESCAPE:e||this.eGui.focus()}},e.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var e=this.focusService.isKeyboardMode(),o=!!t.relatedTarget&&!Object(h.containsClass)(t.relatedTarget,"ag-floating-filter"),n=!!t.relatedTarget&&Object(h.isElementChildOfClass)(t.relatedTarget,"ag-floating-filter");if(e&&o&&n&&t.target===this.eGui){var r=this.lastFocusEvent,s=!(!r||r.keyCode!==i.a.TAB);if(r&&s){var a=this.beans.focusService.getFocusedHeader(),l=this.beans.columnModel.getDisplayedColAfter(this.column),u=a&&l===a.column,c=!!(e&&r.shiftKey&&u);this.focusService.focusInto(this.eGui,c)}}var p=this.getRowIndex();this.beans.focusService.setFocusedHeader(p,this.column)}},e.prototype.setupHover=function(){var t=this;this.createManagedBean(new y.a([this.column],this.eGui));var e=function(){if(t.gridOptionsWrapper.isColumnHoverHighlight()){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,l.a.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupLeft=function(){var t=new d.a(this.column,this.eGui,this.beans);this.createManagedBean(t)},e.prototype.setupUserComp=function(){if(this.active){var t=this.column.getColDef(),o=this.filterManager.createFilterParams(this.column,t),n=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(t,"filter",o),r=e.getDefaultFloatingFilterType(t);null==r&&(r="agReadOnlyFloatingFilter");var i={api:this.gridApi,column:this.column,filterParams:n,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),showParentFilter:this.showParentFilter.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(t,i,r);s&&this.comp.setCompDetails(s)}},e.getDefaultFloatingFilterType=function(t){if(null==t)return null;var e=null;if("string"==typeof t.filter)e=u.a.getFloatingFilterType(t.filter);else if(t.filterFramework);else if(!0===t.filter){e=p.a.isRegistered(c.a.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}return e},e.prototype.currentParentModel=function(){var t=this.getFilterComponent(!1);return t?t.resolveNow(null,(function(t){return t&&t.getModel()})):null},e.prototype.getFilterComponent=function(t){return void 0===t&&(t=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",t)},e.prototype.onFloatingFilterChanged=function(){console.warn("AG Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},e.prototype.parentFilterInstance=function(t){var e=this,o=this.getFilterComponent();o&&o.then((function(o){var n=e.frameworkComponentWrapper?e.frameworkComponentWrapper.unwrap(o):o;t(n)}))},e.prototype.showParentFilter=function(){var t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,t,"floatingFilter","filterMenuTab",["filterMenuTab"])},e.prototype.setupSyncWithFilter=function(){var t=this;if(this.active){var e=function(e){var o=t.comp.getFloatingFilterComp();if(o){var n=t.currentParentModel();o.then((function(t){return t&&t.onParentModelChanged(n,e)}))}};this.addManagedListener(this.column,a.a.EVENT_FILTER_CHANGED,e),this.filterManager.isFilterActive(this.column)&&e(null)}},e.prototype.setupWidth=function(){var t=this,e=function(){var e=t.column.getActualWidth()+"px";t.comp.setWidth(e)};this.addManagedListener(this.column,a.a.EVENT_WIDTH_CHANGED,e),e()},m([Object(s.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),m([Object(s.a)("filterManager")],e.prototype,"filterManager",void 0),m([Object(s.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),m([Object(s.a)("gridApi")],e.prototype,"gridApi",void 0),m([Object(s.a)("menuFactory")],e.prototype,"menuFactory",void 0),m([Object(s.a)("beans")],e.prototype,"beans",void 0),m([Object(s.d)("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n=function(){function t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return m}));var n,r=o(19),i=o(0),s=o(5),a=o(16),l=o(17),u=o(8),c=o(6),p=o(75),d=o(2),h=o(11),f=o(1),g=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),y=function(){return(y=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allAdvancedFilters=new Map,e.activeAdvancedFilters=[],e.quickFilter=null,e.quickFilterParts=null,e.processingFilterChange=!1,e}var o;return g(e,t),o=e,e.prototype.init=function(){this.addManagedListener(this.eventService,s.a.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},e.prototype.setFilterModel=function(t){var e=this,o=[],n=this.getFilterModel();if(t){var i=Object(p.convertToSet)(Object.keys(t));this.allAdvancedFilters.forEach((function(n,r){var s=t[r];o.push(e.setModelOnFilterWrapper(n.filterPromise,s)),i.delete(r)})),i.forEach((function(n){var r=e.columnModel.getPrimaryColumn(n);if(r)if(r.isFilterAllowed()){var i=e.getOrCreateFilterWrapper(r,"NO_UI");o.push(e.setModelOnFilterWrapper(i.filterPromise,t[n]))}else console.warn("AG-Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+n);else console.warn("AG-Grid: setFilterModel() - no column found for colId: "+n)}))}else this.allAdvancedFilters.forEach((function(t){o.push(e.setModelOnFilterWrapper(t.filterPromise,null))}));r.a.all(o).then((function(){var t=e.getFilterModel(),o=[];e.allAdvancedFilters.forEach((function(e,i){var s=n?n[i]:null,a=t?t[i]:null;r.f.jsonEquals(s,a)||o.push(e.column)})),o.length>0&&e.onFilterChanged({columns:o})}))},e.prototype.setModelOnFilterWrapper=function(t,e){return new r.a((function(o){t.then((function(t){"function"!=typeof t.setModel&&(console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel"),o()),(t.setModel(e)||r.a.resolve()).then((function(){return o()}))}))}))},e.prototype.getFilterModel=function(){var t={};return this.allAdvancedFilters.forEach((function(e,o){var n=e.filterPromise.resolveNow(null,(function(t){return t}));if(null==n)return null;if("function"==typeof n.getModel){var r=n.getModel();Object(d.exists)(r)&&(t[o]=r)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),t},e.prototype.isAdvancedFilterPresent=function(){return this.activeAdvancedFilters.length>0},e.prototype.updateActiveFilters=function(){var t=this;this.activeAdvancedFilters.length=0;var e=function(t){return!!t&&(t.isFilterActive?t.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))};this.allAdvancedFilters.forEach((function(o){if(o.filterPromise.resolveNow(!1,e)){var n=o.filterPromise.resolveNow(null,(function(t){return t}));t.activeAdvancedFilters.push(n)}}))},e.prototype.updateFilterFlagInColumns=function(t,e){this.allAdvancedFilters.forEach((function(o){var n=o.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));o.column.setFilterActive(n,t,e)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isAdvancedFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.doAdvancedFiltersPass=function(t,e){for(var o=t.data,n=0;n=0}))},e.prototype.doesRowPassQuickFilterCache=function(t,e){return t.quickFilterAggregateText||this.aggregateRowForQuickFilter(t),t.quickFilterAggregateText.indexOf(e)>=0},e.prototype.doesRowPassQuickFilter=function(t){var e=this,o=this.gridOptionsWrapper.isCacheQuickFilter();return Object(u.every)(this.quickFilterParts,(function(n){return o?e.doesRowPassQuickFilterCache(t,n):e.doesRowPassQuickFilterNoCache(t,n)}))},e.prototype.doesRowPassFilter=function(t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(t.rowNode))&&(!(this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(t.rowNode))&&!(this.isAdvancedFilterPresent()&&!this.doAdvancedFiltersPass(t.rowNode,t.filterInstanceToSkip)))},e.prototype.getQuickFilterTextForColumn=function(t,e){var o=this.valueService.getValue(t,e,!0),n=t.getColDef();if(n.getQuickFilterText){var r={value:o,node:e,data:e.data,column:t,colDef:n,context:this.gridOptionsWrapper.getContext()};o=n.getQuickFilterText(r)}return Object(d.exists)(o)?o.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(t){var e=this,n=[],r=this.columnModel.getAllColumnsForQuickFilter();Object(u.forEach)(r,(function(o){var r=e.getQuickFilterTextForColumn(o,t);Object(d.exists)(r)&&n.push(r)})),t.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(t){this.allAdvancedFilters.forEach((function(t){t.filterPromise.then((function(t){t.onNewRowsLoaded&&t.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(t),this.updateActiveFilters()},e.prototype.createValueGetter=function(t){var e=this;return function(o){return e.valueService.getValue(t,o,!0)}},e.prototype.getFilterComponent=function(t,e,o){if(void 0===o&&(o=!0),o)return this.getOrCreateFilterWrapper(t,e).filterPromise;var n=this.cachedFilter(t);return n?n.filterPromise:null},e.prototype.isFilterActive=function(t){var e=this.cachedFilter(t);return!!e&&e.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(t,e){var o=this.cachedFilter(t);return o?"NO_UI"!==e&&this.putIntoGui(o,e):(o=this.createFilterWrapper(t,e),this.allAdvancedFilters.set(t.getColId(),o)),o},e.prototype.cachedFilter=function(t){return this.allAdvancedFilters.get(t.getColId())},e.prototype.createFilterInstance=function(t,e){var o,n=this,r=l.a.isRegistered(a.a.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",i=t.getColDef(),u=y(y({},this.createFilterParams(t,i,e)),{filterModifiedCallback:function(){var e={type:s.a.EVENT_FILTER_MODIFIED,api:n.gridApi,columnApi:n.columnApi,column:t,filterInstance:o};n.eventService.dispatchEvent(e)},filterChangedCallback:function(e){return n.onFilterChanged({filterInstance:o,additionalEventAttributes:e,columns:[t]})},doesRowPassOtherFilter:function(t){return n.doesRowPassOtherFilters(o,t)}}),c=this.userComponentFactory.getFilterDetails(i,u,r);if(!c)return null;var p=c.newAgStackInstance();return p&&p.then((function(t){return o=t})),p},e.prototype.createFilterParams=function(t,e,o){void 0===o&&(o=null);var n={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:t,colDef:Object(h.cloneObject)(e),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(t),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}};return o&&(n.$scope=o),n},e.prototype.createFilterWrapper=function(t,e){var o={column:t,filterPromise:null,scope:null,compiledElement:null,guiPromise:r.a.resolve(null)};return o.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,o.filterPromise=this.createFilterInstance(t,o.scope),o.filterPromise&&this.putIntoGui(o,e),o},e.prototype.putIntoGui=function(t,e){var o=this,n=document.createElement("div");n.className="ag-filter",t.guiPromise=new r.a((function(r){t.filterPromise.then((function(i){var a=i.getGui();if(Object(d.exists)(a)||console.warn("getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=Object(f.loadTemplate)(a)),n.appendChild(a),t.scope){var l=o.$compile(n)(t.scope);t.compiledElement=l,window.setTimeout((function(){return t.scope.$apply()}),0)}r(n),o.eventService.dispatchEvent({type:s.a.EVENT_FILTER_OPENED,column:t.column,source:e,eGui:n,api:o.gridApi,columnApi:o.columnApi})}))}))},e.prototype.onNewColumnsLoaded=function(){var t=this,e=!1,o=[];this.allAdvancedFilters.forEach((function(n){!t.columnModel.getPrimaryColumn(n.column)&&(e=!0,o.push(n.column),t.disposeFilterWrapper(n,"filterDestroyed"))})),e&&this.onFilterChanged({columns:o})},e.prototype.destroyFilter=function(t,e){void 0===e&&(e="api");var o=this.allAdvancedFilters.get(t.getColId());o&&(this.disposeFilterWrapper(o,e),this.onFilterChanged({columns:[t]}))},e.prototype.disposeFilterWrapper=function(t,e){var o=this;t.filterPromise.then((function(n){(n.setModel(null)||r.a.resolve()).then((function(){o.getContext().destroyBean(n),t.column.setFilterActive(!1,e),t.scope&&(t.compiledElement&&t.compiledElement.remove(),t.scope.$destroy()),o.allAdvancedFilters.delete(t.column.getColId())}))}))},e.prototype.destroy=function(){var e=this;t.prototype.destroy.call(this),this.allAdvancedFilters.forEach((function(t){return e.disposeFilterWrapper(t,"filterDestroyed")}))},e.QUICK_FILTER_SEPARATOR="\n",v([Object(i.a)("$compile")],e.prototype,"$compile",void 0),v([Object(i.a)("$scope")],e.prototype,"$scope",void 0),v([Object(i.a)("valueService")],e.prototype,"valueService",void 0),v([Object(i.a)("columnModel")],e.prototype,"columnModel",void 0),v([Object(i.a)("rowModel")],e.prototype,"rowModel",void 0),v([Object(i.a)("columnApi")],e.prototype,"columnApi",void 0),v([Object(i.a)("gridApi")],e.prototype,"gridApi",void 0),v([Object(i.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),v([i.e],e.prototype,"init",null),v([i.g],e.prototype,"destroy",null),e=o=v([Object(i.b)("filterManager")],e)}(c.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(0),i=o(5),s=o(6),a=o(11),l=o(2),u=o(15),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialised=!1,e}return c(e,t),e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(t,e,o,n){if(void 0===o&&(o=!1),void 0===n&&(n=!1),this.initialised||this.init(),e){var r,i=t.getColDef(),s=i.field,l=t.getId(),u=e.data,c=e.groupData&&void 0!==e.groupData[l],p=!n&&e.aggData&&void 0!==e.aggData[l];if(o&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,u,t,e):this.gridOptionsWrapper.isTreeData()&&p?r=e.aggData[l]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?r=this.executeValueGetter(i.valueGetter,u,t,e):this.gridOptionsWrapper.isTreeData()&&s&&u?r=Object(a.getValueUsingField)(u,s,t.isFieldContainsDots()):c?r=e.groupData[l]:p?r=e.aggData[l]:i.valueGetter?r=this.executeValueGetter(i.valueGetter,u,t,e):s&&u&&(r=Object(a.getValueUsingField)(u,s,t.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var d=r.substring(1);r=this.executeValueGetter(d,u,t,e)}if(null==r){var h=this.getOpenedGroup(e,t);if(null!=h)return h}return r}},e.prototype.getOpenedGroup=function(t,e){if(this.gridOptionsWrapper.isShowOpenedGroup()&&e.getColDef().showRowGroup)for(var o=e.getColDef().showRowGroup,n=t.parent;null!=n;){if(n.rowGroupColumn&&(!0===o||o===n.rowGroupColumn.getId()))return n.key;n=n.parent}},e.prototype.setValue=function(t,e,o,n){var r=this.columnModel.getPrimaryColumn(e);if(t&&r){Object(l.missing)(t.data)&&(t.data={});var s=r.getColDef(),a=s.field,u=s.newValueHandler,c=s.valueSetter;if(Object(l.missing)(a)&&Object(l.missing)(u)&&Object(l.missing)(c))console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work");else{var p,d={node:t,data:t.data,oldValue:this.getValue(r,t),newValue:o,colDef:r.getColDef(),column:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=o,void 0===(p=u&&Object(l.exists)(u)?u(d):Object(l.exists)(c)?this.expressionService.evaluate(c,d):this.setValueUsingField(t.data,a,o,r.isFieldContainsDots()))&&(p=!0),p){t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(r,t);var h=r.getColDef().onCellValueChanged;"function"==typeof h&&setTimeout((function(){return h(d)}),0);var f={type:i.a.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:t.data,node:t,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:n};this.eventService.dispatchEvent(f)}}}},e.prototype.setValueUsingField=function(t,e,o,n){if(!e)return!1;if(n)for(var r=e.split("."),i=t;r.length>0&&i;){var s=r.shift();0===r.length?i[s]=o:i=i[s]}else t[e]=o;return!0},e.prototype.executeFilterValueGetter=function(t,e,o,n){var r={data:e,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)};return this.expressionService.evaluate(t,r)},e.prototype.executeValueGetter=function(t,e,o,n){var r=o.getId(),i=this.valueCache.getValue(n,r);if(void 0!==i)return i;var s={data:e,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,n)},a=this.expressionService.evaluate(t,s);return this.valueCache.setValue(n,r,a),a},e.prototype.getValueCallback=function(t,e){var o=this.columnModel.getPrimaryColumn(e);return o?this.getValue(o,t):null},e.prototype.getKeyForNode=function(t,e){var o=this.getValue(t,e),n=t.getColDef().keyCreator,r=o;n&&(r=n({value:o,colDef:t.getColDef(),column:t,node:e,data:e.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}));return"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&Object(u.doOnce)((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),r},p([Object(r.a)("expressionService")],e.prototype,"expressionService",void 0),p([Object(r.a)("columnModel")],e.prototype,"columnModel",void 0),p([Object(r.a)("valueCache")],e.prototype,"valueCache",void 0),p([r.e],e.prototype,"init",null),e=p([Object(r.b)("valueService")],e)}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return g}));var n,r=o(0),i=o(28),s=o(14),a=o(1),l=o(13),u=o(7),c=o(53),p=o(30),d=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),h=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},f='',g=function(t){function e(){return t.call(this,f)||this}return d(e,t),e.prototype.init=function(){var t=this,e=function(t,e){var o=t+"px";e.style.minHeight=o,e.style.height=o},o={setRowAnimationCssOnBodyViewport:function(e,o){return t.setRowAnimationCssOnBodyViewport(e,o)},setColumnCount:function(e){return Object(s.setAriaColCount)(t.getGui(),e)},setRowCount:function(e){return Object(s.setAriaRowCount)(t.getGui(),e)},setTopHeight:function(o){return e(o,t.eTop)},setBottomHeight:function(o){return e(o,t.eBottom)},setTopDisplay:function(e){return t.eTop.style.display=e},setBottomDisplay:function(e){return t.eBottom.style.display=e},setColumnMovingCss:function(e,o){return t.addOrRemoveCssClass(c.b,o)},updateLayoutClasses:function(e,o){Object(a.addOrRemoveCssClass)(t.eBodyViewport,i.a.AUTO_HEIGHT,o.autoHeight),Object(a.addOrRemoveCssClass)(t.eBodyViewport,i.a.NORMAL,o.normal),Object(a.addOrRemoveCssClass)(t.eBodyViewport,i.a.PRINT,o.print),t.addOrRemoveCssClass(i.a.AUTO_HEIGHT,o.autoHeight),t.addOrRemoveCssClass(i.a.NORMAL,o.normal),t.addOrRemoveCssClass(i.a.PRINT,o.print)},setAlwaysVerticalScrollClass:function(e,o){return Object(a.addOrRemoveCssClass)(t.eBodyViewport,c.c,o)},registerBodyViewportResizeListener:function(e){var o=t.resizeObserverService.observeResize(t.eBodyViewport,e);t.addDestroyFunc((function(){return o()}))},setPinnedTopBottomOverflowY:function(e){return t.eTop.style.overflowY=t.eBottom.style.overflowY=e},setCellSelectableCss:function(e,o){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(t){return Object(a.addOrRemoveCssClass)(t,c.a,o)}))}};this.ctrl=this.createManagedBean(new c.d),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Object(s.setAriaMultiSelectable)(this.getGui(),!0)},e.prototype.setRowAnimationCssOnBodyViewport=function(t,e){Object(a.addOrRemoveCssClass)(this.eBodyViewport,c.e.ANIMATION_ON,e),Object(a.addOrRemoveCssClass)(this.eBodyViewport,c.e.ANIMATION_OFF,!e)},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},h([Object(r.a)("resizeObserverService")],e.prototype,"resizeObserverService",void 0),h([Object(r.d)("rangeService")],e.prototype,"rangeService",void 0),h([Object(u.b)("eBodyViewport")],e.prototype,"eBodyViewport",void 0),h([Object(u.b)("eTop")],e.prototype,"eTop",void 0),h([Object(u.b)("eBottom")],e.prototype,"eBottom",void 0),h([Object(u.b)("gridHeader")],e.prototype,"headerRootComp",void 0),h([r.e],e.prototype,"init",null),e}(l.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n=function(){function t(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return t.prototype.check=function(t,e){void 0===e&&(e=!1);var o=e||this.shouldSkipVerticalScroll();if(!o||!this.shouldSkipHorizontalScroll()){var n=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=t.clientXn.right-r,this.tickUp=t.clientYn.bottom-r&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},t.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},t.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-t),this.tickRight&&this.setHorizontalPosition(o+t)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return y}));var n=o(12),r=o(3),i=o(0),s=o(83),a=o(176),l=o(16),u=o(47),c=o(17),p=o(11),d=o(2),h=o(25),f=o(15),g=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},y=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},t.prototype.registerSideBarComp=function(t){this.sideBarComp=t},t.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case r.a.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case r.a.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case r.a.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},t.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},t.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},t.prototype.forEachDetailGridInfo=function(t){var e=0;Object(p.iterateObject)(this.detailGridInfoMap,(function(o,n){Object(d.exists)(n)&&(t(n,e),e++)}))},t.prototype.getDataAsCsv=function(t){if(c.a.assertRegistered(l.a.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){c.a.assertRegistered(l.a.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getDataAsExcel=function(t){if(c.a.assertRegistered(l.a.ExcelExportModule,"api.getDataAsExcel")){var e=t&&t.exportMode||"xlsx";return this.excelCreator.getFactoryMode(e)===s.a.MULTI_SHEET?void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`"):this.excelCreator.getDataAsExcel(t)}},t.prototype.exportDataAsExcel=function(t){if(c.a.assertRegistered(l.a.ExcelExportModule,"api.exportDataAsExcel")){var e=t&&t.exportMode||"xlsx";if(this.excelCreator.getFactoryMode(e)===s.a.MULTI_SHEET)return void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");this.excelCreator.exportDataAsExcel(t)}},t.prototype.getSheetDataForExcel=function(t){if(c.a.assertRegistered(l.a.ExcelExportModule,"api.getSheetDataForExcel")){var e=t&&t.exportMode||"xlsx";return this.excelCreator.setFactoryMode(s.a.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(c.a.assertRegistered(l.a.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(c.a.assertRegistered(l.a.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setEnterpriseDatasource=function(t){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},t.prototype.setGridAriaProperty=function(t,e){if(t){var o=this.ctrlsService.getGridBodyCtrl().getGui(),n="aria-"+t;null===e?o.removeAttribute(n):o.setAttribute(n,e)}},t.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+r.a.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+r.a.ROW_MODEL_TYPE_INFINITE+"'")},t.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+r.a.ROW_MODEL_TYPE_VIEWPORT+"'")},t.prototype.setRowData=function(t){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isImmutableData()){var e=this.immutableService.createTransactionForRowData(t);if(!e)return;var o=e[0],n=e[1],r=this.clientSideRowModel.updateRowData(o,n);r&&this.rowRenderer.refreshFullWidthRows(r.update)}else this.selectionService.reset(),this.clientSideRowModel.setRowData(t);else console.warn("cannot call setRowData unless using normal row model")},t.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},t.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},t.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},t.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},t.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},t.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(t)},t.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},t.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},t.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},t.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(t,e)},t.prototype.setAutoGroupColumnDef=function(t,e){void 0===e&&(e="api"),this.gridOptionsWrapper.setProperty("autoGroupColumnDef",t,!0)},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridBodyCon.getScrollFeature().getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridBodyCon.getScrollFeature().getHScrollPosition()},t.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},t.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(t)},t.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},t.prototype.redrawRows=function(t){void 0===t&&(t={});var e=t?t.rowNodes:void 0;this.rowRenderer.redrawRows(e)},t.prototype.refreshView=function(){console.warn("AG Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},t.prototype.refreshRows=function(t){console.warn("since AG Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:t})},t.prototype.rowDataChanged=function(t){console.warn("AG Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},t.prototype.softRefreshView=function(){console.error("AG Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},t.prototype.refreshGroupRows=function(){console.warn("AG Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},t.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},t.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(t){return t.refresh()}))},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isAdvancedFilterPresent=function(){return console.warn("AG Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(t,e){t&&t.setExpanded(e)},t.prototype.onGroupExpandedOrCollapsed=function(t){Object(d.missing)(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),Object(d.exists)(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:u.a.MAP})},t.prototype.refreshInMemoryRowModel=function(t){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},t.prototype.refreshClientSideRowModel=function(t){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=u.a.EVERYTHING,o={group:u.a.EVERYTHING,filter:u.a.FILTER,map:u.a.MAP,aggregate:u.a.AGGREGATE,sort:u.a.SORT,pivot:u.a.PIVOT};if(Object(d.exists)(t)&&(e=o[t]),Object(d.missing)(e))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(o).join(", "));else{var n={step:e,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(n)}},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},t.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},t.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},t.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},t.prototype.getToolPanelInstance=function(t){if(this.sideBarComp){var e=this.sideBarComp.getToolPanelInstance(t);return this.frameworkComponentWrapper?this.frameworkComponentWrapper.unwrap(e):e}console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.addVirtualRowListener=function(t,e,o){"string"!=typeof t&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,e,o)},t.prototype.addRenderedRowListener=function(t,e,o){"virtualRowSelected"===t&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(t,e,o)},t.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},t.prototype.selectIndex=function(t,e,o){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(t,e)},t.prototype.deselectIndex=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},t.prototype.selectNode=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!e})},t.prototype.deselectNode=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},t.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},t.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},t.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},t.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},t.prototype.recomputeAggregates=function(){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:u.a.AGGREGATE})},t.prototype.sizeColumnsToFit=function(){this.gridBodyCon.sizeColumnsToFit()},t.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},t.prototype.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},t.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColIndexVisible=function(t){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},t.prototype.ensureColumnVisible=function(t){this.gridBodyCon.getScrollFeature().ensureColumnVisible(t)},t.prototype.ensureIndexVisible=function(t,e){this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,e)},t.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null),this.gridBodyCon.getScrollFeature().ensureNodeVisible(t,e)},t.prototype.forEachLeafNode=function(t){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},t.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},t.prototype.forEachNodeAfterFilter=function(t){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},t.prototype.forEachNodeAfterFilterAndSort=function(t){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},t.prototype.getFilterApiForColDef=function(t){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterInstance instead"),this.getFilterInstance(t)},t.prototype.getFilterInstance=function(t,e){var o=this,n=this.columnModel.getPrimaryColumn(t);if(n){var r=this.filterManager.getFilterComponent(n,"NO_UI"),i=r&&r.resolveNow(null,(function(t){return t})),s=this.frameworkComponentWrapper?this.frameworkComponentWrapper.unwrap(i):i;return e&&(s?setTimeout(e,0,s):r&&r.then((function(t){var n=o.frameworkComponentWrapper?o.frameworkComponentWrapper.unwrap(t):t;e(n)}))),s}},t.prototype.getFilterApi=function(t){return console.warn("AG Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(t)},t.prototype.destroyFilter=function(t){var e=this.columnModel.getPrimaryColumn(t);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},t.prototype.getStatusPanel=function(t){if(this.statusBarService){var e=this.statusBarService.getStatusPanel(t);return this.frameworkComponentWrapper?this.frameworkComponentWrapper.unwrap(e):e}},t.prototype.getColumnDef=function(t){var e=this.columnModel.getPrimaryColumn(t);return e?e.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged()},t.prototype.setSortModel=function(t,e){void 0===e&&(e="api"),console.warn("AG Grid: as of version 24.0.0, setSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.applyColumnState() instead.");var o=[];t&&t.forEach((function(t,e){o.push({colId:t.colId,sort:t.sort,sortIndex:e})})),this.columnModel.applyColumnState({state:o,defaultState:{sort:null}})},t.prototype.getSortModel=function(){console.warn("AG Grid: as of version 24.0.0, getSortModel() is deprecated, sort information is now part of Column State. Please use columnApi.getColumnState() instead.");var t=this.columnModel.getColumnState().filter((function(t){return null!=t.sort})),e={};t.forEach((function(t){var o=t.colId,n=t.sortIndex;e[o]=n}));var o=t.map((function(t){return{colId:t.colId,sort:t.sort}}));return o.sort((function(t,o){return e[t.colId]-e[o.colId]})),o},t.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},t.prototype.setFocusedCell=function(t,e,o){this.focusService.setFocusedCell(t,e,o,!0)},t.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_SUPPRESS_ROW_DRAG,t)},t.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},t.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},t.prototype.addRowDropZone=function(t){this.gridBodyCon.getRowDragFeature().addRowDropZone(t)},t.prototype.removeRowDropZone=function(t){var e=this.dragAndDropService.findExternalZone(t);e&&this.dragAndDropService.removeDropTarget(e)},t.prototype.getRowDropZoneParams=function(t){return this.gridBodyCon.getRowDragFeature().getRowDropZone(t)},t.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_HEADER_HEIGHT,t)},t.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_DOM_LAYOUT,t)},t.prototype.setEnableCellTextSelection=function(t){this.gridBodyCon.setCellTextSelection(t)},t.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_FILL_HANDLE_DIRECTION,t)},t.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GROUP_HEADER_HEIGHT,t)},t.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_FLOATING_FILTERS_HEIGHT,t)},t.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},t.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},t.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_DOES_EXTERNAL_FILTER_PASS,t)},t.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_NAVIGATE_TO_NEXT_CELL,t)},t.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_TAB_TO_NEXT_CELL,t)},t.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_TAB_TO_NEXT_HEADER,t)},t.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_NAVIGATE_TO_NEXT_HEADER,t)},t.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GROUP_ROW_AGG_NODES,t)},t.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},t.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_CHILD_COUNT,t)},t.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_PROCESS_ROW_POST_CREATE,t)},t.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_ROW_NODE_ID,t)},t.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_ROW_CLASS,t)},t.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_IS_FULL_WIDTH_CELL,t)},t.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_IS_ROW_SELECTABLE,t)},t.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_IS_ROW_MASTER,t)},t.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_POST_SORT,t)},t.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_DOCUMENT,t)},t.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_CONTEXT_MENU_ITEMS,t)},t.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_MAIN_MENU_ITEMS,t)},t.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},t.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_SEND_TO_CLIPBOARD,t)},t.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},t.prototype.setProcessSecondaryColDef=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_PROCESS_TO_SECONDARY_COLDEF,t)},t.prototype.setProcessSecondaryColGroupDef=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,t)},t.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_POST_PROCESS_POPUP,t)},t.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},t.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_CHART_TOOLBAR_ITEMS,t)},t.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_PAGINATION_NUMBER_FORMATTER,t)},t.prototype.setGetServerSideStoreParams=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_SERVER_SIDE_STORE_PARAMS,t)},t.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},t.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},t.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_IS_SERVER_SIDE_GROUP,t)},t.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},t.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_ROW_STYLE,t)},t.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GET_ROW_HEIGHT,t)},t.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_PIVOT_HEADER_HEIGHT,t)},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("AG Grid: sideBar is not loaded")},t.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("AG Grid: sideBar is not loaded")},t.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},t.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",a.a.parse(t))},t.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.doLayout=function(){Object(f.doOnce)((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},t.prototype.resetRowHeights=function(){Object(d.exists)(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},t.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},t.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(t,e){var o=this.columnModel.getPrimaryColumn(t);return Object(d.missing)(o)&&(o=this.columnModel.getGridColumn(t)),Object(d.missing)(o)?null:this.valueService.getValue(o,e)},t.prototype.addEventListener=function(t,e){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,e,o)},t.prototype.addGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,e)},t.prototype.removeEventListener=function(t,e){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,e,o)},t.prototype.removeGlobalListener=function(t){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,e)},t.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(p.removeAllReferences.bind(window,this,"Grid API"),100)},t.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},t.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},t.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},t.prototype.camelCaseToHumanReadable=function(t){return Object(h.camelCaseToHumanText)(t)},t.prototype.addRangeSelection=function(t){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},t.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},t.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(c.a.assertRegistered(l.a.RangeSelectionModule,"api.getChartModels")&&c.a.assertRegistered(l.a.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.getChartRef=function(t){if(c.a.assertRegistered(l.a.RangeSelectionModule,"api.getChartRef")&&c.a.assertRegistered(l.a.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},t.prototype.getChartImageDataURL=function(t){if(c.a.assertRegistered(l.a.RangeSelectionModule,"api.getChartImageDataURL")&&c.a.assertRegistered(l.a.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},t.prototype.createRangeChart=function(t){if(c.a.assertRegistered(l.a.RangeSelectionModule,"api.createRangeChart")&&c.a.assertRegistered(l.a.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createCrossFilterChart=function(t){if(c.a.assertRegistered(l.a.RangeSelectionModule,"api.createCrossFilterChart")&&c.a.assertRegistered(l.a.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},t.prototype.restoreChart=function(t,e){if(c.a.assertRegistered(l.a.RangeSelectionModule,"api.restoreChart")&&c.a.assertRegistered(l.a.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,e)},t.prototype.createPivotChart=function(t){if(c.a.assertRegistered(l.a.RangeSelectionModule,"api.createPivotChart")&&c.a.assertRegistered(l.a.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copySelectedRowsToClipboard=function(t,e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t,e)},t.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},t.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(t,e){var o=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(o,e,"columnMenu")},t.prototype.showColumnMenuAfterMouseClick=function(t,e){var o=this.columnModel.getGridColumn(t);o||(o=this.columnModel.getPrimaryColumn(t)),o?this.menuFactory.showMenuAfterMouseEvent(o,e):console.error("AG Grid: column '"+t+"' not found")},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(t){this.gridOptionsWrapper.setProperty(n.a.PROP_POPUP_PARENT,t)},t.prototype.tabToNextCell=function(){return this.navigationService.tabToNextCell(!1)},t.prototype.tabToPreviousCell=function(){return this.navigationService.tabToNextCell(!0)},t.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t)},t.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t)},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},t.prototype.startEditingCell=function(t){var e=this.columnModel.getGridColumn(t.colKey);if(e){var o={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:e};null==t.rowPinned&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex);var n=this.navigationService.getCellByPosition(o);n&&n.startRowOrCellEdit(t.keyPress,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},t.prototype.addAggFunc=function(t,e){this.aggFuncService&&this.aggFuncService.addAggFunc(t,e)},t.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyServerSideTransactionAsync=function(t,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},t.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var e=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},t.prototype.updateRowData=function(t){return Object(f.doOnce)((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(t)},t.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.batchUpdateRowData=function(t,e){Object(f.doOnce)((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,e)},t.prototype.insertItemsAtIndex=function(t,e,o){void 0===o&&(o=!1),console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:t,update:null,remove:null})},t.prototype.removeItems=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=t.map((function(t){return t.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},t.prototype.addItems=function(t,e){void 0===e&&(e=!1),console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},t.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},t.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeEnterpriseCache=function(t){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(t)},t.prototype.purgeServerSideCache=function(t){void 0===t&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead."),this.refreshServerSideStore({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},t.prototype.refreshServerSideStore=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},t.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},t.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},t.prototype.setVirtualRowCount=function(t,e){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,e)},t.prototype.setInfiniteRowCount=function(t,e){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,e)},t.prototype.setRowCount=function(t,e){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,e):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},t.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},t.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("paginationPageSize",t)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},g([Object(i.d)("immutableService")],t.prototype,"immutableService",void 0),g([Object(i.d)("csvCreator")],t.prototype,"csvCreator",void 0),g([Object(i.d)("excelCreator")],t.prototype,"excelCreator",void 0),g([Object(i.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),g([Object(i.a)("navigationService")],t.prototype,"navigationService",void 0),g([Object(i.a)("filterManager")],t.prototype,"filterManager",void 0),g([Object(i.a)("columnModel")],t.prototype,"columnModel",void 0),g([Object(i.a)("selectionService")],t.prototype,"selectionService",void 0),g([Object(i.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),g([Object(i.a)("valueService")],t.prototype,"valueService",void 0),g([Object(i.a)("alignedGridsService")],t.prototype,"alignedGridsService",void 0),g([Object(i.a)("eventService")],t.prototype,"eventService",void 0),g([Object(i.a)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),g([Object(i.a)("context")],t.prototype,"context",void 0),g([Object(i.a)("rowModel")],t.prototype,"rowModel",void 0),g([Object(i.a)("sortController")],t.prototype,"sortController",void 0),g([Object(i.a)("paginationProxy")],t.prototype,"paginationProxy",void 0),g([Object(i.a)("focusService")],t.prototype,"focusService",void 0),g([Object(i.a)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),g([Object(i.d)("rangeService")],t.prototype,"rangeService",void 0),g([Object(i.d)("clipboardService")],t.prototype,"clipboardService",void 0),g([Object(i.d)("aggFuncService")],t.prototype,"aggFuncService",void 0),g([Object(i.a)("menuFactory")],t.prototype,"menuFactory",void 0),g([Object(i.d)("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),g([Object(i.a)("valueCache")],t.prototype,"valueCache",void 0),g([Object(i.a)("animationFrameService")],t.prototype,"animationFrameService",void 0),g([Object(i.d)("statusBarService")],t.prototype,"statusBarService",void 0),g([Object(i.d)("chartService")],t.prototype,"chartService",void 0),g([Object(i.d)("undoRedoService")],t.prototype,"undoRedoService",void 0),g([Object(i.d)("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),g([Object(i.d)("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),g([Object(i.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),g([Object(i.d)("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),g([i.e],t.prototype,"init",null),g([i.g],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),t=g([Object(i.b)("gridApi")],t)}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(0),i=o(6),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t,e){return function(o,n){e(o,n,t)}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return s(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},e.prototype.evaluate=function(t,e){if("function"==typeof t)return t(e);if("string"==typeof t){var o=t;return this.evaluateExpression(o,e)}console.error("AG Grid: value should be either a string or a function",t)},e.prototype.evaluateExpression=function(t,e){try{return this.createExpressionFunction(t)(e.value,e.context,e.oldValue,e.newValue,e.value,e.node,e.data,e.colDef,e.rowIndex,e.api,e.columnApi,e.getValue,e.column,e.columnGroup)}catch(o){return console.log("Processing of the expression failed"),console.log("Expression = "+t),console.log("Params =",e),console.log("Exception = "+o),null}},e.prototype.createExpressionFunction=function(t){if(this.expressionToFunctionCache[t])return this.expressionToFunctionCache[t];var e=this.createFunctionBody(t),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",e);return this.expressionToFunctionCache[t]=o,o},e.prototype.createFunctionBody=function(t){return t.indexOf("return")>=0?t:"return "+t+";"},a([l(0,Object(r.h)("loggerFactory"))],e.prototype,"setBeans",null),e=a([Object(r.b)("expressionService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(6),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return s(e,t),e.prototype.getTemplate=function(t,e){var o=this.templateCache[t];if(o)return o;var n=this.waitingCallbacks[t],r=this;if(!n){n=[],this.waitingCallbacks[t]=n;var i=new XMLHttpRequest;i.onload=function(){r.handleHttpResult(this,t)},i.open("GET",t),i.send()}return e&&n.push(e),null},e.prototype.handleHttpResult=function(t,e){if(200===t.status&&null!==t.response){this.templateCache[e]=t.response||t.responseText;for(var o=this.waitingCallbacks[e],n=0;n=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal"}(r||(r={}));var v=0,m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.popupList=[],e}return g(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridCtrl=e.gridCtrl,t.addManagedListener(t.gridCtrl,s.a.EVENT_KEYBOARD_FOCUS,(function(){Object(u.forEach)(t.popupList,(function(t){return Object(l.addCssClass)(t.element,d.a.AG_KEYBOARD_FOCUS)}))})),t.addManagedListener(t.gridCtrl,s.a.EVENT_MOUSE_FOCUS,(function(){Object(u.forEach)(t.popupList,(function(t){return Object(l.removeCssClass)(t.element,d.a.AG_KEYBOARD_FOCUS)}))}))}))},e.prototype.getPopupParent=function(){var t=this.gridOptionsWrapper.getPopupParent();return t||this.gridCtrl.getGui()},e.prototype.positionPopupForMenu=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect(),n=this.keepXYWithinBounds(t.ePopup,e.top-o.top,r.vertical),i=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=i+"px";var s,a=o.right-o.left-i;function l(){return e.right-o.left-2}function u(){return e.left-o.left-i}this.gridOptionsWrapper.isEnableRtl()?((s=u())<0&&(s=l()),s>a&&(s=0)):((s=l())>a&&(s=u()),s<0&&(s=0)),t.ePopup.style.left=s+"px",t.ePopup.style.top=n+"px"},e.prototype.positionPopupUnderMouseEvent=function(t){var e=t.ePopup,o=t.nudgeX,n=t.nudgeY,r=this.calculatePointerAlign(t.mouseEvent),i=r.x,s=r.y;this.positionPopup({ePopup:e,x:i,y:s,nudgeX:o,nudgeY:n,keepWithinBounds:!0}),this.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)},e.prototype.calculatePointerAlign=function(t){var e=this.getParentRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},e.prototype.positionPopupUnderComponent=function(t){var e=t.eventSource.getBoundingClientRect(),o=t.alignSide||"left",n=this.getParentRect(),r=e.left-n.left;"right"===o&&(r-=t.ePopup.offsetWidth-e.width),this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:r,y:e.top-n.top+e.height,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},e.prototype.positionPopupOverComponent=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect();this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:e.left-o.left,y:e.top-o.top,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},e.prototype.callPostProcessPopup=function(t,e,o,n,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:e,type:t,eventSource:o,mouseEvent:n})},e.prototype.positionPopup=function(t){var e=t.ePopup,o=t.keepWithinBounds,n=t.nudgeX,i=t.nudgeY,s=t.x,a=t.y;n&&(s+=n),i&&(a+=i),o&&(s=this.keepXYWithinBounds(e,s,r.horizontal),a=this.keepXYWithinBounds(e,a,r.vertical)),e.style.left=s+"px",e.style.top=a+"px"},e.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},e.prototype.getPopupList=function(){return this.popupList},e.prototype.getParentRect=function(){var t=this.gridOptionsWrapper.getDocument(),e=this.getPopupParent();e===t.body&&(e=t.documentElement);var o=getComputedStyle(e),n=e.getBoundingClientRect();return{top:n.top+parseFloat(o.borderTopWidth)||0,left:n.left+parseFloat(o.borderLeftWidth)||0,right:n.right+parseFloat(o.borderRightWidth)||0,bottom:n.bottom+parseFloat(o.borderBottomWidth)||0}},e.prototype.keepXYWithinBounds=function(t,e,o){var n=o===r.vertical,i=n?"clientHeight":"clientWidth",s=n?"top":"left",a=n?"offsetHeight":"offsetWidth",u=n?"scrollTop":"scrollLeft",c=this.gridOptionsWrapper.getDocument(),p=c.documentElement,d=this.getPopupParent(),h=d.getBoundingClientRect(),f=c.documentElement.getBoundingClientRect(),g=d===c.body,y=t[a],v=n?l.getAbsoluteHeight:l.getAbsoluteWidth,m=g?v(p)+p[u]:d[i];g&&(m-=Math.abs(f[s]-h[s]));var C=m-y;return Math.min(Math.max(e,0),Math.abs(C))},e.prototype.keepPopupPositionedRelativeTo=function(t){var e=this,o=this.getPopupParent(),n=o.getBoundingClientRect(),i=t.element.getBoundingClientRect(),s=n.top-i.top,a=n.left-i.left,l=s,u=a,c=t.ePopup.style.top,p=parseInt(c.substring(0,c.length-1),10),d=t.ePopup.style.left,f=parseInt(d.substring(0,d.length-1),10);return new h.a((function(n){e.getFrameworkOverrides().setInterval((function(){var n=o.getBoundingClientRect(),i=t.element.getBoundingClientRect();if(0==i.top&&0==i.left&&0==i.height&&0==i.width)t.hidePopup();else{var c=n.top-i.top;if(c!=l){var d=e.keepXYWithinBounds(t.ePopup,p+s-c,r.vertical);t.ePopup.style.top=d+"px"}l=c;var h=n.left-i.left;if(h!=u){var g=e.keepXYWithinBounds(t.ePopup,f+a-h,r.horizontal);t.ePopup.style.left=g+"px"}u=h}}),200).then((function(t){n((function(){null!=t&&window.clearInterval(t)}))}))}))},e.prototype.addPopup=function(t){var e=this,o=t.modal,n=t.eChild,r=t.closeOnEsc,i=t.closedCallback,a=t.click,c=t.alwaysOnTop,g=t.afterGuiAttached,y=t.positionCallback,m=t.anchorToElement,C=t.ariaLabel,O=this.gridOptionsWrapper.getDocument(),w=new h.a((function(t){return t((function(){}))}));if(!O)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:w};var b=Object(u.findIndex)(this.popupList,(function(t){return t.element===n}));if(-1!==b){var E=this.popupList[b];return{hideFunc:E.hideFunc,stopAnchoringPromise:E.stopAnchoringPromise}}var R=this.getPopupParent();null==n.style.top&&(n.style.top="0px"),null==n.style.left&&(n.style.left="0px");var S=document.createElement("div"),P=this.environment.getTheme().theme;P&&Object(l.addCssClass)(S,P),Object(l.addCssClass)(S,"ag-popup"),Object(l.addCssClass)(n,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),Object(l.addCssClass)(n,"ag-popup-child"),Object(f.setAriaRole)(n,"dialog"),Object(f.setAriaLabel)(n,C),this.focusService.isKeyboardMode()&&Object(l.addCssClass)(n,d.a.AG_KEYBOARD_FOCUS),S.appendChild(n),R.appendChild(S),c?this.setAlwaysOnTop(S,!0):this.bringPopupToFront(S);var A=!1,_=function(t){S.contains(document.activeElement)&&((t.which||t.keyCode)===p.a.ESCAPE&&N({keyboardEvent:t}))},T=function(t){return N({mouseEvent:t})},D=function(t){return N({touchEvent:t})},N=function(t){void 0===t&&(t={});var o=t.mouseEvent,r=t.touchEvent,l=t.keyboardEvent;e.isEventFromCurrentPopup({mouseEvent:o,touchEvent:r},n)||e.isEventSameChainAsOriginalEvent({originalMouseEvent:a,mouseEvent:o,touchEvent:r})||A||(A=!0,R.removeChild(S),O.removeEventListener("keydown",_),O.removeEventListener("mousedown",T),O.removeEventListener("touchstart",D),O.removeEventListener("contextmenu",T),e.eventService.removeEventListener(s.a.EVENT_DRAG_STARTED,T),i&&i(o||r||l),e.popupList=e.popupList.filter((function(t){return t.element!==n})),w&&w.then((function(t){return t&&t()})))};return g&&g({hidePopup:N}),window.setTimeout((function(){r&&O.addEventListener("keydown",_),o&&(O.addEventListener("mousedown",T),e.eventService.addEventListener(s.a.EVENT_DRAG_STARTED,T),O.addEventListener("touchstart",D),O.addEventListener("contextmenu",T))}),0),y&&y(),m&&(w=this.keepPopupPositionedRelativeTo({element:m,ePopup:n,hidePopup:N})),this.popupList.push({element:n,wrapper:S,hideFunc:N,stopAnchoringPromise:w,instanceId:v++,isAnchored:!!m}),{hideFunc:N,stopAnchoringPromise:w}},e.prototype.hasAnchoredPopup=function(){return Object(u.some)(this.popupList,(function(t){return t.isAnchored}))},e.prototype.isEventFromCurrentPopup=function(t,e){var o=t.mouseEvent,n=t.touchEvent,r=o||n;if(!r)return!1;var i=Object(u.findIndex)(this.popupList,(function(t){return t.element===e}));if(-1===i)return!1;for(var s=i;s=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCon=e.centerRowContainerCtrl}))},e.prototype.getPreferredWidthForColumn=function(t,e){var o=this.getHeaderCellForColumn(t);if(!o)return-1;var n=document.createElement("span");n.style.position="fixed";var r=this.centerRowContainerCon.getContainerElement();r.appendChild(n),this.putRowCellsIntoDummyContainer(t,n),e||this.cloneItemIntoDummy(o,n);var i=n.offsetWidth;return r.removeChild(n),i+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(t){var e=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(o){var n=o.getHtmlElementForColumnHeader(t);null!=n&&(e=n)})),e},e.prototype.putRowCellsIntoDummyContainer=function(t,e){var o=this;this.rowRenderer.getAllCellsForColumn(t).forEach((function(t){return o.cloneItemIntoDummy(t,e)}))},e.prototype.cloneItemIntoDummy=function(t,e){var o=t.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var n=document.createElement("div");Object(s.containsClass)(o,"ag-header-cell")?(Object(s.addCssClass)(n,"ag-header"),Object(s.addCssClass)(n,"ag-header-row"),n.style.position="static"):Object(s.addCssClass)(n,"ag-row");for(var r=t.parentElement;r;){if(r.classList.contains("ag-header-row")||r.classList.contains("ag-row")){for(var i=0;i=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.addResizeBar=function(t){var e=this,o={dragStartPixels:t.dragStartPixels||0,eElement:t.eResizeBar,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this,t),onDragging:this.onDragging.bind(this,t)};this.dragService.addDragSource(o,!0);return function(){return e.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(t,e){this.dragStartX=e.clientX,this.setResizeIcons();var o=e instanceof MouseEvent&&!0===e.shiftKey;t.onResizeStart(o)},e.prototype.setResizeIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!0),t.disableUserSelect(!0)},e.prototype.onDragStop=function(t,e){t.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!1),t.disableUserSelect(!1)},e.prototype.onDragging=function(t,e){this.resizeAmount=e.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},a([Object(r.a)("dragService")],e.prototype,"dragService",void 0),a([Object(r.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),e=a([Object(r.b)("horizontalResizeService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(0),i=o(7),s=o(1),a=o(50),l=o(126),u=o(28),c=o(69),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(e){var o=t.call(this,void 0)||this;return o.eGridDiv=e,o}return p(e,t),e.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var e={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(e){return Object(s.addCssClass)(t.getGui(),e)},addOrRemoveKeyboardFocusClass:function(e){return t.addOrRemoveCssClass(a.a.AG_KEYBOARD_FOCUS,e)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(e){t.getGui().style.userSelect=null!=e?e:"",t.getGui().style.webkitUserSelect=null!=e?e:""},setCursor:function(e){t.getGui().style.cursor=null!=e?e:""}};this.ctrl=this.createManagedBean(new l.a);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(e){return t.ctrl.focusInnerElement(e)}})},e.prototype.insertGridIntoDom=function(){var t=this,e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc((function(){t.eGridDiv.removeChild(e),t.logger.log("Grid removed from DOM")}))},e.prototype.updateLayoutClasses=function(t,e){Object(s.addOrRemoveCssClass)(this.eRootWrapperBody,u.a.AUTO_HEIGHT,e.autoHeight),Object(s.addOrRemoveCssClass)(this.eRootWrapperBody,u.a.NORMAL,e.normal),Object(s.addOrRemoveCssClass)(this.eRootWrapperBody,u.a.PRINT,e.print),this.addOrRemoveCssClass(u.a.AUTO_HEIGHT,e.autoHeight),this.addOrRemoveCssClass(u.a.NORMAL,e.normal),this.addOrRemoveCssClass(u.a.PRINT,e.print)},e.prototype.createTemplate=function(){return'\n '+(this.ctrl.showDropZones()?"
":"")+'\n
\n
\n '+(this.ctrl.showSideBar()?'
':"")+"\n
\n "+(this.ctrl.showStatusBar()?'
':"")+"\n
\n "+(this.ctrl.showWatermark()?"
":"")+"\n
"},e.prototype.getFocusableElement=function(){return this.eRootWrapperBody},e.prototype.getFocusableContainers=function(){var t=[this.gridBodyComp.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return Object(s.isVisible)(t)}))},d([Object(r.a)("loggerFactory")],e.prototype,"loggerFactory",void 0),d([Object(i.b)("gridBody")],e.prototype,"gridBodyComp",void 0),d([Object(i.b)("sideBar")],e.prototype,"sideBarComp",void 0),d([Object(i.b)("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0),d([r.e],e.prototype,"postConstruct",null),e}(c.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(0),i=o(6),s=o(17),a=o(16),l=o(28),u=o(9),c=o(8),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.postConstruct=function(){this.ctrlsService.registerGridCtrl(this)},e.prototype.setComp=function(t,e,o){var n=this;this.view=t,this.eGridHostDiv=e,this.eGui=o,this.mouseEventService.stampTopLevelGridCompWithGridInstance(e),this.createManagedBean(new l.b(this.view)),this.addRtlSupport(),this.addManagedListener(this,u.a.EVENT_KEYBOARD_FOCUS,(function(){n.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,u.a.EVENT_MOUSE_FOCUS,(function(){n.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}))},e.prototype.showDropZones=function(){return s.a.isRegistered(a.a.RowGroupingModule)},e.prototype.showSideBar=function(){return s.a.isRegistered(a.a.SideBarModule)},e.prototype.showStatusBar=function(){return s.a.isRegistered(a.a.StatusBarModule)},e.prototype.showWatermark=function(){return s.a.isRegistered(a.a.EnterpriseCoreModule)},e.prototype.onGridSizeChanged=function(){var t={type:u.a.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(t)},e.prototype.addRtlSupport=function(){var t=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(t)},e.prototype.destroyGridUi=function(){this.view.destroyGridUi()},e.prototype.getGui=function(){return this.eGui},e.prototype.setResizeCursor=function(t){this.view.setCursor(t?"ew-resize":null)},e.prototype.disableUserSelect=function(t){this.view.setUserSelect(t?"none":null)},e.prototype.focusNextInnerContainer=function(t){var e=this.view.getFocusableContainers(),o=Object(c.findIndex)(e,(function(t){return t.contains(document.activeElement)}))+(t?-1:1);return!(o<0||o>=e.length)&&(0===o?this.focusGridHeader():this.focusService.focusInto(e[o]))},e.prototype.focusInnerElement=function(t){var e=this.view.getFocusableContainers();if(t){if(e.length>1)return this.focusService.focusInto(Object(c.last)(e),!0);var o=Object(c.last)(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(o,!0))return!0}return this.focusGridHeader()},e.prototype.focusGridHeader=function(){var t=this.columnModel.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnModel.getColumnGroupAtLevel(t,0)),this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:t}}),!0)},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.view.forceFocusOutOfContainer(t)},d([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),d([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),d([Object(r.a)("focusService")],e.prototype,"focusService",void 0),d([Object(r.a)("resizeObserverService")],e.prototype,"resizeObserverService",void 0),d([Object(r.a)("columnModel")],e.prototype,"columnModel",void 0),d([Object(r.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),d([Object(r.a)("mouseEventService")],e.prototype,"mouseEventService",void 0),d([r.e],e.prototype,"postConstruct",null),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(6),i=o(0),s=o(34),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(t){function e(e){var o=t.call(this)||this;o.skipTabGuardFocus=!1;var n=e.comp,r=e.eTopGuard,i=e.eBottomGuard,s=e.focusInnerElement,a=e.onFocusIn,l=e.onFocusOut,u=e.shouldStopEventPropagation,c=e.onTabKeyDown,p=e.handleKeyDown,d=e.eFocusableElement;return o.comp=n,o.eTopGuard=r,o.eBottomGuard=i,o.providedFocusInnerElement=s,o.eFocusableElement=d,o.providedFocusIn=a,o.providedFocusOut=l,o.providedShouldStopEventPropagation=u,o.providedOnTabKeyDown=c,o.providedHandleKeyDown=p,o}return a(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new s.a(this.eFocusableElement,{shouldStopEventPropagation:function(){return t.shouldStopEventPropagation()},onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)},onFocusIn:function(e){return t.onFocusIn(e)},onFocusOut:function(e){return t.onFocusOut(e)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(e){return t.addManagedListener(e,"focus",t.onFocus.bind(t))}))},e.prototype.handleKeyDown=function(t){this.providedHandleKeyDown&&this.providedHandleKeyDown(t)},e.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},e.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},e.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},e.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},e.prototype.onFocus=function(t){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var e=t.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(e):this.focusInnerElement(e)}},e.prototype.onFocusIn=function(t){this.providedFocusIn&&this.providedFocusIn(t)||this.deactivateTabGuards()},e.prototype.onFocusOut=function(t){this.providedFocusOut&&this.providedFocusOut(t)||this.eFocusableElement.contains(t.relatedTarget)||this.activateTabGuards()},e.prototype.onTabKeyDown=function(t){var e=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(t);else if(!t.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var n=this.getNextFocusableElement(t.shiftKey);o&&setTimeout((function(){return e.activateTabGuards()}),0),n&&(n.focus(),t.preventDefault())}},e.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},e.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var e=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(e.splice(0,1),e.splice(e.length-1,1)),e.length&&e[t?e.length-1:0].focus()},e.prototype.getNextFocusableElement=function(t){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,t)},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1);var e=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,e.focus()},l([Object(i.a)("focusService")],e.prototype,"focusService",void 0),l([i.e],e.prototype,"postConstruct",null),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(0),i=o(5),s=o(6),a=o(2),l=o(8),u=o(74),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return c(e,t),e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(t){var e=t.dragSource.eElement,o=t.mouseDownListener;if(e.removeEventListener("mousedown",o),t.touchEnabled){var n=t.touchStartListener;e.removeEventListener("touchstart",n,{passive:!0})}},e.prototype.removeDragSource=function(t){var e=Object(a.find)(this.dragSources,(function(e){return e.dragSource===t}));e&&(this.removeListener(e),Object(l.removeFromArray)(this.dragSources,e))},e.prototype.isDragging=function(){return this.dragging},e.prototype.addDragSource=function(t,e){var o=this;void 0===e&&(e=!1);var n=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",n);var r=null,i=this.gridOptionsWrapper.isSuppressTouch();e&&!i&&(r=function(e){e.preventDefault(),o.onTouchStart(t,e)},t.eElement.addEventListener("touchstart",r,{passive:!0})),this.dragSources.push({dragSource:t,mouseDownListener:n,touchStartListener:r,touchEnabled:e})},e.prototype.onTouchStart=function(t,e){var o=this;this.currentDragParams=t,this.dragging=!1;var n=e.touches[0];this.touchLastTime=n,this.touchStart=n;var r=function(e){return o.onTouchUp(e,t.eElement)},i=t.eElement,s=[{target:document,type:"touchmove",listener:function(t){t.cancelable&&t.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(e){return o.onTouchMove(e,t.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener:r,options:{passive:!0}},{target:i,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===t.dragStartPixels&&this.onCommonMove(n,this.touchStart,t.eElement)},e.prototype.onMouseDown=function(t,e){var o=this,n=e;if(!(t.skipMouseEvent&&t.skipMouseEvent(e)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,0!==e.button))){this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=e;var r=this.gridOptionsWrapper.getDocument(),i=[{target:r,type:"mousemove",listener:function(e){return o.onMouseMove(e,t.eElement)}},{target:r,type:"mouseup",listener:function(e){return o.onMouseUp(e,t.eElement)}},{target:r,type:"contextmenu",listener:function(t){return t.preventDefault()}}];this.addTemporaryEvents(i),0===t.dragStartPixels&&this.onMouseMove(e,t.eElement)}},e.prototype.addTemporaryEvents=function(t){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,r=t.options;e.addEventListener(o,n,r)})),this.dragEndFunctions.push((function(){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,r=t.options;e.removeEventListener(o,n,r)}))}))},e.prototype.isEventNearStartEvent=function(t,e){var o=this.currentDragParams.dragStartPixels,n=Object(a.exists)(o)?o:4;return Object(u.areEventsNear)(t,e,n)},e.prototype.getFirstActiveTouch=function(t){for(var e=0;e=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var o;return l(e,t),o=e,e.prototype.progressSort=function(t,e,o){void 0===o&&(o="api");var n=this.getNextSortDirection(t);this.setSortForColumn(t,n,e,o)},e.prototype.setSortForColumn=function(t,e,o,n){void 0===n&&(n="api"),e!==s.a.SORT_ASC&&e!==s.a.SORT_DESC&&(e=null),t.setSort(e,n),o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(t,n),this.updateSortIndex(t),this.dispatchSortChangedEvents()},e.prototype.updateSortIndex=function(t){var e=this.getColumnsWithSortingOrdered(),o=0;e.forEach((function(e){e!==t&&(e.setSortIndex(o),o++)})),t.getSort()&&t.setSortIndex(o),this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return null==t.getSort()})).forEach((function(t){return t.setSortIndex()}))},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.isSortActive=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t&&t.length>0},e.prototype.dispatchSortChangedEvents=function(){var t={type:a.a.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.clearSortBarThisColumn=function(t,e){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==t&&o.setSort(void 0,e)}))},e.prototype.getNextSortDirection=function(t){var e;if(e=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():o.DEFAULT_SORTING_ORDER,!Array.isArray(e)||e.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+e),null;var n,r=e.indexOf(t.getSort()),i=r<0,s=r==e.length-1;return n=i||s?e[0]:e[r+1],o.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("ag-grid: invalid sort type "+n),null):n},e.prototype.getColumnsWithSortingOrdered=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),e=t.filter((function(t){return!!t.getSort()})),o={};return t.forEach((function(t,e){return o[t.getId()]=e})),e.sort((function(t,e){var n=t.getSortIndex(),r=e.getSortIndex();return null!=n&&null!=r?n-r:null==n&&null==r?o[t.getId()]>o[e.getId()]?1:-1:null==r?-1:1})),e},e.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),colId:t.getId()}}))},e.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),column:t}}))},e.DEFAULT_SORTING_ORDER=[s.a.SORT_ASC,s.a.SORT_DESC,null],u([Object(r.a)("columnModel")],e.prototype,"columnModel",void 0),u([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),u([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),e=o=u([Object(r.b)("sortController")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(0),i=o(19),s=o(3),a=o(6),l=o(24),u=o(2),c=o(41),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridInstanceId=o.gridInstanceSequence.next(),e}var o;return p(e,t),o=e,e.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[o.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(t){return Object(l.getCtrlForEvent)(this.gridOptionsWrapper,t,c.a.DOM_DATA_KEY_CELL_CTRL)},e.prototype.isEventFromThisGrid=function(t){return this.isElementInThisGrid(t.target)},e.prototype.isElementInThisGrid=function(t){for(var e=t;e;){var n=e[o.GRID_DOM_KEY];if(Object(u.exists)(n))return n===this.gridInstanceId;e=e.parentElement}return!1},e.prototype.getCellPositionForEvent=function(t){var e=this.getRenderedCellForEvent(t);return e?e.getCellPosition():null},e.prototype.getNormalisedPosition=function(t){var e,o,n=this.gridOptionsWrapper.getDomLayout()===s.a.DOM_LAYOUT_NORMAL,r=t;if(null!=r.clientX||null!=r.clientY?(e=r.clientX,o=r.clientY):(e=r.x,o=r.y),n){var i=this.ctrlsService.getGridBodyCtrl(),a=i.getScrollFeature().getVScrollPosition();e+=i.getScrollFeature().getHScrollPosition().left,o+=a.top}return{x:e,y:o}},e.gridInstanceSequence=new i.d,e.GRID_DOM_KEY="__ag_grid_instance",d([Object(r.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),e=o=d([Object(r.b)("mouseEventService")],e)}(a.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(0),i=o(6),s=o(3),a=o(2),l=o(8),u=o(10),c=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.getNextCellToFocus=function(t,e){for(var o=e,n=!1;!n;){switch(t){case u.a.UP:o=this.getCellAbove(o);break;case u.a.DOWN:o=this.getCellBelow(o);break;case u.a.RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case u.a.LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+t)}n=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(t){var e,o=t.column;switch(t.rowPinned){case s.a.PINNED_TOP:e=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case s.a.PINNED_BOTTOM:e=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:e=this.rowModel.getRow(t.rowIndex)}return!!e&&!o.isSuppressNavigable(e)},e.prototype.getCellToLeft=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColBefore(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getCellToRight=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColAfter(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getRowBelow=function(t){var e=t.rowIndex,o=t.rowPinned;if(this.isLastRowInContainer(t))switch(o){case s.a.PINNED_BOTTOM:return null;case s.a.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(s.a.PINNED_BOTTOM)?{rowIndex:0,rowPinned:s.a.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(s.a.PINNED_BOTTOM)?{rowIndex:0,rowPinned:s.a.PINNED_BOTTOM}:null}return{rowIndex:e+1,rowPinned:o}},e.prototype.getCellBelow=function(t){if(!t)return null;var e=this.getRowBelow(t);return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.isLastRowInContainer=function(t){var e=t.rowPinned,o=t.rowIndex;return e===s.a.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:e===s.a.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},e.prototype.getRowAbove=function(t){var e=t.rowIndex,o=t.rowPinned;return(o?0===e:e===this.paginationProxy.getPageFirstRow())?o===s.a.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(s.a.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:e-1,rowPinned:o}},e.prototype.getCellAbove=function(t){if(!t)return null;var e=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:s.a.PINNED_TOP}},e.prototype.getNextTabbedCell=function(t,e){return e?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},e.prototype.getNextTabbedCellForwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),o=t.rowIndex,n=t.rowPinned,r=this.columnModel.getDisplayedColAfter(t.column);if(!r){r=e[0];var i=this.getRowBelow(t);if(Object(a.missing)(i))return null;if(!i.rowPinned&&!this.paginationProxy.isRowInPage(i))return null;o=i?i.rowIndex:null,n=i?i.rowPinned:null}return{rowIndex:o,column:r,rowPinned:n}},e.prototype.getNextTabbedCellBackwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),o=t.rowIndex,n=t.rowPinned,r=this.columnModel.getDisplayedColBefore(t.column);if(!r){r=Object(l.last)(e);var i=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(Object(a.missing)(i))return null;if(!i.rowPinned&&!this.paginationProxy.isRowInPage(i))return null;o=i?i.rowIndex:null,n=i?i.rowPinned:null}return{rowIndex:o,column:r,rowPinned:n}},p([Object(r.a)("columnModel")],e.prototype,"columnModel",void 0),p([Object(r.a)("rowModel")],e.prototype,"rowModel",void 0),p([Object(r.a)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),p([Object(r.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),e=p([Object(r.b)("cellNavigationService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(6),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.formatValue=function(t,e,o,n,r,i){void 0===i&&(i=!0);var s,a=null,l=t.getColDef();if(r?s=r:i&&(s=e&&e.rowPinned&&l.pinnedRowValueFormatter?l.pinnedRowValueFormatter:l.valueFormatter),s){var u={value:n,node:e,data:e?e.data:null,colDef:l,column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};u.$scope=o,a=this.expressionService.evaluate(s,u)}else if(l.refData)return l.refData[n]||"";return null==a&&Array.isArray(n)&&(a=n.join(", ")),a},a([Object(r.a)("expressionService")],e.prototype,"expressionService",void 0),e=a([Object(r.b)("valueFormatterService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(48),i=o(9),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t){function e(e){return t.call(this,e,"ag-radio-button","radio")||this}return s(e,t),e.prototype.isSelected=function(){return this.eInput.checked},e.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},e.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,i.a.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},e.prototype.onChange=function(t){t.selected&&t.name&&this.eInput.name&&this.eInput.name===t.name&&t.id&&this.eInput.id!==t.id&&this.setValue(!1,!0)},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n=o(8),r=o(19),i=["mouseover","mouseout","mouseenter","mouseleave"],s=function(){function t(){this.isOutsideAngular=function(t){return Object(n.includes)(i,t)}}return t.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},t.prototype.setInterval=function(t,e){return new r.a((function(o){o(window.setInterval(t,e))}))},t.prototype.addEventListener=function(t,e,o,n){t.addEventListener(e,o,n)},t.prototype.dispatchEvent=function(t,e,o){void 0===o&&(o=!1),e()},t.prototype.frameworkComponent=function(t){return null},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(0),i=o(6),s=o(5),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},e.prototype.onDisplayedColumnsChanged=function(){this.update()},e.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},e.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},e.prototype.updateImpl=function(){var t=this.ctrlsService.getCenterRowContainerCtrl();if(t){var e={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(e)}},e.prototype.setScrollsVisible=function(t){if(this.horizontalScrollShowing!==t.horizontalScrollShowing||this.verticalScrollShowing!==t.verticalScrollShowing){this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing;var e={type:s.a.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},l([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),l([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),l([Object(r.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),l([r.e],e.prototype,"postConstruct",null),e=l([Object(r.b)("scrollVisibleService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(6),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.processAllCellClasses=function(t,e,o,n){this.processClassRules(t.cellClassRules,e,o,n),this.processStaticCellClasses(t,e,o)},e.prototype.processClassRules=function(t,e,o,n){if(null!=t)for(var r=Object.keys(t),i={},s={},a=function(a){var u,c=r[a],p=t[c];"string"==typeof p?u=l.expressionService.evaluate(p,e):"function"==typeof p&&(u=p(e)),c.split(" ").forEach((function(t){null!=t&&""!=t.trim()&&(u?i[t]=!0:s[t]=!0)})),n&&Object.keys(s).forEach(n),Object.keys(i).forEach(o)},l=this,u=0;u=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return u(e,t),e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,i.a.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},e.prototype.ensureRowHeightsValid=function(t,e,o,n){var r=this.rowModel.ensureRowHeightsValid(t,e,this.getPageFirstRow(),this.getPageLastRow());return r&&this.calculatePages(),r},e.prototype.onModelUpdated=function(t){this.calculatePages();var e={type:i.a.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var t={type:i.a.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.goToPage=function(t){if(this.active&&this.currentPage!==t){this.currentPage=t;var e={type:i.a.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(e)}},e.prototype.getPixelOffset=function(){return this.pixelOffset},e.prototype.getRow=function(t){return this.rowModel.getRow(t)},e.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},e.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},e.prototype.getCurrentPageHeight=function(){return Object(a.missing)(this.topRowBounds)||Object(a.missing)(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},e.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},e.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&(t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex)},e.prototype.isEmpty=function(){return this.rowModel.isEmpty()},e.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},e.prototype.getNodesInRangeForSelection=function(t,e){return this.rowModel.getNodesInRangeForSelection(t,e)},e.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},e.prototype.getType=function(){return this.rowModel.getType()},e.prototype.getRowBounds=function(t){var e=this.rowModel.getRowBounds(t);return e.rowIndex=t,e},e.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},e.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},e.prototype.getRowCount=function(){return this.rowModel.getRowCount()},e.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},e.prototype.goToPageWithIndex=function(t){if(this.active){var e=this.getPageForIndex(t);this.goToPage(e)}},e.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},e.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},e.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},e.prototype.goToFirstPage=function(){this.goToPage(0)},e.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),e=Math.floor(t/this.pageSize);this.goToPage(e)},e.prototype.getPageSize=function(){return this.pageSize},e.prototype.getTotalPages=function(){return this.totalPages},e.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},e.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(Object(a.exists)(this.topRowBounds)?this.topRowBounds.rowTop:0)},e.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:i.a.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},e.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},e.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Object(l.isNumeric)(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var e=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>t&&(o=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(e),o===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=n-1}}},e.prototype.getMasterRowCount=function(){return this.masterRowCount},e.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Object(l.isNumeric)(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},e.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},c([Object(s.a)("rowModel")],e.prototype,"rowModel",void 0),c([Object(s.a)("columnApi")],e.prototype,"columnApi",void 0),c([Object(s.a)("gridApi")],e.prototype,"gridApi",void 0),c([s.e],e.prototype,"postConstruct",null),e=c([Object(s.b)("paginationProxy")],e)}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(6),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}return s(e,t),e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(t,e,o){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[e]=o)},e.prototype.getValue=function(t,e){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[e]},a([r.e],e.prototype,"init",null),e=a([Object(r.b)("valueCache")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(5),i=o(0),s=o(6),a=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(t,e){return function(o,n){e(o,n,t)}},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}return a(e,t),e.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},e.prototype.init=function(){this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,r.a.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(t){if(!this.consuming){var e=this.gridOptionsWrapper.getAlignedGrids();e&&e.forEach((function(e){if(e.api){var o=e.api.__getAlignedGridService();t(o)}}))}},e.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},e.prototype.fireColumnEvent=function(t){this.fireEvent((function(e){e.onColumnEvent(t)}))},e.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(e){e.onScrollEvent(t)}))},e.prototype.onScrollEvent=function(t){var e=this;this.onEvent((function(){e.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(t.left)}))},e.prototype.getMasterColumns=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t)})):t.column&&e.push(t.column),e},e.prototype.getColumnIds=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t.getColId())})):t.column&&e.push(t.column.getColId()),e},e.prototype.onColumnEvent=function(t){var e=this;this.onEvent((function(){switch(t.type){case r.a.EVENT_COLUMN_MOVED:case r.a.EVENT_COLUMN_VISIBLE:case r.a.EVENT_COLUMN_PINNED:case r.a.EVENT_COLUMN_RESIZED:var o=t;e.processColumnEvent(o);break;case r.a.EVENT_COLUMN_GROUP_OPENED:var n=t;e.processGroupOpenedEvent(n);break;case r.a.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(t){var e=t.columnGroup,o=null;if(e){var n=e.getGroupId();o=this.columnModel.getOriginalColumnGroup(n)}e&&!o||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+e.isExpanded()),this.columnModel.setColumnGroupOpened(o,e.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(t){var e=this,o=t.column,n=null;if(o&&(n=this.columnModel.getPrimaryColumn(o.getColId())),!o||n){var i=this.getMasterColumns(t);switch(t.type){case r.a.EVENT_COLUMN_MOVED:var s=t,a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:a,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex);break;case r.a.EVENT_COLUMN_VISIBLE:var l=t;a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,hide:t.hide}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+l.visible);break;case r.a.EVENT_COLUMN_PINNED:var u=t;a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,pinned:t.pinned}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+u.pinned);break;case r.a.EVENT_COLUMN_RESIZED:var c=t;i.forEach((function(o){e.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+o.getActualWidth());var n=[{key:o.getColId(),newWidth:o.getActualWidth()}];e.columnModel.setColumnWidths(n,!1,c.finished,"alignedGridChanged")}))}var p=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),d=this.gridOptionsWrapper.getAlignedGrids();d&&d.forEach((function(t){t.api&&t.api.setAlwaysShowVerticalScroll(p)}))}},l([Object(i.a)("columnModel")],e.prototype,"columnModel",void 0),l([Object(i.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),l([u(0,Object(i.h)("loggerFactory"))],e.prototype,"setBeans",null),l([i.e],e.prototype,"init",null),e=l([Object(i.b)("alignedGridsService")],e)}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(0),i=o(6),s=o(1),a=o(15),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},p={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},d={},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.getSassVariable=function(t,e){var o="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),n=c[o][e],r=0;d[t]||(d[t]={});var i=d[t][e];if(null!=i)return i;if(p[e]){var a=p[e],l=document.createElement("div");Object(s.addCssClass)(l,t),l.style.position="absolute";var u=a.reduce((function(t,e){var o=document.createElement("div");return o.style.position="static",Object(s.addCssClass)(o,e),t.appendChild(o),o}),l);if(document.body){document.body.appendChild(l);var h=-1!==e.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(u)[h],10),document.body.removeChild(l)}}return d[t][e]=r||n,d[t][e]},e.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},e.prototype.chartMenuPanelWidth=function(){var t=this.getTheme().themeFamily;return this.getSassVariable(t,"chartMenuPanelWidth")},e.prototype.getTheme=function(){for(var t=/\bag-(material|(?:theme-([\w\-]*)))\b/,e=this.eGridDiv,o=null;e&&!(o=t.exec(e.className));)e=e.parentElement||void 0;if(!o)return{};var n=o[0];if(void 0===o[2]){var r=n.replace("ag-","ag-theme-");Object(a.doOnce)((function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+n+" with "+r+".")}),"using-old-theme")}return{theme:n,el:e,themeFamily:n.replace(/-dark$/,"")}},u([Object(r.a)("eGridDiv")],e.prototype,"eGridDiv",void 0),e=u([Object(r.b)("environment")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(6),s=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return s(e,t),e.prototype.setScrollTop=function(t){this.scrollGoingDown=t>this.lastScrollTop,this.lastScrollTop=t},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.isOn=function(){return this.useAnimationFrame},e.prototype.verifyAnimationFrameOn=function(t){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+t+" called but animation frames are off")},e.prototype.createTask=function(t,e,o){this.verifyAnimationFrameOn(o);var n={task:t,index:e,createOrder:++this.taskCount};this.addTaskToList(this[o],n),this.schedule()},e.prototype.cancelTask=function(t){this.cancelledTasks.add(t)},e.prototype.addTaskToList=function(t,e){t.list.push(e),t.sorted=!1},e.prototype.sortTaskList=function(t){if(!t.sorted){var e=this.scrollGoingDown?1:-1;t.list.sort((function(t,o){return t.index!==o.index?e*(o.index-t.index):o.createOrder-t.createOrder})),t.sorted=!0}},e.prototype.addDestroyTask=function(t){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(t),this.schedule()},e.prototype.executeFrame=function(t){this.verifyAnimationFrameOn("executeFrame");for(var e=this.createTasksP1,o=e.list,n=this.createTasksP2,r=n.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=t<=0,u=this.ctrlsService.getGridBodyCtrl();l||a=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeLastPageEventProcessed=0,e}return h(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},e.prototype.handlePageScrollingKey=function(t){var e=t.which||t.keyCode,o=t.altKey,n=t.ctrlKey||t.metaKey,r=this.mouseEventService.getCellPositionForEvent(t);if(!r)return!1;var i=!1;switch(e){case l.a.PAGE_HOME:case l.a.PAGE_END:n||o||(this.onHomeOrEndKey(e),i=!0);break;case l.a.LEFT:case l.a.RIGHT:n&&!o&&(this.onCtrlLeftOrRight(e,r),i=!0);break;case l.a.UP:case l.a.DOWN:n&&!o&&(this.onCtrlUpOrDown(e,r),i=!0);break;case l.a.PAGE_DOWN:n||o||(this.onPageDown(r),i=!0);break;case l.a.PAGE_UP:n||o||(this.onPageUp(r),i=!0)}return i&&t.preventDefault(),i},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.navigateTo=function(t){var e=t.scrollIndex,o=t.scrollType,n=t.scrollColumn,r=t.focusIndex,i=t.focusColumn;if(Object(s.exists)(n)&&!n.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),Object(s.exists)(e)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e,o),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell(r,i,null,!0),this.rangeService){var a={rowIndex:r,rowPinned:null,column:i};this.rangeService.setRangeToCell(a)}},e.prototype.onPageDown=function(t){if(!this.isTimeSinceLastPageEventToRecent()){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=o);var r=this.paginationProxy.getPixelOffset(),i=e.top+n,s=this.paginationProxy.getRowIndexAtPixel(i+r),a=this.paginationProxy.getRow(t.rowIndex).rowTop+n-r,l=this.paginationProxy.getRowIndexAtPixel(a+r),u=this.paginationProxy.getPageLastRow();l>u&&(l=u),s>u&&(s=u),this.navigateTo({scrollIndex:s,scrollType:"top",scrollColumn:null,focusIndex:l,focusColumn:t.column}),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(t){if(!this.isTimeSinceLastPageEventToRecent()){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=o);var r=this.paginationProxy.getPixelOffset(),i=e.top,s=this.paginationProxy.getRowIndexAtPixel(i+r),a=this.paginationProxy.getRow(t.rowIndex),l=a.rowTop+a.rowHeight-n-r,u=this.paginationProxy.getRowIndexAtPixel(l+r),c=this.paginationProxy.getPageFirstRow();u=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(t){if(this.isRowSelectableFunc){this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))}},e.prototype.updateSelectableAfterFiltering=function(t){if(this.isRowSelectableFunc){this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterFilter}))}},e.prototype.recurseDown=function(t,e){var o=this;t&&t.forEach((function(t){if(t.group){var n;if(t.hasChildren()&&o.recurseDown(e(t),e),o.groupSelectsChildren){var r=Object(s.find)(e(t),"selectable",!0);n=Object(s.exists)(r)}else n=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(t);t.setRowSelectable(n)}}))},l([r.e],e.prototype,"init",null),e=l([Object(r.b)("selectableService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(0),i=o(6),s=o(15),a=o(1),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return l(e,t),e.prototype.observeResize=function(t,e){var o,n,r,i,l,u=this,c=Object(s.debounce)(e,50),p=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!p?((l=new window.ResizeObserver(c)).observe(t),function(){return l.disconnect()}):(o=Object(a.offsetWidth)(t),n=Object(a.offsetHeight)(t),r=!0,(i=function(){if(r){var s=Object(a.offsetWidth)(t),l=Object(a.offsetHeight)(t);(s!==o||l!==n)&&(o=s,n=l,e()),u.doNextPolyfillTurn(i)}})(),function(){return r=!1})},e.prototype.doNextPolyfillTurn=function(t){this.polyfillFunctions.push(t),this.schedulePolyfill()},e.prototype.schedulePolyfill=function(){var t=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var e=t.polyfillFunctions;t.polyfillScheduled=!1,t.polyfillFunctions=[],e.forEach((function(t){return t()}))}),50)}},e=u([Object(r.b)("resizeObserverService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(13),i=o(7),s=o(0),a=o(23),l=o(1),u=o(10),c=o(14),p=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),d=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},h=function(t){function e(o){void 0===o&&(o={});var n=t.call(this,e.getTemplate(o))||this;n.suppressEnabledCheckbox=!0,n.suppressOpenCloseIcons=!1;var r=o.title,i=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return n.title=r,n.cssIdentifier=o.cssIdentifier||"default",n.enabled=null==i||i,n.items=s||[],n.alignItems=o.alignItems||"center",null!=a&&(n.suppressEnabledCheckbox=a),null!=l&&(n.suppressOpenCloseIcons=l),n}return p(e,t),e.getTemplate=function(t){var e=t.cssIdentifier||"default";return''},e.prototype.postConstruct=function(){if(this.items.length){var t=this.items;this.items=[],this.addItems(t)}var e=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},e.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(Object(a.createIcon)("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Object(a.createIcon)("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(e){switch(e.keyCode){case u.a.ENTER:case u.a.SPACE:e.preventDefault(),t.toggleGroupExpand();break;case u.a.RIGHT:case u.a.LEFT:e.preventDefault(),t.toggleGroupExpand(e.keyCode===u.a.RIGHT)}}))},e.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Object(c.setAriaExpanded)(this.eTitleBar,this.expanded)},e.prototype.refreshChildDisplay=function(){var t=!this.suppressOpenCloseIcons;Object(l.setDisplayed)(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Object(l.setDisplayed)(this.eGroupOpenedIcon,t&&this.expanded),Object(l.setDisplayed)(this.eGroupClosedIcon,t&&!this.expanded)},e.prototype.isExpanded=function(){return this.expanded},e.prototype.setAlignItems=function(t){var e=this.getGui();this.alignItems!==t&&Object(l.removeCssClass)(e,"ag-group-item-alignment-"+this.alignItems),this.alignItems=t;var o="ag-group-item-alignment-"+this.alignItems;return Object(l.addCssClass)(e,o),this},e.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Object(l.setDisplayed)(this.eContainer,!0),this):(t=null!=t?t:!this.expanded,this.expanded===t||(this.expanded=t,this.refreshAriaStatus(),this.refreshChildDisplay(),Object(l.setDisplayed)(this.eContainer,t),this.dispatchEvent({type:this.expanded?e.EVENT_EXPANDED:e.EVENT_COLLAPSED})),this)},e.prototype.addItems=function(t){var e=this;t.forEach((function(t){return e.addItem(t)}))},e.prototype.addItem=function(t){var e=this.eContainer,o=t instanceof r.a?t.getGui():t;Object(l.addCssClass)(o,"ag-group-item"),Object(l.addCssClass)(o,"ag-"+this.cssIdentifier+"-group-item"),e.appendChild(o),this.items.push(o)},e.prototype.hideItem=function(t,e){var o=this.items[e];Object(l.addOrRemoveCssClass)(o,"ag-hidden",t)},e.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},e.prototype.addCssClassToTitleBar=function(t){Object(l.addCssClass)(this.eTitleBar,t)},e.prototype.setEnabled=function(t,e){return this.enabled=t,this.refreshDisabledStyles(),this.toggleGroupExpand(t),e||this.cbGroupEnabled.setValue(t),this},e.prototype.isEnabled=function(){return this.enabled},e.prototype.onEnableChange=function(t){var e=this;return this.cbGroupEnabled.onValueChange((function(o){e.setEnabled(o,!0),t(o)})),this},e.prototype.hideEnabledCheckbox=function(t){return this.suppressEnabledCheckbox=t,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},e.prototype.hideOpenCloseIcons=function(t){return this.suppressOpenCloseIcons=t,t&&this.toggleGroupExpand(!0),this},e.prototype.refreshDisabledStyles=function(){Object(l.addOrRemoveCssClass)(this.getGui(),"ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(Object(l.addCssClass)(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(Object(l.removeCssClass)(this.eTitleBar,"ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),Object(l.addOrRemoveCssClass)(this.eContainer,"ag-disabled-group-container",!this.enabled)},e.EVENT_EXPANDED="expanded",e.EVENT_COLLAPSED="collapsed",d([Object(i.b)("eTitleBar")],e.prototype,"eTitleBar",void 0),d([Object(i.b)("eGroupOpenedIcon")],e.prototype,"eGroupOpenedIcon",void 0),d([Object(i.b)("eGroupClosedIcon")],e.prototype,"eGroupClosedIcon",void 0),d([Object(i.b)("eToolbar")],e.prototype,"eToolbar",void 0),d([Object(i.b)("cbGroupEnabled")],e.prototype,"cbGroupEnabled",void 0),d([Object(i.b)("eTitle")],e.prototype,"eTitle",void 0),d([Object(i.b)("eContainer")],e.prototype,"eContainer",void 0),d([s.e],e.prototype,"postConstruct",null),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(6),i=o(0),s=o(1),a=o(11),l=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=function(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s},c=function(t){function e(e,o){var n=t.call(this)||this;return n.element=e,n.dragStartPosition={x:0,y:0},n.position={x:0,y:0},n.lastSize={width:-1,height:-1},n.positioned=!1,n.resizersAdded=!1,n.resizeListeners=[],n.boundaryEl=null,n.isResizing=!1,n.isMoving=!1,n.resizable={},n.movable=!1,n.currentResizer=null,n.config=Object(a.assign)({},{popup:!1},o),n}return l(e,t),e.prototype.center=function(){var t=this.offsetParent,e=t.clientHeight,o=t.clientWidth/2-this.getWidth()/2,n=e/2-this.getHeight()/2;this.offsetElement(o,n)},e.prototype.initialisePosition=function(){var t=this.config,e=t.centered,o=t.forcePopupParentAsOffsetParent,n=t.minWidth,r=t.width,i=t.minHeight,s=t.height,a=t.x,l=t.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=i||u,this.minWidth=n||c,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),e)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&o&&this.boundaryEl){var y=parseFloat(this.boundaryEl.style.top),v=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(v)?0:v,isNaN(y)?0:y)}this.positioned=!!this.offsetParent},e.prototype.isPositioned=function(){return this.positioned},e.prototype.getPosition=function(){return this.position},e.prototype.setMovable=function(t,e){if(this.config.popup&&t!==this.movable){this.movable=t;var o=this.moveElementDragListener||{eElement:e,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},e.prototype.setResizable=function(t){var e=this;if(this.clearResizeListeners(),t?this.addResizers():this.removeResizers(),"boolean"==typeof t){if(!1===t)return;t={topLeft:t,top:t,topRight:t,right:t,bottomRight:t,bottom:t,bottomLeft:t,left:t}}Object.keys(t).forEach((function(o){var n=!!t[o],r=e.getResizerElement(o),i={dragStartPixels:0,eElement:r,onDragStart:function(t){return e.onResizeStart(t,o)},onDragging:e.onResize.bind(e),onDragStop:function(t){return e.onResizeEnd(t,o)}};!!e.resizable[o]===n&&(e.isAlive()||n)||(n?(e.dragService.addDragSource(i),e.resizeListeners.push(i),r.style.pointerEvents="all"):r.style.pointerEvents="none")}))},e.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},e.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var t=this.lastSize,e=t.height,o=t.width;-1!==o&&(this.element.style.width=o+"px"),-1!==e&&(this.element.style.height=e+"px")},e.prototype.getHeight=function(){return this.element.offsetHeight},e.prototype.setHeight=function(t){var e=this.config.popup,o=this.element,n=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Object(s.setFixedHeight)(o,t),t=Object(s.getAbsoluteHeight)(o),n=!0;else if(this.positioned){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();t=Math.max(this.minHeight,t);var a=this.offsetParent.clientHeight,l=e?this.position.y:r.top,u=e?0:i.top;a&&t+l>a+u&&(t=a-l)}this.getHeight()!==t&&(n?(o.style.maxHeight="unset",o.style.minHeight="unset"):e?Object(s.setFixedHeight)(o,t):(o.style.height=t+"px",o.style.flex="0 0 auto",this.lastSize.height="number"==typeof t?t:parseFloat(t)))},e.prototype.getWidth=function(){return this.element.offsetWidth},e.prototype.setWidth=function(t){var e=this.element,o=this.config.popup,n=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Object(s.setFixedWidth)(e,t),t=Object(s.getAbsoluteWidth)(e),n=!0;else if(this.positioned){t=Math.max(this.minWidth,t);var r=this.offsetParent.clientWidth,i=o?this.position.x:this.element.getBoundingClientRect().left;r&&t+i>r&&(t=r-i)}this.getWidth()!==t&&(n?(e.style.maxWidth="unset",e.style.minWidth="unset"):this.config.popup?Object(s.setFixedWidth)(e,t):(e.style.width=t+"px",e.style.flex=" unset",this.lastSize.width="number"==typeof t?t:parseFloat(t)))},e.prototype.offsetElement=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:o,x:t,y:e,keepWithinBounds:!0}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top))},e.prototype.setPosition=function(t,e){this.position.x=t,this.position.y=e},e.prototype.updateDragStartPosition=function(t,e){this.dragStartPosition={x:t,y:e}},e.prototype.calculateMouseMovement=function(t){var e=t.e,o=t.isLeft,n=t.isTop,r=t.anywhereWithin,i=t.topBuffer,s=e.clientX-this.dragStartPosition.x,a=e.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(e,!!o,!!r,s)?0:s,movementY:this.shouldSkipY(e,!!n,i,a)?0:a}},e.prototype.shouldSkipX=function(t,e,o,n){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:r.left,l=a<=0&&i.left>=t.clientX||i.right<=t.clientX&&i.right<=s.right;return!!l||(l=e?n<0&&t.clientX>a+i.left||n>0&&t.clientXs.right||n>0&&t.clientXs.right||n>0&&t.clientX=t.clientY||i.bottom<=t.clientY&&i.bottom<=s.bottom;return!!l||(l=e?n<0&&t.clientY>a+i.top+o||n>0&&t.clientYs.bottom||n>0&&t.clientY\n \n \n \n \n \n \n \n \n