=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},Ft=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeLastPageEventProcessed=0,e}return _t(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.handlePageScrollingKey=function(t){var e=t.which||t.keyCode,o=t.altKey,n=t.ctrlKey,r=this.mouseEventService.getCellPositionForEvent(t);if(!r)return!1;var i=!1;switch(e){case At.a.PAGE_HOME:case At.a.PAGE_END:n||o||(this.onHomeOrEndKey(e),i=!0);break;case At.a.LEFT:case At.a.RIGHT:n&&!o&&(this.onCtrlLeftOrRight(e,r),i=!0);break;case At.a.UP:case At.a.DOWN:n&&!o&&(this.onCtrlUpOrDown(e,r),i=!0);break;case At.a.PAGE_DOWN:n||o||(this.onPageDown(r),i=!0);break;case At.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.onPageDown=function(t){if(!this.isTimeSinceLastPageEventToRecent()){var e=this.gridPanel.getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;this.gridPanel.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(s,"top",null,l,t.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(t){if(!this.isTimeSinceLastPageEventToRecent()){var e=this.gridPanel.getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;this.gridPanel.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),p=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},jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return Lt(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Rt.a.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Object(It.getMaxDivHeight)()},e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.isScaling=function(){return this.scaling},e.prototype.getOffset=function(){return this.offset},e.prototype.updateOffset=function(){if(this.scaling){var t=this.gridPanel.getVScrollPosition().top,e=this.getUiBodyHeight();(t!==this.scrollY||e!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=e,this.calculateOffset())}},e.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var t=this.scrollY/this.maxScrollY;this.setOffset(t*this.pixelsToShave)},e.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},e.prototype.setOffset=function(t){var e="number"==typeof t?Math.floor(t):null;this.offset!==e&&(this.offset=e,this.eventService.dispatchEvent({type:Rt.a.EVENT_HEIGHT_SCALE_CHANGED}))},e.prototype.setModelHeight=function(t){this.modelHeight=t,this.scaling=this.maxDivHeight>0&&t>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},e.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},e.prototype.getRealPixelPosition=function(t){return t-this.offset},e.prototype.getUiBodyHeight=function(){var t=this.gridPanel.getVScrollPosition();return t.bottom-t.top},e.prototype.getScrollPositionForPixel=function(t){if(this.pixelsToShave<=0)return t;var e=t/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*e},Mt([S.e],e.prototype,"postConstruct",null),e=Mt([Object(S.b)("maxDivHeightScaler")],e)}(k.a),Gt=o(125),xt=o(41),Vt=o(148),Wt=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ht=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},kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Wt(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.getPreferredHeightForRow=function(t){var e=this,o=document.createElement("div");this.addInRowCssClasses(t,o);var n=this.gridPanel.getCenterContainer();n.appendChild(o);var r=Vt.a.createChildScopeOrNull(t,this.$scope,this.beans.gridOptionsWrapper),i=r?r.scope:void 0,s=r?r.scopeDestroyFunc:void 0,a=[],l=this.columnController.getAllAutoRowHeightCols(),u=this.columnController.getAllDisplayedColumns();l.filter((function(t){return u.indexOf(t)>=0})).forEach((function(n){var r=new xt.a(i,e.beans,n,t,null,!0,!1);r.setParentRow(o),a.push(r)}));var p=a.map((function(t){return t.getCreateTemplate()})).join(" ");o.innerHTML=p,a.forEach((function(t){return t.afterAttached()})),i&&this.$compile(o)(i);for(var c=0,d=0;dc&&(c=h.offsetHeight)}return n.removeChild(o),a.forEach((function(t){t.detach(),t.destroy()})),s&&s(),c},e.prototype.addInRowCssClasses=function(t,e){var o=t.rowIndex,n={rowNode:t,rowIsEven:o%2==0,rowLevel:this.rowCssClassCalculator.calculateRowLevel(t),firstRowOnPage:o===this.beans.paginationProxy.getPageFirstRow(),lastRowOnPage:o===this.beans.paginationProxy.getPageLastRow(),printLayout:!1,expandable:t.isExpandable()},r=this.rowCssClassCalculator.getInitialRowClasses(n);Object(ft.addCssClass)(e,r.join(" "))},Ht([Object(S.a)("beans")],e.prototype,"beans",void 0),Ht([Object(S.a)("$scope")],e.prototype,"$scope",void 0),Ht([Object(S.a)("columnController")],e.prototype,"columnController",void 0),Ht([Object(S.a)("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Ht([Object(S.a)("$compile")],e.prototype,"$compile",void 0),e=Ht([Object(S.b)("autoHeightCalculator")],e)}(k.a),Bt=o(12),Ut=o(6),zt=o(20),Kt=o(34),Yt=o(14),qt=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Qt=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},Xt=function(t){function e(){var e=t.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e}return qt(e,t),e.prototype.postConstruct=function(){var t=this,e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Object(zt.createIconNoSpan)(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Object(zt.createIconNoSpan)(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Object(zt.createIconNoSpan)(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Object(zt.createIconNoSpan)(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===X.a.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,L.a.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(e){var o=e.el,n=e.fn;t.addManagedListener(o,"click",n),t.addManagedListener(o,"keydown",(function(t){t.keyCode!==At.a.ENTER&&t.keyCode!==At.a.SPACE||(t.preventDefault(),n())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},e.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},e.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},e.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,e=this.paginationProxy.getCurrentPage(),o=t?e+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},e.prototype.formatNumber=function(t){var e=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return e?e({value:t}):Object(Kt.formatNumberCommas)(t)},e.prototype.getTemplate=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),e=t("page","Page"),o=t("to","to"),n=t("of","of"),r=t("firstPage","First Page"),i=t("previousPage","Previous Page"),s=t("nextPage","Next Page"),a=t("lastPage","Last Page"),l=this.getCompId();return'\n
\n \n '+o+'\n \n '+n+'\n \n \n
\n \n \n \n '+e+'\n \n '+n+'\n \n \n \n \n \n
'},e.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},e.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},e.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},e.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,Object(ft.addOrRemoveCssClass)(this.btFirst,"ag-disabled",this.previousAndFirstButtonsDisabled),Object(Yt.setAriaDisabled)(this.btFirst,this.previousAndFirstButtonsDisabled),Object(ft.addOrRemoveCssClass)(this.btPrevious,"ag-disabled",this.previousAndFirstButtonsDisabled),Object(Yt.setAriaDisabled)(this.btPrevious,this.previousAndFirstButtonsDisabled);var n=this.isZeroPagesToDisplay(),r=e&&t===o-1;this.nextButtonDisabled=r||n,Object(ft.addOrRemoveCssClass)(this.btNext,"ag-disabled",this.nextButtonDisabled),Object(Yt.setAriaDisabled)(this.btNext,this.nextButtonDisabled),this.lastButtonDisabled=!e||n||t===o-1,Object(ft.addOrRemoveCssClass)(this.btLast,"ag-disabled",this.lastButtonDisabled),Object(Yt.setAriaDisabled)(this.btLast,this.lastButtonDisabled)},e.prototype.updateRowLabels=function(){var t,e,o=this.paginationProxy.getCurrentPage(),n=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?t=e=0:(e=(t=n*o+1)+n-1,r&&e>i&&(e=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.serverSideRowModel&&this.serverSideRowModel.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(e)},e.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages();return t&&0===e},e.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages(),o=t?this.paginationProxy.getMasterRowCount():null;if(t)this.lbTotal.innerHTML=this.formatNumber(e),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var n=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=n,this.lbRecordCount.innerHTML=n}},Qt([Object(S.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Qt([Object(S.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),Qt([Object(S.a)("rowModel")],e.prototype,"rowModel",void 0),Qt([Object(Ut.d)("btFirst")],e.prototype,"btFirst",void 0),Qt([Object(Ut.d)("btPrevious")],e.prototype,"btPrevious",void 0),Qt([Object(Ut.d)("btNext")],e.prototype,"btNext",void 0),Qt([Object(Ut.d)("btLast")],e.prototype,"btLast",void 0),Qt([Object(Ut.d)("lbRecordCount")],e.prototype,"lbRecordCount",void 0),Qt([Object(Ut.d)("lbFirstRowOnPage")],e.prototype,"lbFirstRowOnPage",void 0),Qt([Object(Ut.d)("lbLastRowOnPage")],e.prototype,"lbLastRowOnPage",void 0),Qt([Object(Ut.d)("lbCurrent")],e.prototype,"lbCurrent",void 0),Qt([Object(Ut.d)("lbTotal")],e.prototype,"lbTotal",void 0),Qt([S.e],e.prototype,"postConstruct",null),e}(Bt.a),$t=o(126),Zt=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Jt=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};!function(t){t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows"}(r||(r={}));var te=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o}return Zt(e,t),e.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},e.prototype.setWrapperTypeClass=function(t){Object(ft.addOrRemoveCssClass)(this.eOverlayWrapper,"ag-overlay-loading-wrapper",t===r.Loading),Object(ft.addOrRemoveCssClass)(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",t===r.NoRows)},e.prototype.showLoadingOverlay=function(){var t=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(t,r.Loading)},e.prototype.showNoRowsOverlay=function(){var t=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(t,r.NoRows)},e.prototype.showOverlay=function(t,e){var o=this;this.inProgress||(this.setWrapperTypeClass(e),this.destroyActiveOverlay(),this.inProgress=!0,t.then((function(t){o.inProgress=!1,o.eOverlayWrapper.appendChild(t.getGui()),o.activeOverlay=t,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.setDisplayed(!0))},e.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),Object(ft.clearElement)(this.eOverlayWrapper))},e.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},e.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},e.TEMPLATE='\n ',Jt([Object(S.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Jt([Object(S.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Jt([Object(Ut.d)("eOverlayWrapper")],e.prototype,"eOverlayWrapper",void 0),Jt([S.e],e.prototype,"postConstruct",null),e}(Bt.a),ee=o(127),oe=o(68),ne=o(69),re=o(70),ie=o(128),se=o(129),ae=o(142),le=o(130),ue=o(131),pe=o(140),ce=o(132),de=o(133),he=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),fe=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},ge=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheItems=[],e}return he(e,t),e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(t,e,o){if(!this.active||!t.detail)this.destroyFullWidthRow(o);else{var n=this.getCacheItem(t,!0);switch(e){case X.a.PINNED_LEFT:this.destroyFullWidthRow(n.left),n.left=o;break;case X.a.PINNED_RIGHT:this.destroyFullWidthRow(n.right),n.right=o;break;default:this.destroyFullWidthRow(n.center),n.center=o}this.cacheItems.sort((function(t,e){return e.lastAccessedTime-t.lastAccessedTime})),this.purgeCache(this.maxCacheSize)}},e.prototype.getCacheItem=function(t,e){var o;void 0===e&&(e=!1);for(var n=0;nt&&(this.cacheItems.length=t)},e.prototype.get=function(t,e){if(t.detail){var o,n=this.getCacheItem(t);if(n)switch(e){case X.a.PINNED_LEFT:n.left&&(o=n.left,n.left=void 0);break;case X.a.PINNED_RIGHT:n.right&&(o=n.right,n.right=void 0);break;default:n.center&&(o=n.center,n.center=void 0)}return o}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.purgeCache(0)},fe([Object(S.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),fe([S.e],e.prototype,"postConstruct",null),fe([S.g],e.prototype,"destroy",null),e=fe([Object(S.b)("detailRowCompCache")],e)}(k.a),ye=o(134),ve=o(135),me=o(136),Ce=o(16),Oe=o(15),we=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),be=function(t){this.cellValueChanges=t},Ee=function(t){function e(e,o,n){var r=t.call(this,e)||this;return r.initialRange=o,r.finalRange=n,r}return we(e,t),e}(be),Re=function(){function t(e){this.actionStack=[],this.maxStackSize=e||t.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return t.prototype.pop=function(){return this.actionStack.pop()},t.prototype.push=function(t){t.cellValueChanges&&t.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},t.prototype.clear=function(){this.actionStack=[]},t.prototype.getCurrentStackSize=function(){return this.actionStack.length},t.DEFAULT_STACK_SIZE=10,t}(),Se=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pe=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},De=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellValueChanges=[],e.isCellEditing=!1,e.isRowEditing=!1,e.isPasting=!1,e.isFilling=!1,e.onCellValueChanged=function(t){if(e.isCellEditing||e.isRowEditing||e.isPasting||e.isFilling){var o=t.rowPinned,n=t.rowIndex,r=t.column,i=t.oldValue,s=t.value,a={rowPinned:o,rowIndex:n,columnId:r.getColId(),oldValue:i,newValue:s};e.cellValueChanges.push(a)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return Se(e,t),e.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var t=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();t<=0||(this.undoStack=new Re(t),this.redoStack=new Re(t),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,Rt.a.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Rt.a.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,Rt.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Rt.a.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Rt.a.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Rt.a.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Rt.a.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Rt.a.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Rt.a.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Rt.a.EVENT_ROW_DRAG_END,this.clearStacks))}},e.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},e.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},e.prototype.undo=function(){if(this.undoStack){var t=this.undoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.oldValue})),t instanceof Ee?this.processRangeAndCellFocus(t.cellValueChanges,t.initialRange):this.processRangeAndCellFocus(t.cellValueChanges),this.redoStack.push(t))}},e.prototype.redo=function(){if(this.redoStack){var t=this.redoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.newValue})),t instanceof Ee?this.processRangeAndCellFocus(t.cellValueChanges,t.finalRange):this.processRangeAndCellFocus(t.cellValueChanges),this.undoStack.push(t))}},e.prototype.processAction=function(t,e){var o=this;t.cellValueChanges.forEach((function(t){var n=t.rowIndex,r=t.rowPinned,i=t.columnId,s={rowIndex:n,rowPinned:r},a=o.getRowNode(s);null!=a.rowTop&&a.setDataValue(i,e(t))}))},e.prototype.processRangeAndCellFocus=function(t,e){if(e){var o=e.startRow,n=e.endRow,r={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:e.startColumn.getColId()};this.setLastFocusedCell(r);var i={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:n.rowIndex,rowEndPinned:n.rowPinned,columnStart:e.startColumn,columns:e.columns};this.gridApi.addCellRange(i)}else{var s=t[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a),u={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId};this.setLastFocusedCell(u)}},e.prototype.setLastFocusedCell=function(t){var e=t.rowIndex,o=t.columnId,n=t.rowPinned;this.gridApi.ensureIndexVisible(e),this.gridApi.ensureColumnVisible(o),Ce.a.isRegistered(Oe.a.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusController.setFocusedCell(e,o,n,!0)},e.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,Rt.a.EVENT_ROW_EDITING_STARTED,(function(){t.isRowEditing=!0})),this.addManagedListener(this.eventService,Rt.a.EVENT_ROW_EDITING_STOPPED,(function(){var e=new be(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isRowEditing=!1}))},e.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,Rt.a.EVENT_CELL_EDITING_STARTED,(function(){t.isCellEditing=!0})),this.addManagedListener(this.eventService,Rt.a.EVENT_CELL_EDITING_STOPPED,(function(){if(t.isCellEditing=!1,!t.isRowEditing&&!t.isPasting&&!t.isFilling){var e=new be(t.cellValueChanges);t.pushActionsToUndoStack(e)}}))},e.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,Rt.a.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,Rt.a.EVENT_PASTE_END,(function(){var e=new be(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isPasting=!1}))},e.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,Rt.a.EVENT_FILL_START,(function(){t.isFilling=!0})),this.addManagedListener(this.eventService,Rt.a.EVENT_FILL_END,(function(e){var o=new Ee(t.cellValueChanges,e.initialRange,e.finalRange);t.pushActionsToUndoStack(o),t.isFilling=!1}))},e.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(t){switch(t.rowPinned){case X.a.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case X.a.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},Pe([Object(S.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Pe([Object(S.a)("focusController")],e.prototype,"focusController",void 0),Pe([Object(S.a)("gridApi")],e.prototype,"gridApi",void 0),Pe([Object(S.a)("rowModel")],e.prototype,"rowModel",void 0),Pe([Object(S.a)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Pe([S.e],e.prototype,"init",null),e=Pe([Object(S.b)("undoRedoService")],e)}(k.a),Te=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ae=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},_e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}return Te(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=Ae([Object(S.b)("agStackComponentsRegistry")],e)}(k.a),Ne=o(137),Fe=o(40),Ie=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},Le=function(){function t(){}return t.prototype.buildColumnDefs=function(t,e,o){var n=this,r=[],i={};return t.forEach((function(t){for(var s=!0,a=n.createDefFromColumn(t,e,o),l=t;l.getParent();){var u=l.getParent(),p=void 0;if(u.isPadding())l=u;else{var c=i[u.getGroupId()];if(c){c.children.push(a),s=!1;break}(p=n.createDefFromGroup(u)).children=[a],i[p.groupId]=p,a=p,l=u}}s&&r.push(a)})),r},t.prototype.createDefFromGroup=function(t){var e=Object($.deepCloneDefinition)(t.getColGroupDef(),["children"]);return e.groupId=t.getGroupId(),e},t.prototype.createDefFromColumn=function(t,e,o){var n=Object($.deepCloneDefinition)(t.getColDef());return n.colId=t.getColId(),n.width=t.getActualWidth(),n.rowGroup=t.isRowGroupActive(),n.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,n.pivot=t.isPivotActive(),n.pivotIndex=t.isPivotActive()?o.indexOf(t):null,n.aggFunc=t.isValueActive()?t.getAggFunc():null,n.hide=!t.isVisible()||void 0,n.pinned=t.isPinned()?t.getPinned():null,n.sort=t.getSort()?t.getSort():null,n.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,n},t=Ie([Object(S.b)("columnDefFactory")],t)}(),Me=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},je=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var e=[];return Object(Z.exists)(t.extraCssClass)&&e.push(t.extraCssClass),e.push("ag-row"),e.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&e.push("ag-opacity-zero"),e.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&e.push("ag-row-pinned"),t.rowNode.isSelected()&&e.push("ag-row-selected"),t.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&e.push("ag-row-loading"),t.fullWidthRow&&e.push("ag-full-width-row"),t.expandable&&(e.push("ag-row-group"),e.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&e.push("ag-row-dragging"),Object(Tt.pushAll)(e,this.processClassesFromGridOptions(t.rowNode)),Object(Tt.pushAll)(e,this.preProcessRowClassRules(t.rowNode,t.scope)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),e},t.prototype.processClassesFromGridOptions=function(t){var e=[],o=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},n=this.gridOptionsWrapper.getRowClass();if(n){if("function"==typeof n)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");o(n)}var r=this.gridOptionsWrapper.getRowClassFunc();r&&o(r({node:t,data:t.data,rowIndex:t.rowIndex,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi()}));return e},t.prototype.preProcessRowClassRules=function(t,e){var o=[];return this.processRowClassRules(t,e,(function(t){o.push(t)}),(function(t){})),o},t.prototype.processRowClassRules=function(t,e,o,n){this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),$scope:e,context:this.gridOptionsWrapper.getContext()},o,n)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},Me([Object(S.a)("stylingService")],t.prototype,"stylingService",void 0),Me([Object(S.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t=Me([Object(S.b)("rowCssClassCalculator")],t)}(),Ge=function(){function t(t,e,o){if(t)if(e){var n=!!e.debug;this.gridOptions=e;var r=this.getRegisteredModules(o),i=this.createBeansList(r),s=this.createProvidedBeans(t,o);if(i){var a={providedBeanInstances:s,beanClasses:i,debug:n};this.logger=new w.a("ag-Grid",(function(){return e.debug}));var l=new w.a("Context",(function(){return a.debug}));this.context=new S.c(a,l),this.registerModuleUserComponents(r),this.registerStackComponents(r);var u=new(o&&o.rootComponent||P.a);this.context.createBean(u),this.setColumnsAndData(),this.dispatchGridReadyEvent(e);var p=Ce.a.isRegistered(Oe.a.EnterpriseCoreModule);this.logger.log("initialised successfully, enterprise = "+p)}}else console.error("ag-Grid: no gridOptions provided to the grid");else console.error("ag-Grid: no div element provided to the grid")}return t.prototype.registerStackComponents=function(t){var e=this.createAgStackComponentsList(t);this.context.getBean("agStackComponentsRegistry").setupComponents(e)},t.prototype.getRegisteredModules=function(t){var e=t?t.modules:null,o=Ce.a.getRegisteredModules(),n=[],r={};function i(t,e){!function(e){r[e.moduleName]||(r[e.moduleName]=!0,n.push(e),Ce.a.register(e,t))}(e),e.dependantModules&&e.dependantModules.forEach(i.bind(null,t))}return e&&e.forEach(i.bind(null,!0)),o&&o.forEach(i.bind(null,!Ce.a.isPackageBased())),n},t.prototype.registerModuleUserComponents=function(t){var e=this.context.getBean("userComponentRegistry");this.extractModuleEntity(t,(function(t){return t.userComponents?t.userComponents:[]})).forEach((function(t){e.registerDefaultComponent(t.componentName,t.componentClass)}))},t.prototype.createProvidedBeans=function(t,e){var o=e?e.frameworkOverrides:null;Object(Z.missing)(o)&&(o=new V.a);var n={gridOptions:this.gridOptions,eGridDiv:t,$scope:e?e.$scope:null,$compile:e?e.$compile:null,quickFilterOnScope:e?e.quickFilterOnScope:null,globalEventListener:e?e.globalEventListener:null,frameworkOverrides:o};return e&&e.providedBeanInstances&&Object($.assign)(n,e.providedBeanInstances),n},t.prototype.createAgStackComponentsList=function(t){var e=[{componentName:"AgCheckbox",componentClass:G.a},{componentName:"AgRadioButton",componentClass:x.a},{componentName:"AgToggleButton",componentClass:de.a},{componentName:"AgInputTextField",componentClass:re.a},{componentName:"AgInputTextArea",componentClass:ie.a},{componentName:"AgInputNumberField",componentClass:le.a},{componentName:"AgInputRange",componentClass:ue.a},{componentName:"AgSelect",componentClass:pe.a},{componentName:"AgSlider",componentClass:se.a},{componentName:"AgAngleSelect",componentClass:ce.a},{componentName:"AgColorPicker",componentClass:ae.a},{componentName:"AgGridComp",componentClass:f.a},{componentName:"AgHeaderRoot",componentClass:p.a},{componentName:"AgPagination",componentClass:Xt},{componentName:"AgOverlayWrapper",componentClass:te},{componentName:"AgGroupComponent",componentClass:ee.a},{componentName:"AgPanel",componentClass:ne.a},{componentName:"AgDialog",componentClass:oe.a}],o=this.extractModuleEntity(t,(function(t){return t.agStackComponents?t.agStackComponents:[]}));return e=e.concat(o)},t.prototype.createBeansList=function(t){var e=this.getRowModelClass(t);if(e){var o=[e,bt,ye.a,ve.a,Ne.a,it,g.a,ht.b,vt,Ot,$t.a,dt.b,jt,kt,M.a,R.a,me.a,A.a,v.a,h.a,i.a,O.a,s.a,c.a,l.a,Fe.b,ot.a,u.a,m.a,y.a,C.a,ct.a,Ft,st.a,d.a,w.b,b.a,E.a,D.a,T.a,a.a,N.a,F.a,Et.a,I.a,j.a,H.a,W.a,_.a,z,q,Gt.a,et,pt,Dt,ge,De,_e,Le,je],n=this.extractModuleEntity(t,(function(t){return t.beans?t.beans:[]}));o.push.apply(o,n);var r=[];return o.forEach((function(t){r.indexOf(t)<0&&r.push(t)})),r}},t.prototype.extractModuleEntity=function(t,e){return[].concat.apply([],t.map(e))},t.prototype.setColumnsAndData=function(){var t=this.context.getBean("gridOptionsWrapper"),e=this.context.getBean("columnController"),o=t.getColumnDefs();e.setColumnDefs(o||[],"gridInitializing"),this.context.getBean("rowModel").start()},t.prototype.dispatchGridReadyEvent=function(t){var e=this.context.getBean("eventService"),o={type:L.a.EVENT_GRID_READY,api:t.api,columnApi:t.columnApi};e.dispatchEvent(o)},t.prototype.getRowModelClass=function(t){var e=this.gridOptions.rowModelType;e||(e=X.a.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};t.forEach((function(t){Object($.iterateObject)(t.rowModels,(function(t,e){o[t]=e}))}));var n=o[e];if(Object(Z.exists)(n))return n;e===X.a.ROW_MODEL_TYPE_INFINITE&&console.error('ag-Grid: Row Model "Infinite" not found. Please ensure the '+Oe.a.InfiniteRowModelModule+" is registered.';"),console.error("ag-Grid: could not find matching row model for rowModelType "+e),e===X.a.ROW_MODEL_TYPE_VIEWPORT&&console.error('ag-Grid: Row Model "Viewport" not found. Please ensure the ag-Grid Enterprise Module '+Oe.a.ViewportRowModelModule+" is registered.';"),e===X.a.ROW_MODEL_TYPE_SERVER_SIDE&&console.error('ag-Grid: Row Model "Server Side" not found. Please ensure the ag-Grid Enterprise Module '+Oe.a.ServerSideRowModelModule+" is registered.';"),e===X.a.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error('ag-Grid: Row Model "Client Side" not found. Please ensure the '+Oe.a.ClientSideRowModelModule+" is registered.';")},t.prototype.destroy=function(){this.gridOptions.api.destroy()},t}()},function(t,e,o){"use strict";function n(t){var e=0,o=0,n=0,r=0;return"detail"in t&&(o=t.detail),"wheelDelta"in t&&(o=-t.wheelDelta/120),"wheelDeltaY"in t&&(o=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=o,o=0),n=10*e,r=10*o,"deltaY"in t&&(r=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||r)&&t.deltaMode&&(1==t.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!e&&(e=n<1?-1:1),r&&!o&&(o=r<1?-1:1),{spinX:e,spinY:o,pixelX:n,pixelY:r}}function r(t){return"buttons"in t?1==t.buttons:1==(t.which||t.button)}function i(t,e,o){if(0===o)return!1;var n=Math.abs(t.clientX-e.clientX),r=Math.abs(t.clientY-e.clientY);return Math.max(n,r)<=o}o.r(e),o.d(e,"normalizeWheel",(function(){return n})),o.d(e,"isLeftClick",(function(){return r})),o.d(e,"areEventsNear",(function(){return i}))},function(t,e,o){"use strict";function n(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}o.r(e),o.d(e,"convertToSet",(function(){return n}))},function(t,e,o){"use strict";o.d(e,"a",(function(){return f}));var n,r=o(0),i=o(5),s=o(37),a=o(97),l=o(4),u=o(1),p=o(8),c=o(24),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(e,o,n){var r=t.call(this)||this;return r.groupsRowComps=[],r.eContainer=e,r.pinned=n,r.eViewport=o,r}return d(e,t),e.prototype.forEachHeaderElement=function(t){this.groupsRowComps&&this.groupsRowComps.forEach((function(e){return e.forEachHeaderElement(t)})),this.columnsRowComp&&this.columnsRowComp.forEachHeaderElement(t),this.filtersRowComp&&this.columnsRowComp.forEachHeaderElement(t)},e.prototype.init=function(){this.addManagedListener(this.eventService,i.a.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,i.a.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,i.a.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,i.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,i.a.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollbarWidthChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var t=this.pinned===l.a.PINNED_LEFT,e=this.pinned===l.a.PINNED_RIGHT,o=this.columnController,n=this.gridOptionsWrapper.isEnableRtl(),r=this.gridOptionsWrapper.getScrollbarWidth();if(t||e){var i=o[t?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(n&&t||!n&&e)&&(i+=r),Object(u.setFixedWidth)(this.eContainer,i)}},e.prototype.getRowComps=function(){var t=[];return this.groupsRowComps&&(t=t.concat(this.groupsRowComps)),this.columnsRowComp&&t.push(this.columnsRowComp),this.filtersRowComp&&t.push(this.filtersRowComp),t},e.prototype.onGridColumnsChanged=function(){this.refresh(!0)},e.prototype.refresh=function(t){void 0===t&&(t=!1),this.refreshRowComps(t)},e.prototype.setupDragAndDrop=function(t){var e=this.eViewport?this.eViewport:this.eContainer,o=new a.a(this.pinned,e);this.createManagedBean(o),o.registerGridComp(t)},e.prototype.destroyRowComps=function(t){void 0===t&&(t=!1),this.groupsRowComps.forEach(this.destroyRowComp.bind(this)),this.groupsRowComps=[],this.destroyRowComp(this.filtersRowComp),this.filtersRowComp=void 0,t||(this.destroyRowComp(this.columnsRowComp),this.columnsRowComp=void 0)},e.prototype.destroyRowComp=function(t){t&&(this.destroyBean(t),this.eContainer.removeChild(t.getGui()))},e.prototype.refreshRowComps=function(t){var e=this;void 0===t&&(t=!1);var o=new c.b;!function(){var t=e.columnController.getHeaderRowCount()-1;e.groupsRowComps.forEach(e.destroyRowComp.bind(e)),e.groupsRowComps=[];for(var 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},l=function(t){function e(e,o){var n=t.call(this)||this;return n.columns=e,n.element=o,n}return s(e,t),e.prototype.postConstruct=function(){this.addMouseHoverListeners()},e.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},e.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},e.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},a([Object(i.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),a([i.e],e.prototype,"postConstruct",null),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(12),i=o(0),s=o(1),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,o){var n=t.call(this,o)||this;return n.labelSeparator="",n.labelAlignment="left",n.label="",n.config=e||{},n}return a(e,t),e.prototype.postConstruct=function(){Object(s.addCssClass)(this.getGui(),"ag-labeled"),Object(s.addCssClass)(this.eLabel,"ag-label");var t=this.config,e=t.labelSeparator,o=t.label,n=t.labelWidth,r=t.labelAlignment;null!=e&&this.setLabelSeparator(e),null!=o&&this.setLabel(o),null!=n&&this.setLabelWidth(n),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},e.prototype.refreshLabel=function(){Object(s.clearElement)(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.eLabel.appendChild(this.label),Object(s.addOrRemoveCssClass)(this.eLabel,"ag-hidden",""===this.label)},e.prototype.setLabelSeparator=function(t){return this.labelSeparator===t||(this.labelSeparator=t,null!=this.label&&this.refreshLabel()),this},e.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},e.prototype.getLabel=function(){return this.label},e.prototype.setLabel=function(t){return this.label===t||(this.label=t,this.refreshLabel()),this},e.prototype.setLabelAlignment=function(t){var e=this.getGui();return Object(s.addOrRemoveCssClass)(e,"ag-label-align-left","left"===t),Object(s.addOrRemoveCssClass)(e,"ag-label-align-right","right"===t),Object(s.addOrRemoveCssClass)(e,"ag-label-align-top","top"===t),this},e.prototype.setLabelWidth=function(t){return null==this.label||Object(s.setElementWidth)(this.eLabel,t),this},l([i.e],e.prototype,"postConstruct",null),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n,r=o(33),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.getColumn=function(){return this.column},e.prototype.getPinned=function(){return this.pinned},e}(r.a)},function(t,e,o){"use strict";o.r(e),o.d(e,"ClientSideRowModelModule",(function(){return T}));var n,r,i=o(3),s=function(){function t(e,o,n,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=e,this.gridOptionsWrapper=o,this.context=n,this.eventService=r,this.columnController=i,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=t.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return t.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},t.prototype.getCopyOfNodesMap=function(){return i._.cloneObject(this.allNodesMap)},t.prototype.getRowNode=function(t){return this.allNodesMap[t]},t.prototype.setRowData=function(e){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.rootNode.updateHasChildren(),this.nextId=0,this.allNodesMap={},!e)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);this.rootNode.allLeafChildren=this.recursiveFunction(e,this.rootNode,t.TOP_LEVEL)},t.prototype.updateRowData=function(t,e){var o={remove:[],update:[],add:[]},n=[];return this.executeAdd(t,o),this.executeRemove(t,o,n),this.executeUpdate(t,o,n),this.updateSelection(n),e&&i._.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),o},t.prototype.updateSelection=function(t){var e=t.length>0;if(e&&t.forEach((function(t){t.setSelected(!1,!1,!0)})),this.selectionController.updateGroupsFromChildrenSelections(),e){var o={type:i.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},t.prototype.executeAdd=function(t,e){var o=this,n=t.add,r=t.addIndex;i._.missingOrEmpty(n)||("number"==typeof r&&r>=0?n.reverse().forEach((function(t){var n=o.addRowNode(t,r);e.add.push(n)})):n.forEach((function(t){var n=o.addRowNode(t);e.add.push(n)})))},t.prototype.executeRemove=function(t,e,o){var n=this,r=t.remove;if(!i._.missingOrEmpty(r)){var s={};r.forEach((function(t){var r=n.lookupRowNode(t);r&&(r.isSelected()&&o.push(r),r.clearRowTop(),s[r.id]=!0,delete n.allNodesMap[r.id],e.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(t){return!s[t.id]}))}},t.prototype.executeUpdate=function(e,o,n){var r=this,s=e.update;i._.missingOrEmpty(s)||s.forEach((function(e){var i=r.lookupRowNode(e);i&&(i.updateData(e),!i.selectable&&i.isSelected()&&n.push(i),r.setMasterForRow(i,e,t.TOP_LEVEL,!1),o.update.push(i))}))},t.prototype.addRowNode=function(e,o){var n=this.createNode(e,this.rootNode,t.TOP_LEVEL);return i._.exists(o)?i._.insertIntoArray(this.rootNode.allLeafChildren,n,o):this.rootNode.allLeafChildren.push(n),n},t.prototype.lookupRowNode=function(t){var e,o=this.gridOptionsWrapper.getRowNodeIdFunc();if(i._.exists(o)){var n=o(t);if(!(e=this.allNodesMap[n]))return console.error("ag-Grid: could not find row id="+n+", data item was not found for this id"),null}else if(!(e=i._.find(this.rootNode.allLeafChildren,(function(e){return e.data===t}))))return console.error("ag-Grid: could not find data item as object was not found",t),null;return e},t.prototype.recursiveFunction=function(t,e,o){var n=this;if("string"!=typeof t){var r=[];return t.forEach((function(t){var i=n.createNode(t,e,o);r.push(i)})),r}console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},t.prototype.createNode=function(t,e,o){var n=new i.RowNode;return this.context.createBean(n),n.group=!1,this.setMasterForRow(n,t,o,!0),e&&!this.suppressParentsInRowNodes&&(n.parent=e),n.level=o,n.setDataAndId(t,this.nextId.toString()),this.allNodesMap[n.id]&&console.warn("ag-grid: duplicate node id '"+n.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[n.id]=n,this.nextId++,n},t.prototype.setMasterForRow=function(t,e,o,n){if(this.doingTreeData)t.setMaster(!1),n&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),n){var r=this.columnController.getRowGroupColumns(),i=o+(r?r.length:0);t.expanded=!!t.master&&this.isExpanded(i)}},t.prototype.isExpanded=function(t){var e=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===e||t=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.Normal=0]="Normal",t[t.AfterFilter=1]="AfterFilter",t[t.AfterFilterAndSort=2]="AfterFilterAndSort",t[t.PivotNodes=3]="PivotNodes"}(r||(r={}));var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){var t=this.refreshModel.bind(this,{step:i.Constants.STEP_EVERYTHING}),e=this.refreshModel.bind(this,{step:i.Constants.STEP_EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_EVERYTHING_CHANGED,e),this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:i.Constants.STEP_PIVOT})),this.addManagedListener(this.eventService,i.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,t);var o=this.refreshModel.bind(this,{step:i.Constants.STEP_MAP,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.gridOptionsWrapper,i.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.addManagedListener(this.gridOptionsWrapper,i.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new i.RowNode,this.nodeManager=new s(this.rootNode,this.gridOptionsWrapper,this.getContext(),this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.createBean(this.rootNode)},e.prototype.start=function(){var t=this.gridOptionsWrapper.getRowData();t&&this.setRowData(t)},e.prototype.ensureRowHeightsValid=function(t,e,o,n){var r,i=!1;do{r=!1;for(var s=this.getRowIndexAtPixel(t),a=this.getRowIndexAtPixel(e),l=Math.max(s,o),u=Math.min(a,n),p=l;p<=u;p++){var c=this.getRow(p);if(c.rowHeightEstimated){var d=this.gridOptionsWrapper.getRowHeightForNode(c);c.setRowHeight(d.height),r=!0,i=!0}}r&&this.setRowTops()}while(r);return i},e.prototype.setRowTops=function(){for(var t=0,e=0;e0;)e=e.childrenAfterSort[0];return e.rowIndex},e.prototype.getRowBounds=function(t){if(i._.missing(this.rowsToDisplay))return null;var e=this.rowsToDisplay[t];return e?{rowTop:e.rowTop,rowHeight:e.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:i.Constants.STEP_MAP,keepRenderedRows:!0,animate:t})},e.prototype.onFilterChanged=function(t){if(!t.afterDataChange){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:i.Constants.STEP_FILTER,keepRenderedRows:!0,animate:e})}},e.prototype.onSortChanged=function(){var t=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:i.Constants.STEP_SORT,keepRenderedRows:!0,animate:t,keepEditingRows:!0})},e.prototype.getType=function(){return i.Constants.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:i.Constants.STEP_PIVOT}):this.refreshModel({step:i.Constants.STEP_AGGREGATE})},e.prototype.createChangePath=function(t){var e=i._.missingOrEmpty(t),o=new i.ChangedPath(!1,this.rootNode);return(e||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},e.prototype.refreshModel=function(t){var e=this,o=this.createChangePath(t.rowNodeTransactions);switch(t.step){case i.Constants.STEP_EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,o,t.afterColumnsChanged);case i.Constants.STEP_FILTER:this.doFilter(o);case i.Constants.STEP_PIVOT:this.doPivot(o);case i.Constants.STEP_AGGREGATE:this.doAggregate(o);case i.Constants.STEP_SORT:this.doSort(t.rowNodeTransactions,o);case i.Constants.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,o),this.setRowTops();var n={type:i.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1};this.eventService.dispatchEvent(n),this.$scope&&window.setTimeout((function(){e.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var t=i._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return i._.missing(this.rootNode)||t||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return i._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(t,e){var o,n=!e,r=!1,i=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=n&&!r;if(n||a!==e&&a!==t||(n=!0),!(a.group&&s)){var u=n&&!r,p=a.isParentOfNode(o);(u||p)&&i.push(a)}l&&(a!==e&&a!==t||(r=!0,o=a===e?e:t))})),i},e.prototype.setDatasource=function(t){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(t){return this.rowsToDisplay[t]},e.prototype.isRowPresent=function(t){return this.rowsToDisplay.indexOf(t)>=0},e.prototype.getRowIndexAtPixel=function(t){if(this.isEmpty())return-1;var e=0,o=this.rowsToDisplay.length-1;if(t<=0)return 0;if(i._.last(this.rowsToDisplay).rowTop<=t)return this.rowsToDisplay.length-1;for(;;){var n=Math.floor((e+o)/2),r=this.rowsToDisplay[n];if(this.isRowInPixel(r,t))return n;r.rowTopt&&(o=n-1)}},e.prototype.isRowInPixel=function(t,e){var o=t.rowTop,n=t.rowTop+t.rowHeight;return o<=e&&n>e},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var t=i._.last(this.rowsToDisplay);return t.rowTop+t.rowHeight}return 0},e.prototype.forEachLeafNode=function(t){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(e,o){return t(e,o)}))},e.prototype.forEachNode=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,t,r.Normal,0)},e.prototype.forEachNodeAfterFilter=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,t,r.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(t){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,t,r.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(t){this.recursivelyWalkNodesAndCallback([this.rootNode],t,r.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(t,e,o,n){if(!t)return n;for(var i=0;i0&&window.setTimeout((function(){e.forEach((function(t){return t()}))}),0),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},e.prototype.updateRowData=function(t,e){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(t,e);return"number"==typeof t.addIndex&&(e=this.createRowNodeOrder()),this.commonUpdateRowData([o],e),o},e.prototype.createRowNodeOrder=function(){var t=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();if(!t){var e=t?null:{};if(this.rootNode&&this.rootNode.allLeafChildren)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 p(e,t),e.prototype.execute=function(t){var e=t.rowNode,o=t.changedPath;this.filterService.filter(o),this.selectableService.updateSelectableAfterFiltering(e)},c([Object(i.Autowired)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),c([Object(i.Autowired)("selectableService")],e.prototype,"selectableService",void 0),c([Object(i.Autowired)("filterService")],e.prototype,"filterService",void 0),e=c([Object(i.Bean)("filterStage")],e)}(i.BeanStub),h=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),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(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.execute=function(t){var e=this.sortController.getSortForRowController(),o=i._.exists(e)&&e.length>0,n=o&&i._.exists(t.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=n?this.calculateDirtyNodes(t.rowNodeTransactions):null,s=this.columnController.getValueColumns(),a=i._.missingOrEmpty(s);this.sortService.sort(e,o,n,r,t.changedPath,a)},e.prototype.calculateDirtyNodes=function(t){var e={},o=function(t){t&&t.forEach((function(t){return e[t.id]=!0}))};return t.forEach((function(t){o(t.add),o(t.update),o(t.remove)})),e},f([Object(i.Autowired)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),f([Object(i.Autowired)("sortService")],e.prototype,"sortService",void 0),f([Object(i.Autowired)("sortController")],e.prototype,"sortController",void 0),f([Object(i.Autowired)("columnController")],e.prototype,"columnController",void 0),e=f([Object(i.Bean)("sortStage")],e)}(i.BeanStub),y=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),v=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},m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.execute=function(t){var e=t.rowNode,o=[],n={value:0},r=this.columnController.isPivotMode(),i=r&&e.leafGroup,s=i?[e]:e.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,n,r,0),!i&&o.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(e),this.addRowNodeToRowsToDisplay(e.sibling,o,n,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(t,e,o,n,r){if(!i._.missingOrEmpty(t))for(var s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),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},w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C(e,t),e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(t,e,o,n,r,i){var s=this;r.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),e){var l=o?s.doDeltaSort(a,t,n,r,i):s.doFullSort(a,t);a.childrenAfterSort=l.map((function(t){return t.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(r)},e.prototype.doFullSort=function(t,e){var o=t.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return o.sort(this.compareRowNodes.bind(this,e)),o},e.prototype.mapNodeToSortedNode=function(t,e){return{currentPos:e,rowNode:t}},e.prototype.doDeltaSort=function(t,e,o,n,r){var i=t.childrenAfterSort.filter((function(t){var e=!o[t.id],i=r||n.canSkip(t);return e&&i})).map(this.mapNodeToSortedNode.bind(this)),s={};i.forEach((function(t){return s[t.rowNode.id]=t.rowNode}));var a=t.childrenAfterFilter.filter((function(t){return!s[t.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,e)),0===a.length?i:0===i.length?a:this.mergeSortedArrays(e,i,a)},e.prototype.mergeSortedArrays=function(t,e,o){for(var n=[],r=0,i=0;r=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},R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(t){var e=this.filterManager.isAnyFilterPresent();this.filterNodes(e,t)},e.prototype.filterNodes=function(t,e){var o=this,n=function(e,n){e.hasChildren()?(e.childrenAfterFilter=t&&!n?e.childrenAfterGroup.filter((function(t){var e=t.childrenAfterFilter&&t.childrenAfterFilter.length>0,n=t.data&&o.filterManager.doesRowPassFilter(t);return e||n})):e.childrenAfterGroup,o.setAllChildrenCount(e)):(e.childrenAfterFilter=e.childrenAfterGroup,e.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var r=function(t,e){if(t.childrenAfterGroup)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},D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.postConstruct=function(){this.rowModel.getType()===i.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(t){if(i._.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var e=this.gridOptionsWrapper.getRowNodeIdFunc();if(e&&!i._.missing(e)){var o={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return i._.exists(t)&&t.forEach((function(t,i){var s=e(t),a=n[s];(r&&(r[s]=i),a)?(a.data!==t&&o.update.push(t),n[s]=void 0):o.add.push(t)})),i._.iterateObject(n,(function(t,e){e&&o.remove.push(e.data)})),[o,r]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},P([Object(i.Autowired)("rowModel")],e.prototype,"rowModel",void 0),P([Object(i.Autowired)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),P([i.PostConstruct],e.prototype,"postConstruct",null),e=P([Object(i.Bean)("immutableService")],e)}(i.BeanStub),T={moduleName:i.ModuleNames.ClientSideRowModelModule,beans:[d,g,m,w,R,D],rowModels:{clientSide:u}}},function(t,e,o){"use strict";o.r(e),o.d(e,"CsvExportModule",(function(){return R})),o.d(e,"BaseCreator",(function(){return h})),o.d(e,"CsvCreator",(function(){return f})),o.d(e,"Downloader",(function(){return y})),o.d(e,"GridSerializer",(function(){return u})),o.d(e,"RowType",(function(){return r})),o.d(e,"BaseGridSerializingSession",(function(){return l})),o.d(e,"ZipContainer",(function(){return E})),o.d(e,"XmlFactory",(function(){return C}));var n,r,i=o(3),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(){function t(t){this.groupColumns=[];var e=t.columnController,o=t.valueService,n=t.gridOptionsWrapper,r=t.processCellCallback,i=t.processHeaderCallback,s=t.processGroupHeaderCallback,a=t.processRowGroupCallback;this.columnController=e,this.valueService=o,this.gridOptionsWrapper=n,this.processCellCallback=r,this.processHeaderCallback=i,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return t.prototype.prepare=function(t){this.groupColumns=i._.filter(t,(function(t){return!!t.getColDef().showRowGroup}))},t.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return null!=e?e:""},t.prototype.extractRowCellValue=function(t,e,o,n){var r,i=this.gridOptionsWrapper.isGroupMultiAutoColumn()?n.rowGroupIndex:0;r=n&&n.group&&(e===i&&-1!==this.groupColumns.indexOf(t)||0===e&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(n):this.valueService.getValue(t,n);var s=this.processCell(n,t,r,this.processCellCallback,o);return null!=s?s:""},t.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(e,"csv",!0)},t.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var e=[t.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,e.push(t.key);return e.reverse().join(" -> ")},t.prototype.processCell=function(t,e,o,n,r){return n?n({column:e,node:t,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:r}):o},t}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.serialize=function(t,e){void 0===e&&(e={});var o=e.shouldRowBeSkipped||function(){return!1},n=this.gridOptionsWrapper.getApi(),r=this.gridOptionsWrapper.getColumnApi(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=this.gridOptionsWrapper.getContext(),u=this.columnController.isPivotMode(),p=this.rowModel.getType()===i.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,c=!p&&e.onlySelected,d=[];if(d=i._.existsAndNotEmpty(e.columnKeys)?this.columnController.getGridColumns(e.columnKeys):e.allColumns&&!u?(d=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([i.Constants.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),e.customHeader&&t.addCustomContent(e.customHeader),t.prepare(d),e.columnGroups){var h=new i.GroupInstanceIdCreator,f=this.displayedGroupCreator.createDisplayedGroups(d,this.columnController.getGridBalancedTree(),h,null);this.recursivelyAddHeaderGroups(f,t,e.processGroupHeaderCallback)}if(!e.skipHeader){var g=t.onNewHeaderRow();d.forEach((function(t,e){g.onColumn(t,e,void 0)}))}(this.pinnedRowModel.forEachPinnedTopRow(y),u)?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(y):this.rowModel.forEachNode(y):e.onlySelectedAllPages||c?this.selectionController.getSelectedNodes().forEach((function(t){y(t)})):p?this.rowModel.forEachNodeAfterFilterAndSort(y):this.rowModel.forEachNode(y);function y(i){var u=a&&i.leafGroup,p=1===i.allChildrenCount&&(s||u);if((!i.group||!e.skipGroups&&!p)&&((!e.skipFooters||!i.footer)&&(!e.onlySelected||i.isSelected())&&(!e.skipPinnedTop||"top"!==i.rowPinned)&&(!e.skipPinnedBottom||"bottom"!==i.rowPinned)&&(!(-1===i.level)||i.leafGroup)&&!o({node:i,api:n,context:l}))){var c=t.onNewBodyRow();if(d.forEach((function(t,e){c.onColumn(t,e,i)})),e.getCustomContentBelowRow){var h=e.getCustomContentBelowRow({node:i,api:n,columnApi:r,context:l});h&&t.addCustomContent(h)}}}return this.pinnedRowModel.forEachPinnedBottomRow(y),e.customFooter&&t.addCustomContent(e.customFooter),t.parse()},e.prototype.recursivelyAddHeaderGroups=function(t,e,o){var n=[];t.forEach((function(t){var e=t;e.getChildren&&e.getChildren().forEach((function(t){return n.push(t)}))})),t.length>0&&t[0]instanceof i.ColumnGroup&&this.doAddHeaderHeader(e,t,o),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,e,o)},e.prototype.doAddHeaderHeader=function(t,e,o){var n=this,r=t.onNewHeaderGroupingRow(),i=0;e.forEach((function(t){var e,s=t;e=o?o({columnGroup:s,api:n.gridOptionsWrapper.getApi(),columnApi:n.gridOptionsWrapper.getColumnApi(),context:n.gridOptionsWrapper.getContext()}):n.columnController.getDisplayNameForColumnGroup(s,"header"),r.onColumn(e||"",i++,s.getLeafColumns().length-1)}))},a([Object(i.Autowired)("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),a([Object(i.Autowired)("columnController")],e.prototype,"columnController",void 0),a([Object(i.Autowired)("rowModel")],e.prototype,"rowModel",void 0),a([Object(i.Autowired)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),a([Object(i.Autowired)("selectionController")],e.prototype,"selectionController",void 0),a([Object(i.Autowired)("columnFactory")],e.prototype,"columnFactory",void 0),a([Object(i.Autowired)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=a([Object(i.Bean)("gridSerializer")],e)}(i.BeanStub);!function(t){t[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY"}(r||(r={}));var p=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),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},d=function(t){function e(e){var o=t.call(this,e)||this;o.isFirstLine=!0,o.result="";var n=e.suppressQuotes,r=e.columnSeparator;return o.suppressQuotes=n,o.columnSeparator=r,o}return p(e,t),e.prototype.addCustomContent=function(t){var e=this;t&&("string"==typeof t?(/^\s*\n/.test(t)||this.beginNewLine(),t=t.replace(/\r?\n/g,"\r\n"),this.result+=t):t.forEach((function(t){e.beginNewLine(),t.forEach((function(t,o){0!==o&&(e.result+=e.columnSeparator),e.result+=e.putInQuotes(t.data.value||""),t.mergeAcross&&e.appendEmptyCells(t.mergeAcross)}))})))},e.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},e.prototype.onNewHeaderGroupingRowColumn=function(t,e,o){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(o)},e.prototype.appendEmptyCells=function(t){for(var e=1;e<=t;e++)this.result+=this.columnSeparator+this.putInQuotes("")},e.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},e.prototype.onNewHeaderRowColumn=function(t,e,o){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(t))},e.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},e.prototype.onNewBodyRowColumn=function(t,e,o){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(t,e,i.Constants.EXPORT_TYPE_CSV,o))},e.prototype.putInQuotes=function(t){return this.suppressQuotes?t:null==t?'""':("string"==typeof t?e=t:"function"==typeof t.toString?e=t.toString():(console.warn("unknown value type during csv conversion"),e=""),'"'+e.replace(/"/g,'""')+'"');var e},e.prototype.parse=function(){return this.result},e.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},e}(l),h=function(){function t(){}return t.prototype.setBeans=function(t){this.beans=t},t.prototype.export=function(t){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var e=this.getMergedParamsAndData(t),o=e.mergedParams,n=e.data,r=o&&o.fileName&&0!==o.fileName.length?o.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.beans.downloader.download(r,this.packageFile(n)),n},t.prototype.getData=function(t){return this.getMergedParamsAndData(t).data},t.prototype.getMergedParamsAndData=function(t){var e=this.mergeDefaultParams(t);return{mergedParams:e,data:this.beans.gridSerializer.serialize(this.createSerializingSession(e),e)}},t.prototype.mergeDefaultParams=function(t){var e=this.beans.gridOptionsWrapper.getDefaultExportParams(),o={};return i._.assign(o,e),i._.assign(o,t),o},t.prototype.packageFile=function(t){return new Blob(["\ufeff",t],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},t}(),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},e.prototype.exportDataAsCsv=function(t){return this.export(t)},e.prototype.getDataAsCsv=function(t){return this.getData(t)},e.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},e.prototype.getDefaultFileName=function(){return"export.csv"},e.prototype.getDefaultFileExtension=function(){return"csv"},e.prototype.createSerializingSession=function(t){var e=this.columnController,o=this.valueService,n=this.gridOptionsWrapper,r=t.processCellCallback,i=t.processHeaderCallback,s=t.processGroupHeaderCallback,a=t.processRowGroupCallback,l=t.suppressQuotes,u=t.columnSeparator;return new d({columnController:e,valueService:o,gridOptionsWrapper:n,processCellCallback:r||void 0,processHeaderCallback:i||void 0,processGroupHeaderCallback:s||void 0,processRowGroupCallback:a||void 0,suppressQuotes:l||!1,columnSeparator:u||","})},e.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},c([Object(i.Autowired)("columnController")],e.prototype,"columnController",void 0),c([Object(i.Autowired)("valueService")],e.prototype,"valueService",void 0),c([Object(i.Autowired)("downloader")],e.prototype,"downloader",void 0),c([Object(i.Autowired)("gridSerializer")],e.prototype,"gridSerializer",void 0),c([Object(i.Autowired)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),c([i.PostConstruct],e.prototype,"postConstruct",null),e=c([Object(i.Bean)("csvCreator")],e)}(h),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(){}return t.prototype.download=function(t,e){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,t);else{var o=document.createElement("a"),n=window.URL.createObjectURL(e);o.setAttribute("href",n),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(o),window.setTimeout((function(){window.URL.revokeObjectURL(n)}),0)}},t=g([Object(i.Bean)("downloader")],t)}(),v=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),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(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.createHeader=function(t){void 0===t&&(t={});var e=["version"];return t.version||(t.version="1.0"),t.encoding&&e.push("encoding"),t.standalone&&e.push("standalone"),""},e.prototype.createXml=function(t,e){var o=this,n="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach((function(t){Object.keys(t.map).forEach((function(r){n+=o.returnAttributeIfPopulated(t.prefix+r,t.map[r],e)}))})),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach((function(r){n+=o.returnAttributeIfPopulated(r,t.properties.rawMap[r],e)})));var r="<"+t.name+n;return t.children||null!=t.textNode?null!=t.textNode?r+">"+t.textNode+""+t.name+">\r\n":(r+=">\r\n",t.children&&t.children.forEach((function(t){r+=o.createXml(t,e)})),r+""+t.name+">\r\n"):r+"/>\r\n"},e.prototype.returnAttributeIfPopulated=function(t,e,o){if(!e&&""!==e&&0!==e)return"";var n=e;return"boolean"==typeof e&&o&&(n=o(e))," "+t+'="'+n+'"'},e=m([Object(i.Bean)("xmlFactory")],e)}(i.BeanStub),O=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),w=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},b=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.folders=[],e.files=[],e.addFolder=function(t){e.folders.push({path:t,created:new Date})},e}return O(e,t),e.prototype.addFolders=function(t){t.forEach(this.addFolder)},e.prototype.addFile=function(t,e){this.files.push({path:t,created:new Date,content:e})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(t){void 0===t&&(t="application/zip");var e=this.buildFileStream(),o=this.buildUint8Array(e);return this.clearStream(),new Blob([o],{type:t})},e.prototype.buildFileStream=function(t){void 0===t&&(t="");for(var e=this.folders.concat(this.files),o=e.length,n="",r=0,i=0,s=0,a=e;s>>8^b[255&(e^o)];return-1^e},e.prototype.convertTime=function(t){var e=t.getHours();return e<<=6,e|=t.getMinutes(),e<<=5,e|=t.getSeconds()/2},e.prototype.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e|=t.getMonth()+1,e<<=5,e|=t.getDate()},e=w([Object(i.Bean)("zipContainer")],e)}(i.BeanStub),R={moduleName:i.ModuleNames.CsvExportModule,beans:[f,y,C,u,E]}},function(t,e,o){"use strict";o.r(e),o.d(e,"InfiniteRowModelModule",(function(){return g}));var n,r=o(3),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,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},a=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.cacheParams=o,n}return i(e,t),e.prototype.getDisplayIndexStart=function(){return this.getBlockNumber()*this.cacheParams.blockSize},e.prototype.getDisplayIndexEnd=function(){return this.getDisplayIndexStart()+this.cacheParams.blockSize},e.prototype.createBlankRowNode=function(e){var o=t.prototype.createBlankRowNode.call(this);return o.uiLevel=0,this.setIndexAndTopOnRowNode(o,e),o},e.prototype.setDataAndId=function(t,e,o){r._.exists(e)?t.setDataAndId(e,o.toString()):t.setDataAndId(void 0,void 0)},e.prototype.setRowNode=function(e,o){t.prototype.setRowNode.call(this,e,o),this.setIndexAndTopOnRowNode(o,e)},e.prototype.init=function(){t.prototype.init.call(this)},e.prototype.getNodeIdPrefix=function(){return null},e.prototype.getRow=function(t){return this.getRowUsingLocalIndex(t)},e.prototype.setIndexAndTopOnRowNode=function(t,e){t.setRowIndex(e),t.rowTop=this.cacheParams.rowHeight*e},e.prototype.loadFromDatasource=function(){var t=this,e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};r._.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):window.setTimeout((function(){t.cacheParams.datasource.getRows(e)}),0)},s([Object(r.Autowired)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(r.RowNodeBlock),l=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),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},p=function(t,e){return function(o,n){e(o,n,t)}},c=function(t){function e(e){return t.call(this,e)||this}return l(e,t),e.prototype.setBeans=function(t){this.logger=t.create("InfiniteCache")},e.prototype.moveItemsDown=function(t,e,o){for(var n=t.getStartRow(),r=e+o,i=t.getEndRow()-1;i>=n;i--)if(!(i=n&&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.getRowBounds=function(t){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*t}},e.prototype.ensureRowHeightsValid=function(t,e,o,n){return!1},e.prototype.init=function(){var t=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return t.destroyCache()})))},e.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},e.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},e.prototype.isLastRowFound=function(){return null!=this.infiniteCache&&this.infiniteCache.isMaxRowFound()},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,r.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,r.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,r.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},e.prototype.onFilterChanged=function(){this.reset()},e.prototype.onSortChanged=function(){this.reset()},e.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},e.prototype.isSortModelDifferent=function(){return!r._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},e.prototype.getType=function(){return r.Constants.ROW_MODEL_TYPE_INFINITE},e.prototype.setDatasource=function(t){this.destroyDatasource(),this.datasource=t,t&&this.reset()},e.prototype.isEmpty=function(){return!this.infiniteCache},e.prototype.isRowsToRender=function(){return!!this.infiniteCache},e.prototype.getNodesInRangeForSelection=function(t,e){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(t,e):[]},e.prototype.reset=function(){if(this.datasource){r._.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)}},e.prototype.createModelUpdatedEvent=function(){return{type:r.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},e.prototype.resetCache=function(){this.destroyCache();var t=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=this.createBean(new r.RowNodeBlockLoader(t,e)),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:this.defaultIfInvalid(t,2),initialRowCount:this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new r.NumberSequence},this.infiniteCache=this.createBean(new c(this.cacheParams)),this.infiniteCache.addEventListener(r.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},e.prototype.defaultIfInvalid=function(t,e){return t>0?t:e},e.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache)),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader=this.destroyBean(this.rowNodeBlockLoader))},e.prototype.onCacheUpdated=function(){var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)},e.prototype.getRow=function(t){return this.infiniteCache?this.infiniteCache.getRow(t):null},e.prototype.getRowNode=function(t){var e=null;return this.forEachNode((function(o){o.id===t&&(e=o)})),e},e.prototype.forEachNode=function(t){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(t,new r.NumberSequence)},e.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},e.prototype.getTopLevelRowCount=function(){return this.getRowCount()},e.prototype.getTopLevelRowDisplayedIndex=function(t){return t},e.prototype.getRowIndexAtPixel=function(t){if(0!==this.rowHeight){var e=Math.floor(t/this.rowHeight),o=this.getRowCount()-1;return e>o?o:e}return 0},e.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},e.prototype.updateRowData=function(t){r._.exists(t.remove)||r._.exists(t.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):r._.missing(t.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(t.addIndex,t.add)},e.prototype.isRowPresent=function(t){return!1},e.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},e.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},e.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},e.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},e.prototype.setVirtualRowCount=function(t,e){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(t,e)},e.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},h([Object(r.Autowired)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),h([Object(r.Autowired)("filterManager")],e.prototype,"filterManager",void 0),h([Object(r.Autowired)("sortController")],e.prototype,"sortController",void 0),h([Object(r.Autowired)("selectionController")],e.prototype,"selectionController",void 0),h([Object(r.Autowired)("gridApi")],e.prototype,"gridApi",void 0),h([Object(r.Autowired)("columnApi")],e.prototype,"columnApi",void 0),h([Object(r.Autowired)("rowRenderer")],e.prototype,"rowRenderer",void 0),h([r.PostConstruct],e.prototype,"init",null),h([r.PreDestroy],e.prototype,"destroyDatasource",null),e=h([Object(r.Bean)("rowModel")],e)}(r.BeanStub),g={moduleName:r.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:f}}},function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=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},v=function(t,e){return function(o,n){e(o,n,t)}},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.secondaryColumnsPresent=!1,e.gridHeaderRowCount=0,e.displayedLeftColumns=[],e.displayedRightColumns=[],e.displayedCenterColumns=[],e.allDisplayedColumns=[],e.allDisplayedVirtualColumns=[],e.allDisplayedCenterVirtualColumns=[],e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.colDefVersion=0,e.flexColsCalculatedAtLestOnce=!1,e}return g(e,t),e.prototype.init=function(){this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var t=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",this.onAutoGroupColumnDefChanged.bind(this))},e.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},e.prototype.getColDefVersion=function(){return this.colDefVersion},e.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api");var o=!!this.columnDefs;this.colDefVersion++;var n=this.compareColumnStatesAndRaiseEvents(e);this.columnDefs=t,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,i=this.columnFactory.createColumnTree(t,!0,r);this.primaryColumnTree=i.columnTree,this.primaryHeaderRowCount=i.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(e,r),this.extractPivotColumns(e,r),this.extractValueColumns(e,r),this.ready=!0,this.updateGridColumns(),o&&this.gridColsArePrimary&&this.gridOptionsWrapper.isApplyColumnDefOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(e),this.checkDisplayedVirtualColumns();var a={type:s.a.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(a);var l={type:s.a.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};n(),this.eventService.dispatchEvent(l)},e.prototype.orderGridColumnsLikePrimary=function(){var t=this;this.gridColumns.sort((function(e,o){var n=t.primaryColumns.indexOf(e),r=t.primaryColumns.indexOf(o),i=n>=0,s=r>=0;return i&&s?n-r:i?1:s?-1:t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)}))},e.prototype.isAutoRowHeightActive=function(){return this.autoRowHeightColumns&&this.autoRowHeightColumns.length>0},e.prototype.getAllAutoRowHeightCols=function(){return this.autoRowHeightColumns},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(t){for(var e=t,o=[];null!=e;)o.push(e),e=this.getDisplayedColAfter(e);return o},e.prototype.checkDisplayedVirtualColumns=function(){if(null!=this.displayedCenterColumns){var t=this.allDisplayedVirtualColumns.map((function(t){return t.getId()})).join("#");if(this.updateVirtualSets(),t!==this.allDisplayedVirtualColumns.map((function(t){return t.getId()})).join("#")){var e={type:s.a.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)}}},e.prototype.setVirtualViewportPosition=function(t,e){(t!==this.scrollWidth||e!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=e,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsWrapper.isTreeData()||(console.warn("ag-Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(t,e){if(void 0===e&&(e="api"),t!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=t,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(e);var o={type:s.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(t,e){if(!this.secondaryColumnsPresent||!this.secondaryColumns)return null;var o=this.getPrimaryColumn(e),n=null;return this.secondaryColumns.forEach((function(e){var r=e.getColDef().pivotKeys,i=e.getColDef().pivotValueColumn;Object(d.areEqual)(r,t)&&i===o&&(n=e)})),n},e.prototype.setBeans=function(t){this.logger=t.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(t){var e,o;this.gridOptionsWrapper.isEnableRtl()?(e=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,o=this.displayedRightColumns?Object(d.last)(this.displayedRightColumns):null):(e=this.displayedLeftColumns?Object(d.last)(this.displayedLeftColumns):null,o=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(n){n.setLastLeftPinned(n===e,t),n.setFirstRightPinned(n===o,t)}))},e.prototype.autoSizeColumns=function(t,e,o){var n=this;void 0===o&&(o="api"),this.animationFrameService.flushAllFrames();var r=[],i=-1;for(null==e&&(e=this.gridOptionsWrapper.isSkipHeaderOnAutoSize());0!==i;)i=0,this.actionOnGridColumns(t,(function(t){if(r.indexOf(t)>=0)return!1;var s=n.autoWidthCalculator.getPreferredWidthForColumn(t,e);if(s>0){var a=n.normaliseColumnWidth(t,s);t.setActualWidth(a,o),r.push(t),i++}return!0}),o);this.fireColumnResizedEvent(r,!0,"autosizeColumns")},e.prototype.fireColumnResizedEvent=function(t,e,o,n){if(void 0===n&&(n=null),t&&t.length){var r={type:s.a.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:n,finished:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r)}},e.prototype.autoSizeColumn=function(t,e,o){void 0===o&&(o="api"),t&&this.autoSizeColumns([t],e,o)},e.prototype.autoSizeAllColumns=function(t,e){void 0===e&&(e="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns(o,t,e)},e.prototype.getColumnsFromTree=function(t){var e=[],o=function(t){for(var n=0;n=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(t,e,o,n){for(var r,i=[],s=null,a=function(a){var l,u=e[a],p=e.length-a,c=Math.min(u.getColSpan(t),p),d=[u];if(c>1){for(var h=c-1,f=1;f<=h;f++)d.push(e[a+f]);a+=h}if(o?(l=!1,d.forEach((function(t){o(t)&&(l=!0)}))):l=!0,l){if(0===i.length&&s)!!n&&n(u)&&i.push(s);i.push(u)}s=u,r=a},l=0;le.viewportLeft}))},e.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},e.prototype.isColumnInViewport=function(t){var e=t.getLeft(),o=t.getLeft()+t.getActualWidth(),n=this.viewportLeft-200,r=this.viewportRight+200;return!(er&&o>r)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(t,e,o,n,r,i){var s=this;if(void 0===i&&(i="api"),t&&!Object(h.missingOrEmpty)(t)){var a=!1;if(t.forEach((function(t){var r=s.getPrimaryColumn(t);if(r){if(o){if(e.indexOf(r)>=0)return;e.push(r)}else{if(e.indexOf(r)<0)return;Object(d.removeFromArray)(e,r)}n(r),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var l={type:r,columns:e,column:1===e.length?e[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),e)},e.prototype.setRowGroupActive=function(t,e,o){t!==e.isRowGroupActive()&&(e.setRowGroupActive(t,o),t||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||e.setVisible(!0,o))},e.prototype.addRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.addRowGroupColumns([t],e)},e.prototype.addRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},e.prototype.removeRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},e.prototype.removeRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.removeRowGroupColumns([t],e)},e.prototype.addPivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,e)}),s.a.EVENT_COLUMN_PIVOT_CHANGED,e)},e.prototype.setPivotColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.pivotColumns,s.a.EVENT_COLUMN_PIVOT_CHANGED,(function(t,o){o.setPivotActive(t,e)}),e)},e.prototype.addPivotColumn=function(t,e){void 0===e&&(e="api"),this.addPivotColumns([t],e)},e.prototype.removePivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,e)}),s.a.EVENT_COLUMN_PIVOT_CHANGED,e)},e.prototype.removePivotColumn=function(t,e){void 0===e&&(e="api"),this.removePivotColumns([t],e)},e.prototype.setPrimaryColumnList=function(t,e,o,n,r){var i=this;e.length=0,Object(h.exists)(t)&&t.forEach((function(t){var o=i.getPrimaryColumn(t);o&&e.push(o)})),this.primaryColumns.forEach((function(t){var o=e.indexOf(t)>=0;n(o,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var s={type:o,columns:e,column:1===e.length?e[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.valueColumns,s.a.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),e)},e.prototype.setValueActive=function(t,e,o){if(t!==e.isValueActive()&&(e.setValueActive(t,o),t&&!e.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(e);e.setAggFunc(n)}},e.prototype.addValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),s.a.EVENT_COLUMN_VALUE_CHANGED,e)},e.prototype.addValueColumn=function(t,e){void 0===e&&(e="api"),t&&this.addValueColumns([t],e)},e.prototype.removeValueColumn=function(t,e){void 0===e&&(e="api"),this.removeValueColumns([t],e)},e.prototype.removeValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),s.a.EVENT_COLUMN_VALUE_CHANGED,e)},e.prototype.normaliseColumnWidth=function(t,e){return e0?r+=t.getMaxWidth():i=!1})),o>=n&&(!i||o<=r)},e.prototype.resizeColumnSets=function(t,e,o){if(!t||t.every(this.checkMinAndMaxWidthsForSet.bind(this))){var n=[],r=[];t.forEach((function(t){var e=t.width,i=t.columns,s=t.ratios,a={},l={};i.forEach((function(t){return r.push(t)}));for(var u=!0,p=0,c=function(){if(++p>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";u=!1;var t=[],o=[],n=0,r=e;i.forEach((function(e,i){if(l[e.getId()])r-=a[e.getId()];else{t.push(e);var u=s[i];n+=u,o.push(u)}}));var c=1/n;t.forEach((function(o,n){var i;n===t.length-1?i=r:(i=Math.round(s[n]*e*c),r-=i),i0&&i>o.getMaxWidth()&&(i=o.getMaxWidth(),l[o.getId()]=!0,u=!0),a[o.getId()]=i}))};u;){if("break"===c())break}i.forEach((function(t){var e=a[t.getId()];t.getActualWidth()!==e&&(t.setActualWidth(e,o),n.push(t))}))}));var i=n.length>0,s=this.refreshFlexedColumns({resizingCols:r,skipSetLeft:!0});i&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns());var a=r.concat(s);(i||e)&&this.fireColumnResizedEvent(a,e,o,s)}else if(e){var l=t&&t.length>0?t[0].columns:null;this.fireColumnResizedEvent(l,e,o)}},e.prototype.setColumnAggFunc=function(t,e,o){if(void 0===o&&(o="api"),t){var n=this.getPrimaryColumn(t);if(n){n.setAggFunc(e);var r={type:s.a.EVENT_COLUMN_VALUE_CHANGED,columns:[n],column:n,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(r)}}},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;if(n.getColGroupDef()&&n.getColGroupDef().marryChildren){var r=[];n.getLeafColumns().forEach((function(e){var o=t.indexOf(e);r.push(o)})),Math.max.apply(Math,r)-Math.min.apply(Math,r)>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,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 c.a.PINNED_LEFT:return this.leftWidth;case c.a.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedCenterColumns),e=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);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.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(t){switch(t){case c.a.PINNED_LEFT:return this.getDisplayedLeftColumns();case c.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===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===c.a.PINNED_LEFT?c.a.PINNED_LEFT:e===c.a.PINNED_RIGHT?c.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.displayedRightColumns.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.primaryColumns.map(this.createStateItemFromColumn.bind(this)),e=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(t);return this.pivotMode||this.orderColumnStateList(e),e},e.prototype.orderColumnStateList=function(t){var e=this.gridColumns.map((function(t){return t.getColId()}));t.sort((function(t,o){return e.indexOf(t.colId)-e.indexOf(o.colId)}))},e.prototype.resetColumnState=function(t,e){void 0===t&&(t=!1),void 0===e&&(e="api");var o=this.getColumnsFromTree(this.primaryColumnTree),n=[],r=1e3,i=1e3;o&&o.forEach((function(t){var e=t.getColDef(),o=null!=e.sort?e.sort:null,s=e.sortIndex,a=!!e.hide,l=e.pinned?e.pinned:null,u=e.width,p=null!=e.flex?e.flex:null,c=e.rowGroupIndex,d=e.rowGroup;null!=c||null!=d&&0!=d||(c=null,d=null);var f=e.pivotIndex,g=e.pivot;null!=f||null!=g&&0!=g||(f=null,g=null);var y=null!=e.aggFunc?e.aggFunc:null,v={colId:t.getColId(),sort:o,sortIndex:s,hide:a,pinned:l,width:u,flex:p,rowGroup:d,rowGroupIndex:c,pivot:g,pivotIndex:f,aggFunc:y};Object(h.missing)(c)&&d&&(v.rowGroupIndex=r++),Object(h.missing)(f)&&g&&(v.pivotIndex=i++),n.push(v)})),this.applyColumnState({state:n,applyOrder:!0},e)},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){this.columnAnimationService.start();var n=this.compareColumnStatesAndRaiseEvents(e);this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns.slice(),i=!0,a={},l={},u=[],p=this.rowGroupColumns.slice(),g=this.pivotColumns.slice();t.state&&t.state.forEach((function(n){var s=c.a.GROUP_AUTO_COLUMN_ID,p=n.colId;if(Object(f.startsWith)(p,s))u.push(n);else{var h=o.getPrimaryColumn(p);h?(o.syncColumnWithStateItem(h,n,t.defaultState,a,l,!1,e),Object(d.removeFromArray)(r,h)):i=!1}})),r.forEach((function(n){o.syncColumnWithStateItem(n,null,t.defaultState,a,l,!1,e)}));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),p=l>=0,c=u>=0;return p&&c?l-u:p?-1:1};if(this.rowGroupColumns.sort(y.bind(this,a,p)),this.pivotColumns.sort(y.bind(this,l,g)),this.updateGridColumns(),u.forEach((function(n){var r=o.getAutoColumn(n.colId);o.syncColumnWithStateItem(r,n,t.defaultState,null,null,!0,e)})),this.gridColsArePrimary&&t.applyOrder&&t.state){var v=t.state.map((function(t){return t.colId}));this.gridColumns.sort((function(t,e){return v.indexOf(t.getId())-v.indexOf(e.getId())})),this.putFixedColumnsFirst()}this.updateDisplayedColumns(e);var m={type:s.a.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};return this.eventService.dispatchEvent(m),n(),this.columnAnimationService.finish(),i}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.")},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=function(o,n,r,i){var s=n.map(i).sort(),a=r.map(i).sort();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)}},a=function(t){var o=[];return e.gridColumns.forEach((function(e){var n=r[e.getColId()];n&&t(n,e)&&o.push(e)})),o},l=function(t){return t.getColId()};i(s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,e.rowGroupColumns,l),i(s.a.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,e.pivotColumns,l),i(s.a.EVENT_COLUMN_VALUE_CHANGED,o.valueColumns,e.valueColumns,l);e.fireColumnResizedEvent(a((function(t,e){return t.width!=e.getActualWidth()})),!0,t);e.raiseColumnPinnedEvent(a((function(t,e){return t.pinned!=e.getPinned()})),t);e.raiseColumnVisibleEvent(a((function(t,e){return t.hide==e.isVisible()})),t);a((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={type:s.a.EVENT_COLUMN_PINNED,pinned:null,columns:t,column:null,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnVisibleEvent=function(t,e){if(t.length){var o={type:s.a.EVENT_COLUMN_VISIBLE,visible:void 0,columns:t,column:null,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnMovedEvent=function(t,e){var o=this,n=this.getColumnState(),r={};n.forEach((function(t){return r[t.colId]=t}));var i={};t.forEach((function(t){r[t.colId]&&(i[t.colId]=!0)}));var a=Object(d.filter)(t,(function(t){return i[t.colId]})),l=Object(d.filter)(n,(function(t){return i[t.colId]})),u=[];if(l.forEach((function(t,e){var n=a[e];n.colId!==t.colId&&u.push(o.getGridColumn(n.colId))})),u.length){var p={type:s.a.EVENT_COLUMN_MOVED,columns:u,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(p)}},e.prototype.syncColumnWithStateItem=function(t,e,o,n,r,i,s){if(t){var a=function(t,n){var r=e,i=o;return!r||void 0===r[t]&&void 0===r[n]?!i||void 0===i[t]&&void 0===i[n]?{value1:void 0,value2:void 0}:{value1:i[t],value2:i[n]}:{value1:r[t],value2:r[n]}},l=a("hide").value1;void 0!==l&&t.setVisible(!l,s);var u=a("pinned").value1;void 0!==u&&t.setPinned(u);var p=this.gridOptionsWrapper.getMinColWidth(),f=a("flex").value1;if(void 0!==f&&t.setFlex(f),t.getFlex()<=0){var g=a("width").value1;null!=g&&p&&g>=p&&t.setActualWidth(g,s)}var y=a("sort").value1;void 0!==y&&(y===c.a.SORT_DESC||y===c.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.setAggFunc(null),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)),"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)),"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.getColumn(t,this.primaryColumns)},e.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns)},e.prototype.getColumn=function(t,e){if(!t)return null;for(var o=0;o=0:1==f||y>=0:u=void 0!==d?d:void 0!==g?null!==g&&g>=0:e.indexOf(o)>=0;u&&((p?null!=g||null!=y:null!=g)?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&&p.push(t)})),l.forEach((function(t){p.indexOf(t)<0&&p.push(t)})),e.forEach((function(t){p.indexOf(t)<0&&o(t,!1)})),p.forEach((function(t){e.indexOf(t)<0&&o(t,!0)})),p},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={groupId:t.getGroupId(),open:t.getColGroupDef().openByDefault};e.push(o)}})),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(){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.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLikeLastPrimary()),this.addAutoGroupToGridColumns(),this.autoRowHeightColumns=this.gridColumns.filter((function(t){return t.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var t={type:s.a.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.orderGridColsLikeLastPrimary=function(){var t=this;if(!Object(h.missing)(this.lastPrimaryOrder)){var e=!0;if(this.gridColumns.forEach((function(o){t.lastPrimaryOrder.indexOf(o)>=0&&(e=!1)})),!e){var o=this.lastPrimaryOrder.filter((function(e){return t.gridColumns.indexOf(e)>=0})),n=this.gridColumns.filter((function(t){return o.indexOf(t)<0})),r=o.slice();n.forEach((function(t){var e=t.getOriginalParent();if(e){for(var o=[];!o.length&&e;){e.getLeafColumns().forEach((function(t){var e=r.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 r.indexOf(t)})),i=Math.max.apply(Math,n);Object(d.insertIntoArray)(r,t,i+1)}else r.push(t)}else r.push(t)})),this.gridColumns=r}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=this.primaryColumns.concat(this.groupAutoColumns):this.columnsForQuickFilter=this.primaryColumns},e.prototype.putFixedColumnsFirst=function(){var t=this.gridColumns.filter((function(t){return t.getColDef().lockPosition})),e=this.gridColumns.filter((function(t){return!t.getColDef().lockPosition}));this.gridColumns=t.concat(e)},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.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(t),this.refreshFlexedColumns(),this.updateVirtualSets(),this.updateBodyWidths();var e={type:s.a.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.updateDisplayedColumnsFromTrees=function(t){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(t)},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(t){var e=this,o=this.primaryColumns.slice(0),n=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].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.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(t){t.forEach((function(t){t instanceof r.a&&t.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(t,e){e.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof i.a&&e.push(t)}))},e.prototype.updateDisplayedCenterVirtualColumns=function(){this.suppressColumnVirtualisation?this.allDisplayedCenterVirtualColumns=this.displayedCenterColumns:this.allDisplayedCenterVirtualColumns=this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var t={};return this.allDisplayedVirtualColumns.forEach((function(e){t[e.getId()]=!0})),t},e.prototype.getVirtualHeaderGroupRow=function(t,e){var o;switch(t){case c.a.PINNED_LEFT:o=this.displayedLeftHeaderRows[e];break;case c.a.PINNED_RIGHT:o=this.displayedRightHeaderRows[e];break;default:o=this.displayedCentreHeaderRows[e]}return Object(h.missing)(o)&&(o=[]),o},e.prototype.updateDisplayedVirtualGroups=function(t){this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={};var e=function(o,n,r){for(var s=!1,a=0;an;return t.getFlex()&&o},i=this.displayedCenterColumns.filter((function(t){return!r(t)})),s=this.displayedCenterColumns.filter((function(t){return r(t)})),a=[];if(!s.length)return[];var l,u=[];t:for(;;){var p=s.reduce((function(t,e){return t+e.getFlex()}),0);l=this.flexViewportWidth-this.getWidthOfColsInList(i);for(var c=0;ch.getMaxWidth()&&(g=h.getMaxWidth()),g){h.setActualWidth(g,o),Object(d.removeFromArray)(s,h),a.push(h),i.push(h);continue t}u[c]=Math.round(f)}break}var y=l;return s.forEach((function(t,e){t.setActualWidth(Math.min(u[e],y),o),a.push(t),y-=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 p=u/this.getWidthOfColsInList(r),c=u,h=r.length-1;h>=0;h--){var f=r[h],g=f.getMinWidth(),y=f.getMaxWidth(),v=Math.round(f.getActualWidth()*p);v0||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(){var t=this.gridOptionsWrapper.getDefaultColDef();return null!=t&&!0===t.floatingFilter||null!=this.columnDefs&&this.columnDefs.some((function(t){return!0===t.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 p(e,t),e.prototype.calculateColInitialWidth=function(t){var e,o=this.gridOptionsWrapper,n=null!=t.minWidth?t.minWidth:o.getMinColWidth(),r=null!=t.maxWidth?t.maxWidth:o.getMaxColWidth()||Object(l.getMaxSafeInteger)(),i=Object(u.attrToNumber)(t.width),s=Object(u.attrToNumber)(t.initialWidth);return e=null!=i?i:null!=s?s:o.getColWidth(),Math.max(Math.min(e,r),n)},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 p(e,t),e.prototype.createDisplayedGroups=function(t,e,o,n,r){var i,s,a=this,u=[],p=this.mapOldGroupsById(r);return t.forEach((function(t){for(var r=a.getOriginalPathForColumn(e,t),c=[],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},p=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(){this.eTextArea.setInputAriaLabel("Input Editor"),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},e.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},e.TEMPLATE='',u([Object(i.d)("eTextArea")],e.prototype,"eTextArea",void 0),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(47),i=o(146),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.conditionToString=function(t){return null!=t.filter?""+t.filter:""+t.type},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 f}));var n,r=o(0),i=o(8),s=o(5),a=o(4),l=o(66),u=o(10),p=o(2),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)}),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 c(e,t),e.prototype.setBeans=function(t){this.logger=t.create("SelectionController"),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){Object(p.exists)(e)&&t.id!==e.id&&(Object(p.exists)(this.selectedNodes[e.id])&&(this.selectedNodes[e.id]=e))},e.prototype.syncInNewRowNode=function(t){Object(p.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.columnController.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,e){this.columnController.setColumnGroupOpened(t,e,"api")},t.prototype.getColumnGroup=function(t,e){return this.columnController.getColumnGroup(t,e)},t.prototype.getOriginalColumnGroup=function(t){return this.columnController.getOriginalColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,e){return this.columnController.getDisplayNameForColumn(t,e)||""},t.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnController.getDisplayNameForColumnGroup(t,e)||""},t.prototype.getColumn=function(t){return this.columnController.getPrimaryColumn(t)},t.prototype.applyColumnState=function(t){return this.columnController.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnController.getColumnState()},t.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},t.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnController.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnController.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnController.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,e){this.columnController.setColumnVisible(t,e,"api")},t.prototype.setColumnsVisible=function(t,e){this.columnController.setColumnsVisible(t,e,"api")},t.prototype.setColumnPinned=function(t,e){this.columnController.setColumnPinned(t,e,"api")},t.prototype.setColumnsPinned=function(t,e){this.columnController.setColumnsPinned(t,e,"api")},t.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},t.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},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.columnController.moveColumnByIndex(t,e,"api")):this.columnController.moveColumn(t,e,"api")},t.prototype.moveColumnByIndex=function(t,e){this.columnController.moveColumnByIndex(t,e,"api")},t.prototype.moveColumns=function(t,e){this.columnController.moveColumns(t,e,"api")},t.prototype.moveRowGroupColumn=function(t,e){this.columnController.moveRowGroupColumn(t,e)},t.prototype.setColumnAggFunc=function(t,e){this.columnController.setColumnAggFunc(t,e)},t.prototype.setColumnWidth=function(t,e,o){void 0===o&&(o=!0),this.columnController.setColumnWidths([{key:t,newWidth:e}],!1,o)},t.prototype.setColumnWidths=function(t,e){void 0===e&&(e=!0),this.columnController.setColumnWidths(t,!1,e)},t.prototype.setPivotMode=function(t){this.columnController.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},t.prototype.getSecondaryPivotColumn=function(t,e){return this.columnController.getSecondaryPivotColumn(t,e)},t.prototype.setValueColumns=function(t){this.columnController.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnController.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnController.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnController.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnController.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnController.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnController.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnController.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnController.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnController.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnController.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnController.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnController.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnController.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnController.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},t.prototype.autoSizeColumn=function(t,e){return this.columnController.autoSizeColumn(t,e,"api")},t.prototype.autoSizeColumns=function(t,e){return this.columnController.autoSizeColumns(t,e,"api")},t.prototype.autoSizeAllColumns=function(t){this.columnController.autoSizeAllColumns(t,"api")},t.prototype.setSecondaryColumns=function(t){this.columnController.setSecondaryColumns(t,"api")},t.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},t.prototype.getPrimaryColumns=function(){return this.columnController.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.columnController.setColumnsVisible(t,!e,"api")},t.prototype.hideColumn=function(t,e){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.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.columnController.getValueColumns()},t.prototype.removeAggregationColumn=function(t){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(t,"api")},t.prototype.removeAggregationColumns=function(t){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(t,"api")},t.prototype.addAggregationColumn=function(t){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(t,"api")},t.prototype.addAggregationColumns=function(t){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(t,"api")},t.prototype.setColumnAggFunction=function(t,e){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.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 this.columnController.applyColumnState({state:t,applyOrder:!0},"api")},i([Object(n.a)("columnController")],t.prototype,"columnController",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 w}));var n,r=o(23),i=o(54),s=o(17),a=o(5),l=o(4),u=o(41),p=o(0),c=o(8),d=o(2),h=o(10),f=o(34),g=o(7),y=o(11),v=o(9),m=(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},O=function(t,e){return function(o,n){e(o,n,t)}},w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCompsByIndex={},e.floatingTopRowComps=[],e.floatingBottomRowComps=[],e.refreshInProgress=!1,e}return m(e,t),e.prototype.registerGridCore=function(t){this.gridCore=t},e.prototype.getGridCore=function(){return this.gridCore},e.prototype.agWire=function(t){this.logger=t.create("RowRenderer")},e.prototype.registerGridComp=function(t){this.gridPanel=t,this.rowContainers=this.gridPanel.getRowContainers(),this.addManagedListener(this.eventService,a.a.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===l.a.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},e.prototype.registerCellEventListeners=function(){var t=this;this.addManagedListener(this.eventService,a.a.EVENT_CELL_FOCUSED,(function(e){t.forEachCellComp((function(t){return t.onCellFocused(e)}))})),this.addManagedListener(this.eventService,a.a.EVENT_FLASH_CELLS,(function(e){t.forEachCellComp((function(t){return t.onFlashCells(e)}))})),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_HOVER_CHANGED,(function(){t.forEachCellComp((function(t){return t.onColumnHover()}))})),this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){t.printLayout&&t.forEachCellComp((function(t){return t.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,a.a.EVENT_RANGE_SELECTION_CHANGED,(function(){t.forEachCellComp((function(t){return t.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_MOVED,(function(){t.forEachCellComp((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_PINNED,(function(){t.forEachCellComp((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_VISIBLE,(function(){t.forEachCellComp((function(t){return t.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,a.a.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},e.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(t){return t()})),this.destroyFuncsForColumnListeners.length=0},e.prototype.refreshListenersToColumnsForCellComps=function(){var t=this;this.removeGridColumnListeners();var e=this.columnController.getAllGridColumns();e&&e.forEach((function(e){var o=function(o){t.forEachCellComp((function(t){t.getColumn()===e&&o(t)}))},n=function(){o((function(t){return t.onLeftChanged()}))},r=function(){o((function(t){return t.onWidthChanged()}))},i=function(){o((function(t){return t.onFirstRightPinnedChanged()}))},a=function(){o((function(t){return t.onLastLeftPinnedChanged()}))};e.addEventListener(s.a.EVENT_LEFT_CHANGED,n),e.addEventListener(s.a.EVENT_WIDTH_CHANGED,r),e.addEventListener(s.a.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),e.addEventListener(s.a.EVENT_LAST_LEFT_PINNED_CHANGED,a),t.destroyFuncsForColumnListeners.push((function(){e.removeEventListener(s.a.EVENT_LEFT_CHANGED,n),e.removeEventListener(s.a.EVENT_WIDTH_CHANGED,r),e.removeEventListener(s.a.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),e.removeEventListener(s.a.EVENT_LAST_LEFT_PINNED_CHANGED,a)}))}))},e.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===l.a.DOM_LAYOUT_PRINT,e=t||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=e!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t,this.embedFullWidthRows=e,o&&this.redrawAfterModelUpdate()},e.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},e.prototype.onPageLoaded=function(t){Object(d.missing)(t)&&(t={type:a.a.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(t)},e.prototype.getAllCellsForColumn=function(t){var e=[];function o(o,n){var r=n.getCellForCol(t);r&&e.push(r)}return Object(h.iterateObject)(this.rowCompsByIndex,o),Object(h.iterateObject)(this.floatingBottomRowComps,o),Object(h.iterateObject)(this.floatingTopRowComps,o),e},e.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWidth)},e.prototype.refreshFloatingRows=function(t,e,o,n,r,s){var a=this;t.forEach((function(t){t.destroy()})),t.length=0,e&&e.forEach((function(e){var l=new i.a(a.$scope,r,o,n,s,e,a.beans,!1,!1,a.printLayout,a.embedFullWidthRows);l.init(),t.push(l)})),this.flushContainers(t)},e.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},e.prototype.onModelUpdated=function(t){var e={recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:!0};this.redrawAfterModelUpdate(e)},e.prototype.getRenderedIndexesForRowNodes=function(t){var e=[];return Object(d.missing)(t)||Object(h.iterateObject)(this.rowCompsByIndex,(function(o,n){var r=n.getRowNode();t.indexOf(r)>=0&&e.push(o)})),e},e.prototype.redrawRows=function(t){if(t&&0!=t.length){var e=this.getRenderedIndexesForRowNodes(t);this.removeRowComps(e),this.redrawAfterModelUpdate({recycleRows:!0})}},e.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var e=t.suppressKeepFocus?null:this.focusController.getFocusCellToUseAfterRefresh();if(Object(d.missing)(e))return null;var o=document.activeElement,n=this.gridOptionsWrapper.getDomData(o,u.a.DOM_DATA_KEY_CELL_COMP);return Object(d.missing)(n)?null:e},e.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var e=this.getCellToRestoreFocusToAfterRefresh(t);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(t);var o=!this.printLayout&&t.recycleRows,n=t.animate&&this.gridOptionsWrapper.isAnimateRows(),r=this.binRowComps(o),i=function(){if(null==e||null==r)return!1;var t=!1;return Object(h.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(),i||this.restoreFocusedCell(e),this.releaseLockOnRefresh()},e.prototype.scrollToTopIfNewData=function(t){var e=t.newData||t.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();e&&!o&&this.gridPanel.scrollToTop()},e.prototype.sizeContainerToPageHeight=function(){var t=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)t.forEach((function(t){return t.setHeight(null)}));else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.maxDivHeightScaler.setModelHeight(e);var o=this.maxDivHeightScaler.getUiContainerHeight();t.forEach((function(t){return t.setHeight(o)}))}},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.focusController.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0)},e.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.forEachRowComp((function(e,o){o.stopEditing(t)}))},e.prototype.forEachCellComp=function(t){this.forEachRowComp((function(e,o){return o.forEachCellComp(t)}))},e.prototype.forEachRowComp=function(t){Object(h.iterateObject)(this.rowCompsByIndex,t),Object(h.iterateObject)(this.floatingTopRowComps,t),Object(h.iterateObject)(this.floatingBottomRowComps,t)},e.prototype.addRenderedRowListener=function(t,e,o){var n=this.rowCompsByIndex[e];n&&n.addEventListener(t,o)},e.prototype.flashCells=function(t){void 0===t&&(t={});var e=t.flashDelay,o=t.fadeDelay;this.forEachCellCompFiltered(t.rowNodes,t.columns,(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.forEachCellCompFiltered(t.rowNodes,t.columns,(function(t){return t.refreshCell(e)}))},e.prototype.getCellRendererInstances=function(t){var e=[];return this.forEachCellCompFiltered(t.rowNodes,t.columns,(function(t){var o=t.getCellRenderer();o&&e.push(o)})),e},e.prototype.getCellEditorInstances=function(t){var e=[];return this.forEachCellCompFiltered(t.rowNodes,t.columns,(function(t){var o=t.getCellEditor();o&&e.push(o)})),e},e.prototype.getEditingCells=function(){var t=[];return this.forEachCellComp((function(e){if(e.isEditing()){var o=e.getCellPosition();t.push(o)}})),t},e.prototype.forEachCellCompFiltered=function(t,e,o){var n,r,i=this;Object(d.exists)(t)&&(n={top:{},bottom:{},normal:{}},t.forEach((function(t){t.rowPinned===l.a.PINNED_TOP?n.top[t.id]=!0:t.rowPinned===l.a.PINNED_BOTTOM?n.bottom[t.id]=!0:n.normal[t.id]=!0}))),Object(d.exists)(e)&&(r={},e.forEach((function(t){var e=i.columnController.getGridColumn(t);Object(d.exists)(e)&&(r[e.getId()]=!0)})));var s=function(t){var e=t.getRowNode(),i=e.id,s=e.rowPinned;if(Object(d.exists)(n))if(s===l.a.PINNED_BOTTOM){if(!n.bottom[i])return}else if(s===l.a.PINNED_TOP){if(!n.top[i])return}else if(!n.normal[i])return;t.forEachCellComp((function(t){var e=t.getColumn().getId();r&&!r[e]||o(t)}))};Object(h.iterateObject)(this.rowCompsByIndex,(function(t,e){s(e)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},e.prototype.destroy=function(){var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e),t.prototype.destroy.call(this)},e.prototype.binRowComps=function(t){var e,o=this,n={};return t?(e=[],Object(h.iterateObject)(this.rowCompsByIndex,(function(t,r){var i=r.getRowNode();Object(d.exists)(i.id)?(n[i.id]=r,delete o.rowCompsByIndex[t]):e.push(t)}))):e=Object.keys(this.rowCompsByIndex),this.removeRowComps(e),n},e.prototype.removeRowComps=function(t){var e=this;t.forEach((function(t){e.rowCompsByIndex[t].destroy(),delete e.rowCompsByIndex[t]}))},e.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},e.prototype.removeRowCompsNotToDraw=function(t){var e={};t.forEach((function(t){return e[t]=!0}));var o=Object.keys(this.rowCompsByIndex).filter((function(t){return!e[t]}));this.removeRowComps(o)},e.prototype.calculateIndexesToDraw=function(t){var e=this,o=Object(f.createArrayOfNumbers)(this.firstRenderedRow,this.lastRenderedRow),n=function(t,n){var r=Number(t);(re.lastRenderedRow)&&e.doNotUnVirtualiseRow(n)&&o.push(r)};return Object(h.iterateObject)(this.rowCompsByIndex,n),Object(h.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.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var r=this.calculateIndexesToDraw(t);this.removeRowCompsNotToDraw(r),this.printLayout&&(e=!1);var i=[],s=[];r.forEach((function(r){var a=n.createOrUpdateRowComp(r,t,e,o);Object(d.exists)(a)&&(s.push(a),Object(g.pushAll)(i,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),Object(y.executeNextVMTurn)(i),o&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask(this.destroyRowComps.bind(this,t,e)):this.destroyRowComps(t,e),this.checkAngularCompile(),this.gridPanel.updateRowCount()},e.prototype.flushContainers=function(t){Object(h.iterateObject)(this.rowContainers,(function(t,e){e&&e.flushRowTemplates()})),t.forEach((function(t){return t.afterFlush()}))},e.prototype.onDisplayedColumnsChanged=function(){var t=this.columnController.isPinningLeft(),e=this.columnController.isPinningRight();(this.pinningLeft!==t||e!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=e,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},e.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];Object(h.iterateObject)(this.rowCompsByIndex,(function(e,o){if(o.isFullWidth()){var n=o.getRowNode().rowIndex;t.push(n.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(t),this.redrawAfterScroll()},e.prototype.refreshFullWidthRows=function(t){var e=[],o=!!t,n=o?{}:void 0;o&&t.forEach((function(t){return n[t.id]=!0})),Object(h.iterateObject)(this.rowCompsByIndex,(function(t,r){if(r.isFullWidth()){var i=r.getRowNode();if(o){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.removeRowComps(e),this.redrawAfterScroll()},e.prototype.createOrUpdateRowComp=function(t,e,o,n){var r,i=this.rowCompsByIndex[t];if(i||(r=this.paginationProxy.getRow(t),Object(d.exists)(r)&&Object(d.exists)(e)&&e[r.id]&&r.alreadyRendered&&(i=e[r.id],e[r.id]=null)),!i){if(r||(r=this.paginationProxy.getRow(t)),!Object(d.exists)(r))return;i=this.createRowComp(r,o,n)}else i.ensureDomOrder();return r&&(r.alreadyRendered=!0),this.rowCompsByIndex[t]=i,i},e.prototype.destroyRowComps=function(t,e){var o=[];Object(h.iterateObject)(t,(function(t,n){n&&(n.destroy(e),Object(g.pushAll)(o,n.getAndClearDelayedDestroyFunctions()))})),Object(y.executeInAWhile)(o)},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.paginationProxy.getPixelOffset(),r=this.maxDivHeightScaler.getOffset(),i=this.gridPanel.getVScrollPosition(),s=i.top,u=i.bottom,p=this.gridOptionsWrapper.getRowBufferInPixels(),c=s+n+r-p,d=u+n+r+p;this.ensureAllRowsInRangeHaveHeightsCalculated(c,d);var h=this.paginationProxy.getRowIndexAtPixel(c),f=this.paginationProxy.getRowIndexAtPixel(d),g=this.paginationProxy.getPageFirstRow(),y=this.paginationProxy.getPageLastRow();hy&&(f=y),t=h,e=f}else t=0,e=-1;var v=this.gridOptionsWrapper.getDomLayout()===l.a.DOM_LAYOUT_NORMAL,m=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),C=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);v&&!m&&e-t>C&&(e=t+C);var O=t!==this.firstRenderedRow,w=e!==this.lastRenderedRow;if(O||w){this.firstRenderedRow=t,this.lastRenderedRow=e;var b={type:a.a.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(b)}if(this.paginationProxy.isRowsToRender()){var E={type:a.a.EVENT_FIRST_DATA_RENDERED,firstRow:t,lastRow:e,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return o.eventService.dispatchEventOnce(E)}),50)}},e.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,e){this.paginationProxy.ensureRowHeightsValid(t,e,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},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.focusController.isRowNodeFocused(e),n=t.isEditing(),r=e.detail;return!!(o||n||r)&&!!this.paginationProxy.isRowPresent(e)},e.prototype.createRowComp=function(t,e,o){var n=this.gridOptionsWrapper.isSuppressAnimationFrame(),r=o&&!n&&!this.printLayout,s=new i.a(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,t,this.beans,e,r,this.printLayout,this.embedFullWidthRows);return s.init(),s},e.prototype.getRenderedNodes=function(){var t=this.rowCompsByIndex;return Object.keys(t).map((function(e){return t[e].getRowNode()}))},e.prototype.navigateToNextCell=function(t,e,o,n){for(var r=o,i=!1;r&&(r===o||!this.isValidNavigateCell(r));)this.gridOptionsWrapper.isEnableRtl()?e===v.a.LEFT&&(r=this.getLastCellOfColSpan(r)):e===v.a.RIGHT&&(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextCellToFocus(e,r),i=Object(d.missing)(r);if(i&&t&&t.keyCode===v.a.UP&&(r={rowIndex:-1,rowPinned:null,column:o.column}),n){var s=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(Object(d.exists)(s)){var a=s({key:e,previousCellPosition:o,nextCellPosition:r||null,event:t});Object(d.exists)(a)?(a.floating&&(Object(y.doOnce)((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),a.rowPinned=a.floating),r={rowPinned:a.rowPinned,rowIndex:a.rowIndex,column:a.column}):r=null}}if(r)if(r.rowIndex<0){var l=this.beans.headerNavigationService.getHeaderRowCount();this.focusController.focusHeaderPosition({headerRowIndex:l+r.rowIndex,column:o.column})}else{this.ensureCellVisible(r);var u=this.getComponentForCell(r);u&&(r=u.getCellPosition(),this.ensureCellVisible(r),this.focusController.setFocusedCell(r.rowIndex,r.column,r.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(r))}},e.prototype.isValidNavigateCell=function(t){var e=this.rowPositionUtils.getRowNode(t);if(e.detail||e.isFullWidthCell())return!1;if(!e.group)return!0;var o=this.columnController.isPivotMode();return!this.gridOptionsWrapper.isGroupUseEntireRow(o)},e.prototype.getLastCellOfColSpan=function(t){var e=this.getComponentForCell(t);if(!e)return t;var o=e.getColSpanningList();return 1===o.length?t:{rowIndex:t.rowIndex,column:Object(g.last)(o),rowPinned:t.rowPinned}},e.prototype.ensureCellVisible=function(t){Object(d.missing)(t.rowPinned)&&this.gridPanel.ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridPanel.ensureColumnVisible(t.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},e.prototype.startEditingCell=function(t,e,o){var n=this.getComponentForCell(t);n&&n.startRowOrCellEdit(e,o)},e.prototype.getComponentForCell=function(t){var e;switch(t.rowPinned){case l.a.PINNED_TOP:e=this.floatingTopRowComps[t.rowIndex];break;case l.a.PINNED_BOTTOM:e=this.floatingBottomRowComps[t.rowIndex];break;default:e=this.rowCompsByIndex[t.rowIndex]}return e?e.getRenderedCellForColumn(t.column):null},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.onTabKeyDown=function(t,e){var o=e.shiftKey;if(this.moveToCellAfter(t,o))e.preventDefault();else if(o){var n=t.getCellPosition(),r=n.rowIndex;if(n.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow()){e.preventDefault();var i=this.beans.headerNavigationService.getHeaderRowCount()-1,s=Object(g.last)(this.columnController.getAllDisplayedColumns());this.focusController.focusHeaderPosition({headerRowIndex:i,column:s})}}else t.focusCell(!0),this.focusController.focusNextGridCoreContainer(!1)&&e.preventDefault()},e.prototype.tabToNextCell=function(t){var e=this.focusController.getFocusedCell();if(Object(d.missing)(e))return!1;var o=this.getComponentForCell(e);return!Object(d.missing)(o)&&this.moveToCellAfter(o,t)},e.prototype.moveToCellAfter=function(t,e){return(t.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(t,e):this.moveToNextEditingCell(t,e):this.moveToNextCellNotEditing(t,e))||!!this.focusController.getFocusedHeader()},e.prototype.moveToNextEditingCell=function(t,e){var o=t.getCellPosition();t.stopEditing();var n=this.findNextCellToFocusOn(o,e,!0),r=Object(d.exists)(n);return r&&(n.startEditingIfEnabled(null,null,!0),n.focusCell(!1)),r},e.prototype.moveToNextEditingRow=function(t,e){var o=t.getCellPosition(),n=this.findNextCellToFocusOn(o,e,!0),r=Object(d.exists)(n);return r&&this.moveEditToNextCellOrRow(t,n),r},e.prototype.moveToNextCellNotEditing=function(t,e){var o=t.getCellPosition(),n=this.findNextCellToFocusOn(o,e,!1),r=Object(d.exists)(n);return r&&n.focusCell(!0),r},e.prototype.moveEditToNextCellOrRow=function(t,e){var o=t.getCellPosition(),n=e.getCellPosition();if(o.rowIndex===n.rowIndex&&o.rowPinned===n.rowPinned)t.setFocusOutOnEditor(),e.setFocusInOnEditor();else{var r=t.getRenderedRow(),i=e.getRenderedRow();t.setFocusOutOnEditor(),r.stopEditing(),i.startRowEditing(),e.setFocusInOnEditor()}e.focusCell()},e.prototype.findNextCellToFocusOn=function(t,e,o){for(var n=t;;){e||(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextTabbedCell(n,e);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if(Object(d.exists)(r)){var i=r({backwards:e,editing:o,previousCellPosition:t,nextCellPosition:n||null});Object(d.exists)(i)?(i.floating&&(Object(y.doOnce)((function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),i.rowPinned=i.floating),n={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}):n=null}if(!n)return null;if(n.rowIndex<0){var s=this.beans.headerNavigationService.getHeaderRowCount();return this.focusController.focusHeaderPosition({headerRowIndex:s+n.rowIndex,column:n.column}),null}if(o){var a=this.lookupRowNodeForCell(n);if(!n.column.isCellEditable(a))continue}Object(d.missing)(n.rowPinned)&&this.gridPanel.ensureIndexVisible(n.rowIndex),n.column.isPinned()||this.gridPanel.ensureColumnVisible(n.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var l=this.getComponentForCell(n);if(!Object(d.missing)(l)&&!l.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(n),l}},e.prototype.lookupRowNodeForCell=function(t){return t.rowPinned===l.a.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):t.rowPinned===l.a.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},C([Object(p.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),C([Object(p.a)("columnController")],e.prototype,"columnController",void 0),C([Object(p.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),C([Object(p.a)("$scope")],e.prototype,"$scope",void 0),C([Object(p.a)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),C([Object(p.a)("rowModel")],e.prototype,"rowModel",void 0),C([Object(p.a)("loggerFactory")],e.prototype,"loggerFactory",void 0),C([Object(p.a)("focusController")],e.prototype,"focusController",void 0),C([Object(p.a)("cellNavigationService")],e.prototype,"cellNavigationService",void 0),C([Object(p.a)("columnApi")],e.prototype,"columnApi",void 0),C([Object(p.a)("gridApi")],e.prototype,"gridApi",void 0),C([Object(p.a)("beans")],e.prototype,"beans",void 0),C([Object(p.a)("maxDivHeightScaler")],e.prototype,"maxDivHeightScaler",void 0),C([Object(p.a)("animationFrameService")],e.prototype,"animationFrameService",void 0),C([Object(p.a)("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),C([Object(p.d)("rangeController")],e.prototype,"rangeController",void 0),C([O(0,Object(p.h)("loggerFactory"))],e.prototype,"agWire",null),e=C([Object(p.b)("rowRenderer")],e)}(c.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(39),i=o(0),s=o(36),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;return o.getGuiCalledOnChild=!1,o.cellEditor=e,o}return a(e,t),e.prototype.onKeyDown=function(t){Object(s.isUserSuppressingKeyboardEvent)(this.gridOptionsWrapper,t,this.params.node,this.params.column,!0)||this.params.onKeyDown(t)},e.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),t.prototype.getGui.call(this)},e.prototype.init=function(o){var n=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getGui(),e.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){return n.destroyBean(n.cellEditor)})),this.addManagedListener(t.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},e.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},e.prototype.getValue=function(){return this.cellEditor.getValue()},e.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},e.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},e.prototype.getPopupPosition=function(){if(this.cellEditor.getPopupPosition)return this.cellEditor.getPopupPosition()},e.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},e.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},e.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",l([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return m}));var n,r=o(23),i=o(0),s=o(74),a=o(5),l=o(6),u=o(4),p=o(1),c=o(33),d=o(40),h=o(2),f=o(36),g=o(58),y=(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)}),v=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},m=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.headerContainers=new Map,o}return y(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.printLayout=this.gridOptionsWrapper.getDomLayout()===u.a.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this),this.registerHeaderContainer(new s.a(this.eHeaderContainer,this.eHeaderViewport,null),"center"),this.registerHeaderContainer(new s.a(this.ePinnedLeftHeader,null,u.a.PINNED_LEFT),"left"),this.registerHeaderContainer(new s.a(this.ePinnedRightHeader,null,u.a.PINNED_RIGHT),"right"),this.headerContainers.forEach((function(t){return e.createManagedBean(t)})),this.headerNavigationService.registerHeaderRoot(this),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},e.prototype.registerGridComp=function(t){this.gridPanel=t,this.headerContainers.forEach((function(e){return e.setupDragAndDrop(t)}))},e.prototype.registerHeaderContainer=function(t,e){this.headerContainers.set(e,t)},e.prototype.onTabKeyDown=function(t){var e=this.gridOptionsWrapper.isEnableRtl(),o=t.shiftKey!==e?d.a.LEFT:d.a.RIGHT,n=this.focusController.getFocusedHeader(),r=n.headerRowIndex,i=n.column;Object(f.isUserSuppressingHeaderKeyboardEvent)(this.gridOptionsWrapper,t,r,i)||(this.headerNavigationService.navigateHorizontally(o,!0,t)||this.focusController.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},e.prototype.handleKeyDown=function(t){var e,o=this.focusController.getFocusedHeader(),n=o.headerRowIndex,r=o.column;if(!Object(f.isUserSuppressingHeaderKeyboardEvent)(this.gridOptionsWrapper,t,n,r))switch(t.key){case g.a.LEFT:e=d.a.LEFT;case g.a.RIGHT:Object(h.exists)(e)||(e=d.a.RIGHT),this.headerNavigationService.navigateHorizontally(e,!1,t);break;case g.a.UP:e=d.a.UP;case g.a.DOWN:Object(h.exists)(e)||(e=d.a.DOWN),this.headerNavigationService.navigateVertically(e,null,t)&&t.preventDefault();break;default:return}},e.prototype.onFocusOut=function(t){var e=t.relatedTarget,o=this.getGui();!e&&o.contains(document.activeElement)||o.contains(e)||this.focusController.clearFocusedHeader()},e.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===u.a.DOM_LAYOUT_PRINT;this.printLayout!==t&&(this.printLayout=t,this.refreshHeader())},e.prototype.setHorizontalScroll=function(t){this.eHeaderContainer.style.transform="translateX("+t+"px)"},e.prototype.forEachHeaderElement=function(t){this.headerContainers.forEach((function(e){return e.forEachHeaderElement(t)}))},e.prototype.refreshHeader=function(){this.headerContainers.forEach((function(t){return t.refresh()}))},e.prototype.onPivotModeChanged=function(){var t=this.columnController.isPivotMode();Object(p.addOrRemoveCssClass)(this.getGui(),"ag-pivot-on",t),Object(p.addOrRemoveCssClass)(this.getGui(),"ag-pivot-off",!t)},e.prototype.setHeight=function(t){var e=t+1+"px";this.getGui().style.height=e,this.getGui().style.minHeight=e},e.prototype.addPreventHeaderScroll=function(){var t=this;this.addManagedListener(this.eHeaderViewport,"scroll",(function(){var e=t.eHeaderViewport.scrollLeft;0!==e&&(t.gridPanel.scrollHorizontally(e),t.eHeaderViewport.scrollLeft=0)}))},e.prototype.getHeaderContainers=function(){return this.headerContainers},e.prototype.setHeaderContainerWidth=function(t){this.eHeaderContainer.style.width=t+"px"},e.prototype.setLeftVisible=function(t){Object(p.setDisplayed)(this.ePinnedLeftHeader,t)},e.prototype.setRightVisible=function(t){Object(p.setDisplayed)(this.ePinnedRightHeader,t)},e.TEMPLATE='',v([Object(l.d)("ePinnedLeftHeader")],e.prototype,"ePinnedLeftHeader",void 0),v([Object(l.d)("ePinnedRightHeader")],e.prototype,"ePinnedRightHeader",void 0),v([Object(l.d)("eHeaderContainer")],e.prototype,"eHeaderContainer",void 0),v([Object(l.d)("eHeaderViewport")],e.prototype,"eHeaderViewport",void 0),v([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),v([Object(i.a)("columnController")],e.prototype,"columnController",void 0),v([Object(i.a)("gridApi")],e.prototype,"gridApi",void 0),v([Object(i.a)("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),v([Object(i.a)("headerNavigationService")],e.prototype,"headerNavigationService",void 0),e}(c.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 h}));var n,r,i=o(18),s=o(0),a=o(98),l=o(99),u=o(4),p=o(8),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)}),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};!function(t){t[t.ColumnMove=0]="ColumnMove",t[t.Pivot=1]="Pivot"}(r||(r={}));var h=function(t){function e(e,o){var n=t.call(this)||this;return n.dropListeners={},n.pinned=e,n.eContainer=o,n}return c(e,t),e.prototype.registerGridComp=function(t){switch(this.gridPanel=t,this.moveColumnController.registerGridComp(t),this.pinned){case u.a.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case u.a.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(t){return t===i.b.HeaderCell||t===i.b.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=this.createBean(new a.a(this.pinned,this.eContainer));var t=new l.a(this.pinned);this.createBean(t),this.dropListeners[r.ColumnMove]=this.moveColumnController,this.dropListeners[r.Pivot]=t,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(t){return this.columnController.isPivotMode()&&t.dragSource.type===i.b.ToolPanel?r.Pivot:r.ColumnMove},e.prototype.onDragEnter=function(t){var e=this.getDropType(t);this.currentDropListener=this.dropListeners[e],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)},d([Object(s.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),d([Object(s.a)("columnController")],e.prototype,"columnController",void 0),d([Object(s.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),d([s.e],e.prototype,"init",null),e}(p.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n=o(0),r=o(4),i=o(18),s=o(2),a=o(7),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.registerGridComp=function(t){this.gridPanel=t},t.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},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.columnController.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.columnController.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.gridPanel.getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.gridPanel.getCenterViewportScrollLeft(),o=e+this.gridPanel.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.columnController.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.columnController.sortColumnsLikeGridColumns(l);var u=this.calculateValidMoves(l,a,n),p=this.calculateOldIndex(l);if(0!==u.length){var c=u[0],d=null!==p&&!r;if(t==i.b.HeaderCell&&(d=null!==p),d){if(s&&c>=p)return;if(a&&c<=p)return}for(var h=0;h0){for(var h=0;h0){var f=l[p-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.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(i.a.ICON_MOVE))},t.prototype.moveInterval=function(){var t,e;if(this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100),this.needToMoveLeft?e=this.gridPanel.scrollHorizontally(-t):this.needToMoveRight&&(e=this.gridPanel.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(i.a.ICON_PINNED),this.failedMoveAttempts>7)){var n=this.needToMoveLeft?r.a.PINNED_LEFT:r.a.PINNED_RIGHT;this.setColumnsPinned(o,n,"uiColumnDragged"),this.dragAndDropService.nudge()}}},l([Object(n.a)("loggerFactory")],t.prototype,"loggerFactory",void 0),l([Object(n.a)("columnController")],t.prototype,"columnController",void 0),l([Object(n.a)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),l([Object(n.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",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(18),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;(this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly())||t.dragItem.columns.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.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},i([Object(r.a)("columnController")],t.prototype,"columnController",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 m}));var n,r=o(24),i=o(0),s=o(5),a=o(15),l=o(16),u=o(7),p=o(8),c=o(73),d=o(2),h=o(10),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(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},e.prototype.setFilterModel=function(t){var e=this,o=[];if(t){var n=Object(c.convertToSet)(Object.keys(t));this.allAdvancedFilters.forEach((function(r,i){var s=t[i];o.push(e.setModelOnFilterWrapper(r.filterPromise,s)),n.delete(i)})),n.forEach((function(n){var r=e.columnController.getPrimaryColumn(n);if(r){var i=e.getOrCreateFilterWrapper(r,"NO_UI");o.push(e.setModelOnFilterWrapper(i.filterPromise,t[n]))}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+n)}))}else this.allAdvancedFilters.forEach((function(t){o.push(e.setModelOnFilterWrapper(t.filterPromise,null))}));r.c.all(o).then((function(){return e.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(t,e){return new r.c((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.c.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,this.allAdvancedFilters.forEach((function(e){e.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))&&t.activeAdvancedFilters.push(e.filterPromise.resolveNow(null,(function(t){return t})))}))},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.externalFilterPresent},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,e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(t))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(t))&&!(this.isAdvancedFilterPresent()&&!this.doAdvancedFiltersPass(t,e)))},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.columnController.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(t){return n.onFilterChanged(o,t)},doesRowPassOtherFilter:function(t){return n.doesRowPassOtherFilters(o,t)}}),p=this.userComponentFactory.newFilterComponent(i,u,r);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(),column:t,colDef:Object(h.cloneObject)(e),rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(t),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return o&&(n.$scope=o),n},e.prototype.createFilterWrapper=function(t,e){var o={column:t,filterPromise:null,scope:null,compiledElement:null,guiPromise:r.c.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.c((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;this.allAdvancedFilters.forEach((function(o){!t.columnController.getPrimaryColumn(o.column)&&(e=!0,t.disposeFilterWrapper(o,"filterDestroyed"))})),e&&this.onFilterChanged()},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())},e.prototype.disposeFilterWrapper=function(t,e){var o=this;t.filterPromise.then((function(n){(n.setModel(null)||r.c.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)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),v([Object(i.a)("valueService")],e.prototype,"valueService",void 0),v([Object(i.a)("columnController")],e.prototype,"columnController",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)}(p.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(0),i=o(5),s=o(8),a=o(10),l=o(2),u=o(11),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)}),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},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialised=!1,e}return p(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,p=e.groupData&&void 0!==e.groupData[l],c=!n&&e.aggData&&void 0!==e.aggData[l];if(o&&i.filterValueGetter?r=this.executeFilterValueGetter(i.filterValueGetter,u,t,e):this.gridOptionsWrapper.isTreeData()&&c?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()):p?r=e.groupData[l]:c?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)}return r}},e.prototype.setValue=function(t,e,o,n){var r=this.columnController.getPrimaryColumn(e);if(t&&r){Object(l.missing)(t.data)&&(t.data={});var s=r.getColDef(),a=s.field,u=s.newValueHandler,p=s.valueSetter;if(Object(l.missing)(a)&&Object(l.missing)(u)&&Object(l.missing)(p))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var c,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===(c=u&&Object(l.exists)(u)?u(d):Object(l.exists)(p)?this.expressionService.evaluate(p,d):this.setValueUsingField(t.data,a,o,r.isFieldContainsDots()))&&(c=!0),c){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,colDef:d.colDef,columnApi:d.columnApi,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.columnController.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=n?n({value:o}):o;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},c([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),c([Object(r.a)("expressionService")],e.prototype,"expressionService",void 0),c([Object(r.a)("columnController")],e.prototype,"columnController",void 0),c([Object(r.a)("valueCache")],e.prototype,"valueCache",void 0),c([r.e],e.prototype,"init",null),e=c([Object(r.b)("valueService")],e)}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return f}));var n=o(23),r=o(4),i=o(0),s=o(15),a=o(16),l=o(10),u=o(2),p=o(26),c=o(11),d=o(24),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(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerGridComp=function(t){this.gridPanel=t},t.prototype.registerGridCore=function(t){this.gridCore=t},t.prototype.registerHeaderRootComp=function(t){this.headerRootComp=t},t.prototype.init=function(){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}},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(l.iterateObject)(this.detailGridInfoMap,(function(o,n){Object(u.exists)(n)&&(t(n,e),e++)}))},t.prototype.getDataAsCsv=function(t){if(a.a.assertRegistered(s.a.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){a.a.assertRegistered(s.a.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getDataAsExcel=function(t){if(a.a.assertRegistered(s.a.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(t)},t.prototype.exportDataAsExcel=function(t){a.a.assertRegistered(s.a.ExcelExportModule,"api.exportDataAsExcel")&&this.excelCreator.exportDataAsExcel(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.setServerSideDatasource=function(t){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.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);this.rowRenderer.refreshFullWidthRows(r.update)}else this.selectionController.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.columnController.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.gridPanel.getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},t.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},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={}),t&&t.rowNodes?this.rowRenderer.redrawRows(t.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},t.prototype.timeFullRedraw=function(t){void 0===t&&(t=1);var e=0,o=0,n=0,r=this;!function i(){var s=(new Date).getTime();r.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var r=(new Date).getTime(),l=a-s,u=r-a;console.log("duration: processing = "+l+"ms, reflow = "+u+"ms"),e++,o+=l,n+=u,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},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(8),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},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.popupList=[],e}return c(e,t),e.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,i.a.EVENT_KEYBOARD_FOCUS,(function(){Object(l.forEach)(t.popupList,(function(t){return Object(a.addCssClass)(t.element,"ag-keyboard-focus")}))})),this.addManagedListener(this.eventService,i.a.EVENT_MOUSE_FOCUS,(function(){Object(l.forEach)(t.popupList,(function(t){return Object(a.removeCssClass)(t.element,"ag-keyboard-focus")}))}))},e.prototype.registerGridCore=function(t){this.gridCore=t},e.prototype.getPopupParent=function(){var t=this.gridOptionsWrapper.getPopupParent();return t||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(t){var e=t.eventSource.getBoundingClientRect(),o=this.getParentRect(),n=this.keepYWithinBounds(t,e.top-o.top),r=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=r+"px";var i,s=o.right-o.left-r;function a(){return e.right-o.left-2}function l(){return e.left-o.left-r}this.gridOptionsWrapper.isEnableRtl()?((i=l())<0&&(i=a()),i>s&&(i=0)):((i=a())>s&&(i=l()),i<0&&(i=0)),t.ePopup.style.left=i+"px",t.ePopup.style.top=n+"px"},e.prototype.positionPopupUnderMouseEvent=function(t){var e=this.calculatePointerAlign(t.mouseEvent),o=e.x,n=e.y,r=t.ePopup,i=t.nudgeX,s=t.nudgeY;this.positionPopup({ePopup:r,x:o,y:n,nudgeX:i,nudgeY:s,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,minWidth:t.minWidth,minHeight:t.minHeight,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,minWidth:t.minWidth,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.x,o=t.y;t.nudgeX&&(e+=t.nudgeX),t.nudgeY&&(o+=t.nudgeY),t.keepWithinBounds&&(e=this.keepXWithinBounds(t,e),o=this.keepYWithinBounds(t,o)),t.ePopup.style.left=e+"px",t.ePopup.style.top=o+"px"},e.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},e.prototype.getParentRect=function(){var t=this.getPopupParent(),e=this.gridOptionsWrapper.getDocument();t===e.body&&(t=e.documentElement);var o=getComputedStyle(t),n=t.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.keepYWithinBounds=function(t,e){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),l=r===o.body,u=Math.min(200,i.height),p=0;t.minHeight&&t.minHeight0&&(u=t.ePopup.clientHeight,p=Object(a.getAbsoluteHeight)(t.ePopup)-u);var c=l?Object(a.getAbsoluteHeight)(n)+n.scrollTop:i.height;l&&(c-=Math.abs(s.top-i.top));var d=c-u-p;return Math.min(Math.max(e,0),Math.abs(d))},e.prototype.keepXWithinBounds=function(t,e){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,r=this.getPopupParent(),i=r.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),l=r===o.body,u=t.ePopup,p=Math.min(200,i.width),c=0;t.minWidth&&t.minWidth0&&(p=u.offsetWidth,u.style.minWidth=p+"px",c=Object(a.getAbsoluteWidth)(u)-p);var d=l?Object(a.getAbsoluteWidth)(n)+n.scrollLeft:i.width;l&&(d-=Math.abs(s.left-i.left));var h=d-p-c;return Math.min(Math.max(e,0),Math.abs(h))},e.prototype.keepPopupPositionedRelativeTo=function(t){var e=this.getPopupParent(),o=e.getBoundingClientRect(),n=t.element.getBoundingClientRect(),r=o.top-n.top,i=r,s=t.ePopup.style.top,a=parseInt(s.substring(0,s.length-1),10),l=window.setInterval((function(){var o=e.getBoundingClientRect(),n=t.element.getBoundingClientRect(),s=o.top-n.top;if(s!=i){var l=a+r-s;t.ePopup.style.top=l+"px"}i=s}),200);return function(){window.clearInterval(l)}},e.prototype.addPopup=function(t){var e=this,o=t.modal,n=t.eChild,r=t.closeOnEsc,s=t.closedCallback,u=t.click,c=t.alwaysOnTop,d=t.positionCallback,h=t.anchorToElement,f=this.gridOptionsWrapper.getDocument();if(!f)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var g=Object(l.findIndex)(this.popupList,(function(t){return t.element===n}));if(-1!==g)return this.popupList[g].hideFunc;var y=this.getPopupParent();y.appendChild(n),null==n.style.top&&(n.style.top="0px"),null==n.style.left&&(n.style.left="0px");var v=document.createElement("div"),m=this.environment.getTheme().theme;m&&Object(a.addCssClass)(v,m),Object(a.addCssClass)(v,"ag-popup"),Object(a.addCssClass)(n,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),Object(a.addCssClass)(n,"ag-popup-child"),v.appendChild(n),y.appendChild(v),c?this.setAlwaysOnTop(v,!0):this.bringPopupToFront(v);var C,O=!1,w=function(t){v.contains(document.activeElement)&&((t.which||t.keyCode)===p.a.ESCAPE&&R({keyboardEvent:t}))},b=function(t){return R({mouseEvent:t})},E=function(t){return R({touchEvent:t})},R=function(t){void 0===t&&(t={});var o=t.mouseEvent,r=t.touchEvent,a=t.keyboardEvent;e.isEventFromCurrentPopup({mouseEvent:o,touchEvent:r},n)||e.isEventSameChainAsOriginalEvent({originalMouseEvent:u,mouseEvent:o,touchEvent:r})||O||(O=!0,y.removeChild(v),f.removeEventListener("keydown",w),f.removeEventListener("mousedown",b),f.removeEventListener("touchstart",E),f.removeEventListener("contextmenu",b),e.eventService.removeEventListener(i.a.EVENT_DRAG_STARTED,b),s&&s(o||r||a),e.popupList=e.popupList.filter((function(t){return t.element!==n})),C&&C())};return window.setTimeout((function(){r&&f.addEventListener("keydown",w),o&&(f.addEventListener("mousedown",b),e.eventService.addEventListener(i.a.EVENT_DRAG_STARTED,b),f.addEventListener("touchstart",E),f.addEventListener("contextmenu",b))}),0),this.popupList.push({element:n,hideFunc:R}),d&&d(),h&&(C=this.keepPopupPositionedRelativeTo({element:h,ePopup:n})),R},e.prototype.isEventFromCurrentPopup=function(t,e){var o=t.mouseEvent,n=t.touchEvent,r=o||n;if(!r)return!1;var i=Object(l.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},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.registerHeaderRootComp=function(t){this.headerRootComp=t},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.gridPanel.getCenterContainer();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.headerRootComp.forEachHeaderElement((function(o){if(o instanceof i.a){var n=o;n.getColumn()===t&&(e=n)}})),e?e.getGui():null},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(a.containsClass)(o,"ag-header-cell")?(Object(a.addCssClass)(n,"ag-header"),Object(a.addCssClass)(n,"ag-header-row"),n.style.position="static"):Object(a.addCssClass)(n,"ag-row"),n.style.display="table-row",n.appendChild(o),e.appendChild(n)},u([Object(r.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),u([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=u([Object(r.b)("autoWidthCalculator")],e)}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(8),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.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(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldUserSelect=this.eGridDiv.style.userSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="ew-resize",this.eGridDiv.style.userSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(t,e){t.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.userSelect=this.oldUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},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)("eGridDiv")],e.prototype,"eGridDiv",void 0),e=a([Object(r.b)("horizontalResizeService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return g}));var n,r=o(0),i=o(6),s=o(5),a=o(147),l=o(15),u=o(16),p=o(33),c=o(1),d=o(7),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(t){function e(){return t.call(this,void 0,!0)||this}return h(e,t),e.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var o=this.createTemplate();if(this.setTemplate(o),[this.gridApi,this.rowRenderer,this.popupService,this.focusController].forEach((function(t){return t.registerGridCore(e)})),u.a.isRegistered(l.a.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc((function(){e.eGridDiv.removeChild(e.getGui())})),this.$scope){var n=this.$scope.$watch(this.quickFilterOnScope,(function(t){return e.filterManager.setQuickFilter(t)}));this.addDestroyFunc(n)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var r=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}));var i=this.getGui();this.addManagedListener(this.eventService,s.a.EVENT_KEYBOARD_FOCUS,(function(){Object(c.addCssClass)(i,"ag-keyboard-focus")})),this.addManagedListener(this.eventService,s.a.EVENT_MOUSE_FOCUS,(function(){Object(c.removeCssClass)(i,"ag-keyboard-focus")})),t.prototype.postConstruct.call(this)},e.prototype.getFocusableElement=function(){return this.eRootWrapperBody},e.prototype.createTemplate=function(){var t=u.a.isRegistered(l.a.SideBarModule),e=u.a.isRegistered(l.a.StatusBarModule);return'\n '+(u.a.isRegistered(l.a.RowGroupingModule)?"
":"")+'\n
\n "+(e?'
':"")+"\n
\n "+(u.a.isRegistered(l.a.EnterpriseCoreModule)?"
":"")+"\n
"},e.prototype.getFocusableContainers=function(){var t=[this.gridPanel.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return Object(c.isVisible)(t)}))},e.prototype.focusNextInnerContainer=function(t){var e=this.getFocusableContainers(),o=Object(d.findIndex)(e,(function(t){return t.contains(document.activeElement)}))+(t?-1:1);return!(o<0||o>=e.length)&&(0===o?this.focusGridHeader():this.focusController.focusInto(e[o]))},e.prototype.focusInnerElement=function(t){var e=this.getFocusableContainers();if(t){if(e.length>1)return this.focusController.focusInto(Object(d.last)(e));var o=Object(d.last)(this.columnController.getAllDisplayedColumns());if(this.focusController.focusGridView(o,!0))return!0}return this.focusGridHeader()},e.prototype.focusGridHeader=function(){var t=this.columnController.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnController.getColumnGroupAtLevel(t,0)),this.focusController.focusHeaderPosition({headerRowIndex:0,column:t}),!0)},e.prototype.onGridSizeChanged=function(){var t={type:s.a.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(t)},e.prototype.addRtlSupport=function(){var t=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";Object(c.addCssClass)(this.getGui(),t)},e.prototype.getRootGui=function(){return this.getGui()},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("ag-Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("ag-Grid: sideBar is not loaded")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(t);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.setSideBar=function(t){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=a.a.parse(t),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.destroy=function(){this.logger.log("Grid DOM removed"),t.prototype.destroy.call(this)},e.prototype.ensureNodeVisible=function(t,e){if(void 0===e&&(e=null),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var o=this.rowModel.getRowCount(),n="function"==typeof t,r=-1,i=0;i=0&&this.gridPanel.ensureIndexVisible(r,e)},e.prototype.onTabKeyDown=function(){},f([Object(r.a)("gridOptions")],e.prototype,"gridOptions",void 0),f([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),f([Object(r.a)("rowModel")],e.prototype,"rowModel",void 0),f([Object(r.a)("resizeObserverService")],e.prototype,"resizeObserverService",void 0),f([Object(r.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),f([Object(r.a)("filterManager")],e.prototype,"filterManager",void 0),f([Object(r.a)("eGridDiv")],e.prototype,"eGridDiv",void 0),f([Object(r.a)("$scope")],e.prototype,"$scope",void 0),f([Object(r.a)("quickFilterOnScope")],e.prototype,"quickFilterOnScope",void 0),f([Object(r.a)("popupService")],e.prototype,"popupService",void 0),f([Object(r.a)("columnController")],e.prototype,"columnController",void 0),f([Object(r.a)("loggerFactory")],e.prototype,"loggerFactory",void 0),f([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),f([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),f([Object(r.d)("clipboardService")],e.prototype,"clipboardService",void 0),f([Object(i.d)("gridPanel")],e.prototype,"gridPanel",void 0),f([Object(i.d)("sideBar")],e.prototype,"sideBarComp",void 0),f([Object(i.d)("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0),e}(p.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(0),i=o(8),s=o(1),a=o(9),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},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(t,e){var o=this;this.showPopup(t,(function(n){o.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:e,ePopup:n})}),e.target)},e.prototype.showMenuAfterButtonClick=function(t,e){var o=this;this.showPopup(t,(function(n){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:e,ePopup:n,keepWithinBounds:!0,column:t})}),e)},e.prototype.showPopup=function(t,e,o){var n,r=this,i=this.filterManager.getOrCreateFilterWrapper(t,"COLUMN_MENU"),a=document.createElement("div");a.setAttribute("role","presentation"),Object(s.addCssClass)(a,"ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",(function(t){return r.trapFocusWithin(t,a)})),i.guiPromise.then((function(t){return a.appendChild(t)}));var l=function(t){"horizontal"===t.direction&&n()};this.eventService.addEventListener("bodyScroll",l);n=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(e){r.eventService.removeEventListener("bodyScroll",l),t.setMenuVisible(!1,"contextMenu");var n=e instanceof KeyboardEvent;if(r.tabListener&&(r.tabListener=r.tabListener()),n&&o&&Object(s.isVisible)(o)){var i=r.focusController.findTabbableParent(o);i&&i.focus()}}}),i.filterPromise.then((function(t){e(a),t.afterGuiAttached&&t.afterGuiAttached({container:"columnMenu",hidePopup:n})})),this.hidePopup=n,t.setMenuVisible(!0,"contextMenu")},e.prototype.trapFocusWithin=function(t,e){t.keyCode!==a.a.TAB||t.defaultPrevented||this.focusController.findNextFocusableElement(e,!1,t.shiftKey)||(t.preventDefault(),this.focusController.focusInto(e,t.shiftKey))},e.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()},u([Object(r.a)("filterManager")],e.prototype,"filterManager",void 0),u([Object(r.a)("popupService")],e.prototype,"popupService",void 0),u([Object(r.a)("focusController")],e.prototype,"focusController",void 0),e=u([Object(r.b)("menuFactory")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(0),i=o(5),s=o(8),a=o(2),l=o(7),u=o(1),p=o(72),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)}),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.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.setNoSelectToBody=function(t){var e=this.gridOptionsWrapper.getDocument().querySelector("body");Object(a.exists)(e)&&Object(u.addOrRemoveCssClass)(e,"ag-unselectable",t)},e.prototype.isDragging=function(){return this.dragging},e.prototype.addDragSource=function(t,e){void 0===e&&(e=!1);var o=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",o);var n=null,r=this.gridOptionsWrapper.isSuppressTouch();e&&!r&&(n=this.onTouchStart.bind(this,t),t.eElement.addEventListener("touchstart",n,{passive:!0})),this.dragSources.push({dragSource:t,mouseDownListener:o,touchStartListener:n,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();this.setNoSelectToBody(!0);var i=[{target:r,type:"mousemove",listener:function(e,n){return o.onMouseMove(e,t.eElement)}},{target:r,type:"mouseup",listener:function(e,n){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(p.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},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getSortModel=function(){return e.getColumnsWithSortingOrdered().map((function(t){return{colId:t.getColId(),sort:t.getSort()}}))},e}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.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return null==t.getSort()})).forEach((function(t){return t.setSortIndex(void 0)}))},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.isSortActive=function(){var t=this.columnController.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.columnController.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.columnController.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t.sort((function(t,e){return t.getSortIndex()-e.getSortIndex()})),t},e.prototype.getSortForRowController=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{inverter:t.getSort()===s.a.SORT_ASC?1:-1,column:t}}))},e.DEFAULT_SORTING_ORDER=[s.a.SORT_ASC,s.a.SORT_DESC,null],u([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),u([Object(r.a)("columnController")],e.prototype,"columnController",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 f}));var n,r=o(0),i=o(8),s=o(5),a=o(41),l=o(33),u=o(19),p=o(7),c=o(2),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.keyboardFocusActive=!1,e}var o;return d(e,t),o=e,e.prototype.init=function(){var t=this.gridOptionsWrapper.getDocument(),e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,s.a.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(t,"keydown",this.activateKeyboardMode.bind(this)),this.addManagedListener(t,"mousedown",this.activateMouseMode.bind(this))},e.prototype.registerGridCore=function(t){this.gridCore=t},e.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,e=this.columnController.getGridColumn(t.getId());t!==e&&this.clearFocusedCell()}},e.prototype.isKeyboardFocus=function(){return this.keyboardFocusActive},e.prototype.activateMouseMode=function(){this.keyboardFocusActive&&(this.keyboardFocusActive=!1,this.eventService.dispatchEvent({type:s.a.EVENT_MOUSE_FOCUS}))},e.prototype.activateKeyboardMode=function(){this.keyboardFocusActive||(this.keyboardFocusActive=!0,this.eventService.dispatchEvent({type:s.a.EVENT_KEYBOARD_FOCUS}))},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition?null:this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(t){for(var e=t;e;){var o=this.gridOptionsWrapper.getDomData(e,a.a.DOM_DATA_KEY_CELL_COMP);if(o)return o.getCellPosition();e=e.parentNode}return null},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.setFocusedCell=function(t,e,o,n){void 0===n&&(n=!1);var r=this.columnController.getGridColumn(e);r?(this.focusedCellPosition={rowIndex:t,rowPinned:Object(c.makeNull)(o),column:Object(c.makeNull)(r)},this.onCellFocused(n)):this.focusedCellPosition=null},e.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===t.column&&this.isRowFocused(t.rowIndex,t.rowPinned))},e.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},e.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var e=t.getColumn(),o=t.getParentComponent().getRowIndex(),n=t.getPinned(),r=this.focusedHeaderPosition,i=r.column,s=r.headerRowIndex;return e===i&&o===s&&n==i.getPinned()},e.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},e.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},e.prototype.setFocusedHeader=function(t,e){this.focusedHeaderPosition={headerRowIndex:t,column:e}},e.prototype.focusHeaderPosition=function(t,e,o,n,r){if(void 0===e&&(e=null),void 0===o&&(o=!1),void 0===n&&(n=!1),n){var i,s=this.gridOptionsWrapper,a=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount();if(o){if(i=s.getTabToNextHeaderFunc())t=i({backwards:"Before"===e,previousHeaderPosition:a,nextHeaderPosition:t,headerRowCount:l})}else if(i=s.getNavigateToNextHeaderFunc())t=i({key:r.key,previousHeaderPosition:a,nextHeaderPosition:t,headerRowCount:l,event:r})}if(!t)return!1;if(-1===t.headerRowIndex)return this.focusGridView(t.column);this.headerNavigationService.scrollToColumn(t.column,e);var u=this.headerNavigationService.getHeaderContainer(t.column.getPinned()).getRowComps()[t.headerRowIndex].getHeaderComps()[t.column.getUniqueId()];return!!u&&(u.getFocusableElement().focus(),!0)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(t,e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===Object(c.makeNull)(e))},e.prototype.findFocusableElements=function(t,e,n){void 0===n&&(n=!1);var r=o.FOCUSABLE_SELECTOR,i=o.FOCUSABLE_EXCLUDE;e&&(i+=", "+e),n&&(i+=', [tabindex="-1"]');var s=Array.prototype.slice.apply(t.querySelectorAll(r)),a=Array.prototype.slice.apply(t.querySelectorAll(i));if(!a.length)return s;var l;return l=a,s.filter((function(t){return-1===l.indexOf(t)}))},e.prototype.focusInto=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var n=this.findFocusableElements(t,null,o),r=e?Object(p.last)(n):n[0];return!!r&&(r.focus(),!0)},e.prototype.findNextFocusableElement=function(t,e,o){var n=this.findFocusableElements(t,e?':not([tabindex="-1"])':null),r=(e?Object(p.findIndex)(n,(function(t){return t.contains(document.activeElement)})):n.indexOf(document.activeElement))+(o?-1:1);return r<0||r>=n.length?null:n[r]},e.prototype.isFocusUnderManagedComponent=function(t){var e=t.querySelectorAll("."+l.a.FOCUS_MANAGED_CLASS);if(!e.length)return!1;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(){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.init=function(){this.stampDomElementWithGridInstance()},e.prototype.registerGridComp=function(t){this.gridPanel=t},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[o.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(t){return Object(l.getCellCompForEvent)(this.gridOptionsWrapper,t)},e.prototype.isEventFromThisGrid=function(t){for(var e=Object(l.getEventPath)(t),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},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(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!o.isSuppressNavigable(e)},e.prototype.getCellToLeft=function(t){if(!t)return null;var e=this.columnController.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.columnController.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.columnController.getAllDisplayedColumns(),o=t.rowIndex,n=t.rowPinned,r=this.columnController.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.columnController.getAllDisplayedColumns(),o=t.rowIndex,n=t.rowPinned,r=this.columnController.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}},c([Object(r.a)("columnController")],e.prototype,"columnController",void 0),c([Object(r.a)("rowModel")],e.prototype,"rowModel",void 0),c([Object(r.a)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),c([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),c([Object(r.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),e=c([Object(r.b)("cellNavigationService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n=o(0),r=o(63),i=o(62),s=o(53),a=o(2),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(){this.cellRendererMap={}}var e;return e=t,t.prototype.init=function(){this.cellRendererMap[e.ANIMATE_SLIDE]=r.a,this.cellRendererMap[e.ANIMATE_SHOW_CHANGE]=i.a,this.cellRendererMap[e.GROUP]=s.a},t.prototype.addCellRenderer=function(t,e){this.cellRendererMap[t]=e},t.prototype.getCellRenderer=function(t){var e=this.cellRendererMap[t];return Object(a.missing)(e)?(console.warn("ag-Grid: unable to find cellRenderer for key "+t),null):e},t.ANIMATE_SLIDE="animateSlide",t.ANIMATE_SHOW_CHANGE="animateShowChange",t.GROUP="group",l([Object(n.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),l([Object(n.a)("expressionService")],t.prototype,"expressionService",void 0),l([Object(n.a)("eventService")],t.prototype,"eventService",void 0),l([n.e],t.prototype,"init",null),t=e=l([Object(n.b)("cellRendererFactory")],t)}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(0),i=o(8),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)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),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(42),i=o(13),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.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 n}));var n=function(){function t(){}return t.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},t.prototype.addEventListenerOutsideAngular=function(t,e,o,n){t.addEventListener(e,o,n)},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(0),i=o(8),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.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)("columnController")],e.prototype,"columnController",void 0),l([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),l([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),l([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=l([Object(r.b)("scrollVisibleService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return u}));var n,r=o(0),i=o(8),s=o(10),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.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(Object(s.isNonNullObject)(t))for(var r=Object.keys(t),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},c=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.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.isLastRowFound()},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(),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},p([Object(s.a)("rowModel")],e.prototype,"rowModel",void 0),p([Object(s.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),p([Object(s.a)("columnApi")],e.prototype,"columnApi",void 0),p([Object(s.a)("gridApi")],e.prototype,"gridApi",void 0),p([s.e],e.prototype,"postConstruct",null),e=p([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(8),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([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),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 p}));var n,r=o(5),i=o(0),s=o(8),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)}},p=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.registerGridComp=function(t){this.gridPanel=t},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.gridPanel.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,o=t.columnGroup;if(o){var n=o.getGroupId();e=this.columnController.getOriginalColumnGroup(n)}o&&!e||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(e,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(t){var e,o=this,n=t.column;if(n&&(e=this.columnController.getPrimaryColumn(n.getColId())),!n||e){var i=this.getColumnIds(t),s=this.getMasterColumns(t);switch(t.type){case r.a.EVENT_COLUMN_MOVED:var a=t;this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+a.toIndex),this.columnController.moveColumns(i,a.toIndex,"alignedGridChanged");break;case r.a.EVENT_COLUMN_VISIBLE:var l=t;this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+l.visible),this.columnController.setColumnsVisible(i,l.visible,"alignedGridChanged");break;case r.a.EVENT_COLUMN_PINNED:var u=t;this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+u.pinned),this.columnController.setColumnsPinned(i,u.pinned,"alignedGridChanged");break;case r.a.EVENT_COLUMN_RESIZED:var p=t;s.forEach((function(e){o.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+e.getActualWidth());var n=[{key:e.getColId(),newWidth:e.getActualWidth()}];o.columnController.setColumnWidths(n,!1,p.finished,"alignedGridChanged")}))}var c=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(t){t.api.setAlwaysShowVerticalScroll(c)}))}},l([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),l([Object(i.a)("columnController")],e.prototype,"columnController",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(8),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},p={"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}},c={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=p[o][e],r=0;if(d[t]||(d[t]={}),d[t][e])return d[t][e];if(c[e]){var i=c[e],a=document.createElement("div");Object(s.addCssClass)(a,t),a.style.position="absolute";var l=i.reduce((function(t,e){var o=document.createElement("div");return o.style.position="static",Object(s.addCssClass)(o,e),t.appendChild(o),o}),a);if(document.body){document.body.appendChild(a);var u=-1!==e.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}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,e=/\bag-(material|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&!(t=e.exec(o.className));)o=o.parentElement;if(!t)return{};var n=t[0];if(void 0===t[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:o,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 u}));var n,r=o(0),i=o(8),s=o(2),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.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.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([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),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 p}));var n,r=o(0),i=o(8),s=o(11),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},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.observeResize=function(t,e,o){void 0===o&&(o=50);var n,r,i,l,u,p=this.getFrameworkOverrides(),c=Object(s.debounce)(e,o),d=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!d?((u=new window.ResizeObserver(c)).observe(t),function(){return u.disconnect()}):(n=Object(a.offsetWidth)(t),r=Object(a.offsetHeight)(t),i=!0,(l=function(){if(i){var s=Object(a.offsetWidth)(t),u=Object(a.offsetHeight)(t);(s!==n||u!==r)&&(n=s,r=u,e()),p.setTimeout(l,o)}})(),function(){return i=!1})},u([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=u([Object(r.b)("resizeObserverService")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(12),i=o(6),s=o(0),a=o(20),l=o(1),u=o(9),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)}),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},d=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.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:t.toggleGroupExpand();break;case u.a.RIGHT:t.toggleGroupExpand(!0);break;case u.a.LEFT:t.toggleGroupExpand(!1)}}))},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.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",c([Object(s.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),c([Object(i.d)("eTitleBar")],e.prototype,"eTitleBar",void 0),c([Object(i.d)("eGroupOpenedIcon")],e.prototype,"eGroupOpenedIcon",void 0),c([Object(i.d)("eGroupClosedIcon")],e.prototype,"eGroupClosedIcon",void 0),c([Object(i.d)("eToolbar")],e.prototype,"eToolbar",void 0),c([Object(i.d)("cbGroupEnabled")],e.prototype,"cbGroupEnabled",void 0),c([Object(i.d)("eTitle")],e.prototype,"eTitle",void 0),c([Object(i.d)("eContainer")],e.prototype,"eContainer",void 0),c([s.e],e.prototype,"postConstruct",null),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n,r=o(50),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(e){return t.call(this,e,"ag-text-area",null,"textarea")||this}return i(e,t),e.prototype.setValue=function(e,o){var n=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,n},e.prototype.setCols=function(t){return this.eInput.cols=t,this},e.prototype.setRows=function(t){return this.eInput.rows=t,this},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(6),i=o(76),s=o(29),a=o(0),l=o(1),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)}),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},c=function(t){function e(o){var n=t.call(this,o,e.TEMPLATE)||this;return n.labelAlignment="top",n}return u(e,t),e.prototype.init=function(){Object(l.addCssClass)(this.eSlider.getGui(),"ag-slider-field")},e.prototype.onValueChange=function(t){var e=this,o=s.a.EVENT_CHANGED;return this.addManagedListener(this.eText,o,(function(){var o=parseFloat(e.eText.getValue());e.eSlider.setValue(o.toString(),!0),t(o||0)})),this.addManagedListener(this.eSlider,o,(function(){var o=e.eSlider.getValue();e.eText.setValue(o,!0),t(parseFloat(o))})),this},e.prototype.setSliderWidth=function(t){return this.eSlider.setWidth(t),this},e.prototype.setTextFieldWidth=function(t){return this.eText.setWidth(t),this},e.prototype.setMinValue=function(t){return this.eSlider.setMinValue(t),this.eText.setMin(t),this},e.prototype.setMaxValue=function(t){return this.eSlider.setMaxValue(t),this.eText.setMax(t),this},e.prototype.getValue=function(){return this.eText.getValue()},e.prototype.setValue=function(t){return this.getValue()===t||(this.eText.setValue(t,!0),this.eSlider.setValue(t,!0),this.dispatchEvent({type:s.a.EVENT_CHANGED})),this},e.prototype.setStep=function(t){return this.eSlider.setStep(t),this.eText.setStep(t),this},e.TEMPLATE='',p([Object(r.d)("eLabel")],e.prototype,"eLabel",void 0),p([Object(r.d)("eSlider")],e.prototype,"eSlider",void 0),p([Object(r.d)("eText")],e.prototype,"eText",void 0),p([a.e],e.prototype,"init",null),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(70),i=o(1),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-number-field","number")||this}return s(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(e.eInput.value),o=isNaN(t)?"":e.normalizeValue(t.toString());e.value!==o&&e.setValue(o)}))},e.prototype.normalizeValue=function(t){if(""===t)return"";this.precision&&(t=this.adjustPrecision(t));var e=parseFloat(t);return null!=this.min&ðis.max&&(t=this.max.toString()),t},e.prototype.adjustPrecision=function(t){if(this.precision){var e=parseFloat(t).toFixed(this.precision);t=parseFloat(e).toString()}return t},e.prototype.setMin=function(t){return this.min===t||(this.min=t,Object(i.addOrRemoveAttribute)(this.eInput,"min",t)),this},e.prototype.setMax=function(t){return this.max===t||(this.max=t,Object(i.addOrRemoveAttribute)(this.eInput,"max",t)),this},e.prototype.setPrecision=function(t){return this.precision=t,this},e.prototype.setStep=function(t){return this.step===t||(this.step=t,Object(i.addOrRemoveAttribute)(this.eInput,"step",t)),this},e.prototype.setValue=function(e,o){return(e=this.adjustPrecision(e))!=this.normalizeValue(e)?this:t.prototype.setValue.call(this,e,o)},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(50),i=o(19),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-range-field","range")||this}return s(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.config,o=e.min,n=e.max,r=e.step;null!=o&&this.setMinValue(o),null!=n&&this.setMaxValue(n),this.setStep(r||1)},e.prototype.addInputListeners=function(){var t=this,e=Object(i.isBrowserIE)()?"change":"input";this.addManagedListener(this.eInput,e,(function(e){var o=e.target.value;t.setValue(o)}))},e.prototype.setMinValue=function(t){return this.min=t,this.eInput.setAttribute("min",t.toString()),this},e.prototype.setMaxValue=function(t){return this.max=t,this.eInput.setAttribute("max",t.toString()),this},e.prototype.setStep=function(t){return this.eInput.setAttribute("step",t.toString()),this},e.prototype.setValue=function(e,o){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());var n=t.prototype.setValue.call(this,e,o);return this.eInput.value=e,n},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(76),i=o(6),s=o(0),a=o(29),l=o(2),u=o(1),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)}),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},d=function(t){function e(o){var n=t.call(this,o,e.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}return p(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(t){e.parentCircleRect=e.eParentCircle.getBoundingClientRect()},onDragging:function(t){return e.calculateAngleDrag(t)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(t){null!=t&&""!==t||(t="0"),t=e.eAngleValue.normalizeValue(t);var o=parseFloat(t);o>180&&(o-=360),e.setValue(o)})),this.updateNumberInput(),Object(l.exists)(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,a.a.EVENT_CHANGED,(function(){e.eAngleValue.getInputElement().contains(document.activeElement)||e.updateNumberInput()}))},e.prototype.updateNumberInput=function(){var t=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(t.toString())},e.prototype.positionChildCircle=function(t){var e=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,n=e.width/2,r=e.height/2;o.style.left=n+8*Math.cos(t)+"px",o.style.top=r+8*Math.sin(t)+"px"},e.prototype.calculatePolar=function(){var t=this.offsetX,e=this.offsetY,o=Math.atan2(e,t);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(t*t+e*e),this.positionChildCircle(o)},e.prototype.calculateCartesian=function(){var t=this.toRadians(this.getValue()),e=this.getRadius();this.setOffsetX(Math.cos(t)*e).setOffsetY(Math.sin(t)*e)},e.prototype.setOffsetX=function(t){return this.offsetX!==t&&(this.offsetX=t,this.calculatePolar()),this},e.prototype.setOffsetY=function(t){return this.offsetY!==t&&(this.offsetY=t,this.calculatePolar()),this},e.prototype.calculateAngleDrag=function(t){var e=this.parentCircleRect,o=e.width/2,n=e.height/2,r=t.clientX-e.left-o,i=t.clientY-e.top-n,s=Math.atan2(i,r);this.setValue(s,!0)},e.prototype.toDegrees=function(t){return t/Math.PI*180},e.prototype.toRadians=function(t){return t/180*Math.PI},e.prototype.normalizeNegativeValue=function(t){return t<0?360+t:t},e.prototype.normalizeAngle180=function(t){return(t%=2*Math.PI)<-Math.PI?t+=2*Math.PI:t>=Math.PI&&(t-=2*Math.PI),t},e.prototype.getRadius=function(){return this.radius},e.prototype.setRadius=function(t){return this.radius===t||(this.radius=t,this.calculateCartesian()),this},e.prototype.onValueChange=function(t){var e=this;return this.addManagedListener(this,a.a.EVENT_CHANGED,(function(){t(e.degrees)})),this},e.prototype.getValue=function(t){return t?this.toRadians(this.degrees):this.degrees},e.prototype.setValue=function(t,e){var o;return o=e?t:this.normalizeAngle180(this.toRadians(t)),t=this.toDegrees(o),this.degrees!==t&&(this.degrees=Math.floor(t),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:a.a.EVENT_CHANGED})),this},e.prototype.setWidth=function(t){return Object(u.setFixedWidth)(this.getGui(),t),this},e.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),t.prototype.destroy.call(this)},e.TEMPLATE='',c([Object(i.d)("eLabel")],e.prototype,"eLabel",void 0),c([Object(i.d)("eParentCircle")],e.prototype,"eParentCircle",void 0),c([Object(i.d)("eChildCircle")],e.prototype,"eChildCircle",void 0),c([Object(i.d)("eAngleValue")],e.prototype,"eAngleValue",void 0),c([Object(s.a)("dragService")],e.prototype,"dragService",void 0),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var n,r=o(1),i=o(42),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-toggle-button")||this}return s(e,t),e.prototype.setValue=function(e,o){return t.prototype.setValue.call(this,e,o),Object(r.addOrRemoveCssClass)(this.getGui(),"ag-selected",this.getValue()),this},e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(0),i=o(8),s=o(4),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},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.getFirstRow=function(){var t,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?t=s.a.PINNED_TOP:this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t=s.a.PINNED_BOTTOM),void 0===t?null:{rowIndex:e,rowPinned:t}},e.prototype.getLastRow=function(){var t,e,o=this.pinnedRowModel.getPinnedBottomRowCount(),n=this.pinnedRowModel.getPinnedTopRowCount();return o?(e=s.a.PINNED_BOTTOM,t=o-1):this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageLastRow()):n&&(e=s.a.PINNED_TOP,t=n-1),void 0===t?null:{rowIndex:t,rowPinned:e}},e.prototype.getRowNode=function(t){switch(t.rowPinned){case s.a.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case s.a.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},e.prototype.sameRow=function(t,e){return!t&&!e||!(t&&!e||!t&&e)&&(t.rowIndex===e.rowIndex&&t.rowPinned==e.rowPinned)},e.prototype.before=function(t,e){switch(t.rowPinned){case s.a.PINNED_TOP:if(e.rowPinned!==s.a.PINNED_TOP)return!0;break;case s.a.PINNED_BOTTOM:if(e.rowPinned!==s.a.PINNED_BOTTOM)return!1;break;default:if(Object(a.exists)(e.rowPinned))return e.rowPinned!==s.a.PINNED_TOP}return t.rowIndex=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.createId=function(t){var e=t.rowIndex,o=t.rowPinned,n=t.column;return this.createIdFromValues(e,n,o)},e.prototype.createIdFromValues=function(t,e,o){return t+"."+(null==o?"null":o)+"."+e.getId()},e.prototype.equals=function(t,e){var o=t.column===e.column,n=t.rowPinned===e.rowPinned,r=t.rowIndex===e.rowIndex;return o&&n&&r},e=a([Object(r.b)("cellPositionUtils")],e)}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(21),i=o(0),s=o(5),a=o(4),l=o(8),u=o(2),p=o(7),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)}),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 c(e,t),e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(t){var e=t===a.a.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return Object(u.missingOrEmpty)(e)},e.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},e.prototype.getRowAtPixel=function(t,e){var o=e===a.a.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(Object(u.missingOrEmpty)(o))return 0;for(var n=0;n=t)return n}return o.length-1},e.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0);var e={type:s.a.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1);var e={type:s.a.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.createNodesFromData=function(t,e){var o=this,n=[];if(t){var i=0;t.forEach((function(t,s){var l=new r.a;o.context.createBean(l),l.data=t;var u=e?r.a.ID_PREFIX_TOP_PINNED:r.a.ID_PREFIX_BOTTOM_PINNED;l.id=u+s,l.rowPinned=e?a.a.PINNED_TOP:a.a.PINNED_BOTTOM,l.setRowTop(i),l.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(l).height),l.setRowIndex(s),i+=l.rowHeight,n.push(l)}))}return n},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},e.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},e.prototype.forEachPinnedTopRow=function(t){Object(u.missingOrEmpty)(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},e.prototype.forEachPinnedBottomRow=function(t){Object(u.missingOrEmpty)(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var e=Object(p.last)(t);return e.rowTop+e.rowHeight},d([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),d([Object(i.a)("columnApi")],e.prototype,"columnApi",void 0),d([Object(i.a)("gridApi")],e.prototype,"gridApi",void 0),d([i.e],e.prototype,"init",null),e=d([Object(i.b)("pinnedRowModel")],e)}(l.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return p}));var n,r=o(28),i=o(0),s=o(8),a=o(37),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},p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.findHeader=function(t,e){var o,n,i;if(t.column instanceof r.a?(n="getDisplayedGroup"+e,o=this.columnController[n](t.column)):(i="getDisplayedCol"+e,o=this.columnController[i](t.column)),o)return{column:o,headerRowIndex:t.headerRowIndex}},e.prototype.findColAtEdgeForHeaderRow=function(t,e){var o=this.columnController.getAllDisplayedColumns(),n=o["start"===e?0:o.length-1];if(n){var r=this.headerNavigationService.getHeaderContainer(n.getPinned()).getRowComps()[t];return(r&&r.getType())==a.b.COLUMN_GROUP?{headerRowIndex:t,column:this.columnController.getColumnGroupAtLevel(n,t)}:{headerRowIndex:r?t:-1,column:n}}},u([Object(i.a)("columnController")],e.prototype,"columnController",void 0),u([Object(i.a)("headerNavigationService")],e.prototype,"headerNavigationService",void 0),e=u([Object(i.b)("headerPositionUtils")],e)}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return j}));var n,r=o(23),i=o(0),s=o(5),a=o(4),l=o(1),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},p=function(){function t(t){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=t.eContainer,this.eViewport=t.eViewport,t.eWrapper&&(this.eWrapper=t.eWrapper),this.hideWhenNoChildren=t.hideWhenNoChildren}return t.prototype.setVerticalScrollPosition=function(t){this.scrollTop=t},t.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(r.a.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},t.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},t.prototype.getRowElement=function(t){return this.eContainer.querySelector('[comp-id="'+t+'"]')},t.prototype.setHeight=function(t){null!=t?(this.eContainer.style.height=t+"px",this.eWrapper&&(this.eWrapper.style.height=t+"px")):this.eContainer.style.height=""},t.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var t=this.rowTemplatesToAdd.join("");Object(l.appendHtml)(this.eContainer,t),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(t){return t()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},t.prototype.appendRowTemplate=function(t,e){this.domOrder?this.lastPlacedElement=Object(l.insertTemplateWithDomOrder)(this.eContainer,t,this.lastPlacedElement):this.rowTemplatesToAdd.push(t),this.afterGuiAttachedCallbacks.push(e),this.childCount++,this.checkVisibility()},t.prototype.ensureDomOrder=function(t){this.domOrder&&(Object(l.ensureDomOrder)(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},t.prototype.removeRowElement=function(t){this.eContainer.removeChild(t),this.childCount--,this.checkVisibility()},t.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var t=this.eViewport?this.eViewport:this.eContainer,e=this.childCount>0;this.visible!==e&&(this.visible=e,this.lastMadeVisibleTime=(new Date).getTime(),Object(l.setDisplayed)(t,e),e&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},t.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},u([Object(i.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),u([i.e],t.prototype,"postConstruct",null),t}(),c=o(54),d=o(32),h=o(18),f=o(13),g=o(7),y=o(8),v=o(2),m=o(11),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)}),O=function(){return(O=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},b=function(){for(var t=0,e=0,o=arguments.length;ee.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var t,e;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100),this.needToMoveDown?e=this.gridPanel.scrollVertically(t):this.needToMoveUp&&(e=this.gridPanel.scrollVertically(-t)),0!==e&&this.onDragging(this.lastDraggingEvent)},e.prototype.addRowDropZone=function(t){var e=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("ag-Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,o=t):(t.onDragEnter&&(o.onDragEnter=function(o){t.onDragEnter(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_ENTER,o))}),t.onDragLeave&&(o.onDragLeave=function(o){t.onDragLeave(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_LEAVE,o))}),t.onDragging&&(o.onDragging=function(o){t.onDragging(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_MOVE,o))}),t.onDragStop&&(o.onDragStop=function(o){t.onDragStop(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(O({isInterestedIn:function(t){return t===h.b.RowDrag},getIconName:function(){return h.a.ICON_MOVE},external:!0},o))}else Object(m.doOnce)((function(){return console.warn("ag-Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},e.prototype.getRowDropZone=function(t){var e=this,o=this.getContainer.bind(this),n=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),s=this.onDragStop.bind(this);return t?{getContainer:o,onDragEnter:t.onDragEnter?function(o){n(o),t.onDragEnter(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_ENTER,o))}:n,onDragLeave:t.onDragLeave?function(o){r(o),t.onDragLeave(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_LEAVE,o))}:r,onDragging:t.onDragging?function(o){i(o),t.onDragging(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_MOVE,o))}:i,onDragStop:t.onDragStop?function(o){s(o),t.onDragStop(e.draggingToRowDragEvent(f.a.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:n,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},e.prototype.draggingToRowDragEvent=function(t,e){var o,n=this.mouseEventService.getNormalisedPosition(e).y,r=-1,i=null;switch(n>this.rowModel.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(n),i=this.rowModel.getRow(r)),e.vDirection){case h.d.Down:o="down";break;case h.d.Up:o="up";break;default:o=null}return{type:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:e.event,node:e.dragItem.rowNode,nodes:e.dragItem.rowNodes,overIndex:r,overNode:i,y:n,vDirection:o}},e.prototype.dispatchGridEvent=function(t,e){var o=this.draggingToRowDragEvent(t,e);this.eventService.dispatchEvent(o)},e.prototype.onDragLeave=function(t){this.dispatchGridEvent(f.a.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(t){this.dispatchGridEvent(f.a.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},e.prototype.stopDragging=function(t){this.ensureIntervalCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},w([Object(i.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),w([Object(i.a)("rowModel")],e.prototype,"rowModel",void 0),w([Object(i.a)("columnController")],e.prototype,"columnController",void 0),w([Object(i.a)("focusController")],e.prototype,"focusController",void 0),w([Object(i.a)("sortController")],e.prototype,"sortController",void 0),w([Object(i.a)("filterManager")],e.prototype,"filterManager",void 0),w([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),w([Object(i.a)("selectionController")],e.prototype,"selectionController",void 0),w([Object(i.d)("rangeController")],e.prototype,"rangeController",void 0),w([Object(i.a)("mouseEventService")],e.prototype,"mouseEventService",void 0),w([i.e],e.prototype,"postConstruct",null),e}(y.a),R=o(12),S=o(6),P=o(16),D=o(15),T=o(14),A=o(19),_=o(25),N=o(36),F=o(10),I=o(9),L=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),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},j=function(t){function e(){var e=t.call(this,'')||this;return e.scrollLeft=-1,e.scrollTop=-1,e.resetLastHorizontalScrollElementDebounced=Object(m.debounce)(e.resetLastHorizontalScrollElement.bind(e),500),e}return L(e,t),e.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},e.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},e.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},e.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),e=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[t&&!e?"showNoRowsOverlay":"hideOverlay"]()},e.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},e.prototype.init=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===a.a.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addPreventScrollWhileDragging(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.headerNavigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.mouseEventService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.contextMenuFactory&&this.contextMenuFactory.registerGridComp(this),this.menuFactory&&this.menuFactory.registerGridComp(this),(this.rangeController||this.gridOptionsWrapper.isRowSelectionMulti())&&(Object(T.setAriaMultiSelectable)(this.getGui(),!0),this.rangeController&&this.rangeController.registerGridComp(this)),[this.eCenterViewport,this.eBodyViewport].forEach((function(e){var o=t.resizeObserverService.observeResize(e,t.onCenterViewportResized.bind(t));t.addDestroyFunc((function(){return o()}))})),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(e){t.addManagedListener(e,"focusin",(function(){Object(l.addCssClass)(e,"ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||Object(l.removeCssClass)(e,"ag-has-focus")}))}))},e.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===a.a.DOM_LAYOUT_PRINT;this.printLayout!==t&&(this.printLayout=t,this.setWidthsOfContainers(),this.setPinnedContainerSize())},e.prototype.onCenterViewportResized=function(){if(Object(l.isVisible)(this.eCenterViewport)){this.checkViewportAndScrolls();var t=this.getCenterWidth();t!==this.centerWidth&&(this.centerWidth=t,this.columnController.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},e.prototype.setColumnMovingCss=function(t){this.addOrRemoveCssClass("ag-column-moving",t)},e.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach((function(e){return Object(l.addOrRemoveCssClass)(e,"ag-selectable",t)}))},e.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new E(this.eBodyViewport,this)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},e.prototype.getRowDragFeature=function(){return this.rowDragFeature},e.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var e=[this.eBodyViewport,this.eBottom,this.eTop],o=function(o){var n=o.relatedTarget;if(null!==Object(A.getTabIndex)(n)){var r=e.some((function(t){return t.contains(n)}));if(!r){var i=t.popupService;r=i.getActivePopups().some((function(t){return t.contains(n)}))||i.isElementWithinCustomPopup(n)}r||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()};e.forEach((function(e){return t.addManagedListener(e,"focusout",o)}))}},e.prototype.addAngularApplyCheck=function(){var t=this,e=!1,o=function(){e||(e=!0,window.setTimeout((function(){e=!1,t.$scope.$apply()}),0))};this.addManagedListener(this.eventService,s.a.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,s.a.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},e.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},e.prototype.addEventListeners=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)),this.addManagedListener(this.eventService,s.a.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,s.a.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addManagedListener(this.gridOptionsWrapper,r.a.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},e.prototype.addDragListeners=function(){var t=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!Object(v.missing)(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(e){var o={eElement:e,onDragStart:t.rangeController.onDragStart.bind(t.rangeController),onDragStop:t.rangeController.onDragStop.bind(t.rangeController),onDragging:t.rangeController.onDragging.bind(t.rangeController)};t.dragService.addDragSource(o),t.addDestroyFunc((function(){return t.dragService.removeDragSource(o)}))}))},e.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click","mousedown"].forEach((function(e){var o=t.processMouseEvent.bind(t,e);t.eAllCellContainers.forEach((function(n){return t.addManagedListener(n,e,o)}))}))},e.prototype.addPreventScrollWhileDragging=function(){var t=this,e=function(e){t.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eAllCellContainers.forEach((function(t){t.addEventListener("touchmove",e,{passive:!1})})),this.addDestroyFunc((function(){t.eAllCellContainers.forEach((function(t){t.removeEventListener("touchmove",e)}))}))},e.prototype.addKeyboardEvents=function(){var t=this;["keydown","keypress"].forEach((function(e){var o=t.processKeyboardEvent.bind(t,e);t.eAllCellContainers.forEach((function(n){t.addManagedListener(n,e,o)}))}))},e.prototype.addBodyViewportListener=function(){var t=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(e){var o=Object(_.getTarget)(e);o!==t.eBodyViewport&&o!==t.eCenterViewport||(t.onContextMenu(e,null,null,null,null),t.preventDefaultOnContextMenu(e))}))},e.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},e.prototype.getRowForEvent=function(t){for(var e=Object(_.getTarget)(t);e;){var o=this.gridOptionsWrapper.getDomData(e,c.a.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;e=e.parentElement}return null},e.prototype.processKeyboardEvent=function(t,e){var o=Object(_.getCellCompForEvent)(this.gridOptionsWrapper,e);if(o&&!e.defaultPrevented){var n=o.getRenderedRow().getRowNode(),r=o.getColumn(),i=o.isEditing();if(!Object(N.isUserSuppressingKeyboardEvent)(this.gridOptionsWrapper,e,n,r,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(e)||o.onKeyDown(e),this.doGridOperations(e,o);break;case"keypress":o.onKeyPress(e)}if("keydown"===t){var a=o.createEvent(e,s.a.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=o.createEvent(e,s.a.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(l)}}},e.prototype.doGridOperations=function(t,e){if((t.ctrlKey||t.metaKey)&&!e.isEditing()&&this.mouseEventService.isEventFromThisGrid(t))switch(t.which){case I.a.A:return this.onCtrlAndA(t);case I.a.C:return this.onCtrlAndC(t);case I.a.V:return this.onCtrlAndV();case I.a.D:return this.onCtrlAndD(t);case I.a.Z:return t.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case I.a.Y:return this.undoRedoService.redo()}},e.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},e.prototype.processMouseEvent=function(t,e){if(this.mouseEventService.isEventFromThisGrid(e)&&!Object(_.isStopPropagationForAgGrid)(e)){var o=this.getRowForEvent(e),n=this.mouseEventService.getRenderedCellForEvent(e);"contextmenu"===t?(this.preventDefaultOnContextMenu(e),this.handleContextMenuMouseEvent(e,null,o,n)):(n&&n.onMouseEvent(t,e),o&&o.onMouseEvent(t,e))}},e.prototype.mockContextMenuForIPad=function(){var t=this;Object(A.isIOSUserAgent)()&&this.eAllCellContainers.forEach((function(e){var o=new d.a(e);t.addManagedListener(o,d.a.EVENT_LONG_TAP,(function(e){var o=t.getRowForEvent(e.touchEvent),n=t.mouseEventService.getRenderedCellForEvent(e.touchEvent);t.handleContextMenuMouseEvent(null,e.touchEvent,o,n)})),t.addDestroyFunc((function(){return o.destroy()}))}))},e.prototype.handleContextMenuMouseEvent=function(t,e,o,n){var r=o?o.getRowNode():null,i=n?n.getColumn():null,s=null;if(i){var a=t||e;n.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(i,r)}this.onContextMenu(t,e,r,i,s)},e.prototype.onContextMenu=function(t,e,o,n,r){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!t||!t.ctrlKey&&!t.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var i=t||e.touches[0];if(this.contextMenuFactory.showMenu(o,n,r,i))(t||e).preventDefault()}},e.prototype.preventDefaultOnContextMenu=function(t){var e=this.gridOptionsWrapper,o=t.which;(e.isPreventDefaultOnContextMenu()||e.isSuppressMiddleClickScrolls()&&2===o)&&t.preventDefault()},e.prototype.onCtrlAndA=function(t){var e=this.pinnedRowModel,o=this.paginationProxy,n=this.rangeController,r=a.a.PINNED_BOTTOM,i=a.a.PINNED_TOP;if(n&&o.isRowsToRender()){var s=[e.isEmpty(i),e.isEmpty(r)],l=s[0]?null:i,u=void 0,p=void 0;s[1]?(u=null,p=this.paginationProxy.getRowCount()-1):(u=r,p=e.getPinnedBottomRowData().length-1);var c=this.columnController.getAllDisplayedColumns();if(Object(v.missingOrEmpty)(c))return;n.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:p,rowEndPinned:u,columnStart:c[0],columnEnd:Object(g.last)(c)})}t.preventDefault()},e.prototype.onCtrlAndC=function(t){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),t.preventDefault())},e.prototype.onCtrlAndV=function(){P.a.isRegistered(D.a.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},e.prototype.onCtrlAndD=function(t){P.a.isRegistered(D.a.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),t.preventDefault()},e.prototype.ensureIndexVisible=function(t,e){if(!this.printLayout){var o=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=o)console.warn("invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(t);var n,r=this.paginationProxy.getRow(t);do{var i=r.rowTop,s=r.rowHeight,a=this.paginationProxy.getPixelOffset(),l=r.rowTop-a,u=l+r.rowHeight,p=this.getVScrollPosition(),c=this.heightScaler.getOffset(),d=p.top+c,h=p.bottom+c,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),y=this.heightScaler.getScrollPositionForPixel(u-f),v=Math.min((g+y)/2,l),m=null;"top"===e?m=g:"bottom"===e?m=y:"middle"===e?m=v:d>l?m=g:hr,p=n0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===t?window.setTimeout((function(){e.sizeColumnsToFit(100)}),0):100===t?window.setTimeout((function(){e.sizeColumnsToFit(500)}),100):500===t?window.setTimeout((function(){e.sizeColumnsToFit(-1)}),500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},e.prototype.getCenterContainer=function(){return this.eCenterContainer},e.prototype.getDropTargetBodyContainers=function(){return[this.eBodyViewport,this.eTopViewport,this.eBottomViewport]},e.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},e.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},e.prototype.buildRowContainerComponents=function(){var t=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new p({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new p({eContainer:this.eFullWidthContainer}),pinnedLeft:new p({eContainer:this.eLeftContainer}),pinnedRight:new p({eContainer:this.eRightContainer}),floatingTop:new p({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new p({eContainer:this.eLeftTop}),floatingTopPinnedRight:new p({eContainer:this.eRightTop}),floatingTopFullWidth:new p({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new p({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new p({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new p({eContainer:this.eRightBottom}),floatingBottomFullWidth:new p({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},Object(F.iterateObject)(this.rowContainerComponents,(function(e,o){o&&t.getContext().createBean(o)}))},e.prototype.setupRowAnimationCssClass=function(){var t=this,e=function(){var e=t.gridOptionsWrapper.isAnimateRows()&&!t.heightScaler.isScaling();Object(l.addOrRemoveCssClass)(t.eBodyViewport,"ag-row-animation",e),Object(l.addOrRemoveCssClass)(t.eBodyViewport,"ag-row-no-animation",!e)};e(),this.addManagedListener(this.eventService,s.a.EVENT_HEIGHT_SCALE_CHANGED,e)},e.prototype.suppressScrollOnFloatingRow=function(){var t=this;this.addManagedListener(this.eTopViewport,"scroll",(function(){return t.eTopViewport.scrollLeft=0})),this.addManagedListener(this.eBottomViewport,"scroll",(function(){return t.eTopViewport.scrollLeft=0}))},e.prototype.getRowContainers=function(){return this.rowContainerComponents},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},e.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},e.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},e.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},e.prototype.setCenterWidth=function(){var t=this.headerRootComp,e=this.columnController,o=e.getBodyContainerWidth();this.printLayout&&(o+=e.getPinnedLeftContainerWidth()+e.getPinnedRightContainerWidth());t.setHeaderContainerWidth(o);var n=o+"px";this.eCenterContainer.style.width=n,this.eBottomContainer.style.width=n,this.eTopContainer.style.width=n,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=n)},e.prototype.setPinnedLeftWidth=function(){var t=this,e=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),n=this.pinningLeft=!this.printLayout&&o>0,r=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];e!==n&&this.headerRootComp.setLeftVisible(n),r.forEach((function(e){return Object(l.setDisplayed)(e,t.pinningLeft)})),n&&r.forEach((function(t){return Object(l.setFixedWidth)(t,o)}))},e.prototype.setPinnedRightWidth=function(){var t=this.pinningRight,e=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&e>0,n=[this.eRightContainer,this.eRightTop,this.eRightBottom];t!==o&&this.headerRootComp.setRightVisible(o),n.forEach((function(t){return Object(l.setDisplayed)(t,o)})),o&&n.forEach((function(t){return Object(l.setFixedWidth)(t,e)}))},e.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},e.prototype.setFakeHScrollSpacerWidths=function(){var t=this.columnController.getPinnedRightContainerWidth(),e=!this.enableRtl&&this.isVerticalScrollShowing(),o=this.gridOptionsWrapper.getScrollbarWidth();e&&(t+=o),Object(l.setFixedWidth)(this.eHorizontalRightSpacer,t),Object(l.addOrRemoveCssClass)(this.eHorizontalRightSpacer,"ag-scroller-corner",t<=o);var n=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(n+=o),Object(l.setFixedWidth)(this.eHorizontalLeftSpacer,n),Object(l.addOrRemoveCssClass)(this.eHorizontalLeftSpacer,"ag-scroller-corner",n<=o)},e.prototype.checkBodyHeight=function(){var t=this.eBodyViewport.clientHeight;if(this.bodyHeight!==t){this.bodyHeight=t;var e={type:s.a.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)}},e.prototype.setHeaderAndFloatingHeights=function(){var t,e,o,n=this,r=n.columnController,i=n.gridOptionsWrapper,s=n.pinnedRowModel,a=n.eTop,l=n.eBottom,u=0,p=r.getHeaderRowCount();r.isPivotMode()?(e=i.getPivotGroupHeaderHeight(),o=i.getPivotHeaderHeight()):(r.hasFloatingFilters()&&(p++,u=1),e=i.getGroupHeaderHeight(),o=i.getHeaderHeight());var c=p-(1+u);t=u*i.getFloatingFiltersHeight(),t+=c*e,t+=o,this.headerRootComp.setHeight(t);var d=s.getPinnedTopTotalHeight();d&&(d+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=d+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=d?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},e.prototype.getBodyHeight=function(){return this.bodyHeight},e.prototype.setHorizontalScrollPosition=function(t){var e=this.eCenterViewport.scrollWidth-this.eCenterViewport.clientWidth;this.shouldBlockScrollUpdate("horizontal",t)&&(t=Math.min(Math.max(t,0),e)),this.eCenterViewport.scrollLeft=t,this.doHorizontalScroll(t)},e.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},e.prototype.scrollHorizontally=function(t){var e=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(e+t),this.eCenterViewport.scrollLeft-e},e.prototype.scrollVertically=function(t){var e=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(e+t),this.eBodyViewport.scrollTop-e},e.prototype.addScrollListener=function(){this.addManagedListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?Object(m.debounce)(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},e.prototype.onVerticalScroll=function(){var t=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",t,!0)||(this.animationFrameService.setScrollTop(t),this.scrollTop=t,this.redrawRowsAfterScroll())},e.prototype.shouldBlockScrollUpdate=function(t,e,o){if(void 0===o&&(o=!1),o&&!A.isIOSUserAgent)return!1;if("vertical"===t){var n=this.eBodyViewport,r=n.clientHeight,i=n.scrollHeight;if(e<0||e+r>i)return!0}if("horizontal"===t){var s=this.eCenterViewport,a=s.clientWidth,u=s.scrollWidth;if(this.enableRtl&&Object(l.isRtlNegativeScroll)()){if(e>0)return!0}else if(e<0)return!0;if(Math.abs(e)+a>u)return!0}return!1},e.prototype.isControllingScroll=function(t){return this.lastHorizontalScrollElement?t===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=t,!0)},e.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},e.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},e.prototype.onBodyHorizontalScroll=function(t){var e=this.eCenterViewport.scrollLeft;this.shouldBlockScrollUpdate("horizontal",e,!0)||(this.doHorizontalScroll(Math.floor(Object(l.getScrollLeft)(t,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},e.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},e.prototype.doHorizontalScroll=function(t){this.scrollLeft=t;var e={type:s.a.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.onHorizontalViewportChanged()},e.prototype.redrawRowsAfterScroll=function(){var t={type:s.a.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t)},e.prototype.onHorizontalViewportChanged=function(){var t=this.eCenterViewport.clientWidth,e=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(t,e)},e.prototype.getCenterViewportScrollLeft=function(){return Object(l.getScrollLeft)(this.eCenterViewport,this.enableRtl)},e.prototype.setCenterViewportScrollLeft=function(t){Object(l.setScrollLeft)(this.eCenterViewport,t,this.enableRtl)},e.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){void 0===t&&(t=this.getCenterViewportScrollLeft());var e=this.enableRtl?t:-t;this.headerRootComp.setHorizontalScroll(e),this.eBottomContainer.style.transform="translateX("+e+"px)",this.eTopContainer.style.transform="translateX("+e+"px)";var o=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;Object(l.setScrollLeft)(o,t,this.enableRtl)},e.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t)},e.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},M([Object(i.a)("alignedGridsService")],e.prototype,"alignedGridsService",void 0),M([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),M([Object(i.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),M([Object(i.a)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),M([Object(i.a)("animationFrameService")],e.prototype,"animationFrameService",void 0),M([Object(i.a)("navigationService")],e.prototype,"navigationService",void 0),M([Object(i.a)("autoHeightCalculator")],e.prototype,"autoHeightCalculator",void 0),M([Object(i.a)("columnAnimationService")],e.prototype,"columnAnimationService",void 0),M([Object(i.a)("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),M([Object(i.a)("paginationAutoPageSizeService")],e.prototype,"paginationAutoPageSizeService",void 0),M([Object(i.a)("beans")],e.prototype,"beans",void 0),M([Object(i.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),M([Object(i.a)("columnApi")],e.prototype,"columnApi",void 0),M([Object(i.a)("gridApi")],e.prototype,"gridApi",void 0),M([Object(i.a)("dragService")],e.prototype,"dragService",void 0),M([Object(i.a)("mouseEventService")],e.prototype,"mouseEventService",void 0),M([Object(i.a)("$scope")],e.prototype,"$scope",void 0),M([Object(i.a)("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),M([Object(i.a)("valueService")],e.prototype,"valueService",void 0),M([Object(i.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),M([Object(i.a)("maxDivHeightScaler")],e.prototype,"heightScaler",void 0),M([Object(i.a)("resizeObserverService")],e.prototype,"resizeObserverService",void 0),M([Object(i.a)("undoRedoService")],e.prototype,"undoRedoService",void 0),M([Object(i.a)("columnController")],e.prototype,"columnController",void 0),M([Object(i.a)("headerNavigationService")],e.prototype,"headerNavigationService",void 0),M([Object(i.a)("popupService")],e.prototype,"popupService",void 0),M([Object(i.d)("rangeController")],e.prototype,"rangeController",void 0),M([Object(i.d)("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),M([Object(i.d)("menuFactory")],e.prototype,"menuFactory",void 0),M([Object(i.d)("clipboardService")],e.prototype,"clipboardService",void 0),M([Object(S.d)("eBodyViewport")],e.prototype,"eBodyViewport",void 0),M([Object(S.d)("eCenterContainer")],e.prototype,"eCenterContainer",void 0),M([Object(S.d)("eCenterViewport")],e.prototype,"eCenterViewport",void 0),M([Object(S.d)("eLeftContainer")],e.prototype,"eLeftContainer",void 0),M([Object(S.d)("eRightContainer")],e.prototype,"eRightContainer",void 0),M([Object(S.d)("eCenterColsClipper")],e.prototype,"eCenterColsClipper",void 0),M([Object(S.d)("eHorizontalScrollBody")],e.prototype,"eHorizontalScrollBody",void 0),M([Object(S.d)("eHorizontalLeftSpacer")],e.prototype,"eHorizontalLeftSpacer",void 0),M([Object(S.d)("eHorizontalRightSpacer")],e.prototype,"eHorizontalRightSpacer",void 0),M([Object(S.d)("eBodyHorizontalScrollViewport")],e.prototype,"eBodyHorizontalScrollViewport",void 0),M([Object(S.d)("eBodyHorizontalScrollContainer")],e.prototype,"eBodyHorizontalScrollContainer",void 0),M([Object(S.d)("eFullWidthContainer")],e.prototype,"eFullWidthContainer",void 0),M([Object(S.d)("eTop")],e.prototype,"eTop",void 0),M([Object(S.d)("eLeftTop")],e.prototype,"eLeftTop",void 0),M([Object(S.d)("eRightTop")],e.prototype,"eRightTop",void 0),M([Object(S.d)("eTopContainer")],e.prototype,"eTopContainer",void 0),M([Object(S.d)("eTopViewport")],e.prototype,"eTopViewport",void 0),M([Object(S.d)("eTopFullWidthContainer")],e.prototype,"eTopFullWidthContainer",void 0),M([Object(S.d)("eBottom")],e.prototype,"eBottom",void 0),M([Object(S.d)("eLeftBottom")],e.prototype,"eLeftBottom",void 0),M([Object(S.d)("eRightBottom")],e.prototype,"eRightBottom",void 0),M([Object(S.d)("eBottomContainer")],e.prototype,"eBottomContainer",void 0),M([Object(S.d)("eBottomViewport")],e.prototype,"eBottomViewport",void 0),M([Object(S.d)("eBottomFullWidthContainer")],e.prototype,"eBottomFullWidthContainer",void 0),M([Object(S.d)("headerRoot")],e.prototype,"headerRootComp",void 0),M([Object(S.d)("overlayWrapper")],e.prototype,"overlayWrapper",void 0),M([i.e],e.prototype,"init",null),e}(R.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return v}));var n,r=o(82),i=o(27),s=o(17),a=o(0),l={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},u=o(8),p=o(4),c=o(10),d=o(2),h=o(7),f=(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)}),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(t,e){return function(o,n){e(o,n,t)}},v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,o){var n=new r.a;if(o){var s=o.map((function(t){return t.getId()}));n.addExistingKeys(s)}var a=o?o.slice():null,l=this.recursivelyCreateColumns(t,0,e,a,n,null),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var p=this.balanceColumnTree(l,0,u,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,p,(function(t,e){t instanceof i.a&&t.setupExpandable(),t.setOriginalParent(e)})),{columnTree:p,treeDept:u}},e.prototype.createForAutoGroups=function(t,e){var o=this,n=[];return t.forEach((function(t){var r=o.createAutoGroupTreeItem(e,t);n.push(r)})),n},e.prototype.createAutoGroupTreeItem=function(t,e){for(var o=e,n=this.findDepth(t)-1;n>=0;n--){var r=new i.a(null,"FAKE_PATH_"+e.getId()+"}_"+n,!0,n);this.context.createBean(r),r.setChildren([o]),o.setOriginalParent(r),o=r}return o},e.prototype.findDepth=function(t){for(var e=0,o=t;o&&o[0]&&o[0]instanceof i.a;)e++,o=o[0].getChildren();return e},e.prototype.balanceColumnTree=function(t,e,o,n){for(var r=[],s=0;s=e;d--){var h=n.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),g=new i.a(f,h,!0,e);this.context.createBean(g),c&&c.setChildren([g]),c=g,p||(p=c)}if(p){if(r.push(p),t.some((function(t){return t instanceof i.a}))){c.setChildren([a]);continue}c.setChildren(t);break}r.push(a)}}return r},e.prototype.findMaxDept=function(t,e){for(var o=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},g=function(t){function e(e){void 0===e&&(e="default");var o=t.call(this,'')||this;return o.cssIdentifier=e,o.options=[],o.itemEls=[],o}return h(e,t),e.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},e.prototype.handleKeyDown=function(t){var e=t.keyCode;switch(e){case c.a.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case c.a.DOWN:case c.a.UP:var n=e===c.a.DOWN,r=void 0;if(t.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(n?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),r=this.itemEls[i]}else r=this.itemEls[n?0:this.itemEls.length-1];this.highlightItem(r)}},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){var e=t.value,o=t.text,n=Object(l.escapeString)(o||e);return this.options.push({value:e,text:n}),this.renderOption(e,n),this},e.prototype.renderOption=function(t,e){var o=this,n=document.createElement("div");n.setAttribute("role","option"),Object(u.addCssClass)(n,"ag-list-item"),Object(u.addCssClass)(n,"ag-"+this.cssIdentifier+"-list-item"),n.innerHTML=e,n.tabIndex=-1,this.itemEls.push(n),this.addManagedListener(n,"mouseover",(function(){return o.highlightItem(n)})),this.addManagedListener(n,"mouseleave",(function(){return o.clearHighlighted()})),this.addManagedListener(n,"click",(function(){return o.setValue(t)})),this.getGui().appendChild(n)},e.prototype.setValue=function(t,e){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var o=Object(p.findIndex)(this.options,(function(e){return e.value===t}));if(-1!==o){var n=this.options[o];this.value=n.value,this.displayValue=null!=n.text?n.text:n.value,this.highlightItem(this.itemEls[o]),e||this.fireChangeEvent()}return this},e.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},e.prototype.getValue=function(){return this.value},e.prototype.getDisplayValue=function(){return this.displayValue},e.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var e=Object(p.findIndex)(this.options,(function(e){return e.value===t.value}));-1!==e&&this.highlightItem(this.itemEls[e])},e.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},e.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,Object(u.addCssClass)(this.highlightedEl,e.ACTIVE_CLASS),Object(d.setAriaSelected)(this.highlightedEl,!0),this.highlightedEl.focus())},e.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(Object(u.removeCssClass)(this.highlightedEl,e.ACTIVE_CLASS),Object(d.setAriaSelected)(this.highlightedEl,!1),this.highlightedEl=null)},e.prototype.fireChangeEvent=function(){this.dispatchEvent({type:r.a.EVENT_CHANGED}),this.fireItemSelected()},e.prototype.fireItemSelected=function(){this.dispatchEvent({type:e.EVENT_ITEM_SELECTED})},e.EVENT_ITEM_SELECTED="selectedItem",e.ACTIVE_CLASS="ag-active-item",f([a.e],e.prototype,"init",null),e}(s.a),y=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),v=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},m=function(t){function e(e){return t.call(this,e,"ag-select","smallDown","listbox")||this}return y(e,t),e.prototype.init=function(){var t=this;this.listComponent=this.createBean(new g("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,g.EVENT_ITEM_SELECTED,(function(){t.hideList&&t.hideList()})),this.listComponent.addManagedListener(this.listComponent,r.a.EVENT_CHANGED,(function(){t.setValue(t.listComponent.getValue(),!1,!0),t.hideList&&t.hideList()}))},e.prototype.showPicker=function(){var t=this,e=this.listComponent.getGui(),o=this.addManagedListener(document.body,"wheel",(function(o){!e.contains(o.target)&&t.hideList&&t.hideList()})),n=this.addManagedListener(e,"focusout",(function(o){!e.contains(o.relatedTarget)&&t.hideList&&t.hideList()}));return this.hideList=this.popupService.addPopup({modal:!0,eChild:e,closeOnEsc:!0,closedCallback:function(){t.hideList=null,t.isPickerDisplayed=!1,n(),o(),t.isAlive()&&t.getFocusableElement().focus()}}),this.isPickerDisplayed=!0,Object(u.setElementWidth)(e,Object(u.getAbsoluteWidth)(this.eWrapper)),e.style.maxHeight=Object(u.getInnerHeight)(this.popupService.getPopupParent())+"px",e.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:e,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){return this.listComponent.addOption(t),this},e.prototype.setValue=function(e,o,n){return this.value===e?this:(n||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,e,o)))},e.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),t.prototype.destroy.call(this)},v([Object(a.a)("popupService")],e.prototype,"popupService",void 0),v([a.e],e.prototype,"init",null),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return R}));var n,r=o(0),i=o(17),s=o(49),a=o(6),l=o(75),u=o(5),p=o(24),c=o(12),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 t.call(this,'\n ')||this}return d(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t;var e=this.columnController.getDisplayNameForColumn(t.column,"header",!0);this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(e+" Filter Input")},e.prototype.onParentModelChanged=function(t){var e=this;t?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var n=o.getModelAsString(t);e.eFloatingFilterText.setValue(n)}})):this.eFloatingFilterText.setValue("")},h([Object(a.d)("eFloatingFilterText")],e.prototype,"eFloatingFilterText",void 0),h([Object(r.a)("columnController")],e.prototype,"columnController",void 0),e}(c.a),g=o(15),y=o(16),v=o(1),m=o(20),C=o(77),O=o(96),w=o(9),b=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),E=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},R=function(t){function e(o,n){var r=t.call(this,e.TEMPLATE)||this;return r.column=o,r.pinned=n,r}return b(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.createManagedBean(new l.a([this.column],this.getGui())),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},e.prototype.onTabKeyDown=function(t){var e=document.activeElement,o=this.getGui();if(!(e===o)){t.preventDefault();var n=this.focusController.findNextFocusableElement(o,null,t.shiftKey);n?n.focus():o.focus()}},e.prototype.handleKeyDown=function(t){var e=document.activeElement,o=this.getGui(),n=e===o;switch(t.keyCode){case w.a.UP:case w.a.DOWN:n||t.preventDefault();case w.a.LEFT:case w.a.RIGHT:if(n)return;t.stopPropagation();case w.a.ENTER:n&&this.focusController.focusInto(o)&&t.preventDefault();break;case w.a.ESCAPE:n||this.getGui().focus()}},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getParentComponent();this.beans.focusController.setFocusedHeader(e.getRowIndex(),this.getColumn())}},e.prototype.setupFloatingFilter=function(){var t=this,e=this.column.getColDef();e.filter&&e.floatingFilter&&(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(e){e&&(t.setupWithFloatingFilter(e),t.setupSyncWithFilter())})))},e.prototype.setupLeftPositioning=function(){var t=new s.a(this.column,this.getGui(),this.beans);this.createManagedBean(t)},e.prototype.setupSyncWithFilter=function(){var t=this,e=function(e){t.onParentModelChanged(t.currentParentModel(),e)};this.addManagedListener(this.column,i.a.EVENT_FILTER_CHANGED,e),this.filterManager.isFilterActive(this.column)&&e(null)},e.prototype.showParentFilter=function(){var t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,t,"filterMenuTab",["filterMenuTab"])},e.prototype.setupColumnHover=function(){this.addManagedListener(this.eventService,u.a.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},e.prototype.onColumnHover=function(){Object(v.addOrRemoveCssClass)(this.getGui(),"ag-column-hover",this.columnHoverService.isHovered(this.column))},e.prototype.setupWidth=function(){this.addManagedListener(this.column,i.a.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},e.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},e.prototype.setupWithFloatingFilter=function(t){var e=this,o=function(){e.getContext().destroyBean(t)};if(this.isAlive()){this.addDestroyFunc(o);var n=t.getGui();Object(v.addOrRemoveCssClass)(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),Object(v.addOrRemoveCssClass)(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),Object(v.setDisplayed)(this.eButtonWrapper,!this.suppressFilterButton);var r=Object(m.createIconNoSpan)("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(r),this.eFloatingFilterBody.appendChild(n),t.afterGuiAttached&&t.afterGuiAttached()}else o()},e.prototype.parentFilterInstance=function(t){this.getFilterComponent().then(t)},e.prototype.getFilterComponent=function(t){return void 0===t&&(t=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",t)},e.getDefaultFloatingFilterType=function(t){if(null==t)return null;var e=null;if("string"==typeof t.filter)e=O.a.getFloatingFilterType(t.filter);else if(t.filterFramework);else if(!0===t.filter){e=y.a.isRegistered(g.a.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}return e},e.prototype.getFloatingFilterInstance=function(){var t=this.column.getColDef(),o=e.getDefaultFloatingFilterType(t),n=this.filterManager.createFilterParams(this.column,t),r=this.userComponentFactory.createFinalParams(t,"filter",n),i={api:this.gridApi,column:this.column,filterParams:r,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.newFloatingFilterComponent(t,i,o);if(!s){var a=this.getFilterComponentPrototype(t);if(a&&a.prototype&&a.prototype.getModelAsString){var l=this.userComponentFactory.createUserComponentFromConcreteClass(f,i);s=p.c.resolve(l)}}return s},e.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},e.prototype.getFilterComponentPrototype=function(t){var e=this.userComponentFactory.lookupComponentClassDef(t,"filter",this.createDynamicParams());return e?e.component:null},e.prototype.currentParentModel=function(){var t=this.getFilterComponent(!1);return t?t.resolveNow(null,(function(t){return t.getModel()})):null},e.prototype.onParentModelChanged=function(t,e){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then((function(o){return o.onParentModelChanged(t,e)}))},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.TEMPLATE='',E([Object(r.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),E([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),E([Object(r.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),E([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),E([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),E([Object(r.a)("filterManager")],e.prototype,"filterManager",void 0),E([Object(r.a)("menuFactory")],e.prototype,"menuFactory",void 0),E([Object(r.a)("beans")],e.prototype,"beans",void 0),E([Object(a.d)("eFloatingFilterBody")],e.prototype,"eFloatingFilterBody",void 0),E([Object(a.d)("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),E([Object(a.d)("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),e}(C.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return v}));var n,r=o(12),i=o(24),s=o(6),a=o(0),l=o(2),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)}),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},c=function(t){function e(o){var n=t.call(this,e.TEMPLATE)||this;return n.H=1,n.S=1,n.B=1,n.A=1,n.isSpectrumDragging=!1,n.isSpectrumHueDragging=!1,n.isSpectrumAlphaDragging=!1,n.colorChanged=!1,n.picker=o.picker,n}return u(e,t),e.prototype.postConstruct=function(){var t=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},e.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},e.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},e.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},e.prototype.onSpectrumDraggerDown=function(t){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(t)},e.prototype.onSpectrumDraggerMove=function(t){this.isSpectrumDragging&&this.moveDragger(t)},e.prototype.onSpectrumHueDown=function(t){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(t)},e.prototype.onSpectrumHueMove=function(t){this.isSpectrumHueDragging&&this.moveHueSlider(t)},e.prototype.onSpectrumAlphaDown=function(t){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(t)},e.prototype.onSpectrumAlphaMove=function(t){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(t)},e.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},e.prototype.moveDragger=function(t){var e=this.spectrumValRect;if(e){var o=t.clientX-e.left,n=t.clientY-e.top;o=Math.max(o,0),o=Math.min(o,e.width),n=Math.max(n,0),n=Math.min(n,e.height),this.setSpectrumValue(o/e.width,1-n/e.height)}},e.prototype.moveHueSlider=function(t){var e=this.spectrumHueRect;if(e){var o=this.spectrumHueSlider,n=o.getBoundingClientRect(),r=t.clientX-e.left;r=Math.max(r,0),r=Math.min(r,e.width),this.H=1-r/e.width,o.style.left=r+n.width/2+"px",this.update()}},e.prototype.moveAlphaSlider=function(t){var e=this.spectrumAlphaRect;if(e){var o=this.spectrumAlphaSlider,n=o.getBoundingClientRect(),r=t.clientX-e.left;r=Math.max(r,0),r=Math.min(r,e.width),this.A=r/e.width,o.style.left=r+n.width/2+"px",this.update()}},e.prototype.update=function(){var t=i.a.fromHSB(360*this.H,this.S,this.B,this.A),e=i.a.fromHSB(360*this.H,1,1),o=t.toRgbaString(),n=this.picker;i.a.fromString(n.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),n.setValue(o),this.spectrumColor.style.backgroundColor=e.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},e.prototype.setSpectrumValue=function(t,e){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var n=this.spectrumDragger,r=n.getBoundingClientRect();t=Math.max(0,t),t=Math.min(1,t),e=Math.max(0,e),e=Math.min(1,e),this.S=t,this.B=e,n.style.left=t*o.width-r.width/2+"px",n.style.top=(1-e)*o.height-r.height/2+"px",this.update()}},e.prototype.initRecentColors=function(){var t=e.recentColors.map((function(t,e){return''}));this.recentColors.innerHTML=t.join("")},e.prototype.setValue=function(t){var e=i.a.fromString(t),o=e.toHSB(),n=o[0],r=o[1],s=o[2];this.H=(isNaN(n)?0:n)/360,this.A=e.a;var a=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-a.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(r,s)},e.prototype.onRecentColorClick=function(t){var o=t.target;if(Object(l.exists)(o.id)){var n=parseInt(o.id,10);this.setValue(e.recentColors[n]),this.destroy()}},e.prototype.addRecentColor=function(){var t=i.a.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=e.recentColors;this.colorChanged&&o[0]!==t&&(o=o.filter((function(e){return e!=t})),(o=[t].concat(o)).length>e.maxRecentColors&&(o=o.slice(0,e.maxRecentColors)),e.recentColors=o)},e.prototype.destroy=function(){this.addRecentColor(),t.prototype.destroy.call(this)},e.maxRecentColors=8,e.recentColors=[],e.TEMPLATE='',p([Object(s.d)("spectrumColor")],e.prototype,"spectrumColor",void 0),p([Object(s.d)("spectrumVal")],e.prototype,"spectrumVal",void 0),p([Object(s.d)("spectrumDragger")],e.prototype,"spectrumDragger",void 0),p([Object(s.d)("spectrumHue")],e.prototype,"spectrumHue",void 0),p([Object(s.d)("spectrumHueSlider")],e.prototype,"spectrumHueSlider",void 0),p([Object(s.d)("spectrumAlpha")],e.prototype,"spectrumAlpha",void 0),p([Object(s.d)("spectrumAlphaSlider")],e.prototype,"spectrumAlphaSlider",void 0),p([Object(s.d)("recentColors")],e.prototype,"recentColors",void 0),p([a.e],e.prototype,"postConstruct",null),e}(r.a),d=o(68),h=o(149),f=o(29),g=o(1),y=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),v=function(t){function e(e){var o=t.call(this,e,"ag-color-picker","colorPicker")||this;return e&&e.color&&(o.value=e.color),o}return y(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},e.prototype.showPicker=function(){var t=this,e=this.getGui().getBoundingClientRect(),o=this.createBean(new d.a({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:e.right-190,y:e.top-250}));this.isPickerDisplayed=!0,Object(g.addCssClass)(o.getGui(),"ag-color-dialog");var n=this.createBean(new c({picker:this}));return n.addDestroyFunc((function(){o.isAlive()&&t.destroyBean(o)})),o.setParentComponent(this),o.setBodyComponent(n),n.setValue(this.getValue()),o.addDestroyFunc((function(){t.isDestroyingPicker?t.isDestroyingPicker=!1:(t.isDestroyingPicker=!0,n.isAlive()&&t.destroyBean(n)),t.isAlive()&&t.getFocusableElement().focus(),t.isPickerDisplayed=!1})),o},e.prototype.setValue=function(t){return this.value===t||(this.value=t,this.eDisplayField.style.backgroundColor=t,this.dispatchEvent({type:f.a.EVENT_CHANGED})),this},e.prototype.getValue=function(){return this.value},e}(h.a)},function(t,e,o){"use strict";function n(t,e,o){var n={},i=t.filter((function(t){return!e.some((function(e){return e===t}))}));return i.length>0&&i.forEach((function(t){return n[t]=r(t,o)})),n}function r(t,e,o,n){var r=n?a:s,i=e.map((function(e){return{value:e,relevance:r(t.toLowerCase(),e.toLocaleLowerCase())}}));return i.sort((function(t,e){return e.relevance-t.relevance})),o&&(i=i.filter((function(t){return 0!==t.relevance}))),i.map((function(t){return t.value}))}function i(t){var e,o,n,r=t.toLowerCase(),i=new Array(r.length-1);for(e=o=0,n=i.length;o<=n;e=o+=1)i[e]=r.slice(e,e+2);return i}function s(t,e){if(0===t.length&&0===e.length)return 0;var o,n,r=i(t),s=i(e),a=r.length+s.length,l=0;for(o=0,n=r.length;o0?2*l/a:0}function a(t,e){for(var o=t.replace(/\s/g,""),n=e.replace(/\s/g,""),r=0,i=0,s=0;s=1){var e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("ag-Grid: no filter options for filter")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return l}));var n,r=o(12),i=o(22),s=o(144),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){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.getTextFromModel=function(t){if(!t)return null;if(t.operator){var e=t,o=this.conditionToString(e.condition1),n=this.conditionToString(e.condition2);return o+" "+e.operator+" "+n}var r=t;return this.conditionToString(r)},e.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},e.prototype.getLastType=function(){return this.lastType},e.prototype.setLastTypeFromModel=function(t){if(t){var e;if(t.operator)e=t.condition1;else e=t;this.lastType=e.type}else this.lastType=this.optionsFactory.getDefaultOption()},e.prototype.canWeEditAfterModelFromParentFilter=function(t){if(!t)return this.isTypeEditable(this.lastType);if(t.operator)return!1;var e=t;return this.isTypeEditable(e.type)},e.prototype.init=function(t){this.optionsFactory=new s.a,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var e=this.isTypeEditable(this.lastType);this.setEditable(e)},e.prototype.doesFilterHaveHiddenInput=function(t){var e=this.optionsFactory.getCustomOption(t);return e&&e.hideFilterInput},e.prototype.isTypeEditable=function(t){return!this.doesFilterHaveHiddenInput(t)&&t&&t!==i.b.IN_RANGE&&t!==i.b.EMPTY},e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return f}));var n,r=o(6),i=o(11),s=o(45),a=o(0),l=o(145),u=o(36),p=o(9),c=o(47),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.postConstruct=function(){this.setTemplate('\n ')},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.onParentModelChanged=function(t,e){this.isEventFromFloatingFilter(e)||(this.setLastTypeFromModel(t),this.eFloatingFilterInput.setValue(this.getTextFromModel(t)),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)))},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.applyActive=s.a.isUseApplyButton(this.params.filterParams);var o=s.a.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n=Object(i.debounce)(this.syncUpWithParentFilter.bind(this),o),r=this.eFloatingFilterInput.getGui();this.addManagedListener(r,"input",n),this.addManagedListener(r,"keypress",n),this.addManagedListener(r,"keydown",n);var a=e.column.getDefinition();a.filterParams&&a.filterParams.filterOptions&&1===a.filterParams.filterOptions.length&&"inRange"===a.filterParams.filterOptions[0]&&this.eFloatingFilterInput.setDisabled(!0);var l=this.columnController.getDisplayNameForColumn(e.column,"header",!0);this.eFloatingFilterInput.setInputAriaLabel(l+" Filter Input")},e.prototype.syncUpWithParentFilter=function(t){var e=this,o=Object(u.isKeyPressed)(t,p.a.ENTER);if(!this.applyActive||o){var n=c.a.cleanInput(this.eFloatingFilterInput.getValue());this.eFloatingFilterInput.setValue(n,!0),this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType(),n)}))}},e.prototype.setEditable=function(t){this.eFloatingFilterInput.setDisabled(!t)},h([Object(a.a)("columnController")],e.prototype,"columnController",void 0),h([Object(r.d)("eFloatingFilterInput")],e.prototype,"eFloatingFilterInput",void 0),h([a.e],e.prototype,"postConstruct",null),e}(l.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));var n=function(){function t(){}return t.parse=function(e){if(!e)return null;if(!0===e)return{toolPanels:[t.DEFAULT_COLUMN_COMP,t.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof e)return t.parse([e]);if(Array.isArray(e)){var o=[];return e.forEach((function(e){var n=t.DEFAULT_BY_KEY[e];n?o.push(n):console.warn("ag-grid: the key "+e+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:t.parseComponents(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}},t.parseComponents=function(e){var o=[];return e.forEach((function(e){var n=null;if("string"==typeof e){var r=t.DEFAULT_BY_KEY[e];if(!r)return void console.warn("ag-grid: the key "+e+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","));n=r}else n=e;o.push(n)})),o},t.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},t.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},t.DEFAULT_BY_KEY={columns:t.DEFAULT_COLUMN_COMP,filters:t.DEFAULT_FILTER_COMP},t}()},function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=function(){return(n=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},f=function(t){function e(e,o,n,r){var i=t.call(this,e,'',o)||this;return i.pickerIcon=n,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return d(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),Object(a.setAriaDescribedBy)(this.eWrapper,o);var n=function(){e.skipClick?e.skipClick=!1:e.isDisabled()||(e.pickerComponent=e.showPicker())},r=this.getGui();this.addManagedListener(r,"mousedown",(function(t){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&Object(p.isVisible)(e.pickerComponent.getGui())&&r.contains(t.target)&&(e.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(t){switch(t.keyCode){case c.a.UP:case c.a.DOWN:case c.a.ENTER:case c.a.SPACE:n();case c.a.ESCAPE:e.isPickerDisplayed&&t.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",n),this.addManagedListener(this.eLabel,"click",n),this.pickerIcon&&this.eIcon.appendChild(Object(l.createIconNoSpan)(this.pickerIcon,this.gridOptionsWrapper))},e.prototype.refreshLabel=function(){Object(u.exists)(this.getLabel())?Object(a.setAriaLabelledBy)(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},e.prototype.setAriaLabel=function(t){return Object(a.setAriaLabel)(this.eWrapper,t),this},e.prototype.setInputWidth=function(t){return Object(p.setElementWidth)(this.eWrapper,t),this},e.prototype.getFocusableElement=function(){return this.eWrapper},h([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),h([Object(s.d)("eLabel")],e.prototype,"eLabel",void 0),h([Object(s.d)("eWrapper")],e.prototype,"eWrapper",void 0),h([Object(s.d)("eDisplayField")],e.prototype,"eDisplayField",void 0),h([Object(s.d)("eIcon")],e.prototype,"eIcon",void 0),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return P}));var n,r=o(0),i=o(17),s=o(18),a=o(4),l=o(67),u=o(5),p=o(75),c=o(49),d=o(42),h=o(8),f=(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)}),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(t){function e(e,o){var n=t.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.cbSelectAll=e,n.column=o;var r=o.getColDef();return n.filteredOnly=!!r&&!!r.headerCheckboxSelectionFilteredOnly,n}return f(e,t),e.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addManagedListener(this.eventService,u.a.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,u.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,u.a.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,u.a.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,d.a.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},e.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},e.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.getNextCheckboxState=function(t){return(0!==t.selected||0!==t.notSelected)&&(t.selected>0&&t.notSelected>0?null:t.selected>0)},e.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.getSelectionCount(),e=this.getNextCheckboxState(t);this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},e.prototype.refreshSelectAllLabel=function(){var t=this.cbSelectAll.getValue();this.cbSelectAll.setInputAriaLabel("Press Space to toggle all rows selection ("+(t?"checked":"unchecked")+")")},e.prototype.getSelectionCount=function(){var t=this,e=0,o=0,n=function(n){t.gridOptionsWrapper.isGroupSelectsChildren()&&n.group||(n.isSelected()?e++:n.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(n):this.gridApi.forEachNode(n),{notSelected:o,selected:e}},e.prototype.checkRightRowModelType=function(){var t=this.rowModel.getType();t===a.a.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+t)},e.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},e.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;"function"==typeof t&&(t=t({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!t&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},g([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),g([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),g([Object(r.a)("rowModel")],e.prototype,"rowModel",void 0),g([Object(r.a)("selectionController")],e.prototype,"selectionController",void 0),g([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),g([r.e],e.prototype,"postConstruct",null),e}(h.a),v=o(6),m=o(32),C=o(48),O=o(77),w=o(14),b=o(1),E=o(9),R=function(){var t=function(e,o){return(t=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])})(e,o)};return function(e,o){function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),S=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(o,n){var r=t.call(this,e.TEMPLATE)||this;return r.headerCompVersion=0,r.refreshFunctions=[],r.column=o,r.pinned=n,r}return R(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.colDefVersion=this.columnController.getColDefVersion(),this.updateState(),this.appendHeaderComp(),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.addActiveHeaderMouseListeners(),this.createManagedBean(new p.a([this.column],this.getGui())),this.addManagedListener(this.column,i.a.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.createManagedBean(new y(this.cbSelectAll,this.column)),this.createManagedBean(new c.a(this.column,this.getGui(),this.beans)),this.addAttributes(),l.a.addHeaderClassesFromColDef(this.column.getColDef(),this.getGui(),this.gridOptionsWrapper,this.column,null),this.addManagedListener(this.eventService,u.a.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,u.a.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this))},e.prototype.onColumnValueChanged=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},e.prototype.updateState=function(){var t=this.column.getColDef();this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},e.prototype.calculateDisplayName=function(){return this.columnController.getDisplayNameForColumn(this.column,"header",!0)},e.prototype.onNewColumnsLoaded=function(){var t=this.columnController.getColDefVersion();t!=this.colDefVersion&&(this.colDefVersion=t,this.refresh())},e.prototype.refresh=function(){this.updateState();var t=this.column.getColDef();if(!(this.colDefHeaderComponent!=t.headerComponent||this.colDefHeaderComponentFramework!=t.headerComponentFramework)&&this.attemptHeaderCompRefresh()){var e=this.draggable&&!this.dragAndDropService,o=!this.draggable&&this.dragAndDropService;(e||o)&&this.attachDraggingToHeaderComp()}else this.appendHeaderComp();this.refreshFunctions.forEach((function(t){return t()}))},e.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0),this.removeMoveDragSource()},e.prototype.removeMoveDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},e.prototype.attemptHeaderCompRefresh=function(){if(!this.headerComp)return!0;if(!this.headerComp.refresh)return!1;var t=this.createParams(),e=this.userComponentFactory.createFinalParams(this.getComponentHolder(),"headerComponent",t);return this.headerComp.refresh(e)},e.prototype.addActiveHeaderMouseListeners=function(){var t=this,e=function(e){return t.setActiveHeader("mouseenter"===e.type)};this.addManagedListener(this.getGui(),"mouseenter",e),this.addManagedListener(this.getGui(),"mouseleave",e)},e.prototype.setActiveHeader=function(t){Object(b.addOrRemoveCssClass)(this.getGui(),"ag-header-active",t)},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getParentComponent();this.focusController.setFocusedHeader(e.getRowIndex(),this.getColumn())}this.setActiveHeader(!0)},e.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},e.prototype.handleKeyDown=function(t){var e=this.headerComp;if(e){if(t.keyCode===E.a.SPACE){var o=this.cbSelectAll;o.isDisplayed()&&!o.getGui().contains(document.activeElement)&&(t.preventDefault(),o.setValue(!o.getValue()))}if(t.keyCode===E.a.ENTER)if(t.ctrlKey||t.metaKey)this.menuEnabled&&e.showMenu&&(t.preventDefault(),e.showMenu());else if(this.sortable){var n=t.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}}},e.prototype.onTabKeyDown=function(){},e.prototype.getComponentHolder=function(){return this.column.getColDef()},e.prototype.addColumnHoverListener=function(){this.addManagedListener(this.eventService,u.a.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},e.prototype.onColumnHover=function(){var t=this.columnHoverService.isHovered(this.column);Object(b.addOrRemoveCssClass)(this.getGui(),"ag-column-hover",t)},e.prototype.setupSortableClass=function(){var t=this,e=this.getGui(),o=function(){Object(b.addOrRemoveCssClass)(e,"ag-header-cell-sortable",t.sortable)},n=function(){t.sortable?Object(w.setAriaSort)(e,Object(w.getAriaSortState)(t.column)):Object(w.removeAriaSort)(e)};o(),n(),this.refreshFunctions.push(o),this.refreshFunctions.push(n),this.addManagedListener(this.column,i.a.EVENT_SORT_CHANGED,n.bind(this))},e.prototype.onFilterChanged=function(){var t=this.column.isFilterActive();Object(b.addOrRemoveCssClass)(this.getGui(),"ag-header-cell-filtered",t)},e.prototype.appendHeaderComp=function(){this.headerCompVersion++;var t=this.column.getColDef();this.colDefHeaderComponent=t.headerComponent,this.colDefHeaderComponentFramework=t.headerComponentFramework;var e=this.createParams(),o=this.afterHeaderCompCreated.bind(this,this.headerCompVersion);this.userComponentFactory.newHeaderComponent(e).then(o)},e.prototype.createParams=function(){var t=this,e=this.column.getColDef();return this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,{column:this.column,displayName:this.displayName,enableSorting:e.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(e){t.gridApi.showColumnMenuAfterButtonClick(t.column,e)},progressSort:function(e){t.sortController.progressSort(t.column,!!e,"uiColumnSorted")},setSort:function(e,o){t.sortController.setSortForColumn(t.column,e,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()}},e.prototype.afterHeaderCompCreated=function(t,e){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=e,this.headerCompGui=e.getGui(),this.getGui().appendChild(this.headerCompGui),this.attachDraggingToHeaderComp()):this.destroyBean(e)},e.prototype.onColumnMovingChanged=function(){this.column.isMoving()?Object(b.addCssClass)(this.getGui(),"ag-header-cell-moving"):Object(b.removeCssClass)(this.getGui(),"ag-header-cell-moving")},e.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!this.gridOptionsWrapper.isSuppressMovableColumns()&&!t.suppressMovable&&!t.lockPosition||t.enableRowGroup||t.enablePivot},e.prototype.attachDraggingToHeaderComp=function(){var t=this;this.removeMoveDragSource(),this.draggable&&(this.moveDragSource={type:s.b.HeaderCell,eElement:this.headerCompGui,defaultIconName:s.a.ICON_HIDE,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return t.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return t.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},e.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},e.prototype.setupResize=function(){var t,e,o=this,n=this.getComponentHolder(),r=[],i=function(){r.forEach((function(t){return t()})),r.length=0},s=function(){var s=o.column.isResizable(),a=!o.gridOptionsWrapper.isSuppressAutoSize()&&!n.suppressAutoSize;(s!==t||a!==e)&&(t=s,e=a,i(),function(){if(Object(b.setDisplayed)(o.eResize,t),t){var n=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(r.push(n),e){var i=o.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){o.columnController.autoSizeColumn(o.column,i,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new m.a(o.eResize);a.addEventListener(m.a.EVENT_DOUBLE_TAP,s),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(m.a.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.refreshFunctions.push(s)},e.prototype.onResizing=function(t,e){var o=this.normaliseResizeAmount(e),n=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnController.setColumnWidths(n,this.resizeWithShiftKey,t,"uiColumnDragged"),t&&Object(b.removeCssClass)(this.getGui(),"ag-column-resizing")},e.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,Object(b.addCssClass)(this.getGui(),"ag-column-resizing")},e.prototype.getTooltipParams=function(){return{location:"header",colDef:this.getComponentHolder(),column:this.getColumn(),value:this.getTooltipText()}},e.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},e.prototype.setupTooltip=function(){var t,e,o=this,n=this.gridOptionsWrapper.isEnableBrowserTooltips(),r=function(){n?o.getGui().removeAttribute("title"):t&&(t=o.destroyBean(t))},i=function(){var i=o.getTooltipText();e!=i&&(e&&r(),(e=i)&&(n?o.getGui().setAttribute("title",e):t=o.createBean(new C.a(o))))};i(),this.addDestroyFunc(r),this.refreshFunctions.push(i)},e.prototype.setupMovingCss=function(){this.addManagedListener(this.column,i.a.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},e.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},e.prototype.setupWidth=function(){this.addManagedListener(this.column,i.a.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},e.prototype.setupMenuClass=function(){this.addManagedListener(this.column,i.a.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this))},e.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},e.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},e.prototype.normaliseResizeAmount=function(t){var e=t;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==a.a.PINNED_LEFT&&(e*=-1):this.pinned===a.a.PINNED_RIGHT&&(e*=-1),e},e.TEMPLATE='',S([Object(r.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),S([Object(r.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),S([Object(r.a)("columnController")],e.prototype,"columnController",void 0),S([Object(r.a)("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),S([Object(r.a)("menuFactory")],e.prototype,"menuFactory",void 0),S([Object(r.a)("gridApi")],e.prototype,"gridApi",void 0),S([Object(r.a)("columnApi")],e.prototype,"columnApi",void 0),S([Object(r.a)("sortController")],e.prototype,"sortController",void 0),S([Object(r.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),S([Object(r.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),S([Object(r.a)("beans")],e.prototype,"beans",void 0),S([Object(v.d)("eResize")],e.prototype,"eResize",void 0),S([Object(v.d)("cbSelectAll")],e.prototype,"cbSelectAll",void 0),S([r.g],e.prototype,"destroyHeaderComp",null),e}(O.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=o(71);function r(t){t.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",i],scope:!0}}))}function i(t,e,o,r){var i,s,a=r.agGrid;if(s=a+".quickFilterText",i=e.$eval(a)){var l=t[0],u={$scope:e,$compile:o,quickFilterOnScope:s},p=new n.a(l,i,u);e.$on("$destroy",(function(){p.destroy(),p=null}))}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}},function(t,e,o){"use strict";o.d(e,"a",(function(){return s}));var n=o(43),r=o(71),i=!1;function s(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!i){i=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var t=Object.create(HTMLElement.prototype);n.a.ALL_PROPERTIES.forEach((function(e){Object.defineProperty(t,e,{set:function(t){this.__agGridSetProperty(e,t)},get:function(){return this.__agGridGetProperty(e)},enumerable:!0,configurable:!0})}));var e=t;e.__agGridSetProperty=function(t,e){this.__attributes||(this.__attributes={}),this.__attributes[t]=e;var o={};o[t]={currentValue:e},this.onChange(o)},e.onChange=function(t){this._initialised&&n.a.processOnChange(t,this._gridOptions,this.api,this.columnApi)},e.__agGridGetProperty=function(t){return this.__attributes||(this.__attributes={}),this.__attributes[t]},e.setGridOptions=function(t){var e=this.globalEventListener.bind(this);this._gridOptions=n.a.copyAttributesToGridOptions(t,this);var o={globalEventListener:e};this._agGrid=new r.a(this,this._gridOptions,o),this.api=t.api,this.columnApi=t.columnApi,this._initialised=!0},e.createdCallback=function(){for(var t=0;t=0&&(this[o]=r)},e.attachedCallback=function(t){},e.detachedCallback=function(t){},e.attributeChangedCallback=function(t){var e=this.attributes[t];this.setPropertyFromAttribute(e)},e.globalEventListener=function(t,e){var o=t.toLowerCase(),n=new Event(o);n.agGridDetails=e,this.dispatchEvent(n);var r="on"+o;"function"==typeof this[r]&&this[r](n)},document.registerElement("ag-grid",{prototype:t})}}},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(6),i=o(33),s=o(1),a=o(14),l=o(2),u=o(11),p=o(9),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)}),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){var n=t.call(this,e.getTemplate(o.cssClass))||this;return n.items=[],n.params=o,o.items&&o.items.forEach((function(t){return n.addItem(t)})),n}return c(e,t),e.getTemplate=function(t){return''},e.prototype.handleKeyDown=function(t){switch(t.keyCode){case p.a.RIGHT:case p.a.LEFT:if(!this.eHeader.contains(document.activeElement))return;var e=this.items.indexOf(this.activeItem),o=t.keyCode===p.a.RIGHT?Math.min(e+1,this.items.length-1):Math.max(e-1,0);if(e===o)return;t.preventDefault();var n=this.items[o];this.showItemWrapper(n),n.eHeaderButton.focus();break;case p.a.UP:case p.a.DOWN:t.stopPropagation()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var e=this.focusController,o=this.eHeader,n=this.eBody,r=this.activeItem,i=document.activeElement;if(t.preventDefault(),o.contains(i))e.focusInto(n,t.shiftKey);else if(e.isFocusUnderManagedComponent(n))r.eHeaderButton.focus();else{var s=e.findNextFocusableElement(n,!1,t.shiftKey);s?s.focus():r.eHeaderButton.focus()}}},e.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},e.prototype.getMinDimensions=function(){var t=this.getGui().cloneNode(!0),e=t.querySelector('[ref="eBody"]');t.style.position="fixed",this.getGui().appendChild(t);var o=0,n=0;return this.items.forEach((function(r){Object(s.clearElement)(e);var i=r.tabbedItem.bodyPromise.resolveNow(null,(function(t){return t.cloneNode(!0)}));null!=i&&(e.appendChild(i),o0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(t){var e=document.createElement("span");e.setAttribute("tabIndex","-1"),e.setAttribute("role","menuitem"),e.appendChild(t.title),Object(s.addCssClass)(e,"ag-tab"),this.eHeader.appendChild(e),Object(a.setAriaLabel)(e,t.titleLabel);var o={tabbedItem:t,eHeaderButton:e};this.items.push(o),e.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(t){var e=Object(l.find)(this.items,(function(e){return e.tabbedItem===t}));e&&this.showItemWrapper(e)},e.prototype.showItemWrapper=function(t){var e=this;this.params.onItemClicked&&this.params.onItemClicked({item:t.tabbedItem}),this.activeItem!==t?(Object(s.clearElement)(this.eBody),t.tabbedItem.bodyPromise.then((function(t){e.eBody.appendChild(t);var o=!e.focusController.isKeyboardFocus();e.focusController.focusInto(e.eBody,!1,o)})),this.activeItem&&Object(s.removeCssClass)(this.activeItem.eHeaderButton,"ag-tab-selected"),Object(s.addCssClass)(t.eHeaderButton,"ag-tab-selected"),this.activeItem=t,t.tabbedItem.afterAttachedCallback&&t.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):Object(u.callIfPresent)(this.params.onActiveItemClicked)},d([Object(r.d)("eHeader")],e.prototype,"eHeader",void 0),d([Object(r.d)("eBody")],e.prototype,"eBody",void 0),e}(i.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return r}));var n=o(24);function r(t){return new n.c((function(e){var o=new XMLHttpRequest;o.open("GET",t.url),o.send(),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&e(JSON.parse(o.responseText))}}))}},function(t,e,o){"use strict";o.d(e,"a",(function(){return h}));var n,r=o(56),i=o(0),s=o(8),a=o(11),l=o(2),u=o(7),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)}),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},d=function(t,e){return function(o,n){e(o,n,t)}},h=function(t){function e(e,o){var n=t.call(this)||this;return n.activeBlockLoadsCount=0,n.blocks=[],n.active=!0,n.maxConcurrentRequests=e,o&&o>0&&(n.checkBlockToLoadDebounce=Object(a.debounce)(n.performCheckBlocksToLoad.bind(n),o)),n}return p(e,t),e.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},e.prototype.addBlock=function(t){this.blocks.push(t)},e.prototype.removeBlock=function(t){Object(u.removeFromArray)(this.blocks,t)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var t=null;this.blocks.forEach((function(e){e.getState()===r.a.STATE_DIRTY&&(t=e)})),t?(t.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+t.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var t={};return this.blocks.forEach((function(e){var o=e.getNodeIdPrefix(),n={blockNumber:e.getBlockNumber(),startRow:e.getStartRow(),endRow:e.getEndRow(),pageStatus:e.getState()};Object(l.exists)(o)?t[o+e.getBlockNumber()]=n:t[e.getBlockNumber()]=n})),t},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},c([d(0,Object(i.h)("loggerFactory"))],e.prototype,"setBeans",null),e}(s.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return c}));var n,r=o(8),i=o(56),s=o(24),a=o(0),l=o(2),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)}),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},c=function(t){function e(e){var o=t.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=e.initialRowCount,o.cacheParams=e,o}return u(e,t),e.prototype.destroyAllBlocks=function(){var t=this;this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},e.prototype.init=function(){var t=this;this.active=!0,this.addDestroyFunc((function(){return t.active=!1}))},e.prototype.isActive=function(){return this.active},e.prototype.getVirtualRowCount=function(){return this.virtualRowCount},e.prototype.hack_setVirtualRowCount=function(t){this.virtualRowCount=t},e.prototype.isMaxRowFound=function(){return this.maxRowFound},e.prototype.onPageLoaded=function(t){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+t.page.getBlockNumber()+", lastRow = "+t.lastRow),t.success&&(this.checkVirtualRowCount(t.page,t.lastRow),this.onCacheUpdated()))},e.prototype.purgeBlocksIfNeeded=function(t){var o=this,n=[];this.forEachBlockInOrder((function(e){e!==t&&n.push(e)})),n.sort((function(t,e){return e.getLastAccessed()-t.getLastAccessed()}));var r=this.cacheParams.maxBlocksInCache>0,s=r?this.cacheParams.maxBlocksInCache-1:null,a=e.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach((function(t,e){if(t.getState()===i.a.STATE_DIRTY&&e>=a||!!r&&e>=s){if(t.isAnyNodeOpen(o.virtualRowCount))return;if(o.isBlockCurrentlyDisplayed(t))return;o.removeBlockFromCache(t)}}))},e.prototype.isBlockCurrentlyDisplayed=function(t){var e=this.rowRenderer.getFirstVirtualRenderedRow(),o=this.rowRenderer.getLastVirtualRenderedRow(),n=t.getDisplayIndexStart(),r=t.getDisplayIndexEnd()-1;return null!=n&&null!=r&&(!(n>o)&&!(r=0)this.virtualRowCount=e,this.maxRowFound=!0;else if(!this.maxRowFound){var o=(t.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount=t.virtualRowCount&&e.push(o)})),e.length>0&&e.forEach((function(e){return t.destroyBlock(e)}))},e.prototype.purgeCache=function(){var t=this;this.forEachBlockInOrder((function(e){return t.removeBlockFromCache(e)})),this.maxRowFound=!1,0===this.virtualRowCount&&(this.virtualRowCount=this.cacheParams.initialRowCount),this.onCacheUpdated()},e.prototype.getRowNodesInRange=function(t,e){var o=this,n=[],r=-1,i=!1,a=new s.b;Object(l.missing)(t)&&(i=!0);var u=!1;return this.forEachBlockInOrder((function(s,l){u||(i&&r+1!==l?u=!0:(r=l,s.forEachNodeShallow((function(o){var r=o===t||o===e;(i||r)&&n.push(o),r&&(i=!i)}),a,o.virtualRowCount)))})),u||i?[]:n},e.EVENT_CACHE_UPDATED="cacheUpdated",e.MAX_EMPTY_BLOCKS_TO_KEEP=2,p([Object(a.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),p([a.g],e.prototype,"destroyAllBlocks",null),p([a.e],e.prototype,"init",null),e}(r.a)},function(t,e,o){"use strict";o.d(e,"a",(function(){return d}));var n,r=o(0),i=o(6),s=o(33),a=o(1),l=o(14),u=o(9),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)}),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},d=function(t){function e(o,n){void 0===o&&(o="default"),void 0===n&&(n="listbox");var r=t.call(this,e.getTemplate(o),!0)||this;return r.cssIdentifier=o,r.ariaRole=n,r.renderedRows=new Map,r.rowHeight=20,r.isDestroyed=!1,r}return p(e,t),e.prototype.postConstruct=function(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),t.prototype.postConstruct.call(this)},e.prototype.addResizeObserver=function(){var t=this.drawVirtualRows.bind(this),e=this.resizeObserverService.observeResize(this.getGui(),t);this.addDestroyFunc(e)},e.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},e.prototype.onFocusIn=function(e){t.prototype.onFocusIn.call(this,e);var o=e.target;Object(a.containsClass)(o,"ag-virtual-list-item")&&(this.lastFocusedRowIndex=Object(l.getAriaPosInSet)(o)-1)},e.prototype.onFocusOut=function(e){t.prototype.onFocusOut.call(this,e),this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)},e.prototype.handleKeyDown=function(t){switch(t.keyCode){case u.a.UP:case u.a.DOWN:this.navigate(t.keyCode===u.a.UP)&&t.preventDefault()}},e.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():this.focusController.focusInto(this.getGui(),!t.shiftKey)},e.prototype.navigate=function(t){if(null==this.lastFocusedRowIndex)return!1;var e=this.lastFocusedRowIndex+(t?-1:1);return!(e<0||e>=this.model.getRowCount())&&(this.focusRow(e),!0)},e.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},e.prototype.focusRow=function(t){var e=this;this.ensureIndexVisible(t),window.setTimeout((function(){var o=e.renderedRows.get(t);o&&o.eDiv.focus()}),10)},e.prototype.getComponentAt=function(t){var e=this.renderedRows.get(t);return e&&e.rowComponent},e.getTemplate=function(t){return'\n '},e.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},e.prototype.ensureIndexVisible=function(t){var e=this.model.getRowCount();if("number"!=typeof t||t<0||t>=e)console.warn("invalid row index for ensureIndexVisible: "+t);else{var o=t*this.rowHeight,n=o+this.rowHeight,r=this.getGui(),i=r.scrollTop,s=r.offsetHeight,a=i+so)r.scrollTop=o;else if(a){var l=n-s;r.scrollTop=l}}},e.prototype.setComponentCreator=function(t){this.componentCreator=t},e.prototype.getRowHeight=function(){return this.rowHeight},e.prototype.getScrollTop=function(){return this.getGui().scrollTop},e.prototype.setRowHeight=function(t){this.rowHeight=t,this.refresh()},e.prototype.refresh=function(){var t=this;if(null!=this.model&&!this.isDestroyed){var e=this.model.getRowCount();this.eContainer.style.height=e*this.rowHeight+"px",setTimeout((function(){t.isDestroyed||(t.clearVirtualRows(),t.drawVirtualRows())}),0)}},e.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(e,o){return t.removeRow(o)}))},e.prototype.drawVirtualRows=function(){var t=this.getGui(),e=t.scrollTop,o=e+t.offsetHeight,n=Math.floor(e/this.rowHeight),r=Math.floor(o/this.rowHeight);this.ensureRowsRendered(n,r)},e.prototype.ensureRowsRendered=function(t,e){var o=this;this.renderedRows.forEach((function(n,r){(re)&&r!==o.lastFocusedRowIndex&&o.removeRow(r)}));for(var n=t;n<=e;n++)this.renderedRows.has(n)||n