@mongodb-js/compass-web 0.35.7 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/149.abccc0e903c0f5ea7354.mjs +372 -0
- package/dist/20.f2c2353886886939e128.mjs +2 -0
- package/dist/207.d69541eff41412663f35.mjs +2 -0
- package/dist/563.mjs +1 -0
- package/dist/566.513352a4be9e2a46530b.mjs +23 -0
- package/dist/68.f1ca0ed16b5fa27e2cf1.mjs +1 -0
- package/dist/69.mjs +1 -0
- package/dist/724.8aae14d079e334751961.mjs +8 -0
- package/dist/737.mjs +1 -0
- package/dist/745.mjs +1 -0
- package/dist/832.a6fb147f7fd965a7f30c.mjs +2 -0
- package/dist/938.e127bbcdd0ce0eab8722.mjs +2 -0
- package/dist/{689.b9f771d18a27cabdd86f.mjs.LICENSE.txt → 938.e127bbcdd0ce0eab8722.mjs.LICENSE.txt} +0 -2
- package/dist/965.3c1bdf715c3551cfe1ba.mjs +1 -0
- package/dist/995.c3bb8ac49cdffa0211da.mjs +2 -0
- package/dist/assets-manifest.json +11 -12
- package/dist/compass-web.d.ts +19 -292
- package/dist/compass-web.mjs +23 -23
- package/dist/index-bde52cb3.a964d5743a224d2efb82.mjs +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +54 -54
- package/dist/128.d74f22fdbc215f781713.mjs +0 -2
- package/dist/334.5c7ea1196bedce284d77.mjs +0 -1
- package/dist/483.64ece2742f0cbf71e1e9.mjs +0 -2
- package/dist/576.0e57b73614a2b8a60291.mjs +0 -378
- package/dist/689.b9f771d18a27cabdd86f.mjs +0 -2
- package/dist/800.6acd53ae9617e3cb63ed.mjs +0 -2
- package/dist/835.36c7bf1b88a1eece32fa.mjs +0 -2
- package/dist/877.f2c4c41353559e328324.mjs +0 -23
- package/dist/901.2101dc93082369c119a3.mjs +0 -2
- package/dist/957.97342b2fd269cf5f89d9.mjs +0 -1
- package/dist/965.437e2973d0ee9d5a908c.mjs +0 -1
- package/dist/index-bde52cb3.50a2f0232178524f12c7.mjs +0 -1
- /package/dist/{576.0e57b73614a2b8a60291.mjs.LICENSE.txt → 149.abccc0e903c0f5ea7354.mjs.LICENSE.txt} +0 -0
- /package/dist/{901.2101dc93082369c119a3.mjs.LICENSE.txt → 20.f2c2353886886939e128.mjs.LICENSE.txt} +0 -0
- /package/dist/{128.d74f22fdbc215f781713.mjs.LICENSE.txt → 207.d69541eff41412663f35.mjs.LICENSE.txt} +0 -0
- /package/dist/{877.f2c4c41353559e328324.mjs.LICENSE.txt → 566.513352a4be9e2a46530b.mjs.LICENSE.txt} +0 -0
- /package/dist/{835.36c7bf1b88a1eece32fa.mjs.LICENSE.txt → 724.8aae14d079e334751961.mjs.LICENSE.txt} +0 -0
- /package/dist/{800.6acd53ae9617e3cb63ed.mjs.LICENSE.txt → 832.a6fb147f7fd965a7f30c.mjs.LICENSE.txt} +0 -0
- /package/dist/{483.64ece2742f0cbf71e1e9.mjs.LICENSE.txt → 995.c3bb8ac49cdffa0211da.mjs.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 20.f2c2353886886939e128.mjs.LICENSE.txt */
|
|
2
|
+
export const __webpack_esm_id__=20;export const __webpack_esm_ids__=[20];export const __webpack_esm_modules__={663:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(55e3),a=o(44081),l=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var o=this,n=function(t,n){t.hasChildren()?(t.childrenAfterFilter=e&&!n?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,n=e.data&&o.filterManager.doesRowPassFilter(e);return t||n})):t.childrenAfterGroup,o.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){var i=function(e,t){if(e.childrenAfterGroup)for(var r=0;r<e.childrenAfterGroup.length;r++){var s=e.childrenAfterGroup[r],a=t||o.filterManager.doesRowPassFilter(s);s.childrenAfterGroup?i(e.childrenAfterGroup[r],a):n(s,a)}n(e,t)};t.executeFromRootNode((function(e){return i(e,!1)}))}else t.forEachChangedNodeDepthFirst((function(e){return n(e,!1)}),!0)},e.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},e.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},e.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},n([r.Autowired("filterManager"),i("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"postConstruct",null),n([r.Bean("filterService")],e)}();t.FilterService=l},719:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(45727),a=o(44081),l=o(44871),p=o(98239),u=o(55e3),d=o(15068),c=o(60843),h=o(63405),f=o(72493),g=o(54828),m=o(28771),y=o(68363),v=o(24463),C=o(88842),w=o(40797),E=o(83423);!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(r||(r={}));var _=function(){function e(){}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:s.Constants.STEP_EVERYTHING,afterColumnsChanged:!0});this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:s.Constants.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(h.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var o=this.refreshModel.bind(this,{step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:!0});this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.gridOptionsWrapper.addEventListener(a.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new d.RowNode,this.nodeManager=new m.ClientSideNodeManager(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.ensureRowHeightsValid=function(e,t,o,n){var i,r=!1;do{i=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,o),p=Math.min(a,n),u=l;u<=p;u++){var d=this.getRow(u);if(d.rowHeightEstimated){var c=this.gridOptionsWrapper.getRowHeightForNode(d);d.setRowHeight(c.height),i=!0,r=!0}}i&&this.setRowTops()}while(i);return r},e.prototype.setRowTops=function(){for(var e=0,t=0;t<this.rowsToDisplay.length;t++){var o=this.gridOptionsWrapper.getDomLayout()===s.Constants.DOM_LAYOUT_NORMAL,n=this.rowsToDisplay[t];if(E._.missing(n.rowHeight)){var i=this.gridOptionsWrapper.getRowHeightForNode(n,o);n.setRowHeight(i.height,i.estimated)}n.setRowTop(e),n.setRowIndex(t),e+=n.rowHeight}},e.prototype.resetRowTops=function(e,t){if(e.clearRowTop(),e.hasChildren()){if(e.childrenAfterGroup&&(!t.isActive()||e.expanded))for(var o=0;o<e.childrenAfterGroup.length;o++)this.resetRowTops(e.childrenAfterGroup[o],t);e.sibling&&e.sibling.clearRowTop()}e.detailNode&&e.detailNode.clearRowTop()},e.prototype.ensureRowAtPixel=function(e,t){var o=this.getRowIndexAtPixel(t);return this.getRow(o)!==e&&(E._.removeFromArray(this.rootNode.allLeafChildren,e),E._.insertIntoArray(this.rootNode.allLeafChildren,e,o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getRowBounds=function(e){if(E._.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_FILTER,keepRenderedRows:!0,animate:e})},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:s.Constants.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:s.Constants.STEP_PIVOT}):this.refreshModel({step:s.Constants.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=E._.missingOrEmpty(e),o=new y.ChangedPath(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},e.prototype.refreshModel=function(e){var t=this,o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case s.Constants.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,e.afterColumnsChanged);case s.Constants.STEP_FILTER:this.doFilter(o);case s.Constants.STEP_PIVOT:this.doPivot(o);case s.Constants.STEP_AGGREGATE:this.doAggregate(o);case s.Constants.STEP_SORT:this.doSort(e.rowNodeTransactions,o);case s.Constants.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,o),this.setRowTops();var n={type:h.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(n),this.$scope&&window.setTimeout((function(){t.$scope.$apply()}),0)},e.prototype.isEmpty=function(){var e;return e=E._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?E._.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:E._.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,E._.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return E._.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o,n=!t,i=!1,r=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort((function(a){var l=n&&!i;if(n||a!==t&&a!==e||(n=!0),!a.group||!s){var p=n&&!i,u=a.isParentOfNode(o);(p||u)&&r.push(a)}l&&(a!==t&&a!==e||(i=!0,o=a===t?t:e))})),r},e.prototype.setDatasource=function(e){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(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: rowModel.getVirtualRowCount() is not longer a function, use rowModel.getRowCount() instead"),this.getPageLastRow()},e.prototype.getPageFirstRow=function(){return 0},e.prototype.getPageLastRow=function(){return this.rowsToDisplay?this.rowsToDisplay.length-1:0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(this.rowsToDisplay[this.rowsToDisplay.length-1].rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var n=Math.floor((t+o)/2),i=this.rowsToDisplay[n];if(this.isRowInPixel(i,e))return n;i.rowTop<e?t=n+1:i.rowTop>e&&(o=n-1)}},e.prototype.isRowInPixel=function(e,t){var o=e.rowTop,n=e.rowTop+e.rowHeight;return o<=t&&n>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=this.rowsToDisplay[this.rowsToDisplay.length-1];return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,o){return e(t,o)}))},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,r.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,r.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,r.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,r.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,n){if(e)for(var i=0;i<e.length;i++){var s=e[i];if(t(s,n++),s.hasChildren()){var a=null;switch(o){case r.Normal:a=s.childrenAfterGroup;break;case r.AfterFilter:a=s.childrenAfterFilter;break;case r.AfterFilterAndSort:a=s.childrenAfterSort;break;case r.PivotNodes:a=s.leafGroup?null:s.childrenAfterSort}a&&(n=this.recursivelyWalkNodesAndCallback(a,t,o,n))}}return n},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsWrapper.isTreeData();this.rootNode&&function o(n){n&&n.forEach((function(n){(t?E._.exists(n.childrenAfterGroup):n.group)&&(n.expanded=e,o(n.childrenAfterGroup))}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:s.Constants.STEP_MAP});var o=e?"expandAll":"collapseAll",n={api:this.gridApi,columnApi:this.columnApi,type:h.Events.EVENT_EXPAND_COLLAPSE_ALL,source:o};this.eventService.dispatchEvent(n)},e.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},e.prototype.doRowGrouping=function(e,t,o,n,i){var r=this;E._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())||(this.groupStage?(t&&E._.exists(t)?t.forEach((function(e){r.groupStage.execute({rowNode:r.rootNode,rowNodeTransaction:e,rowNodeOrder:o,changedPath:n})})):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:i}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections(n)):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren)},e.prototype.restoreGroupState=function(e){e&&E._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])}))},e.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return E._.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){return e[o]=t.expanded})),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var o={type:h.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:s.Constants.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.batchUpdateRowData=function(e,t){var o=this;if(!this.rowDataTransactionBatch){this.rowDataTransactionBatch=[];var n=this.gridOptionsWrapper.getBatchUpdateWaitMillis();window.setTimeout((function(){o.executeBatchUpdateRowData(),o.rowDataTransactionBatch=null}),n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},e.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[];this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(n){var i=e.nodeManager.updateRowData(n.rowDataTransaction,null);o.push(i),n.callback&&t.push(n.callback.bind(i))})),this.commonUpdateRowData(o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([o],t),o},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:s.Constants.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var o={type:h.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:s.Constants.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode((function(e){return e.setRowHeight(null)})),this.onRowHeightChanged()},n([f.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([f.Autowired("columnController"),i("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([f.Autowired("filterManager"),i("design:type",u.FilterManager)],e.prototype,"filterManager",void 0),n([f.Autowired("$scope"),i("design:type",Object)],e.prototype,"$scope",void 0),n([f.Autowired("selectionController"),i("design:type",g.SelectionController)],e.prototype,"selectionController",void 0),n([f.Autowired("eventService"),i("design:type",c.EventService)],e.prototype,"eventService",void 0),n([f.Autowired("context"),i("design:type",f.Context)],e.prototype,"context",void 0),n([f.Autowired("valueService"),i("design:type",v.ValueService)],e.prototype,"valueService",void 0),n([f.Autowired("valueCache"),i("design:type",C.ValueCache)],e.prototype,"valueCache",void 0),n([f.Autowired("columnApi"),i("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),n([f.Autowired("gridApi"),i("design:type",w.GridApi)],e.prototype,"gridApi",void 0),n([f.Autowired("filterStage"),i("design:type",Object)],e.prototype,"filterStage",void 0),n([f.Autowired("sortStage"),i("design:type",Object)],e.prototype,"sortStage",void 0),n([f.Autowired("flattenStage"),i("design:type",Object)],e.prototype,"flattenStage",void 0),n([f.Optional("groupStage"),i("design:type",Object)],e.prototype,"groupStage",void 0),n([f.Optional("aggregationStage"),i("design:type",Object)],e.prototype,"aggregationStage",void 0),n([f.Optional("pivotStage"),i("design:type",Object)],e.prototype,"pivotStage",void 0),n([f.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([f.Bean("rowModel")],e)}();t.ClientSideRowModel=_},814:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(74517),a=o(72948),l=o(72493),p=o(72493),u=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){return e.width?e.width<this.gridOptionsWrapper.getMinColWidth()?this.gridOptionsWrapper.getMinColWidth():e.width:this.gridOptionsWrapper.getColWidth()},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],n=!1;return function t(i,r){for(var s=0;s<i.length;s++){if(n)return;var l=i[s];l instanceof a.OriginalColumnGroup?(t(l.getChildren(),r+1),o[r]=l):l===e&&(n=!0)}}(t,0),n?o:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var n=this;t&&t.forEach((function(t){t instanceof a.OriginalColumnGroup&&n.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)}))},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof s.ColumnGroup&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},n([p.Autowired("gridOptionsWrapper"),i("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([l.Bean("columnUtils")],e)}();t.ColumnUtils=u},1571:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(72493),a=o(44081),l=o(83423),p=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return l._.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var o=l._.getEventPath(e),n=0;n<o.length;n++){var i=o[n][t.GRID_DOM_KEY];if(l._.exists(i))return i===this.gridInstanceId}return!1},e.prototype.getGridCellForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getGridCell():null},e.gridInstanceSequence=new l.NumberSequence,e.GRID_DOM_KEY="__ag_grid_instance",n([s.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("eGridDiv"),i("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),t=n([r.Bean("mouseEventService")],e)}();t.MouseEventService=p},2102:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(96652),s=o(46410),a=o(47008),l=o(47008),p=function(e){function t(t,o){var n=e.call(this)||this;return n.reactComponent=t,n.parentComponent=o,n}return i(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return new l.Promise((function(o){t.eParentElement=document.createElement(t.parentComponent.props.componentWrappingElement||"div"),a.Utils.addCssClass(t.eParentElement,"ag-react-container"),e.reactContainer=t.eParentElement,t.createReactComponentLegacy(e,o)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){s.unmountComponentAtNode(this.eParentElement)},t.prototype.createReactComponentLegacy=function(e,t){var o=this,n=r.createElement(this.reactComponent,e);this.parentComponent?s.unstable_renderSubtreeIntoContainer(this.parentComponent,n,this.eParentElement,(function(){o.componentInstance=this,t(null)})):s.render(n,this.eParentElement,(function(){o.componentInstance=this,t(null)}))},t}(o(30844).BaseReactComponent);t.LegacyReactComponent=p},2299:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(21951),l=o(8534),p=o(72493),u=o(44871),d=o(40797),c=o(63405),h=o(60843),f=o(45727),g=o(54828),m=o(44081),y=function(e){function t(t,o){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.cbSelectAll=t,n.column=o;var i=o.getColDef();return n.filteredOnly=!!i&&!!i.headerCheckboxSelectionFilteredOnly,n}return i(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,a.AgCheckbox.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setVisible(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setSelected(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,o=0,n=function(n){e.gridOptionsWrapper.isGroupSelectsChildren()&&n.group||(n.isSelected()?t++:n.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(n):this.gridApi.forEachNode(n),{notSelected:o,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.isSelected()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi})),!(!e||(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)))},r([p.Autowired("gridApi"),s("design:type",d.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([p.Autowired("selectionController"),s("design:type",g.SelectionController)],t.prototype,"selectionController",void 0),r([p.Autowired("gridOptionsWrapper"),s("design:type",m.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(l.BeanStub);t.SelectAllFeature=y},2461:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(86608),a=o(24463),l=o(44081),p=o(98239),u=o(83423),d=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,o,n,i,r){var s=this;i.forEachChangedNodeDepthFirst((function(a){if(s.pullDownGroupDataForHideOpenParents(a.childrenAfterFilter,!0),t){var l=o?s.doDeltaSort(a,e,n,i,r):s.doFullSort(a,e);a.childrenAfterSort=l.map((function(e){return e.rowNode}))}else a.childrenAfterSort=a.childrenAfterFilter.slice(0);s.updateChildIndexes(a),s.postSortFunc&&s.postSortFunc(a.childrenAfterSort)})),this.updateGroupDataForHiddenOpenParents(i)},e.prototype.doFullSort=function(e,t){var o=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return o.sort(this.compareRowNodes.bind(this,t)),o},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,o,n,i){var r=e.childrenAfterSort.filter((function(e){var t=!o[e.id],r=i||n.canSkip(e);return t&&r})).map(this.mapNodeToSortedNode.bind(this)),s={};r.forEach((function(e){return s[e.rowNode.id]=e.rowNode}));var a=e.childrenAfterFilter.filter((function(e){return!s[e.id]})).map(this.mapNodeToSortedNode.bind(this));return a.sort(this.compareRowNodes.bind(this,t)),0===a.length?r:0===r.length?a:this.mergeSortedArrays(t,r,a)},e.prototype.mergeSortedArrays=function(e,t,o){for(var n=[],i=0,r=0;i<t.length&&r<o.length;)this.compareRowNodes(e,t[i],o[r])<0?n.push(t[i++]):n.push(o[r++]);for(;i<t.length;)n.push(t[i++]);for(;r<o.length;)n.push(o[r++]);return n},e.prototype.compareRowNodes=function(e,t,o){for(var n=t.rowNode,i=o.rowNode,r=0,s=e.length;r<s;r++){var a,l=e[r],p=-1===l.inverter,d=this.getValue(n,l.column),c=this.getValue(i,l.column);if(0!==(a=l.column.getColDef().comparator?l.column.getColDef().comparator(d,c,n,i,p):u._.defaultComparator(d,c,this.gridOptionsWrapper.isAccentedSort())))return a*l.inverter}return t.currentPos-o.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){if(!u._.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,o=0;o<t.length;o++){var n=t[o],i=0===o,r=o===e.childrenAfterSort.length-1;n.setFirstChild(i),n.setLastChild(r),n.setChildIndex(o)}},e.prototype.updateGroupDataForHiddenOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){var o=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&o(e)}))};e.executeFromRootNode((function(e){return o(e)}))}},e.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;u._.missing(e)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.forEach((function(e){o.columnController.getGroupDisplayColumns().forEach((function(n){var i=n.getColDef().showRowGroup;if("string"==typeof i){var r=i,s=o.columnController.getPrimaryColumn(r);if(s!==e.rowGroupColumn)if(t)e.setGroupValue(n.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(n.getId(),a.key)}}else console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},n([r.Autowired("sortController"),i("design:type",s.SortController)],e.prototype,"sortController",void 0),n([r.Autowired("columnController"),i("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("valueService"),i("design:type",a.ValueService)],e.prototype,"valueService",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r.Bean("sortService")],e)}();t.SortService=d},3976:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(45727),i=o(34782),r=o(83423),s=function(){function e(e,t){this.rowIndex=e,this.floating=r._.makeNull(t)}return e.prototype.isFloatingTop=function(){return this.floating===n.Constants.PINNED_TOP},e.prototype.isFloatingBottom=function(){return this.floating===n.Constants.PINNED_BOTTOM},e.prototype.isNotFloating=function(){return!this.isFloatingBottom()&&!this.isFloatingTop()},e.prototype.equals=function(e){return this.rowIndex===e.rowIndex&&this.floating===e.floating},e.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating},e.prototype.getGridCell=function(e){var t={rowIndex:this.rowIndex,floating:this.floating,column:e};return new i.GridCell(t)},e.prototype.before=function(e){var t=e.floating;switch(this.floating){case n.Constants.PINNED_TOP:if(t!==n.Constants.PINNED_TOP)return!0;break;case n.Constants.PINNED_BOTTOM:if(t!==n.Constants.PINNED_BOTTOM)return!1;break;default:if(r._.exists(t))return t!==n.Constants.PINNED_TOP}return this.rowIndex<e.rowIndex},e}();t.GridRow=s},4889:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(83423),l=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))},e.prototype.updateSelectableAfterFiltering=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterFilter}))},e.prototype.recurseDown=function(e,t){var o=this;e.forEach((function(e){if(e.group){var n;if(e.hasChildren()&&o.recurseDown(t(e),t),o.groupSelectsChildren){var i=a._.find(t(e),"selectable",!0);n=a._.exists(i)}else n=!!o.isRowSelectableFunc&&o.isRowSelectableFunc(e);e.setRowSelectable(n)}}))},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r.Bean("selectableService")],e)}();t.SelectableService=l},5448:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isPopup=function(){return!0},t}(o(71616).TextCellEditor);t.PopupTextCellEditor=r},6065:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(44081),p=o(68363),u=o(10042),d=o(60843),c=o(45727),h=o(8534),f=o(63405),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(){this.rowModel.getType()===c.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),n=new p.ChangedPath(o,this.clientSideRowModel.getRootNode());n.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(n)}this.rowRenderer.refreshCells()}},r([a.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([a.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([a.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),r([a.Bean("changeDetectionService")],t)}(h.BeanStub);t.ChangeDetectionService=g},7760:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(83423);t.simpleHttpRequest=function(e){return new n.Promise((function(t){var o=new XMLHttpRequest;o.open("GET",e.url),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var e=JSON.parse(o.responseText);t(e)}}}))}},7897:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(44081),a=o(37132),l=o(814),p=o(69734),u=o(72948),d=o(26016),c=o(72493),h=o(99770),f=o(83423),g=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},e.prototype.createColumnTree=function(e,t,o){var n=new p.ColumnKeyCreator;if(o){var i=o.map((function(e){return e.getId()}));n.addExistingKeys(i)}var r=o?o.slice():null,s=this.recursivelyCreateColumns(e,0,t,r,n,null),a=this.findMaxDept(s,0);this.logger.log("Number of levels for grouped columns is "+a);var l=this.balanceColumnTree(s,0,a,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,l,(function(e,t){e instanceof u.OriginalColumnGroup&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:l,treeDept:a}},e.prototype.createForAutoGroups=function(e,t){var o=this,n=[];return e.forEach((function(e){var i=o.createAutoGroupTreeItem(t,e);n.push(i)})),n},e.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,n=this.findDepth(e)-1;n>=0;n--){var i=new u.OriginalColumnGroup(null,"FAKE_PATH_"+t.getId()+"}_"+n,!0,n);this.context.wireBean(i),i.setChildren([o]),o.setOriginalParent(i),o=i}return o},e.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof u.OriginalColumnGroup;)t++,o=o[0].getChildren();return t},e.prototype.balanceColumnTree=function(e,t,o,n){for(var i=[],r=0;r<e.length;r++){var s=e[r];if(s instanceof u.OriginalColumnGroup){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,n);a.setChildren(l),i.push(a)}else{for(var p=void 0,d=void 0,c=o-1;c>=t;c--){var h=n.getUniqueKey(null,null),f=this.createMergedColGroupDef(null),g=new u.OriginalColumnGroup(f,h,!0,t);this.context.wireBean(g),d&&d.setChildren([g]),d=g,p||(p=d)}if(p){i.push(p);var m=e.some((function(e){return e instanceof u.OriginalColumnGroup}));if(m){d.setChildren([s]);continue}d.setChildren(e);break}i.push(s)}}return i},e.prototype.findMaxDept=function(e,t){for(var o=t,n=0;n<e.length;n++){var i=e[n];if(i instanceof u.OriginalColumnGroup){var r=i,s=this.findMaxDept(r.getChildren(),t+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(e,t,o,n,i,r){var s=this,a=[];return e?(e.forEach((function(e){var l;l=s.isColumnGroup(e)?s.createColumnGroup(o,e,t,n,i,r):s.createColumn(o,e,n,i,r),a.push(l)})),a):a},e.prototype.createColumnGroup=function(e,t,o,n,i,r){var s=this.createMergedColGroupDef(t),a=i.getUniqueKey(s.groupId,null),l=new u.OriginalColumnGroup(s,a,!1,o);this.context.wireBean(l);var p=this.recursivelyCreateColumns(s.children,o+1,e,n,i,l);return l.setChildren(p),l},e.prototype.createMergedColGroupDef=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),f._.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,o,n,i){var r=this.mergeColDefs(t);this.checkForDeprecatedItems(r);var s=this.findExistingColumn(t,o);if(s)s.setColDef(r,t);else{var a=n.getUniqueKey(r.colId,r.field);s=new d.Column(r,t,a,e),this.context.wireBean(s)}return s},e.prototype.findExistingColumn=function(e,t){var o=f._.find(t,(function(t){var o=t.getUserProvidedColDef();return!(!o||o!==e&&(null===o.colId||void 0===o.colId||o.colId!==e.colId))}));return o&&f._.removeFromArray(t,o),o},e.prototype.mergeColDefs=function(e){var t={};return f._.assign(t,this.gridOptionsWrapper.getDefaultColDef()),e.type&&this.assignColumnTypes(e,t),f._.assign(t,e),t},e.prototype.assignColumnTypes=function(e,t){var o;if(e.type instanceof Array)e.type.some((function(e){return"string"!=typeof e}))?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e.type;else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");o=e.type.split(",")}var n=f._.assign({},this.gridOptionsWrapper.getColumnTypes(),h.DefaultColumnTypes);o.forEach((function(e){var o=n[e.trim()];o?f._.assign(t,o):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},n([c.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("columnUtils"),i("design:type",l.ColumnUtils)],e.prototype,"columnUtils",void 0),n([c.Autowired("context"),i("design:type",c.Context)],e.prototype,"context",void 0),n([r(0,c.Qualifier("loggerFactory")),i("design:type",Function),i("design:paramtypes",[a.LoggerFactory]),i("design:returntype",void 0)],e.prototype,"setBeans",null),n([c.Bean("columnFactory")],e)}();t.ColumnFactory=g},8534:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(60843),s=o(44081),a=o(72493),l=o(83423),p=function(){function e(){this.destroyFunctions=[],this.destroyed=!1}return e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new r.EventService),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,o,n){this.destroyed||(e instanceof HTMLElement?l._.addSafePassiveEventListener(e,t,o,n):(e instanceof Window||s.GridOptionsWrapper,e.addEventListener(t,o)),this.destroyFunctions.push((function(){e instanceof HTMLElement||e instanceof Window||s.GridOptionsWrapper,e.removeEventListener(t,o)})))},e.prototype.isAlive=function(){return!this.destroyed},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.EVENT_DESTROYED="destroyed",n([a.Autowired("context"),i("design:type",a.Context)],e.prototype,"context",void 0),n([a.PreDestroy,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"destroy",null),e}();t.BeanStub=p},8894:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(34782),a=o(45727),l=o(1571),p=o(41451),u=o(42195),d=o(69065),c=o(98239),h=o(44081),f=o(83423),g=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,o=e.altKey,n=e.ctrlKey,i=this.mouseEventService.getGridCellForEvent(e).getGridCellDef();if(!i)return!1;var r=!1;switch(t){case a.Constants.KEY_PAGE_HOME:case a.Constants.KEY_PAGE_END:n||o||(this.onHomeOrEndKey(t),r=!0);break;case a.Constants.KEY_LEFT:case a.Constants.KEY_RIGHT:n&&!o&&(this.onCtrlLeftOrRight(t,i),r=!0);break;case a.Constants.KEY_UP:case a.Constants.KEY_DOWN:n&&!o&&(this.onCtrlUpOrDown(t,i),r=!0);break;case a.Constants.KEY_PAGE_DOWN:n||o||(this.onPageDown(i),r=!0);break;case a.Constants.KEY_PAGE_UP:n||o||(this.onPageUp(i),r=!0)}return r&&e.preventDefault(),r},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var n=this.paginationProxy.getPixelOffset(),i=t.top+o,r=this.paginationProxy.getRowIndexAtPixel(i+n),s=this.paginationProxy.getRow(e.rowIndex).rowTop+o-n,a=this.paginationProxy.getRowIndexAtPixel(s+n),l=this.paginationProxy.getPageLastRow();a>l&&(a=l),r>l&&(r=l),this.navigateTo(r,"top",null,a,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),o=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(o-=this.scrollWidth);var n=this.paginationProxy.getPixelOffset(),i=t.top,r=this.paginationProxy.getRowIndexAtPixel(i+n),s=this.paginationProxy.getRow(e.rowIndex),a=s.rowTop+s.rowHeight-o-n,l=this.paginationProxy.getRowIndexAtPixel(a+n),p=this.paginationProxy.getPageFirstRow();l<p&&(l=p),r<p&&(r=p),this.navigateTo(r,"bottom",null,l,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.navigateTo=function(e,t,o,n,i){if(f._.exists(o)&&this.gridPanel.ensureColumnVisible(o),f._.exists(e)&&this.gridPanel.ensureIndexVisible(e,t),this.animationFrameService.flushAllFrames(),this.focusedCellController.setFocusedCell(n,i,null,!0),this.rangeController){var r=new s.GridCell({rowIndex:n,floating:null,column:i});this.rangeController.setRangeToCell(r)}},e.prototype.onCtrlUpOrDown=function(e,t){var o=e===a.Constants.KEY_UP?0:this.paginationProxy.getPageLastRow();this.navigateTo(o,null,t.column,o,t.column)},e.prototype.onCtrlLeftOrRight=function(e,t){var o=e===a.Constants.KEY_LEFT,n=this.columnController.getAllDisplayedColumns(),i=o?n[0]:n[n.length-1];this.navigateTo(t.rowIndex,null,i,t.rowIndex,i)},e.prototype.onHomeOrEndKey=function(e){var t=e===a.Constants.KEY_PAGE_HOME,o=this.columnController.getAllDisplayedColumns(),n=t?o[0]:o[o.length-1],i=t?0:this.paginationProxy.getPageLastRow();this.navigateTo(i,null,n,i,n)},n([r.Autowired("mouseEventService"),i("design:type",l.MouseEventService)],e.prototype,"mouseEventService",void 0),n([r.Autowired("paginationProxy"),i("design:type",p.PaginationProxy)],e.prototype,"paginationProxy",void 0),n([r.Autowired("focusedCellController"),i("design:type",u.FocusedCellController)],e.prototype,"focusedCellController",void 0),n([r.Autowired("animationFrameService"),i("design:type",d.AnimationFrameService)],e.prototype,"animationFrameService",void 0),n([r.Optional("rangeController"),i("design:type",Object)],e.prototype,"rangeController",void 0),n([r.Autowired("columnController"),i("design:type",c.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",h.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r.Bean("navigationService")],e)}();t.NavigationService=g},9018:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var i=o(72493),r=o(83423),s=[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],a=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),o=t.length,n="",i=0,r=0,s=0,a=t;s<a.length;s++){var l=a[s],p=this.getHeader(l,i),u=p.fileHeader,d=p.folderHeader,c=p.content;i+=u.length+c.length,r+=d.length,e+=u+c,n+=d}return e+n+this.buildFolderEnd(o,r,i)},e.prototype.getHeader=function(e,t){var o=e.content,n=e.path,i=e.created,s=r._.utf8_encode,a=r._.decToHex,l=s(n),p=l!==n,u=this.convertTime(i),d=this.convertDate(i),c="";if(p){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;c="up"+a(h.length,2)+h}var f="\n\0"+(p?"\0\b":"\0\0")+"\0\0"+a(u,2)+a(d,2)+a(o?this.getFromCrc32Table(o):0,4)+a(o?o.length:0,4)+a(o?o.length:0,4)+a(l.length,2)+a(c.length,2);return{fileHeader:"PK"+f+l+c,folderHeader:"PK\0"+f+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+a(t,4)+l+c,content:o||""}},e.prototype.buildFolderEnd=function(e,t,o){var n=r._.decToHex;return"PK\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(o,4)+"\0\0"},e.prototype.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.prototype.getFromCrc32Table=function(e,t){if(void 0===t&&(t=0),!e.length)return 0;t^=-1;for(var o=0,n=0;n<e.length;n++)o=e.charCodeAt(n),t=t>>>8^s[255&(t^o)];return~t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),(t<<=5)|e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,(t<<=5)|e.getDate()},n([i.Bean("zipContainer")],e)}();t.ZipContainer=a},10042:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(44081),p=o(40634),u=o(92427),d=o(24463),c=o(60843),h=o(19378),f=o(63405),g=o(45727),m=o(23054),y=o(72493),v=o(44871),C=o(98239),w=o(37132),E=o(42195),_=o(38427),R=o(34782),O=o(8534),b=o(41451),S=o(40797),P=o(50580),A=o(55090),T=o(69065),D=o(51755),N=o(83423),I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return i(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,l.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.printLayout=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){N._.missing(e)&&(e={type:f.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function o(o,n){var i=n.getCellForCol(e);i&&t.push(i)}return N._.iterateObject(this.rowCompsByIndex,o),N._.iterateObject(this.floatingBottomRowComps,o),N._.iterateObject(this.floatingTopRowComps,o),t},t.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.floatingBottomFullWith)},t.prototype.refreshFloatingRows=function(e,t,o,n,i,r){var s=this;e.forEach((function(e){e.destroy()})),e.length=0,t&&t.forEach((function(t){var a=new h.RowComp(s.$scope,i,o,n,r,t,s.beans,!1,!1,s.printLayout,s.embedFullWidthRows);a.init(),e.push(a)})),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return N._.missing(e)||N._.iterateObject(this.rowCompsByIndex,(function(o,n){var i=n.getRowNode();e.indexOf(i)>=0&&t.push(o)})),t},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusedCellController.getFocusCellToUseAfterRefresh();if(N._.missing(t))return null;var o=document.activeElement,n=this.gridOptionsWrapper.getDomData(o,m.CellComp.DOM_DATA_KEY_CELL_COMP);return N._.missing(n)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&e.recycleRows,n=e.animate&&this.gridOptionsWrapper.isAnimateRows(),i=this.binRowComps(o);this.redraw(i,n),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!o&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach((function(e){return e.setHeight(null)}));else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var o=this.maxDivHeightScaler.getUiContainerHeight();e.forEach((function(e){return e.setHeight(o)}))}},t.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, eg 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},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.floating,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp((function(t,o){o.stopEditing(e)}))},t.prototype.forEachCellComp=function(e){this.forEachRowComp((function(t,o){return o.forEachCellComp(e)}))},t.prototype.forEachRowComp=function(e){N._.iterateObject(this.rowCompsByIndex,e),N._.iterateObject(this.floatingTopRowComps,e),N._.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,o){var n=this.rowCompsByIndex[t];n&&n.addEventListener(e,o)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.flashCell()}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){return e.refreshCell(t)}))},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellRenderer();o&&t.push(o)})),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,(function(e){var o=e.getCellEditor();o&&t.push(o)})),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp((function(t){if(t.isEditing()){var o=t.getGridCell().getGridCellDef();e.push(o)}})),e},t.prototype.forEachCellCompFiltered=function(e,t,o){var n,i,r=this;N._.exists(e)&&(n={top:{},bottom:{},normal:{}},e.forEach((function(e){e.rowPinned===g.Constants.PINNED_TOP?n.top[e.id]=!0:e.rowPinned===g.Constants.PINNED_BOTTOM?n.bottom[e.id]=!0:n.normal[e.id]=!0}))),N._.exists(t)&&(i={},t.forEach((function(e){var t=r.columnController.getGridColumn(e);N._.exists(t)&&(i[t.getId()]=!0)})));var s=function(e){var t=e.getRowNode(),r=t.id,s=t.rowPinned;if(N._.exists(n))if(s===g.Constants.PINNED_BOTTOM){if(!n.bottom[r])return}else if(s===g.Constants.PINNED_TOP){if(!n.top[r])return}else if(!n.normal[r])return;e.forEachCellComp((function(e){var t=e.getColumn().getId();i&&!i[t]||o(e)}))};N._.iterateObject(this.rowCompsByIndex,(function(e,t){s(t)})),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},t.prototype.binRowComps=function(e){var t,o=this,n={};return e?(t=[],N._.iterateObject(this.rowCompsByIndex,(function(e,i){var r=i.getRowNode();N._.exists(r.id)?(n[r.id]=i,delete o.rowCompsByIndex[e]):t.push(e)}))):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),n},t.prototype.removeRowComps=function(e){var t=this;e.forEach((function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var o=Object.keys(this.rowCompsByIndex),n=N._.filter(o,(function(e){return!t[e]}));this.removeRowComps(n)},t.prototype.calculateIndexesToDraw=function(){var e=this,t=N._.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return N._.iterateObject(this.rowCompsByIndex,(function(o,n){var i=Number(o);(i<e.firstRenderedRow||i>e.lastRenderedRow)&&e.keepRowBecauseEditingOrFocused(n)&&t.push(i)})),t.sort((function(e,t){return e-t})),t},t.prototype.redraw=function(e,t,o){var n=this;void 0===t&&(t=!1),void 0===o&&(o=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1);var r=[],s=[];i.forEach((function(i){var a=n.createOrUpdateRowComp(i,e,t,o);N._.exists(a)&&(s.push(a),N._.pushAll(r,a.getAndClearNextVMTurnFunctions()))})),this.flushContainers(s),N._.executeNextVMTurn(r),!o||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowComps(e,t):this.beans.taskQueue.addP2Task(this.destroyRowComps.bind(this,e,t)),this.checkAngularCompile()},t.prototype.flushContainers=function(e){N._.iterateObject(this.rowContainers,(function(e,t){t&&t.flushRowTemplates()})),e.forEach((function(e){return e.afterFlush()}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];N._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var n=o.getRowNode().rowIndex;e.push(n.toString())}})),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];N._.iterateObject(this.rowCompsByIndex,(function(t,o){if(o.isFullWidth()){var n=o.getRowNode().rowIndex;e.push(n.toString())}})),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,o,n){var i,r=this.rowCompsByIndex[e];if(r||(i=this.paginationProxy.getRow(e),N._.exists(i)&&N._.exists(t)&&t[i.id]&&i.alreadyRendered&&(r=t[i.id],t[i.id]=null)),r)r.ensureDomOrder();else{if(i||(i=this.paginationProxy.getRow(e)),!N._.exists(i))return;r=this.createRowComp(i,o,n)}return i&&(i.alreadyRendered=!0),this.rowCompsByIndex[e]=r,r},t.prototype.destroyRowComps=function(e,t){var o=[];N._.iterateObject(e,(function(e,n){n&&(n.destroy(t),N._.pushAll(o,n.getAndClearDelayedDestroyFunctions()))})),N._.executeInAWhile(o)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout((function(){e.$scope.$apply()}),0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.paginationProxy?this.paginationProxy.getPixelOffset():0,n=this.maxDivHeightScaler.getOffset(),i=this.gridPanel.getVScrollPosition(),r=i.top,s=i.bottom,a=this.gridOptionsWrapper.getRowBufferInPixels(),l=r+o+n-a,p=s+o+n+a;this.ensureAllRowsInRangeHaveHeightsCalculated(l,p);var u=this.paginationProxy.getRowIndexAtPixel(l),d=this.paginationProxy.getRowIndexAtPixel(p),c=this.paginationProxy.getPageFirstRow(),h=this.paginationProxy.getPageLastRow();u<c&&(u=c),d>h&&(d=h),e=u,t=d}else e=0,t=-1;var m=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_NORMAL,y=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction();m&&!y&&t-e>500&&(t=e+500);var v=e!==this.firstRenderedRow,C=t!==this.lastRenderedRow;if(v||C){this.firstRenderedRow=e,this.lastRenderedRow=t;var w={type:f.Events.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var E={type:f.Events.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEventOnce(E)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.keepRowBecauseEditingOrFocused=function(e){var t=e.getRowNode(),o=this.focusedCellController.isRowNodeFocused(t),n=e.isEditing();return(o||n)&&!!this.paginationProxy.isRowPresent(t)||!1},t.prototype.createRowComp=function(e,t,o){var n=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=o&&!n&&!this.printLayout,r=new h.RowComp(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,i,this.printLayout,this.embedFullWidthRows);return r.init(),r},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.navigateToNextCell=function(e,t,o,n){for(var i;;){var r=this.getComponentForCell(o).getColSpanningList();if(t===g.Constants.KEY_RIGHT&&r.length>1&&(o=new R.GridCell({rowIndex:o.rowIndex,column:r[r.length-1],floating:o.floating})),i=this.cellNavigationService.getNextCellToFocus(t,o),N._.missing(i))break;if(!this.gridOptionsWrapper.isGroupUseEntireRow())break;if(!this.paginationProxy.getRow(i.rowIndex).group)break}if(i&&(i=this.getComponentForCell(i).getGridCell()),n){var s=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(N._.exists(s)){var a=s({key:t,previousCellDef:o.getGridCellDef(),nextCellDef:i?i.getGridCellDef():null,event:e});i=N._.exists(a)?new R.GridCell(a):null}}if(i&&(this.ensureCellVisible(i),this.focusedCellController.setFocusedCell(i.rowIndex,i.column,i.floating,!0),this.rangeController)){var l=new R.GridCell({rowIndex:i.rowIndex,floating:i.floating,column:i.column});this.rangeController.setRangeToCell(l)}},t.prototype.ensureCellVisible=function(e){N._.missing(e.floating)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,o){var n=this.getComponentForCell(e);n&&n.startRowOrCellEdit(t,o)},t.prototype.getComponentForCell=function(e){var t;switch(e.floating){case g.Constants.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case g.Constants.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;this.moveToCellAfter(e,o)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusedCellController.getFocusedCell();if(N._.missing(t))return!1;var o=this.getComponentForCell(t);return!N._.missing(o)&&this.moveToCellAfter(o,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var o=e.getGridCell();e.stopEditing();var n=this.findNextCellToFocusOn(o,t,!0),i=N._.exists(n);return i&&(n.startEditingIfEnabled(null,null,!0),n.focusCell(!1)),i},t.prototype.moveToNextEditingRow=function(e,t){var o=e.getGridCell(),n=this.findNextCellToFocusOn(o,t,!0),i=N._.exists(n);return i&&this.moveEditToNextCellOrRow(e,n),i},t.prototype.moveToNextCellNotEditing=function(e,t){var o=e.getGridCell(),n=this.findNextCellToFocusOn(o,t,!1),i=N._.exists(n);return i&&n.focusCell(!0),i},t.prototype.moveEditToNextCellOrRow=function(e,t){var o=e.getGridCell(),n=t.getGridCell();if(o.rowIndex===n.rowIndex&&o.floating===n.floating)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var i=e.getRenderedRow(),r=t.getRenderedRow();e.setFocusOutOnEditor(),i.stopEditing(),r.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,o){for(var n=e;;){n=this.cellNavigationService.getNextTabbedCell(n,t);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(N._.exists(i)){var r=i({backwards:t,editing:o,previousCellDef:e.getGridCellDef(),nextCellDef:n?n.getGridCellDef():null});n=N._.exists(r)?new R.GridCell(r):null}if(!n)return null;if(o){var s=this.lookupRowNodeForCell(n);if(!n.column.isCellEditable(s))continue}N._.missing(n.floating)&&this.gridPanel.ensureIndexVisible(n.rowIndex),n.column.isPinned()||this.gridPanel.ensureColumnVisible(n.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var a=this.getComponentForCell(n);if(!N._.missing(a)&&!a.isSuppressNavigable())return this.rangeController&&(e=new R.GridCell({rowIndex:n.rowIndex,floating:n.floating,column:n.column}),this.rangeController.setRangeToCell(e)),a}},t.prototype.lookupRowNodeForCell=function(e){return e.floating===g.Constants.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.floating===g.Constants.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},r([y.Autowired("paginationProxy"),s("design:type",b.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([y.Autowired("columnController"),s("design:type",C.ColumnController)],t.prototype,"columnController",void 0),r([y.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([y.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([y.Autowired("expressionService"),s("design:type",p.ExpressionService)],t.prototype,"expressionService",void 0),r([y.Autowired("templateService"),s("design:type",u.TemplateService)],t.prototype,"templateService",void 0),r([y.Autowired("valueService"),s("design:type",d.ValueService)],t.prototype,"valueService",void 0),r([y.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([y.Autowired("pinnedRowModel"),s("design:type",P.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),r([y.Autowired("loggerFactory"),s("design:type",w.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([y.Autowired("focusedCellController"),s("design:type",E.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([y.Autowired("cellNavigationService"),s("design:type",_.CellNavigationService)],t.prototype,"cellNavigationService",void 0),r([y.Autowired("columnApi"),s("design:type",v.ColumnApi)],t.prototype,"columnApi",void 0),r([y.Autowired("gridApi"),s("design:type",S.GridApi)],t.prototype,"gridApi",void 0),r([y.Autowired("beans"),s("design:type",A.Beans)],t.prototype,"beans",void 0),r([y.Autowired("maxDivHeightScaler"),s("design:type",D.MaxDivHeightScaler)],t.prototype,"maxDivHeightScaler",void 0),r([y.Autowired("animationFrameService"),s("design:type",T.AnimationFrameService)],t.prototype,"animationFrameService",void 0),r([y.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),r([a(0,y.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[w.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"agWire",null),r([y.Bean("rowRenderer")],t)}(O.BeanStub);t.RowRenderer=I},10190:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(44081),a=o(98239),l=o(60843),p=o(37132),u=o(63405),d=o(72493),c=o(72493),h=o(72493),f=o(72493),g=function(){function e(){this.consuming=!1}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.eventService.addEventListener(u.Events.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(u.Events.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}}))}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.gridPanel.setHorizontalScrollPosition(e.left)}))},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case u.Events.EVENT_COLUMN_MOVED:case u.Events.EVENT_COLUMN_VISIBLE:case u.Events.EVENT_COLUMN_PINNED:case u.Events.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case u.Events.EVENT_COLUMN_GROUP_OPENED:var n=e;t.processGroupOpenedEvent(n);break;case u.Events.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(e){var t,o=e.columnGroup;if(o){var n=o.getGroupId();t=this.columnController.getOriginalColumnGroup(n)}o&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(t,o.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,o=this,n=e.column;if(n&&(t=this.columnController.getPrimaryColumn(n.getColId())),!n||t){var i=this.getColumnIds(e),r=this.getMasterColumns(e);switch(e.type){case u.Events.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(i,s.toIndex,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(i,a.visible,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(i,l.pinned,"alignedGridChanged");break;case u.Events.EVENT_COLUMN_RESIZED:var p=e;r.forEach((function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),o.columnController.setColumnWidth(t.getColId(),t.getActualWidth(),!1,p.finished,"alignedGridChanged")}))}var d=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach((function(e){e.api.setAlwaysShowVerticalScroll(d)}))}},n([h.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([h.Autowired("columnController"),i("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([h.Autowired("eventService"),i("design:type",l.EventService)],e.prototype,"eventService",void 0),n([r(0,c.Qualifier("loggerFactory")),i("design:type",Function),i("design:paramtypes",[p.LoggerFactory]),i("design:returntype",void 0)],e.prototype,"setBeans",null),n([f.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([d.Bean("alignedGridsService")],e)}();t.AlignedGridsService=g},12240:(e,t,o)=>{o.d(t,{Di:()=>M,M3:()=>H,Tt:()=>C,b8:()=>pe,bD:()=>d,eM:()=>ee,hL:()=>g,iM:()=>re,u1:()=>w,u6:()=>U});var n,i,r,s,a,l,p="vercel.ai.error",u=Symbol.for(p),d=class e extends(i=Error,n=u,i){constructor({name:e,message:t,cause:o}){super(t),this[n]=!0,this.name=e,this.cause=o}static isInstance(t){return e.hasMarker(t,p)}static hasMarker(e,t){const o=Symbol.for(t);return null!=e&&"object"==typeof e&&o in e&&"boolean"==typeof e[o]&&!0===e[o]}},c="AI_APICallError",h=`vercel.ai.error.${c}`,f=Symbol.for(h),g=class extends(s=d,r=f,s){constructor({message:e,url:t,requestBodyValues:o,statusCode:n,responseHeaders:i,responseBody:s,cause:a,isRetryable:l=null!=n&&(408===n||409===n||429===n||n>=500),data:p}){super({name:c,message:e,cause:a}),this[r]=!0,this.url=t,this.requestBodyValues=o,this.statusCode=n,this.responseHeaders=i,this.responseBody=s,this.isRetryable=l,this.data=p}static isInstance(e){return d.hasMarker(e,h)}},m="AI_EmptyResponseBodyError",y=`vercel.ai.error.${m}`,v=Symbol.for(y),C=class extends(l=d,a=v,l){constructor({message:e="Empty response body"}={}){super({name:m,message:e}),this[a]=!0}static isInstance(e){return d.hasMarker(e,y)}};function w(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var E,_,R,O,b,S,P,A,T,D,N,I,F="AI_InvalidArgumentError",L=`vercel.ai.error.${F}`,x=Symbol.for(L),M=class extends(_=d,E=x,_){constructor({message:e,cause:t,argument:o}){super({name:F,message:e,cause:t}),this[E]=!0,this.argument=o}static isInstance(e){return d.hasMarker(e,L)}},G="AI_InvalidPromptError",k=`vercel.ai.error.${G}`,W=Symbol.for(k),H=class extends(O=d,R=W,O){constructor({prompt:e,message:t,cause:o}){super({name:G,message:`Invalid prompt: ${t}`,cause:o}),this[R]=!0,this.prompt=e}static isInstance(e){return d.hasMarker(e,k)}},V=Symbol.for("vercel.ai.error.AI_InvalidResponseDataError"),j="AI_JSONParseError",B=`vercel.ai.error.${j}`,Y=Symbol.for(B),U=class extends(S=d,b=Y,S){constructor({text:e,cause:t}){super({name:j,message:`JSON parsing failed: Text: ${e}.\nError message: ${w(t)}`,cause:t}),this[b]=!0,this.text=e}static isInstance(e){return d.hasMarker(e,B)}},z=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError"),q=`vercel.ai.error.${"AI_LoadSettingError"}`,K=Symbol.for(q),$=`vercel.ai.error.${"AI_NoContentGeneratedError"}`,Z=Symbol.for($),Q="AI_NoSuchModelError",X=`vercel.ai.error.${Q}`,J=Symbol.for(X),ee=class extends(A=d,P=J,A){constructor({errorName:e=Q,modelId:t,modelType:o,message:n=`No such ${o}: ${t}`}){super({name:e,message:n}),this[P]=!0,this.modelId=t,this.modelType=o}static isInstance(e){return d.hasMarker(e,X)}},te=Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError"),oe="AI_TypeValidationError",ne=`vercel.ai.error.${oe}`,ie=Symbol.for(ne),re=class e extends(D=d,T=ie,D){constructor({value:e,cause:t,context:o}){let n="Type validation failed";if((null==o?void 0:o.field)&&(n+=` for ${o.field}`),(null==o?void 0:o.entityName)||(null==o?void 0:o.entityId)){n+=" (";const e=[];o.entityName&&e.push(o.entityName),o.entityId&&e.push(`id: "${o.entityId}"`),n+=e.join(", "),n+=")"}super({name:oe,message:`${n}: Value: ${JSON.stringify(e)}.\nError message: ${w(t)}`,cause:t}),this[T]=!0,this.value=e,this.context=o}static isInstance(e){return d.hasMarker(e,ne)}static wrap({value:t,cause:o,context:n}){var i,r,s;return e.isInstance(o)&&o.value===t&&(null==(i=o.context)?void 0:i.field)===(null==n?void 0:n.field)&&(null==(r=o.context)?void 0:r.entityName)===(null==n?void 0:n.entityName)&&(null==(s=o.context)?void 0:s.entityId)===(null==n?void 0:n.entityId)?o:new e({value:t,cause:o,context:n})}},se="AI_UnsupportedFunctionalityError",ae=`vercel.ai.error.${se}`,le=Symbol.for(ae),pe=class extends(I=d,N=le,I){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:se,message:t}),this[N]=!0,this.functionality=e}static isInstance(e){return d.hasMarker(e,ae)}}},12598:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!=typeof o?0:o+1,this.existingIds[e]=t,t},e}();t.GroupInstanceIdCreator=o},13650:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(22131),p=o(47721),u=o(72493),d=o(44081),c=o(83423);!function(e){e[e.MAIN=0]="MAIN",e[e.CONDITION=1]="CONDITION"}(a=t.FilterConditionType||(t.FilterConditionType={}));var h={loadingOoo:"Loading...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter",andCondition:"AND",orCondition:"OR"},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.customFilterOptions={},t}return i(t,e),t.prototype.init=function(e){var t=this;if(this.filterParams=e,this.defaultFilter=this.filterParams.defaultOption,e.filterOptions&&e.filterOptions.forEach((function(e){"string"!=typeof e&&(e.displayKey?e.displayName?e.test?t.customFilterOptions[e.displayKey]=e:console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'test'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayName'"):console.warn("ag-Grid: ignoring FilterOptionDef as it doesn't contain a 'displayKey'"))})),this.filterParams.filterOptions&&!this.defaultFilter){var o=this.filterParams.filterOptions[0];"string"==typeof o?this.defaultFilter=o:o.displayKey?this.defaultFilter=o.displayKey:console.warn("ag-Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}this.customInit(),this.selectedFilter=this.defaultFilter,this.selectedFilterCondition=this.defaultFilter,this.clearActive=!0===e.clearButton,this.applyActive=!0===e.applyButton||!0===e.apply,this.newRowsActionKeep="keep"===e.newRowsAction,this.setTemplate(this.generateTemplate()),c._.setVisible(this.eApplyButton,this.applyActive),this.applyActive&&this.addDestroyableEventListener(this.eApplyButton,"click",this.filterParams.filterChangedCallback),c._.setVisible(this.eClearButton,this.clearActive),this.clearActive&&this.addDestroyableEventListener(this.eClearButton,"click",this.onClearButton.bind(this));var n=this.applyActive||this.clearActive;c._.setVisible(this.eButtonsPanel,n),this.initialiseFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.MAIN)},t.prototype.onClearButton=function(){this.setModel(null),this.onFilterChanged()},t.prototype.floatingFilter=function(e){if(""!==e){var t=this.modelFromFloatingFilter(e);this.setModel(t)}else this.resetState();this.onFilterChanged()},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||this.resetState()},t.prototype.getModel=function(){return this.isFilterActive()?this.isFilterConditionActive(a.CONDITION)?{condition1:this.serialize(a.MAIN),condition2:this.serialize(a.CONDITION),operator:this.conditionValue}:this.serialize(a.MAIN):null},t.prototype.getNullableModel=function(){return this.isFilterConditionActive(a.CONDITION)?{condition1:this.serialize(a.MAIN),condition2:this.serialize(a.CONDITION),operator:this.conditionValue}:this.serialize(a.MAIN)},t.prototype.setModel=function(e){if(e)if(e.operator){var t=e;this.parse(t.condition1,a.MAIN),this.parse(t.condition2,a.CONDITION),this.conditionValue=t.operator}else this.resetState(),this.parse(e,a.MAIN);else this.resetState();this.redrawCondition(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION)},t.prototype.doOnFilterChanged=function(e){void 0===e&&(e=!1),this.filterParams.filterModifiedCallback();var t=this.applyActive&&e,o=!this.applyActive||t;return o&&this.filterParams.filterChangedCallback(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION),o},t.prototype.onFilterChanged=function(e){void 0===e&&(e=!1),this.doOnFilterChanged(e),this.redrawCondition(),this.refreshFilterBodyUi(a.MAIN),this.refreshFilterBodyUi(a.CONDITION)},t.prototype.redrawCondition=function(){var e=this,t=this.eFilterBodyWrapper.querySelector(".ag-filter-condition");if(!t&&this.isFilterActive()&&this.acceptsBooleanLogic()){this.eConditionWrapper=c._.loadTemplate(this.createConditionTemplate(a.CONDITION)),this.eFilterBodyWrapper.appendChild(this.eConditionWrapper),this.wireQuerySelectors();var o=this.refreshOperatorUi(),n=o.andButton,i=o.orButton;this.addDestroyableEventListener(n,"change",(function(){e.conditionValue="AND",e.onFilterChanged()})),this.addDestroyableEventListener(i,"change",(function(){e.conditionValue="OR",e.onFilterChanged()})),this.initialiseFilterBodyUi(a.CONDITION)}else t&&!this.isFilterActive()?(this.conditionValue="AND",this.resetState(!0),this.eFilterBodyWrapper.removeChild(this.eConditionWrapper),this.eConditionWrapper=null):(this.refreshFilterBodyUi(a.CONDITION),this.eConditionWrapper&&this.refreshOperatorUi())},t.prototype.refreshOperatorUi=function(){var e=this.eConditionWrapper.querySelector(".and"),t=this.eConditionWrapper.querySelector(".or");return this.conditionValue=null==this.conditionValue?"AND":this.conditionValue,e.checked="AND"===this.conditionValue,t.checked="OR"===this.conditionValue,{andButton:e,orButton:t}},t.prototype.onFloatingFilterChanged=function(e){var t=e;if(null==t)this.setModel(null);else if(this.isFilterConditionActive(a.CONDITION)){var o={condition1:t.model,condition2:this.serialize(a.CONDITION),operator:this.conditionValue};this.setModel(o)}else this.setModel(t?t.model:null);return this.doOnFilterChanged(!!t&&t.apply)},t.prototype.generateFilterHeader=function(e){return""},t.prototype.generateTemplate=function(){var e=this.translate.bind(this),t=this.createConditionBody(a.MAIN);return"<div>\n <div class='ag-filter-body-wrapper'>"+(this.acceptsBooleanLogic()?this.wrapCondition(t):t)+'</div>\n <div class="ag-filter-apply-panel" id="applyPanel">\n <button type="button" id="clearButton">'+e("clearFilter")+'</button>\n <button type="button" id="applyButton">'+e("applyFilter")+"</button>\n </div>\n </div>"},t.prototype.acceptsBooleanLogic=function(){return!1},t.prototype.wrapCondition=function(e){return this.isFilterActive()?""+e+this.createConditionTemplate(a.CONDITION):e},t.prototype.createConditionTemplate=function(e){return'<div class="ag-filter-condition">\n <input id="andId" type="radio" class="and" name="booleanLogic" value='+this.translate("AND")+'\n checked="checked" /><label style="display: inline" for="andId">'+this.translate("andCondition")+'</label>\n <input id="orId" type="radio" class="or" name="booleanLogic" value="OR" /><label style="display: inline"\n for="orId">'+this.translate("orCondition")+"</label>\n <div>"+this.createConditionBody(e)+"</div>\n </div>"},t.prototype.createConditionBody=function(e){var t=this.bodyTemplate(e);return this.generateFilterHeader(e)+t},t.prototype.translate=function(e){var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=h[e];return!o&&this.customFilterOptions[e]&&(o=this.customFilterOptions[e].displayName),t(e,o)},t.prototype.getDebounceMs=function(e){return this.applyActive?(null!=e.debounceMs&&console.warn("ag-Grid: debounceMs is ignored when applyButton = true"),0):null!=e.debounceMs?e.debounceMs:500},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.customFilterOptions[e];return t&&t.hideFilterInput},t.EMPTY="empty",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",r([p.QuerySelector("#applyPanel"),s("design:type",HTMLElement)],t.prototype,"eButtonsPanel",void 0),r([p.QuerySelector(".ag-filter-body-wrapper"),s("design:type",HTMLElement)],t.prototype,"eFilterBodyWrapper",void 0),r([p.QuerySelector("#applyButton"),s("design:type",HTMLElement)],t.prototype,"eApplyButton",void 0),r([p.QuerySelector("#clearButton"),s("design:type",HTMLElement)],t.prototype,"eClearButton",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(l.Component);t.BaseFilter=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.doesFilterPass=function(e){var t=this.individualFilterPasses(e,a.MAIN);if(null==this.eTypeConditionSelector)return t;var o=this.individualFilterPasses(e,a.CONDITION);return"AND"===this.conditionValue?t&&o:t||o},t.prototype.init=function(t){e.prototype.init.call(this,t),this.suppressAndOrCondition=t.suppressAndOrCondition},t.prototype.customInit=function(){this.defaultFilter||(this.defaultFilter=this.getDefaultType())},t.prototype.acceptsBooleanLogic=function(){return!0!==this.suppressAndOrCondition},t.prototype.generateFilterHeader=function(e){var t=this,o=this.getApplicableFilterTypes(),n=(this.filterParams.filterOptions||o).map((function(e){var o="string"==typeof e?e:e.displayKey;return'<option value="'+o+'">'+t.translate(o)+"</option>"})),i=1==n.length?"disabled":"",r=e==a.MAIN?"filterType":"filterConditionType";return n.length<=0?"":'<div>\n <select class="ag-filter-select" id="'+r+'" '+i+">\n "+n.join("")+"\n </select>\n </div>"},t.prototype.initialiseFilterBodyUi=function(e){var t=this;e===a.MAIN?(this.setFilterType(this.selectedFilter,e),this.addDestroyableEventListener(this.eTypeSelector,"change",(function(){return t.onFilterTypeChanged(e)}))):(this.setFilterType(this.selectedFilterCondition,e),this.addDestroyableEventListener(this.eTypeConditionSelector,"change",(function(){return t.onFilterTypeChanged(e)})))},t.prototype.onFilterTypeChanged=function(e){var t=this.selectedFilter;e===a.MAIN?this.selectedFilter=this.eTypeSelector.value:this.selectedFilterCondition=this.eTypeConditionSelector.value,this.refreshFilterBodyUi(e);var o=this.doesFilterHaveHiddenInput(t);(this.isFilterActive()||o)&&(this.selectedFilter===f.EMPTY&&this.resetState(),this.onFilterChanged())},t.prototype.isFilterActive=function(){if(this.doesFilterHaveHiddenInput(this.selectedFilter))return!0;var e=this.filterValues(a.MAIN);if(e&&this.selectedFilter===f.IN_RANGE){var t=e;return null!=t[0]&&null!=t[1]}return null!=e},t.prototype.setFilterType=function(e,t){if(t===a.MAIN){if(this.selectedFilter=e,!this.eTypeSelector)return;this.eTypeSelector.value=e}else{if(this.selectedFilterCondition=e,!this.eTypeConditionSelector)return;this.eTypeConditionSelector.value=e}},t.prototype.isFilterConditionActive=function(e){return null!=this.filterValues(e)},r([p.QuerySelector("#filterType"),s("design:type",HTMLSelectElement)],t.prototype,"eTypeSelector",void 0),r([p.QuerySelector("#filterConditionType"),s("design:type",HTMLSelectElement)],t.prototype,"eTypeConditionSelector",void 0),t}(f);t.ComparableBaseFilter=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.nullComparator=function(e){var t=this;return function(o,n){if(null==n){var i=t.translateNull(e);if(t.selectedFilter===f.EMPTY)return 0;if(t.selectedFilter===f.EQUALS)return i?0:1;if(t.selectedFilter===f.GREATER_THAN)return i?1:-1;if(t.selectedFilter===f.GREATER_THAN_OR_EQUAL)return i?1:-1;if(t.selectedFilter===f.LESS_THAN_OR_EQUAL)return i?-1:1;if(t.selectedFilter===f.LESS_THAN)return i?-1:1;if(t.selectedFilter===f.NOT_EQUAL)return i?1:0}return t.comparator()(o,n)}},t.prototype.getDefaultType=function(){return f.EQUALS},t.prototype.translateNull=function(e){var o=e.indexOf("greater")>-1?"greaterThan":e.indexOf("lessThan")>-1?"lessThan":"equals";return this.filterParams.nullComparator&&this.filterParams.nullComparator[o]?this.filterParams.nullComparator[o]:t.DEFAULT_NULL_COMPARATOR[o]},t.prototype.individualFilterPasses=function(e,t){return this.doIndividualFilterPasses(e,t,t===a.MAIN?this.selectedFilter:this.selectedFilterCondition)},t.prototype.doIndividualFilterPasses=function(e,t,o){var n=this.filterParams.valueGetter(e.node),i=this.filterValues(t),r=Array.isArray(i)?i[0]:i,s=this.customFilterOptions[o];if(s&&(null!=r||s.hideFilterInput))return s.test(r,n);if(null==r)return t===a.MAIN||"AND"===this.conditionValue;var l=this.nullComparator(o),p=l(r,n);if(o===f.EMPTY)return!1;if(o===f.EQUALS)return 0===p;if(o===f.GREATER_THAN)return p>0;if(o===f.GREATER_THAN_OR_EQUAL)return p>=0;if(o===f.LESS_THAN_OR_EQUAL)return p<=0;if(o===f.LESS_THAN)return p<0;if(o===f.NOT_EQUAL)return 0!=p;var u=l(i[1],n);if(o===f.IN_RANGE)return this.filterParams.inRangeInclusive?p>=0&&u<=0:p>0&&u<0;throw new Error("Unexpected type of filter: "+o)},t.DEFAULT_NULL_COMPARATOR={equals:!1,lessThan:!1,greaterThan:!1},t}(g);t.ScalarBaseFilter=m},13887:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(60843),a=o(63405),l=o(98239),p=o(44871),u=o(40797),d=o(44081),c=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:a.Events.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},n([r.Autowired("eventService"),i("design:type",s.EventService)],e.prototype,"eventService",void 0),n([r.Autowired("columnController"),i("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("columnApi"),i("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([r.Autowired("gridApi"),i("design:type",u.GridApi)],e.prototype,"gridApi",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Bean("scrollVisibleService")],e)}();t.ScrollVisibleService=c},15068:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(60843),s=o(63405),a=o(44081),l=o(54828),p=o(24463),u=o(98239),d=o(44871),c=o(72493),h=o(45727),f=o(88842),g=o(40797),m=o(83423),y=function(){function e(){this.childrenMapped={},this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.alreadyRendered=!1,this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,o,n){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:n}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e,this.updateDataOnDetailNode(),this.checkRowSelectable(),this.updateDataOnDetailNode();var o=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(o)},e.prototype.getRowIndexString=function(){return this.rowPinned===h.Constants.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===h.Constants.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var o=m._.exists(this.id)?this.createDaemonNode():null,n=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.selectionController.syncInRowNode(this,o),this.checkRowSelectable();var i=this.createDataChangedEvent(e,n,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.gridOptionsWrapper.getIsRowSelectableFunc(),t=e&&m._.exists(this);this.setRowSelectable(!t||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setRowHeight=function(t,o){void 0===o&&(o=!1),this.rowHeight=t,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(o),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridApi.redrawRows({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.valueService.setValue(this,o,t),this.dispatchCellChangedEvent(o,t)},e.prototype.setGroupValue=function(e,t){var o=this.columnController.getGridColumn(e);m._.missing(this.groupData)&&(this.groupData={}),this.groupData[o.getColId()]=t,this.dispatchCellChangedEvent(o,t)},e.prototype.setAggData=function(e){var t=this,o=m._.getAllKeysInObjects([this.aggData,e]);this.aggData=e,this.eventService&&o.forEach((function(e){var o=t.columnController.getGridColumn(e),n=t.aggData?t.aggData[e]:void 0;t.dispatchCellChangedEvent(o,n)}))},e.prototype.hasChildren=function(){return this.group||this.childrenAfterGroup&&this.childrenAfterGroup.length>0},e.prototype.isEmptyFillerNode=function(){return this.group&&m._.missingOrEmpty(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o){var n={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o};this.dispatchLocalEvent(n)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.hasChildren()||this.master},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,n=!1;if(this.childrenAfterGroup)for(var i=0;i<this.childrenAfterGroup.length;i++){var r=this.childrenAfterGroup[i];if(r.selectable)switch(r.isSelected()){case!0:t=!0;break;case!1:o=!0;break;default:n=!0}}e=n?void 0:!(!t||o)||!(!t&&o)&&void 0,this.selectThisNode(e)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===h.Constants.PINNED_TOP||this.rowPinned===h.Constants.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,n=!0===e.clearSelection,i=!0===e.suppressFinishActions,r=!0===e.rangeSelect,a=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("ag-Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(r){var l=this.selectionController.getLastSelectedNode()!==this,p=this.gridOptionsWrapper.isRowSelectionMulti();if(l&&p)return this.doRowRangeSelection()}var u=0;if(a&&this.group||this.selectThisNode(o)&&u++,t&&this.group&&(u+=this.selectChildNodes(o,a)),!i){if(o&&(n||!this.gridOptionsWrapper.isRowSelectionMulti())&&(u+=this.selectionController.clearOtherNodes(this)),u>0){this.selectionController.updateGroupsFromChildrenSelections();var d={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(d)}o&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=0,t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=this.selectionController.getLastSelectedNode();this.rowModel.getNodesInRangeForSelection(this,o).forEach((function(o){o.group&&t||o.selectThisNode(!0)&&e++})),this.selectionController.updateGroupsFromChildrenSelections();var n={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(n),e},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){if(!this.selectable||this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var o=t?this.childrenAfterFilter:this.childrenAfterGroup,n=0;if(!m._.missing(o)){for(var i=0;i<o.length;i++)n+=o[i].setSelectedParams({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:t});return n}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new r.EventService),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,o=this,n=!0,i=!1;n&&!i;){var r=o.parent;m._.exists(r)&&o.firstChild?r.rowGroupColumn===e&&(i=!0,t=r):n=!1,o=r}return i?t:null},e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",n([c.Autowired("eventService"),i("design:type",r.EventService)],e.prototype,"mainEventService",void 0),n([c.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("selectionController"),i("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),n([c.Autowired("columnController"),i("design:type",u.ColumnController)],e.prototype,"columnController",void 0),n([c.Autowired("valueService"),i("design:type",p.ValueService)],e.prototype,"valueService",void 0),n([c.Autowired("rowModel"),i("design:type",Object)],e.prototype,"rowModel",void 0),n([c.Autowired("context"),i("design:type",c.Context)],e.prototype,"context",void 0),n([c.Autowired("valueCache"),i("design:type",f.ValueCache)],e.prototype,"valueCache",void 0),n([c.Autowired("columnApi"),i("design:type",d.ColumnApi)],e.prototype,"columnApi",void 0),n([c.Autowired("gridApi"),i("design:type",g.GridApi)],e.prototype,"gridApi",void 0),e}();t.RowNode=y},15724:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(46379),l=o(72493),p=o(44081),u=o(83423),d=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.getGuiCalledOnChild=!1,o.cellEditor=t,o}return i(t,e),t.prototype.onKeyDown=function(e){u._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(o){var n=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc((function(){n.cellEditor.destroy&&n.cellEditor.destroy()})),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",r([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(a.PopupComponent);t.PopupEditorWrapper=d},15774:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(22131),p=o(72493),u=o(44081),d=o(98239),c=o(26016),h=o(60843),f=o(63405),g=o(78481),m=o(18985),y=o(55e3),v=o(40797),C=o(45727),w=o(83423),E=o(32590);!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(a=t.HeaderRowType||(t.HeaderRowType={}));var _=function(e){function t(t,o,n,i){var r=e.call(this,'<div class="ag-header-row" role="presentation"/>')||this;return r.headerComps={},r.dept=t,r.type=o,r.pinned=n,r.dropTarget=i,r}return i(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach((function(o){e(t.headerComps[o])}))},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach((function(e){var o=t.headerComps[e];t.getGui().removeChild(o.getGui()),o.destroy(),delete t.headerComps[e]}))},t.prototype.onRowHeightChanged=function(){var e,t,o=this.columnController.getHeaderRowCount(),n=[],i=0;this.columnController.isPivotMode()?(i=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&o++,i=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var r=o-(1+i),s=0;s<r;s++)n.push(e);for(n.push(t),s=0;s<i;s++)n.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var a=0;for(s=0;s<this.dept;s++)a+=n[s];this.getGui().style.top=a+"px",this.getGui().style.height=n[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.getGui().style.width=e+"px"},t.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT?w._.missing(this.pinned)?this.columnController.getContainerWidth(c.Column.PINNED_RIGHT)+this.columnController.getContainerWidth(c.Column.PINNED_LEFT)+this.columnController.getContainerWidth(null):0:this.columnController.getContainerWidth(this.pinned)},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.getItemsAtDept=function(){var e=this;if(this.gridOptionsWrapper.getDomLayout()===C.Constants.DOM_LAYOUT_PRINT){if(w._.missing(this.pinned)){var t=[];return[c.Column.PINNED_LEFT,null,c.Column.PINNED_RIGHT].forEach((function(o){var n=e.columnController.getVirtualHeaderGroupRow(o,e.type==a.FLOATING_FILTER?e.dept-1:e.dept);t=t.concat(n)})),t}return[]}return this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==a.FLOATING_FILTER?this.dept-1:this.dept)},t.prototype.onVirtualColumnsChanged=function(){var e,t=this,o=Object.keys(this.headerComps),n=this.getItemsAtDept(),i=this.gridOptionsWrapper.isEnsureDomOrder();n.forEach((function(n){if(!n.isEmptyGroup()){var r,s,a=n.getUniqueId(),l=t.getGui();o.indexOf(a)>=0?(w._.removeFromArray(o,a),s=(r=t.headerComps[a]).getGui(),i&&w._.ensureDomOrder(l,s,e),e=s):(r=t.createHeaderComp(n),t.headerComps[a]=r,s=r.getGui(),i?w._.insertWithDomOrder(l,s,e):l.appendChild(s),e=s)}})),this.removeAndDestroyChildComponents(o)},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case a.COLUMN:t=new g.HeaderWrapperComp(e,this.dropTarget,this.pinned);break;case a.COLUMN_GROUP:t=new m.HeaderGroupWrapperComp(e,this.dropTarget,this.pinned);break;case a.FLOATING_FILTER:t=new E.FloatingFilterWrapper(e)}return this.getContext().wireBean(t),t},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnController"),s("design:type",d.ColumnController)],t.prototype,"columnController",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("filterManager"),s("design:type",y.FilterManager)],t.prototype,"filterManager",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(l.Component);t.HeaderRowComp=_},15959:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(22131),s=o(83423),a=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o}return i(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var o=Math.abs(t),n=e.formatValue(o),i=s._.exists(n)?n:o,r=t>=0;this.eDelta.innerHTML=r?"↑"+i:"↓"+i,s._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",r),s._.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!r)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){s._.removeCssClass(this.eValue,"ag-value-change-value-highlight"),s._.clearElement(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue){if(s._.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:s._.exists(e.value)?this.eValue.innerHTML=t:s._.clearElement(this.eValue),"number"==typeof t&&"number"==typeof this.lastValue){var o=t-this.lastValue;this.showDelta(e,o)}return this.lastValue&&s._.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',t}(r.Component);t.AnimateShowChangeCellRenderer=a},18954:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(2461),l=o(86608),p=o(98239),u=o(83423),d=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),o=u._.exists(t)&&t.length>0,n=o&&u._.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),i=n?this.calculateDirtyNodes(e.rowNodeTransactions):null,r=this.columnController.getValueColumns(),s=u._.missingOrEmpty(r);this.sortService.sort(t,o,n,i,e.changedPath,s)},e.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e.forEach((function(e){o(e.add),o(e.update),o(e.remove)})),t},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("sortService"),i("design:type",a.SortService)],e.prototype,"sortService",void 0),n([r.Autowired("sortController"),i("design:type",l.SortController)],e.prototype,"sortController",void 0),n([r.Autowired("columnController"),i("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([r.Bean("sortStage")],e)}();t.SortStage=d},18985:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(26016),p=o(74517),u=o(44871),d=o(98239),c=o(44081),h=o(97177),f=o(72493),g=o(34506),m=o(58342),y=o(38152),v=o(40797),C=o(85910),w=o(55090),E=o(81604),_=o(83423),R=function(e){function t(o,n,i){var r=e.call(this,t.TEMPLATE)||this;return r.childColumnsDestroyFuncs=[],r.columnGroup=o,r.dragSourceDropTarget=n,r.pinned=i,r}return i(t,e),t.prototype.postConstruct=function(){g.CssClassApplier.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(this.getContext(),new E.HoverFeature(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new y.SetLeftFeature(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},t.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach((function(t){e.addDestroyableEventListener(t,l.Column.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))})),this.onColumnMovingChanged()},t.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},t.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.onColumnMovingChanged=function(){_._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},t.prototype.appendHeaderGroupComp=function(e){var t=this,o={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var n=this.columnGroup,i=n.getLeafColumns();n.getParent()&&n.getParent().getLeafColumns().length===i.length;)n=n.getParent();var r=n.getColGroupDef();r&&(e=r.headerName),e||(e=i?this.columnController.getDisplayNameForColumn(i[0],"header",!0):"")}var s=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(o).then(s)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.addClasses=function(){this.columnGroup.isPadding()?this.addCssClass("ag-header-group-cell-no-group"):this.addCssClass("ag-header-group-cell-with-group")},t.prototype.setupMove=function(e,t){var o=this;if(e&&!this.isSuppressMoving()){var n=this.columnGroup.getOriginalColumnGroup().getLeafColumns();if(e){var i={type:m.DragSourceType.HeaderCell,eElement:e,dragItemName:t,dragItemCallback:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return n.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},dragStopped:function(){return n.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(i)}))}}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var o=[];return this.columnController.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(o.push(t),_._.removeFromArray(e,t))})),e.forEach((function(e){return o.push(e)})),{columns:o,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.isLockPosition())&&(e=!0)})),e||this.gridOptionsWrapper.isSuppressMovableColumns()},t.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,p.ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.addEventListener(l.Column.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push((function(){o.removeEventListener(l.Column.EVENT_WIDTH_CHANGED,t),o.removeEventListener(l.Column.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach((function(e){return e()})),this.childColumnsDestroyFuncs=[]},t.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},t.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(t),this.gridOptionsWrapper.isSuppressAutoSize()||this.eHeaderCellResize.addEventListener("dblclick",(function(t){var o=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())})),o.length>0&&e.columnController.autoSizeColumns(o,"uiColumnResized")}))}else _._.removeFromParent(this.eHeaderCellResize)},t.prototype.onResizeStart=function(e){var t=this,o=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=_._.filter(o,(function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}));var n=null;if(e&&(n=this.columnController.getDisplayedGroupAfter(this.columnGroup)),n){var i=n.getDisplayedLeafColumns();this.resizeTakeFromCols=_._.filter(i,(function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;_._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizing=function(e,t){var o=[],n=this.normaliseDragChange(t);o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+n}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-n}),this.columnController.resizeColumnSets(o,e,"uiColumnDragged"),e&&_._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==l.Column.PINNED_LEFT&&(t*=-1):this.pinned===l.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-group-cell"><div ref="agResize" class="ag-header-cell-resize"></div></div>',r([f.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([f.Autowired("columnController"),s("design:type",d.ColumnController)],t.prototype,"columnController",void 0),r([f.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),r([f.Autowired("dragAndDropService"),s("design:type",m.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([f.Autowired("userComponentFactory"),s("design:type",C.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([f.Autowired("gridApi"),s("design:type",v.GridApi)],t.prototype,"gridApi",void 0),r([f.Autowired("columnApi"),s("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),r([f.Autowired("beans"),s("design:type",w.Beans)],t.prototype,"beans",void 0),r([f.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.HeaderGroupWrapperComp=R},19378:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(23054),a=o(15068),l=o(26016),p=o(63405),u=o(22131),d=o(83423),c=function(e){function t(t,o,n,i,r,s,a,l,p,u,d){var c=e.call(this)||this;return c.eAllRowContainers=[],c.active=!0,c.rowContainerReadyCount=0,c.refreshNeeded=!1,c.columnRefreshPending=!1,c.cellComps={},c.createSecondPassFuncs=[],c.removeFirstPassFuncs=[],c.removeSecondPassFuncs=[],c.initialised=!1,c.parentScope=t,c.beans=a,c.bodyContainerComp=o,c.pinnedLeftContainerComp=n,c.pinnedRightContainerComp=i,c.fullWidthContainerComp=r,c.rowNode=s,c.rowIsEven=c.rowNode.rowIndex%2==0,c.paginationPage=c.beans.paginationProxy.getCurrentPage(),c.useAnimationFrameForCreate=p,c.printLayout=u,c.embedFullWidth=d,c.setAnimateFlags(l),c}return i(t,e),t.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push((function(){e.onTopChanged()})),this.fadeRowIn&&this.createSecondPassFuncs.push((function(){e.eAllRowContainers.forEach((function(e){return d._.removeCssClass(e,"ag-opacity-zero")}))}))},t.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var o=[],n=this.rowNode.rowHeight,i=this.getInitialRowClasses(t).join(" "),r=d._.escape(this.rowNode.id),s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=d._.escape(a),p=this.getInitialRowTopStyle();return o.push("<div"),o.push(' role="row"'),o.push(' row-index="'+this.rowNode.getRowIndexString()+'"'),o.push(r?' row-id="'+r+'"':""),o.push(a?' row-business-key="'+l+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+i+'"'),o.push(' style="height: '+n+"px; "+p+" "+s+'">'),o.push(e),o.push("</div>"),o.join("")},t.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},t.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},t.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+o+"px; ":"transform: translateY("+o+"px);"},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},t.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},t.prototype.lazyCreateCells=function(e,t){if(this.active){var o=this.createCells(e);t.innerHTML=o.template,this.callAfterRowAttachedOnCells(o.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},t.prototype.createRowContainer=function(e,t,o){var n=this,i=this.useAnimationFrameForCreate,r=i?{cellComps:[],template:""}:this.createCells(t),s=this.createTemplate(r.template);e.appendRowTemplate(s,(function(){var s=e.getRowElement(n.getCompId());n.afterRowAttached(e,s),o(s),i?n.beans.taskQueue.addP1Task(n.lazyCreateCells.bind(n,t,s),n.rowNode.rowIndex):(n.callAfterRowAttachedOnCells(r.cellComps,s),n.rowContainerReadyCount=3)}))},t.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=r({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc((function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null})),t},t.prototype.setupRowContainers=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc(),o=!!e&&e(this.rowNode),n=this.beans.doingMasterDetail&&this.rowNode.detail,i=this.rowNode.group&&this.beans.gridOptionsWrapper.isGroupUseEntireRow();this.rowNode.stub?this.createFullWidthRows(t.LOADING_CELL_RENDERER,t.LOADING_CELL_RENDERER_COMP_NAME):n?this.createFullWidthRows(t.DETAIL_CELL_RENDERER,t.DETAIL_CELL_RENDERER_COMP_NAME):o?this.createFullWidthRows(t.FULL_WIDTH_CELL_RENDERER,null):i?this.createFullWidthRows(t.GROUP_ROW_RENDERER,t.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},t.prototype.setupNormalRowContainers=function(){var e,t,o,n=this;this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,(function(e){return n.eBodyRow=e})),this.createRowContainer(this.pinnedRightContainerComp,o,(function(e){return n.ePinnedRightRow=e})),this.createRowContainer(this.pinnedLeftContainerComp,t,(function(e){return n.ePinnedLeftRow=e}))},t.prototype.createFullWidthRows=function(e,t){var o=this;this.fullWidthRow=!0,this.embedFullWidth?(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,(function(e){o.eFullWidthRowBody=e}),(function(e){o.fullWidthRowComponentBody=e})),this.printLayout||(this.createFullWidthRowContainer(this.pinnedLeftContainerComp,l.Column.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,(function(e){o.eFullWidthRowLeft=e}),(function(e){o.fullWidthRowComponentLeft=e})),this.createFullWidthRowContainer(this.pinnedRightContainerComp,l.Column.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,(function(e){o.eFullWidthRowRight=e}),(function(e){o.fullWidthRowComponentRight=e})))):this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,(function(e){o.eFullWidthRow=e}),(function(e){o.fullWidthRowComponent=e}))},t.prototype.setAnimateFlags=function(e){if(e){var t=d._.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.fullWidthRow},t.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,p.Events.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this))},t.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},t.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(e){this.postProcessCss()},t.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach((function(t){return d._.addOrRemoveCssClass(t,"ag-row-dragging",e)}))},t.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach((function(t){return d._.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)})),this.eAllRowContainers.forEach((function(t){return d._.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)}))},t.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.fullWidthRowComponent.destroy&&this.fullWidthRowComponent.destroy(),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.fullWidthRowComponentBody.destroy&&this.fullWidthRowComponentBody.destroy(),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.fullWidthRowComponentLeft.destroy&&this.fullWidthRowComponentLeft.destroy(),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.fullWidthRowComponentRight.destroy&&this.fullWidthRowComponentRight.destroy(),this.fullWidthRowComponent=null)},t.prototype.getContainerForCell=function(e){switch(e){case l.Column.PINNED_LEFT:return this.ePinnedLeftRow;case l.Column.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},t.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},t.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.addP1Task(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex)}else this.refreshNeeded=!0},t.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,o;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],o=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,o);var n=Object.keys(this.cellComps);e.forEach((function(e){return d._.removeFromArray(n,e.getId())})),t.forEach((function(e){return d._.removeFromArray(n,e.getId())})),o.forEach((function(e){return d._.removeFromArray(n,e.getId())}));var i=d._.filter(n,this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(i)}},t.prototype.removeRenderedCells=function(e){var t=this;e.forEach((function(e){var o=t.cellComps[e];d._.missing(o)||(o.detach(),o.destroy(),t.cellComps[e]=null)}))},t.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),o=!0,n=this.cellComps[e];if(!n)return o;if(this.isCellInWrongRow(n))return o;var i=n.isEditing(),r=this.beans.focusedCellController.isCellFocused(n.getGridCell());if(i||r){var s=n.getColumn();return!(t.indexOf(s)>=0)&&o}return o},t.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),o=e.getColumn().getPinned(),n=this.getContainerForCell(o),i=e.getParentRow();i!==n&&(i&&i.removeChild(t),n.appendChild(t),e.setParentRow(n))}},t.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),o=this.getContainerForCell(t.getPinned());return e.getParentRow()!==o},t.prototype.insertCellsIntoContainer=function(e,t){var o=this;if(e){var n=[],i=[];t.forEach((function(t){var r=t.getId(),s=o.cellComps[r];s?o.ensureCellInCorrectContainer(s):o.createNewCell(t,e,n,i)})),n.length>0&&(d._.appendHtml(e,n.join("")),this.callAfterRowAttachedOnCells(i,e))}},t.prototype.addDomData=function(e){var o=this.beans.gridOptionsWrapper;o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc((function(){o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,null)}))},t.prototype.createNewCell=function(e,t,o,n){var i=new s.CellComp(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),r=i.getCreateTemplate();o.push(r),n.push(i),this.cellComps[e.getId()]=i,i.setParentRow(t)},t.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},t.prototype.onRowDblClick=function(e){if(!d._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowClick=function(e){if(!d._.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(p.Events.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,n=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var i=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),r=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1}):o?r&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var s=!i&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:n})}}}},t.prototype.createFullWidthRowContainer=function(e,t,o,n,i,r,s){var a=this,l=this.createTemplate("",o);e.appendRowTemplate(l,(function(){var o=e.getRowElement(a.getCompId()),l=a.createFullWidthParams(o,t),p=a.beans.userComponentFactory.newFullWidthCellRenderer(l,n,i);p?(p.then((function(e){if(a.isAlive()){var t=e.getGui();o.appendChild(t),s(e)}else e.destroy&&e.destroy()})),a.afterRowAttached(e,o),r(o),a.beans.doingMasterDetail&&a.rowNode.detail||a.angular1Compile(o)):console.error("ag-Grid: fullWidthCellRenderer not defined")}))},t.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},t.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},t.prototype.getInitialRowClasses=function(e){var t=[],o=this.beans.gridOptionsWrapper.isTreeData(),n=this.rowNode;return d._.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),n.isSelected()&&t.push("ag-row-selected"),n.group?(t.push("ag-row-group"),t.push("ag-row-level-"+n.level),n.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(n.parent?n.parent.level+1:"0")),n.stub&&t.push("ag-row-stub"),this.fullWidthRow&&t.push("ag-full-width-row"),(o?n.allChildrenCount:n.group&&!n.footer)&&t.push(n.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),n.dragging&&t.push("ag-row-dragging"),d._.pushAll(t,this.processClassesFromGridOptions()),d._.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach((function(t){return d._.addOrRemoveCssClass(t,"ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach((function(e){return d._.addOrRemoveCssClass(e,"ag-row-last",t)})))},t.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp((function(t){t.stopEditing(e)})),this.editingRow){if(!e){var t=this.createRowEvent(p.Events.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},t.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach((function(t){return d._.addOrRemoveCssClass(t,"ag-row-editing",e)}));var t=e?this.createRowEvent(p.Events.EVENT_ROW_EDITING_STARTED):this.createRowEvent(p.Events.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),this.editingRow||(this.forEachCellComp((function(n){var i=n===o;i?n.startEditingIfEnabled(e,t,i):n.startEditingIfEnabled(null,null,i)})),this.setEditingRow(!0))},t.prototype.forEachCellComp=function(e){d._.iterateObject(this.cellComps,(function(t,o){o&&e(o)}))},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach((function(t){e.eAllRowContainers.forEach((function(e){return d._.addCssClass(e,t)}))}))},t.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules((function(t){e.eAllRowContainers.forEach((function(e){return d._.addCssClass(e,t)}))}),(function(t){e.eAllRowContainers.forEach((function(e){return d._.removeCssClass(e,t)}))}))},t.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},o=this.beans.gridOptionsWrapper.getRowClass();if(o){if("function"==typeof o)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(o)}var n=this.beans.gridOptionsWrapper.getRowClassFunc();return n&&t(n({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()})),e},t.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return d._.cssStyleObjectToMarkup(e)},t.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach((function(t){return d._.addStylesToElement(t,e)}))},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,o=this.beans.gridOptionsWrapper.getRowStyleFunc();return o&&(t=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope})),d._.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.createCells=function(e){var t=this,o=[],n=[];return e.forEach((function(e){var i=new s.CellComp(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),r=i.getCreateTemplate();o.push(r),n.push(i),t.cellComps[e.getId()]=i})),{template:o.join(""),cellComps:n}},t.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach((function(t){return d._.addOrRemoveCssClass(t,"ag-row-selected",e)}))},t.prototype.callAfterRowAttachedOnCells=function(e,t){var o=this;e.forEach((function(e){e.setParentRow(t),e.afterAttached(),o.editingRow&&e.startEditingIfEnabled()}))},t.prototype.afterRowAttached=function(e,t){var o=this;this.addDomData(t),this.removeSecondPassFuncs.push((function(){e.removeRowElement(t)})),this.removeFirstPassFuncs.push((function(){if(d._.exists(o.rowNode.rowTop)){var e=o.roundRowTopToBounds(o.rowNode.rowTop);o.setRowTop(e)}else d._.addCssClass(t,"ag-opacity-zero")})),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.addP2Task(this.addHoverFunctionality.bind(this,t)):this.addHoverFunctionality(t)},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addDestroyableEventListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||d._.addCssClass(e,"ag-row-hover")})),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_MOUSE_LEAVE,(function(){d._.removeCssClass(e,"ag-row-hover")})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,n=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),n)},t.prototype.onRowHeightChanged=function(){if(d._.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach((function(t){return t.style.height=e}))}},t.prototype.addEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,o)},t.prototype.removeEventListener=function(t,o){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=p.Events.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+p.Events.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,o)},t.prototype.destroy=function(t){void 0===t&&(t=!1),e.prototype.destroy.call(this),this.active=!1,this.destroyFullWidthComponents(),t?(this.removeFirstPassFuncs.forEach((function(e){return e()})),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach((function(e){return e()})));var o=this.createRowEvent(p.Events.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(o),this.beans.eventService.dispatchEvent(o)},t.prototype.destroyContainingCells=function(){this.forEachCellComp((function(e){return e.destroy()})),this.destroyFullWidthComponents()},t.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach((function(t){return d._.addOrRemoveCssClass(t,"ag-row-focus",e)})),this.eAllRowContainers.forEach((function(t){return d._.addOrRemoveCssClass(t,"ag-row-no-focus",!e)})),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&d._.exists(e)){var t=this.applyPaginationOffset(e),o=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach((function(e){return e.style.top=o})):this.eAllRowContainers.forEach((function(e){return e.style.transform="translateY("+o+")"}))}},t.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getRenderedCellForColumn=function(e){var t=this,o=this.cellComps[e.getColId()];if(o)return o;var n=Object.keys(this.cellComps).map((function(e){return t.cellComps[e]})).filter((function(t){return-1!==t.getColSpanningList().indexOf(e)}));return n.length?n[0]:void 0},t.prototype.onRowIndexChanged=function(){this.onCellFocusChanged(),this.updateRowIndexes()},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.rowNode.rowIndex%2==0,o=this.rowIsEven!==t;o&&(this.rowIsEven=t),this.eAllRowContainers.forEach((function(n){n.setAttribute("row-index",e),o&&(d._.addOrRemoveCssClass(n,"ag-row-even",t),d._.addOrRemoveCssClass(n,"ag-row-odd",!t))}))},t.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach((function(e){e.el&&e.ct.ensureDomOrder(e.el)}))},t.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},t.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},t.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},t.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},t.DOM_DATA_KEY_RENDERED_ROW="renderedRow",t.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",t.GROUP_ROW_RENDERER="groupRowRenderer",t.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",t.LOADING_CELL_RENDERER="loadingCellRenderer",t.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",t.DETAIL_CELL_RENDERER="detailCellRenderer",t.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",t}(u.Component);t.RowComp=c},20080:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(58342),s=o(98239),a=o(72493),l=o(44081),p=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly()||e.dragItem.columns.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))}))},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?r.DragAndDropService.ICON_PINNED:r.DragAndDropService.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){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")},n([a.Autowired("columnController"),i("design:type",s.ColumnController)],e.prototype,"columnController",void 0),n([a.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.BodyDropPivotTarget=p},21914:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(72493),p=o(44081),u=o(47721),d=o(60843),c=o(63405),h=o(10042),f=o(41451),g=o(83423),m=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.postConstruct=function(){this.setTemplate(this.getTemplate()),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,c.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setVisible(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),o=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):g._.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),n=e("of","of");return'<div class="ag-paging-panel ag-unselectable">\n <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n <span ref="lbFirstRowOnPage"></span> '+o+' <span ref="lbLastRowOnPage"></span> '+n+' <span ref="lbRecordCount"></span>\n </span>\n <span class="ag-paging-page-summary-panel">\n <button type="button" class="ag-paging-button" ref="btFirst">'+e("first","First")+'</button>\n <button type="button" class="ag-paging-button" ref="btPrevious">'+e("previous","Previous")+"</button>\n "+t+' <span ref="lbCurrent"></span> '+n+' <span ref="lbTotal"></span>\n <button type="button" class="ag-paging-button" ref="btNext">'+e("next","Next")+'</button>\n <button type="button" class="ag-paging-button" ref="btLast">'+e("last","Last")+"</button>\n </span>\n </div>"},t.prototype.onBtNext=function(){this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages(),n=0===e;this.btPrevious.disabled=n,this.btFirst.disabled=n;var i=this.isZeroPagesToDisplay(),r=t&&e===o-1||i;this.btNext.disabled=r;var s=!t||i||e===o-1;this.btLast.disabled=s},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),n=this.paginationProxy.getPageSize(),i=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getTotalRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=n*o+1)+n-1,i&&t>r&&(t=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getTotalRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var n=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=n,this.lbRecordCount.innerHTML=n}},r([l.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("eventService"),s("design:type",d.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("paginationProxy"),s("design:type",f.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([l.Autowired("rowRenderer"),s("design:type",h.RowRenderer)],t.prototype,"rowRenderer",void 0),r([u.RefSelector("btFirst"),s("design:type",HTMLButtonElement)],t.prototype,"btFirst",void 0),r([u.RefSelector("btPrevious"),s("design:type",HTMLButtonElement)],t.prototype,"btPrevious",void 0),r([u.RefSelector("btNext"),s("design:type",HTMLButtonElement)],t.prototype,"btNext",void 0),r([u.RefSelector("btLast"),s("design:type",HTMLButtonElement)],t.prototype,"btLast",void 0),r([u.RefSelector("lbRecordCount"),s("design:type",Object)],t.prototype,"lbRecordCount",void 0),r([u.RefSelector("lbFirstRowOnPage"),s("design:type",Object)],t.prototype,"lbFirstRowOnPage",void 0),r([u.RefSelector("lbLastRowOnPage"),s("design:type",Object)],t.prototype,"lbLastRowOnPage",void 0),r([u.RefSelector("eSummaryPanel"),s("design:type",Object)],t.prototype,"eSummaryPanel",void 0),r([u.RefSelector("lbCurrent"),s("design:type",Object)],t.prototype,"lbCurrent",void 0),r([u.RefSelector("lbTotal"),s("design:type",Object)],t.prototype,"lbTotal",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.PaginationComp=m},21951:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(47721),p=o(72493),u=o(44081),d=o(83423),c=function(e){function t(){var t=e.call(this)||this;return t.selected=!1,t.readOnly=!1,t.passive=!1,t}return i(t,e),t.prototype.preConstruct=function(){this.setTemplate(t.TEMPLATE)},t.prototype.postConstruct=function(){this.loadIcons(),this.updateIcons()},t.prototype.setLabel=function(e){this.eLabel.innerText=e},t.prototype.loadIcons=function(){d._.clearElement(this.eChecked),d._.clearElement(this.eUnchecked),d._.clearElement(this.eIndeterminate),this.readOnly?(this.eChecked.appendChild(d._.createIconNoSpan("checkboxCheckedReadOnly",this.gridOptionsWrapper,null)),this.eUnchecked.appendChild(d._.createIconNoSpan("checkboxUncheckedReadOnly",this.gridOptionsWrapper,null)),this.eIndeterminate.appendChild(d._.createIconNoSpan("checkboxIndeterminateReadOnly",this.gridOptionsWrapper,null))):(this.eChecked.appendChild(d._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,null)),this.eUnchecked.appendChild(d._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,null)),this.eIndeterminate.appendChild(d._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,null)))},t.prototype.onClick=function(e){d._.addAgGridEventPath(e),this.readOnly||this.toggle()},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.setReadOnly=function(e){this.readOnly=e,this.loadIcons()},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.isSelected=function(){return this.selected},t.prototype.toggle=function(){var e=this.getNextValue();if(this.passive){var o={type:t.EVENT_CHANGED,selected:e};this.dispatchEvent(o)}else this.setSelected(e)},t.prototype.setSelected=function(e){if(this.selected!==e){this.selected=!0===e||!1!==e&&void 0,this.updateIcons();var o={type:t.EVENT_CHANGED,selected:this.selected};this.dispatchEvent(o)}},t.prototype.updateIcons=function(){d._.setVisible(this.eChecked,!0===this.selected),d._.setVisible(this.eUnchecked,!1===this.selected),d._.setVisible(this.eIndeterminate,void 0===this.selected)},t.EVENT_CHANGED="change",t.TEMPLATE='<span class="ag-checkbox" role="presentation"> <span class="ag-checkbox-checked" role="presentation"></span> <span class="ag-checkbox-unchecked" role="presentation"></span> <span class="ag-checkbox-indeterminate" role="presentation"></span> <span class="ag-checkbox-label" role="presentation"></span></span>',r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.QuerySelector(".ag-checkbox-checked"),s("design:type",HTMLElement)],t.prototype,"eChecked",void 0),r([l.QuerySelector(".ag-checkbox-unchecked"),s("design:type",HTMLElement)],t.prototype,"eUnchecked",void 0),r([l.QuerySelector(".ag-checkbox-indeterminate"),s("design:type",HTMLElement)],t.prototype,"eIndeterminate",void 0),r([l.QuerySelector(".ag-checkbox-label"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([p.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"preConstruct",null),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([l.Listener("click"),s("design:type",Function),s("design:paramtypes",[MouseEvent]),s("design:returntype",void 0)],t.prototype,"onClick",null),t}(a.Component);t.AgCheckbox=c},22131:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(8534),p=o(83423),u=new p.NumberSequence,d=function(e){function t(t){var o=e.call(this)||this;return o.childComponents=[],o.annotatedEventListeners=[],o.visible=!0,o.compId=u.next(),t&&o.setTemplate(t),o}return i(t,e),t.prototype.getCompId=function(){return this.compId},t.prototype.createChildComponentsFromTags=function(e){var t=this;p._.copyNodeList(e.childNodes).forEach((function(o){var n=t.getContext().createComponentFromElement(o,(function(e){t.copyAttributesFromNode(o,e.getGui())}));n?t.swapComponentForNode(n,e,o):o.childNodes&&t.createChildComponentsFromTags(o)}))},t.prototype.copyAttributesFromNode=function(e,t){p._.iterateNamedNodeMap(e.attributes,(function(e,o){t.setAttribute(e,o)}))},t.prototype.swapComponentForNode=function(e,t,o){var n=e.getGui();t.replaceChild(n,o),t.insertBefore(document.createComment(o.nodeName),n),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){for(var o=Object.getPrototypeOf(this),n=this;null!=o;){var i=o.__agComponentMetaData,r=o.constructor.name;i&&i[r]&&i[r].querySelectors&&i[r].querySelectors.forEach((function(o){n[o.attributeName]===t&&(n[o.attributeName]=e)})),o=Object.getPrototypeOf(o)}},t.prototype.setTemplate=function(e){var t=p._.loadTemplate(e);this.setTemplateFromElement(t)},t.prototype.setTemplateFromElement=function(e){this.eGui=e,this.eGui.__agComponent=this,this.addAnnotatedEventListeners(),this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui)for(var t=Object.getPrototypeOf(this),o=function(){var o=t.__agComponentMetaData,i=t.constructor.name;if(o&&o[i]&&o[i].querySelectors){var r=n;o[i].querySelectors.forEach((function(t){var o=e.eGui.querySelector(t.querySelector);if(o){var n=o.__agComponent;r[t.attributeName]=n||o}}))}t=Object.getPrototypeOf(t)},n=this;null!=t;)o()},t.prototype.addAnnotatedEventListeners=function(){var e=this;if(this.removeAnnotatedEventListeners(),this.eGui){var t=this.getAgComponentMetaData("listenerMethods");p._.missingOrEmpty(t)||(this.annotatedEventListeners||(this.annotatedEventListeners=[]),t.forEach((function(t){var o=e[t.methodName].bind(e);e.eGui.addEventListener(t.eventName,o),e.annotatedEventListeners.push({eventName:t.eventName,listener:o})})))}},t.prototype.getAgComponentMetaData=function(e){for(var t=[],o=Object.getPrototypeOf(this);null!=o;){var n=o.__agComponentMetaData,i=o.constructor.name;n&&n[i]&&n[i][e]&&(t=t.concat(n[i][e])),o=Object.getPrototypeOf(o)}return t},t.prototype.removeAnnotatedEventListeners=function(){var e=this;this.annotatedEventListeners&&this.eGui&&(this.annotatedEventListeners.forEach((function(t){e.eGui.removeEventListener(t.eventName,t.listener)})),this.annotatedEventListeners=[])},t.prototype.getGui=function(){return this.eGui},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e){if(p._.isNodeOrElement(e))this.eGui.appendChild(e);else{var t=e;this.eGui.appendChild(t.getGui()),this.childComponents.push(t)}},t.prototype.addFeature=function(e,t){e.wireBean(t),t.destroy&&this.addDestroyFunc(t.destroy.bind(t))},t.prototype.isVisible=function(){return this.visible},t.prototype.setVisible=function(e,o){var n="visibility"!==o;if(e!==this.visible){this.visible=e,p._.addOrRemoveCssClass(this.eGui,n?"ag-hidden":"ag-invisible",!e);var i={type:t.EVENT_VISIBLE_CHANGED,visible:this.visible};this.dispatchEvent(i)}},t.prototype.addOrRemoveCssClass=function(e,t){p._.addOrRemoveCssClass(this.eGui,e,t)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childComponents.forEach((function(e){e&&e.destroy&&e.destroy()})),this.childComponents.length=0,this.removeAnnotatedEventListeners()},t.prototype.addGuiEventListener=function(e,t){var o=this;this.getGui().addEventListener(e,t),this.addDestroyFunc((function(){return o.getGui().removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){p._.addCssClass(this.getGui(),e)},t.prototype.removeCssClass=function(e){p._.removeCssClass(this.getGui(),e)},t.prototype.getAttribute=function(e){var t=this.getGui();return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_VISIBLE_CHANGED="visibleChanged",r([a.PreConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"createChildComponentsPreConstruct",null),t}(l.BeanStub);t.Component=d},22743:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(69638),a=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},n([r.Autowired("agComponentUtils"),i("design:type",s.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"postConstruct",null),n([r.Bean("componentMetadataProvider")],e)}();t.ComponentMetadataProvider=a},23054:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(26016),a=o(15068),l=o(45727),p=o(63405),u=o(34782),d=o(22131),c=o(95125),h=o(87952),f=o(15724),g=o(83423),m=function(e){function t(t,o,n,i,r,s,a){var l=e.call(this)||this;return l.editingCell=!1,l.suppressRefreshCell=!1,l.scope=null,l.cellEditorVersion=0,l.cellRendererVersion=0,l.scope=t,l.beans=o,l.column=n,l.rowNode=i,l.rowComp=r,l.autoHeightCell=s,l.printLayout=a,l.createGridCellVo(),l.rangeSelectionEnabled=o.enterprise&&o.gridOptionsWrapper.isEnableRangeSelection(),l.cellFocused=l.beans.focusedCellController.isCellFocused(l.gridCell),l.firstRightPinned=l.column.isFirstRightPinned(),l.lastLeftPinned=l.column.isLastLeftPinned(),l.rangeSelectionEnabled&&(l.rangeCount=l.beans.rangeController.getCellRangeCount(l.gridCell)),l.getValueAndFormat(),l.setUsingWrapper(),l.chooseCellRenderer(),l.setupColSpan(),l.rowSpan=l.column.getRowSpan(l.rowNode),l}return i(t,e),t.prototype.getCreateTemplate=function(){var e=this.beans.gridOptionsWrapper.isEnableCellTextSelection()?"":'unselectable="on"',t=[],o=this.column,n=this.getCellWidth(),i=this.modifyLeftForPrintLayout(o.getLeft()),r=this.getInitialValueToRender(),s=g._.get(this.column,"colDef.template",null)?r:g._.escape(r);this.tooltip=this.getToolTip();var a=g._.escape(this.tooltip),l=g._.escape(o.getId()),p="",u="",d=this.preProcessStylesFromColDef(),c=this.getInitialCssClasses(),h=this.getStylesForRowSpanning();return this.usingWrapper&&(p='<span ref="eCellWrapper" class="ag-cell-wrapper"><span ref="eCellValue" class="ag-cell-value" '+e+">",u="</span></span>"),t.push("<div"),t.push(' tabindex="-1"'),t.push(" "+e),t.push(' role="gridcell"'),t.push(' comp-id="'+this.getCompId()+'" '),t.push(' col-id="'+l+'"'),t.push(' class="'+c.join(" ")+'"'),this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&g._.exists(a)&&t.push('title="'+a+'"'),t.push(' style="width: '+n+"px; left: "+i+"px; "+d+" "+h+'" >'),t.push(p),g._.exists(s,!0)&&t.push(s),t.push(u),t.push("</div>"),t.join("")},t.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},t.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.attachCellRenderer(),this.angular1Compile(),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_FLASH_CELLS,this.onFlashCells.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_CELL_CHANGED,this.onCellChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,this.onFirstRightPinnedChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_LAST_LEFT_PINNED_CHANGED,this.onLastLeftPinnedChanged.bind(this)),this.printLayout&&this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.rangeSelectionEnabled&&this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this)),this.tooltip&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.beans.tooltipManager.registerTooltip(this)},t.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);g._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?this.colsSpanning[this.colsSpanning.length-1]:this.column).getLeft()},t.prototype.getCellWidth=function(){if(!this.colsSpanning)return this.column.getActualWidth();var e=0;return this.colsSpanning.forEach((function(t){return e+=t.getActualWidth()})),e},t.prototype.onFlashCells=function(e){var t=this.gridCell.createId();e.cells[t]&&this.animateCell("highlight")},t.prototype.setupColSpan=function(){g._.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,p.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var o=this.column,n=this.column.getPinned(),i=0;o&&i<e&&(t.push(o),(o=this.beans.columnController.getDisplayedColAfter(o))&&!g._.missing(o))&&n===o.getPinned();i++);return t},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();g._.compareArrays(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return this.autoHeightCell||e.push("ag-cell-with-height"),!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&this.cellFocused&&e.push("ag-cell-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),g._.pushAll(e,this.preProcessClassesFromColDef()),g._.pushAll(e,this.preProcessCellClassRules()),g._.pushAll(e,this.getRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},t.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.getComponentHolder();return e.template?e.template:e.templateUrl?this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0))||"":this.getValueToUse()},t.prototype.getRenderedRow=function(){return this.rowComp},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.refreshCell=function(e){if(!this.editingCell&&!this.suppressRefreshCell){var t=this.getComponentHolder(),o=e&&e.newData,n=e&&e.suppressFlash||t.suppressCellFlash,i=e&&e.forceRefresh,r=this.value;this.getValueAndFormat();var s=!this.valuesAreEqual(r,this.value);(i||s)&&(!o&&this.attemptCellRendererRefresh()||this.replaceContentsAfterRefresh(),!n&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef()),this.updateAngular1ScopeAndCompile(),this.refreshToolTip(),this.postProcessCellClassRules()}},t.prototype.flashCell=function(){this.animateCell("data-changed")},t.prototype.animateCell=function(e){var t="ag-cell-"+e,o="ag-cell-"+e+"-animation",n=this.getGui();g._.addCssClass(n,t),g._.removeCssClass(n,o),window.setTimeout((function(){g._.removeCssClass(n,t),g._.addCssClass(n,o),window.setTimeout((function(){g._.removeCssClass(n,o)}),1e3)}),500)},t.prototype.replaceContentsAfterRefresh=function(){g._.clearElement(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.updateAngular1ScopeAndCompile()},t.prototype.updateAngular1ScopeAndCompile=function(){this.beans.gridOptionsWrapper.isAngularCompileRows()&&this.scope&&(this.scope.data=r({},this.rowNode.data),this.angular1Compile())},t.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();if(!e.classList.contains("ng-scope")||0===e.childElementCount){var t=this.beans.$compile(e)(this.scope);this.addDestroyFunc((function(){t.remove()}))}}},t.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&g._.addStylesToElement(this.getGui(),e)},t.prototype.preProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();return g._.cssStyleObjectToMarkup(e)},t.prototype.processStylesFromColDef=function(){var e=this.getComponentHolder();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(o)}else t=e.cellStyle;return t}},t.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef((function(t){return g._.addCssClass(e.getGui(),t)}))},t.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef((function(t){return e.push(t)})),e},t.prototype.processClassesFromColDef=function(e){var t=this.getComponentHolder();this.beans.stylingService.processStaticCellClasses(t,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},t.prototype.putDataIntoCellAfterRefresh=function(){var e=this.getComponentHolder();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.usingCellRenderer&&(this.attachCellRenderer()||(this.usingCellRenderer=!1)),!this.usingCellRenderer){var o=this.getValueToUse();null!=o&&(this.eParentOfValue.innerHTML=g._.escape(o))}},t.prototype.attemptCellRendererRefresh=function(){if(g._.missing(this.cellRenderer)||!this.cellRenderer||g._.missing(this.cellRenderer.refresh))return!1;var e=this.createCellRendererParams(),t=this.beans.userComponentFactory.createFinalParams(this.getComponentHolder(),this.cellRendererType,e),o=this.cellRenderer.refresh(t);return!0===o||void 0===o},t.prototype.refreshToolTip=function(){var e=this.getToolTip();if(this.tooltip!==e){if(this.tooltip=e,!this.beans.gridOptionsWrapper.isEnableBrowserTooltips())return;if(g._.exists(e)){var t=g._.escape(this.tooltip);this.eParentOfValue.setAttribute("title",t)}else this.eParentOfValue.removeAttribute("title")}},t.prototype.valuesAreEqual=function(e,t){var o=this.getComponentHolder(),n=o?o.equals:null;return n?n(e,t):e===t},t.prototype.getToolTip=function(){var e=this.getComponentHolder(),t=this.rowNode.data;if(e.tooltipField&&g._.exists(t))return g._.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots());var o=e.tooltipValueGetter||e.tooltip;return o?o({api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),colDef:e,column:this.getColumn(),context:this.beans.gridOptionsWrapper.getContext(),value:this.value,valueFormatted:this.valueFormatted,rowIndex:this.gridCell.rowIndex,node:this.rowNode,data:this.rowNode.data,$scope:this.scope}):null},t.prototype.getTooltipText=function(e){return void 0===e&&(e=!0),e?g._.escape(this.tooltip):this.tooltip},t.prototype.processCellClassRules=function(e,t){var o=this.getComponentHolder();this.beans.stylingService.processClassRules(o.cellClassRules,{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:o,rowIndex:this.gridCell.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules((function(t){g._.addCssClass(e.getGui(),t)}),(function(t){g._.removeCssClass(e.getGui(),t)}))},t.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules((function(t){e.push(t)}),(function(e){})),e},t.prototype.setUsingWrapper=function(){var e=this.getComponentHolder();if(this.rowNode.rowPinned)return this.usingWrapper=!1,this.includeSelectionComponent=!1,void(this.includeRowDraggingComponent=!1);var t="function"==typeof e.checkboxSelection,o="function"==typeof e.rowDrag;this.includeSelectionComponent=t||!0===e.checkboxSelection,this.includeRowDraggingComponent=o||!0===e.rowDrag,this.usingWrapper=this.includeRowDraggingComponent||this.includeSelectionComponent},t.prototype.chooseCellRenderer=function(){var e=this.getComponentHolder();if(e.template||e.templateUrl)this.usingCellRenderer=!1;else{var o=this.createCellRendererParams(),n=this.beans.userComponentFactory.lookupComponentClassDef(e,"cellRenderer",o);this.beans.userComponentFactory.lookupComponentClassDef(e,"pinnedRowCellRenderer",o)&&this.rowNode.rowPinned?(this.cellRendererType=t.CELL_RENDERER_TYPE_PINNED,this.usingCellRenderer=!0):n?(this.cellRendererType=t.CELL_RENDERER_TYPE_NORMAL,this.usingCellRenderer=!0):this.usingCellRenderer=!1}},t.prototype.createCellRendererInstance=function(){var e=this.createCellRendererParams();this.cellRendererVersion++;var o,n=this.afterCellRendererCreated.bind(this,this.cellRendererVersion);return!!(o=this.cellRendererType===t.CELL_RENDERER_TYPE_NORMAL?this.beans.userComponentFactory.newCellRenderer(this.getComponentHolder(),e):this.beans.userComponentFactory.newPinnedRowCellRenderer(this.getComponentHolder(),e))&&(o.then(n),!0)},t.prototype.afterCellRendererCreated=function(e,t){this.isAlive()&&e===this.cellRendererVersion?(this.cellRenderer=t,this.cellRendererGui=this.cellRenderer.getGui(),g._.missing(this.cellRendererGui)||this.editingCell||this.eParentOfValue.appendChild(this.cellRendererGui)):t.destroy&&t.destroy()},t.prototype.attachCellRenderer=function(){return!!this.usingCellRenderer&&this.createCellRendererInstance()},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValue.bind(this),setValue:function(t){e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.getComponentHolder(),column:this.column,$scope:this.scope,rowIndex:this.gridCell.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp?this.rowComp.addEventListener.bind(this.rowComp):null,addRenderedRowListener:function(t,o){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),e.rowComp&&e.rowComp.addEventListener(t,o)}}},t.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!=t?t:e},t.prototype.getValueToUse=function(){return null!==this.valueFormatted&&void 0!==this.valueFormatted?this.valueFormatted:this.value},t.prototype.getValueAndFormat=function(){this.value=this.getValue(),this.valueFormatted=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value)},t.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),n=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),i=t&&o&&!n;return this.beans.valueService.getValue(this.column,this.rowNode,!1,i)},t.prototype.onMouseEvent=function(e,t){if(!g._.isStopPropagationForAgGrid(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,p.Events.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(o)}),0)},t.prototype.createEvent=function(e,t){var o={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.getComponentHolder(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(o.$scope=this.scope),o},t.prototype.onMouseOut=function(e){var t=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(e){var t=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])},t.prototype.onCellDoubleClicked=function(e){var t=this.getComponentHolder(),o=this.createEvent(e,p.Events.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},t.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.startEditingIfEnabled=function(e,t,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),this.isCellEditable()&&!this.editingCell){this.editingCell=!0,this.cellEditorVersion++;var n=this.afterCellEditorCreated.bind(this,this.cellEditorVersion),i=this.createCellEditorParams(e,t,o);this.createCellEditor(i).then(n),g._.missing(this.cellEditor)&&o&&this.focusCell(!0)}},t.prototype.createCellEditor=function(e){var t=this;return this.beans.userComponentFactory.newCellEditor(this.column.getColDef(),e).map((function(o){if(!o.isPopup||!o.isPopup())return o;t.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var n=new f.PopupEditorWrapper(o);return t.beans.context.wireBean(n),n.init(e),n}))},t.prototype.afterCellEditorCreated=function(e,t){if(e===this.cellEditorVersion&&this.editingCell){if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return t.destroy&&t.destroy(),void(this.editingCell=!1);if(!t.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),t.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),t.destroy&&t.destroy(),void(this.editingCell=!1);this.cellEditor=t,this.cellEditorInPopup=void 0!==t.isPopup&&t.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached();var o=this.createEvent(null,p.Events.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(o)}else t.destroy&&t.destroy()},t.prototype.addInCellEditor=function(){g._.clearElement(this.getGui()),this.cellEditor&&this.getGui().appendChild(this.cellEditor.getGui()),this.angular1Compile()},t.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor?this.cellEditor.getGui():null;this.hideEditorPopup=this.beans.popupService.addAsModalPopup(t,!0,(function(){e.onPopupEditorClosed()})),this.beans.popupService.positionPopupOverComponent({column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:t,keepWithinBounds:!0}),this.angular1Compile()},t.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusedCellController.isCellFocused(this.gridCell)&&this.focusCell(!0))},t.prototype.setInlineEditingClass=function(){var e=this.editingCell&&!this.cellEditorInPopup,t=this.editingCell&&this.cellEditorInPopup;g._.addOrRemoveCssClass(this.getGui(),"ag-cell-inline-editing",e),g._.addOrRemoveCssClass(this.getGui(),"ag-cell-not-inline-editing",!e),g._.addOrRemoveCssClass(this.getGui(),"ag-cell-popup-editing",t),g._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-inline-editing",e),g._.addOrRemoveCssClass(this.getGui().parentNode,"ag-row-not-inline-editing",!e)},t.prototype.createCellEditorParams=function(e,t,o){return{value:this.getValue(),keyPress:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.gridCell.rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.parseValue=function(e){var t=this.getComponentHolder(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},n=t.valueParser;return g._.exists(n)?this.beans.expressionService.evaluate(n,o):e},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusedCellController.setFocusedCell(this.gridCell.rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.setFocusInOnEditor=function(){this.editingCell&&(this.cellEditor&&this.cellEditor.focusIn?this.cellEditor.focusIn():this.focusCell(!0))},t.prototype.isEditing=function(){return this.editingCell},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case l.Constants.KEY_ENTER:this.onEnterKeyDown();break;case l.Constants.KEY_F2:this.onF2KeyDown();break;case l.Constants.KEY_ESCAPE:this.onEscapeKeyDown();break;case l.Constants.KEY_TAB:this.onTabKeyDown(e);break;case l.Constants.KEY_BACKSPACE:case l.Constants.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case l.Constants.KEY_DOWN:case l.Constants.KEY_UP:case l.Constants.KEY_RIGHT:case l.Constants.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.prototype.onNavigationKeyPressed=function(e,t){this.editingCell||(e.shiftKey&&this.rangeSelectionEnabled?this.onShiftRangeSelect(t):this.beans.rowRenderer.navigateToNextCell(e,t,this.gridCell,!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeController.extendRangeInDirection(this.gridCell,e)){var t=this.beans.rangeController.getCellRanges();if(!g._.missing(t)&&t&&1===t.length){var o=t[0].end;this.beans.rowRenderer.ensureCellVisible(o)}}},t.prototype.onTabKeyDown=function(e){this.beans.rowRenderer.onTabKeyDown(this,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(){this.editingCell||this.rowComp.isEditing()?this.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.rowRenderer.navigateToNextCell(null,l.Constants.KEY_DOWN,this.gridCell,!1):this.startRowOrCellEdit(l.Constants.KEY_ENTER)},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.rowRenderer.navigateToNextCell(null,l.Constants.KEY_DOWN,this.gridCell,!1)},t.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(l.Constants.KEY_F2)},t.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},t.prototype.onKeyPress=function(e){if(g._.getTarget(e)===this.getGui()&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):g._.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){if(!this.editingCell&&this.beans.gridOptionsWrapper.isRowSelection()){var t=this.rowNode.isSelected();this.rowNode.setSelected(!t)}e.preventDefault()},t.prototype.onMouseDown=function(e){var t=!1;if(!g._.isElementChildOfClass(e.target,"ag-selection-checkbox",3)){if(g._.isBrowserIE()&&e.target.classList.contains("ag-cell")&&(t=!0),this.focusCell(t),g._.isLeftClick(e)&&this.beans.rangeController){var o=this.gridCell;if(e.shiftKey)this.beans.rangeController.extendRangeToCell(o);else{var n=e.ctrlKey||e.metaKey;this.beans.rangeController.setRangeToCell(o,n)}}var i=this.createEvent(e,p.Events.EVENT_CELL_MOUSE_DOWN);this.beans.eventService.dispatchEvent(i)}},t.prototype.isDoubleClickOnIPad=function(){if(!g._.isUserAgentIPad())return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.createEvent(e,p.Events.EVENT_CELL_CLICKED);this.beans.eventService.dispatchEvent(t);var o=this.getComponentHolder();o.onCellClicked&&window.setTimeout((function(){return o.onCellClicked(t)}),0),(this.beans.gridOptionsWrapper.isSingleClickEdit()||o.singleClickEdit)&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit(),g._.doIeFocusHack(this.getGui())},t.prototype.createGridCellVo=function(){var e={rowIndex:this.rowNode.rowIndex,floating:this.rowNode.rowPinned,column:this.column};this.gridCell=new u.GridCell(e)},t.prototype.getGridCell=function(){return this.gridCell},t.prototype.getParentRow=function(){return this.eParentRow},t.prototype.setParentRow=function(e){this.eParentRow=e},t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.detach=function(){this.eParentRow.removeChild(this.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.cellEditor&&this.cellEditor.destroy&&(this.cellEditor.destroy(),this.cellEditor=null),this.cellRenderer&&this.cellRenderer.destroy&&(this.cellRenderer.destroy(),this.cellRenderer=null)},t.prototype.onLeftChanged=function(){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.getGui().style.left=e+"px"},t.prototype.modifyLeftForPrintLayout=function(e){return this.printLayout?this.column.getPinned()===s.Column.PINNED_LEFT?e:this.column.getPinned()===s.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+e:this.beans.columnController.getPinnedLeftContainerWidth()+e:e},t.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getGui().style.width=e+"px"},t.prototype.getRangeClasses=function(){var e=[];return this.rangeSelectionEnabled?(0!==this.rangeCount&&e.push("ag-cell-range-selected"),1===this.rangeCount&&e.push("ag-cell-range-selected-1"),2===this.rangeCount&&e.push("ag-cell-range-selected-2"),3===this.rangeCount&&e.push("ag-cell-range-selected-3"),this.rangeCount>=4&&e.push("ag-cell-range-selected-4"),e):e},t.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){if(this.beans.enterprise){var e=this.beans.rangeController.getCellRangeCount(this.gridCell),t=this.getGui();this.rangeCount!==e&&(g._.addOrRemoveCssClass(t,"ag-cell-range-selected",0!==e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-1",1===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-2",2===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-3",3===e),g._.addOrRemoveCssClass(t,"ag-cell-range-selected-4",e>=4),this.rangeCount=e)}},t.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,g._.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},t.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,g._.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},t.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},t.prototype.addRowDragging=function(){if(this.beans.gridOptionsWrapper.isRowModelDefault())if(this.beans.gridOptionsWrapper.isPagination())g._.doOnce((function(){return console.warn("ag-Grid: row dragging is not possible when doing pagination")}),"CellComp.addRowDragging");else{var e=new h.RowDragComp(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(this.beans.context,e),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)}else g._.doOnce((function(){return console.warn("ag-Grid: row dragging is only allowed in the In Memory Row Model")}),"CellComp.addRowDragging")},t.prototype.addSelectionCheckbox=function(){var e=new c.CheckboxSelectionComponent;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc((function(){return e.destroy()})),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},t.prototype.addDomData=function(){var e=this,o=this.getGui();this.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,null)}))},t.prototype.onCellFocused=function(e){var t=this.beans.focusedCellController.isCellFocused(this.gridCell);if(t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&g._.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t),t&&e&&e.forceBrowserFocus){var o=this.getGui();o.focus(),g._.doIeFocusHack(o)}var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editingCell||this.stopRowOrCellEdit()},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,o=!1;if(e||this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),o=!0),this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(g._.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var n=this.cellRendererGui;n&&this.getGui().appendChild(n)}this.setInlineEditingClass(),o&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var i=this.createEvent(null,p.Events.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)}else this.editingCell=!1},t.DOM_DATA_KEY_CELL_COMP="cellComp",t.CELL_RENDERER_TYPE_NORMAL="cellRenderer",t.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",t}(d.Component);t.CellComp=m},23801:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(55090),a=o(23054),l=o(98239),p=o(83423),u=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),p._.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var o=this.gridPanel.getCenterContainer();o.appendChild(this.eDummyContainer);var n=[];this.columnController.getAllAutoRowHeightCols().filter((function(e){return e.isVisible()})).forEach((function(o){var i=new a.CellComp(t.$scope,t.beans,o,e,null,!0,!1);i.setParentRow(t.eDummyContainer),n.push(i)}));var i=n.map((function(e){return e.getCreateTemplate()})).join(" ");this.eDummyContainer.innerHTML=i,n.forEach((function(e){return e.afterAttached()}));for(var r=0,s=0;s<this.eDummyContainer.children.length;s++){var l=this.eDummyContainer.children[s];l.offsetHeight>r&&(r=l.offsetHeight)}return o.removeChild(this.eDummyContainer),n.forEach((function(e){e.detach(),e.destroy()})),p._.clearElement(this.eDummyContainer),r},n([r.Autowired("beans"),i("design:type",s.Beans)],e.prototype,"beans",void 0),n([r.Autowired("$scope"),i("design:type",Object)],e.prototype,"$scope",void 0),n([r.Autowired("columnController"),i("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([r.Bean("autoHeightCalculator")],e)}();t.AutoHeightCalculator=u},24048:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(663),l=o(4889),p=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;this.filterService.filter(o),this.selectableService.updateSelectableAfterFiltering(t)},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("selectableService"),i("design:type",l.SelectableService)],e.prototype,"selectableService",void 0),n([r.Autowired("filterService"),i("design:type",a.FilterService)],e.prototype,"filterService",void 0),n([r.Bean("filterStage")],e)}();t.FilterStage=p},24144:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(72493),p=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),i=o.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(i)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(22131).Component);t.LoadingOverlayComponent=p},24463:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(40634),a=o(98239),l=o(72493),p=o(63405),u=o(60843),d=o(88842),c=o(83423),h=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,o,n){if(void 0===o&&(o=!1),void 0===n&&(n=!1),this.initialised||this.init(),t){var i,r=e.getColDef(),s=r.field,a=e.getId(),l=t.data,p=t.groupData&&void 0!==t.groupData[a],u=!n&&t.aggData&&void 0!==t.aggData[a];if(o&&r.filterValueGetter?i=this.executeFilterValueGetter(r.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&u?i=t.aggData[a]:this.gridOptionsWrapper.isTreeData()&&r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&s&&l?i=c._.getValueUsingField(l,s,e.isFieldContainsDots()):p?i=t.groupData[a]:u?i=t.aggData[a]:r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,e,t):s&&l&&(i=c._.getValueUsingField(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof i&&0===i.indexOf("=")){var d=i.substring(1);i=this.executeValueGetter(d,l,e,t)}return i}},e.prototype.setValue=function(e,t,o){var n=this.columnController.getPrimaryColumn(t);if(e&&n){var i=e.data;c._.missing(i)&&(e.data={});var r=n.getColDef(),s=r.field,a=r.newValueHandler,l=r.valueSetter;if(c._.missing(s)&&c._.missing(a)&&c._.missing(l))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,d={node:e,data:e.data,oldValue:this.getValue(n,e),newValue:o,colDef:n.getColDef(),column:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=o,void 0===(u=a&&c._.exists(a)?a(d):c._.exists(l)?this.expressionService.evaluate(l,d):this.setValueUsingField(i,s,o,n.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(n,e);var h=n.getColDef().onCellValueChanged;"function"==typeof h&&setTimeout((function(){return h(d)}),0);var f={type:p.Events.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,colDef:d.colDef,columnApi:d.columnApi,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue};this.eventService.dispatchEvent(f)}}}},e.prototype.setValueUsingField=function(e,t,o,n){if(!t)return!1;if(n)for(var i=t.split("."),r=e;i.length>0&&r;){var s=i.shift();0===i.length?r[s]=o:r=r[s]}else e[t]=o;return!0},e.prototype.executeFilterValueGetter=function(e,t,o,n){var i={data:t,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(e,i)},e.prototype.executeValueGetter=function(e,t,o,n){var i=o.getId(),r=this.valueCache.getValue(n,i);if(void 0!==r)return r;var s={data:t,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(e,s);return this.valueCache.setValue(n,i,a),a},e.prototype.getValueCallback=function(e,t){var o=this.columnController.getPrimaryColumn(t);return o?this.getValue(o,e):null},e.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),n=e.getColDef().keyCreator,i=n?n({value:o}):o;return"string"==typeof i||null==i||"[object Object]"===(i=String(i))&&c._.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]"),i},n([l.Autowired("gridOptionsWrapper"),i("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("expressionService"),i("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),n([l.Autowired("columnController"),i("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([l.Autowired("eventService"),i("design:type",u.EventService)],e.prototype,"eventService",void 0),n([l.Autowired("valueCache"),i("design:type",d.ValueCache)],e.prototype,"valueCache",void 0),n([l.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([l.Bean("valueService")],e)}();t.ValueService=h},25230:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(37132),a=o(60843),l=o(63405),p=o(44081),u=o(44871),d=o(40797),c=o(83423),h=function(){function e(){this.onMouseUpListener=this.onMouseUp.bind(this),this.onMouseMoveListener=this.onMouseMove.bind(this),this.onTouchEndListener=this.onTouchUp.bind(this),this.onTouchMoveListener=this.onTouchMove.bind(this),this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var n=e.touchStartListener;t.removeEventListener("touchstart",n,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=c._.find(this.dragSources,(function(t){return t.dragSource===e}));t&&(this.removeListener(t),c._.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");c._.exists(t)&&c._.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var n=null,i=this.gridOptionsWrapper.isSuppressTouch();t&&!i&&(n=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:n,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var n=t.touches[0];this.touchLastTime=n,this.touchStart=n,t.preventDefault(),e.eElement.addEventListener("touchmove",this.onTouchMoveListener,{passive:!0}),e.eElement.addEventListener("touchend",this.onTouchEndListener,{passive:!0}),e.eElement.addEventListener("touchcancel",this.onTouchEndListener,{passive:!0}),this.dragEndFunctions.push((function(){e.eElement.removeEventListener("touchmove",o.onTouchMoveListener,{passive:!0}),e.eElement.removeEventListener("touchend",o.onTouchEndListener,{passive:!0}),e.eElement.removeEventListener("touchcancel",o.onTouchEndListener,{passive:!0})})),0===e.dragStartPixels&&this.onCommonMove(n,this.touchStart)},e.prototype.onMouseDown=function(e,t){var o=this;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||t._alreadyProcessedByDragService||(t._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseEventLastTime=t,this.mouseStartEvent=t;var n=this.gridOptionsWrapper.getDocument();n.addEventListener("mousemove",this.onMouseMoveListener),n.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push((function(){n.removeEventListener("mousemove",o.onMouseMoveListener),n.removeEventListener("mouseup",o.onMouseUpListener)})),0===e.dragStartPixels&&this.onMouseMove(t)}},e.prototype.isEventNearStartEvent=function(e,t){var o=this.currentDragParams.dragStartPixels,n=c._.exists(o)?o:4;return c._.areEventsNear(e,t,n)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.onCommonMove=function(e,t){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:l.Events.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.setNoSelectToBody(!0)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e){var t=this.getFirstActiveTouch(e.touches);t&&this.onCommonMove(t,this.touchStart)},e.prototype.onMouseMove=function(e){this.onCommonMove(e,this.mouseStartEvent)},e.prototype.onTouchUp=function(e){var t=this.getFirstActiveTouch(e.changedTouches);t||(t=this.touchLastTime),this.onUpCommon(t)},e.prototype.onMouseUp=function(e){this.onUpCommon(e)},e.prototype.onUpCommon=function(e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var t={type:l.Events.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.mouseEventLastTime=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},n([r.Autowired("loggerFactory"),i("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),n([r.Autowired("eventService"),i("design:type",a.EventService)],e.prototype,"eventService",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("columnApi"),i("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),n([r.Autowired("gridApi"),i("design:type",d.GridApi)],e.prototype,"gridApi",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r.PreDestroy,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"destroy",null),n([r.Bean("dragService")],e)}();t.DragService=h},25358:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(26016),p=o(72493),u=o(44081),d=o(86608),c=o(66419),h=o(60843),f=o(47721),g=o(63405),m=o(83423),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return i(t,e),t.prototype.init=function(e){var o=m._.firstExistingValue(e.template,t.TEMPLATE);o=o&&o.trim?o.trim():o,this.setTemplate(o),this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){var t=m._.escape(e);this.eText&&(this.eText.innerHTML=t)},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,o){if(null!=t){var n=m._.createIconNoSpan(e,this.gridOptionsWrapper,o);t.appendChild(n)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var o=t.isSuppressMenuHide(),n=new c.TouchListener(this.getGui(),!0),i=o?new c.TouchListener(this.eMenu,!0):n;if(this.params.enableMenu){var r=o?"EVENT_TAP":"EVENT_LONG_TAP";this.addDestroyableEventListener(i,c.TouchListener[r],(function(o){t.getApi().showColumnMenuAfterMouseClick(e.params.column,o.touchStart)}))}this.params.enableSorting&&this.addDestroyableEventListener(n,c.TouchListener.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return n.destroy()})),i!==n&&this.addDestroyFunc((function(){return i.destroy()}))}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();if(!this.params.enableMenu||m._.isUserAgentIPad()&&!t)m._.removeFromParent(this.eMenu);else{this.addDestroyableEventListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),t||(this.eMenu.style.opacity="0",this.addGuiEventListener("mouseover",(function(){e.eMenu.style.opacity="1"})),this.addGuiEventListener("mouseout",(function(){e.eMenu.style.opacity="0"})));var o=this.eMenu.style;o.transition="opacity 0.2s, border 0.2s",o["-webkit-transition"]="opacity 0.2s, border 0.2s"}}},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){m._.removeFromParent(this.eSortAsc),m._.removeFromParent(this.eSortDesc),m._.removeFromParent(this.eSortNone),m._.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(this.params.enableSorting){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addDestroyableEventListener(this.params.column,l.Column.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",(function(o){var n=e.params.column.isMoving(),i=(new Date).getTime()-e.lastMovingChanged<50;if(!n&&!i){var r=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(r)}})),this.addDestroyableEventListener(this.params.column,l.Column.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),m._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&m._.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&m._.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();m._.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),o=t.indexOf(e),n=t.length>1,i=e.isSorting()&&n;m._.setVisible(this.eSortOrder,i),o>=0?this.eSortOrder.innerHTML=(o+1).toString():m._.clearElement(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,l.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();m._.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation"> <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span> <div ref="eLabel" class="ag-header-cell-label" role="presentation" unselectable="on"> <span ref="eText" class="ag-header-cell-text" role="columnheader" unselectable="on"></span> <span ref="eFilter" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span> <span ref="eSortOrder" class="ag-header-icon ag-sort-order" aria-hidden="true"></span> <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon" aria-hidden="true"></span> <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon" aria-hidden="true"></span> <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon" aria-hidden="true"></span> </div></div>',r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("sortController"),s("design:type",d.SortController)],t.prototype,"sortController",void 0),r([p.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([p.Autowired("eventService"),s("design:type",h.EventService)],t.prototype,"eventService",void 0),r([f.RefSelector("eFilter"),s("design:type",HTMLElement)],t.prototype,"eFilter",void 0),r([f.RefSelector("eSortAsc"),s("design:type",HTMLElement)],t.prototype,"eSortAsc",void 0),r([f.RefSelector("eSortDesc"),s("design:type",HTMLElement)],t.prototype,"eSortDesc",void 0),r([f.RefSelector("eSortNone"),s("design:type",HTMLElement)],t.prototype,"eSortNone",void 0),r([f.RefSelector("eSortOrder"),s("design:type",HTMLElement)],t.prototype,"eSortOrder",void 0),r([f.RefSelector("eMenu"),s("design:type",HTMLElement)],t.prototype,"eMenu",void 0),r([f.RefSelector("eLabel"),s("design:type",HTMLElement)],t.prototype,"eLabel",void 0),r([f.RefSelector("eText"),s("design:type",HTMLElement)],t.prototype,"eText",void 0),t}(a.Component);t.HeaderComp=y},25453:(e,t,o)=>{o.d(t,{JS:()=>xe,jN:()=>T});var n,i,r,s,a,l,p,u,d,c,h,f,g,m,y=o(38848),v=o(12240),C=o(11050),w=o(84340),E=o(39889),_=o(9606).URL,R=o(67787).Buffer,O=Symbol.for("vercel.ai.gateway.error"),b=class e extends(i=Error,n=O,i){constructor({message:e,statusCode:t=500,cause:o,generationId:i}){super(i?`${e} [${i}]`:e),this[n]=!0,this.statusCode=t,this.cause=o,this.generationId=i}static isInstance(t){return e.hasMarker(t)}static hasMarker(e){return"object"==typeof e&&null!==e&&O in e&&!0===e[O]}},S="GatewayAuthenticationError",P=`vercel.ai.gateway.error.${S}`,A=Symbol.for(P),T=class e extends(s=b,r=A,s){constructor({message:e="Authentication failed",statusCode:t=401,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[r]=!0,this.name=S,this.type="authentication_error"}static isInstance(e){return b.hasMarker(e)&&A in e}static createContextualError({apiKeyProvided:t,oidcTokenProvided:o,message:n="Authentication failed",statusCode:i=401,cause:r,generationId:s}){let a;return a=t?"AI Gateway authentication failed: Invalid API key.\n\nCreate a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys\n\nProvide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.":o?"AI Gateway authentication failed: Invalid OIDC token.\n\nRun 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.\n\nAlternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys":"AI Gateway authentication failed: No authentication provided.\n\nOption 1 - API key:\nCreate an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys\nProvide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.\n\nOption 2 - OIDC token:\nRun 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.",new e({message:a,statusCode:i,cause:r,generationId:s})}},D="GatewayInvalidRequestError",N=`vercel.ai.gateway.error.${D}`,I=Symbol.for(N),F=class extends(l=b,a=I,l){constructor({message:e="Invalid request",statusCode:t=400,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[a]=!0,this.name=D,this.type="invalid_request_error"}static isInstance(e){return b.hasMarker(e)&&I in e}},L="GatewayRateLimitError",x=`vercel.ai.gateway.error.${L}`,M=Symbol.for(x),G=class extends(u=b,p=M,u){constructor({message:e="Rate limit exceeded",statusCode:t=429,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[p]=!0,this.name=L,this.type="rate_limit_exceeded"}static isInstance(e){return b.hasMarker(e)&&M in e}},k="GatewayModelNotFoundError",W=`vercel.ai.gateway.error.${k}`,H=Symbol.for(W),V=(0,y.ID)((()=>(0,y.jN)(C.Ik({modelId:C.Yj()})))),j=class extends(c=b,d=H,c){constructor({message:e="Model not found",statusCode:t=404,modelId:o,cause:n,generationId:i}={}){super({message:e,statusCode:t,cause:n,generationId:i}),this[d]=!0,this.name=k,this.type="model_not_found",this.modelId=o}static isInstance(e){return b.hasMarker(e)&&H in e}},B="GatewayInternalServerError",Y=`vercel.ai.gateway.error.${B}`,U=Symbol.for(Y),z=class extends(f=b,h=U,f){constructor({message:e="Internal server error",statusCode:t=500,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[h]=!0,this.name=B,this.type="internal_server_error"}static isInstance(e){return b.hasMarker(e)&&U in e}},q="GatewayResponseError",K=`vercel.ai.gateway.error.${q}`,$=Symbol.for(K),Z=class extends(m=b,g=$,m){constructor({message:e="Invalid response from Gateway",statusCode:t=502,response:o,validationError:n,cause:i,generationId:r}={}){super({message:e,statusCode:t,cause:i,generationId:r}),this[g]=!0,this.name=q,this.type="response_error",this.response=o,this.validationError=n}static isInstance(e){return b.hasMarker(e)&&$ in e}};async function Q({response:e,statusCode:t,defaultMessage:o="Gateway request failed",cause:n,authMethod:i}){var r;const s=await(0,y.ZZ)({value:e,schema:ee});if(!s.success){const i="object"==typeof e&&null!==e&&"generationId"in e?e.generationId:void 0;return new Z({message:`Invalid error response format: ${o}`,statusCode:t,response:e,validationError:s.error,cause:n,generationId:i})}const a=s.value,l=a.error.type,p=a.error.message,u=null!=(r=a.generationId)?r:void 0;switch(l){case"authentication_error":return T.createContextualError({apiKeyProvided:"api-key"===i,oidcTokenProvided:"oidc"===i,statusCode:t,cause:n,generationId:u});case"invalid_request_error":return new F({message:p,statusCode:t,cause:n,generationId:u});case"rate_limit_exceeded":return new G({message:p,statusCode:t,cause:n,generationId:u});case"model_not_found":{const e=await(0,y.ZZ)({value:a.error.param,schema:V});return new j({message:p,statusCode:t,modelId:e.success?e.value.modelId:void 0,cause:n,generationId:u})}default:return new z({message:p,statusCode:t,cause:n,generationId:u})}}var X,J,ee=(0,y.ID)((()=>(0,y.jN)(C.Ik({error:C.Ik({message:C.Yj(),type:C.Yj().nullish(),param:C.L5().nullish(),code:C.KC([C.Yj(),C.ai()]).nullish()}),generationId:C.Yj().nullish()})))),te="GatewayTimeoutError",oe=`vercel.ai.gateway.error.${te}`,ne=Symbol.for(oe),ie=class e extends(J=b,X=ne,J){constructor({message:e="Request timed out",statusCode:t=408,cause:o,generationId:n}={}){super({message:e,statusCode:t,cause:o,generationId:n}),this[X]=!0,this.name=te,this.type="timeout_error"}static isInstance(e){return b.hasMarker(e)&&ne in e}static createTimeoutError({originalMessage:t,statusCode:o=408,cause:n,generationId:i}){return new e({message:`Gateway request timed out: ${t}\n\n This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`,statusCode:o,cause:n,generationId:i})}};function re(e){if(!(e instanceof Error))return!1;const t=e.code;return"string"==typeof t&&["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(t)}async function se(e,t){var o;return b.isInstance(e)?e:re(e)?ie.createTimeoutError({originalMessage:e instanceof Error?e.message:"Unknown error",cause:e}):v.hL.isInstance(e)?e.cause&&re(e.cause)?ie.createTimeoutError({originalMessage:e.message,cause:e}):await Q({response:ae(e),statusCode:null!=(o=e.statusCode)?o:500,defaultMessage:"Gateway request failed",cause:e,authMethod:t}):await Q({response:{},statusCode:500,defaultMessage:e instanceof Error?`Gateway request failed: ${e.message}`:"Unknown Gateway error",cause:e,authMethod:t})}function ae(e){if(void 0!==e.data)return e.data;if(null!=e.responseBody)try{return JSON.parse(e.responseBody)}catch(t){return e.responseBody}return{}}var le="ai-gateway-auth-method";async function pe(e){const t=await(0,y.ZZ)({value:e[le],schema:ue});return t.success?t.value:void 0}var ue=(0,y.ID)((()=>(0,y.jN)(C.KC([C.eu("api-key"),C.eu("oidc")])))),de=class{constructor(e){this.config=e}async getAvailableModels(){try{const{value:e}=await(0,y.$b)({url:`${this.config.baseURL}/config`,headers:await(0,y.hd)(this.config.headers()),successfulResponseHandler:(0,y.cV)(ce),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),fetch:this.config.fetch});return e}catch(e){throw await se(e)}}async getCredits(){try{const e=new _(this.config.baseURL),{value:t}=await(0,y.$b)({url:`${e.origin}/v1/credits`,headers:await(0,y.hd)(this.config.headers()),successfulResponseHandler:(0,y.cV)(he),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),fetch:this.config.fetch});return t}catch(e){throw await se(e)}}},ce=(0,y.ID)((()=>(0,y.jN)(C.Ik({models:C.YO(C.Ik({id:C.Yj(),name:C.Yj(),description:C.Yj().nullish(),pricing:C.Ik({input:C.Yj(),output:C.Yj(),input_cache_read:C.Yj().nullish(),input_cache_write:C.Yj().nullish()}).transform((({input:e,output:t,input_cache_read:o,input_cache_write:n})=>({input:e,output:t,...o?{cachedInputTokens:o}:{},...n?{cacheCreationInputTokens:n}:{}}))).nullish(),specification:C.Ik({specificationVersion:C.eu("v3"),provider:C.Yj(),modelId:C.Yj()}),modelType:C.k5(["embedding","image","language","video"]).nullish()}))})))),he=(0,y.ID)((()=>(0,y.jN)(C.Ik({balance:C.Yj(),total_used:C.Yj()}).transform((({balance:e,total_used:t})=>({balance:e,totalUsed:t})))))),fe=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.supportedUrls={"*/*":[/.*/]}}get provider(){return this.config.provider}async getArgs(e){const{abortSignal:t,...o}=e;return{args:this.maybeEncodeFileParts(o),warnings:[]}}async doGenerate(e){const{args:t,warnings:o}=await this.getArgs(e),{abortSignal:n}=e,i=await(0,y.hd)(this.config.headers());try{const{responseHeaders:r,value:s,rawValue:a}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(i,e.headers,this.getModelConfigHeaders(this.modelId,!1),await(0,y.hd)(this.config.o11yHeaders)),body:t,successfulResponseHandler:(0,y.cV)(C.bz()),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...n&&{abortSignal:n},fetch:this.config.fetch});return{...s,request:{body:t},response:{headers:r,body:a},warnings:o}}catch(e){throw await se(e,await pe(i))}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),{abortSignal:n}=e,i=await(0,y.hd)(this.config.headers());try{const{value:r,responseHeaders:s}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(i,e.headers,this.getModelConfigHeaders(this.modelId,!0),await(0,y.hd)(this.config.o11yHeaders)),body:t,successfulResponseHandler:(0,y.Ds)(C.bz()),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...n&&{abortSignal:n},fetch:this.config.fetch});return{stream:r.pipeThrough(new TransformStream({start(e){o.length>0&&e.enqueue({type:"stream-start",warnings:o})},transform(t,o){if(t.success){const n=t.value;if("raw"===n.type&&!e.includeRawChunks)return;"response-metadata"===n.type&&n.timestamp&&"string"==typeof n.timestamp&&(n.timestamp=new Date(n.timestamp)),o.enqueue(n)}else o.error(t.error)}})),request:{body:t},response:{headers:s}}}catch(e){throw await se(e,await pe(i))}}isFilePart(e){return e&&"object"==typeof e&&"type"in e&&"file"===e.type}maybeEncodeFileParts(e){for(const t of e.prompt)for(const e of t.content)if(this.isFilePart(e)){const t=e;if(t.data instanceof Uint8Array){const e=Uint8Array.from(t.data),o=R.from(e).toString("base64");t.data=new _(`data:${t.mediaType||"application/octet-stream"};base64,${o}`)}}return e}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(e,t){return{"ai-language-model-specification-version":"3","ai-language-model-id":e,"ai-language-model-streaming":String(t)}}},ge=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:o,providerOptions:n}){var i;const r=await(0,y.hd)(this.config.headers());try{const{responseHeaders:s,value:a,rawValue:l}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(r,null!=t?t:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{values:e,...n?{providerOptions:n}:{}},successfulResponseHandler:(0,y.cV)(me),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...o&&{abortSignal:o},fetch:this.config.fetch});return{embeddings:a.embeddings,usage:null!=(i=a.usage)?i:void 0,providerMetadata:a.providerMetadata,response:{headers:s,body:l},warnings:[]}}catch(e){throw await se(e,await pe(r))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"3","ai-model-id":this.modelId}}},me=(0,y.ID)((()=>(0,y.jN)(C.Ik({embeddings:C.YO(C.YO(C.ai())),usage:C.Ik({tokens:C.ai()}).nullish(),providerMetadata:C.g1(C.Yj(),C.g1(C.Yj(),C.L5())).optional()})))),ye=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:o,aspectRatio:n,seed:i,files:r,mask:s,providerOptions:a,headers:l,abortSignal:p}){var u,d,c,h;const f=await(0,y.hd)(this.config.headers());try{const{responseHeaders:g,value:m,rawValue:v}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(f,null!=l?l:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{prompt:e,n:t,...o&&{size:o},...n&&{aspectRatio:n},...i&&{seed:i},...a&&{providerOptions:a},...r&&{files:r.map((e=>ve(e)))},...s&&{mask:ve(s)}},successfulResponseHandler:(0,y.cV)(_e),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...p&&{abortSignal:p},fetch:this.config.fetch});return{images:m.images,warnings:null!=(u=m.warnings)?u:[],providerMetadata:m.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:g},...null!=m.usage&&{usage:{inputTokens:null!=(d=m.usage.inputTokens)?d:void 0,outputTokens:null!=(c=m.usage.outputTokens)?c:void 0,totalTokens:null!=(h=m.usage.totalTokens)?h:void 0}}}}catch(e){throw await se(e,await pe(f))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"3","ai-model-id":this.modelId}}};function ve(e){return"file"===e.type&&e.data instanceof Uint8Array?{...e,data:(0,y.n_)(e.data)}:e}var Ce=C.Ik({images:C.YO(C.L5()).optional()}).catchall(C.L5()),we=C.gM("type",[C.Ik({type:C.eu("unsupported"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("compatibility"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("other"),message:C.Yj()})]),Ee=C.Ik({inputTokens:C.ai().nullish(),outputTokens:C.ai().nullish(),totalTokens:C.ai().nullish()}),_e=C.Ik({images:C.YO(C.Yj()),warnings:C.YO(we).optional(),providerMetadata:C.g1(C.Yj(),Ce).optional(),usage:Ee.optional()}),Re=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,aspectRatio:o,resolution:n,duration:i,fps:r,seed:s,image:a,providerOptions:l,headers:p,abortSignal:u}){var d;const c=await(0,y.hd)(this.config.headers());try{const{responseHeaders:f,value:g,rawValue:m}=await(0,y.GU)({url:this.getUrl(),headers:(0,y.m2)(c,null!=p?p:{},this.getModelConfigHeaders(),await(0,y.hd)(this.config.o11yHeaders)),body:{prompt:e,n:t,...o&&{aspectRatio:o},...n&&{resolution:n},...i&&{duration:i},...r&&{fps:r},...s&&{seed:s},...l&&{providerOptions:l},...a&&{image:(h=a,"file"===h.type&&h.data instanceof Uint8Array?{...h,data:(0,y.n_)(h.data)}:h)}},successfulResponseHandler:(0,y.cV)(Pe),failedResponseHandler:(0,y.sl)({errorSchema:C.bz(),errorToMessage:e=>e}),...u&&{abortSignal:u},fetch:this.config.fetch});return{videos:g.videos,warnings:null!=(d=g.warnings)?d:[],providerMetadata:g.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:f}}}catch(e){throw await se(e,await pe(c))}var h}getUrl(){return`${this.config.baseURL}/video-model`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"3","ai-model-id":this.modelId}}};var Oe=C.Ik({videos:C.YO(C.L5()).optional()}).catchall(C.L5()),be=C.KC([C.Ik({type:C.eu("url"),url:C.Yj(),mediaType:C.Yj()}),C.Ik({type:C.eu("base64"),data:C.Yj(),mediaType:C.Yj()})]),Se=C.gM("type",[C.Ik({type:C.eu("unsupported"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("compatibility"),feature:C.Yj(),details:C.Yj().optional()}),C.Ik({type:C.eu("other"),message:C.Yj()})]),Pe=C.Ik({videos:C.YO(be),warnings:C.YO(Se).optional(),providerMetadata:C.g1(C.Yj(),Oe).optional()}),Ae=(0,y.ID)((()=>(0,y.jN)(w.Ik({objective:w.Yj().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:w.YO(w.Yj()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:w.k5(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:w.ai().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:w.Ik({include_domains:w.YO(w.Yj()).optional().describe("List of domains to include in search results."),exclude_domains:w.YO(w.Yj()).optional().describe("List of domains to exclude from search results."),after_date:w.Yj().optional().describe("Only include results published after this date (ISO 8601 format).")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:w.Ik({max_chars_per_result:w.ai().optional().describe("Maximum characters per result."),max_chars_total:w.ai().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:w.Ik({max_age_seconds:w.ai().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")})))),Te=(0,y.ID)((()=>(0,y.jN)(w.KC([w.Ik({searchId:w.Yj(),results:w.YO(w.Ik({url:w.Yj(),title:w.Yj(),excerpt:w.Yj(),publishDate:w.Yj().nullable().optional(),relevanceScore:w.ai().optional()}))}),w.Ik({error:w.k5(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:w.ai().optional(),message:w.Yj()})])))),De=(0,y.wA)({id:"gateway.parallel_search",inputSchema:Ae,outputSchema:Te}),Ne=(0,y.ID)((()=>(0,y.jN)(w.Ik({query:w.KC([w.Yj(),w.YO(w.Yj())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:w.ai().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:w.ai().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:w.ai().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:w.Yj().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:w.YO(w.Yj()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:w.YO(w.Yj()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:w.Yj().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:w.Yj().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:w.Yj().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:w.Yj().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:w.k5(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")})))),Ie=(0,y.ID)((()=>(0,y.jN)(w.KC([w.Ik({results:w.YO(w.Ik({title:w.Yj(),url:w.Yj(),snippet:w.Yj(),date:w.Yj().optional(),lastUpdated:w.Yj().optional()})),id:w.Yj()}),w.Ik({error:w.k5(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:w.ai().optional(),message:w.Yj()})])))),Fe=(0,y.wA)({id:"gateway.perplexity_search",inputSchema:Ne,outputSchema:Ie}),Le={parallelSearch:(e={})=>De(e),perplexitySearch:(e={})=>Fe(e)},xe=function(e={}){var t,o;let n=null,i=null;const r=null!=(t=e.metadataCacheRefreshMillis)?t:3e5;let s=0;const a=null!=(o=(0,y.ae)(e.baseURL))?o:"https://ai-gateway.vercel.sh/v3/ai",l=async()=>{try{const t=await async function(e){const t=(0,y.x3)({settingValue:e.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return t?{token:t,authMethod:"api-key"}:{token:await(0,E.getVercelOidcToken)(),authMethod:"oidc"}}(e);return(0,y.WZ)({Authorization:`Bearer ${t.token}`,"ai-gateway-protocol-version":"0.0.1",[le]:t.authMethod,...e.headers},"ai-sdk/gateway/3.0.46")}catch(e){throw T.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:e})}},p=()=>{const e=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),t=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),o=(0,y.x3)({settingValue:void 0,environmentVariableName:"VERCEL_REGION"});return async()=>{const n=await async function(){var e;return null==(e=(0,E.getContext)().headers)?void 0:e["x-vercel-id"]}();return{...e&&{"ai-o11y-deployment-id":e},...t&&{"ai-o11y-environment":t},...o&&{"ai-o11y-region":o},...n&&{"ai-o11y-request-id":n}}}},u=t=>new fe(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),d=function(e){if(new.target)throw new Error("The Gateway Provider model function cannot be called with the new keyword.");return u(e)};d.specificationVersion="v3",d.getAvailableModels=async()=>{var t,o,p;const u=null!=(p=null==(o=null==(t=e._internal)?void 0:t.currentDate)?void 0:o.call(t).getTime())?p:Date.now();return(!n||u-s>r)&&(s=u,n=new de({baseURL:a,headers:l,fetch:e.fetch}).getAvailableModels().then((e=>(i=e,e))).catch((async e=>{throw await se(e,await pe(await l()))}))),i?Promise.resolve(i):n},d.getCredits=async()=>new de({baseURL:a,headers:l,fetch:e.fetch}).getCredits().catch((async e=>{throw await se(e,await pe(await l()))})),d.imageModel=t=>new ye(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),d.languageModel=u;const c=t=>new ge(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()});return d.embeddingModel=c,d.textEmbeddingModel=c,d.videoModel=t=>new Re(t,{provider:"gateway",baseURL:a,headers:l,fetch:e.fetch,o11yHeaders:p()}),d.chat=d.languageModel,d.embedding=d.embeddingModel,d.image=d.imageModel,d.video=d.videoModel,d.tools=Le,d}()},26016:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(60843),s=o(83423),a=o(72493),l=o(44081),p=o(814),u=o(44871),d=o(40797),c=function(){function e(e,t,o,n){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new r.EventService,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=o,this.primary=n,this.lockPosition=!0===e.lockPosition,this.lockPinned=!0===e.lockPinned,this.lockVisible=!0===e.lockVisible}return e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.isLockPosition=function(){return this.lockPosition},e.prototype.isLockVisible=function(){return this.lockVisible},e.prototype.isLockPinned=function(){return this.lockPinned},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var o=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=s._.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=s._.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!o,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(s._.missing(this.colDef)||s._.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===e;return t||o},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){var e=!!this.colDef.filter||!!this.colDef.filterFramework;return this.primary&&e},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;this.gridOptionsWrapper.isEnterprise()||["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","pivot","pivotIndex","aggFunc"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is only valid in ag-Grid-Enterprise, your column definition should not have "+t)})),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){s._.exists(e[t])&&console.warn("ag-Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t)})),s._.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&console.warn("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width),s._.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),s._.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),e.floatingCellRenderer&&(console.warn("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(console.warn("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(console.warn("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(console.warn("ag-Grid: since v12, cellFormatter is now valueFormatter"),s._.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter)),e.headerCellTemplate&&console.warn("ag-Grid: since v15, headerCellTemplate is gone, use header component instead."),e.headerCellRenderer&&console.warn("ag-Grid: since v15, headerCellRenderer is gone, use header component instead."),e.volatile&&console.warn("ag-Grid: since v16, colDef.volatile is gone, please check refresh docs on how to refresh specific cells."),e.suppressSorting&&(console.warn("ag-Grid: since v20, colDef.suppressSorting is gone, instead use colDef.sortable=false.",this.colDef),this.colDef.sortable=!1),e.suppressFilter&&(console.warn("ag-Grid: since v20, colDef.suppressFilter is gone, instead use colDef.filter=false.",this.colDef),this.colDef.filter=!1),e.suppressResize&&(console.warn("ag-Grid: since v20, colDef.suppressResize is gone, instead use colDef.resizable=false.",this.colDef),this.colDef.resizable=!1),e.tooltip&&(console.warn("ag-Grid: since v20.1, colDef.tooltip is gone, instead use colDef.tooltipValueGetter.",this.colDef),this.colDef.tooltipValueGetter=e.tooltip)},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!0===this.colDef.resizable},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createIsColumnFuncParams(e))},e.prototype.setMoving=function(t,o){void 0===o&&(o="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,o))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,o){void 0===o&&(o="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,o)))},e.prototype.setMenuVisible=function(t,o){void 0===o&&(o="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,o)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===e.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===e.SORT_DESC},e.prototype.isSortNone=function(){return s._.missing(this.sort)},e.prototype.isSorting=function(){return s._.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,o){void 0===o&&(o="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,o)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,o){void 0===o&&(o="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,o))),this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_CHANGED,o))},e.prototype.setPinned=function(t){!0===t||t===e.PINNED_LEFT?this.pinned=e.PINNED_LEFT:t===e.PINNED_RIGHT?this.pinned=e.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,o){void 0===o&&(o="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,o)))},e.prototype.setLastLeftPinned=function(t,o){void 0===o&&(o="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,o)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===e.PINNED_LEFT||this.pinned===e.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===e.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===e.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,o){void 0===o&&(o="api");var n=!0===t;this.visible!==n&&(this.visible=n,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,o)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(s._.missing(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.colSpan(t);return Math.max(o,1)},e.prototype.getRowSpan=function(e){if(s._.missing(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),o=this.colDef.rowSpan(t);return Math.max(o,1)},e.prototype.setActualWidth=function(t,o){void 0===o&&(o="api"),this.actualWidth!==t&&(this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,o)))},e.prototype.isGreaterThanMax=function(e){return!!this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,o){void 0===o&&(o="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,o)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,o){void 0===o&&(o="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,o)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,o){void 0===o&&(o="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,o)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",n([a.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnUtils"),i("design:type",p.ColumnUtils)],e.prototype,"columnUtils",void 0),n([a.Autowired("frameworkFactory"),i("design:type",Object)],e.prototype,"frameworkFactory",void 0),n([a.Autowired("columnApi"),i("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),i("design:type",d.GridApi)],e.prototype,"gridApi",void 0),n([a.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"initialise",null),e}();t.Column=c},27887:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(37132),a=o(98239),l=o(26016),p=o(83423),u=o(58342),d=o(44081),c=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!p._.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?u.DragAndDropService.ICON_PINNED:u.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===u.DragSourceType.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,n=t.filter((function(e){return o[e.getId()]}));this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.dragItemCallback().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,o){if(void 0===o&&(o="api"),e){var n=e.filter((function(e){return!e.isLockVisible()}));this.columnController.setColumnsVisible(n,t,o)}},e.prototype.setColumnsPinned=function(e,t,o){if(void 0===o&&(o="api"),e){var n=e.filter((function(e){return!e.isLockPinned()}));this.columnController.setColumnsPinned(n,t,o)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){return this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e),this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),o=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var o=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!p._.missing(e.hDirection)){var n=this.normaliseX(e.x);t||this.checkCenterForScrolling(n);var i=this.normaliseDirection(e.hDirection),r=e.dragSource.type,s=e.dragSource.dragItemCallback().columns;s=s.filter((function(e){return!e.isLockPinned()||e.getPinned()==o.pinned})),this.attemptMoveColumns(r,s,i,n,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case u.HDirection.Left:return u.HDirection.Right;case u.HDirection.Right:return u.HDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),o=[];e.forEach((function(e){return o.push(t.indexOf(e))})),p._.sortNumberArray(o);var n=o[0];return o[o.length-1]-n!=o.length-1?null:n},e.prototype.attemptMoveColumns=function(e,t,o,n,i){for(var r=o===u.HDirection.Left,s=o===u.HDirection.Right,a=this.calculateValidMoves(t,s,n),l=this.calculateOldIndex(t),p=0;p<a.length;p++){var d=a[p],c=null!==l&&!i;if(e==u.DragSourceType.HeaderCell&&(c=null!==l),c){if(r&&d>=l)continue;if(s&&d<=l)continue}if(this.columnController.doesMovePassRules(t,d))return void this.columnController.moveColumns(t,d,"uiColumnDragged")}},e.prototype.calculateValidMoves=function(e,t,o){var n,i=this.columnController.getDisplayedColumns(this.pinned),r=this.columnController.getAllGridColumns(),s=function(t){return e.indexOf(t)<0},a=i.filter((function(t){return e.indexOf(t)>=0})),l=i.filter(s),u=r.filter(s),d=0,c=o;if(t){var h=0;a.forEach((function(e){return h+=e.getActualWidth()})),c-=h}if(c>0){for(var f=0;f<l.length&&!((c-=l[f].getActualWidth())<0);f++)d++;t&&d++}if(d>0){var g=l[d-1];n=u.indexOf(g)+1}else n=0;for(var m=[n],y=r[n];p._.exists(y)&&this.isColumnHidden(i,y);)n++,m.push(n),y=r[n];return m},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.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(u.DragAndDropService.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.isLockPinned()}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_PINNED),this.failedMoveAttempts>7)){var n=this.needToMoveLeft?l.Column.PINNED_LEFT:l.Column.PINNED_RIGHT;this.setColumnsPinned(o,n,"uiColumnDragged"),this.dragAndDropService.nudge()}}},n([r.Autowired("loggerFactory"),i("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),n([r.Autowired("columnController"),i("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("dragAndDropService"),i("design:type",u.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),e}();t.MoveColumnController=c},28771:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(15068),i=o(63405),r=o(83423),s=function(){function e(t,o,n,i,r,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.context=n,this.eventService=i,this.columnController=r,this.gridApi=s,this.columnApi=a,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=r._.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return r._.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var o=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=o,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=o},e.prototype.updateRowData=function(e,t){var o=this;if(this.isLegacyTreeData())return null;var n=e.add,s=e.addIndex,a=e.remove,l=e.update,p={remove:[],update:[],add:[]};if(r._.exists(n)&&("number"==typeof s&&s>=0?n.reverse().forEach((function(e){var t=o.addRowNode(e,s);p.add.push(t)})):n.forEach((function(e){var t=o.addRowNode(e);p.add.push(t)}))),r._.exists(a)){var u=!1;if(a.forEach((function(e){var t=o.lookupRowNode(e);t&&(t.isSelected()&&(u=!0),o.updatedRowNode(t,e,!1),p.remove.push(t))})),u){this.selectionController.updateGroupsFromChildrenSelections();var d={type:i.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(d)}}return r._.exists(l)&&l.forEach((function(e){var t=o.lookupRowNode(e);t&&(o.updatedRowNode(t,e,!0),p.update.push(t))})),t&&r._.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),p},e.prototype.addRowNode=function(t,o){var n=this.createNode(t,this.rootNode,e.TOP_LEVEL);return r._.exists(o)?r._.insertIntoArray(this.rootNode.allLeafChildren,n,o):this.rootNode.allLeafChildren.push(n),n},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsWrapper.getRowNodeIdFunc();if(r._.exists(o)){var n=o(e);if(!(t=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(!(t=r._.find(this.rootNode.allLeafChildren,(function(t){return t.data===e}))))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.updatedRowNode=function(e,t,o){o?e.updateData(t):(e.setSelected(!1,!1,!0),e.clearRowTop(),r._.removeFromArray(this.rootNode.allLeafChildren,e),delete this.allNodesMap[e.id])},e.prototype.recursiveFunction=function(e,t,o){var n=this;if("string"!=typeof e){var i=[];return e.forEach((function(e){var r=n.createNode(e,t,o);i.push(r)})),i}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")},e.prototype.createNode=function(e,t,o){var i=new n.RowNode;this.context.wireBean(i);var s=this.gridOptionsWrapper.isTreeData(),a=!s&&r._.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(a&&a.group)i.group=!0,i.childrenAfterGroup=this.recursiveFunction(a.children,i,o+1),i.expanded=!0===a.expanded,i.field=a.field,i.key=a.key,i.canFlower=i.master,this.setLeafChildren(i);else if(i.group=!1,s)i.master=!1,i.expanded=!1;else{this.doesDataFlower?i.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?i.master=this.isRowMasterFunc(e):i.master=!0:i.master=!1;var l=this.columnController.getRowGroupColumns(),p=o+(l?l.length:0);i.expanded=!!i.master&&this.isExpanded(p)}return i.canFlower=i.master,t&&!this.suppressParentsInRowNodes&&(i.parent=t),i.level=o,i.setDataAndId(e,this.nextId.toString()),this.allNodesMap[i.id]&&console.warn("ag-grid: duplicate node id '"+i.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[i.id]=i,this.nextId++,i},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach((function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach((function(t){return e.allLeafChildren.push(t)})):e.allLeafChildren.push(t)}))},e.prototype.isLegacyTreeData=function(){return!!r._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported for legacy tree data. Please see the docs on the new preferred way of providing tree data that works with delta updates."),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}();t.ClientSideNodeManager=s},28921:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(72493),p=o(44329),u=o(10042),d=o(83423),c=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.cacheParams=o,n}return i(t,e),t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.uiLevel=0,this.setIndexAndTopOnRowNode(o,t),o},t.prototype.setDataAndId=function(e,t,o){d._.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,o){e.prototype.setRowNode.call(this,t,o),this.setIndexAndTopOnRowNode(o,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={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()};d._.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):(d._.getFunctionParameters(this.cacheParams.datasource.getRows).length>1&&(console.warn("ag-grid: It looks like your paging datasource is of the old type, taking more than one parameter."),console.warn("ag-grid: From ag-grid 1.9.0, now the getRows takes one parameter. See the documentation for details.")),window.setTimeout((function(){e.cacheParams.datasource.getRows(t)}),0))},r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(p.RowNodeBlock);t.InfiniteBlock=c},30811:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(22131),s=o(83423),a=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return i(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=s._.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&s._.addCssClass(e.ePrevious,"ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;if(s._.missing(t)&&(t=""),t!==this.lastValue)return this.addSlideAnimation(),this.lastValue=t,s._.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:s._.exists(e.value)?this.eCurrent.innerHTML=t:s._.clearElement(this.eCurrent),!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',t}(r.Component);t.AnimateSlideCellRenderer=a},30844:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return null!=t&&null!=t[e]},e.prototype.callMethod=function(e,t){var o=this,n=this.getFrameworkComponentInstance();if(null!=n){var i=this.getFrameworkComponentInstance()[e];if(null==i)return;return i.apply(n,t)}window.setTimeout((function(){return o.callMethod(e,t)}),100)},e.prototype.addMethod=function(e,t){this[e]=t},e}();t.BaseReactComponent=o},30971:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(72493),p=o(60843),u=o(54828),d=o(63405),c=o(86608),h=o(55e3),f=o(45727),g=o(99162),m=o(8534),y=o(65802),v=o(84210),C=o(40797),w=o(44871),E=o(83423),_=o(10042),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,o,n){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.setDatasource(this.gridOptionsWrapper.getDatasource()),this.addDestroyFunc((function(){return e.destroyCache()})))},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,d.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!E._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return f.Constants.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;E._.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),E._.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),E._.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),E._.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return E._.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return E._.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!E._.missing(this.datasource)){E._.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:d.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new v.RowNodeBlockLoader(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new E.NumberSequence},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=0),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new g.InfiniteCache(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(y.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new E.NumberSequence)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight);return t>this.getPageLastRow()?this.getPageLastRow():t}return 0},t.prototype.getPageFirstRow=function(){return 0},t.prototype.getPageLastRow=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount()-1:0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){E._.exists(e.remove)||E._.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):E._.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("filterManager"),s("design:type",h.FilterManager)],t.prototype,"filterManager",void 0),r([l.Autowired("sortController"),s("design:type",c.SortController)],t.prototype,"sortController",void 0),r([l.Autowired("selectionController"),s("design:type",u.SelectionController)],t.prototype,"selectionController",void 0),r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),r([l.Autowired("columnApi"),s("design:type",w.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("rowRenderer"),s("design:type",_.RowRenderer)],t.prototype,"rowRenderer",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),r([l.PreDestroy,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"destroyDatasource",null),r([l.Bean("rowModel")],t)}(m.BeanStub);t.InfiniteRowModel=R},31887:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(814),a=o(74517),l=o(72948),p=o(72493),u=o(83423),d=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,o,n,i){var r,s,a=this,l=[],p=this.mapOldGroupsById(i);return e.forEach((function(e){for(var i=a.getOriginalPathForColumn(t,e),u=[],d=!s,c=0;c<i.length;c++)if(d||i[c]!==s[c]){var h=a.createColumnGroup(i[c],o,p,n);u[c]=h,0==c?l.push(h):u[c-1].addChild(h)}else u[c]=r[c];0===u.length?l.push(e):u[u.length-1].addChild(e),r=u,s=i})),this.setupParentsIntoColumns(l,null),l},e.prototype.createColumnGroup=function(e,t,o,n){var i=e.getGroupId(),r=t.getInstanceIdForKey(i),s=o[a.ColumnGroup.createUniqueId(i,r)];return s&&s.getOriginalColumnGroup()!==e&&(s=null),u._.exists(s)?s.reset():(s=new a.ColumnGroup(e,i,r,n),this.context.wireBean(s)),s},e.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach((function(e){if(e instanceof a.ColumnGroup){var n=e;t[e.getUniqueId()]=n,o(n.getChildren())}}))};return e&&o(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach((function(e){if(e.setParent(t),e instanceof a.ColumnGroup){var n=e;o.setupParentsIntoColumns(n.getChildren(),n)}}))},e.prototype.getOriginalPathForColumn=function(e,t){var o=[],n=!1;return function e(i,r){for(var s=0;s<i.length;s++){if(n)return;var a=i[s];a instanceof l.OriginalColumnGroup?(e(a.getChildren(),r+1),o[r]=a):a===t&&(n=!0)}}(e,0),n?o:(console.warn("could not get path"),null)},n([r.Autowired("columnUtils"),i("design:type",s.ColumnUtils)],e.prototype,"columnUtils",void 0),n([r.Autowired("context"),i("design:type",p.Context)],e.prototype,"context",void 0),n([p.Bean("displayedGroupCreator")],e)}();t.DisplayedGroupCreator=d},31923:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isPopup=function(){return!0},t}(o(84715).SelectCellEditor);t.PopupSelectCellEditor=r},32090:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(47721),p=o(72493),u=o(73575),d=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.postConstruct=function(){this.closePopup=this.popupService.addPopup(!1,this.getGui(),!1,this.destroy.bind(this)),this.addDestroyableEventListener(this.eClose,"click",this.onBtClose.bind(this))},t.prototype.setBody=function(e){this.eContentWrapper.appendChild(e)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.closePopup()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.dispatchEvent({type:t.DESTROY_EVENT})},t.TEMPLATE='<div class="ag-popup-window" style="top: 40px; left: 40px; border: 1px solid black; position: fixed; background-color: white;">\n <div class="ag-popup-window-title-bar" style="background: #00e5ff; border-bottom: 1px solid black;">\n <span ref="eClose" class="ag-popup-window-close" style="margin: 2px; border: 1px solid grey; border-radius: 2px;">X</span>\n <span ref="eTitle" class="ag-popup-window-title" style="padding: 2px;">New Chart</span>\n </div>\n <div ref="eContentWrapper" class="ag-popup-window-content-wrapper"></div>\n </div>',t.DESTROY_EVENT="destroy",r([p.Autowired("popupService"),s("design:type",u.PopupService)],t.prototype,"popupService",void 0),r([l.RefSelector("eContentWrapper"),s("design:type",HTMLElement)],t.prototype,"eContentWrapper",void 0),r([l.RefSelector("eTitle"),s("design:type",HTMLElement)],t.prototype,"eTitle",void 0),r([l.RefSelector("eClose"),s("design:type",HTMLElement)],t.prototype,"eClose",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.PopupWindow=d},32590:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(26016),p=o(38152),u=o(69397),d=o(22131),c=o(47721),h=o(44081),f=o(55090),g=o(81604),m=o(63405),y=o(60843),v=o(93830),C=o(83423),w=o(85910),E=o(40797),_=o(44871),R=o(55e3),O=function(e){function t(o){var n=e.call(this,t.TEMPLATE)||this;return n.column=o,n}return i(t,e),t.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(this.getContext(),new g.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupFloatingFilter=function(){var e=this;this.column.getColDef().filter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then((function(t){t?e.setupWithFloatingFilter(t):e.setupEmpty()})):this.setupEmpty(),this.setupSyncWithFilter()):this.setupEmpty()},t.prototype.setupLeftPositioning=function(){var e=new p.SetLeftFeature(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.setupSyncWithFilter=function(){var e=this,t=function(){var t=e.filterManager.getFilterComponent(e.column,"NO_UI");e.onParentModelChanged(t.resolveNow(null,(function(e){return e.getModel()})))};this.addDestroyableEventListener(this.column,l.Column.EVENT_FILTER_CHANGED,t),this.filterManager.cachedFilter(this.column)&&t()},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},t.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,m.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);C._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,l.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var o=e.getGui();C._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),C._.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),C._.setVisible(this.eButtonWrapper,!this.suppressFilterButton);var n=C._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(n),this.eFloatingFilterBody.appendChild(o),e.afterGuiAttached&&e.afterGuiAttached(),this.wireQuerySelectors()}else t()},t.prototype.getFloatingFilterInstance=function(){var e,o=this,n=this.column.getColDef();"string"==typeof n.filter?e=t.filterToFloatingFilterNames[n.filter]:!0===n.filter&&(e=this.gridOptionsWrapper.isEnterprise()?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");var i={api:this.gridApi,column:this.column,currentParentModel:this.currentParentModel.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!n.floatingFilterComponentParams&&!!n.floatingFilterComponentParams.suppressFilterButton;var r=this.userComponentFactory.newFloatingFilterComponent(n,i,e);if(!r){var s=this.getFilterComponentPrototype(n);if(s&&s.prototype&&s.prototype.getModelAsString){var a=i.currentParentModel;i.currentParentModel=function(){return o.filterManager.getFilterComponent(o.column,"NO_UI").resolveNow(null,(function(e){return e.getModelAsString?e.getModelAsString(a()):null}))};var l=this.userComponentFactory.createUserComponentFromConcreteClass(u.ReadModelAsStringFloatingFilterComp,i);r=C.Promise.resolve(l)}}return r},t.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},t.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},t.prototype.setupEmpty=function(){C._.setVisible(this.eButtonWrapper,!1)},t.prototype.currentParentModel=function(){var e=this.filterManager.getFilterComponent(this.column,"NO_UI").resolveNow(null,(function(e){return e.getNullableModel?e.getNullableModel():e.getModel()}));return e&&null!=e.operator?e.condition1:e},t.prototype.onFloatingFilterChanged=function(e){var t,o=this,n=new C.Promise((function(e){t=e}));return this.filterManager.getFilterComponent(this.column,"NO_UI").then((function(n){if(n.onFloatingFilterChanged){var i=n.onFloatingFilterChanged(e);t(i)}else n.setModel(e),o.filterManager.onFilterChanged(),t(!0)})),n.resolveNow(!0,(function(e){return e}))},t.prototype.onParentModelChanged=function(e){if(this.floatingFilterCompPromise){var t,o;o=e&&e.operator?(t=e).condition1:e,this.floatingFilterCompPromise.then((function(e){e.onParentModelChanged(o,t)}))}},t.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t.TEMPLATE='<div class="ag-header-cell" aria-hidden="true">\n <div ref="eFloatingFilterBody" aria-hidden="true"></div>\n <div class="ag-floating-filter-button" ref="eButtonWrapper" aria-hidden="true">\n <button type="button" ref="eButtonShowMainFilter"></button>\n </div>\n </div>',r([a.Autowired("columnHoverService"),s("design:type",v.ColumnHoverService)],t.prototype,"columnHoverService",void 0),r([a.Autowired("eventService"),s("design:type",y.EventService)],t.prototype,"eventService",void 0),r([a.Autowired("beans"),s("design:type",f.Beans)],t.prototype,"beans",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",h.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([a.Autowired("gridApi"),s("design:type",E.GridApi)],t.prototype,"gridApi",void 0),r([a.Autowired("columnApi"),s("design:type",_.ColumnApi)],t.prototype,"columnApi",void 0),r([a.Autowired("filterManager"),s("design:type",R.FilterManager)],t.prototype,"filterManager",void 0),r([a.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([c.RefSelector("eFloatingFilterBody"),s("design:type",HTMLElement)],t.prototype,"eFloatingFilterBody",void 0),r([c.RefSelector("eButtonWrapper"),s("design:type",HTMLElement)],t.prototype,"eButtonWrapper",void 0),r([c.RefSelector("eButtonShowMainFilter"),s("design:type",HTMLElement)],t.prototype,"eButtonShowMainFilter",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(d.Component);t.FloatingFilterWrapper=O},33467:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var i=o(72493),r=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var o=document.createElement("a"),n=window.URL.createObjectURL(t);o.setAttribute("href",n),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.click(),window.URL.revokeObjectURL(n),document.body.removeChild(o)}},n([i.Bean("downloader")],e)}();t.Downloader=r},34255:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(47721),p=o(13650),u=o(72493),d=o(85910),c=o(83423),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.modelFromFloatingFilter=function(e){return{dateFrom:e,dateTo:this.getDateTo(),type:this.selectedFilter,filterType:"date"}},t.prototype.getApplicableFilterTypes=function(){return[p.BaseFilter.EQUALS,p.BaseFilter.GREATER_THAN,p.BaseFilter.LESS_THAN,p.BaseFilter.NOT_EQUAL,p.BaseFilter.IN_RANGE]},t.prototype.bodyTemplate=function(e){return'<div class="ag-filter-body">\n <div class="ag-filter-date-from" id="'+(e==p.FilterConditionType.MAIN?"filterDateFromPanel":"filterDateFromConditionPanel")+'">\n </div>\n <div class="ag-filter-date-to" id="'+(e==p.FilterConditionType.MAIN?"filterDateToPanel":"filterDateToConditionPanel")+'">\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),this.createComponents(t),t===p.FilterConditionType.MAIN?(this.setDateFrom_date(this.dateFrom,p.FilterConditionType.MAIN),this.setDateTo_date(this.dateTo,p.FilterConditionType.MAIN),this.setFilterType(this.selectedFilter,p.FilterConditionType.MAIN)):(this.setDateFrom_date(this.dateFromCondition,p.FilterConditionType.CONDITION),this.setDateTo_date(this.dateToCondition,p.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,p.FilterConditionType.CONDITION))},t.prototype.createComponents=function(e){var t=this,o={onDateChanged:function(){t.onDateChanged(e)},filterParams:this.filterParams};this.userComponentFactory.newDateComponent(o).then((function(o){e===p.FilterConditionType.MAIN?t.dateToComponent=o:t.dateToConditionComponent=o;var n=o.getGui();e===p.FilterConditionType.MAIN?(t.eDateToPanel.appendChild(n),t.dateToComponent.afterGuiAttached&&t.dateToComponent.afterGuiAttached()):(t.eDateToConditionPanel.appendChild(n),t.dateToConditionComponent.afterGuiAttached&&t.dateToConditionComponent.afterGuiAttached())})),this.userComponentFactory.newDateComponent(o).then((function(o){e===p.FilterConditionType.MAIN?t.dateFromComponent=o:t.dateFromConditionComponent=o;var n=o.getGui();e===p.FilterConditionType.MAIN?(t.eDateFromPanel.appendChild(n),t.dateFromComponent.afterGuiAttached&&t.dateFromComponent.afterGuiAttached()):(t.eDateFromConditionPanel.appendChild(n),t.dateFromConditionComponent.afterGuiAttached&&t.dateFromConditionComponent.afterGuiAttached())}))},t.prototype.onDateChanged=function(e){e===p.FilterConditionType.MAIN?(this.dateFrom=t.removeTimezone(this.dateFromComponent.getDate()),this.dateTo=t.removeTimezone(this.dateToComponent.getDate())):(this.dateFromCondition=t.removeTimezone(this.dateFromComponent.getDate()),this.dateToCondition=t.removeTimezone(this.dateToComponent.getDate())),this.onFilterChanged()},t.prototype.refreshFilterBodyUi=function(e){var t,o;if(e===p.FilterConditionType.MAIN?(t=this.eDateToPanel,o=this.selectedFilter):(t=this.eDateToConditionPanel,o=this.selectedFilterCondition),t){var n=o===p.BaseFilter.IN_RANGE;c._.setVisible(t,n)}var i=e===p.FilterConditionType.MAIN?this.eDateFromPanel:this.eDateFromConditionPanel;if(i){var r=!this.doesFilterHaveHiddenInput(o)&&o!==p.BaseFilter.EMPTY;c._.setVisible(i,r)}},t.prototype.comparator=function(){return this.filterParams.comparator?this.filterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return t<e?-1:t>e?1:null!=t?0:-1},t.prototype.serialize=function(e){var t=e===p.FilterConditionType.MAIN?this.dateToComponent:this.dateToConditionComponent,o=e===p.FilterConditionType.MAIN?this.dateFromComponent:this.dateFromConditionComponent,n=e===p.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition;return{dateTo:c._.serializeDateToYyyyMmDd(t.getDate(),"-"),dateFrom:c._.serializeDateToYyyyMmDd(o.getDate(),"-"),type:n||this.defaultFilter,filterType:"date"}},t.prototype.filterValues=function(e){return e===p.FilterConditionType.MAIN?this.dateFromComponent?this.selectedFilter!==p.BaseFilter.IN_RANGE?this.dateFromComponent.getDate():[this.dateFromComponent.getDate(),this.dateToComponent.getDate()]:null:this.dateFromConditionComponent?this.selectedFilterCondition!==p.BaseFilter.IN_RANGE?this.dateFromConditionComponent.getDate():[this.dateFromConditionComponent.getDate(),this.dateToConditionComponent.getDate()]:null},t.prototype.getDateFrom=function(){return c._.serializeDateToYyyyMmDd(this.dateFromComponent.getDate(),"-")},t.prototype.getDateTo=function(){return c._.serializeDateToYyyyMmDd(this.dateToComponent.getDate(),"-")},t.prototype.getFilterType=function(){return this.selectedFilter},t.prototype.setDateFrom=function(e,t){var o=c._.parseYyyyMmDdToDate(e,"-");this.setDateFrom_date(o,t)},t.prototype.setDateFrom_date=function(e,t){if(t===p.FilterConditionType.MAIN){if(this.dateFrom=e,!this.dateFromComponent)return;this.dateFromComponent.setDate(this.dateFrom)}else{if(this.dateFromCondition=e,!this.dateFromConditionComponent)return;this.dateFromConditionComponent.setDate(this.dateFromCondition)}},t.prototype.setDateTo=function(e,t){var o=c._.parseYyyyMmDdToDate(e,"-");this.setDateTo_date(o,t)},t.prototype.setDateTo_date=function(e,t){if(t===p.FilterConditionType.MAIN){if(this.dateTo=e,!this.dateToComponent)return;this.dateToComponent.setDate(this.dateTo)}else{if(this.dateToCondition=e,!this.dateToConditionComponent)return;this.dateToConditionComponent.setDate(this.dateToCondition)}},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setDateFrom(null,p.FilterConditionType.MAIN),this.setDateTo(null,p.FilterConditionType.MAIN),this.setFilterType(this.defaultFilter,p.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,p.FilterConditionType.CONDITION),this.setDateFrom(null,p.FilterConditionType.CONDITION),this.setDateTo(null,p.FilterConditionType.CONDITION)},t.prototype.parse=function(e,t){this.setDateFrom(e.dateFrom,t),this.setDateTo(e.dateTo,t),this.setFilterType(e.type,t)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.removeTimezone=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate()):null},r([u.Autowired("userComponentFactory"),s("design:type",d.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([l.QuerySelector("#filterDateFromPanel"),s("design:type",HTMLElement)],t.prototype,"eDateFromPanel",void 0),r([l.QuerySelector("#filterDateFromConditionPanel"),s("design:type",HTMLElement)],t.prototype,"eDateFromConditionPanel",void 0),r([l.QuerySelector("#filterDateToPanel"),s("design:type",HTMLElement)],t.prototype,"eDateToPanel",void 0),r([l.QuerySelector("#filterDateToConditionPanel"),s("design:type",HTMLElement)],t.prototype,"eDateToConditionPanel",void 0),t}(p.ScalarBaseFilter);t.DateFilter=h;var f=function(e){function t(){return e.call(this,'<div class="ag-input-text-wrapper"><input class="ag-filter-filter" type="text" placeholder="yyyy-mm-dd"></div>')||this}return i(t,e),t.prototype.init=function(e){this.eDateInput=this.getGui().querySelector("input"),(c._.isBrowserChrome()||e.filterParams.browserDatePicker)&&(c._.isBrowserIE()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.type="date"),this.listener=e.onDateChanged,this.addGuiEventListener("input",this.listener)},t.prototype.getDate=function(){return c._.parseYyyyMmDdToDate(this.eDateInput.value,"-")},t.prototype.setDate=function(e){this.eDateInput.value=c._.serializeDateToYyyyMmDd(e,"-")},t}(a.Component);t.DefaultDateComponent=f},34470:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(60843),l=o(40634),p=o(30811),u=o(15959),d=o(79886),c=o(83423),h=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=p.AnimateSlideCellRenderer,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=u.AnimateShowChangeCellRenderer,this.cellRendererMap[t.GROUP]=d.GroupCellRenderer},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return c._.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("expressionService"),i("design:type",l.ExpressionService)],e.prototype,"expressionService",void 0),n([r.Autowired("eventService"),i("design:type",a.EventService)],e.prototype,"eventService",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),t=n([r.Bean("cellRendererFactory")],e)}();t.CellRendererFactory=h},34506:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(83423),i=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,o,i,r){n._.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,o,i,r)},e.addToolPanelClassesFromColDef=function(e,t,o,i,r){n._.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,o,i,r)},e.addColumnClassesFromCollDef=function(e,t,o,i,r,s){var a;n._.missing(e)||("string"==typeof(a="function"==typeof e?e({colDef:t,column:r,columnGroup:s,context:i.getContext(),api:i.getApi()}):e)?n._.addCssClass(o,a):Array.isArray(a)&&a.forEach((function(e){n._.addCssClass(o,e)})))},e}();t.CssClassApplier=i},34782:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(3976),i=o(83423),r=function(){function e(e){this.rowIndex=e.rowIndex,this.column=e.column,this.floating=i._.makeNull(e.floating)}return e.prototype.getGridCellDef=function(){return{rowIndex:this.rowIndex,column:this.column,floating:this.floating}},e.prototype.getGridRow=function(){return new n.GridRow(this.rowIndex,this.floating)},e.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating+", column = "+(this.column?this.column.getId():null)},e.prototype.createId=function(){return this.rowIndex+"."+this.floating+"."+this.column.getId()},e.prototype.equals=function(e){var t=this.column===e.column,o=this.floating===e.floating,n=this.rowIndex===e.rowIndex;return t&&o&&n},e}();t.GridCell=r},36777:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(71616),a=o(72493),l=o(34255),p=o(25358),u=o(95574),d=o(69397),c=o(79886),h=o(15959),f=o(30811),g=o(99093),m=o(84715),y=o(5448),v=o(31923),C=o(49281),w=o(99104),E=o(92378),_=o(24144),R=o(50298),O=o(75167),b=o(83423);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(r=t.RegisteredComponentSource||(t.RegisteredComponentSource={}));var S=function(){function e(){this.agGridDefaults={agDateInput:l.DefaultDateComponent,agColumnHeader:p.HeaderComp,agColumnGroupHeader:u.HeaderGroupComp,agSetColumnFloatingFilter:d.SetFloatingFilterComp,agTextColumnFloatingFilter:d.TextFloatingFilterComp,agNumberColumnFloatingFilter:d.NumberFloatingFilterComp,agDateColumnFloatingFilter:d.DateFloatingFilterComp,agAnimateShowChangeCellRenderer:h.AnimateShowChangeCellRenderer,agAnimateSlideCellRenderer:f.AnimateSlideCellRenderer,agGroupCellRenderer:c.GroupCellRenderer,agGroupRowRenderer:c.GroupCellRenderer,agLoadingCellRenderer:g.LoadingCellRenderer,agCellEditor:s.TextCellEditor,agTextCellEditor:s.TextCellEditor,agSelectCellEditor:m.SelectCellEditor,agPopupTextCellEditor:y.PopupTextCellEditor,agPopupSelectCellEditor:v.PopupSelectCellEditor,agLargeTextCellEditor:C.LargeTextCellEditor,agTextColumnFilter:w.TextFilter,agNumberColumnFilter:E.NumberFilter,agDateColumnFilter:l.DateFilter,agLoadingOverlay:_.LoadingOverlayComponent,agNoRowsOverlay:R.NoRowsOverlayComponent,agTooltipComponent:O.TooltipComponent},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this,t=this.context.getEnterpriseDefaultComponents();t&&b._.forEach(t,(function(t){e.registerDefaultComponent(t.componentName,t.theClass)})),null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach((function(t){e.registerComponent(t,e.gridOptions.components[t])})),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach((function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])}))},e.prototype.registerDefaultComponent=function(e,t){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=t},e.prototype.registerComponent=function(e,t){var o=this.translateIfDeprecated(e);this.frameworkComponents[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComponents[o]=t},e.prototype.registerFwComponent=function(e,t){var o=this.translateIfDeprecated(e);this.jsComponents[o]?console.error("Trying to register a component that you have already registered for plain javascript: "+o):this.frameworkComponents[o]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:r.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:r.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:r.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(b._.doOnce((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)}),"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},n([a.Autowired("gridOptions"),i("design:type",Object)],e.prototype,"gridOptions",void 0),n([a.Autowired("context"),i("design:type",a.Context)],e.prototype,"context",void 0),n([a.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([a.Bean("userComponentRegistry")],e)}();t.UserComponentRegistry=S},36819:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(58342),s=o(72493),a=o(42195),l=o(44081),p=o(60843),u=o(85222),d=o(45727),c=function(){function e(e,t){this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===r.DragSourceType.RowDrag},e.prototype.getIconName=function(){return r.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_ENTER,e),this.dragAndDropService.setGhostIcon(r.DragAndDropService.ICON_MOVE),e.dragItem.rowNode.setDragging(!0),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.normaliseForScroll(e.y);this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){var o=e.dragItem.rowNode;this.clientSideRowModel.ensureRowAtPixel(o,t)&&(this.focusedCellController.clearFocusedCell(),this.rangeController&&this.rangeController.clearSelection())},e.prototype.normaliseForScroll=function(e){return this.gridOptionsWrapper.getDomLayout()===d.Constants.DOM_LAYOUT_NORMAL?e+this.gridPanel.getVScrollPosition().top:e},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=e<t.top+50,this.needToMoveDown=e>t.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 e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.dispatchEvent=function(e,t){var o,n=this.normaliseForScroll(t.y),i=-1,s=null;switch(n>this.rowModel.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(n),s=this.rowModel.getRow(i)),t.vDirection){case r.VDirection.Down:o="down";break;case r.VDirection.Up:o="up";break;default:o=null}var a={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:t.event,node:t.dragItem.rowNode,overIndex:i,overNode:s,y:n,vDirection:o};this.eventService.dispatchEvent(a)},e.prototype.onDragLeave=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e)},e.prototype.onDragStop=function(e){this.dispatchEvent(u.Events.EVENT_ROW_DRAG_END,e),this.stopDragging(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),e.dragItem.rowNode.setDragging(!1)},n([s.Autowired("dragAndDropService"),i("design:type",r.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([s.Autowired("rowModel"),i("design:type",Object)],e.prototype,"rowModel",void 0),n([s.Autowired("focusedCellController"),i("design:type",a.FocusedCellController)],e.prototype,"focusedCellController",void 0),n([s.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Optional("rangeController"),i("design:type",Object)],e.prototype,"rangeController",void 0),n([s.Autowired("eventService"),i("design:type",p.EventService)],e.prototype,"eventService",void 0),n([s.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowDragFeature=c},37132:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(44081),a=o(72493),l=o(72493),p=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new u(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},n([r(0,l.Qualifier("gridOptionsWrapper")),i("design:type",Function),i("design:paramtypes",[s.GridOptionsWrapper]),i("design:returntype",void 0)],e.prototype,"setBeans",null),n([a.Bean("loggerFactory")],e)}();t.LoggerFactory=p;var u=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}();t.Logger=u},37789:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes","rowClassRules","detailGridOptions","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","reduxStore","statusBar","sideBar"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize","batchUpdateWaitMillis","blockLoadDebounceMillis"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","toolPanelSuppressSideButtons","toolPanelSuppressColumnFilter","toolPanelSuppressColumnSelectAll","toolPanelSuppressColumnExpandAll","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","debug","enableBrowserTooltips","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","copyHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragManaged","suppressRowDrag","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","contractColumnSelection","suppressEnterpriseResetOnNewColumns","enableOldSetFilterModel","suppressRowHoverHighlight","gridAutoHeight","suppressRowTransform","suppressClipboardPaste","serverSideSortingAlwaysResets","reactNext","suppressSetColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering"],e.FUNCTION_PROPERTIES=["localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getRowClassRules","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","getDetailRowData","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","onGridReady","defaultGroupSortComparator","isRowMaster","isRowSelectable","postSort","processHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.PropertyKeys=o},38152:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(26016),s=o(8534),a=o(45727),l=o(83423),p=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r.columnOrGroup=t,r.eCell=o,r.colsSpanning=i,r.beans=n,r.printLayout=n.gridOptionsWrapper.getDomLayout()===a.Constants.DOM_LAYOUT_PRINT,r}return i(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?this.colsSpanning[this.colsSpanning.length-1]:this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,r.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=l._.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),o=this.getColumnOrGroup().getOldLeft();this.setLeft(o),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===t&&e.setLeft(t)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===r.Column.PINNED_LEFT?t:e.getPinned()===r.Column.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){l._.exists(e)&&(this.eCell.style.left=e+"px")},t}(s.BeanStub);t.SetLeftFeature=p},38427:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(45727),a=o(98239),l=o(3976),p=o(34782),u=o(44081),d=o(50580),c=o(83423),h=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var o=t,n=!1;!n;){switch(e){case s.Constants.KEY_UP:o=this.getCellAbove(o);break;case s.Constants.KEY_DOWN:o=this.getCellBelow(o);break;case s.Constants.KEY_RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case s.Constants.KEY_LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("ag-Grid: unknown key for navigation "+e)}n=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.floating){case s.Constants.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case s.Constants.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!o.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);if(t){var o={rowIndex:e.rowIndex,column:t,floating:e.floating};return new p.GridCell(o)}return null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);if(t){var o={rowIndex:e.rowIndex,column:t,floating:e.floating};return new p.GridCell(o)}return null},e.prototype.getRowBelow=function(e){return this.isLastRowInContainer(e)?e.isFloatingBottom()?null:e.isNotFloating()?this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?new l.GridRow(0,s.Constants.PINNED_BOTTOM):null:this.rowModel.isRowsToRender()?new l.GridRow(0,null):this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?new l.GridRow(0,s.Constants.PINNED_BOTTOM):null:new l.GridRow(e.rowIndex+1,e.floating)},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e.getGridRow());if(t){var o={rowIndex:t.rowIndex,column:e.column,floating:t.floating};return new p.GridCell(o)}return null},e.prototype.isLastRowInContainer=function(e){return e.isFloatingTop()?this.pinnedRowModel.getPinnedTopRowData().length-1<=e.rowIndex:e.isFloatingBottom()?this.pinnedRowModel.getPinnedBottomRowData().length-1<=e.rowIndex:this.rowModel.getPageLastRow()<=e.rowIndex},e.prototype.getRowAbove=function(e){return 0===e.rowIndex?e.isFloatingTop()?null:e.isNotFloating()?this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:new l.GridRow(e.rowIndex-1,e.floating)},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove(e.getGridRow());if(t){var o={rowIndex:t.rowIndex,column:e.column,floating:t.floating};return new p.GridCell(o)}return null},e.prototype.getLastBodyCell=function(){var e=this.rowModel.getPageLastRow();return new l.GridRow(e,null)},e.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return new l.GridRow(e,s.Constants.PINNED_TOP)},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,n=e.floating,i=this.columnController.getDisplayedColAfter(e.column);if(!i){i=t[0];var r=this.getRowBelow(e.getGridRow());if(c._.missing(r))return null;o=r?r.rowIndex:null,n=r?r.floating:null}var s={rowIndex:o,column:i,floating:n};return new p.GridCell(s)},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,n=e.floating,i=this.columnController.getDisplayedColBefore(e.column);if(!i){i=t[t.length-1];var r=this.getRowAbove(e.getGridRow());if(c._.missing(r))return null;o=r?r.rowIndex:null,n=r?r.floating:null}var s={rowIndex:o,column:i,floating:n};return new p.GridCell(s)},n([r.Autowired("columnController"),i("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("rowModel"),i("design:type",Object)],e.prototype,"rowModel",void 0),n([r.Autowired("pinnedRowModel"),i("design:type",d.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Bean("cellNavigationService")],e)}();t.CellNavigationService=h},38848:(e,t,o)=>{o.d(t,{$C:()=>P,$b:()=>k,Ds:()=>Ie,G1:()=>F,GU:()=>Se,ID:()=>ye,N8:()=>Re,R:()=>W,W:()=>O,WZ:()=>x,Z9:()=>m,ZZ:()=>_e,_Z:()=>Oe,ae:()=>Le,cS:()=>b,cV:()=>Fe,cb:()=>u,e1:()=>c,hK:()=>S,hd:()=>De,jN:()=>we,k5:()=>Ee,m2:()=>p,mD:()=>Ce,nV:()=>R,n_:()=>y,o8:()=>xe,qs:()=>H,qx:()=>L,sl:()=>Ne,u1:()=>A,wA:()=>Te,x3:()=>V,z6:()=>Ae,zf:()=>T});var n=o(12240),i=o(67299),r=o(21935),s=o(84340),a=o(29744),l=o(65994).process;function p(...e){return e.reduce(((e,t)=>({...e,...null!=t?t:{}})),{})}async function u(e,t){if(null==e)return Promise.resolve();const o=null==t?void 0:t.abortSignal;return new Promise(((t,n)=>{if(null==o?void 0:o.aborted)return void n(d());const i=setTimeout((()=>{r(),t()}),e),r=()=>{clearTimeout(i),null==o||o.removeEventListener("abort",s)},s=()=>{r(),n(d())};null==o||o.addEventListener("abort",s)}))}function d(){return new DOMException("Delay was aborted","AbortError")}var c=class{constructor(){this.status={type:"pending"},this._resolve=void 0,this._reject=void 0}get promise(){return this._promise||(this._promise=new Promise(((e,t)=>{"resolved"===this.status.type?e(this.status.value):"rejected"===this.status.type&&t(this.status.error),this._resolve=e,this._reject=t}))),this._promise}resolve(e){var t;this.status={type:"resolved",value:e},this._promise&&(null==(t=this._resolve)||t.call(this,e))}reject(e){var t;this.status={type:"rejected",error:e},this._promise&&(null==(t=this._reject)||t.call(this,e))}isResolved(){return"resolved"===this.status.type}isRejected(){return"rejected"===this.status.type}isPending(){return"pending"===this.status.type}};function h(e){return Object.fromEntries([...e.headers])}var{btoa:f,atob:g}=globalThis;function m(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),o=g(t);return Uint8Array.from(o,(e=>e.codePointAt(0)))}function y(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCodePoint(e[o]);return f(t)}var v,C,w="AI_DownloadError",E=`vercel.ai.error.${w}`,_=Symbol.for(E),R=class extends(C=n.bD,v=_,C){constructor({url:e,statusCode:t,statusText:o,cause:n,message:i=(null==n?`Failed to download ${e}: ${t} ${o}`:`Failed to download ${e}: ${n}`)}){super({name:w,message:i,cause:n}),this[v]=!0,this.url=e,this.statusCode=t,this.statusText=o}static isInstance(e){return n.bD.hasMarker(e,E)}},O=2147483648;async function b({response:e,url:t,maxBytes:o=O}){const n=e.headers.get("content-length");if(null!=n){const e=parseInt(n,10);if(!isNaN(e)&&e>o)throw new R({url:t,message:`Download of ${t} exceeded maximum size of ${o} bytes (Content-Length: ${e}).`})}const i=e.body;if(null==i)return new Uint8Array(0);const r=i.getReader(),s=[];let a=0;try{for(;;){const{done:e,value:n}=await r.read();if(e)break;if(a+=n.length,a>o)throw new R({url:t,message:`Download of ${t} exceeded maximum size of ${o} bytes.`});s.push(n)}}finally{try{await r.cancel()}finally{r.releaseLock()}}const l=new Uint8Array(a);let p=0;for(const e of s)l.set(e,p),p+=e.length;return l}var S=({prefix:e,size:t=16,alphabet:o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const r=()=>{const e=o.length,n=new Array(t);for(let i=0;i<t;i++)n[i]=o[Math.random()*e|0];return n.join("")};if(null==e)return r;if(o.includes(i))throw new n.Di({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${o}".`});return()=>`${e}${i}${r()}`},P=S();function A(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}function T(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var D=["fetch failed","failed to fetch"],N=["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE"];function I({error:e,url:t,requestBodyValues:o}){if(T(e))return e;if(e instanceof TypeError&&D.includes(e.message.toLowerCase())){const i=e.cause;if(null!=i)return new n.hL({message:`Cannot connect to API: ${i.message}`,cause:i,url:t,requestBodyValues:o,isRetryable:!0})}return function(e){if(!(e instanceof Error))return!1;const t=e.code;return!("string"!=typeof t||!N.includes(t))}(e)?new n.hL({message:`Cannot connect to API: ${e.message}`,cause:e,url:t,requestBodyValues:o,isRetryable:!0}):e}function F(e=globalThis){var t,o,n;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(n=null==(o=e.process)?void 0:o.versions)?void 0:n.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function L(e){if(null==e)return{};const t={};if(e instanceof Headers)e.forEach(((e,o)=>{t[o.toLowerCase()]=e}));else{Array.isArray(e)||(e=Object.entries(e));for(const[o,n]of e)null!=n&&(t[o.toLowerCase()]=n)}return t}function x(e,...t){const o=new Headers(L(e)),n=o.get("user-agent")||"";return o.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(o.entries())}var M="4.0.15",G=()=>globalThis.fetch,k=async({url:e,headers:t={},successfulResponseHandler:o,failedResponseHandler:i,abortSignal:r,fetch:s=G()})=>{try{const a=await s(e,{method:"GET",headers:x(t,`ai-sdk/provider-utils/${M}`,F()),signal:r}),l=h(a);if(!a.ok){let t;try{t=await i({response:a,url:e,requestBodyValues:{}})}catch(t){if(T(t)||n.hL.isInstance(t))throw t;throw new n.hL({message:"Failed to process error response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:{}})}throw t.value}try{return await o({response:a,url:e,requestBodyValues:{}})}catch(t){if(t instanceof Error&&(T(t)||n.hL.isInstance(t)))throw t;throw new n.hL({message:"Failed to process successful response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:{}})}}catch(t){throw I({error:t,url:e,requestBodyValues:{}})}};function W(e){return null!=e}function H({mediaType:e,url:t,supportedUrls:o}){return t=t.toLowerCase(),e=e.toLowerCase(),Object.entries(o).map((([e,t])=>{const o=e.toLowerCase();return"*"===o||"*/*"===o?{mediaTypePrefix:"",regexes:t}:{mediaTypePrefix:o.replace(/\*/,""),regexes:t}})).filter((({mediaTypePrefix:t})=>e.startsWith(t))).flatMap((({regexes:e})=>e)).some((e=>e.test(t)))}function V({settingValue:e,environmentVariableName:t}){return"string"==typeof e||null==e&&void 0!==l&&null!=(e=l.env[t])&&"string"==typeof e?e:void 0}var j=/"__proto__"\s*:/,B=/"constructor"\s*:/;function Y(e){const t=JSON.parse(e);return null===t||"object"!=typeof t||!1===j.test(e)&&!1===B.test(e)?t:function(e){let t=[e];for(;t.length;){const e=t;t=[];for(const o of e){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const e in o){const n=o[e];n&&"object"==typeof n&&t.push(n)}}}return e}(t)}function U(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return Y(e)}try{return Y(e)}finally{Error.stackTraceLimit=t}}function z(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;const{properties:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=q(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(q):q(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(q)),null!=e.allOf&&(e.allOf=e.allOf.map(q)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(q));const{definitions:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=q(t[e]);return e}function q(e){return"boolean"==typeof e?e:z(e)}var K=Symbol("Let zodToJsonSchema decide on which parser to use"),$={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function Z(e,t){return ce(e.type._def,t)}function Q(e,t,o){const n=null!=o?o:t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map(((o,n)=>Q(e,t,o)))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return X(e)}}var X=e=>{const t={type:"integer",format:"unix-time"};for(const o of e.checks)switch(o.kind){case"min":t.minimum=o.value;break;case"max":t.maximum=o.value}return t},J=void 0,ee={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===J&&(J=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),J),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function te(e,t){const o={type:"string"};if(e.checks)for(const n of e.checks)switch(n.kind){case"min":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,n.value):n.value;break;case"max":o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":ie(o,"email",n.message,t);break;case"format:idn-email":ie(o,"idn-email",n.message,t);break;case"pattern:zod":re(o,ee.email,n.message,t)}break;case"url":ie(o,"uri",n.message,t);break;case"uuid":ie(o,"uuid",n.message,t);break;case"regex":re(o,n.regex,n.message,t);break;case"cuid":re(o,ee.cuid,n.message,t);break;case"cuid2":re(o,ee.cuid2,n.message,t);break;case"startsWith":re(o,RegExp(`^${oe(n.value,t)}`),n.message,t);break;case"endsWith":re(o,RegExp(`${oe(n.value,t)}$`),n.message,t);break;case"datetime":ie(o,"date-time",n.message,t);break;case"date":ie(o,"date",n.message,t);break;case"time":ie(o,"time",n.message,t);break;case"duration":ie(o,"duration",n.message,t);break;case"length":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,n.value):n.value,o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,n.value):n.value;break;case"includes":re(o,RegExp(oe(n.value,t)),n.message,t);break;case"ip":"v6"!==n.version&&ie(o,"ipv4",n.message,t),"v4"!==n.version&&ie(o,"ipv6",n.message,t);break;case"base64url":re(o,ee.base64url,n.message,t);break;case"jwt":re(o,ee.jwt,n.message,t);break;case"cidr":"v6"!==n.version&&re(o,ee.ipv4Cidr,n.message,t),"v4"!==n.version&&re(o,ee.ipv6Cidr,n.message,t);break;case"emoji":re(o,ee.emoji(),n.message,t);break;case"ulid":re(o,ee.ulid,n.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":ie(o,"binary",n.message,t);break;case"contentEncoding:base64":o.contentEncoding="base64";break;case"pattern:zod":re(o,ee.base64,n.message,t)}break;case"nanoid":re(o,ee.nanoid,n.message,t)}return o}function oe(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let o=0;o<e.length;o++)ne.has(e[o])||(t+="\\"),t+=e[o];return t}(e):e}var ne=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ie(e,t,o,n){var i;e.format||(null==(i=e.anyOf)?void 0:i.some((e=>e.format)))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...o&&n.errorMessages&&{errorMessage:{format:o}}})):e.format=t}function re(e,t,o,n){var i;e.pattern||(null==(i=e.allOf)?void 0:i.some((e=>e.pattern)))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:se(t,n),...o&&n.errorMessages&&{errorMessage:{pattern:o}}})):e.pattern=se(t,n)}function se(e,t){var o;if(!t.applyRegexFlags||!e.flags)return e.source;const n=e.flags.includes("i"),i=e.flags.includes("m"),r=e.flags.includes("s"),s=n?e.source.toLowerCase():e.source;let a="",l=!1,p=!1,u=!1;for(let e=0;e<s.length;e++)if(l)a+=s[e],l=!1;else{if(n)if(p){if(s[e].match(/[a-z]/)){u?(a+=s[e],a+=`${s[e-2]}-${s[e]}`.toUpperCase(),u=!1):"-"===s[e+1]&&(null==(o=s[e+2])?void 0:o.match(/[a-z]/))?(a+=s[e],u=!0):a+=`${s[e]}${s[e].toUpperCase()}`;continue}}else if(s[e].match(/[a-z]/)){a+=`[${s[e]}${s[e].toUpperCase()}]`;continue}if(i){if("^"===s[e]){a+="(^|(?<=[\r\n]))";continue}if("$"===s[e]){a+="($|(?=[\r\n]))";continue}}r&&"."===s[e]?a+=p?`${s[e]}\r\n`:`[${s[e]}\r\n]`:(a+=s[e],"\\"===s[e]?l=!0:p&&"]"===s[e]?p=!1:p||"["!==s[e]||(p=!0))}try{new RegExp(a)}catch(o){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function ae(e,t){var o,n,i,r,a,l;const p={type:"object",additionalProperties:null!=(o=ce(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?o:t.allowedAdditionalProperties};if((null==(n=e.keyType)?void 0:n._def.typeName)===s.kY.ZodString&&(null==(i=e.keyType._def.checks)?void 0:i.length)){const{type:o,...n}=te(e.keyType._def,t);return{...p,propertyNames:n}}if((null==(r=e.keyType)?void 0:r._def.typeName)===s.kY.ZodEnum)return{...p,propertyNames:{enum:e.keyType._def.values}};if((null==(a=e.keyType)?void 0:a._def.typeName)===s.kY.ZodBranded&&e.keyType._def.type._def.typeName===s.kY.ZodString&&(null==(l=e.keyType._def.type._def.checks)?void 0:l.length)){const{type:o,...n}=Z(e.keyType._def,t);return{...p,propertyNames:n}}return p}var le={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function pe(e){try{return e.isOptional()}catch(e){return!0}}var ue=(e,t,o)=>{switch(t){case s.kY.ZodString:return te(e,o);case s.kY.ZodNumber:return function(e){const t={type:"number"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"int":t.type="integer";break;case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case s.kY.ZodObject:return function(e,t){const o={type:"object",properties:{}},n=[],i=e.shape();for(const e in i){let r=i[e];if(void 0===r||void 0===r._def)continue;const s=pe(r),a=ce(r._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==a&&(o.properties[e]=a,s||n.push(e))}n.length&&(o.required=n);const r=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return ce(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==r&&(o.additionalProperties=r),o}(e,o);case s.kY.ZodBigInt:return function(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case s.kY.ZodBoolean:return{type:"boolean"};case s.kY.ZodDate:return Q(e,o);case s.kY.ZodUndefined:return{not:{}};case s.kY.ZodNull:return{type:"null"};case s.kY.ZodArray:return function(e,t){var o,n,i;const r={type:"array"};return(null==(o=e.type)?void 0:o._def)&&(null==(i=null==(n=e.type)?void 0:n._def)?void 0:i.typeName)!==s.kY.ZodAny&&(r.items=ce(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(r.minItems=e.minLength.value),e.maxLength&&(r.maxItems=e.maxLength.value),e.exactLength&&(r.minItems=e.exactLength.value,r.maxItems=e.exactLength.value),r}(e,o);case s.kY.ZodUnion:case s.kY.ZodDiscriminatedUnion:return function(e,t){const o=e.options instanceof Map?Array.from(e.options.values()):e.options;if(o.every((e=>e._def.typeName in le&&(!e._def.checks||!e._def.checks.length)))){const e=o.reduce(((e,t)=>{const o=le[t._def.typeName];return o&&!e.includes(o)?[...e,o]:e}),[]);return{type:e.length>1?e:e[0]}}if(o.every((e=>"ZodLiteral"===e._def.typeName&&!e.description))){const e=o.reduce(((e,t)=>{const o=typeof t._def.value;switch(o){case"string":case"number":case"boolean":return[...e,o];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===o.length){const t=e.filter(((e,t,o)=>o.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:o.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(o.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:o.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return((e,t)=>{const o=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,o)=>ce(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${o}`]}))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return o.length?{anyOf:o}:void 0})(e,t)}(e,o);case s.kY.ZodIntersection:return function(e,t){const o=[ce(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),ce(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter((e=>!!e)),n=[];return o.forEach((e=>{if("type"in(t=e)&&"string"===t.type||!("allOf"in t)){let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){const{additionalProperties:o,...n}=e;t=n}n.push(t)}else n.push(...e.allOf);var t})),n.length?{allOf:n}:void 0}(e,o);case s.kY.ZodTuple:return function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,o)=>ce(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:ce(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,o)=>ce(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}(e,o);case s.kY.ZodRecord:return ae(e,o);case s.kY.ZodLiteral:return function(e){const t=typeof e.value;return"bigint"!==t&&"number"!==t&&"boolean"!==t&&"string"!==t?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===t?"integer":t,const:e.value}}(e);case s.kY.ZodEnum:return function(e){return{type:"string",enum:Array.from(e.values)}}(e);case s.kY.ZodNativeEnum:return function(e){const t=e.values,o=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),n=Array.from(new Set(o.map((e=>typeof e))));return{type:1===n.length?"string"===n[0]?"string":"number":["string","number"],enum:o}}(e);case s.kY.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[le[e.innerType._def.typeName],"null"]};const o=ce(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return o&&{anyOf:[o,{type:"null"}]}}(e,o);case s.kY.ZodOptional:return((e,t)=>{var o;if(t.currentPath.toString()===(null==(o=t.propertyPath)?void 0:o.toString()))return ce(e.innerType._def,t);const n=ce(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:{}},n]}:{}})(e,o);case s.kY.ZodMap:return function(e,t){return"record"===t.mapStrategy?ae(e,t):{type:"array",maxItems:125,items:{type:"array",items:[ce(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},ce(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}(e,o);case s.kY.ZodSet:return function(e,t){const o={type:"array",uniqueItems:!0,items:ce(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}(e,o);case s.kY.ZodLazy:return()=>e.getter()._def;case s.kY.ZodPromise:return function(e,t){return ce(e.type._def,t)}(e,o);case s.kY.ZodNaN:case s.kY.ZodNever:return{not:{}};case s.kY.ZodEffects:return function(e,t){return"input"===t.effectStrategy?ce(e.schema._def,t):{}}(e,o);case s.kY.ZodAny:case s.kY.ZodUnknown:return{};case s.kY.ZodDefault:return function(e,t){return{...ce(e.innerType._def,t),default:e.defaultValue()}}(e,o);case s.kY.ZodBranded:return Z(e,o);case s.kY.ZodReadonly:case s.kY.ZodCatch:return((e,t)=>ce(e.innerType._def,t))(e,o);case s.kY.ZodPipeline:return((e,t)=>{if("input"===t.pipeStrategy)return ce(e.in._def,t);if("output"===t.pipeStrategy)return ce(e.out._def,t);const o=ce(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]});return{allOf:[o,ce(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",o?"1":"0"]})].filter((e=>void 0!==e))}})(e,o);case s.kY.ZodFunction:case s.kY.ZodVoid:case s.kY.ZodSymbol:default:return}},de=(e,t)=>{let o=0;for(;o<e.length&&o<t.length&&e[o]===t[o];o++);return[(e.length-o).toString(),...t.slice(o)].join("/")};function ce(e,t,o=!1){var n;const i=t.seen.get(e);if(t.override){const r=null==(n=t.override)?void 0:n.call(t,e,t,i,o);if(r!==K)return r}if(i&&!o){const e=he(i,t);if(void 0!==e)return e}const r={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,r);const s=ue(e,e.typeName,t),a="function"==typeof s?ce(s(),t):s;if(a&&fe(e,t,a),t.postProcess){const o=t.postProcess(a,e,t);return r.jsonSchema=a,o}return r.jsonSchema=a,a}var he=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:de(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(((e,o)=>t.currentPath[o]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):"seen"===t.$refStrategy?{}:void 0}},fe=(e,t,o)=>(e.description&&(o.description=e.description),o),ge=(e,t)=>{var o;const n=(e=>{const t=(e=>"string"==typeof e?{...$,name:e}:{...$,...e})(e),o=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:o,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map((([e,o])=>[o._def,{def:o._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}])))}})(t);let i="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,o])=>{var i;return{...e,[t]:null!=(i=ce(o._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0))?i:{}}}),{}):void 0;const r="string"==typeof t?t:"title"===(null==t?void 0:t.nameStrategy)||null==t?void 0:t.name,s=null!=(o=ce(e._def,void 0===r?n:{...n,currentPath:[...n.basePath,n.definitionPath,r]},!1))?o:{},a="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==a&&(s.title=a);const l=void 0===r?i?{...s,[n.definitionPath]:i}:s:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,r].join("/"),[n.definitionPath]:{...i,[r]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l},me=Symbol.for("vercel.ai.schema");function ye(e){let t;return()=>(null==t&&(t=e()),t)}function ve(e,{validate:t}={}){return{[me]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function Ce(e){return null==e?ve({properties:{},additionalProperties:!1}):"object"==typeof(o=e)&&null!==o&&me in o&&!0===o[me]&&"jsonSchema"in o&&"validate"in o?e:"~standard"in e?"zod"===e["~standard"].vendor?we(e):(t=e,ve((()=>z(t["~standard"].jsonSchema.input({target:"draft-07"}))),{validate:async e=>{const o=await t["~standard"].validate(e);return"value"in o?{success:!0,value:o.value}:{success:!1,error:new n.iM({value:e,cause:o.issues})}}})):e();var t,o}function we(e,t){return function(e){return"_zod"in e}(e)?function(e,t){var o;const n=null!=(o=null==t?void 0:t.useReferences)&&o;return ve((()=>z(r.b(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"}))),{validate:async t=>{const o=await i.bp(e,t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t):function(e,t){var o;const n=null!=(o=null==t?void 0:t.useReferences)&&o;return ve((()=>ge(e,{$refStrategy:n?"root":"none"})),{validate:async t=>{const o=await e.safeParseAsync(t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t)}async function Ee({value:e,schema:t,context:o}){const i=await _e({value:e,schema:t,context:o});if(!i.success)throw n.iM.wrap({value:e,cause:i.error,context:o});return i.value}async function _e({value:e,schema:t,context:o}){const i=Ce(t);try{if(null==i.validate)return{success:!0,value:e,rawValue:e};const t=await i.validate(e);return t.success?{success:!0,value:t.value,rawValue:e}:{success:!1,error:n.iM.wrap({value:e,cause:t.error,context:o}),rawValue:e}}catch(t){return{success:!1,error:n.iM.wrap({value:e,cause:t,context:o}),rawValue:e}}}async function Re({text:e,schema:t}){try{const o=U(e);return null==t?{success:!0,value:o,rawValue:o}:await _e({value:o,schema:t})}catch(t){return{success:!1,error:n.u6.isInstance(t)?t:new n.u6({text:e,cause:t}),rawValue:void 0}}}function Oe({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new a.Z).pipeThrough(new TransformStream({async transform({data:e},o){"[DONE]"!==e&&o.enqueue(await Re({text:e,schema:t}))}}))}var be=()=>globalThis.fetch,Se=async({url:e,headers:t,body:o,failedResponseHandler:n,successfulResponseHandler:i,abortSignal:r,fetch:s})=>Pe({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(o),values:o},failedResponseHandler:n,successfulResponseHandler:i,abortSignal:r,fetch:s}),Pe=async({url:e,headers:t={},body:o,successfulResponseHandler:i,failedResponseHandler:r,abortSignal:s,fetch:a=be()})=>{try{const l=await a(e,{method:"POST",headers:x(t,`ai-sdk/provider-utils/${M}`,F()),body:o.content,signal:s}),p=h(l);if(!l.ok){let t;try{t=await r({response:l,url:e,requestBodyValues:o.values})}catch(t){if(T(t)||n.hL.isInstance(t))throw t;throw new n.hL({message:"Failed to process error response",cause:t,statusCode:l.status,url:e,responseHeaders:p,requestBodyValues:o.values})}throw t.value}try{return await i({response:l,url:e,requestBodyValues:o.values})}catch(t){if(t instanceof Error&&(T(t)||n.hL.isInstance(t)))throw t;throw new n.hL({message:"Failed to process successful response",cause:t,statusCode:l.status,url:e,responseHeaders:p,requestBodyValues:o.values})}}catch(t){throw I({error:t,url:e,requestBodyValues:o.values})}};function Ae(e){return e}function Te({id:e,inputSchema:t,outputSchema:o,supportsDeferredResults:n}){return({execute:i,needsApproval:r,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,...u})=>({type:"provider",id:e,args:u,inputSchema:t,outputSchema:o,execute:i,needsApproval:r,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,supportsDeferredResults:n})}async function De(e){return"function"==typeof e&&(e=e()),Promise.resolve(e)}var Ne=({errorSchema:e,errorToMessage:t,isRetryable:o})=>async({response:i,url:r,requestBodyValues:s})=>{const a=await i.text(),l=h(i);if(""===a.trim())return{responseHeaders:l,value:new n.hL({message:i.statusText,url:r,requestBodyValues:s,statusCode:i.status,responseHeaders:l,responseBody:a,isRetryable:null==o?void 0:o(i)})};try{const p=await async function({text:e,schema:t}){try{const o=U(e);return null==t?o:Ee({value:o,schema:t})}catch(t){if(n.u6.isInstance(t)||n.iM.isInstance(t))throw t;throw new n.u6({text:e,cause:t})}}({text:a,schema:e});return{responseHeaders:l,value:new n.hL({message:t(p),url:r,requestBodyValues:s,statusCode:i.status,responseHeaders:l,responseBody:a,data:p,isRetryable:null==o?void 0:o(i,p)})}}catch(e){return{responseHeaders:l,value:new n.hL({message:i.statusText,url:r,requestBodyValues:s,statusCode:i.status,responseHeaders:l,responseBody:a,isRetryable:null==o?void 0:o(i)})}}},Ie=e=>async({response:t})=>{const o=h(t);if(null==t.body)throw new n.Tt({});return{responseHeaders:o,value:Oe({stream:t.body,schema:e})}},Fe=e=>async({response:t,url:o,requestBodyValues:i})=>{const r=await t.text(),s=await Re({text:r,schema:e}),a=h(t);if(!s.success)throw new n.hL({message:"Invalid JSON response",cause:s.error,statusCode:t.status,responseHeaders:a,responseBody:r,url:o,requestBodyValues:i});return{responseHeaders:a,value:s.value,rawValue:s.rawValue}};function Le(e){return null==e?void 0:e.replace(/\/$/,"")}async function*xe({execute:e,input:t,options:o}){const n=e(t,o);if(null!=(i=n)&&"function"==typeof i[Symbol.asyncIterator]){let e;for await(const t of n)e=t,yield{type:"preliminary",output:t};yield{type:"final",output:e}}else yield{type:"final",output:await n};var i}},39984:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(73575),a=o(85910),l=o(44081),p=o(44871),u=o(40797),d=o(83423),c=function(){function e(){this.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT=1e3,this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT=2e3,this.HIDE_SHOW_ONLY=!0,this.showTimeoutId=0,this.hideTimeoutId=0,this.registeredComponents={}}return e.prototype.registerTooltip=function(e){var t=this,o=e.getGui(),n=e.getCompId();e.addDestroyableEventListener(o,"mouseover",(function(o){return t.processMouseOver(o,e)})),e.addDestroyableEventListener(o,"mousemove",(function(e){return t.processMouseMove(e)})),e.addDestroyableEventListener(o,"mousedown",this.hideTooltip.bind(this)),e.addDestroyableEventListener(o,"mouseout",this.processMouseOut.bind(this)),this.registeredComponents[n]={tooltipComp:void 0,destroyFunc:void 0},e.addDestroyFunc((function(){return t.unregisterTooltip(e)}))},e.prototype.unregisterTooltip=function(e){var t=e.getCompId();this.activeComponent===e&&this.hideTooltip(),delete this.registeredComponents[t]},e.prototype.processMouseOver=function(e,t){var o=this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT;if(this.activeComponent){if(this.lastHoveredComponent===this.activeComponent)return;o=200}else if(this.showTimeoutId&&this.lastHoveredComponent===t)return;this.clearTimers(this.HIDE_SHOW_ONLY),this.lastHoveredComponent!==t&&(this.lastHoveredComponent=t,this.lastMouseEvent=e,this.showTimeoutId=window.setTimeout(this.showTooltip.bind(this),o,e))},e.prototype.processMouseOut=function(e){var t=this.activeComponent,o=e.relatedTarget;if(t){if(!t.getGui().contains(o)){var n=this.registeredComponents[t.getCompId()];d._.addCssClass(n.tooltipComp.getGui(),"ag-tooltip-hiding"),this.lastHoveredComponent=void 0,this.clearTimers(),this.hideTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT)}}else{if(this.lastHoveredComponent){var i=this.lastHoveredComponent.getGui().contains(o);if(this.showTimeoutId&&i)return;i||(this.lastHoveredComponent=void 0)}this.clearTimers()}},e.prototype.processMouseMove=function(e){this.lastMouseEvent=e},e.prototype.showTooltip=function(e){var t=this.lastHoveredComponent,o=t,n=this.registeredComponents[t.getCompId()];this.hideTooltip();var i={api:this.gridApi,columnApi:this.columnApi,colDef:t.getComponentHolder(),column:o.getColumn&&o.getColumn(),context:this.gridOptionsWrapper.getContext(),rowIndex:o.getGridCell&&o.getGridCell().rowIndex,value:t.getTooltipText()};this.createTooltipComponent(i,n,e)},e.prototype.createTooltipComponent=function(e,t,o){var n=this;this.userComponentFactory.newTooltipComponent(e).then((function(e){if(t){t.tooltipComp=e;var o=e.getGui(),i=n.popupService.addPopup(!1,o,!1);t.destroyFunc=function(){i(),e.destroy&&e.destroy()},n.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:n.lastMouseEvent,ePopup:o,nudgeY:18}),n.activeComponent=n.lastHoveredComponent,n.hideTimeoutId=window.setTimeout(n.hideTooltip.bind(n),n.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}}))},e.prototype.hideTooltip=function(){var e=this.activeComponent;if(this.clearTimers(),e){var t=e.getCompId(),o=this.registeredComponents[t];this.activeComponent=void 0,o&&(o.destroyFunc&&o.destroyFunc(),this.clearRegisteredComponent(o))}},e.prototype.clearRegisteredComponent=function(e){delete e.destroyFunc,delete e.tooltipComp},e.prototype.clearTimers=function(e){void 0===e&&(e=!1),this.hideTimeoutId&&!e&&(window.clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.showTimeoutId&&(window.clearTimeout(this.showTimeoutId),this.showTimeoutId=0)},n([r.Autowired("popupService"),i("design:type",s.PopupService)],e.prototype,"popupService",void 0),n([r.Autowired("userComponentFactory"),i("design:type",a.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),n([r.Autowired("columnApi"),i("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([r.Autowired("gridApi"),i("design:type",u.GridApi)],e.prototype,"gridApi",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Bean("tooltipManager")],e)}();t.TooltipManager=c},40634:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(37132),a=o(72493),l=o(72493),p=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e)return e(t);if("string"==typeof e){var o=e;return this.evaluateExpression(o,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(t){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Exception = "+t),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},n([r(0,l.Qualifier("loggerFactory")),i("design:type",Function),i("design:paramtypes",[s.LoggerFactory]),i("design:returntype",void 0)],e.prototype,"setBeans",null),n([a.Bean("expressionService")],e)}();t.ExpressionService=p},40706:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(72493),a=o(58342),l=o(98239),p=o(60843),u=o(63405),d=o(15774),c=o(69992),h=o(26016),f=o(13887),g=o(83423),m=function(){function e(e,t,o){this.headerRowComps=[],this.eContainer=e,this.pinned=o,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach((function(t){return t.forEachHeaderElement(e)}))},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.eventService.addEventListener(u.Events.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(u.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(u.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===h.Column.PINNED_LEFT,t=this.pinned===h.Column.PINNED_RIGHT,o=this.columnController,n=this.gridOptionsWrapper.isEnableRtl();if(e||t){var i=o[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(n&&e||!n&&t)&&(i+=this.scrollWidth),g._.setFixedWidth(this.eContainer,i)}},e.prototype.destroy=function(){this.removeHeaderRowComps()},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,o=new c.BodyDropTarget(this.pinned,t);this.context.wireBean(o),o.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach((function(e){e.destroy()})),this.headerRowComps.length=0,g._.clearElement(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var o=t!==e-1?d.HeaderRowType.COLUMN_GROUP:d.HeaderRowType.COLUMN,n=new d.HeaderRowComp(t,o,this.pinned,this.dropTarget);this.context.wireBean(n),this.headerRowComps.push(n),this.eContainer.appendChild(n.getGui())}this.gridOptionsWrapper.isFloatingFilter()&&!this.columnController.isPivotMode()&&(n=new d.HeaderRowComp(e,d.HeaderRowType.FLOATING_FILTER,this.pinned,this.dropTarget),this.context.wireBean(n),this.headerRowComps.push(n),this.eContainer.appendChild(n.getGui()))},n([s.Autowired("gridOptionsWrapper"),i("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("context"),i("design:type",s.Context)],e.prototype,"context",void 0),n([s.Autowired("$scope"),i("design:type",Object)],e.prototype,"$scope",void 0),n([s.Autowired("dragAndDropService"),i("design:type",a.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([s.Autowired("columnController"),i("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([s.Autowired("eventService"),i("design:type",p.EventService)],e.prototype,"eventService",void 0),n([s.Autowired("scrollVisibleService"),i("design:type",f.ScrollVisibleService)],e.prototype,"scrollVisibleService",void 0),n([s.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),e}();t.HeaderContainer=m},40797:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(43460),s=o(10042),a=o(55e3),l=o(98239),p=o(54828),u=o(44081),d=o(24463),c=o(60843),h=o(45727),f=o(72493),g=o(86608),m=o(42195),y=o(34782),v=o(34470),C=o(41451),w=o(76133),E=o(88842),_=o(10190),R=o(50580),O=o(69065),b=o(83423),S=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case h.Constants.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_INFINITE:this.infinitePageRowModel=this.rowModel;break;case h.Constants.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;b._.iterateObject(this.detailGridInfoMap,(function(o,n){b._.exists(n)&&(e(n,t),t++)}))},e.prototype.getDataAsCsv=function(e){return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){return this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+h.Constants.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isDeltaRowDataMode()){var t=this.immutableService.createTransactionForRowData(e),o=t[0],n=t[1];this.clientSideRowModel.updateRowData(o,n),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,o=0,n=0,i=this;!function r(){var s=(new Date).getTime();i.rowRenderer.redrawAfterModelUpdate();var a=(new Date).getTime();window.setTimeout((function(){var i=(new Date).getTime(),l=a-s,p=i-a;console.log("duration: processing = "+l+"ms, reflow = "+p+"ms"),t++,o+=l,n+=p,t<e?window.setTimeout(r,1e3):(console.log("tests complete. iteration count = "+t),console.log("average processing = "+o/t+"ms"),console.log("average reflow = "+n/t+"ms"))}),0)}()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call refreshCells() or redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.warn("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.error("ag-Grid: since v16, softRefreshView() is no longer supported. Please check the documentation on how to refresh.")},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRootComp.refreshHeader(),this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return console.warn("ag-Grid: isAdvancedFilterPresent() is deprecated, please use isColumnFilterPresent()"),this.isColumnFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.onGroupExpandedOrCollapsed=function(e){b._.missing(this.clientSideRowModel)&&console.warn("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),b._.exists(e)&&console.warn("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){b._.missing(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=h.Constants.STEP_EVERYTHING,o={group:h.Constants.STEP_EVERYTHING,filter:h.Constants.STEP_FILTER,map:h.Constants.STEP_MAP,aggregate:h.Constants.STEP_AGGREGATE,sort:h.Constants.STEP_SORT,pivot:h.Constants.STEP_PIVOT};if(b._.exists(e)&&(t=o[e]),b._.missing(t))console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var n={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.clientSideRowModel.refreshModel(n)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.expandAll=function(){b._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call expandAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){b._.missing(this.clientSideRowModel)?console.warn("ag-Grid: cannot call collapseAll unless using normal row model"):this.clientSideRowModel.expandOrCollapseAll(!1)},e.prototype.addVirtualRowListener=function(e,t,o){"string"!=typeof e&&console.warn("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,o)},e.prototype.addRenderedRowListener=function(e,t,o){"virtualRowSelected"===e&&console.warn("ag-Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,o){console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){b._.missing(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:h.Constants.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e,t){this.gridPanel.ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){this.gridCore.ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){b._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){b._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){b._.missing(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterApi instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.getFilterComponent(t,"NO_UI").resolveNow(null,(function(e){return e}))},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return this.statusBarService.getStatusPanel(e)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e,t){void 0===t&&(t="api"),this.sortController.setSortModel(e,t)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusedCellController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusedCellController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusedCellController.setFocusedCell(e,t,o,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGridAutoHeight=function(e){console.warn("api.setGridAutoHeight(boolean) is deprecated, please use api.setDomLayout() instead"),this.setDomLayout(e?"autoHeight":"normal")},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridPanel.setCellTextSelection(e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.isSideBarVisible=function(){return this.gridCore.isSideBarVisible()},e.prototype.setSideBarVisible=function(e){this.gridCore.setSideBarVisible(e)},e.prototype.showToolPanel=function(e){console.warn("ag-grid: from v19 api.showToolPanel has been deprecated in favour of api.setSideBarVisible"),this.setSideBarVisible(e)},e.prototype.openToolPanel=function(e){this.gridCore.openToolPanel(e)},e.prototype.closeToolPanel=function(){this.gridCore.closeToolPanel()},e.prototype.getOpenedToolPanel=function(){return this.gridCore.getOpenedToolPanel()},e.prototype.getSideBar=function(){return this.gridCore.getSideBar()},e.prototype.setSideBar=function(e){return this.gridCore.setSideBar(e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridPanel.checkViewportAndScrolls()},e.prototype.resetRowHeights=function(){b._.exists(this.clientSideRowModel)&&this.clientSideRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){b._.exists(this.clientSideRowModel)&&this.clientSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);return b._.missing(o)&&(o=this.columnController.getGridColumn(e)),b._.missing(o)?null:this.valueService.getValue(o,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.gridCore.destroy(),this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return b._.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.clearSelection()},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.menuFactory.showMenuAfterMouseEvent(o,t)},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(u.GridOptionsWrapper.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,floating:e.rowPinned,column:t},n=new y.GridCell(o);b._.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(n,e.keyPress,e.charPress)}else console.warn("ag-Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.updateRowData=function(e){var t=null;return this.clientSideRowModel?t=this.clientSideRowModel.updateRowData(e):this.infinitePageRowModel?this.infinitePageRowModel.updateRowData(e):console.error("ag-Grid: updateRowData() only works with ClientSideRowModel and InfiniteRowModel."),this.rowRenderer.refreshFullWidthRows(),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.batchUpdateRowData=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("ag-Grid: api.batchUpdateRowData() only works with ClientSideRowModel.")},e.prototype.insertItemsAtIndex=function(e,t,o){void 0===o&&(o=!1),console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:o})},e.prototype.addItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){this.serverSideRowModel?this.serverSideRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeServerSideCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infinitePageRowModel?this.infinitePageRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infinitePageRowModel?this.infinitePageRowModel.getBlockState():this.serverSideRowModel?this.serverSideRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='serverSide'.")},e.prototype.checkGridSize=function(){this.gridPanel.setHeaderAndFloatingHeights()},e.prototype.getFirstRenderedRow=function(){return console.warn("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getTotalRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},n([f.Autowired("immutableService"),i("design:type",w.ImmutableService)],e.prototype,"immutableService",void 0),n([f.Autowired("csvCreator"),i("design:type",r.CsvCreator)],e.prototype,"csvCreator",void 0),n([f.Optional("excelCreator"),i("design:type",Object)],e.prototype,"excelCreator",void 0),n([f.Autowired("rowRenderer"),i("design:type",s.RowRenderer)],e.prototype,"rowRenderer",void 0),n([f.Autowired("filterManager"),i("design:type",a.FilterManager)],e.prototype,"filterManager",void 0),n([f.Autowired("columnController"),i("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([f.Autowired("selectionController"),i("design:type",p.SelectionController)],e.prototype,"selectionController",void 0),n([f.Autowired("gridOptionsWrapper"),i("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([f.Autowired("valueService"),i("design:type",d.ValueService)],e.prototype,"valueService",void 0),n([f.Autowired("alignedGridsService"),i("design:type",_.AlignedGridsService)],e.prototype,"alignedGridsService",void 0),n([f.Autowired("eventService"),i("design:type",c.EventService)],e.prototype,"eventService",void 0),n([f.Autowired("pinnedRowModel"),i("design:type",R.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),n([f.Autowired("context"),i("design:type",f.Context)],e.prototype,"context",void 0),n([f.Autowired("rowModel"),i("design:type",Object)],e.prototype,"rowModel",void 0),n([f.Autowired("sortController"),i("design:type",g.SortController)],e.prototype,"sortController",void 0),n([f.Autowired("paginationProxy"),i("design:type",C.PaginationProxy)],e.prototype,"paginationProxy",void 0),n([f.Autowired("focusedCellController"),i("design:type",m.FocusedCellController)],e.prototype,"focusedCellController",void 0),n([f.Optional("rangeController"),i("design:type",Object)],e.prototype,"rangeController",void 0),n([f.Optional("clipboardService"),i("design:type",Object)],e.prototype,"clipboardService",void 0),n([f.Optional("aggFuncService"),i("design:type",Object)],e.prototype,"aggFuncService",void 0),n([f.Autowired("menuFactory"),i("design:type",Object)],e.prototype,"menuFactory",void 0),n([f.Optional("contextMenuFactory"),i("design:type",Object)],e.prototype,"contextMenuFactory",void 0),n([f.Autowired("cellRendererFactory"),i("design:type",v.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),n([f.Autowired("valueCache"),i("design:type",E.ValueCache)],e.prototype,"valueCache",void 0),n([f.Optional("sideBarComp"),i("design:type",Object)],e.prototype,"sideBarComp",void 0),n([f.Autowired("animationFrameService"),i("design:type",O.AnimationFrameService)],e.prototype,"animationFrameService",void 0),n([f.Optional("statusBarService"),i("design:type",Object)],e.prototype,"statusBarService",void 0),n([f.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([f.Bean("gridApi")],e)}();t.GridApi=S},41451:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8534),l=o(60843),p=o(63405),u=o(72493),d=o(44081),c=o(13887),h=o(54828),f=o(44871),g=o(40797),m=o(83423),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,p.Events.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var o=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},r([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("scrollVisibleService"),s("design:type",c.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),r([u.Bean("paginationAutoPageSizeService")],t)}(a.BeanStub);t.PaginationAutoPageSizeService=y;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topRowIndex=0,t.bottomRowIndex=0,t.pixelOffset=0,t}return i(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.addDestroyableEventListener(this.eventService,p.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,o,n){var i=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return i&&this.setIndexesAndBounds(),i},t.prototype.isLastRowFound=function(){return this.rowModel.isLastRowFound()},t.prototype.onModelUpdated=function(e){this.setIndexesAndBounds();var t={type:p.Events.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:p.Events.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return m._.missing(this.topRowBounds)||m._.missing(this.bottomRowBounds)?0:this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&e.rowIndex>=this.topRowIndex&&e.rowIndex<=this.bottomRowIndex},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){return this.rowModel.getRowBounds(e)},t.prototype.getPageFirstRow=function(){return this.pageSize*this.currentPage},t.prototype.getPageLastRow=function(){var e=this.pageSize*(this.currentPage+1)-1,t=this.rowModel.getPageLastRow();return t>e?e:t},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.getTotalRowCount=function(){return this.rowModel.getPageLastRow()+1},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getPageLastRow()+1,t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.setIndexesAndBounds=function(){if(this.active){this.setPageSize();var e=this.getTotalRowCount();this.totalPages=Math.floor((e-1)/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!m._.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topRowIndex=this.pageSize*this.currentPage,this.bottomRowIndex=this.pageSize*(this.currentPage+1)-1;var t=this.rowModel.getPageLastRow();this.bottomRowIndex>t&&(this.bottomRowIndex=t)}else this.pageSize=this.rowModel.getPageLastRow()+1,this.totalPages=1,this.currentPage=0,this.topRowIndex=0,this.bottomRowIndex=this.rowModel.getPageLastRow();this.topRowBounds=this.rowModel.getRowBounds(this.topRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomRowIndex),this.pixelOffset=m._.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},r([u.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([u.Autowired("eventService"),s("design:type",l.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("selectionController"),s("design:type",h.SelectionController)],t.prototype,"selectionController",void 0),r([u.Autowired("columnApi"),s("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),r([u.Autowired("gridApi"),s("design:type",g.GridApi)],t.prototype,"gridApi",void 0),r([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([u.Bean("paginationProxy")],t)}(a.BeanStub);t.PaginationProxy=v},41832:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(10042),s=o(72493),a=o(44081),l=o(78481),p=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e){var t=this.getHeaderCellForColumn(e);if(!t)return-1;var o=document.createElement("span");o.style.position="fixed";var n=this.gridPanel.getCenterContainer();n.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),this.cloneItemIntoDummy(t,o);var i=o.offsetWidth;return n.removeChild(o),i+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement((function(o){if(o instanceof l.HeaderWrapperComp){var n=o;n.getColumn()===e&&(t=n)}})),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var o=this;this.rowRenderer.getAllCellsForColumn(e).forEach((function(e){return o.cloneItemIntoDummy(e,t)}))},e.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var n=document.createElement("div");n.style.display="table-row",n.appendChild(o),t.appendChild(n)},n([s.Autowired("rowRenderer"),i("design:type",r.RowRenderer)],e.prototype,"rowRenderer",void 0),n([s.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Bean("autoWidthCalculator")],e)}();t.AutoWidthCalculator=p},42195:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(60843),a=o(63405),l=o(44081),p=o(44871),u=o(98239),d=o(34782),c=o(40797),h=o(23054),f=o(83423),g=function(){function e(){}return e.prototype.init=function(){this.eventService.addEventListener(a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_MOVED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_PINNED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_VISIBLE,this.clearFocusedCell.bind(this))},e.prototype.clearFocusedCell=function(){this.focusedCell=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCell},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCell&&this.getGridCellForDomElement(document.activeElement)?this.focusedCell:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var o=this.gridOptionsWrapper.getDomData(t,h.CellComp.DOM_DATA_KEY_CELL_COMP);if(o)return o.getGridCell();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,o,n){void 0===n&&(n=!1);var i=f._.makeNull(this.columnController.getGridColumn(t));this.focusedCell=new d.GridCell({rowIndex:e,floating:f._.makeNull(o),column:i}),this.onCellFocused(n)},e.prototype.isCellFocused=function(e){return!f._.missing(this.focusedCell)&&this.focusedCell.column===e.column&&this.isRowFocused(e.rowIndex,e.floating)},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCell},e.prototype.isRowFocused=function(e,t){if(f._.missing(this.focusedCell))return!1;var o=f._.makeNull(t);return this.focusedCell.rowIndex===e&&this.focusedCell.floating===o},e.prototype.onCellFocused=function(e){var t={type:a.Events.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCell&&(t.rowIndex=this.focusedCell.rowIndex,t.column=this.focusedCell.column,t.rowPinned=this.focusedCell.floating),this.eventService.dispatchEvent(t)},n([r.Autowired("eventService"),i("design:type",s.EventService)],e.prototype,"eventService",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("columnController"),i("design:type",u.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("columnApi"),i("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([r.Autowired("gridApi"),i("design:type",c.GridApi)],e.prototype,"gridApi",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r.Bean("focusedCellController")],e)}();t.FocusedCellController=g},42664:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(98239),a=o(45727),l=o(54828),p=o(44081),u=o(31887),d=o(7897),c=o(12598),h=o(74517),f=o(50580),g=o(83423),m=function(){function e(e){var t=e.columnController,o=e.valueService,n=e.gridOptionsWrapper,i=e.processCellCallback,r=e.processHeaderCallback,s=e.cellAndHeaderEscaper;this.columnController=t,this.valueService=o,this.gridOptionsWrapper=n,this.processCellCallback=i,this.processHeaderCallback=r,this.cellAndHeaderEscaper=s}return e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null==t&&(t=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(t):t},e.prototype.extractRowCellValue=function(e,t,o,n){var i,r=this.columnController.getRowGroupColumns().length>0;return i=n&&n.group&&r&&0===t?this.createValueForGroupNode(n):this.valueService.getValue(e,n),null==(i=this.processCell(n,e,i,this.processCellCallback,o))&&(i=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(i):i},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,o,n,i){return n?n({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:i}):o},e}();t.BaseGridSerializingSession=m;var y,v=function(){function e(){}return e.prototype.serialize=function(e,t){var o=t&&t.skipGroups,n=t&&t.skipHeader,i=t&&t.columnGroups,r=t&&t.skipFooters,s=t&&t.skipPinnedTop,l=t&&t.skipPinnedBottom,p=t&&t.customHeader,u=t&&t.customFooter,d=t&&t.allColumns,h=t&&t.onlySelected,f=t&&t.columnKeys,m=t&&t.onlySelectedAllPages,y=t&&t.shouldRowBeSkipped||function(){return!1},v=this.gridOptionsWrapper.getApi(),C=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),w=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),E=this.gridOptionsWrapper.getContext(),_=this.columnController.isPivotMode(),R=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,O=!R&&h,b=[];if(b=g._.existsAndNotEmpty(f)?this.columnController.getGridColumns(f):d&&!_?(b=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([a.Constants.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),p&&e.addCustomHeader(p),e.prepare(b),i){var S=new c.GroupInstanceIdCreator,P=this.displayedGroupCreator.createDisplayedGroups(b,this.columnController.getGridBalancedTree(),S,null);this.recursivelyAddHeaderGroups(P,e)}if(!n){var A=e.onNewHeaderRow();b.forEach((function(e,t){A.onColumn(e,t,void 0)}))}function T(t){var n=w&&t.leafGroup,i=1===t.allChildrenCount&&(C||n);if((!t.group||!o&&!i)&&(!r||!t.footer)&&(!h||t.isSelected())&&(!s||"top"!==t.rowPinned)&&(!l||"bottom"!==t.rowPinned)&&(-1!==t.level||t.leafGroup)&&!y({node:t,api:v,context:E})){var a=e.onNewBodyRow();b.forEach((function(e,o){a.onColumn(e,o,t)}))}}return this.pinnedRowModel.forEachPinnedTopRow(T),_?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(T):this.rowModel.forEachNode(T):m||O?this.selectionController.getSelectedNodes().forEach((function(e){T(e)})):R?this.rowModel.forEachNodeAfterFilterAndSort(T):this.rowModel.forEachNode(T),this.pinnedRowModel.forEachPinnedBottomRow(T),u&&e.addCustomFooter(u),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof h.ColumnGroup&&this.doAddHeaderHeader(t,e),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t)},e.prototype.doAddHeaderHeader=function(e,t){var o=this,n=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t=e,r=o.columnController.getDisplayNameForColumnGroup(t,"header");n.onColumn(r||"",i++,t.getLeafColumns().length-1)}))},n([r.Autowired("displayedGroupCreator"),i("design:type",u.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),n([r.Autowired("columnController"),i("design:type",s.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("rowModel"),i("design:type",Object)],e.prototype,"rowModel",void 0),n([r.Autowired("pinnedRowModel"),i("design:type",f.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),n([r.Autowired("selectionController"),i("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),n([r.Autowired("columnFactory"),i("design:type",d.ColumnFactory)],e.prototype,"columnFactory",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Bean("gridSerializer")],e)}();t.GridSerializer=v,(y=t.RowType||(t.RowType={}))[y.HEADER_GROUPING=0]="HEADER_GROUPING",y[y.HEADER=1]="HEADER",y[y.BODY=2]="BODY"},42726:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(55e3),a=o(73575),l=o(44081),p=o(60843),u=o(83423),d=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,(function(n){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:n})}))},e.prototype.showMenuAfterButtonClick=function(e,t){var o=this;this.showPopup(e,(function(n){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:n,keepWithinBounds:!0,column:e})}))},e.prototype.showPopup=function(e,t){var o,n=this,i=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),r=document.createElement("div");u._.addCssClass(r,"ag-menu"),i.guiPromise.promise.then((function(e){r.appendChild(e)}));var s=function(e){"horizontal"===e.direction&&o()};this.eventService.addEventListener("bodyScroll",s),o=this.popupService.addAsModalPopup(r,!0,(function(){n.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1,"contextMenu")})),t(r),i.filterPromise.then((function(e){if(e.afterGuiAttached){var t={hidePopup:o};e.afterGuiAttached(t)}})),this.hidePopup=o,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},n([r.Autowired("eventService"),i("design:type",p.EventService)],e.prototype,"eventService",void 0),n([r.Autowired("filterManager"),i("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),n([r.Autowired("popupService"),i("design:type",a.PopupService)],e.prototype,"popupService",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Bean("menuFactory")],e)}();t.StandardMenuFactory=d},43389:(e,t)=>{var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(o=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var n=function(){function e(){var e;this.strategyMap=((e={})[o.DeepValueCheck]=new r,e[o.IdentityCheck]=new i((function(e,t){return e===t})),e[o.NoCheck]=new i((function(e,t){return!0})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=n;var i=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),r=function(){function e(){}return e.prototype.areEqual=function(t,o){return e.areEquivalent(e.copy(t),e.copy(o))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],o=0;o<e.length;o++)t.push(this.copy(e[o]));return t}return"object"!=typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),{})},e.areEquivalent=function(t,o){if(t=e.unwrapStringOrNumber(t),o=e.unwrapStringOrNumber(o),t===o)return!0;if(null===t||null===o||typeof t!=typeof o)return!1;if(t instanceof Date)return o instanceof Date&&t.valueOf()===o.valueOf();if("function"==typeof t)return t.toString()===o.toString();if("object"!=typeof t)return t==o;var n=void 0===t.areEquivPropertyTracking,i=void 0===o.areEquivPropertyTracking;try{var r=void 0;if(n)t.areEquivPropertyTracking=[];else if(t.areEquivPropertyTracking.some((function(e){return e===o})))return!0;if(i)o.areEquivPropertyTracking=[];else if(o.areEquivPropertyTracking.some((function(e){return e===t})))return!0;t.areEquivPropertyTracking.push(o),o.areEquivPropertyTracking.push(t);var s={};for(r in t)"areEquivPropertyTracking"!=r&&(s[r]=null);for(r in o)"areEquivPropertyTracking"!=r&&(s[r]=null);for(r in s)if(!this.areEquivalent(t[r],o[r]))return!1;return!0}finally{n&&delete t.areEquivPropertyTracking,i&&delete o.areEquivPropertyTracking}},e}()},43460:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(42664),p=o(33467),u=o(98239),d=o(24463),c=o(44081),h=o(45727),f=o(83423),g="\r\n",m=function(e){function t(t){var o=e.call(this,{columnController:t.columnController,valueService:t.valueService,gridOptionsWrapper:t.gridOptionsWrapper,processCellCallback:t.processCellCallback,processHeaderCallback:t.processHeaderCallback})||this;o.result="",o.lineOpened=!1;var n=t.suppressQuotes,i=t.columnSeparator;return o.suppressQuotes=n,o.columnSeparator=i,o}return i(t,e),t.prototype.prepare=function(e){},t.prototype.addCustomHeader=function(e){e&&(this.result+=e+g)},t.prototype.addCustomFooter=function(e){e&&(this.result+=e+g)},t.prototype.onNewHeaderGroupingRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e,this.suppressQuotes);for(var n=1;n<=o;n++)this.result+=this.columnSeparator+this.putInQuotes("",this.suppressQuotes);this.lineOpened=!0},t.prototype.onNewHeaderRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e),this.suppressQuotes),this.lineOpened=!0},t.prototype.onNewBodyRow=function(){return this.lineOpened&&(this.result+=g),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,h.Constants.EXPORT_TYPE_CSV,o),this.suppressQuotes),this.lineOpened=!0},t.prototype.putInQuotes=function(e,t){return t?e:null==e?'""':("string"==typeof e?o=e:"function"==typeof e.toString?o=e.toString():(console.warn("unknown value type during csv conversion"),o=""),'"'+o.replace(/"/g,'""')+'"');var o},t.prototype.parse=function(){return this.result},t}(l.BaseGridSerializingSession);t.CsvSerializingSession=m;var y=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),o=t.mergedParams,n=t.data,i=o&&o.fileName&&0!==o.fileName.length?o.fileName:this.getDefaultFileName();return-1===i.indexOf(".")&&(i=i+"."+this.getDefaultFileExtension()),this.beans.downloader.download(i,this.packageFile(n)),n},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),o={};return f._.assign(o,t),f._.assign(o,e),o},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}();t.BaseCreator=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,o=t.columnController,n=t.valueService,i=t.gridOptionsWrapper,r=e,s=r.processCellCallback,a=r.processHeaderCallback,l=r.suppressQuotes,p=r.columnSeparator;return new m({columnController:o,valueService:n,gridOptionsWrapper:i,processCellCallback:s||void 0,processHeaderCallback:a||void 0,suppressQuotes:l||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},r([a.Autowired("columnController"),s("design:type",u.ColumnController)],t.prototype,"columnController",void 0),r([a.Autowired("valueService"),s("design:type",d.ValueService)],t.prototype,"valueService",void 0),r([a.Autowired("downloader"),s("design:type",p.Downloader)],t.prototype,"downloader",void 0),r([a.Autowired("gridSerializer"),s("design:type",l.GridSerializer)],t.prototype,"gridSerializer",void 0),r([a.Autowired("gridOptionsWrapper"),s("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([a.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([a.Bean("csvCreator")],t)}(y);t.CsvCreator=v},43878:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(26016),a=o(44081),l=o(98239),p=o(7897),u=o(45727),d=o(83423),c=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,o=[],n=this.gridOptionsWrapper.isTreeData(),i=this.gridOptionsWrapper.isGroupMultiAutoColumn();return n&&i&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),i=!1),i?e.forEach((function(e,n){o.push(t.createOneAutoGroupColumn(e,n))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.createOneAutoGroupColumn=function(e,o){var n,i=this.generateDefaultColDef(e);n=e?u.Constants.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var r=this.gridOptionsWrapper.getAutoGroupColumnDef();d._.mergeDeep(i,r),(i=this.columnFactory.mergeColDefs(i)).colId=n,this.gridOptionsWrapper.isTreeData()||d._.missing(i.field)&&d._.missing(i.valueGetter)&&d._.missing(i.filterValueGetter)&&(i.filter=!1),o&&o>0&&(i.headerCheckboxSelection=!1);var a=new s.Column(i,null,n,!0);return this.context.wireBean(a),a},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),o={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group"),enableRowGroup:!0};if(t&&(t.cellRenderer||t.cellRendererFramework)||(o.cellRenderer="agGroupCellRenderer"),e){var n=e.getColDef();d._.assign(o,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:n.headerValueGetter}),n.cellRenderer&&d._.assign(o,{cellRendererParams:{innerRenderer:n.cellRenderer,innerRendererParams:n.cellRendererParams}}),o.showRowGroup=e.getColId()}else o.showRowGroup=!0;return o},e.GROUP_AUTO_COLUMN_BUNDLE_ID=u.Constants.GROUP_AUTO_COLUMN_ID,n([r.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("context"),i("design:type",r.Context)],e.prototype,"context",void 0),n([r.Autowired("columnController"),i("design:type",l.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("columnFactory"),i("design:type",p.ColumnFactory)],e.prototype,"columnFactory",void 0),t=n([r.Bean("autoGroupColService")],e)}();t.AutoGroupColService=c},44081:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(60843),a=o(45727),l=o(97156),p=o(40797),u=o(72493),d=o(44871),c=o(98239),h=o(59007),f=o(37789),g=o(80834),m=o(85222),y=o(23801),v=o(96896),C=o(83423);function w(e){return!0===e||"true"===e}var E=function(){function e(){this.propertyEventService=new s.EventService,this.domDataKey="__AG_"+Math.random().toString(),this.layoutElements=[]}var t;return t=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null},e.prototype.init=function(){!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties());var e=this.useAsyncEvents();this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: groupSelectsChildren does not work wth suppressParentsInRowNodes, this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("ag-Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.addEventListener(t.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this))},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var o=Object.getOwnPropertyNames(t),n=g.ColDefUtil.ALL_PROPERTIES.concat(g.ColDefUtil.FRAMEWORK_PROPERTIES);e.checkProperties(o,n,n,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=f.PropertyKeys.ALL_PROPERTIES.concat(f.PropertyKeys.FRAMEWORK_PROPERTIES);Object.keys(m.Events).forEach((function(e){return t.push(l.ComponentUtil.getCallbackForEvent(m.Events[e]))}));var o=t.concat("api","columnApi");this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-grid-properties/")},e.prototype.checkProperties=function(e,t,o,n,i){var r=C._.fuzzyCheckStrings(e,t,o),s=Object.keys(r);s.forEach((function(e){var t=r[e];console.warn("ag-grid: invalid "+n+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(","))})),s.length>0&&console.warn("ag-grid: to see all the valid "+n+" properties please check: "+i)},e.prototype.getDomData=function(e,t){var o=e[this.domDataKey];if(o)return o[t]},e.prototype.setDomData=function(e,t,o){var n=e[this.domDataKey];C._.missing(n)&&(n={},e[this.domDataKey]=n),n[t]=o},e.prototype.isEnterprise=function(){return this.enterprise},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return w(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return w(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return w(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return w(this.gridOptions.pivotTotals)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return C._.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===a.Constants.ROW_MODEL_TYPE_CLIENT_SIDE||this.gridOptions.rowModelType===a.Constants.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return w(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return w(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return w(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isShowToolPanel=function(){return w(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return w(this.gridOptions.suppressTouch)},e.prototype.isSuppressRowTransform=function(){return w(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressSetColumnStateEvents=function(){return w(this.gridOptions.suppressSetColumnStateEvents)},e.prototype.useAsyncEvents=function(){return!w(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return w(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){var e=w(this.gridOptions.groupSelectsChildren);return e&&this.isTreeData()?(console.warn("ag-Grid: groupSelectsChildren does not work with tree data"),!1):e},e.prototype.isSuppressRowHoverHighlight=function(){return w(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return w(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return w(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return w(this.gridOptions.groupMultiAutoColumn)||w(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return w(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return w(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return w(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return w(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return w(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return w(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return w(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return w(this.gridOptions.suppressMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isGroupSuppressAutoColumn=function(){return w(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return w(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return w(this.gridOptions.suppressScrollOnNewData)},e.prototype.isRowDragManaged=function(){return w(this.gridOptions.rowDragManaged)},e.prototype.isSuppressRowDrag=function(){return w(this.gridOptions.suppressRowDrag)},e.prototype.getDomLayout=function(){var e=this,t=this.gridOptions.domLayout;return t===a.Constants.DOM_LAYOUT_PRINT||t===a.Constants.DOM_LAYOUT_AUTO_HEIGHT||t===a.Constants.DOM_LAYOUT_NORMAL?t:(null==t||C._.doOnce((function(){return console.warn("ag-Grid: "+e.gridOptions.domLayout+" is not valid for DOM Layout, valid values are "+a.Constants.DOM_LAYOUT_NORMAL+", "+a.Constants.DOM_LAYOUT_AUTO_HEIGHT+" and "+a.Constants.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),a.Constants.DOM_LAYOUT_NORMAL)},e.prototype.isSuppressHorizontalScroll=function(){return w(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return w(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return w(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowVerticalScroll=function(){return w(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return w(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return w(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return w(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return w(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return w(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return w(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return w(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return w(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return w(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return w(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return w(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return w(this.gridOptions.enterMovesDown)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getDefaultGroupSortComparator=function(){return this.gridOptions.defaultGroupSortComparator},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return w(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isDeltaRowDataMode=function(){return w(this.gridOptions.deltaRowDataMode)},e.prototype.isDeltaColumnMode=function(){return w(this.gridOptions.deltaColumnMode)},e.prototype.isEnsureDomOrder=function(){return w(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return w(this.gridOptions.enableCharts)},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return w(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return w(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return w(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return w(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return w(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(){return w(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return w(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return w(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return w(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return w(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return w(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return w(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return w(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return w(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return w(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return w(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return w(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return w(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return w(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return w(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return w(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return w(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isCopyHeadersToClipboard=function(){return w(this.gridOptions.copyHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return w(this.gridOptions.suppressClipboardPaste)},e.prototype.isPagination=function(){return w(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return w(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.gridOptions.processDataFromClipboard},e.prototype.getBatchUpdateWaitMillis=function(){return C._.exists(this.gridOptions.batchUpdateWaitMillis)?this.gridOptions.batchUpdateWaitMillis:a.Constants.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return w(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&w(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return w(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return w(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return w(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return w(this.gridOptions.enableRangeSelection)},e.prototype.isSuppressMultiRangeSelection=function(){return w(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return w(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return w(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){var e=this,t=w(this.gridOptions.masterDetail);return C._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: Master Detail is an Enterprise feature of ag-Grid.")}),"MasterDetailEnterpriseCheck"),t&&this.enterprise},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return w(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return w(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return w(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isFunctionsReadOnly=function(){return w(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.isEnableCellTextSelect=function(){return w(this.gridOptions.enableCellTextSelection)},e.prototype.isEnableOldSetFilterModel=function(){return w(this.gridOptions.enableOldSetFilterModel)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return w(this.gridOptions.suppressCsvExport)},e.prototype.isSuppressExcelExport=function(){return w(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return w(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isTreeData=function(){var e=this,t=w(this.gridOptions.treeData);return C._.doOnce((function(){t&&!e.enterprise&&console.warn("ag-grid: TreeData is an Enterprise feature of ag-Grid.")}),"TreeDataEnterpriseCheck"),t},e.prototype.isValueCache=function(){return w(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return w(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return w(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return w(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.gridOptions.processHeaderForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return(e=this.gridOptions.viewportRowModelPageSize)>0?e:5;var e},e.prototype.getViewportRowModelBufferSize=function(){return(e=this.gridOptions.viewportRowModelBufferSize)>=0?e:5;var e},e.prototype.isServerSideSortingAlwaysResets=function(){return w(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.getPostSortFunc=function(){return this.gridOptions.postSort},e.prototype.getClipboardDeliminator=function(){return C._.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var o=this.gridOptions,n=o[e];if(n!==t){o[e]=t;var i={type:e,currentValue:t,previousValue:n};this.propertyEventService.dispatchEvent(i)}},e.prototype.addLayoutElement=function(e){this.layoutElements.push(e),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t=e===a.Constants.DOM_LAYOUT_AUTO_HEIGHT,o=e===a.Constants.DOM_LAYOUT_PRINT,n=e===a.Constants.DOM_LAYOUT_NORMAL;this.layoutElements.forEach((function(e){C._.addOrRemoveCssClass(e,"ag-layout-auto-height",t),C._.addOrRemoveCssClass(e,"ag-layout-normal",n),C._.addOrRemoveCssClass(e,"ag-layout-print",o)}))},e.prototype.addEventListener=function(e,o){t.checkEventDeprecation(e),this.propertyEventService.addEventListener(e,o)},e.checkEventDeprecation=function(e){"floatingRowDataChanged"===e&&console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged")},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding&&this.gridOptions.autoSizePadding>0?this.gridOptions.autoSizePadding:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.specialForNewMaterial(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&C._.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),e&&C._.exists(e)?e:document},e.prototype.getMinColWidth=function(){return this.gridOptions.minColWidth&&this.gridOptions.minColWidth>t.MIN_COL_WIDTH?this.gridOptions.minColWidth:t.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBufferInPixels=function(){var e;return"number"==typeof this.gridOptions.rowBuffer?this.gridOptions.rowBuffer<0?(C._.doOnce((function(){return console.warn("ag-Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),e=0):e=this.gridOptions.rowBuffer:e=a.Constants.ROW_BUFFER_SIZE,e*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){var e=this.gridOptions.scrollbarWidth;return("number"!=typeof e||e<0)&&(e=C._.getScrollbarWidth()),e},e.prototype.checkForDeprecated=function(){var e=this,t=this.gridOptions;t.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortingOrder instead."),t.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortingOrder instead."),t.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),t.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),t.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof t.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(t.onRowDeselected||t.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),t.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),t.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),t.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),t.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),t.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),t.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),t.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),t.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),t.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),t.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),t.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),t.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),t.groupSuppressRow&&console.warn("ag-grid: since version 18.2.x, 'groupSuppressRow' should not be used anymore. Instead remove row groups and perform custom sorting."),t.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),t.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),t.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),t.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),t.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+t.paginationStartPage+") instead."),t.getHeaderCellTemplate&&console.warn("ag-grid: since version 15.x, getHeaderCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellTemplate&&console.warn("ag-grid: since version 15.x, headerCellTemplate is gone, please check the header documentation on how to set header templates."),t.headerCellRenderer&&console.warn("ag-grid: since version 15.x, headerCellRenderer is gone, please check the header documentation on how to set header templates."),t.angularCompileHeaders&&console.warn("ag-grid: since version 15.x, angularCompileHeaders is gone, please see the getting started for Angular 1 docs to see how to do headers in Angular 1.x."),t.pivotTotals&&(console.warn("ag-grid: since version 18.x, pivotTotals has been removed, instead if using pivotTotals, set pivotColumnGroupTotals='before'|'after'."),t.pivotColumnGroupTotals="before"),"inMemory"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The In Memory Row Model has been renamed to the Client Side Row Model, set rowModelType='clientSide' instead."),t.rowModelType="clientSide"),"enterprise"===t.rowModelType&&(console.warn("ag-grid: since version 18.x, The Enterprise Row Model has been renamed to the Server Side Row Model, set rowModelType='serverSide' instead."),t.rowModelType="serverSide"),t.layoutInterval&&console.warn("ag-grid: since version 18.x, layoutInterval is no longer a property. This is because the grid now uses CSS Flex for layout."),t.gridAutoHeight&&(console.warn("ag-grid: since version 19.x, gridAutoHeight is gone, please use domLayout=autoHeight instead"),t.domLayout="autoHeight"),!0===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!0),!1===t.showToolPanel&&(console.warn("ag-grid: since version 19.x, showToolPanel is gone, please specify toolPanel components. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.showToolPanel=void 0,t.sideBar=t.sideBar||!1);var o={toolPanelSuppressRowGroups:"suppressRowGroups",toolPanelSuppressValues:"suppressValues",toolPanelSuppressPivots:"suppressPivots",toolPanelSuppressPivotMode:"suppressPivotMode",toolPanelSuppressColumnFilter:"suppressColumnFilter",toolPanelSuppressColumnSelectAll:"suppressColumnSelectAll",toolPanelSuppressSideButtons:"suppressSideButtons",toolPanelSuppressColumnExpandAll:"suppressColumnExpandAll",contractColumnSelection:"contractColumnSelection"},n={};Object.keys(o).forEach((function(t){var i=o[t],r=e.gridOptions[t];if(void 0!==r){if("toolPanelSuppressSideButtons"===t)return void console.warn("ag-grid: since v19.0 toolPanelSuppressSideButtons has been completely removed. See https://www.ag-grid.com/javascript-grid-tool-panel/");console.warn("ag-grid: since v19.0 gridOptions."+t+" is deprecated, please use gridOptions.sideBar.toolPanel[columnsIndex].componentParams."+i),n[i]=r}})),Object.keys(n).length>0&&!C._.exists(t.sideBar)&&(console.warn("ag-grid: since version 19.x, sideBar is mandatory if using toolPanel related properties. See https://www.ag-grid.com/javascript-grid-tool-panel/"),t.sideBar=!0),null!=t.sideBar&&(t.sideBar=v.SideBarDefParser.parse(t.sideBar));var i=this.gridOptions.sideBar;if(Object.keys(n).length>0&&i&&i.toolPanels){var r=i.toolPanels.filter((function(e){return"columns"===e.id}));1===r.length&&C._.mergeDeep(r[0],{componentParams:n})}t.enableStatusBar&&(console.warn("ag-grid: since version 19.x, enableStatusBar is gone, please specify statusBar components"),t.statusBar=t.statusBar||{components:[{component:"agAggregationComponent"}]}),t.alwaysShowStatusBar&&console.warn("ag-grid: since version 19.x, alwaysShowStatusBar is gone. Please specify a min-height on the ag-status-bar css class, eg .ag-status-bar {min-height: 35px; }"),(t.enableServerSideSorting||t.enableSorting)&&(console.warn("ag-Grid: since v20, grid options enableSorting and enableServerSideSorting are gone. Instead set sortable=true on the column definition for the columns sorting are allowed on. To migrate from gridOption.enableSorting=true, set gridOptions.defaultColDef.sortable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.sortable||(t.defaultColDef.sortable=!0)),(t.enableFilter||t.enableServerSideFilter)&&(console.warn("ag-Grid: since v20, grid options enableFilter and enableServerSideFilter are gone. Instead set filter=true (if not already specifying a specific filter) on the column definition for the columns filtering is allowed on. To migrate from gridOptions.enableFilter=true, set gridOptions.defaultColDef.filter=true. If you are explicitly setting specific filters for each column (ie colDef.filter is already set) the you don't need to do anything."),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.filter||(t.defaultColDef.filter=!0)),t.enableColResize&&(console.warn("ag-Grid: since v20, grid options enableColResize is gone. Instead set resizable=true on the column definition for the columns resizing are allowed on. To migrate from gridOption.enableColResize=true, set gridOptions.defaultColDef.resizable=true"),t.defaultColDef||(t.defaultColDef={}),t.defaultColDef.resizable||(t.defaultColDef.resizable=!0)),t.embedFullWidthRows&&console.warn("ag-Grid: since v20.1, embedFullWidthRows is now gone. This property was introduced to allow faster vertical scrolling when using slow browsers (IE) and full width rows. However in v20 the dom layout was redesigned and this performance problem no longer exists, hence this property 'hack' is no longer necessary."),t.suppressTabbing&&console.warn("ag-Grid: since v20.1, suppressTabbing is replaced with the more powerful grid callback suppressKeyboardEvent(params) which can suppress any keyboard event including tabbing.")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&C._.missing(this.getDataPathFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(C._.missing(this.getIsServerSideGroupFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),C._.missing(this.getServerSideGroupKeyFunc())&&console.warn("ag-Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,o){var n=e.gridOptions.localeText;return n&&n[t]?n[t]:o}},e.prototype.globalEventHandler=function(e,t){var o=l.ComponentUtil.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)},e.prototype.getRowHeightAsNumber=function(){return!this.gridOptions.rowHeight||C._.missing(this.gridOptions.rowHeight)?this.getDefaultRowHeight():this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e,t){if(void 0===t&&(t=!1),"function"==typeof this.gridOptions.getRowHeight){if(t)return{height:this.getDefaultRowHeight(),estimated:!0};var o={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context};return{height:this.gridOptions.getRowHeight(o),estimated:!1}}if(e.detail&&this.isMasterDetail())return this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1};var n=this.getDefaultRowHeight(),i=this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n;if(this.columnController.isAutoRowHeightActive()){if(t)return{height:i,estimated:!0};var r=this.autoHeightCalculator.getPreferredHeightForRow(e);return{height:Math.max(r,n),estimated:!1}}return{height:i,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getVirtualItemHeight=function(){return this.specialForNewMaterial(20,"virtualItemHeight")},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.specialForNewMaterial=function(e,t){var o=this.environment.getTheme();return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,t):e},e.prototype.getDefaultRowHeight=function(){return this.specialForNewMaterial(25,"rowHeight")},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",n([u.Autowired("gridOptions"),i("design:type",Object)],e.prototype,"gridOptions",void 0),n([u.Autowired("columnController"),i("design:type",c.ColumnController)],e.prototype,"columnController",void 0),n([u.Autowired("eventService"),i("design:type",s.EventService)],e.prototype,"eventService",void 0),n([u.Autowired("enterprise"),i("design:type",Boolean)],e.prototype,"enterprise",void 0),n([u.Autowired("frameworkFactory"),i("design:type",Object)],e.prototype,"frameworkFactory",void 0),n([u.Autowired("gridApi"),i("design:type",p.GridApi)],e.prototype,"gridApi",void 0),n([u.Autowired("columnApi"),i("design:type",d.ColumnApi)],e.prototype,"columnApi",void 0),n([u.Autowired("environment"),i("design:type",h.Environment)],e.prototype,"environment",void 0),n([u.Autowired("autoHeightCalculator"),i("design:type",y.AutoHeightCalculator)],e.prototype,"autoHeightCalculator",void 0),n([r(0,u.Qualifier("gridApi")),r(1,u.Qualifier("columnApi")),i("design:type",Function),i("design:paramtypes",[p.GridApi,d.ColumnApi]),i("design:returntype",void 0)],e.prototype,"agWire",null),n([u.PreDestroy,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"destroy",null),n([u.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),t=n([u.Bean("gridOptionsWrapper")],e)}();t.GridOptionsWrapper=E},44329:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(83423),s=o(15068),a=function(e){function t(o,n){var i=e.call(this)||this;return i.version=0,i.state=t.STATE_DIRTY,i.rowNodeCacheParams=n,i.blockNumber=o,i.startRow=o*n.blockSize,i.endRow=i.startRow+n.blockSize,i}return i(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback((function(e){e.expanded&&(t=!0)}),e),t},t.prototype.forEachNodeCallback=function(e,t){for(var o=this.startRow;o<this.endRow;o++)o<t&&e(this.getRowUsingLocalIndex(o),o)},t.prototype.forEachNode=function(e,t,o,n){this.forEachNodeCallback((function(o){e(o,t.next()),n&&o.childrenCache&&o.childrenCache.forEachNodeDeep(e,t)}),o)},t.prototype.forEachNodeDeep=function(e,t,o){this.forEachNode(e,t,o,!0)},t.prototype.forEachNodeShallow=function(e,t,o){this.forEachNode(e,t,o,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach((function(e){e.setData(null)}))},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var o=e-this.startRow;this.rowNodes[o]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,o=this.createBlankRowNode(e);return this.rowNodes[t]=o,o},t.prototype.setNewData=function(e,t){var o=this.setBlankRowNode(e);return this.setDataAndId(o,t,this.startRow+e),o},t.prototype.createBlankRowNode=function(e){var t=new s.RowNode;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,o=this.createBlankRowNode(t);this.rowNodes.push(o)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,o=[];this.rowNodes.forEach((function(n,i){var r=e[i];n.stub&&o.push(n),t.setDataAndId(n,r,t.startRow+i)})),o.length>0&&this.beans.rowRenderer.redrawRows(o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rowNodes.forEach((function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()}))},t.prototype.pageLoaded=function(e,o,n){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(o)),n=r._.cleanNumber(n);var i={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:n};this.dispatchEvent(i)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(o(8534).BeanStub);t.RowNodeBlock=a},44859:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(83423);t.defaultGroupComparator=function(e,t,o,i,r){void 0===r&&(r=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=n._.exists(o)&&o.group,a=n._.exists(i)&&i.group,l=!s&&!a;return s&&a?n._.defaultComparator(o.key,i.key,r):l?n._.defaultComparator(e,t,r):s?1:-1}},44871:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(98239),s=o(72493),a=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(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(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o){void 0===o&&(o=!0),this.columnController.setColumnWidth(e,t,!1,o)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e){return this.columnController.autoSizeColumn(e,"api")},e.prototype.autoSizeColumns=function(e){return this.columnController.autoSizeColumns(e,"api")},e.prototype.autoSizeAllColumns=function(){this.columnController.autoSizeAllColumns("api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},n([s.Autowired("columnController"),i("design:type",r.ColumnController)],e.prototype,"columnController",void 0),n([s.Bean("columnApi")],e)}();t.ColumnApi=a},45697:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a,l=o(44081),p=o(72493),u=o(22131),d=o(85910),c=o(47721),h=o(83423);!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(a||(a={}));var f=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setVisible(!1)},t.prototype.setWrapperTypeClass=function(e){h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===a.Loading),h._.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===a.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this;this.setWrapperTypeClass(a.Loading),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newLoadingOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setVisible(!0)},t.prototype.showNoRowsOverlay=function(){var e=this;this.setWrapperTypeClass(a.NoRows),this.destroyActiveOverlay();var t={api:this.gridOptionsWrapper.getApi()};this.userComponentFactory.newNoRowsOverlayComponent(t).then((function(t){e.eOverlayWrapper.appendChild(t.getGui()),e.activeOverlay=t})),this.setVisible(!0)},t.prototype.destroyActiveOverlay=function(){this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,h._.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setVisible(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyActiveOverlay()},t.TEMPLATE='<div class="ag-overlay">\n <div class="ag-overlay-panel" role="presentation">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',r([p.Autowired("gridOptionsWrapper"),s("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("userComponentFactory"),s("design:type",d.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([c.RefSelector("eOverlayWrapper"),s("design:type",HTMLElement)],t.prototype,"eOverlayWrapper",void 0),r([p.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(u.Component);t.OverlayWrapperComponent=f},45727:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_NEW_LINE=10,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e}();t.Constants=o},46379:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isPopup=function(){return!0},t}(o(22131).Component);t.PopupComponent=r},47008:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=void 0===o.g?{}:o.g;n.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,n.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,n.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,n.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,n.Node="undefined"==typeof Node?{}:Node,n.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var i=o(7897);t.ColumnFactory=i.ColumnFactory;var r=o(98239);t.ColumnController=r.ColumnController;var s=o(69734);t.ColumnKeyCreator=s.ColumnKeyCreator;var a=o(814);t.ColumnUtils=a.ColumnUtils;var l=o(31887);t.DisplayedGroupCreator=l.DisplayedGroupCreator;var p=o(12598);t.GroupInstanceIdCreator=p.GroupInstanceIdCreator;var u=o(97156);t.ComponentUtil=u.ComponentUtil;var d=o(80834);t.ColDefUtil=d.ColDefUtil;var c=o(36777);t.UserComponentRegistry=c.UserComponentRegistry;var h=o(85910);t.UserComponentFactory=h.UserComponentFactory;var f=o(75013);t.initialiseAgGridWithAngular1=f.initialiseAgGridWithAngular1;var g=o(61862);t.initialiseAgGridWithWebComponents=g.initialiseAgGridWithWebComponents;var m=o(8534);t.BeanStub=m.BeanStub;var y=o(72493);t.Context=y.Context,t.Autowired=y.Autowired,t.PostConstruct=y.PostConstruct,t.PreConstruct=y.PreConstruct,t.Optional=y.Optional,t.Bean=y.Bean,t.Qualifier=y.Qualifier,t.PreDestroy=y.PreDestroy;var v=o(47721);t.QuerySelector=v.QuerySelector,t.Listener=v.Listener,t.RefSelector=v.RefSelector;var C=o(58342);t.DragAndDropService=C.DragAndDropService,t.DragSourceType=C.DragSourceType,t.HDirection=C.HDirection,t.VDirection=C.VDirection;var w=o(25230);t.DragService=w.DragService;var E=o(26016);t.Column=E.Column;var _=o(74517);t.ColumnGroup=_.ColumnGroup;var R=o(34782);t.GridCell=R.GridCell;var O=o(3976);t.GridRow=O.GridRow;var b=o(72948);t.OriginalColumnGroup=b.OriginalColumnGroup;var S=o(15068);t.RowNode=S.RowNode;var P=o(13650);t.BaseFilter=P.BaseFilter;var A=o(34255);t.DateFilter=A.DateFilter;var T=o(55e3);t.FilterManager=T.FilterManager;var D=o(92378);t.NumberFilter=D.NumberFilter;var N=o(99104);t.TextFilter=N.TextFilter;var I=o(64229);t.GridPanel=I.GridPanel;var F=o(13887);t.ScrollVisibleService=F.ScrollVisibleService;var L=o(1571);t.MouseEventService=L.MouseEventService;var x=o(20080);t.BodyDropPivotTarget=x.BodyDropPivotTarget;var M=o(69992);t.BodyDropTarget=M.BodyDropTarget;var G=o(34506);t.CssClassApplier=G.CssClassApplier;var k=o(40706);t.HeaderContainer=k.HeaderContainer;var W=o(89929);t.HeaderRootComp=W.HeaderRootComp;var H=o(15774);t.HeaderRowComp=H.HeaderRowComp;var V=o(97177);t.HorizontalResizeService=V.HorizontalResizeService;var j=o(27887);t.MoveColumnController=j.MoveColumnController;var B=o(42726);t.StandardMenuFactory=B.StandardMenuFactory;var Y=o(88333);t.TabbedLayout=Y.TabbedLayout;var U=o(72955);t.VerticalStack=U.VerticalStack;var z=o(7760);t.simpleHttpRequest=z.simpleHttpRequest;var q=o(49281);t.LargeTextCellEditor=q.LargeTextCellEditor;var K=o(15724);t.PopupEditorWrapper=K.PopupEditorWrapper;var $=o(31923);t.PopupSelectCellEditor=$.PopupSelectCellEditor;var Z=o(5448);t.PopupTextCellEditor=Z.PopupTextCellEditor;var Q=o(84715);t.SelectCellEditor=Q.SelectCellEditor;var X=o(71616);t.TextCellEditor=X.TextCellEditor;var J=o(15959);t.AnimateShowChangeCellRenderer=J.AnimateShowChangeCellRenderer;var ee=o(30811);t.AnimateSlideCellRenderer=ee.AnimateSlideCellRenderer;var te=o(79886);t.GroupCellRenderer=te.GroupCellRenderer;var oe=o(38152);t.SetLeftFeature=oe.SetLeftFeature;var ne=o(41832);t.AutoWidthCalculator=ne.AutoWidthCalculator;var ie=o(34470);t.CellRendererFactory=ie.CellRendererFactory;var re=o(95125);t.CheckboxSelectionComponent=re.CheckboxSelectionComponent;var se=o(23054);t.CellComp=se.CellComp;var ae=o(19378);t.RowComp=ae.RowComp;var le=o(10042);t.RowRenderer=le.RowRenderer;var pe=o(93121);t.ValueFormatterService=pe.ValueFormatterService;var ue=o(24048);t.FilterStage=ue.FilterStage;var de=o(57498);t.FlattenStage=de.FlattenStage;var ce=o(18954);t.SortStage=ce.SortStage;var he=o(50580);t.PinnedRowModel=he.PinnedRowModel;var fe=o(719);t.ClientSideRowModel=fe.ClientSideRowModel;var ge=o(68363);t.ChangedPath=ge.ChangedPath;var me=o(28771);t.ClientSideNodeManager=me.ClientSideNodeManager;var ye=o(30971);t.InfiniteRowModel=ye.InfiniteRowModel;var ve=o(44329);t.RowNodeBlock=ve.RowNodeBlock;var Ce=o(84210);t.RowNodeBlockLoader=Ce.RowNodeBlockLoader;var we=o(41451);t.PaginationProxy=we.PaginationProxy;var Ee=o(65802);t.RowNodeCache=Ee.RowNodeCache;var _e=o(66490);t.StylingService=_e.StylingService;var Re=o(21951);t.AgCheckbox=Re.AgCheckbox;var Oe=o(32090);t.PopupWindow=Oe.PopupWindow;var be=o(57322);t.PopupMessageBox=be.PopupMessageBox;var Se=o(22131);t.Component=Se.Component;var Pe=o(46379);t.PopupComponent=Pe.PopupComponent;var Ae=o(73575);t.PopupService=Ae.PopupService;var Te=o(66419);t.TouchListener=Te.TouchListener;var De=o(43460);t.CsvCreator=De.CsvCreator,t.BaseCreator=De.BaseCreator;var Ne=o(33467);t.Downloader=Ne.Downloader;var Ie=o(59873);t.XmlFactory=Ie.XmlFactory;var Fe=o(42664);t.BaseGridSerializingSession=Fe.BaseGridSerializingSession,t.GridSerializer=Fe.GridSerializer;var Le=o(42664);t.RowType=Le.RowType;var xe=o(9018);t.ZipContainer=xe.ZipContainer;var Me=o(86895);t.BaseFrameworkFactory=Me.BaseFrameworkFactory;var Ge=o(38427);t.CellNavigationService=Ge.CellNavigationService;var ke=o(10190);t.AlignedGridsService=ke.AlignedGridsService;var We=o(45727);t.Constants=We.Constants;var He=o(65360);t.Grid=He.Grid;var Ve=o(40797);t.GridApi=Ve.GridApi;var je=o(85222);t.Events=je.Events;var Be=o(42195);t.FocusedCellController=Be.FocusedCellController;var Ye=o(44859);t.defaultGroupComparator=Ye.defaultGroupComparator;var Ue=o(44081);t.GridOptionsWrapper=Ue.GridOptionsWrapper;var ze=o(60843);t.EventService=ze.EventService;var qe=o(4889);t.SelectableService=qe.SelectableService;var Ke=o(81999);t.GridCore=Ke.GridCore;var $e=o(37132);t.Logger=$e.Logger;var Ze=o(54828);t.SelectionController=Ze.SelectionController;var Qe=o(86608);t.SortController=Qe.SortController;var Xe=o(92427);t.TemplateService=Xe.TemplateService;var Je=o(83423);t.Utils=Je.Utils,t.NumberSequence=Je.NumberSequence,t._=Je._,t.Promise=Je.Promise;var et=o(24463);t.ValueService=et.ValueService;var tt=o(40634);t.ExpressionService=tt.ExpressionService;var ot=o(37132);t.LoggerFactory=ot.LoggerFactory;var nt=o(44871);t.ColumnApi=nt.ColumnApi;var it=o(52814);t.BaseComponentWrapper=it.BaseComponentWrapper;var rt=o(59007);t.Environment=rt.Environment;var st=o(39984);t.TooltipManager=st.TooltipManager},47721:(e,t)=>{function o(e,t,o,n){null!==e?"number"!=typeof n?r(t,"querySelectors",{attributeName:o,querySelector:e}):console.error("ag-Grid: QuerySelector should be on an attribute"):console.error("ag-Grid: QuerySelector selector should not be null")}function n(e,t,o){null!==e?r(t,"listenerMethods",{methodName:o,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}function i(e,t,o){null!==e?r(t,"methods",{methodName:o,alias:e}):console.error("ag-Grid: EventListener eventName should not be null")}function r(e,t,o){var n=function(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}(e,e.constructor.name);n[t]||(n[t]=[]),n[t].push(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySelector=function(e){return o.bind(this,e)},t.RefSelector=function(e){return o.bind(this,"[ref="+e+"]")},t.Listener=function(e){return n.bind(this,e)},t.Method=function(e){return i.bind(this,e)}},48011:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(83423),l=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(s.GridOptionsWrapper.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");a._.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach((function(e){return e()})),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=a._.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(a._.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),a._.setVisible(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowContainerComponent=l},49281:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(46379),s=o(45727),a=o(83423),l=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.textarea=document.createElement("textarea"),this.textarea.maxLength=e.maxLength?e.maxLength:"200",this.textarea.cols=e.cols?e.cols:"60",this.textarea.rows=e.rows?e.rows:"10",a._.exists(e.value)&&(this.textarea.value=e.value.toString()),this.getGui().querySelector(".ag-large-textarea").appendChild(this.textarea),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==s.Constants.KEY_LEFT||t==s.Constants.KEY_UP||t==s.Constants.KEY_RIGHT||t==s.Constants.KEY_DOWN||e.shiftKey&&t==s.Constants.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.textarea.focus()},t.prototype.getValue=function(){return this.params.parseValue(this.textarea.value)},t.TEMPLATE='<div class="ag-large-text" tabindex="0"><div class="ag-large-textarea"></div></div>',t}(r.PopupComponent);t.LargeTextCellEditor=l},49498:(e,t,o)=>{t.AgGridReact=o(83684).AgGridReact,o(85397).AgGridColumn},50298:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(72493),p=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.init=function(e){var o=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),i=o.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(i)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',r([l.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(o(22131).Component);t.NoRowsOverlayComponent=p},50580:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(15068),a=o(72493),l=o(60843),p=o(63405),u=o(45727),d=o(44871),c=o(40797),h=o(83423),f=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return h._.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var o=t===u.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(h._.missingOrEmpty(o))return 0;for(var n=0;n<o.length;n++){var i=o[n];if(i.rowTop+i.rowHeight-1>=e)return n}return o.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:p.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var o=this,n=[];if(e){var i=0;e.forEach((function(e,r){var a=new s.RowNode;o.context.wireBean(a),a.data=e,a.rowPinned=t?u.Constants.PINNED_TOP:u.Constants.PINNED_BOTTOM,a.setRowTop(i),a.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(a).height),a.setRowIndex(r),i+=a.rowHeight,n.push(a)}))}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(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){h._.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){h._.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=e[e.length-1];return t.rowTop+t.rowHeight}return 0},n([a.Autowired("gridOptionsWrapper"),i("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),i("design:type",l.EventService)],e.prototype,"eventService",void 0),n([a.Autowired("context"),i("design:type",a.Context)],e.prototype,"context",void 0),n([a.Autowired("columnApi"),i("design:type",d.ColumnApi)],e.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),i("design:type",c.GridApi)],e.prototype,"gridApi",void 0),n([a.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([a.Bean("pinnedRowModel")],e)}();t.PinnedRowModel=f},51755:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8534),l=o(72493),p=o(60843),u=o(85222),d=o(83423),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return i(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,u.Events.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=d._.getScrollbarWidth(),this.maxDivHeight=d._.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:u.Events.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),r([l.Bean("maxDivHeightScaler")],t)}(a.BeanStub);t.MaxDivHeightScaler=c},52814:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.wrap=function(e,t,o,n){var i=this;void 0===o&&(o=[]);var r=this.createWrapper(e,n);return t.forEach((function(e){i.createMethod(r,e,!0)})),o.forEach((function(e){i.createMethod(r,e,!1)})),r},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();t.BaseComponentWrapper=o},54828:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(72493),a=o(72493),l=o(37132),p=o(60843),u=o(63405),d=o(72493),c=o(44081),h=o(72493),f=o(45727),g=o(44871),m=o(40797),y=o(83423),v=o(68363),C=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(u.Events.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(u.Events.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return y._.iterateObject(this.selectedNodes,(function(t,o){o&&e.push(o)})),e},e.prototype.getSelectedRows=function(){var e=[];return y._.iterateObject(this.selectedNodes,(function(t,o){o&&o.data&&e.push(o.data)})),e},e.prototype.removeGroupsFromSelection=function(){var e=this;y._.iterateObject(this.selectedNodes,(function(t,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)}))},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new v.ChangedPath(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,o={},n=0;return y._.iterateObject(this.selectedNodes,(function(i,r){if(r&&r.id!==e.id){var s=t.selectedNodes[r.id];n+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&r.parent&&(o[r.parent.id]=r.parent)}})),y._.iterateObject(o,(function(e,t){t.calculateSelectedFromChildren()})),n},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){y._.exists(t)&&e.id!==t.id&&y._.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t)},e.prototype.syncInNewRowNode=function(e){y._.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&console.warn("getBestCostNodeSelection is only available when using normal row model");var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(o){for(var n=0,i=o.length;n<i;n++){var r=o[n];r.isSelected()?t.push(r):r.group&&r.children&&e(r.children)}}(e),t}console.warn("selectAll not available doing rowModel=virtual")},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return y._.iterateObject(this.selectedNodes,(function(t,o){o&&e++})),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},o=this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else y._.iterateObject(this.selectedNodes,(function(e,o){o&&t(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var t=this.rowModel,o=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(o):t.forEachNode(o),this.rowModel.getType()===f.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var n={type:u.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var o=this.rowModel.getRow(e);this.selectNode(o,t)},n([d.Autowired("eventService"),i("design:type",p.EventService)],e.prototype,"eventService",void 0),n([d.Autowired("rowModel"),i("design:type",Object)],e.prototype,"rowModel",void 0),n([d.Autowired("gridOptionsWrapper"),i("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([d.Autowired("columnApi"),i("design:type",g.ColumnApi)],e.prototype,"columnApi",void 0),n([d.Autowired("gridApi"),i("design:type",m.GridApi)],e.prototype,"gridApi",void 0),n([r(0,a.Qualifier("loggerFactory")),i("design:type",Function),i("design:paramtypes",[l.LoggerFactory]),i("design:returntype",void 0)],e.prototype,"setBeans",null),n([h.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([s.Bean("selectionController")],e)}();t.SelectionController=C},55e3:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(83423),s=o(44081),a=o(73575),l=o(24463),p=o(98239),u=o(44871),d=o(72493),c=o(60843),h=o(63405),f=o(40797),g=o(85910),m=function(){function e(){this.allFilters={},this.quickFilter=null,this.quickFilterParts=null}var t;return t=e,e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.eventService.addEventListener(h.Events.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilter?this.quickFilterParts=this.quickFilter.split(" "):this.quickFilterParts=null},e.prototype.setFilterModel=function(e){var t=this,o=[];if(e){var n=Object.keys(e);r._.iterateObject(this.allFilters,(function(i,s){r._.removeFromArray(n,i);var a=e[i];t.setModelOnFilterWrapper(s.filterPromise,a),o.push(s.filterPromise)})),r._.iterateArray(n,(function(n){var i=t.columnController.getPrimaryColumn(n);if(i){var r=t.getOrCreateFilterWrapper(i,"NO_UI");t.setModelOnFilterWrapper(r.filterPromise,e[n]),o.push(r.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+n)}))}else r._.iterateObject(this.allFilters,(function(e,n){t.setModelOnFilterWrapper(n.filterPromise,null),o.push(n.filterPromise)}));r.Promise.all(o).then((function(e){t.onFilterChanged()}))},e.prototype.setModelOnFilterWrapper=function(e,t){e.then((function(e){"function"==typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")}))},e.prototype.getFilterModel=function(){var e={};return r._.iterateObject(this.allFilters,(function(t,o){var n=o.filterPromise.resolveNow(null,(function(e){return e}));if(null==n)return null;if("function"==typeof n.getModel){var i=n.getModel();r._.exists(i)&&(e[t]=i)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")})),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;r._.iterateObject(this.allFilters,(function(t,o){o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))&&(e=!0)})),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e){r._.iterateObject(this.allFilters,(function(t,o){var n=o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));o.column.setFilterActive(n,e)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){for(var o=e.data,n=Object.keys(this.allFilters),i=0,r=n.length;i<r;i++){var s=n[i],a=this.allFilters[s];if(void 0!==a){var l=a.filterPromise.resolveNow(void 0,(function(e){return e}));if(void 0!==l&&l!==t&&l.isFilterActive()){l.doesFilterPass||console.error("Filter is missing method doesFilterPass");var p={node:e,data:o};if(!l.doesFilterPass(p))return!1}}}return!0},e.prototype.parseQuickFilter=function(e){return r._.missing(e)||""===e?null:this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("ag-grid: quick filtering only works with the Client-side Row Model"),null)},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns("filterChanged"),this.checkExternalFilter(),r._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var e={type:h.Events.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e,t){var o=this,n=this.columnController.getAllColumnsForQuickFilter(),i=!1;return n.forEach((function(n){if(!i){var s=o.getQuickFilterTextForColumn(n,e);r._.exists(s)&&s.indexOf(t)>=0&&(i=!0)}})),i},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,o=!0,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.forEach((function(i){(n?t.doesRowPassQuickFilterCache(e,i):t.doesRowPassQuickFilterNoCache(e,i))||(o=!1)})),o},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e)||this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e)||this.advancedFilterPresent&&!this.doesFilterPass(e,t))},e.prototype.getQuickFilterTextForColumn=function(e,t){var o,n=this.valueService.getValue(e,t,!0),i=e.getColDef();if(e.getColDef().getQuickFilterText){var s={value:n,node:t,data:t.data,column:e,colDef:i};o=e.getColDef().getQuickFilterText(s)}else o=n;return r._.exists(o)?o.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var o=this,n=[];this.columnController.getAllColumnsForQuickFilter().forEach((function(t){var i=o.getQuickFilterTextForColumn(t,e);r._.exists(i)&&n.push(i)})),e.quickFilterAggregateText=n.join(t.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){r._.iterateObject(this.allFilters,(function(e,t){t.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(o){return t.valueService.getValue(e,o,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},e.prototype.getOrCreateFilterWrapper=function(e,t){var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allFilters[e.getColId()]=o),o},e.prototype.cachedFilter=function(e){return this.allFilters[e.getColId()]},e.prototype.createFilterInstance=function(e,t){var o=this,n="agTextColumnFilter";this.gridOptionsWrapper.isEnterprise()&&(n="agSetColumnFilter");var i=r._.cloneObject(e.getColDef()),s={type:h.Events.EVENT_FILTER_MODIFIED,api:this.gridApi,columnApi:this.columnApi},a=this.onFilterChanged.bind(this),l={api:this.gridOptionsWrapper.getApi(),column:e,colDef:i,rowModel:this.rowModel,filterChangedCallback:a,filterModifiedCallback:function(){return o.eventService.dispatchEvent(s)},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null,$scope:t};return this.userComponentFactory.newFilterComponent(i,l,n,(function(e,t){return r._.assign(e,{doesRowPassOtherFilter:o.doesRowPassOtherFilters.bind(o,t)})}))},e.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:r.Promise.external()};return o.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,o.filterPromise=this.createFilterInstance(e,o.scope),this.putIntoGui(o,t),o},e.prototype.putIntoGui=function(e,t){var o=this,n=document.createElement("div");n.className="ag-filter",e.filterPromise.then((function(i){var s=i.getGui();if(r._.missing(s)&&console.warn("getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=r._.loadTemplate(s)),n.appendChild(s),e.scope){var a=o.$compile(n)(e.scope);e.compiledElement=a,window.setTimeout((function(){return e.scope.$apply()}),0)}e.guiPromise.resolve(n),o.eventService.dispatchEvent({type:h.Events.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:n,api:o.gridApi,columnApi:o.columnApi})}))},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;r._.iterateObject(this.allFilters,(function(o,n){!e.columnController.getPrimaryColumn(n.column)&&(t=!0,e.disposeFilterWrapper(n,"filterDestroyed"))})),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allFilters[e.getColId()];o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then((function(n){n.setModel(null),n.destroy&&n.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),delete o.allFilters[e.column.getColId()]}))},e.prototype.destroy=function(){var e=this;r._.iterateObject(this.allFilters,(function(t,o){e.disposeFilterWrapper(o,"filterDestroyed")}))},e.QUICK_FILTER_SEPARATOR="\n",n([d.Autowired("$compile"),i("design:type",Object)],e.prototype,"$compile",void 0),n([d.Autowired("$scope"),i("design:type",Object)],e.prototype,"$scope",void 0),n([d.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([d.Autowired("popupService"),i("design:type",a.PopupService)],e.prototype,"popupService",void 0),n([d.Autowired("valueService"),i("design:type",l.ValueService)],e.prototype,"valueService",void 0),n([d.Autowired("columnController"),i("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([d.Autowired("rowModel"),i("design:type",Object)],e.prototype,"rowModel",void 0),n([d.Autowired("eventService"),i("design:type",c.EventService)],e.prototype,"eventService",void 0),n([d.Autowired("enterprise"),i("design:type",Boolean)],e.prototype,"enterprise",void 0),n([d.Autowired("context"),i("design:type",d.Context)],e.prototype,"context",void 0),n([d.Autowired("columnApi"),i("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),n([d.Autowired("gridApi"),i("design:type",f.GridApi)],e.prototype,"gridApi",void 0),n([d.Autowired("userComponentFactory"),i("design:type",g.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),n([d.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([d.PreDestroy,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"destroy",null),t=n([d.Bean("filterManager")],e)}();t.FilterManager=m},55090:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44871),a=o(98239),l=o(40797),p=o(44081),u=o(40634),d=o(10042),c=o(92427),h=o(24463),f=o(60843),g=o(64314),m=o(42195),y=o(34470),v=o(73575),C=o(93121),w=o(66490),E=o(93830),_=o(41451),R=o(69065),O=o(85910),b=o(58342),S=o(86608),P=o(55e3),A=o(51755),T=o(39984),D=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},n([r.Autowired("paginationProxy"),i("design:type",_.PaginationProxy)],e.prototype,"paginationProxy",void 0),n([r.Autowired("context"),i("design:type",r.Context)],e.prototype,"context",void 0),n([r.Autowired("columnApi"),i("design:type",s.ColumnApi)],e.prototype,"columnApi",void 0),n([r.Autowired("gridApi"),i("design:type",l.GridApi)],e.prototype,"gridApi",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("expressionService"),i("design:type",u.ExpressionService)],e.prototype,"expressionService",void 0),n([r.Autowired("rowRenderer"),i("design:type",d.RowRenderer)],e.prototype,"rowRenderer",void 0),n([r.Autowired("$compile"),i("design:type",Object)],e.prototype,"$compile",void 0),n([r.Autowired("templateService"),i("design:type",c.TemplateService)],e.prototype,"templateService",void 0),n([r.Autowired("valueService"),i("design:type",h.ValueService)],e.prototype,"valueService",void 0),n([r.Autowired("eventService"),i("design:type",f.EventService)],e.prototype,"eventService",void 0),n([r.Autowired("columnController"),i("design:type",a.ColumnController)],e.prototype,"columnController",void 0),n([r.Autowired("columnAnimationService"),i("design:type",g.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),n([r.Optional("rangeController"),i("design:type",Object)],e.prototype,"rangeController",void 0),n([r.Autowired("focusedCellController"),i("design:type",m.FocusedCellController)],e.prototype,"focusedCellController",void 0),n([r.Optional("contextMenuFactory"),i("design:type",Object)],e.prototype,"contextMenuFactory",void 0),n([r.Autowired("cellRendererFactory"),i("design:type",y.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),n([r.Autowired("popupService"),i("design:type",v.PopupService)],e.prototype,"popupService",void 0),n([r.Autowired("valueFormatterService"),i("design:type",C.ValueFormatterService)],e.prototype,"valueFormatterService",void 0),n([r.Autowired("stylingService"),i("design:type",w.StylingService)],e.prototype,"stylingService",void 0),n([r.Autowired("columnHoverService"),i("design:type",E.ColumnHoverService)],e.prototype,"columnHoverService",void 0),n([r.Autowired("enterprise"),i("design:type",Boolean)],e.prototype,"enterprise",void 0),n([r.Autowired("userComponentFactory"),i("design:type",O.UserComponentFactory)],e.prototype,"userComponentFactory",void 0),n([r.Autowired("animationFrameService"),i("design:type",R.AnimationFrameService)],e.prototype,"taskQueue",void 0),n([r.Autowired("dragAndDropService"),i("design:type",b.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([r.Autowired("sortController"),i("design:type",S.SortController)],e.prototype,"sortController",void 0),n([r.Autowired("filterManager"),i("design:type",P.FilterManager)],e.prototype,"filterManager",void 0),n([r.Autowired("maxDivHeightScaler"),i("design:type",A.MaxDivHeightScaler)],e.prototype,"maxDivHeightScaler",void 0),n([r.Autowired("tooltipManager"),i("design:type",T.TooltipManager)],e.prototype,"tooltipManager",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"postConstruct",null),n([r.Bean("beans")],e)}();t.Beans=D},57322:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(32090),l=o(72493),p=o(22131),u=o(47721),d=function(e){function t(t,o){var n=e.call(this)||this;return n.title=t,n.message=o,n}return i(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.setTitle(this.title);var o=new c;this.addFeature(this.getContext(),o),o.setMessage(this.message),this.setBody(o.getGui()),this.addDestroyableEventListener(o,"onBtOk",(function(){return t.closePopup()}))},t}(a.PopupWindow);t.PopupMessageBox=d;var c=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.setMessage=function(e){this.eCenter.innerText=e},t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eOk,"click",this.onBtOk.bind(this))},t.prototype.onBtOk=function(){this.dispatchEvent({type:"onBtOk"})},t.TEMPLATE='<div>\n <div ref="eCenter"></div>\n <div ref="eButtons">\n <button ref="eOk">OK</button>\n </div>\n </div>',r([u.RefSelector("eCenter"),s("design:type",HTMLElement)],t.prototype,"eCenter",void 0),r([u.RefSelector("eOk"),s("design:type",HTMLElement)],t.prototype,"eOk",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(p.Component)},57498:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(15068),a=o(44081),l=o(54828),p=o(60843),u=o(98239),d=o(83423),c=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=[],n={value:0},i=this.columnController.isPivotMode(),r=i&&t.leafGroup,s=r?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,n,i,0),!r&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,o,n,0)),o},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,n,i){if(!d._.missingOrEmpty(e))for(var r=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!a&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),p=0;p<e.length;p++){var u=e[p],c=u.hasChildren(),h=r&&c,f=n&&!c,g=a&&c&&1===u.childrenAfterGroup.length,m=l&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,y=n&&u.leafGroup,v=s&&u.expanded&&!y;if(!(f||h||v||g||m)&&this.addRowNodeToRowsToDisplay(u,t,o,i),!n||!u.leafGroup)if(c){var C=g||m;if(u.expanded||C){var w=C?i:i+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,n,w),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,o,i))}}else if(u.master&&u.expanded){var E=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(E,t,o,i)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,o,n){t.push(e);var i=this.gridOptionsWrapper.isGroupMultiAutoColumn();e.setUiLevel(i?0:n)},e.prototype.ensureFooterNodeExists=function(e){if(!d._.exists(e.sibling)){var t=new s.RowNode;this.context.wireBean(t),Object.keys(e).forEach((function(o){t[o]=e[o]})),t.footer=!0,t.rowTop=null,t.oldRowTop=null,d._.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createDetailNode=function(e){if(d._.exists(e.detailNode))return e.detailNode;var t=new s.RowNode;return this.context.wireBean(t),t.detail=!0,t.selectable=!1,t.flower=t.detail,t.parent=e,d._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,e.childFlower=e.detailNode,t},n([r.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("selectionController"),i("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),n([r.Autowired("eventService"),i("design:type",p.EventService)],e.prototype,"eventService",void 0),n([r.Autowired("context"),i("design:type",r.Context)],e.prototype,"context",void 0),n([r.Autowired("columnController"),i("design:type",u.ColumnController)],e.prototype,"columnController",void 0),n([r.Bean("flattenStage")],e)}();t.FlattenStage=c},58342:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s,a,l,p=o(37132),u=o(72493),d=o(44081),c=o(25230),h=o(98239),f=o(59007),g=o(83423);!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag"}(s=t.DragSourceType||(t.DragSourceType={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(a=t.VDirection||(t.VDirection={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(l=t.HDirection||(t.HDirection={}));var m=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var t;return t=e,e.prototype.init=function(){this.ePinnedIcon=g._.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.ePlusIcon=g._.createIcon("columnMoveAdd",this.gridOptionsWrapper,null),this.eHiddenIcon=g._.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=g._.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=g._.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=g._.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=g._.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=g._.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=g._.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=g._.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.setBeans=function(e){this.logger=e.create("OldToolPanelDragAndDropService")},e.prototype.getStringType=function(e){switch(e){case s.RowDrag:return"row";case s.HeaderCell:return"headerCell";case s.ToolPanel:return"toolPanel";default:return console.warn("ag-Grid: bug - unknown drag type "+e),null}},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},e.prototype.removeDragSource=function(e){var t=g._.find(this.dragSourceAndParamsList,(function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),g._.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.dragItemCallback(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.dragStarted&&this.dragSource.dragStarted(),this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.dragStopped&&this.dragSource.dragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(e,t){var o=this.workOutHDirection(e),n=this.workOutVDirection(e);this.eventLastTime=e,this.positionGhost(e);var i=g._.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(i!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,n,t),this.enterDragTargetIfExists(i,e,o,n,t),this.lastDropTarget=i;else if(i){var r=this.createDropTargetEvent(i,e,o,n,t);i.onDragging(r)}},e.prototype.enterDragTargetIfExists=function(e,t,o,n,i){if(e){var r=this.createDropTargetEvent(e,t,o,n,i);e.onDragEnter(r),this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,o,n){if(this.lastDropTarget){var i=this.createDropTargetEvent(this.lastDropTarget,e,t,o,n);this.lastDropTarget.onDragLeave(i),this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],o=e.getSecondaryContainers?e.getSecondaryContainers():null;return o&&(t=t.concat(o)),t},e.prototype.isMouseOnDropTarget=function(e,t){var o=this.getAllContainersFromDropTarget(t),n=!1;return o.forEach((function(t){if(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var i=e.clientX>=o.left&&e.clientX<=o.right,r=e.clientY>=o.top&&e.clientY<=o.bottom;i&&r&&(n=!0)}}})),!!n&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.workOutHDirection=function(e){return this.eventLastTime.clientX>e.clientX?l.Left:this.eventLastTime.clientX<e.clientX?l.Right:null},e.prototype.workOutVDirection=function(e){return this.eventLastTime.clientY>e.clientY?a.Up:this.eventLastTime.clientY<e.clientY?a.Down:null},e.prototype.createDropTargetEvent=function(e,t,o,n,i){var r=e.getContainer().getBoundingClientRect();return{event:t,x:t.clientX-r.left,y:t.clientY-r.top,vDirection:n,hDirection:o,dragSource:this.dragSource,fromNudge:i,dragItem:this.dragItem}},e.prototype.positionGhost=function(e){var t=this.eGhost.getBoundingClientRect().height,o=g._.getBodyWidth()-2,n=g._.getBodyHeight()-2,i=e.pageY-t/2,r=e.pageX-30,s=this.gridOptionsWrapper.getDocument(),a=window.pageYOffset||s.documentElement.scrollTop,l=window.pageXOffset||s.documentElement.scrollLeft;o>0&&r+this.eGhost.clientWidth>o+l&&(r=o+l-this.eGhost.clientWidth),r<0&&(r=0),n>0&&i+this.eGhost.clientHeight>n+a&&(i=n+a-this.eGhost.clientHeight),i<0&&(i=0),this.eGhost.style.left=r+"px",this.eGhost.style.top=i+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=g._.loadTemplate(t.GHOST_TEMPLATE);var e=this.environment.getTheme();e&&g._.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null),this.eGhost.querySelector(".ag-dnd-ghost-label").innerHTML=g._.escape(this.dragSource.dragItemName),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var o=this.gridOptionsWrapper.getDocument();this.eGhostParent=o.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,o){var n;switch(void 0===o&&(o=!1),g._.clearElement(this.eGhostIcon),e){case t.ICON_ADD:n=this.ePlusIcon;break;case t.ICON_PINNED:n=this.ePinnedIcon;break;case t.ICON_MOVE:n=this.eMoveIcon;break;case t.ICON_LEFT:n=this.eLeftIcon;break;case t.ICON_RIGHT:n=this.eRightIcon;break;case t.ICON_GROUP:n=this.eGroupIcon;break;case t.ICON_AGGREGATE:n=this.eAggregateIcon;break;case t.ICON_PIVOT:n=this.ePivotIcon;break;case t.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;default:n=this.eHiddenIcon}this.eGhostIcon.appendChild(n),g._.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",o)},e.ICON_PINNED="pinned",e.ICON_ADD="add",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost"> <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span> <div class="ag-dnd-ghost-label"> </div></div>',n([u.Autowired("gridOptionsWrapper"),i("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("dragService"),i("design:type",c.DragService)],e.prototype,"dragService",void 0),n([u.Autowired("environment"),i("design:type",f.Environment)],e.prototype,"environment",void 0),n([u.Autowired("columnController"),i("design:type",h.ColumnController)],e.prototype,"columnController",void 0),n([u.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r(0,u.Qualifier("loggerFactory")),i("design:type",Function),i("design:paramtypes",[p.LoggerFactory]),i("design:returntype",void 0)],e.prototype,"setBeans",null),n([u.PreDestroy,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"destroy",null),t=n([u.Bean("dragAndDropService")],e)}();t.DragAndDropService=m},59007:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(83423),a={"ag-theme-material":{headerHeight:56,virtualItemHeight:40,rowHeight:48},"ag-theme-classic":{headerHeight:25,virtualItemHeight:20,rowHeight:25},"ag-theme-balham":{headerHeight:32,virtualItemHeight:28,rowHeight:28}},l=function(){function e(){}return e.prototype.getSassVariable=function(e,t){return"ag-theme-material"==e?a["ag-theme-material"][t]:"ag-theme-balham"==e||"ag-theme-balham-dark"==e?a["ag-theme-balham"][t]:a["ag-theme-classic"][t]},e.prototype.getTheme=function(){for(var e,t=/\bag-(fresh|dark|blue|material|bootstrap|(?:theme-([\w\-]*)))\b/,o=this.eGridDiv;o&&(e=t.exec(o.className),null!=(o=o.parentElement)&&!e););if(e){var n=e[0];if(void 0===e[2]){var i=n.replace("ag-","ag-theme-");s._.doOnce((function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+n+" with "+i+".")}),"using-old-theme")}return n}},n([r.Autowired("eGridDiv"),i("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),n([r.Bean("environment")],e)}();t.Environment=l},59873:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var i=o(72493),r="\r\n",s=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.prototype.createXml=function(e,t){var o=this,n="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(i){n+=o.returnAttributeIfPopulated(e.prefix+i,e.map[i],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(i){n+=o.returnAttributeIfPopulated(i,e.properties.rawMap[i],t)})));var i="<"+e.name+n;return e.children||null!=e.textNode?null!=e.textNode?i+">"+e.textNode+"</"+e.name+">"+r:(i+=">\r\n",e.children&&e.children.forEach((function(e){i+=o.createXml(e,t)})),i+"</"+e.name+">"+r):i+"/>"+r},e.prototype.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var n=t;return"boolean"==typeof t&&o&&(n=o(t))," "+e+'="'+n+'"'},n([i.Bean("xmlFactory")],e)}();t.XmlFactory=s},60843:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(37132),a=o(72493),l=o(72493),p=o(44081),u=o(83423),d=function(){function e(){this.allSyncListeners={},this.allAsyncListeners={},this.globalSyncListeners=[],this.globalAsyncListeners=[],this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}var t;return t=e,e.prototype.setBeans=function(e,t,o){if(void 0===o&&(o=null),this.logger=e.create("EventService"),o){var n=t.useAsyncEvents();this.addGlobalListener(o,n)}},e.prototype.getListenerList=function(e,t){var o=t?this.allAsyncListeners:this.allSyncListeners,n=o[e];return n||(n=[],o[e]=n),n},e.prototype.addEventListener=function(e,t,o){void 0===o&&(o=!1);var n=this.getListenerList(e,o);n.indexOf(t)<0&&n.push(t)},e.prototype.addModalPriorityEventListener=function(e,o,n){void 0===n&&(n=!1),this.addEventListener(e+t.PRIORITY,o,n)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),t?this.globalAsyncListeners.push(e):this.globalSyncListeners.push(e)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var n=this.getListenerList(e,o);u._.removeFromArray(n,t)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),t?u._.removeFromArray(this.globalAsyncListeners,e):u._.removeFromArray(this.globalSyncListeners,e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,o){var n=this,i=o?this.globalAsyncListeners:this.globalSyncListeners,r=e.type,s=this.getListenerList(r+t.PRIORITY,o);u._.forEachSnapshotFirst(s,(function(t){o?n.dispatchAsync((function(){return t(e)})):t(e)}));var a=this.getListenerList(r,o);u._.forEachSnapshotFirst(a,(function(t){o?n.dispatchAsync((function(){return t(e)})):t(e)})),u._.forEachSnapshotFirst(i,(function(t){o?n.dispatchAsync((function(){return t(r,e)})):t(r,e)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},e.PRIORITY="-P1",n([r(0,l.Qualifier("loggerFactory")),r(1,l.Qualifier("gridOptionsWrapper")),r(2,l.Qualifier("globalEventListener")),i("design:type",Function),i("design:paramtypes",[s.LoggerFactory,p.GridOptionsWrapper,Function]),i("design:returntype",void 0)],e.prototype,"setBeans",null),t=n([a.Bean("eventService")],e)}();t.EventService=d},61862:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(97156),i=o(65360),r=!1;t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!r){r=!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 e=Object.create(HTMLElement.prototype);n.ComponentUtil.ALL_PROPERTIES.forEach((function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})}));var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var o={};o[e]={currentValue:t},this.onChange(o)},t.onChange=function(e){this._initialised&&n.ComponentUtil.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=n.ComponentUtil.copyAttributesToGridOptions(e,this);var o={globalEventListener:t};this._agGrid=new i.Grid(this,this._gridOptions,o),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t,o="string"==typeof(t=e.nodeName)?t.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()})):t,i=e.nodeValue;n.ComponentUtil.ALL_PROPERTIES.indexOf(o)>=0&&(this[o]=i)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var o=e.toLowerCase(),n=new Event(o);n.agGridDetails=t,this.dispatchEvent(n);var i="on"+o;"function"==typeof this[i]&&this[i](n)},document.registerElement("ag-grid",{prototype:e})}}},63405:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(85222);t.Events=n.Events},64229:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(98239),p=o(44871),u=o(10042),d=o(72493),c=o(60843),h=o(63405),f=o(25230),g=o(45727),m=o(1571),y=o(42195),v=o(13887),C=o(48011),w=o(41451),E=o(15724),_=o(10190),R=o(50580),O=o(40797),b=o(69065),S=o(19378),P=o(8894),A=o(24463),T=o(66419),D=o(58342),N=o(36819),I=o(51755),F=o(45697),L=o(22131),x=o(23801),M=o(64314),G=o(41832),k=o(55090),W=o(47721),H=o(89929),V=o(68198),j=o(83423),B=function(e){function t(){var t=e.call(this,'<div class="ag-root ag-unselectable" role="grid" unselectable="on">\n <ag-header-root ref="headerRoot" unselectable="on"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-top" ref="eLeftTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-viewport" ref="eTopViewport" role="presentation" unselectable="on">\n <div class="ag-floating-top-container" ref="eTopContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-top" ref="eRightTop" role="presentation" unselectable="on"></div>\n <div class="ag-floating-top-full-width-container" ref="eTopFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation" unselectable="on">\n <div class="ag-pinned-left-cols-container" ref="eLeftContainer" role="presentation" unselectable="on"></div>\n <div class="ag-center-cols-clipper" ref="eCenterColsClipper">\n <div class="ag-center-cols-viewport" ref="eCenterViewport" role="presentation" unselectable="on">\n <div class="ag-center-cols-container" ref="eCenterContainer" role="presentation" unselectable="on"></div>\n </div>\n </div>\n <div class="ag-pinned-right-cols-container" ref="eRightContainer" role="presentation" unselectable="on"></div>\n <div class="ag-full-width-container" ref="eFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation" unselectable="on">\n <div class="ag-pinned-left-floating-bottom" ref="eLeftBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-viewport" ref="eBottomViewport" role="presentation" unselectable="on">\n <div class="ag-floating-bottom-container" ref="eBottomContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-pinned-right-floating-bottom" ref="eRightBottom" role="presentation" unselectable="on"></div>\n <div class="ag-floating-bottom-full-width-container" ref="eBottomFullWidthContainer" role="presentation" unselectable="on"></div>\n </div>\n <div class="ag-body-horizontal-scroll" ref="eHorizontalScrollBody">\n <div class="ag-horizontal-left-spacer" ref="eHorizontalLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eBodyHorizontalScrollViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eBodyHorizontalScrollContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eHorizontalRightSpacer"></div>\n </div>\n <ag-overlay-wrapper ref="overlayWrapper"></ag-overlay-wrapper>\n </div>')||this;return t.scrollLeft=-1,t.scrollTop=-1,t.resetLastHorizontalScrollElementDebounce=j._.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return i(t,e),t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},t.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},t.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},t.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===g.Constants.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.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.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach((function(t){var o=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc((function(){return o()}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===g.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},t.prototype.onCenterViewportResized=function(){this.checkViewportAndScrolls()},t.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eCenterContainer,this.eBottom].forEach((function(t){return j._.addOrRemoveCssClass(t,"ag-selectable",e)}))},t.prototype.addRowDragListener=function(){var e=new N.RowDragFeature(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e)},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var o=!1,n=t.relatedTarget;j._.exists(n)&&!o;){var i=!!e.gridOptionsWrapper.getDomData(n,E.PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER),r=e.eBodyViewport===n||e.eBottom===n||e.eTop===n;o=i||r,n=n.parentNode}o||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},t.prototype.addAngularApplyCheck=function(){var e=this,t=!1,o=function(){t||(t=!0,window.setTimeout((function(){t=!1,e.$scope.$apply()}),0))};this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},t.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},t.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!j._.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach((function(t){var o={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController),skipMouseEvent:function(e){return e.shiftKey}};e.dragService.addDragSource(o),e.addDestroyFunc((function(){return e.dragService.removeDragSource(o)}))}))},t.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach((function(t){var o=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach((function(n){return e.addDestroyableEventListener(n,t,o)}))}))},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var o=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach((function(n){e.addDestroyableEventListener(n,t,o,!0)}))}))},t.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",(function(t){var o=j._.getTarget(t);o!==e.eBodyViewport&&o!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))}))},t.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},t.prototype.getRowForEvent=function(e){for(var t=j._.getTarget(e);t;){var o=this.gridOptionsWrapper.getDomData(t,S.RowComp.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;t=t.parentElement}return null},t.prototype.processKeyboardEvent=function(e,t){var o=j._.getCellCompForEvent(this.gridOptionsWrapper,t),n=o.getRenderedRow().getRowNode(),i=o.getColumn(),r=o.isEditing();if(o){if(j._.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,n,i,r))t.preventDefault();else switch(e){case"keydown":this.navigationService.handlePageScrollingKey(t)||o.onKeyDown(t),this.doClipboardOperations(t,o);break;case"keypress":o.onKeyPress(t)}if("keydown"===e){var s=o.createEvent(t,h.Events.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(s)}if("keypress"===e){var a=o.createEvent(t,h.Events.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(a)}}},t.prototype.doClipboardOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case g.Constants.KEY_A:return this.onCtrlAndA(e);case g.Constants.KEY_C:return this.onCtrlAndC(e);case g.Constants.KEY_V:return this.onCtrlAndV();case g.Constants.KEY_D:return this.onCtrlAndD(e)}},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!j._.isStopPropagationForAgGrid(t)){var o=this.getRowForEvent(t),n=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,o,n):(n&&n.onMouseEvent(e,t),o&&o.onMouseEvent(e,t)),this.preventDefaultOnContextMenu(t)}},t.prototype.mockContextMenuForIPad=function(){var e=this;j._.isUserAgentIPad()&&this.eAllCellContainers.forEach((function(t){var o=new T.TouchListener(t);e.addDestroyableEventListener(o,T.TouchListener.EVENT_LONG_TAP,(function(t){var o=e.getRowForEvent(t.touchEvent),n=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,n)})),e.addDestroyFunc((function(){return o.destroy()}))}))},t.prototype.handleContextMenuMouseEvent=function(e,t,o,n){var i=o?o.getRowNode():null,r=n?n.getColumn():null,s=null;if(r){var a=e||t;n.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(r,i)}this.onContextMenu(e,t,i,r,s)},t.prototype.onContextMenu=function(e,t,o,n,i){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var r=e||t.touches[0];this.contextMenuFactory.showMenu(o,n,i,r),(e||t).preventDefault()}},t.prototype.preventDefaultOnContextMenu=function(e){this.gridOptionsWrapper.isSuppressMiddleClickScrolls()&&2===e.which&&e.preventDefault()},t.prototype.onCtrlAndA=function(e){var t=this,o=t.columnController,n=t.pinnedRowModel,i=t.paginationProxy,r=t.rangeController,s=g.Constants.PINNED_BOTTOM,a=g.Constants.PINNED_TOP;if(r&&i.isRowsToRender()){var l=[n.isEmpty(a),n.isEmpty(s)],p=l[0]?null:a,u=void 0,d=void 0;l[1]?(u=null,d=this.paginationProxy.getTotalRowCount()-1):(u=s,d=n.getPinnedBottomRowData().length-1);var c=o.getAllDisplayedColumns();if(j._.missingOrEmpty(c))return;r.setRange({rowStart:0,floatingStart:p,rowEnd:d,floatingEnd:u,columnStart:c[0],columnEnd:c[c.length-1]})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()){var t=this.focusedCellController.getFocusedCell();this.clipboardService.copyToClipboard(),e.preventDefault(),t&&this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.floating,!0)}},t.prototype.onCtrlAndV=function(){this.enterprise&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.enterprise&&(this.clipboardService.copyRangeDown(),e.preventDefault())},t.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var o=this.paginationProxy.getTotalRowCount();if("number"!=typeof e||e<0||e>=o)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var n,i=this.paginationProxy.getRow(e);do{var r=i.rowTop,s=i.rowHeight,a=this.paginationProxy.getPixelOffset(),l=i.rowTop-a,p=l+i.rowHeight,u=this.getVScrollPosition(),d=this.heightScaler.getOffset(),c=u.top+d,h=u.bottom+d,f=h-c,g=this.heightScaler.getScrollPositionForPixel(l),m=this.heightScaler.getScrollPositionForPixel(p-f),y=Math.min((g+m)/2,l),v=null;"top"===t?v=g:"bottom"===t?v=m:"middle"===t?v=y:c>l?v=g:h<p&&(v=m),null!==v&&(this.eBodyViewport.scrollTop=v,this.rowRenderer.redrawAfterScroll()),n=r!==i.rowTop||s!==i.rowHeight}while(n);this.animationFrameService.flushAllFrames()}}},t.prototype.getCenterWidth=function(){return this.eCenterViewport.clientWidth},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return j._.addOrRemoveCssClass(this.eBodyViewport,"ag-force-vertical-scroll",e),e||j._.isVerticalScrollShowing(this.eBodyViewport)},t.prototype.isHorizontalScrollShowing=function(){return j._.isHorizontalScrollShowing(this.eCenterViewport)},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.setPinnedContainerSize()},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:!1,verticalScrollShowing:!1};e.verticalScrollShowing=this.isVerticalScrollShowing(),e.horizontalScrollShowing=this.isHorizontalScrollShowing(),this.scrollVisibleService.setScrollsVisible(e),this.setHorizontalScrollVisible(e.horizontalScrollShowing),this.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.setHorizontalScrollVisible=function(e){var t=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=t?0:o,i=j._.isBrowserIE()&&e;this.eCenterViewport.style.height="calc(100% + "+o+"px)",j._.setFixedHeight(this.eHorizontalScrollBody,n),j._.setFixedHeight(this.eBodyHorizontalScrollViewport,n+(i?1:0)),i&&(this.eBodyHorizontalScrollViewport.style.bottom="1px"),j._.setFixedHeight(this.eBodyHorizontalScrollContainer,n)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.eTop.style.overflowY=this.eBottom.style.overflowY=t,this.setFakeHScrollSpacerWidths()},t.prototype.ensureColumnVisible=function(e){var t=this.columnController.getGridColumn(e);if(t)if(t.isPinned())console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());else if(this.columnController.isColumnDisplayed(t)){var o,n,i=t.getLeft(),r=i+t.getActualWidth(),s=this.eCenterViewport.clientWidth,a=this.getCenterViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(o=l-a-s,n=l-a):(o=a,n=s+a);var p=o>i,u=n<r,d=s<t.getActualWidth(),c=p||d,h=u,f=this.getCenterViewportScrollLeft();(c||h)&&(f=this.enableRtl?c?l-s-i:l-r:c?i:r-s,this.setCenterViewportScrollLeft(f)),this.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}else console.warn("column is not currently visible")},t.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.overlayWrapper.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.overlayWrapper.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapper.hideOverlay()},t.prototype.sizeColumnsToFit=function(e){var t=this,o=this.eBodyViewport.clientWidth;o>0?this.columnController.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.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?")},t.prototype.getCenterContainer=function(){return this.eCenterContainer},t.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},t.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},t.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},t.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new C.RowContainerComponent({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new C.RowContainerComponent({eContainer:this.eFullWidthContainer}),pinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftContainer}),pinnedRight:new C.RowContainerComponent({eContainer:this.eRightContainer}),floatingTop:new C.RowContainerComponent({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftTop}),floatingTopPinnedRight:new C.RowContainerComponent({eContainer:this.eRightTop}),floatingTopFullWidth:new C.RowContainerComponent({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new C.RowContainerComponent({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new C.RowContainerComponent({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new C.RowContainerComponent({eContainer:this.eRightBottom}),floatingBottomFullWith:new C.RowContainerComponent({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},j._.iterateObject(this.rowContainerComponents,(function(t,o){o&&e.getContext().wireBean(o)}))},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();j._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),j._.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_HEIGHT_SCALE_CHANGED,t)},t.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0})),this.addDestroyableEventListener(this.eBottomViewport,"scroll",(function(){return e.eTopViewport.scrollLeft=0}))},t.prototype.getRowContainers=function(){return this.rowContainerComponents},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},t.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},t.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth()),this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},t.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,o=this.columnController.getPinnedLeftContainerWidth(),n=this.pinningLeft=!this.printLayout&&o>0,i=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==n&&this.headerRootComp.setLeftVisible(n),i.forEach((function(t){return j._.setVisible(t,e.pinningLeft)})),n&&i.forEach((function(e){return j._.setFixedWidth(e,o)}))},t.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),o=this.pinningRight=!this.printLayout&&t>0,n=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==o&&this.headerRootComp.setRightVisible(o),n.forEach((function(e){return j._.setVisible(e,o)})),o&&n.forEach((function(e){return j._.setFixedWidth(e,t)}))},t.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),j._.setFixedWidth(this.eHorizontalRightSpacer,e),j._.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),j._.setFixedWidth(this.eHorizontalLeftSpacer,t),j._.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},t.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:h.Events.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.setHeaderAndFloatingHeights=function(){var e,t,o,n=this,i=n.columnController,r=n.gridOptionsWrapper,s=n.pinnedRowModel,a=n.eTop,l=n.eBottom,p=0,u=i.getHeaderRowCount();i.isPivotMode()?(p=0,t=r.getPivotGroupHeaderHeight(),o=r.getPivotHeaderHeight()):(r.isFloatingFilter()&&u++,p=r.isFloatingFilter()?1:0,t=r.getGroupHeaderHeight(),o=r.getHeaderHeight());var d=u-(1+p);e=p*r.getFloatingFiltersHeight(),e+=d*t,e+=o,this.headerRootComp.setHeight(e);var c=s.getPinnedTopTotalHeight();c&&(c+=1);var h=s.getPinnedBottomTotalHeight();h&&(h+=1);var f=c+"px",g=h+"px";a.style.minHeight=f,a.style.height=f,a.style.display=c?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=h?"inherit":"none",this.checkBodyHeight()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.scrollTop=e,this.animationFrameService.setScrollTop(e),this.redrawRowsAfterScroll()},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},t.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,o=t.scrollWidth,n=t.clientWidth,i=Math.floor(j._.getScrollLeft(e,this.enableRtl));i<0||i+n>o||(this.doHorizontalScroll(i),this.resetLastHorizontalScrollElementDebounce())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:h.Events.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},t.prototype.redrawRowsAfterScroll=function(){var e={type:h.Events.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},t.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},t.prototype.getCenterViewportScrollLeft=function(){return j._.getScrollLeft(this.eCenterViewport,this.enableRtl)},t.prototype.setCenterViewportScrollLeft=function(e){j._.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,o=this.eCenterViewport,n=o.clientWidth,i=o.scrollWidth;if(!(Math.abs(t)+n>i||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var r=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;j._.setScrollLeft(r,e,this.enableRtl)}},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},r([d.Autowired("alignedGridsService"),s("design:type",_.AlignedGridsService)],t.prototype,"alignedGridsService",void 0),r([d.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([d.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([d.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([d.Autowired("pinnedRowModel"),s("design:type",R.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),r([d.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([d.Autowired("animationFrameService"),s("design:type",b.AnimationFrameService)],t.prototype,"animationFrameService",void 0),r([d.Autowired("navigationService"),s("design:type",P.NavigationService)],t.prototype,"navigationService",void 0),r([d.Autowired("autoHeightCalculator"),s("design:type",x.AutoHeightCalculator)],t.prototype,"autoHeightCalculator",void 0),r([d.Autowired("columnAnimationService"),s("design:type",M.ColumnAnimationService)],t.prototype,"columnAnimationService",void 0),r([d.Autowired("autoWidthCalculator"),s("design:type",G.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),r([d.Autowired("paginationAutoPageSizeService"),s("design:type",w.PaginationAutoPageSizeService)],t.prototype,"paginationAutoPageSizeService",void 0),r([d.Autowired("beans"),s("design:type",k.Beans)],t.prototype,"beans",void 0),r([d.Autowired("paginationProxy"),s("design:type",w.PaginationProxy)],t.prototype,"paginationProxy",void 0),r([d.Autowired("columnApi"),s("design:type",p.ColumnApi)],t.prototype,"columnApi",void 0),r([d.Autowired("gridApi"),s("design:type",O.GridApi)],t.prototype,"gridApi",void 0),r([d.Autowired("dragService"),s("design:type",f.DragService)],t.prototype,"dragService",void 0),r([d.Autowired("mouseEventService"),s("design:type",m.MouseEventService)],t.prototype,"mouseEventService",void 0),r([d.Autowired("focusedCellController"),s("design:type",y.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([d.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([d.Autowired("scrollVisibleService"),s("design:type",v.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),r([d.Autowired("valueService"),s("design:type",A.ValueService)],t.prototype,"valueService",void 0),r([d.Autowired("dragAndDropService"),s("design:type",D.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([d.Autowired("maxDivHeightScaler"),s("design:type",I.MaxDivHeightScaler)],t.prototype,"heightScaler",void 0),r([d.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),r([d.Autowired("resizeObserverService"),s("design:type",V.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),r([d.Optional("rangeController"),s("design:type",Object)],t.prototype,"rangeController",void 0),r([d.Optional("contextMenuFactory"),s("design:type",Object)],t.prototype,"contextMenuFactory",void 0),r([d.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),r([W.RefSelector("eBodyViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyViewport",void 0),r([W.RefSelector("eCenterContainer"),s("design:type",HTMLElement)],t.prototype,"eCenterContainer",void 0),r([W.RefSelector("eCenterViewport"),s("design:type",HTMLElement)],t.prototype,"eCenterViewport",void 0),r([W.RefSelector("eLeftContainer"),s("design:type",HTMLElement)],t.prototype,"eLeftContainer",void 0),r([W.RefSelector("eRightContainer"),s("design:type",HTMLElement)],t.prototype,"eRightContainer",void 0),r([W.RefSelector("eCenterColsClipper"),s("design:type",HTMLElement)],t.prototype,"eCenterColsClipper",void 0),r([W.RefSelector("eHorizontalScrollBody"),s("design:type",HTMLElement)],t.prototype,"eHorizontalScrollBody",void 0),r([W.RefSelector("eHorizontalLeftSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalLeftSpacer",void 0),r([W.RefSelector("eHorizontalRightSpacer"),s("design:type",HTMLElement)],t.prototype,"eHorizontalRightSpacer",void 0),r([W.RefSelector("eBodyHorizontalScrollViewport"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollViewport",void 0),r([W.RefSelector("eBodyHorizontalScrollContainer"),s("design:type",HTMLElement)],t.prototype,"eBodyHorizontalScrollContainer",void 0),r([W.RefSelector("eFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eFullWidthContainer",void 0),r([W.RefSelector("eTop"),s("design:type",HTMLElement)],t.prototype,"eTop",void 0),r([W.RefSelector("eLeftTop"),s("design:type",HTMLElement)],t.prototype,"eLeftTop",void 0),r([W.RefSelector("eRightTop"),s("design:type",HTMLElement)],t.prototype,"eRightTop",void 0),r([W.RefSelector("eTopContainer"),s("design:type",HTMLElement)],t.prototype,"eTopContainer",void 0),r([W.RefSelector("eTopViewport"),s("design:type",HTMLElement)],t.prototype,"eTopViewport",void 0),r([W.RefSelector("eTopFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eTopFullWidthContainer",void 0),r([W.RefSelector("eBottom"),s("design:type",HTMLElement)],t.prototype,"eBottom",void 0),r([W.RefSelector("eLeftBottom"),s("design:type",HTMLElement)],t.prototype,"eLeftBottom",void 0),r([W.RefSelector("eRightBottom"),s("design:type",HTMLElement)],t.prototype,"eRightBottom",void 0),r([W.RefSelector("eBottomContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomContainer",void 0),r([W.RefSelector("eBottomViewport"),s("design:type",HTMLElement)],t.prototype,"eBottomViewport",void 0),r([W.RefSelector("eBottomFullWidthContainer"),s("design:type",HTMLElement)],t.prototype,"eBottomFullWidthContainer",void 0),r([W.RefSelector("headerRoot"),s("design:type",H.HeaderRootComp)],t.prototype,"headerRootComp",void 0),r([W.RefSelector("overlayWrapper"),s("design:type",F.OverlayWrapperComponent)],t.prototype,"overlayWrapper",void 0),r([d.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(L.Component);t.GridPanel=B},64314:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Bean("columnAnimationService")],e)}();t.ColumnAnimationService=a},65360:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(44081),i=o(54828),r=o(44871),s=o(98239),a=o(10042),l=o(89929),p=o(55e3),u=o(24463),d=o(60843),c=o(64229),h=o(40797),f=o(7897),g=o(31887),m=o(40634),y=o(92427),v=o(73575),C=o(37132),w=o(814),E=o(41832),_=o(97177),R=o(72493),O=o(43460),b=o(81999),S=o(42726),P=o(58342),A=o(25230),T=o(86608),D=o(42195),N=o(1571),I=o(38427),F=o(24048),L=o(18954),x=o(57498),M=o(63405),G=o(30971),k=o(719),W=o(34470),H=o(93121),V=o(21951),j=o(86895),B=o(13887),Y=o(33467),U=o(59873),z=o(42664),q=o(66490),K=o(93830),$=o(64314),Z=o(2461),Q=o(663),X=o(43878),J=o(41451),ee=o(76133),te=o(45727),oe=o(88842),ne=o(6065),ie=o(10190),re=o(50580),se=o(85910),ae=o(36777),le=o(69638),pe=o(22743),ue=o(55090),de=o(59007),ce=o(69065),he=o(8894),fe=o(51755),ge=o(4889),me=o(23801),ye=o(21914),ve=o(68198),Ce=o(9018),we=o(83423),Ee=o(39984),_e=o(45697),Re=function(){function e(t,o,M){t||console.error("ag-Grid: no div element provided to the grid"),o||console.error("ag-Grid: no gridOptions provided to the grid"),this.gridOptions=o;var G=this.getRowModelClass(o),k=we._.exists(e.enterpriseBeans),te=M?M.frameworkFactory:null;we._.missing(te)&&(te=new j.BaseFrameworkFactory);var Re=[];e.enterpriseBeans&&(Re=Re.concat(e.enterpriseBeans)),e.frameworkBeans&&(Re=Re.concat(e.frameworkBeans));var Oe={enterprise:k,gridOptions:o,eGridDiv:t,$scope:M?M.$scope:null,$compile:M?M.$compile:null,quickFilterOnScope:M?M.quickFilterOnScope:null,globalEventListener:M?M.globalEventListener:null,frameworkFactory:te};M&&M.seedBeanInstances&&we._.assign(Oe,M.seedBeanInstances);var be=[{componentName:"AgCheckbox",theClass:V.AgCheckbox},{componentName:"AgGridComp",theClass:c.GridPanel},{componentName:"AgHeaderRoot",theClass:l.HeaderRootComp},{componentName:"AgPagination",theClass:ye.PaginationComp},{componentName:"AgOverlayWrapper",theClass:_e.OverlayWrapperComponent}];e.enterpriseComponents&&(be=be.concat(e.enterpriseComponents));var Se={overrideBeans:Re,seed:Oe,beans:[G,ue.Beans,J.PaginationAutoPageSizeService,h.GridApi,ae.UserComponentRegistry,le.AgComponentUtils,pe.ComponentMetadataProvider,ve.ResizeObserverService,ae.UserComponentRegistry,se.UserComponentFactory,fe.MaxDivHeightScaler,me.AutoHeightCalculator,W.CellRendererFactory,_.HorizontalResizeService,re.PinnedRowModel,A.DragService,g.DisplayedGroupCreator,d.EventService,n.GridOptionsWrapper,v.PopupService,i.SelectionController,p.FilterManager,s.ColumnController,J.PaginationProxy,a.RowRenderer,m.ExpressionService,f.ColumnFactory,O.CsvCreator,Y.Downloader,U.XmlFactory,z.GridSerializer,y.TemplateService,ie.AlignedGridsService,he.NavigationService,v.PopupService,oe.ValueCache,u.ValueService,C.LoggerFactory,w.ColumnUtils,E.AutoWidthCalculator,S.StandardMenuFactory,P.DragAndDropService,r.ColumnApi,D.FocusedCellController,N.MouseEventService,de.Environment,I.CellNavigationService,F.FilterStage,L.SortStage,x.FlattenStage,Q.FilterService,H.ValueFormatterService,q.StylingService,B.ScrollVisibleService,T.SortController,K.ColumnHoverService,$.ColumnAnimationService,Z.SortService,ge.SelectableService,X.AutoGroupColService,ee.ImmutableService,ne.ChangeDetectionService,ce.AnimationFrameService,Ee.TooltipManager,Ce.ZipContainer],components:be,enterpriseDefaultComponents:e.enterpriseDefaultComponents,debug:!!o.debug};this.logger=new C.Logger("ag-Grid",(function(){return o.debug}));var Pe=new C.Logger("Context",(function(){return Se.debug}));this.context=new R.Context(Se,Pe);var Ae=new b.GridCore;this.context.wireBean(Ae),this.setColumnsAndData(),this.dispatchGridReadyEvent(o),this.logger.log("initialised successfully, enterprise = "+k)}return e.setEnterpriseBeans=function(t,o){this.enterpriseBeans=t,we._.iterateObject(o,(function(t,o){return e.RowModelClasses[t]=o}))},e.setEnterpriseComponents=function(e){this.enterpriseComponents=e},e.setFrameworkBeans=function(e){this.frameworkBeans=e},e.setEnterpriseDefaultComponents=function(e){this.enterpriseDefaultComponents=e},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),o=this.context.getBean("rowModel"),n=e.getColumnDefs(),i=e.getRowData();we._.missing(n)&&we._.missing(i)||(we._.exists(n)&&t.setColumnDefs(n,"gridInitializing"),we._.exists(i)&&o.getType()===te.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&o.setRowData(i))},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),o={type:M.Events.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(o)},e.prototype.getRowModelClass=function(t){var o=t.rowModelType;if(o="enterprise"===o?te.Constants.ROW_MODEL_TYPE_SERVER_SIDE:o,we._.exists(o)){var n=e.RowModelClasses[o];if(we._.exists(n))return n;if("normal"===o)return console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),k.ClientSideRowModel;console.error("ag-Grid: could not find matching row model for rowModelType "+o),o===te.Constants.ROW_MODEL_TYPE_VIEWPORT&&console.error("ag-Grid: rowModelType viewport is only available in ag-Grid Enterprise"),o===te.Constants.ROW_MODEL_TYPE_SERVER_SIDE&&console.error("ag-Grid: rowModelType server side is only available in ag-Grid Enterprise")}return k.ClientSideRowModel},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e.RowModelClasses={infinite:G.InfiniteRowModel,clientSide:k.ClientSideRowModel},e}();t.Grid=Re},65802:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(8534),s=o(44329),a=o(83423),l=function(e){function t(t){var o=e.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=t.initialRowCount,o.cacheParams=t,o}return i(t,e),t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.forEachBlockInOrder((function(e){return t.destroyBlock(e)}))},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc((function(){return e.active=!1}))},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,n=[];this.forEachBlockInOrder((function(t){t!==e&&n.push(t)})),n.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var i=this.cacheParams.maxBlocksInCache>0,r=i?this.cacheParams.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach((function(e,t){if(e.getState()===s.RowNodeBlock.STATE_DIRTY&&t>=a||i&&t>=r){if(e.isAnyNodeOpen(o.virtualRowCount))return;o.removeBlockFromCache(e)}}))},t.prototype.postCreateBlock=function(e){e.addEventListener(s.RowNodeBlock.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var o=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount<o?(this.virtualRowCount=o,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,a._.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var o=this;this.forEachBlockInOrder((function(n){n.forEachNodeDeep(e,t,o.virtualRowCount)}))},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var o=this;e.forEach((function(e){var n=o.blocks[e];t(n,e)}))},t.prototype.getBlockIdsSorted=function(){return Object.keys(this.blocks).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t}))},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder((function(t){return e.removeBlockFromCache(t)})),this.virtualRowCount=this.cacheParams.initialRowCount,this.maxRowFound=!1,this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,n=[],i=-1,r=!1,s=new a.NumberSequence;a._.missing(e)&&(r=!0);var l=!1;return this.forEachBlockInOrder((function(a,p){l||(r&&i+1!==p?l=!0:(i=p,a.forEachNodeShallow((function(o){var i=o===e||o===t;(r||i)&&n.push(o),i&&(r=!r)}),s,o.virtualRowCount)))})),l||r?[]:n},t.EVENT_CACHE_UPDATED="cacheUpdated",t.MAX_EMPTY_BLOCKS_TO_KEEP=2,t}(r.BeanStub);t.RowNodeCache=l},66419:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(60843),i=o(83423),r=function(){function e(e,t){void 0===t&&(t=!1);var o=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new n.EventService,this.eElement=e,this.preventMouseClick=t;var i=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),s=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",i,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",s,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",i,{passive:!0}),o.eElement.removeEventListener("touchmove",r,{passive:!0}),o.eElement.removeEventListener("touchend",s,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var n=this.touchStart;window.setTimeout((function(){var i=o.touchStart===n;if(o.touching&&i&&!o.moved){o.moved=!0;var r={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(r)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);t&&!i._.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var o={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}();t.TouchListener=r},66490:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(40634),a=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,o,n){this.processClassRules(e.cellClassRules,t,o,n),this.processStaticCellClasses(e,t,o)},e.prototype.processClassRules=function(e,t,o,n){if("object"==typeof e&&null!==e)for(var i=Object.keys(e),r=0;r<i.length;r++){var s=i[r],a=e[s],l=void 0;"string"==typeof a?l=this.expressionService.evaluate(a,t):"function"==typeof a&&(l=a(t)),l?o(s):n&&n(s)}},e.prototype.processStaticCellClasses=function(e,t,o){if(e.cellClass){var n=void 0;"string"==typeof(n="function"==typeof e.cellClass?(0,e.cellClass)(t):e.cellClass)?o(n):Array.isArray(n)&&n.forEach((function(e){o(e)}))}},n([r.Autowired("expressionService"),i("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),n([r.Bean("stylingService")],e)}();t.StylingService=a},68198:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(83423),l=function(){function e(){}return e.prototype.observeResize=function(e,t){var o,n,i,r,s,l=this.frameworkFactory,p=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return window.ResizeObserver&&!p?((s=new window.ResizeObserver(t)).observe(e),function(){return s.disconnect()}):(o=a._.offsetWidth(e),n=a._.offsetHeight(e),i=!0,(r=function(){if(i){var s=a._.offsetWidth(e),p=a._.offsetHeight(e);(s!==o||p!==n)&&(o=s,n=p,t()),l.setTimeout(r,500)}})(),function(){return i=!1})},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("frameworkFactory"),i("design:type",Object)],e.prototype,"frameworkFactory",void 0),n([r.Bean("resizeObserverService")],e)}();t.ResizeObserverService=l},68363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var o=0;o<e.children.length;o++)this.depthFirstSearchChangedPath(e.children[o],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,o){if(e.childrenAfterGroup)for(var n=0;n<e.childrenAfterGroup.length;n++){var i=e.childrenAfterGroup[n];i.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[n],t,o):o&&t(i)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t){void 0===t&&(t=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,o=0;!this.mapToItems[t.id];){var n={rowNode:t,children:null};this.mapToItems[t.id]=n,o++,t=t.parent}return o},e.prototype.populateColumnsMap=function(e,t){var o=this;if(this.keepingColumns&&t)for(var n=e;n;)this.nodeIdsToColumns[n.id]||(this.nodeIdsToColumns[n.id]={}),t.forEach((function(e){return o.nodeIdsToColumns[n.id][e.getId()]=!0})),n=n.parent},e.prototype.linkPathItems=function(e,t){for(var o=e,n=0;n<t;n++){var i=this.mapToItems[o.id],r=this.mapToItems[o.parent.id];r.children||(r.children=[]),r.children.push(i),o=o.parent}},e.prototype.addParentNode=function(e,t){var o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return o[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!o[e.getId()]}))},e}();t.ChangedPath=o},69065:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(85222),l=o(60843),p=function(){function e(){this.createRowTasks=[],this.destroyRowTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.addP1Task=function(e,t){this.verifyAnimationFrameOn("addP1Task");var o={task:e,index:t};this.createRowTasks.push(o),this.schedule()},e.prototype.addP2Task=function(e){this.verifyAnimationFrameOn("addP2Task"),this.destroyRowTasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame"),this.scrollGoingDown?this.createRowTasks.sort((function(e,t){return t.index-e.index})):this.createRowTasks.sort((function(e,t){return e.index-t.index}));for(var t=(new Date).getTime(),o=(new Date).getTime()-t,n=e<=0;n||o<e;){if(this.createRowTasks.length>0)this.createRowTasks.pop().task();else{if(!(this.destroyRowTasks.length>0))break;this.destroyRowTasks.pop()()}o=(new Date).getTime()-t}this.createRowTasks.length>0||this.destroyRowTasks.length>0?this.requestFrame():this.stopTicking()},e.prototype.stopTicking=function(){this.ticking=!1;var e={type:a.Events.EVENT_ANIMATION_QUEUE_EMPTY,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},e.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},e.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,0)},e.prototype.isQueueEmpty=function(){return this.ticking},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("eventService"),i("design:type",l.EventService)],e.prototype,"eventService",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r.Bean("animationFrameService")],e)}();t.AnimationFrameService=p},69397:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(34255),p=o(47721),u=o(85910),d=o(22131),c=o(45727),h=o(83423),f=function(e){function t(){var t=e.call(this,'<div class="ag-input-text-wrapper"><input ref="eColumnFloatingFilter" class="ag-floating-filter-input"></div>')||this;return t.lastKnownModel=null,t}return i(t,e),t.prototype.init=function(e){this.onFloatingFilterChanged=e.onFloatingFilterChanged,this.currentParentModel=e.currentParentModel;var t=null!=e.debounceMs?e.debounceMs:500,o=h._.debounce(this.syncUpWithParentFilter.bind(this),t);this.addDestroyableEventListener(this.eColumnFloatingFilter,"input",o),this.addDestroyableEventListener(this.eColumnFloatingFilter,"keypress",o),this.addDestroyableEventListener(this.eColumnFloatingFilter,"keydown",o);var n=e.column.getDefinition();n.filterParams&&n.filterParams.filterOptions&&1===n.filterParams.filterOptions.length&&"inRange"===n.filterParams.filterOptions[0]&&(this.eColumnFloatingFilter.disabled=!0)},t.prototype.onParentModelChanged=function(e,t){if(null!=t)return this.eColumnFloatingFilter.value=this.parseAsText(t.condition1)+" "+t.operator+" "+this.parseAsText(t.condition2),this.eColumnFloatingFilter.disabled=!0,this.lastKnownModel=null,this.eColumnFloatingFilter.title=this.eColumnFloatingFilter.value,void(this.eColumnFloatingFilter.style.cursor="default");if(this.eColumnFloatingFilter.disabled=!1,this.equalModels(this.lastKnownModel,e))this.lastKnownModel||e||(this.eColumnFloatingFilter.value="");else{this.lastKnownModel=e;var o=this.asFloatingFilterText(e);o!==this.eColumnFloatingFilter.value&&(this.eColumnFloatingFilter.value=o,this.eColumnFloatingFilter.title="")}},t.prototype.syncUpWithParentFilter=function(e){var t=this.asParentModel();this.equalModels(this.lastKnownModel,t)||(h._.isKeyPressed(e,c.Constants.KEY_ENTER)?this.onFloatingFilterChanged({model:t,apply:!0}):this.onFloatingFilterChanged({model:t,apply:!1}))&&(this.lastKnownModel=t)},t.prototype.equalModels=function(e,t){return!!h._.referenceCompare(e,t)||!(!e||!t)&&!Array.isArray(e)&&!Array.isArray(t)&&h._.referenceCompare(e.type,t.type)&&h._.referenceCompare(e.filter,t.filter)&&h._.referenceCompare(e.filterTo,t.filterTo)&&h._.referenceCompare(e.filterType,t.filterType)},r([p.RefSelector("eColumnFloatingFilter"),s("design:type",HTMLInputElement)],t.prototype,"eColumnFloatingFilter",void 0),t}(d.Component);t.InputTextFloatingFilterComp=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.asFloatingFilterText=function(e){return e?e.filter:""},t.prototype.asParentModel=function(){return{type:this.currentParentModel().type,filter:this.eColumnFloatingFilter.value,filterType:"text"}},t.prototype.parseAsText=function(e){return this.asFloatingFilterText(e)},t}(f);t.TextFloatingFilterComp=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastKnownModel=null,t}return i(t,e),t.prototype.init=function(e){this.onFloatingFilterChanged=e.onFloatingFilterChanged,this.currentParentModel=e.currentParentModel;var t=null!=e.debounceMs?e.debounceMs:500,o={onDateChanged:h._.debounce(this.onDateChanged.bind(this),t),filterParams:e.column.getColDef().filterParams};this.dateComponentPromise=this.userComponentFactory.newDateComponent(o);var n=h._.loadTemplate("<div></div>");this.dateComponentPromise.then((function(t){n.appendChild(t.getGui());var o=e.column.getDefinition(),i=o.filterParams&&o.filterParams.filterOptions&&1===o.filterParams.filterOptions.length&&"inRange"===o.filterParams.filterOptions[0];t.eDateInput&&(t.eDateInput.disabled=i)})),n.style.width="100%",n.style.height="100%",this.setTemplateFromElement(n)},t.prototype.onDateChanged=function(){var e=this.currentParentModel(),t=this.asParentModel();this.equalModels(e,t)||(this.onFloatingFilterChanged({model:t,apply:!0}),this.lastKnownModel=t)},t.prototype.equalModels=function(e,t){return!!h._.referenceCompare(e,t)||!(!e||!t)&&!Array.isArray(e)&&!Array.isArray(t)&&h._.referenceCompare(e.type,t.type)&&h._.referenceCompare(e.dateFrom,t.dateFrom)&&h._.referenceCompare(e.dateTo,t.dateTo)&&h._.referenceCompare(e.filterType,t.filterType)},t.prototype.asParentModel=function(){var e=this.currentParentModel(),t=this.dateComponentPromise.resolveNow(null,(function(e){return e.getDate()})),o=h._.serializeDateToYyyyMmDd(l.DateFilter.removeTimezone(t),"-");return{type:e.type,dateFrom:o,dateTo:e?e.dateTo:null,filterType:"date"}},t.prototype.onParentModelChanged=function(e){var t=this;this.lastKnownModel=e,this.dateComponentPromise.then((function(o){e&&e.dateFrom?(t.enrichDateInput(e.type,e.dateFrom,e.dateTo,o),o.setDate(h._.parseYyyyMmDdToDate(e.dateFrom,"-"))):o.setDate(null)}))},t.prototype.enrichDateInput=function(e,t,o,n){n.eDateInput&&("inRange"===e?(n.eDateInput.title=t+" to "+o,n.eDateInput.disabled=!0):(n.eDateInput.title="",n.eDateInput.disabled=!1))},r([a.Autowired("userComponentFactory"),s("design:type",u.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),t}(d.Component);t.DateFloatingFilterComp=m;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.asFloatingFilterText=function(e){var t=this.currentParentModel();return null==e&&null==t?"":null==e&&null!=t&&"inRange"!==t.type?(this.eColumnFloatingFilter.disabled=!1,""):null!=t&&"inRange"===t.type?(this.eColumnFloatingFilter.disabled=!0,this.parseAsText(t)):(this.eColumnFloatingFilter.disabled=!1,this.parseAsText(e))},t.prototype.parseAsText=function(e){var t=this.asNumber(e.filter);if(e.type&&"inRange"===e.type){var o=this.asNumber(e.filterTo);return(t?t+"":"")+"-"+(o?o+"":"")}return null!=t?t+"":""},t.prototype.asParentModel=function(){var e,t=this.currentParentModel(),o=this.asNumber(this.eColumnFloatingFilter.value),n=this.eColumnFloatingFilter.value;return e=null==o&&""===n?null:null==o?t.filter:o,{type:t.type,filter:e,filterTo:t?t.filterTo:null,filterType:"number"}},t.prototype.asNumber=function(e){if(null==e)return null;if(""===e)return null;var t=Number(e);return h._.isNumeric(t)?t:null},t}(f);t.NumberFloatingFilterComp=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.eColumnFloatingFilter.disabled=!0},t.prototype.asFloatingFilterText=function(e){if(this.eColumnFloatingFilter.disabled=!0,!e)return"";var t=e instanceof Array?e:e.values;if(0===t.length)return"";var o=t.length>10?t.slice(0,10).concat("..."):t;return"("+t.length+") "+o.join(",")},t.prototype.parseAsText=function(e){return this.asFloatingFilterText(e)},t.prototype.asParentModel=function(){return null==this.eColumnFloatingFilter.value||""===this.eColumnFloatingFilter.value?{values:[],filterType:"set"}:{values:this.eColumnFloatingFilter.value.split(","),filterType:"set"}},t.prototype.equalModels=function(e,t){return!1},t}(f);t.SetFloatingFilterComp=v;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.eColumnFloatingFilter.disabled=!0},t.prototype.onParentModelChanged=function(e){this.eColumnFloatingFilter.value=this.asFloatingFilterText(this.currentParentModel())},t.prototype.asFloatingFilterText=function(e){return e},t.prototype.parseAsText=function(e){return e},t.prototype.asParentModel=function(){return null},t}(f);t.ReadModelAsStringFloatingFilterComp=C},69638:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(22743),a=o(83423),l=function(){function e(){}return e.prototype.adaptFunction=function(e,t,o,n){if(null==t)return{component:null,componentFromFramework:o,source:n,paramsFromSelector:null};var i=this.componentMetadataProvider.retrieve(e);return i&&i.functionAdapter?{componentFromFramework:o,component:i.functionAdapter(t),source:n,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),o=typeof t;return"string"===o||"number"===o||"boolean"===o?a._.loadTemplate("<span>"+t+"</span>"):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&"getGui"in e.prototype},n([r.Autowired("componentMetadataProvider"),i("design:type",s.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),n([r.Bean("agComponentUtils")],e)}();t.AgComponentUtils=l},69734:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(83423),i=function(){function e(){this.existingKeys=[]}return e.prototype.addExistingKeys=function(e){this.existingKeys=this.existingKeys.concat(e)},e.prototype.getUniqueKey=function(e,t){e=n._.toStringOrNull(e);for(var o=0;;){var i=void 0;if(e?(i=e,0!==o&&(i+="_"+o)):t?(i=t,0!==o&&(i+="_"+o)):i=""+o,this.existingKeys.indexOf(i)<0)return this.existingKeys.push(i),i;o++}},e}();t.ColumnKeyCreator=i},69992:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(58342),a=o(72493),l=o(27887),p=o(26016),u=o(20080),d=o(98239);!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(r||(r={}));var c=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case p.Column.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case p.Column.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===s.DragSourceType.HeaderCell||e===s.DragSourceType.ToolPanel},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new l.MoveColumnController(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new u.BodyDropPivotTarget(this.pinned);this.context.wireBean(e),this.dropListeners[r.ColumnMove]=this.moveColumnController,this.dropListeners[r.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===s.DragSourceType.ToolPanel?r.Pivot:r.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},n([a.Autowired("context"),i("design:type",a.Context)],e.prototype,"context",void 0),n([a.Autowired("dragAndDropService"),i("design:type",s.DragAndDropService)],e.prototype,"dragAndDropService",void 0),n([a.Autowired("columnController"),i("design:type",d.ColumnController)],e.prototype,"columnController",void 0),n([a.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),e}();t.BodyDropTarget=c},71616:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(45727),s=o(46379),a=o(83423),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.eInput=o.getGui().querySelector("input"),o}return i(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.keyPress===r.Constants.KEY_BACKSPACE||e.keyPress===r.Constants.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==r.Constants.KEY_F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),a._.exists(t)&&(o.value=t),this.addDestroyableEventListener(o,"keydown",(function(e){if(e.keyCode===r.Constants.KEY_LEFT||e.keyCode===r.Constants.KEY_RIGHT||e.keyCode===r.Constants.KEY_UP||e.keyCode===r.Constants.KEY_DOWN||e.keyCode===r.Constants.KEY_PAGE_DOWN||e.keyCode===r.Constants.KEY_PAGE_UP||e.keyCode===r.Constants.KEY_PAGE_HOME||e.keyCode===r.Constants.KEY_PAGE_END){e.stopPropagation();var t=e.keyCode===r.Constants.KEY_PAGE_UP,o=e.keyCode===r.Constants.KEY_PAGE_DOWN;(t||o)&&e.preventDefault()}}))},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.eInput;if(e.focus(),this.highlightAllOnFocus)e.select();else{var t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}}},t.prototype.focusIn=function(){var e=this.eInput;e.focus(),e.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.value)},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='<div class="ag-input-text-wrapper"><input class="ag-cell-edit-input" type="text"/></div>',t}(s.PopupComponent);t.TextCellEditor=l},72493:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(83423),i=function(){function e(e,t){if(this.beanWrappers={},this.componentsMappedByName={},this.destroyed=!1,e&&e.beans){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return n._.mapObject(this.beanWrappers,(function(e){return e.beanInstance}))},e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.theClass},e.prototype.createComponentFromElement=function(e,t){var o=e.nodeName;if(this.componentsMappedByName&&this.componentsMappedByName[o]){var n=new this.componentsMappedByName[o];return this.wireBean(n,t),n}return null},e.prototype.wireBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e],t)},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),n._.exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beans.forEach(this.createBeanWrapper.bind(this)),this.contextParams.overrideBeans&&this.contextParams.overrideBeans.forEach(this.createBeanWrapper.bind(this)),n._.iterateObject(this.beanWrappers,(function(t,o){var n;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var i,r,s=e.getBeansForParameters(n,o.bean.name),a=(i=o.bean,r=[null].concat(s),new(i.bind.apply(i,r)));o.beanInstance=a,e.logger.log("bean "+e.getBeanName(a)+" created")}))},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o;return o=e.prototype.constructor?e.prototype.constructor.name:""+e,void console.error("context item "+o+" is not a bean")}var n={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=n},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,n){var i=o.agClassAttributes;i&&i.forEach((function(o){var i=t.lookupBeanInstance(n,o.beanName,o.optional);e[o.attributeName]=i}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,i){n._.iterateObject(o.autowireMethods,(function(o,n){if("agConstructor"!==o){var r=t.getBeansForParameters(n,i);e[o].apply(e,r)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var n=o.constructor;n.hasOwnProperty("__agBeanMetaData")&&t(n.__agBeanMetaData,this.getBeanName(n)),o=Object.getPrototypeOf(o)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var o=this,i=[];return e&&n._.iterateObject(e,(function(e,n){var r=o.lookupBeanInstance(t,n);i[Number(e)]=r})),i},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.seed&&this.contextParams.seed.hasOwnProperty(t))return this.contextParams.seed[t];var n=this.beanWrappers[t];return n?n.beanInstance:(o||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var o=this;e.forEach((function(e){o.forEachMetaDataInHierarchy(e,(function(o){var n=o[t];n&&n.forEach((function(t){return e[t]()}))}))}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.getEnterpriseDefaultComponents=function(){return this.contextParams.enterpriseDefaultComponents},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.callLifeCycleMethods(e,"preDestroyMethods"),this.contextParams.seed=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e}();function r(e,t,o,n,i,r){if(null!==t)if("number"!=typeof r){var a=s(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:i,beanName:t,optional:o})}else console.error("ag-Grid: Autowired should be on an attribute");else console.error("ag-Grid: Autowired name should not be null")}function s(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}t.Context=i,t.PreConstruct=function(e,t,o){var n=s(e.constructor);n.postConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(t)},t.PostConstruct=function(e,t,o){var n=s(e.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(t)},t.PreDestroy=function(e,t,o){var n=s(e.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(t)},t.Bean=function(e){return function(t){s(t).beanName=e}},t.Autowired=function(e){return function(t,o,n){r(t,e,!1,0,o,null)}},t.Optional=function(e){return function(t,o,n){r(t,e,!0,0,o,null)}},t.Qualifier=function(e){return function(t,o,n){var i,r="function"==typeof t?t:t.constructor;if("number"==typeof n){var a=void 0;o?(i=s(r),a=o):(i=s(r),a="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[a]||(i.autowireMethods[a]={}),i.autowireMethods[a][n]=e}}}},72948:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(74517),a=o(26016),l=o(60843),p=o(44871),u=o(40797),d=function(){function e(e,t,o,n){this.localEventService=new l.EventService,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=o,this.level=n}return e.prototype.setOriginalParent=function(e){this.originalParent=this.originalParent},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(o){o instanceof a.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){return this.padding?this.children[0].getColumnGroupShow():this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(a.Column.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,n=!1,i=this.findChildren(),r=0,a=i.length;r<a;r++){var l=i[r];if(l.isVisible()){var p=l.getColumnGroupShow();p===s.ColumnGroup.HEADER_GROUP_SHOW_OPEN?(t=!0,n=!0):p===s.ColumnGroup.HEADER_GROUP_SHOW_CLOSED?(o=!0,n=!0):(t=!0,o=!0)}}var u=t&&o&&n;if(this.expandable!==u){this.expandable=u;var d={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(d)}}},e.prototype.findChildren=function(){var t=this.children,o=t[0];if(o&&(!o.isPadding||!o.isPadding()))return t;for(;1===t.length&&t[0]instanceof e;)t=t[0].children;return t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",n([r.Autowired("columnApi"),i("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([r.Autowired("gridApi"),i("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e}();t.OriginalColumnGroup=d},72955:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.isLayoutPanel=!0,this.childPanels=[],this.eGui=document.createElement("div"),this.eGui.style.height="100%"}return e.prototype.addPanel=function(e,t){var o;e.isLayoutPanel?(this.childPanels.push(e),o=e.getGui()):o=e,t&&(o.style.height=t),this.eGui.appendChild(o)},e.prototype.getGui=function(){return this.eGui},e.prototype.doLayout=function(){for(var e=0;e<this.childPanels.length;e++)this.childPanels[e].doLayout()},e}();t.VerticalStack=o},73575:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(45727),s=o(72493),a=o(44081),l=o(59007),p=o(60843),u=o(63405),d=o(83423),c=function(){function e(){this.activePopupElements=[]}return e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getDocument=function(){return this.gridOptionsWrapper.getDocument()},e.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t,o=e.eventSource.getBoundingClientRect(),n=this.getDocument(),i=this.getPopupParent();t=i===n.body?n.documentElement.getBoundingClientRect():i.getBoundingClientRect();var r=o.top-t.top;r=this.keepYWithinBounds(e,r);var s=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=s+"px";var a,l=t.right-t.left-s;function p(){return o.right-t.left-2}function u(){return o.left-t.left-s}this.gridOptionsWrapper.isEnableRtl()?((a=u())<0&&(a=p()),a>l&&(a=0)):((a=p())>l&&(a=u()),a<0&&(a=0)),e.ePopup.style.left=a+"px",e.ePopup.style.top=r+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),o=t.x,n=t.y,i=e.ePopup,r=e.nudgeX,s=e.nudgeY;this.positionPopup({ePopup:i,x:o,y:n,nudgeX:r,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getDocument(),o=this.getPopupParent(),n=o.getBoundingClientRect(),i=t.documentElement.getBoundingClientRect();return{x:e.clientX-(o===t.body?i.left:n.left),y:e.clientY-(o===t.body?i.top:n.top)}},e.prototype.positionPopupUnderComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),n=this.getDocument(),i=this.getPopupParent();t=i===n.body?n.documentElement.getBoundingClientRect():i.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-t.left,y:o.top-t.top+o.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,o,n,i,r){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:i,rowNode:r,ePopup:e,type:n,eventSource:t,mouseEvent:o})},e.prototype.positionPopupOverComponent=function(e){var t,o=e.eventSource.getBoundingClientRect(),n=this.getDocument(),i=this.getPopupParent();t=i===n.body?n.documentElement.getBoundingClientRect():i.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:o.left-t.left,y:o.top-t.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopup=function(e){var t=e.x,o=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(o+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),o=this.keepYWithinBounds(e,o)),e.ePopup.style.left=t+"px",e.ePopup.style.top=o+"px"},e.prototype.keepYWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,i=this.getPopupParent(),r=i.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=i===o.body,l=Math.min(200,r.height),p=0;e.minHeight&&e.minHeight<l?l=e.minHeight:e.ePopup.offsetHeight>0&&(l=e.ePopup.clientHeight,p=d._.getAbsoluteHeight(e.ePopup)-l);var u=a?d._.getAbsoluteHeight(n)+n.scrollTop:r.height;a&&(u-=Math.abs(s.top-r.top));var c=u-l-p-3;return Math.min(Math.max(t,0),Math.abs(c))},e.prototype.keepXWithinBounds=function(e,t){var o=this.gridOptionsWrapper.getDocument(),n=o.documentElement,i=this.getPopupParent(),r=i.getBoundingClientRect(),s=o.documentElement.getBoundingClientRect(),a=i===o.body,l=Math.min(200,r.width),p=0;e.minWidth&&e.minWidth<l?l=e.minWidth:e.ePopup.clientWidth>0&&(l=e.ePopup.clientWidth,e.ePopup.style.minWidth=l+"px",p=d._.getAbsoluteWidth(e.ePopup)-l);var u=a?d._.getAbsoluteWidth(n)+n.scrollLeft:r.width;a&&(u-=Math.abs(s.left-r.left));var c=u-l-p-3;return Math.min(Math.max(t,0),Math.abs(c))},e.prototype.addAsModalPopup=function(e,t,o,n){return this.addPopup(!0,e,t,o,n)},e.prototype.addPopup=function(e,t,o,n,i){var s=this,a=this.gridOptionsWrapper.getDocument();if(!a)return console.warn("ag-grid: could not find the document, document is empty"),function(){};t.style.top="0px",t.style.left="0px";var l=this.getPopupParent();if(d._.isVisible(t)&&l.contains(t))return function(){};var p=document.createElement("div"),c=this.environment.getTheme();c&&d._.addCssClass(p,c),p.appendChild(t),l.appendChild(p),this.activePopupElements.push(t);var h=!1,f=function(e){(e.which||e.keyCode)===r.Constants.KEY_ESCAPE&&y(null)},g=function(e){y(e)},m=function(e){y(null,e)},y=function(e,o){s.isEventFromCurrentPopup(e,o,t)||s.isEventSameChainAsOriginalEvent(i,e,o)||h||(h=!0,l.removeChild(p),d._.removeFromArray(s.activePopupElements,t),a.removeEventListener("keydown",f),a.removeEventListener("click",g),a.removeEventListener("touchstart",m),a.removeEventListener("contextmenu",g),s.eventService.removeEventListener(u.Events.EVENT_DRAG_STARTED,g),n&&n())};return window.setTimeout((function(){o&&a.addEventListener("keydown",f),e&&(a.addEventListener("click",g),s.eventService.addEventListener(u.Events.EVENT_DRAG_STARTED,g),a.addEventListener("touchstart",m),a.addEventListener("contextmenu",g))}),0),y},e.prototype.isEventFromCurrentPopup=function(e,t,o){var n=e||t;if(n){for(var i=this.activePopupElements.indexOf(o);i<this.activePopupElements.length;i++){var r=this.activePopupElements[i];if(d._.isElementInEventPath(r,n))return!0}for(var s=n.target;s&&s!=document.body;){if(s.classList.contains("ag-custom-component-popup")||null===s.parentElement)return!0;s=s.parentElement}}return!1},e.prototype.isEventSameChainAsOriginalEvent=function(e,t,o){var n=null;if(t?n=t:o&&(n=o.touches[0]),n&&e){var i=t?t.screenX:0,r=t?t.screenY:0,s=Math.abs(e.screenX-i)<5,a=Math.abs(e.screenY-r)<5;if(s&&a)return!0}return!1},n([s.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("environment"),i("design:type",l.Environment)],e.prototype,"environment",void 0),n([s.Autowired("eventService"),i("design:type",p.EventService)],e.prototype,"eventService",void 0),n([s.Bean("popupService")],e)}();t.PopupService=c},74517:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(26016),s=o(60843),a=o(72493),l=o(44081),p=o(44871),u=o(40797),d=function(){function e(e,t,o,n){this.displayedChildren=[],this.localEventService=new s.EventService,this.groupId=t,this.instanceId=o,this.originalColumnGroup=e,this.pinned=n}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getOriginalColumnGroup().getLeafColumns();if(!e||0===e.length)return!1;var t=!0;return e.forEach((function(e){e.isMoving()||(t=!1)})),t},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=this.displayedChildren[this.displayedChildren.length-1].getLeft();this.setLeft(t)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach((function(n){t===n&&(o=!0),n instanceof e&&n.isChildInThisGroupDeepSearch(t)&&(o=!0)})),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(o){o instanceof r.Column?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(o){o instanceof r.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];var o=this;if(this.isPadding())for(;o.getParent()&&o.isPadding();)o=o.getParent();o.originalColumnGroup.isExpandable()?this.children.forEach((function(n){switch(n.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:o.originalColumnGroup.isExpanded()&&t.displayedChildren.push(n);break;case e.HEADER_GROUP_SHOW_CLOSED:o.originalColumnGroup.isExpanded()||t.displayedChildren.push(n);break;default:t.displayedChildren.push(n)}})):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",n([a.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("columnApi"),i("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),i("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e}();t.ColumnGroup=d},75013:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(65360);function i(e,t,o,i){var r,s,a=i.agGrid;if(s=a+".quickFilterText",r=t.$eval(a)){var l=e[0],p={$scope:t,$compile:o,quickFilterOnScope:s},u=new n.Grid(l,r,p);t.$on("$destroy",(function(){u.destroy(),u=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")}t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",(function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",i],scope:!0}}))}},75167:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return i(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(o(46379).PopupComponent);t.TooltipComponent=r},75449:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(96652),s=o(46410),a=o(47008),l=o(47008),p=function(e){function t(o,n){var i=e.call(this)||this;return i.portal=null,i.componentWrappingElement="div",i.reactComponent=o,i.parentComponent=n,i.statelessComponent=t.isStateless(i.reactComponent),i}return i(t,e),t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelesComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.init=function(e){var t=this;return new l.Promise((function(o){t.eParentElement=t.createParentElement(e),t.createReactComponent(e,o)}))},t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.parentComponent.destroyPortal(this.portal)},t.prototype.createReactComponent=function(e,t){var o=this;this.statelessComponent||(e.ref=function(e){o.componentInstance=e});var n=r.createElement(this.reactComponent,e),i=s.createPortal(n,this.eParentElement);this.portal=i,this.parentComponent.mountReactPortal(i,this,t)},t.prototype.createParentElement=function(e){var t=document.createElement(this.parentComponent.props.componentWrappingElement||"div");return a.Utils.addCssClass(t,"ag-react-container"),e.reactContainer=this.eParentElement,t},t.isStateless=function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.isReactComponent)},t}(o(30844).BaseReactComponent);t.ReactComponent=p},76133:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(45727),a=o(44081),l=o(83423),p=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(l._.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!l._.missing(t)){var o={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),i=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return l._.exists(e)&&e.forEach((function(e,r){var s=t(e),a=n[s];i&&(i[s]=r),a?(a.data!==e&&o.update.push(e),n[s]=void 0):o.add.push(e)})),l._.iterateObject(n,(function(e,t){t&&o.remove.push(t.data)})),[o,i]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},n([r.Autowired("rowModel"),i("design:type",Object)],e.prototype,"rowModel",void 0),n([r.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"postConstruct",null),n([r.Bean("immutableService")],e)}();t.ImmutableService=p},78115:(e,t,o)=>{o.d(t,{ry:()=>sn});var n,i,r,s,a,l,p="vercel.ai.error",u=Symbol.for(p),d=class e extends(i=Error,n=u,i){constructor({name:e,message:t,cause:o}){super(t),this[n]=!0,this.name=e,this.cause=o}static isInstance(t){return e.hasMarker(t,p)}static hasMarker(e,t){const o=Symbol.for(t);return null!=e&&"object"==typeof e&&o in e&&"boolean"==typeof e[o]&&!0===e[o]}},c="AI_APICallError",h=`vercel.ai.error.${c}`,f=Symbol.for(h),g=class extends(s=d,r=f,s){constructor({message:e,url:t,requestBodyValues:o,statusCode:n,responseHeaders:i,responseBody:s,cause:a,isRetryable:l=null!=n&&(408===n||409===n||429===n||n>=500),data:p}){super({name:c,message:e,cause:a}),this[r]=!0,this.url=t,this.requestBodyValues=o,this.statusCode=n,this.responseHeaders=i,this.responseBody=s,this.isRetryable=l,this.data=p}static isInstance(e){return d.hasMarker(e,h)}},m="AI_EmptyResponseBodyError",y=`vercel.ai.error.${m}`,v=Symbol.for(y),C=class extends(l=d,a=v,l){constructor({message:e="Empty response body"}={}){super({name:m,message:e}),this[a]=!0}static isInstance(e){return d.hasMarker(e,y)}};function w(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var E,_,R,O,b,S,P,A,T,D,N,I,F,L,x,M,G="AI_InvalidArgumentError",k=`vercel.ai.error.${G}`,W=Symbol.for(k),H=class extends(_=d,E=W,_){constructor({message:e,cause:t,argument:o}){super({name:G,message:e,cause:t}),this[E]=!0,this.argument=o}static isInstance(e){return d.hasMarker(e,k)}},V="AI_InvalidPromptError",j=`vercel.ai.error.${V}`,B=Symbol.for(j),Y=class extends(O=d,R=B,O){constructor({prompt:e,message:t,cause:o}){super({name:V,message:`Invalid prompt: ${t}`,cause:o}),this[R]=!0,this.prompt=e}static isInstance(e){return d.hasMarker(e,j)}},U="AI_InvalidResponseDataError",z=`vercel.ai.error.${U}`,q=Symbol.for(z),K=class extends(S=d,b=q,S){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:U,message:t}),this[b]=!0,this.data=e}static isInstance(e){return d.hasMarker(e,z)}},$="AI_JSONParseError",Z=`vercel.ai.error.${$}`,Q=Symbol.for(Z),X=class extends(A=d,P=Q,A){constructor({text:e,cause:t}){super({name:$,message:`JSON parsing failed: Text: ${e}.\nError message: ${w(t)}`,cause:t}),this[P]=!0,this.text=e}static isInstance(e){return d.hasMarker(e,Z)}},J="AI_LoadAPIKeyError",ee=`vercel.ai.error.${J}`,te=Symbol.for(ee),oe=class extends(D=d,T=te,D){constructor({message:e}){super({name:J,message:e}),this[T]=!0}static isInstance(e){return d.hasMarker(e,ee)}},ne=Symbol.for("vercel.ai.error.AI_LoadSettingError"),ie=`vercel.ai.error.${"AI_NoContentGeneratedError"}`,re=Symbol.for(ie),se=`vercel.ai.error.${"AI_NoSuchModelError"}`,ae=Symbol.for(se),le="AI_TooManyEmbeddingValuesForCallError",pe=`vercel.ai.error.${le}`,ue=Symbol.for(pe),de=class extends(I=d,N=ue,I){constructor(e){super({name:le,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[N]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return d.hasMarker(e,pe)}},ce="AI_TypeValidationError",he=`vercel.ai.error.${ce}`,fe=Symbol.for(he),ge=class e extends(L=d,F=fe,L){constructor({value:e,cause:t}){super({name:ce,message:`Type validation failed: Value: ${JSON.stringify(e)}.\nError message: ${w(t)}`,cause:t}),this[F]=!0,this.value=e}static isInstance(e){return d.hasMarker(e,he)}static wrap({value:t,cause:o}){return e.isInstance(o)&&o.value===t?o:new e({value:t,cause:o})}},me="AI_UnsupportedFunctionalityError",ye=`vercel.ai.error.${me}`,ve=Symbol.for(ye),Ce=class extends(M=d,x=ve,M){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:me,message:t}),this[x]=!0,this.functionality=e}static isInstance(e){return d.hasMarker(e,ye)}},we=o(21935),Ee=o(67299),_e=o(84340),Re=o(29744),Oe=o(65994).process;function be(...e){return e.reduce(((e,t)=>({...e,...null!=t?t:{}})),{})}function Se(e){return Object.fromEntries([...e.headers])}var{btoa:Pe,atob:Ae}=globalThis;function Te(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),o=Ae(t);return Uint8Array.from(o,(e=>e.codePointAt(0)))}function De(e){return e instanceof Uint8Array?function(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCodePoint(e[o]);return Pe(t)}(e):e}function Ne(e,t={}){const{useArrayBrackets:o=!0}=t,n=new FormData;for(const[t,i]of Object.entries(e))if(null!=i)if(Array.isArray(i)){if(1===i.length){n.append(t,i[0]);continue}const e=o?`${t}[]`:t;for(const t of i)n.append(e,t)}else n.append(t,i);return n}var Ie,Fe,Le="AI_DownloadError",xe=`vercel.ai.error.${Le}`,Me=Symbol.for(xe),Ge=class extends(Fe=d,Ie=Me,Fe){constructor({url:e,statusCode:t,statusText:o,cause:n,message:i=(null==n?`Failed to download ${e}: ${t} ${o}`:`Failed to download ${e}: ${n}`)}){super({name:Le,message:i,cause:n}),this[Ie]=!0,this.url=e,this.statusCode=t,this.statusText=o}static isInstance(e){return d.hasMarker(e,xe)}};async function ke(e){try{const t=await fetch(e);if(!t.ok)throw new Ge({url:e,statusCode:t.status,statusText:t.statusText});return await t.blob()}catch(t){if(Ge.isInstance(t))throw t;throw new Ge({url:e,cause:t})}}var We=(({prefix:e,size:t=16,alphabet:o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{const i=()=>{const e=o.length,n=new Array(t);for(let i=0;i<t;i++)n[i]=o[Math.random()*e|0];return n.join("")};if(null==e)return i;if(o.includes(n))throw new H({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${o}".`});return()=>`${e}${n}${i()}`})();function He(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var Ve=["fetch failed","failed to fetch"];function je(e=globalThis){var t,o,n;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(n=null==(o=e.process)?void 0:o.versions)?void 0:n.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function Be(e,...t){const o=new Headers(function(e){if(null==e)return{};const t={};if(e instanceof Headers)e.forEach(((e,o)=>{t[o.toLowerCase()]=e}));else{Array.isArray(e)||(e=Object.entries(e));for(const[o,n]of e)null!=n&&(t[o.toLowerCase()]=n)}return t}(e)),n=o.get("user-agent")||"";return o.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(o.entries())}function Ye(e){return null!=e}function Ue({apiKey:e,environmentVariableName:t,apiKeyParameterName:o="apiKey",description:n}){if("string"==typeof e)return e;if(null!=e)throw new oe({message:`${n} API key must be a string.`});if(void 0===Oe)throw new oe({message:`${n} API key is missing. Pass it using the '${o}' parameter. Environment variables is not supported in this environment.`});if(null==(e=Oe.env[t]))throw new oe({message:`${n} API key is missing. Pass it using the '${o}' parameter or the ${t} environment variable.`});if("string"!=typeof e)throw new oe({message:`${n} API key must be a string. The value of the ${t} environment variable is not a string.`});return e}var ze=/"__proto__"\s*:/,qe=/"constructor"\s*:/;function Ke(e){const t=JSON.parse(e);return null===t||"object"!=typeof t||!1===ze.test(e)&&!1===qe.test(e)?t:function(e){let t=[e];for(;t.length;){const e=t;t=[];for(const o of e){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const e in o){const n=o[e];n&&"object"==typeof n&&t.push(n)}}}return e}(t)}function $e(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return Ke(e)}try{return Ke(e)}finally{Error.stackTraceLimit=t}}function Ze(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;const{properties:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=Qe(t[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(Qe):Qe(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(Qe)),null!=e.allOf&&(e.allOf=e.allOf.map(Qe)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(Qe));const{definitions:t}=e;if(null!=t)for(const e of Object.keys(t))t[e]=Qe(t[e]);return e}function Qe(e){return"boolean"==typeof e?e:Ze(e)}var Xe=Symbol("Let zodToJsonSchema decide on which parser to use"),Je={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function et(e,t){return mt(e.type._def,t)}function tt(e,t,o){const n=null!=o?o:t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map(((o,n)=>tt(e,t,o)))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return ot(e)}}var ot=e=>{const t={type:"integer",format:"unix-time"};for(const o of e.checks)switch(o.kind){case"min":t.minimum=o.value;break;case"max":t.maximum=o.value}return t},nt=void 0,it={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===nt&&(nt=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),nt),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function rt(e,t){const o={type:"string"};if(e.checks)for(const n of e.checks)switch(n.kind){case"min":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,n.value):n.value;break;case"max":o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":lt(o,"email",n.message,t);break;case"format:idn-email":lt(o,"idn-email",n.message,t);break;case"pattern:zod":pt(o,it.email,n.message,t)}break;case"url":lt(o,"uri",n.message,t);break;case"uuid":lt(o,"uuid",n.message,t);break;case"regex":pt(o,n.regex,n.message,t);break;case"cuid":pt(o,it.cuid,n.message,t);break;case"cuid2":pt(o,it.cuid2,n.message,t);break;case"startsWith":pt(o,RegExp(`^${st(n.value,t)}`),n.message,t);break;case"endsWith":pt(o,RegExp(`${st(n.value,t)}$`),n.message,t);break;case"datetime":lt(o,"date-time",n.message,t);break;case"date":lt(o,"date",n.message,t);break;case"time":lt(o,"time",n.message,t);break;case"duration":lt(o,"duration",n.message,t);break;case"length":o.minLength="number"==typeof o.minLength?Math.max(o.minLength,n.value):n.value,o.maxLength="number"==typeof o.maxLength?Math.min(o.maxLength,n.value):n.value;break;case"includes":pt(o,RegExp(st(n.value,t)),n.message,t);break;case"ip":"v6"!==n.version&<(o,"ipv4",n.message,t),"v4"!==n.version&<(o,"ipv6",n.message,t);break;case"base64url":pt(o,it.base64url,n.message,t);break;case"jwt":pt(o,it.jwt,n.message,t);break;case"cidr":"v6"!==n.version&&pt(o,it.ipv4Cidr,n.message,t),"v4"!==n.version&&pt(o,it.ipv6Cidr,n.message,t);break;case"emoji":pt(o,it.emoji(),n.message,t);break;case"ulid":pt(o,it.ulid,n.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":lt(o,"binary",n.message,t);break;case"contentEncoding:base64":o.contentEncoding="base64";break;case"pattern:zod":pt(o,it.base64,n.message,t)}break;case"nanoid":pt(o,it.nanoid,n.message,t)}return o}function st(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let o=0;o<e.length;o++)at.has(e[o])||(t+="\\"),t+=e[o];return t}(e):e}var at=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function lt(e,t,o,n){var i;e.format||(null==(i=e.anyOf)?void 0:i.some((e=>e.format)))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...o&&n.errorMessages&&{errorMessage:{format:o}}})):e.format=t}function pt(e,t,o,n){var i;e.pattern||(null==(i=e.allOf)?void 0:i.some((e=>e.pattern)))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:ut(t,n),...o&&n.errorMessages&&{errorMessage:{pattern:o}}})):e.pattern=ut(t,n)}function ut(e,t){var o;if(!t.applyRegexFlags||!e.flags)return e.source;const n=e.flags.includes("i"),i=e.flags.includes("m"),r=e.flags.includes("s"),s=n?e.source.toLowerCase():e.source;let a="",l=!1,p=!1,u=!1;for(let e=0;e<s.length;e++)if(l)a+=s[e],l=!1;else{if(n)if(p){if(s[e].match(/[a-z]/)){u?(a+=s[e],a+=`${s[e-2]}-${s[e]}`.toUpperCase(),u=!1):"-"===s[e+1]&&(null==(o=s[e+2])?void 0:o.match(/[a-z]/))?(a+=s[e],u=!0):a+=`${s[e]}${s[e].toUpperCase()}`;continue}}else if(s[e].match(/[a-z]/)){a+=`[${s[e]}${s[e].toUpperCase()}]`;continue}if(i){if("^"===s[e]){a+="(^|(?<=[\r\n]))";continue}if("$"===s[e]){a+="($|(?=[\r\n]))";continue}}r&&"."===s[e]?a+=p?`${s[e]}\r\n`:`[${s[e]}\r\n]`:(a+=s[e],"\\"===s[e]?l=!0:p&&"]"===s[e]?p=!1:p||"["!==s[e]||(p=!0))}try{new RegExp(a)}catch(o){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function dt(e,t){var o,n,i,r,s,a;const l={type:"object",additionalProperties:null!=(o=mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?o:t.allowedAdditionalProperties};if((null==(n=e.keyType)?void 0:n._def.typeName)===_e.kY.ZodString&&(null==(i=e.keyType._def.checks)?void 0:i.length)){const{type:o,...n}=rt(e.keyType._def,t);return{...l,propertyNames:n}}if((null==(r=e.keyType)?void 0:r._def.typeName)===_e.kY.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if((null==(s=e.keyType)?void 0:s._def.typeName)===_e.kY.ZodBranded&&e.keyType._def.type._def.typeName===_e.kY.ZodString&&(null==(a=e.keyType._def.type._def.checks)?void 0:a.length)){const{type:o,...n}=et(e.keyType._def,t);return{...l,propertyNames:n}}return l}var ct={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function ht(e){try{return e.isOptional()}catch(e){return!0}}var ft=(e,t,o)=>{switch(t){case _e.kY.ZodString:return rt(e,o);case _e.kY.ZodNumber:return function(e){const t={type:"number"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"int":t.type="integer";break;case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case _e.kY.ZodObject:return function(e,t){const o={type:"object",properties:{}},n=[],i=e.shape();for(const e in i){let r=i[e];if(void 0===r||void 0===r._def)continue;const s=ht(r),a=mt(r._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==a&&(o.properties[e]=a,s||n.push(e))}n.length&&(o.required=n);const r=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return mt(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==r&&(o.additionalProperties=r),o}(e,o);case _e.kY.ZodBigInt:return function(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const o of e.checks)switch(o.kind){case"min":o.inclusive?t.minimum=o.value:t.exclusiveMinimum=o.value;break;case"max":o.inclusive?t.maximum=o.value:t.exclusiveMaximum=o.value;break;case"multipleOf":t.multipleOf=o.value}return t}(e);case _e.kY.ZodBoolean:return{type:"boolean"};case _e.kY.ZodDate:return tt(e,o);case _e.kY.ZodUndefined:return{not:{}};case _e.kY.ZodNull:return{type:"null"};case _e.kY.ZodArray:return function(e,t){var o,n,i;const r={type:"array"};return(null==(o=e.type)?void 0:o._def)&&(null==(i=null==(n=e.type)?void 0:n._def)?void 0:i.typeName)!==_e.kY.ZodAny&&(r.items=mt(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(r.minItems=e.minLength.value),e.maxLength&&(r.maxItems=e.maxLength.value),e.exactLength&&(r.minItems=e.exactLength.value,r.maxItems=e.exactLength.value),r}(e,o);case _e.kY.ZodUnion:case _e.kY.ZodDiscriminatedUnion:return function(e,t){const o=e.options instanceof Map?Array.from(e.options.values()):e.options;if(o.every((e=>e._def.typeName in ct&&(!e._def.checks||!e._def.checks.length)))){const e=o.reduce(((e,t)=>{const o=ct[t._def.typeName];return o&&!e.includes(o)?[...e,o]:e}),[]);return{type:e.length>1?e:e[0]}}if(o.every((e=>"ZodLiteral"===e._def.typeName&&!e.description))){const e=o.reduce(((e,t)=>{const o=typeof t._def.value;switch(o){case"string":case"number":case"boolean":return[...e,o];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===o.length){const t=e.filter(((e,t,o)=>o.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:o.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(o.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:o.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return((e,t)=>{const o=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${o}`]}))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return o.length?{anyOf:o}:void 0})(e,t)}(e,o);case _e.kY.ZodIntersection:return function(e,t){const o=[mt(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),mt(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter((e=>!!e)),n=[];return o.forEach((e=>{if("type"in(t=e)&&"string"===t.type||!("allOf"in t)){let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){const{additionalProperties:o,...n}=e;t=n}n.push(t)}else n.push(...e.allOf);var t})),n.length?{allOf:n}:void 0}(e,o);case _e.kY.ZodTuple:return function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:mt(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,o)=>mt(e._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]}))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}(e,o);case _e.kY.ZodRecord:return dt(e,o);case _e.kY.ZodLiteral:return function(e){const t=typeof e.value;return"bigint"!==t&&"number"!==t&&"boolean"!==t&&"string"!==t?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===t?"integer":t,const:e.value}}(e);case _e.kY.ZodEnum:return function(e){return{type:"string",enum:Array.from(e.values)}}(e);case _e.kY.ZodNativeEnum:return function(e){const t=e.values,o=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),n=Array.from(new Set(o.map((e=>typeof e))));return{type:1===n.length?"string"===n[0]?"string":"number":["string","number"],enum:o}}(e);case _e.kY.ZodNullable:return function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[ct[e.innerType._def.typeName],"null"]};const o=mt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return o&&{anyOf:[o,{type:"null"}]}}(e,o);case _e.kY.ZodOptional:return((e,t)=>{var o;if(t.currentPath.toString()===(null==(o=t.propertyPath)?void 0:o.toString()))return mt(e.innerType._def,t);const n=mt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:{}},n]}:{}})(e,o);case _e.kY.ZodMap:return function(e,t){return"record"===t.mapStrategy?dt(e,t):{type:"array",maxItems:125,items:{type:"array",items:[mt(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}}}(e,o);case _e.kY.ZodSet:return function(e,t){const o={type:"array",uniqueItems:!0,items:mt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}(e,o);case _e.kY.ZodLazy:return()=>e.getter()._def;case _e.kY.ZodPromise:return function(e,t){return mt(e.type._def,t)}(e,o);case _e.kY.ZodNaN:case _e.kY.ZodNever:return{not:{}};case _e.kY.ZodEffects:return function(e,t){return"input"===t.effectStrategy?mt(e.schema._def,t):{}}(e,o);case _e.kY.ZodAny:case _e.kY.ZodUnknown:return{};case _e.kY.ZodDefault:return function(e,t){return{...mt(e.innerType._def,t),default:e.defaultValue()}}(e,o);case _e.kY.ZodBranded:return et(e,o);case _e.kY.ZodReadonly:case _e.kY.ZodCatch:return((e,t)=>mt(e.innerType._def,t))(e,o);case _e.kY.ZodPipeline:return((e,t)=>{if("input"===t.pipeStrategy)return mt(e.in._def,t);if("output"===t.pipeStrategy)return mt(e.out._def,t);const o=mt(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]});return{allOf:[o,mt(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",o?"1":"0"]})].filter((e=>void 0!==e))}})(e,o);case _e.kY.ZodFunction:case _e.kY.ZodVoid:case _e.kY.ZodSymbol:default:return}},gt=(e,t)=>{let o=0;for(;o<e.length&&o<t.length&&e[o]===t[o];o++);return[(e.length-o).toString(),...t.slice(o)].join("/")};function mt(e,t,o=!1){var n;const i=t.seen.get(e);if(t.override){const r=null==(n=t.override)?void 0:n.call(t,e,t,i,o);if(r!==Xe)return r}if(i&&!o){const e=yt(i,t);if(void 0!==e)return e}const r={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,r);const s=ft(e,e.typeName,t),a="function"==typeof s?mt(s(),t):s;if(a&&vt(e,t,a),t.postProcess){const o=t.postProcess(a,e,t);return r.jsonSchema=a,o}return r.jsonSchema=a,a}var yt=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:gt(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(((e,o)=>t.currentPath[o]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):"seen"===t.$refStrategy?{}:void 0}},vt=(e,t,o)=>(e.description&&(o.description=e.description),o),Ct=(e,t)=>{var o;const n=(e=>{const t=(e=>"string"==typeof e?{...Je,name:e}:{...Je,...e})(e),o=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:o,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map((([e,o])=>[o._def,{def:o._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}])))}})(t);let i="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,o])=>{var i;return{...e,[t]:null!=(i=mt(o._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0))?i:{}}}),{}):void 0;const r="string"==typeof t?t:"title"===(null==t?void 0:t.nameStrategy)||null==t?void 0:t.name,s=null!=(o=mt(e._def,void 0===r?n:{...n,currentPath:[...n.basePath,n.definitionPath,r]},!1))?o:{},a="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==a&&(s.title=a);const l=void 0===r?i?{...s,[n.definitionPath]:i}:s:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,r].join("/"),[n.definitionPath]:{...i,[r]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l},wt=Symbol.for("vercel.ai.schema");function Et(e){let t;return()=>(null==t&&(t=e()),t)}function _t(e,{validate:t}={}){return{[wt]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function Rt(e,t){return function(e){return"_zod"in e}(e)?function(e,t){var o;const n=null!=(o=null==t?void 0:t.useReferences)&&o;return _t((()=>Ze(we.b(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"}))),{validate:async t=>{const o=await Ee.bp(e,t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t):function(e,t){var o;const n=null!=(o=null==t?void 0:t.useReferences)&&o;return _t((()=>Ct(e,{$refStrategy:n?"root":"none"})),{validate:async t=>{const o=await e.safeParseAsync(t);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}(e,t)}async function Ot({value:e,schema:t}){const o=await bt({value:e,schema:t});if(!o.success)throw ge.wrap({value:e,cause:o.error});return o.value}async function bt({value:e,schema:t}){const o=function(e){return null==e?_t({properties:{},additionalProperties:!1}):"object"==typeof(o=e)&&null!==o&&wt in o&&!0===o[wt]&&"jsonSchema"in o&&"validate"in o?e:"~standard"in e?"zod"===e["~standard"].vendor?Rt(e):(t=e,_t((()=>Ze(t["~standard"].jsonSchema.input({target:"draft-07"}))),{validate:async e=>{const o=await t["~standard"].validate(e);return"value"in o?{success:!0,value:o.value}:{success:!1,error:new ge({value:e,cause:o.issues})}}})):e();var t,o}(t);try{if(null==o.validate)return{success:!0,value:e,rawValue:e};const t=await o.validate(e);return t.success?{success:!0,value:t.value,rawValue:e}:{success:!1,error:ge.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:ge.wrap({value:e,cause:t}),rawValue:e}}}async function St({text:e,schema:t}){try{const o=$e(e);return null==t?{success:!0,value:o,rawValue:o}:await bt({value:o,schema:t})}catch(t){return{success:!1,error:X.isInstance(t)?t:new X({text:e,cause:t}),rawValue:void 0}}}function Pt(e){try{return $e(e),!0}catch(e){return!1}}function At({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new Re.Z).pipeThrough(new TransformStream({async transform({data:e},o){"[DONE]"!==e&&o.enqueue(await St({text:e,schema:t}))}}))}async function Tt({provider:e,providerOptions:t,schema:o}){if(null==(null==t?void 0:t[e]))return;const n=await bt({value:t[e],schema:o});if(!n.success)throw new H({argument:"providerOptions",message:`invalid ${e} provider options`,cause:n.error});return n.value}var Dt=()=>globalThis.fetch,Nt=async({url:e,headers:t,body:o,failedResponseHandler:n,successfulResponseHandler:i,abortSignal:r,fetch:s})=>Ft({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(o),values:o},failedResponseHandler:n,successfulResponseHandler:i,abortSignal:r,fetch:s}),It=async({url:e,headers:t,formData:o,failedResponseHandler:n,successfulResponseHandler:i,abortSignal:r,fetch:s})=>Ft({url:e,headers:t,body:{content:o,values:Object.fromEntries(o.entries())},failedResponseHandler:n,successfulResponseHandler:i,abortSignal:r,fetch:s}),Ft=async({url:e,headers:t={},body:o,successfulResponseHandler:n,failedResponseHandler:i,abortSignal:r,fetch:s=Dt()})=>{try{const a=await s(e,{method:"POST",headers:Be(t,"ai-sdk/provider-utils/4.0.5",je()),body:o.content,signal:r}),l=Se(a);if(!a.ok){let t;try{t=await i({response:a,url:e,requestBodyValues:o.values})}catch(t){if(He(t)||g.isInstance(t))throw t;throw new g({message:"Failed to process error response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:o.values})}throw t.value}try{return await n({response:a,url:e,requestBodyValues:o.values})}catch(t){if(t instanceof Error&&(He(t)||g.isInstance(t)))throw t;throw new g({message:"Failed to process successful response",cause:t,statusCode:a.status,url:e,responseHeaders:l,requestBodyValues:o.values})}}catch(t){throw function({error:e,url:t,requestBodyValues:o}){if(He(e))return e;if(e instanceof TypeError&&Ve.includes(e.message.toLowerCase())){const n=e.cause;if(null!=n)return new g({message:`Cannot connect to API: ${n.message}`,cause:n,url:t,requestBodyValues:o,isRetryable:!0})}return e}({error:t,url:e,requestBodyValues:o.values})}};function Lt({id:e,inputSchema:t,outputSchema:o,supportsDeferredResults:n}){return({execute:i,needsApproval:r,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,...u})=>({type:"provider",id:e,args:u,inputSchema:t,outputSchema:o,execute:i,needsApproval:r,toModelOutput:s,onInputStart:a,onInputDelta:l,onInputAvailable:p,supportsDeferredResults:n})}var xt=e=>async({response:t})=>{const o=Se(t);if(null==t.body)throw new C({});return{responseHeaders:o,value:At({stream:t.body,schema:e})}},Mt=e=>async({response:t,url:o,requestBodyValues:n})=>{const i=await t.text(),r=await St({text:i,schema:e}),s=Se(t);if(!r.success)throw new g({message:"Invalid JSON response",cause:r.error,statusCode:t.status,responseHeaders:s,responseBody:i,url:o,requestBodyValues:n});return{responseHeaders:s,value:r.value,rawValue:r.rawValue}},Gt=o(11050),kt=o(94149),Wt=o(9606).URL,Ht=Gt.Ik({error:Gt.Ik({message:Gt.Yj(),type:Gt.Yj().nullish(),param:Gt.bz().nullish(),code:Gt.KC([Gt.Yj(),Gt.ai()]).nullish()})}),Vt=(({errorSchema:e,errorToMessage:t,isRetryable:o})=>async({response:n,url:i,requestBodyValues:r})=>{const s=await n.text(),a=Se(n);if(""===s.trim())return{responseHeaders:a,value:new g({message:n.statusText,url:i,requestBodyValues:r,statusCode:n.status,responseHeaders:a,responseBody:s,isRetryable:null==o?void 0:o(n)})};try{const l=await async function({text:e,schema:t}){try{const o=$e(e);return null==t?o:Ot({value:o,schema:t})}catch(t){if(X.isInstance(t)||ge.isInstance(t))throw t;throw new X({text:e,cause:t})}}({text:s,schema:e});return{responseHeaders:a,value:new g({message:t(l),url:i,requestBodyValues:r,statusCode:n.status,responseHeaders:a,responseBody:s,data:l,isRetryable:null==o?void 0:o(n,l)})}}catch(e){return{responseHeaders:a,value:new g({message:n.statusText,url:i,requestBodyValues:r,statusCode:n.status,responseHeaders:a,responseBody:s,isRetryable:null==o?void 0:o(n)})}}})({errorSchema:Ht,errorToMessage:e=>e.error.message});function jt(e){const t=e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat"),o=e.startsWith("gpt-4")||e.startsWith("gpt-5-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-nano")&&!e.startsWith("gpt-5-chat")||e.startsWith("o3")||e.startsWith("o4-mini"),n=e.startsWith("o1")||e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("codex-mini")||e.startsWith("computer-use-preview")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat");return{supportsFlexProcessing:t,supportsPriorityProcessing:o,isReasoningModel:n,systemMessageMode:n?"developer":"system",supportsNonReasoningParameters:e.startsWith("gpt-5.1")||e.startsWith("gpt-5.2")}}function Bt(e){var t,o,n,i,r,s;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const a=null!=(t=e.prompt_tokens)?t:0,l=null!=(o=e.completion_tokens)?o:0,p=null!=(i=null==(n=e.prompt_tokens_details)?void 0:n.cached_tokens)?i:0,u=null!=(s=null==(r=e.completion_tokens_details)?void 0:r.reasoning_tokens)?s:0;return{inputTokens:{total:a,noCache:a-p,cacheRead:p,cacheWrite:void 0},outputTokens:{total:l,text:l-u,reasoning:u},raw:e}}function Yt({id:e,model:t,created:o}){return{id:null!=e?e:void 0,modelId:null!=t?t:void 0,timestamp:o?new Date(1e3*o):void 0}}function Ut(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var zt=Et((()=>Rt(Gt.Ik({id:Gt.Yj().nullish(),created:Gt.ai().nullish(),model:Gt.Yj().nullish(),choices:Gt.YO(Gt.Ik({message:Gt.Ik({role:Gt.eu("assistant").nullish(),content:Gt.Yj().nullish(),tool_calls:Gt.YO(Gt.Ik({id:Gt.Yj().nullish(),type:Gt.eu("function"),function:Gt.Ik({name:Gt.Yj(),arguments:Gt.Yj()})})).nullish(),annotations:Gt.YO(Gt.Ik({type:Gt.eu("url_citation"),url_citation:Gt.Ik({start_index:Gt.ai(),end_index:Gt.ai(),url:Gt.Yj(),title:Gt.Yj()})})).nullish()}),index:Gt.ai(),logprobs:Gt.Ik({content:Gt.YO(Gt.Ik({token:Gt.Yj(),logprob:Gt.ai(),top_logprobs:Gt.YO(Gt.Ik({token:Gt.Yj(),logprob:Gt.ai()}))})).nullish()}).nullish(),finish_reason:Gt.Yj().nullish()})),usage:Gt.Ik({prompt_tokens:Gt.ai().nullish(),completion_tokens:Gt.ai().nullish(),total_tokens:Gt.ai().nullish(),prompt_tokens_details:Gt.Ik({cached_tokens:Gt.ai().nullish()}).nullish(),completion_tokens_details:Gt.Ik({reasoning_tokens:Gt.ai().nullish(),accepted_prediction_tokens:Gt.ai().nullish(),rejected_prediction_tokens:Gt.ai().nullish()}).nullish()}).nullish()})))),qt=Et((()=>Rt(Gt.KC([Gt.Ik({id:Gt.Yj().nullish(),created:Gt.ai().nullish(),model:Gt.Yj().nullish(),choices:Gt.YO(Gt.Ik({delta:Gt.Ik({role:Gt.k5(["assistant"]).nullish(),content:Gt.Yj().nullish(),tool_calls:Gt.YO(Gt.Ik({index:Gt.ai(),id:Gt.Yj().nullish(),type:Gt.eu("function").nullish(),function:Gt.Ik({name:Gt.Yj().nullish(),arguments:Gt.Yj().nullish()})})).nullish(),annotations:Gt.YO(Gt.Ik({type:Gt.eu("url_citation"),url_citation:Gt.Ik({start_index:Gt.ai(),end_index:Gt.ai(),url:Gt.Yj(),title:Gt.Yj()})})).nullish()}).nullish(),logprobs:Gt.Ik({content:Gt.YO(Gt.Ik({token:Gt.Yj(),logprob:Gt.ai(),top_logprobs:Gt.YO(Gt.Ik({token:Gt.Yj(),logprob:Gt.ai()}))})).nullish()}).nullish(),finish_reason:Gt.Yj().nullish(),index:Gt.ai()})),usage:Gt.Ik({prompt_tokens:Gt.ai().nullish(),completion_tokens:Gt.ai().nullish(),total_tokens:Gt.ai().nullish(),prompt_tokens_details:Gt.Ik({cached_tokens:Gt.ai().nullish()}).nullish(),completion_tokens_details:Gt.Ik({reasoning_tokens:Gt.ai().nullish(),accepted_prediction_tokens:Gt.ai().nullish(),rejected_prediction_tokens:Gt.ai().nullish()}).nullish()}).nullish()}),Ht])))),Kt=Et((()=>Rt(Gt.Ik({logitBias:Gt.g1(kt.ai(),Gt.ai()).optional(),logprobs:Gt.KC([Gt.zM(),Gt.ai()]).optional(),parallelToolCalls:Gt.zM().optional(),user:Gt.Yj().optional(),reasoningEffort:Gt.k5(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:Gt.ai().optional(),store:Gt.zM().optional(),metadata:Gt.g1(Gt.Yj().max(64),Gt.Yj().max(512)).optional(),prediction:Gt.g1(Gt.Yj(),Gt.bz()).optional(),serviceTier:Gt.k5(["auto","flex","priority","default"]).optional(),strictJsonSchema:Gt.zM().optional(),textVerbosity:Gt.k5(["low","medium","high"]).optional(),promptCacheKey:Gt.Yj().optional(),promptCacheRetention:Gt.k5(["in_memory","24h"]).optional(),safetyIdentifier:Gt.Yj().optional(),systemMessageMode:Gt.k5(["system","developer","remove"]).optional(),forceReasoning:Gt.zM().optional()})))),$t=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:o,topP:n,topK:i,frequencyPenalty:r,presencePenalty:s,stopSequences:a,responseFormat:l,seed:p,tools:u,toolChoice:d,providerOptions:c}){var h,f,g,m,y;const v=[],C=null!=(h=await Tt({provider:"openai",providerOptions:c,schema:Kt}))?h:{},w=jt(this.modelId),E=null!=(f=C.forceReasoning)?f:w.isReasoningModel;null!=i&&v.push({type:"unsupported",feature:"topK"});const{messages:_,warnings:R}=function({prompt:e,systemMessageMode:t="system"}){var o;const n=[],i=[];for(const{role:r,content:s}of e)switch(r){case"system":switch(t){case"system":n.push({role:"system",content:s});break;case"developer":n.push({role:"developer",content:s});break;case"remove":i.push({type:"other",message:"system messages are removed for this model"});break;default:throw new Error(`Unsupported system message mode: ${t}`)}break;case"user":if(1===s.length&&"text"===s[0].type){n.push({role:"user",content:s[0].text});break}n.push({role:"user",content:s.map(((e,t)=>{var o,n,i;switch(e.type){case"text":return{type:"text",text:e.text};case"file":if(e.mediaType.startsWith("image/")){const t="image/*"===e.mediaType?"image/jpeg":e.mediaType;return{type:"image_url",image_url:{url:e.data instanceof Wt?e.data.toString():`data:${t};base64,${De(e.data)}`,detail:null==(n=null==(o=e.providerOptions)?void 0:o.openai)?void 0:n.imageDetail}}}if(!e.mediaType.startsWith("audio/")){if("application/pdf"===e.mediaType){if(e.data instanceof Wt)throw new Ce({functionality:"PDF file parts with URLs"});return{type:"file",file:"string"==typeof e.data&&e.data.startsWith("file-")?{file_id:e.data}:{filename:null!=(i=e.filename)?i:`part-${t}.pdf`,file_data:`data:application/pdf;base64,${De(e.data)}`}}}throw new Ce({functionality:`file part media type ${e.mediaType}`})}if(e.data instanceof Wt)throw new Ce({functionality:"audio file parts with URLs"});switch(e.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:De(e.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:De(e.data),format:"mp3"}};default:throw new Ce({functionality:`audio content parts with media type ${e.mediaType}`})}}}))});break;case"assistant":{let e="";const t=[];for(const o of s)switch(o.type){case"text":e+=o.text;break;case"tool-call":t.push({id:o.toolCallId,type:"function",function:{name:o.toolName,arguments:JSON.stringify(o.input)}})}n.push({role:"assistant",content:e,tool_calls:t.length>0?t:void 0});break}case"tool":for(const e of s){if("tool-approval-response"===e.type)continue;const t=e.output;let i;switch(t.type){case"text":case"error-text":i=t.value;break;case"execution-denied":i=null!=(o=t.reason)?o:"Tool execution denied.";break;case"content":case"json":case"error-json":i=JSON.stringify(t.value)}n.push({role:"tool",tool_call_id:e.toolCallId,content:i})}break;default:throw new Error(`Unsupported role: ${r}`)}return{messages:n,warnings:i}}({prompt:e,systemMessageMode:null!=(g=C.systemMessageMode)?g:E?"developer":w.systemMessageMode});v.push(...R);const O=null==(m=C.strictJsonSchema)||m,b={model:this.modelId,logit_bias:C.logitBias,logprobs:!0===C.logprobs||"number"==typeof C.logprobs||void 0,top_logprobs:"number"==typeof C.logprobs?C.logprobs:"boolean"==typeof C.logprobs&&C.logprobs?0:void 0,user:C.user,parallel_tool_calls:C.parallelToolCalls,max_tokens:t,temperature:o,top_p:n,frequency_penalty:r,presence_penalty:s,response_format:"json"===(null==l?void 0:l.type)?null!=l.schema?{type:"json_schema",json_schema:{schema:l.schema,strict:O,name:null!=(y=l.name)?y:"response",description:l.description}}:{type:"json_object"}:void 0,stop:a,seed:p,verbosity:C.textVerbosity,max_completion_tokens:C.maxCompletionTokens,store:C.store,metadata:C.metadata,prediction:C.prediction,reasoning_effort:C.reasoningEffort,service_tier:C.serviceTier,prompt_cache_key:C.promptCacheKey,prompt_cache_retention:C.promptCacheRetention,safety_identifier:C.safetyIdentifier,messages:_};E?("none"===C.reasoningEffort&&w.supportsNonReasoningParameters||(null!=b.temperature&&(b.temperature=void 0,v.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"})),null!=b.top_p&&(b.top_p=void 0,v.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"})),null!=b.logprobs&&(b.logprobs=void 0,v.push({type:"other",message:"logprobs is not supported for reasoning models"}))),null!=b.frequency_penalty&&(b.frequency_penalty=void 0,v.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"})),null!=b.presence_penalty&&(b.presence_penalty=void 0,v.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"})),null!=b.logit_bias&&(b.logit_bias=void 0,v.push({type:"other",message:"logitBias is not supported for reasoning models"})),null!=b.top_logprobs&&(b.top_logprobs=void 0,v.push({type:"other",message:"topLogprobs is not supported for reasoning models"})),null!=b.max_tokens&&(null==b.max_completion_tokens&&(b.max_completion_tokens=b.max_tokens),b.max_tokens=void 0)):(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview"))&&null!=b.temperature&&(b.temperature=void 0,v.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})),"flex"!==C.serviceTier||w.supportsFlexProcessing||(v.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),b.service_tier=void 0),"priority"!==C.serviceTier||w.supportsPriorityProcessing||(v.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),b.service_tier=void 0);const{tools:S,toolChoice:P,toolWarnings:A}=function({tools:e,toolChoice:t}){const o=[];if(null==(e=(null==e?void 0:e.length)?e:void 0))return{tools:void 0,toolChoice:void 0,toolWarnings:o};const n=[];for(const t of e)"function"===t.type?n.push({type:"function",function:{name:t.name,description:t.description,parameters:t.inputSchema,...null!=t.strict?{strict:t.strict}:{}}}):o.push({type:"unsupported",feature:`tool type: ${t.type}`});if(null==t)return{tools:n,toolChoice:void 0,toolWarnings:o};const i=t.type;switch(i){case"auto":case"none":case"required":return{tools:n,toolChoice:i,toolWarnings:o};case"tool":return{tools:n,toolChoice:{type:"function",function:{name:t.toolName}},toolWarnings:o};default:throw new Ce({functionality:`tool choice type: ${i}`})}}({tools:u,toolChoice:d});return{args:{...b,tools:S,tool_choice:P},warnings:[...v,...A]}}async doGenerate(e){var t,o,n,i,r,s,a;const{args:l,warnings:p}=await this.getArgs(e),{responseHeaders:u,value:d,rawValue:c}=await Nt({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:be(this.config.headers(),e.headers),body:l,failedResponseHandler:Vt,successfulResponseHandler:Mt(zt),abortSignal:e.abortSignal,fetch:this.config.fetch}),h=d.choices[0],f=[],g=h.message.content;null!=g&&g.length>0&&f.push({type:"text",text:g});for(const e of null!=(t=h.message.tool_calls)?t:[])f.push({type:"tool-call",toolCallId:null!=(o=e.id)?o:We(),toolName:e.function.name,input:e.function.arguments});for(const e of null!=(n=h.message.annotations)?n:[])f.push({type:"source",sourceType:"url",id:We(),url:e.url_citation.url,title:e.url_citation.title});const m=null==(i=d.usage)?void 0:i.completion_tokens_details,y=(null==(r=d.usage)||r.prompt_tokens_details,{openai:{}});return null!=(null==m?void 0:m.accepted_prediction_tokens)&&(y.openai.acceptedPredictionTokens=null==m?void 0:m.accepted_prediction_tokens),null!=(null==m?void 0:m.rejected_prediction_tokens)&&(y.openai.rejectedPredictionTokens=null==m?void 0:m.rejected_prediction_tokens),null!=(null==(s=h.logprobs)?void 0:s.content)&&(y.openai.logprobs=h.logprobs.content),{content:f,finishReason:{unified:Ut(h.finish_reason),raw:null!=(a=h.finish_reason)?a:void 0},usage:Bt(d.usage),request:{body:l},response:{...Yt(d),headers:u,body:c},warnings:p,providerMetadata:y}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),n={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:i,value:r}=await Nt({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:be(this.config.headers(),e.headers),body:n,failedResponseHandler:Vt,successfulResponseHandler:xt(qt),abortSignal:e.abortSignal,fetch:this.config.fetch}),s=[];let a,l={unified:"other",raw:void 0},p=!1,u=!1;const d={openai:{}};return{stream:r.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){var n,i,r,c,h,f,g,m,y,v,C,w,E,_,R,O,b;if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return l={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const S=t.value;if("error"in S)return l={unified:"error",raw:void 0},void o.enqueue({type:"error",error:S.error});if(!p){const e=Yt(S);Object.values(e).some(Boolean)&&(p=!0,o.enqueue({type:"response-metadata",...Yt(S)}))}null!=S.usage&&(a=S.usage,null!=(null==(n=S.usage.completion_tokens_details)?void 0:n.accepted_prediction_tokens)&&(d.openai.acceptedPredictionTokens=null==(i=S.usage.completion_tokens_details)?void 0:i.accepted_prediction_tokens),null!=(null==(r=S.usage.completion_tokens_details)?void 0:r.rejected_prediction_tokens)&&(d.openai.rejectedPredictionTokens=null==(c=S.usage.completion_tokens_details)?void 0:c.rejected_prediction_tokens));const P=S.choices[0];if(null!=(null==P?void 0:P.finish_reason)&&(l={unified:Ut(P.finish_reason),raw:P.finish_reason}),null!=(null==(h=null==P?void 0:P.logprobs)?void 0:h.content)&&(d.openai.logprobs=P.logprobs.content),null==(null==P?void 0:P.delta))return;const A=P.delta;if(null!=A.content&&(u||(o.enqueue({type:"text-start",id:"0"}),u=!0),o.enqueue({type:"text-delta",id:"0",delta:A.content})),null!=A.tool_calls)for(const e of A.tool_calls){const t=e.index;if(null==s[t]){if("function"!==e.type)throw new K({data:e,message:"Expected 'function' type."});if(null==e.id)throw new K({data:e,message:"Expected 'id' to be a string."});if(null==(null==(f=e.function)?void 0:f.name))throw new K({data:e,message:"Expected 'function.name' to be a string."});o.enqueue({type:"tool-input-start",id:e.id,toolName:e.function.name}),s[t]={id:e.id,type:"function",function:{name:e.function.name,arguments:null!=(g=e.function.arguments)?g:""},hasFinished:!1};const n=s[t];null!=(null==(m=n.function)?void 0:m.name)&&null!=(null==(y=n.function)?void 0:y.arguments)&&(n.function.arguments.length>0&&o.enqueue({type:"tool-input-delta",id:n.id,delta:n.function.arguments}),Pt(n.function.arguments)&&(o.enqueue({type:"tool-input-end",id:n.id}),o.enqueue({type:"tool-call",toolCallId:null!=(v=n.id)?v:We(),toolName:n.function.name,input:n.function.arguments}),n.hasFinished=!0));continue}const n=s[t];n.hasFinished||(null!=(null==(C=e.function)?void 0:C.arguments)&&(n.function.arguments+=null!=(E=null==(w=e.function)?void 0:w.arguments)?E:""),o.enqueue({type:"tool-input-delta",id:n.id,delta:null!=(_=e.function.arguments)?_:""}),null!=(null==(R=n.function)?void 0:R.name)&&null!=(null==(O=n.function)?void 0:O.arguments)&&Pt(n.function.arguments)&&(o.enqueue({type:"tool-input-end",id:n.id}),o.enqueue({type:"tool-call",toolCallId:null!=(b=n.id)?b:We(),toolName:n.function.name,input:n.function.arguments}),n.hasFinished=!0))}if(null!=A.annotations)for(const e of A.annotations)o.enqueue({type:"source",sourceType:"url",id:We(),url:e.url_citation.url,title:e.url_citation.title})},flush(e){u&&e.enqueue({type:"text-end",id:"0"}),e.enqueue({type:"finish",finishReason:l,usage:Bt(a),...null!=d?{providerMetadata:d}:{}})}})),request:{body:n},response:{headers:i}}}};function Zt(e){var t,o,n,i;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const r=null!=(t=e.prompt_tokens)?t:0,s=null!=(o=e.completion_tokens)?o:0;return{inputTokens:{total:null!=(n=e.prompt_tokens)?n:void 0,noCache:r,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:null!=(i=e.completion_tokens)?i:void 0,text:s,reasoning:void 0},raw:e}}function Qt({id:e,model:t,created:o}){return{id:null!=e?e:void 0,modelId:null!=t?t:void 0,timestamp:null!=o?new Date(1e3*o):void 0}}function Xt(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var Jt=Et((()=>Rt(Gt.Ik({id:Gt.Yj().nullish(),created:Gt.ai().nullish(),model:Gt.Yj().nullish(),choices:Gt.YO(Gt.Ik({text:Gt.Yj(),finish_reason:Gt.Yj(),logprobs:Gt.Ik({tokens:Gt.YO(Gt.Yj()),token_logprobs:Gt.YO(Gt.ai()),top_logprobs:Gt.YO(Gt.g1(Gt.Yj(),Gt.ai())).nullish()}).nullish()})),usage:Gt.Ik({prompt_tokens:Gt.ai(),completion_tokens:Gt.ai(),total_tokens:Gt.ai()}).nullish()})))),eo=Et((()=>Rt(Gt.KC([Gt.Ik({id:Gt.Yj().nullish(),created:Gt.ai().nullish(),model:Gt.Yj().nullish(),choices:Gt.YO(Gt.Ik({text:Gt.Yj(),finish_reason:Gt.Yj().nullish(),index:Gt.ai(),logprobs:Gt.Ik({tokens:Gt.YO(Gt.Yj()),token_logprobs:Gt.YO(Gt.ai()),top_logprobs:Gt.YO(Gt.g1(Gt.Yj(),Gt.ai())).nullish()}).nullish()})),usage:Gt.Ik({prompt_tokens:Gt.ai(),completion_tokens:Gt.ai(),total_tokens:Gt.ai()}).nullish()}),Ht])))),to=Et((()=>Rt(Gt.Ik({echo:Gt.zM().optional(),logitBias:Gt.g1(Gt.Yj(),Gt.ai()).optional(),suffix:Gt.Yj().optional(),user:Gt.Yj().optional(),logprobs:Gt.KC([Gt.zM(),Gt.ai()]).optional()})))),oo=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={},this.modelId=e,this.config=t}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:o,topP:n,topK:i,frequencyPenalty:r,presencePenalty:s,stopSequences:a,responseFormat:l,tools:p,toolChoice:u,seed:d,providerOptions:c}){const h=[],f={...await Tt({provider:"openai",providerOptions:c,schema:to}),...await Tt({provider:this.providerOptionsName,providerOptions:c,schema:to})};null!=i&&h.push({type:"unsupported",feature:"topK"}),(null==p?void 0:p.length)&&h.push({type:"unsupported",feature:"tools"}),null!=u&&h.push({type:"unsupported",feature:"toolChoice"}),null!=l&&"text"!==l.type&&h.push({type:"unsupported",feature:"responseFormat",details:"JSON response format is not supported."});const{prompt:g,stopSequences:m}=function({prompt:e,user:t="user",assistant:o="assistant"}){let n="";"system"===e[0].role&&(n+=`${e[0].content}\n\n`,e=e.slice(1));for(const{role:i,content:r}of e)switch(i){case"system":throw new Y({message:"Unexpected system message in prompt: ${content}",prompt:e});case"user":n+=`${t}:\n${r.map((e=>{if("text"===e.type)return e.text})).filter(Boolean).join("")}\n\n`;break;case"assistant":n+=`${o}:\n${r.map((e=>{switch(e.type){case"text":return e.text;case"tool-call":throw new Ce({functionality:"tool-call messages"})}})).join("")}\n\n`;break;case"tool":throw new Ce({functionality:"tool messages"});default:throw new Error(`Unsupported role: ${i}`)}return n+=`${o}:\n`,{prompt:n,stopSequences:[`\n${t}:`]}}({prompt:e}),y=[...null!=m?m:[],...null!=a?a:[]];return{args:{model:this.modelId,echo:f.echo,logit_bias:f.logitBias,logprobs:!0===(null==f?void 0:f.logprobs)?0:!1===(null==f?void 0:f.logprobs)||null==f?void 0:f.logprobs,suffix:f.suffix,user:f.user,max_tokens:t,temperature:o,top_p:n,frequency_penalty:r,presence_penalty:s,seed:d,prompt:g,stop:y.length>0?y:void 0},warnings:h}}async doGenerate(e){var t;const{args:o,warnings:n}=await this.getArgs(e),{responseHeaders:i,value:r,rawValue:s}=await Nt({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:be(this.config.headers(),e.headers),body:o,failedResponseHandler:Vt,successfulResponseHandler:Mt(Jt),abortSignal:e.abortSignal,fetch:this.config.fetch}),a=r.choices[0],l={openai:{}};return null!=a.logprobs&&(l.openai.logprobs=a.logprobs),{content:[{type:"text",text:a.text}],usage:Zt(r.usage),finishReason:{unified:Xt(a.finish_reason),raw:null!=(t=a.finish_reason)?t:void 0},request:{body:o},response:{...Qt(r),headers:i,body:s},providerMetadata:l,warnings:n}}async doStream(e){const{args:t,warnings:o}=await this.getArgs(e),n={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:i,value:r}=await Nt({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:be(this.config.headers(),e.headers),body:n,failedResponseHandler:Vt,successfulResponseHandler:xt(eo),abortSignal:e.abortSignal,fetch:this.config.fetch});let s={unified:"other",raw:void 0};const a={openai:{}};let l,p=!0;return{stream:r.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return s={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const n=t.value;if("error"in n)return s={unified:"error",raw:void 0},void o.enqueue({type:"error",error:n.error});p&&(p=!1,o.enqueue({type:"response-metadata",...Qt(n)}),o.enqueue({type:"text-start",id:"0"})),null!=n.usage&&(l=n.usage);const i=n.choices[0];null!=(null==i?void 0:i.finish_reason)&&(s={unified:Xt(i.finish_reason),raw:i.finish_reason}),null!=(null==i?void 0:i.logprobs)&&(a.openai.logprobs=i.logprobs),null!=(null==i?void 0:i.text)&&i.text.length>0&&o.enqueue({type:"text-delta",id:"0",delta:i.text})},flush(e){p||e.enqueue({type:"text-end",id:"0"}),e.enqueue({type:"finish",finishReason:s,providerMetadata:a,usage:Zt(l)})}})),request:{body:n},response:{headers:i}}}},no=Et((()=>Rt(Gt.Ik({dimensions:Gt.ai().optional(),user:Gt.Yj().optional()})))),io=Et((()=>Rt(Gt.Ik({data:Gt.YO(Gt.Ik({embedding:Gt.YO(Gt.ai())})),usage:Gt.Ik({prompt_tokens:Gt.ai()}).nullish()})))),ro=class{constructor(e,t){this.specificationVersion="v3",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0,this.modelId=e,this.config=t}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:o,providerOptions:n}){var i;if(e.length>this.maxEmbeddingsPerCall)throw new de({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:e});const r=null!=(i=await Tt({provider:"openai",providerOptions:n,schema:no}))?i:{},{responseHeaders:s,value:a,rawValue:l}=await Nt({url:this.config.url({path:"/embeddings",modelId:this.modelId}),headers:be(this.config.headers(),t),body:{model:this.modelId,input:e,encoding_format:"float",dimensions:r.dimensions,user:r.user},failedResponseHandler:Vt,successfulResponseHandler:Mt(io),abortSignal:o,fetch:this.config.fetch});return{warnings:[],embeddings:a.data.map((e=>e.embedding)),usage:a.usage?{tokens:a.usage.prompt_tokens}:void 0,response:{headers:s,body:l}}}},so=Et((()=>Rt(Gt.Ik({created:Gt.ai().nullish(),data:Gt.YO(Gt.Ik({b64_json:Gt.Yj(),revised_prompt:Gt.Yj().nullish()})),background:Gt.Yj().nullish(),output_format:Gt.Yj().nullish(),size:Gt.Yj().nullish(),quality:Gt.Yj().nullish(),usage:Gt.Ik({input_tokens:Gt.ai().nullish(),output_tokens:Gt.ai().nullish(),total_tokens:Gt.ai().nullish(),input_tokens_details:Gt.Ik({image_tokens:Gt.ai().nullish(),text_tokens:Gt.ai().nullish()}).nullish()}).nullish()})))),ao={"dall-e-3":1,"dall-e-2":10,"gpt-image-1":10,"gpt-image-1-mini":10,"gpt-image-1.5":10},lo=["gpt-image-1-mini","gpt-image-1.5","gpt-image-1"],po=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get maxImagesPerCall(){var e;return null!=(e=ao[this.modelId])?e:1}get provider(){return this.config.provider}async doGenerate({prompt:e,files:t,mask:o,n,size:i,aspectRatio:r,seed:s,providerOptions:a,headers:l,abortSignal:p}){var u,d,c,h,f,g,m,y,v,C,w;const E=[];null!=r&&E.push({type:"unsupported",feature:"aspectRatio",details:"This model does not support aspect ratio. Use `size` instead."}),null!=s&&E.push({type:"unsupported",feature:"seed"});const _=null!=(c=null==(d=null==(u=this.config._internal)?void 0:u.currentDate)?void 0:d.call(u))?c:new Date;if(null!=t){const{value:r,responseHeaders:s}=await It({url:this.config.url({path:"/images/edits",modelId:this.modelId}),headers:be(this.config.headers(),l),formData:Ne({model:this.modelId,prompt:e,image:await Promise.all(t.map((e=>"file"===e.type?new Blob([e.data instanceof Uint8Array?new Blob([e.data],{type:e.mediaType}):new Blob([Te(e.data)],{type:e.mediaType})],{type:e.mediaType}):ke(e.url)))),mask:null!=o?await uo(o):void 0,n,size:i,...null!=(h=a.openai)?h:{}}),failedResponseHandler:Vt,successfulResponseHandler:Mt(so),abortSignal:p,fetch:this.config.fetch});return{images:r.data.map((e=>e.b64_json)),warnings:E,usage:null!=r.usage?{inputTokens:null!=(f=r.usage.input_tokens)?f:void 0,outputTokens:null!=(g=r.usage.output_tokens)?g:void 0,totalTokens:null!=(m=r.usage.total_tokens)?m:void 0}:void 0,response:{timestamp:_,modelId:this.modelId,headers:s},providerMetadata:{openai:{images:r.data.map((e=>{var t,o,n,i,s;return{...e.revised_prompt?{revisedPrompt:e.revised_prompt}:{},created:null!=(t=r.created)?t:void 0,size:null!=(o=r.size)?o:void 0,quality:null!=(n=r.quality)?n:void 0,background:null!=(i=r.background)?i:void 0,outputFormat:null!=(s=r.output_format)?s:void 0}}))}}}}const{value:R,responseHeaders:O}=await Nt({url:this.config.url({path:"/images/generations",modelId:this.modelId}),headers:be(this.config.headers(),l),body:{model:this.modelId,prompt:e,n,size:i,...null!=(y=a.openai)?y:{},...(b=this.modelId,lo.some((e=>b.startsWith(e)))?{}:{response_format:"b64_json"})},failedResponseHandler:Vt,successfulResponseHandler:Mt(so),abortSignal:p,fetch:this.config.fetch});var b;return{images:R.data.map((e=>e.b64_json)),warnings:E,usage:null!=R.usage?{inputTokens:null!=(v=R.usage.input_tokens)?v:void 0,outputTokens:null!=(C=R.usage.output_tokens)?C:void 0,totalTokens:null!=(w=R.usage.total_tokens)?w:void 0}:void 0,response:{timestamp:_,modelId:this.modelId,headers:O},providerMetadata:{openai:{images:R.data.map((e=>{var t,o,n,i,r;return{...e.revised_prompt?{revisedPrompt:e.revised_prompt}:{},created:null!=(t=R.created)?t:void 0,size:null!=(o=R.size)?o:void 0,quality:null!=(n=R.quality)?n:void 0,background:null!=(i=R.background)?i:void 0,outputFormat:null!=(r=R.output_format)?r:void 0}}))}}}}};async function uo(e){if(!e)return;if("url"===e.type)return ke(e.url);const t=e.data instanceof Uint8Array?e.data:Te(e.data);return new Blob([t],{type:e.mediaType})}var co=Et((()=>Rt(Gt.Ik({callId:Gt.Yj(),operation:Gt.gM("type",[Gt.Ik({type:Gt.eu("create_file"),path:Gt.Yj(),diff:Gt.Yj()}),Gt.Ik({type:Gt.eu("delete_file"),path:Gt.Yj()}),Gt.Ik({type:Gt.eu("update_file"),path:Gt.Yj(),diff:Gt.Yj()})])})))),ho=Et((()=>Rt(Gt.Ik({status:Gt.k5(["completed","failed"]),output:Gt.Yj().optional()})))),fo=(Et((()=>Rt(Gt.Ik({})))),Lt({id:"openai.apply_patch",inputSchema:co,outputSchema:ho})),go=Et((()=>Rt(Gt.Ik({code:Gt.Yj().nullish(),containerId:Gt.Yj()})))),mo=Et((()=>Rt(Gt.Ik({outputs:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("logs"),logs:Gt.Yj()}),Gt.Ik({type:Gt.eu("image"),url:Gt.Yj()})])).nullish()})))),yo=Et((()=>Rt(Gt.Ik({container:Gt.KC([Gt.Yj(),Gt.Ik({fileIds:Gt.YO(Gt.Yj()).optional()})]).optional()})))),vo=Lt({id:"openai.code_interpreter",inputSchema:go,outputSchema:mo}),Co=Gt.Ik({key:Gt.Yj(),type:Gt.k5(["eq","ne","gt","gte","lt","lte","in","nin"]),value:Gt.KC([Gt.Yj(),Gt.ai(),Gt.zM(),Gt.YO(Gt.Yj())])}),wo=Gt.Ik({type:Gt.k5(["and","or"]),filters:Gt.YO(Gt.KC([Co,Gt.RZ((()=>wo))]))}),Eo=Et((()=>Rt(Gt.Ik({vectorStoreIds:Gt.YO(Gt.Yj()),maxNumResults:Gt.ai().optional(),ranking:Gt.Ik({ranker:Gt.Yj().optional(),scoreThreshold:Gt.ai().optional()}).optional(),filters:Gt.KC([Co,wo]).optional()})))),_o=Et((()=>Rt(Gt.Ik({queries:Gt.YO(Gt.Yj()),results:Gt.YO(Gt.Ik({attributes:Gt.g1(Gt.Yj(),Gt.L5()),fileId:Gt.Yj(),filename:Gt.Yj(),score:Gt.ai(),text:Gt.Yj()})).nullable()})))),Ro=Lt({id:"openai.file_search",inputSchema:Gt.Ik({}),outputSchema:_o}),Oo=Et((()=>Rt(Gt.Ik({background:Gt.k5(["auto","opaque","transparent"]).optional(),inputFidelity:Gt.k5(["low","high"]).optional(),inputImageMask:Gt.Ik({fileId:Gt.Yj().optional(),imageUrl:Gt.Yj().optional()}).optional(),model:Gt.Yj().optional(),moderation:Gt.k5(["auto"]).optional(),outputCompression:Gt.ai().int().min(0).max(100).optional(),outputFormat:Gt.k5(["png","jpeg","webp"]).optional(),partialImages:Gt.ai().int().min(0).max(3).optional(),quality:Gt.k5(["auto","low","medium","high"]).optional(),size:Gt.k5(["1024x1024","1024x1536","1536x1024","auto"]).optional()}).strict()))),bo=Lt({id:"openai.image_generation",inputSchema:Et((()=>Rt(Gt.Ik({})))),outputSchema:Et((()=>Rt(Gt.Ik({result:Gt.Yj()}))))}),So=Et((()=>Rt(Gt.Ik({action:Gt.Ik({type:Gt.eu("exec"),command:Gt.YO(Gt.Yj()),timeoutMs:Gt.ai().optional(),user:Gt.Yj().optional(),workingDirectory:Gt.Yj().optional(),env:Gt.g1(Gt.Yj(),Gt.Yj()).optional()})})))),Po=Et((()=>Rt(Gt.Ik({output:Gt.Yj()})))),Ao=Lt({id:"openai.local_shell",inputSchema:So,outputSchema:Po}),To=Et((()=>Rt(Gt.Ik({action:Gt.Ik({commands:Gt.YO(Gt.Yj()),timeoutMs:Gt.ai().optional(),maxOutputLength:Gt.ai().optional()})})))),Do=Et((()=>Rt(Gt.Ik({output:Gt.YO(Gt.Ik({stdout:Gt.Yj(),stderr:Gt.Yj(),outcome:Gt.gM("type",[Gt.Ik({type:Gt.eu("timeout")}),Gt.Ik({type:Gt.eu("exit"),exitCode:Gt.ai()})])}))})))),No=Lt({id:"openai.shell",inputSchema:To,outputSchema:Do}),Io=Et((()=>Rt(Gt.Ik({externalWebAccess:Gt.zM().optional(),filters:Gt.Ik({allowedDomains:Gt.YO(Gt.Yj()).optional()}).optional(),searchContextSize:Gt.k5(["low","medium","high"]).optional(),userLocation:Gt.Ik({type:Gt.eu("approximate"),country:Gt.Yj().optional(),city:Gt.Yj().optional(),region:Gt.Yj().optional(),timezone:Gt.Yj().optional()}).optional()})))),Fo=Lt({id:"openai.web_search",inputSchema:Et((()=>Rt(Gt.Ik({})))),outputSchema:Et((()=>Rt(Gt.Ik({action:Gt.gM("type",[Gt.Ik({type:Gt.eu("search"),query:Gt.Yj().optional()}),Gt.Ik({type:Gt.eu("openPage"),url:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("findInPage"),url:Gt.Yj().nullish(),pattern:Gt.Yj().nullish()})]),sources:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("url"),url:Gt.Yj()}),Gt.Ik({type:Gt.eu("api"),name:Gt.Yj()})])).optional()}))))}),Lo=Et((()=>Rt(Gt.Ik({searchContextSize:Gt.k5(["low","medium","high"]).optional(),userLocation:Gt.Ik({type:Gt.eu("approximate"),country:Gt.Yj().optional(),city:Gt.Yj().optional(),region:Gt.Yj().optional(),timezone:Gt.Yj().optional()}).optional()})))),xo=Lt({id:"openai.web_search_preview",inputSchema:Et((()=>Rt(Gt.Ik({})))),outputSchema:Et((()=>Rt(Gt.Ik({action:Gt.gM("type",[Gt.Ik({type:Gt.eu("search"),query:Gt.Yj().optional()}),Gt.Ik({type:Gt.eu("openPage"),url:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("findInPage"),url:Gt.Yj().nullish(),pattern:Gt.Yj().nullish()})])}))))}),Mo=Gt.RZ((()=>Gt.KC([Gt.Yj(),Gt.ai(),Gt.zM(),Gt.ch(),Gt.YO(Mo),Gt.g1(Gt.Yj(),Mo)]))),Go=Et((()=>Rt(Gt.Ik({serverLabel:Gt.Yj(),allowedTools:Gt.KC([Gt.YO(Gt.Yj()),Gt.Ik({readOnly:Gt.zM().optional(),toolNames:Gt.YO(Gt.Yj()).optional()})]).optional(),authorization:Gt.Yj().optional(),connectorId:Gt.Yj().optional(),headers:Gt.g1(Gt.Yj(),Gt.Yj()).optional(),requireApproval:Gt.KC([Gt.k5(["always","never"]),Gt.Ik({never:Gt.Ik({toolNames:Gt.YO(Gt.Yj()).optional()}).optional()})]).optional(),serverDescription:Gt.Yj().optional(),serverUrl:Gt.Yj().optional()}).refine((e=>null!=e.serverUrl||null!=e.connectorId),"One of serverUrl or connectorId must be provided.")))),ko=Lt({id:"openai.mcp",inputSchema:Et((()=>Rt(Gt.Ik({})))),outputSchema:Et((()=>Rt(Gt.Ik({type:Gt.eu("call"),serverLabel:Gt.Yj(),name:Gt.Yj(),arguments:Gt.Yj(),output:Gt.Yj().nullish(),error:Gt.KC([Gt.Yj(),Mo]).optional()}))))}),Wo={applyPatch:fo,codeInterpreter:(e={})=>vo(e),fileSearch:Ro,imageGeneration:(e={})=>bo(e),localShell:Ao,shell:No,webSearchPreview:xo,webSearch:(e={})=>Fo(e),mcp:e=>ko(e)};function Ho(e){var t,o,n,i;if(null==e)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};const r=e.input_tokens,s=e.output_tokens,a=null!=(o=null==(t=e.input_tokens_details)?void 0:t.cached_tokens)?o:0,l=null!=(i=null==(n=e.output_tokens_details)?void 0:n.reasoning_tokens)?i:0;return{inputTokens:{total:r,noCache:r-a,cacheRead:a,cacheWrite:void 0},outputTokens:{total:s,text:s-l,reasoning:l},raw:e}}function Vo(e,t){return!!t&&t.some((t=>e.startsWith(t)))}var jo=Gt.Ik({itemId:Gt.Yj().nullish(),reasoningEncryptedContent:Gt.Yj().nullish()});function Bo({finishReason:e,hasFunctionCall:t}){switch(e){case void 0:case null:return t?"tool-calls":"stop";case"max_output_tokens":return"length";case"content_filter":return"content-filter";default:return t?"tool-calls":"other"}}var Yo=Et((()=>Rt(Gt.KC([Gt.Ik({type:Gt.eu("response.output_text.delta"),item_id:Gt.Yj(),delta:Gt.Yj(),logprobs:Gt.YO(Gt.Ik({token:Gt.Yj(),logprob:Gt.ai(),top_logprobs:Gt.YO(Gt.Ik({token:Gt.Yj(),logprob:Gt.ai()}))})).nullish()}),Gt.Ik({type:Gt.k5(["response.completed","response.incomplete"]),response:Gt.Ik({incomplete_details:Gt.Ik({reason:Gt.Yj()}).nullish(),usage:Gt.Ik({input_tokens:Gt.ai(),input_tokens_details:Gt.Ik({cached_tokens:Gt.ai().nullish()}).nullish(),output_tokens:Gt.ai(),output_tokens_details:Gt.Ik({reasoning_tokens:Gt.ai().nullish()}).nullish()}),service_tier:Gt.Yj().nullish()})}),Gt.Ik({type:Gt.eu("response.created"),response:Gt.Ik({id:Gt.Yj(),created_at:Gt.ai(),model:Gt.Yj(),service_tier:Gt.Yj().nullish()})}),Gt.Ik({type:Gt.eu("response.output_item.added"),output_index:Gt.ai(),item:Gt.gM("type",[Gt.Ik({type:Gt.eu("message"),id:Gt.Yj()}),Gt.Ik({type:Gt.eu("reasoning"),id:Gt.Yj(),encrypted_content:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("function_call"),id:Gt.Yj(),call_id:Gt.Yj(),name:Gt.Yj(),arguments:Gt.Yj()}),Gt.Ik({type:Gt.eu("web_search_call"),id:Gt.Yj(),status:Gt.Yj()}),Gt.Ik({type:Gt.eu("computer_call"),id:Gt.Yj(),status:Gt.Yj()}),Gt.Ik({type:Gt.eu("file_search_call"),id:Gt.Yj()}),Gt.Ik({type:Gt.eu("image_generation_call"),id:Gt.Yj()}),Gt.Ik({type:Gt.eu("code_interpreter_call"),id:Gt.Yj(),container_id:Gt.Yj(),code:Gt.Yj().nullable(),outputs:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("logs"),logs:Gt.Yj()}),Gt.Ik({type:Gt.eu("image"),url:Gt.Yj()})])).nullable(),status:Gt.Yj()}),Gt.Ik({type:Gt.eu("mcp_call"),id:Gt.Yj(),status:Gt.Yj(),approval_request_id:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("mcp_list_tools"),id:Gt.Yj()}),Gt.Ik({type:Gt.eu("mcp_approval_request"),id:Gt.Yj()}),Gt.Ik({type:Gt.eu("apply_patch_call"),id:Gt.Yj(),call_id:Gt.Yj(),status:Gt.k5(["in_progress","completed"]),operation:Gt.gM("type",[Gt.Ik({type:Gt.eu("create_file"),path:Gt.Yj(),diff:Gt.Yj()}),Gt.Ik({type:Gt.eu("delete_file"),path:Gt.Yj()}),Gt.Ik({type:Gt.eu("update_file"),path:Gt.Yj(),diff:Gt.Yj()})])}),Gt.Ik({type:Gt.eu("shell_call"),id:Gt.Yj(),call_id:Gt.Yj(),status:Gt.k5(["in_progress","completed","incomplete"]),action:Gt.Ik({commands:Gt.YO(Gt.Yj())})})])}),Gt.Ik({type:Gt.eu("response.output_item.done"),output_index:Gt.ai(),item:Gt.gM("type",[Gt.Ik({type:Gt.eu("message"),id:Gt.Yj()}),Gt.Ik({type:Gt.eu("reasoning"),id:Gt.Yj(),encrypted_content:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("function_call"),id:Gt.Yj(),call_id:Gt.Yj(),name:Gt.Yj(),arguments:Gt.Yj(),status:Gt.eu("completed")}),Gt.Ik({type:Gt.eu("code_interpreter_call"),id:Gt.Yj(),code:Gt.Yj().nullable(),container_id:Gt.Yj(),outputs:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("logs"),logs:Gt.Yj()}),Gt.Ik({type:Gt.eu("image"),url:Gt.Yj()})])).nullable()}),Gt.Ik({type:Gt.eu("image_generation_call"),id:Gt.Yj(),result:Gt.Yj()}),Gt.Ik({type:Gt.eu("web_search_call"),id:Gt.Yj(),status:Gt.Yj(),action:Gt.gM("type",[Gt.Ik({type:Gt.eu("search"),query:Gt.Yj().nullish(),sources:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("url"),url:Gt.Yj()}),Gt.Ik({type:Gt.eu("api"),name:Gt.Yj()})])).nullish()}),Gt.Ik({type:Gt.eu("open_page"),url:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("find_in_page"),url:Gt.Yj().nullish(),pattern:Gt.Yj().nullish()})])}),Gt.Ik({type:Gt.eu("file_search_call"),id:Gt.Yj(),queries:Gt.YO(Gt.Yj()),results:Gt.YO(Gt.Ik({attributes:Gt.g1(Gt.Yj(),Gt.KC([Gt.Yj(),Gt.ai(),Gt.zM()])),file_id:Gt.Yj(),filename:Gt.Yj(),score:Gt.ai(),text:Gt.Yj()})).nullish()}),Gt.Ik({type:Gt.eu("local_shell_call"),id:Gt.Yj(),call_id:Gt.Yj(),action:Gt.Ik({type:Gt.eu("exec"),command:Gt.YO(Gt.Yj()),timeout_ms:Gt.ai().optional(),user:Gt.Yj().optional(),working_directory:Gt.Yj().optional(),env:Gt.g1(Gt.Yj(),Gt.Yj()).optional()})}),Gt.Ik({type:Gt.eu("computer_call"),id:Gt.Yj(),status:Gt.eu("completed")}),Gt.Ik({type:Gt.eu("mcp_call"),id:Gt.Yj(),status:Gt.Yj(),arguments:Gt.Yj(),name:Gt.Yj(),server_label:Gt.Yj(),output:Gt.Yj().nullish(),error:Gt.KC([Gt.Yj(),Gt.Ik({type:Gt.Yj().optional(),code:Gt.KC([Gt.ai(),Gt.Yj()]).optional(),message:Gt.Yj().optional()}).loose()]).nullish(),approval_request_id:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("mcp_list_tools"),id:Gt.Yj(),server_label:Gt.Yj(),tools:Gt.YO(Gt.Ik({name:Gt.Yj(),description:Gt.Yj().optional(),input_schema:Gt.bz(),annotations:Gt.g1(Gt.Yj(),Gt.L5()).optional()})),error:Gt.KC([Gt.Yj(),Gt.Ik({type:Gt.Yj().optional(),code:Gt.KC([Gt.ai(),Gt.Yj()]).optional(),message:Gt.Yj().optional()}).loose()]).optional()}),Gt.Ik({type:Gt.eu("mcp_approval_request"),id:Gt.Yj(),server_label:Gt.Yj(),name:Gt.Yj(),arguments:Gt.Yj(),approval_request_id:Gt.Yj().optional()}),Gt.Ik({type:Gt.eu("apply_patch_call"),id:Gt.Yj(),call_id:Gt.Yj(),status:Gt.k5(["in_progress","completed"]),operation:Gt.gM("type",[Gt.Ik({type:Gt.eu("create_file"),path:Gt.Yj(),diff:Gt.Yj()}),Gt.Ik({type:Gt.eu("delete_file"),path:Gt.Yj()}),Gt.Ik({type:Gt.eu("update_file"),path:Gt.Yj(),diff:Gt.Yj()})])}),Gt.Ik({type:Gt.eu("shell_call"),id:Gt.Yj(),call_id:Gt.Yj(),status:Gt.k5(["in_progress","completed","incomplete"]),action:Gt.Ik({commands:Gt.YO(Gt.Yj())})})])}),Gt.Ik({type:Gt.eu("response.function_call_arguments.delta"),item_id:Gt.Yj(),output_index:Gt.ai(),delta:Gt.Yj()}),Gt.Ik({type:Gt.eu("response.image_generation_call.partial_image"),item_id:Gt.Yj(),output_index:Gt.ai(),partial_image_b64:Gt.Yj()}),Gt.Ik({type:Gt.eu("response.code_interpreter_call_code.delta"),item_id:Gt.Yj(),output_index:Gt.ai(),delta:Gt.Yj()}),Gt.Ik({type:Gt.eu("response.code_interpreter_call_code.done"),item_id:Gt.Yj(),output_index:Gt.ai(),code:Gt.Yj()}),Gt.Ik({type:Gt.eu("response.output_text.annotation.added"),annotation:Gt.gM("type",[Gt.Ik({type:Gt.eu("url_citation"),start_index:Gt.ai(),end_index:Gt.ai(),url:Gt.Yj(),title:Gt.Yj()}),Gt.Ik({type:Gt.eu("file_citation"),file_id:Gt.Yj(),filename:Gt.Yj(),index:Gt.ai()}),Gt.Ik({type:Gt.eu("container_file_citation"),container_id:Gt.Yj(),file_id:Gt.Yj(),filename:Gt.Yj(),start_index:Gt.ai(),end_index:Gt.ai()}),Gt.Ik({type:Gt.eu("file_path"),file_id:Gt.Yj(),index:Gt.ai()})])}),Gt.Ik({type:Gt.eu("response.reasoning_summary_part.added"),item_id:Gt.Yj(),summary_index:Gt.ai()}),Gt.Ik({type:Gt.eu("response.reasoning_summary_text.delta"),item_id:Gt.Yj(),summary_index:Gt.ai(),delta:Gt.Yj()}),Gt.Ik({type:Gt.eu("response.reasoning_summary_part.done"),item_id:Gt.Yj(),summary_index:Gt.ai()}),Gt.Ik({type:Gt.eu("response.apply_patch_call_operation_diff.delta"),item_id:Gt.Yj(),output_index:Gt.ai(),delta:Gt.Yj(),obfuscation:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("response.apply_patch_call_operation_diff.done"),item_id:Gt.Yj(),output_index:Gt.ai(),diff:Gt.Yj()}),Gt.Ik({type:Gt.eu("error"),sequence_number:Gt.ai(),error:Gt.Ik({type:Gt.Yj(),code:Gt.Yj(),message:Gt.Yj(),param:Gt.Yj().nullish()})}),Gt.Ik({type:Gt.Yj()}).loose().transform((e=>({type:"unknown_chunk",message:e.type})))])))),Uo=Et((()=>Rt(Gt.Ik({id:Gt.Yj().optional(),created_at:Gt.ai().optional(),error:Gt.Ik({message:Gt.Yj(),type:Gt.Yj(),param:Gt.Yj().nullish(),code:Gt.Yj()}).nullish(),model:Gt.Yj().optional(),output:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("message"),role:Gt.eu("assistant"),id:Gt.Yj(),content:Gt.YO(Gt.Ik({type:Gt.eu("output_text"),text:Gt.Yj(),logprobs:Gt.YO(Gt.Ik({token:Gt.Yj(),logprob:Gt.ai(),top_logprobs:Gt.YO(Gt.Ik({token:Gt.Yj(),logprob:Gt.ai()}))})).nullish(),annotations:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("url_citation"),start_index:Gt.ai(),end_index:Gt.ai(),url:Gt.Yj(),title:Gt.Yj()}),Gt.Ik({type:Gt.eu("file_citation"),file_id:Gt.Yj(),filename:Gt.Yj(),index:Gt.ai()}),Gt.Ik({type:Gt.eu("container_file_citation"),container_id:Gt.Yj(),file_id:Gt.Yj(),filename:Gt.Yj(),start_index:Gt.ai(),end_index:Gt.ai()}),Gt.Ik({type:Gt.eu("file_path"),file_id:Gt.Yj(),index:Gt.ai()})]))}))}),Gt.Ik({type:Gt.eu("web_search_call"),id:Gt.Yj(),status:Gt.Yj(),action:Gt.gM("type",[Gt.Ik({type:Gt.eu("search"),query:Gt.Yj().nullish(),sources:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("url"),url:Gt.Yj()}),Gt.Ik({type:Gt.eu("api"),name:Gt.Yj()})])).nullish()}),Gt.Ik({type:Gt.eu("open_page"),url:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("find_in_page"),url:Gt.Yj().nullish(),pattern:Gt.Yj().nullish()})])}),Gt.Ik({type:Gt.eu("file_search_call"),id:Gt.Yj(),queries:Gt.YO(Gt.Yj()),results:Gt.YO(Gt.Ik({attributes:Gt.g1(Gt.Yj(),Gt.KC([Gt.Yj(),Gt.ai(),Gt.zM()])),file_id:Gt.Yj(),filename:Gt.Yj(),score:Gt.ai(),text:Gt.Yj()})).nullish()}),Gt.Ik({type:Gt.eu("code_interpreter_call"),id:Gt.Yj(),code:Gt.Yj().nullable(),container_id:Gt.Yj(),outputs:Gt.YO(Gt.gM("type",[Gt.Ik({type:Gt.eu("logs"),logs:Gt.Yj()}),Gt.Ik({type:Gt.eu("image"),url:Gt.Yj()})])).nullable()}),Gt.Ik({type:Gt.eu("image_generation_call"),id:Gt.Yj(),result:Gt.Yj()}),Gt.Ik({type:Gt.eu("local_shell_call"),id:Gt.Yj(),call_id:Gt.Yj(),action:Gt.Ik({type:Gt.eu("exec"),command:Gt.YO(Gt.Yj()),timeout_ms:Gt.ai().optional(),user:Gt.Yj().optional(),working_directory:Gt.Yj().optional(),env:Gt.g1(Gt.Yj(),Gt.Yj()).optional()})}),Gt.Ik({type:Gt.eu("function_call"),call_id:Gt.Yj(),name:Gt.Yj(),arguments:Gt.Yj(),id:Gt.Yj()}),Gt.Ik({type:Gt.eu("computer_call"),id:Gt.Yj(),status:Gt.Yj().optional()}),Gt.Ik({type:Gt.eu("reasoning"),id:Gt.Yj(),encrypted_content:Gt.Yj().nullish(),summary:Gt.YO(Gt.Ik({type:Gt.eu("summary_text"),text:Gt.Yj()}))}),Gt.Ik({type:Gt.eu("mcp_call"),id:Gt.Yj(),status:Gt.Yj(),arguments:Gt.Yj(),name:Gt.Yj(),server_label:Gt.Yj(),output:Gt.Yj().nullish(),error:Gt.KC([Gt.Yj(),Gt.Ik({type:Gt.Yj().optional(),code:Gt.KC([Gt.ai(),Gt.Yj()]).optional(),message:Gt.Yj().optional()}).loose()]).nullish(),approval_request_id:Gt.Yj().nullish()}),Gt.Ik({type:Gt.eu("mcp_list_tools"),id:Gt.Yj(),server_label:Gt.Yj(),tools:Gt.YO(Gt.Ik({name:Gt.Yj(),description:Gt.Yj().optional(),input_schema:Gt.bz(),annotations:Gt.g1(Gt.Yj(),Gt.L5()).optional()})),error:Gt.KC([Gt.Yj(),Gt.Ik({type:Gt.Yj().optional(),code:Gt.KC([Gt.ai(),Gt.Yj()]).optional(),message:Gt.Yj().optional()}).loose()]).optional()}),Gt.Ik({type:Gt.eu("mcp_approval_request"),id:Gt.Yj(),server_label:Gt.Yj(),name:Gt.Yj(),arguments:Gt.Yj(),approval_request_id:Gt.Yj().optional()}),Gt.Ik({type:Gt.eu("apply_patch_call"),id:Gt.Yj(),call_id:Gt.Yj(),status:Gt.k5(["in_progress","completed"]),operation:Gt.gM("type",[Gt.Ik({type:Gt.eu("create_file"),path:Gt.Yj(),diff:Gt.Yj()}),Gt.Ik({type:Gt.eu("delete_file"),path:Gt.Yj()}),Gt.Ik({type:Gt.eu("update_file"),path:Gt.Yj(),diff:Gt.Yj()})])}),Gt.Ik({type:Gt.eu("shell_call"),id:Gt.Yj(),call_id:Gt.Yj(),status:Gt.k5(["in_progress","completed","incomplete"]),action:Gt.Ik({commands:Gt.YO(Gt.Yj())})})])).optional(),service_tier:Gt.Yj().nullish(),incomplete_details:Gt.Ik({reason:Gt.Yj()}).nullish(),usage:Gt.Ik({input_tokens:Gt.ai(),input_tokens_details:Gt.Ik({cached_tokens:Gt.ai().nullish()}).nullish(),output_tokens:Gt.ai(),output_tokens_details:Gt.Ik({reasoning_tokens:Gt.ai().nullish()}).nullish()}).optional()})))),zo=Et((()=>Rt(Gt.Ik({conversation:Gt.Yj().nullish(),include:Gt.YO(Gt.k5(["reasoning.encrypted_content","file_search_call.results","message.output_text.logprobs"])).nullish(),instructions:Gt.Yj().nullish(),logprobs:Gt.KC([Gt.zM(),Gt.ai().min(1).max(20)]).optional(),maxToolCalls:Gt.ai().nullish(),metadata:Gt.bz().nullish(),parallelToolCalls:Gt.zM().nullish(),previousResponseId:Gt.Yj().nullish(),promptCacheKey:Gt.Yj().nullish(),promptCacheRetention:Gt.k5(["in_memory","24h"]).nullish(),reasoningEffort:Gt.Yj().nullish(),reasoningSummary:Gt.Yj().nullish(),safetyIdentifier:Gt.Yj().nullish(),serviceTier:Gt.k5(["auto","flex","priority","default"]).nullish(),store:Gt.zM().nullish(),strictJsonSchema:Gt.zM().nullish(),textVerbosity:Gt.k5(["low","medium","high"]).nullish(),truncation:Gt.k5(["auto","disabled"]).nullish(),user:Gt.Yj().nullish(),systemMessageMode:Gt.k5(["system","developer","remove"]).optional(),forceReasoning:Gt.zM().optional()}))));function qo(e){var t,o;const n={};for(const i of e)if("assistant"===i.role)for(const e of i.content){if("tool-call"!==e.type)continue;const i=null==(o=null==(t=e.providerOptions)?void 0:t.openai)?void 0:o.approvalRequestId;null!=i&&(n[i]=e.toolCallId)}return n}var Ko=class{constructor(e,t){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/],"application/pdf":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({maxOutputTokens:e,temperature:t,stopSequences:o,topP:n,topK:i,presencePenalty:r,frequencyPenalty:s,seed:a,prompt:l,providerOptions:p,tools:u,toolChoice:d,responseFormat:c}){var h,f,g,m,y,v;const C=[],w=jt(this.modelId);null!=i&&C.push({type:"unsupported",feature:"topK"}),null!=a&&C.push({type:"unsupported",feature:"seed"}),null!=r&&C.push({type:"unsupported",feature:"presencePenalty"}),null!=s&&C.push({type:"unsupported",feature:"frequencyPenalty"}),null!=o&&C.push({type:"unsupported",feature:"stopSequences"});const E=this.config.provider.includes("azure")?"azure":"openai";let _=await Tt({provider:E,providerOptions:p,schema:zo});null==_&&"openai"!==E&&(_=await Tt({provider:"openai",providerOptions:p,schema:zo}));const R=null!=(h=null==_?void 0:_.forceReasoning)?h:w.isReasoningModel;(null==_?void 0:_.conversation)&&(null==_?void 0:_.previousResponseId)&&C.push({type:"unsupported",feature:"conversation",details:"conversation and previousResponseId cannot be used together"});const O=function({tools:e=[],providerToolNames:t}){const o={},n={};for(const i of e)if("provider"===i.type&&i.id in t){const e=t[i.id];o[i.name]=e,n[e]=i.name}return{toProviderToolName:e=>{var t;return null!=(t=o[e])?t:e},toCustomToolName:e=>{var t;return null!=(t=n[e])?t:e}}}({tools:u,providerToolNames:{"openai.code_interpreter":"code_interpreter","openai.file_search":"file_search","openai.image_generation":"image_generation","openai.local_shell":"local_shell","openai.shell":"shell","openai.web_search":"web_search","openai.web_search_preview":"web_search_preview","openai.mcp":"mcp","openai.apply_patch":"apply_patch"}}),{input:b,warnings:S}=await async function({prompt:e,toolNameMapping:t,systemMessageMode:o,providerOptionsName:n,fileIdPrefixes:i,store:r,hasLocalShellTool:s=!1,hasShellTool:a=!1,hasApplyPatchTool:l=!1}){var p,u,d,c,h,f,g,m,y,v,C,w,E;const _=[],R=[],O=new Set;for(const{role:b,content:S}of e)switch(b){case"system":switch(o){case"system":_.push({role:"system",content:S});break;case"developer":_.push({role:"developer",content:S});break;case"remove":R.push({type:"other",message:"system messages are removed for this model"});break;default:throw new Error(`Unsupported system message mode: ${o}`)}break;case"user":_.push({role:"user",content:S.map(((e,t)=>{var o,r,s;switch(e.type){case"text":return{type:"input_text",text:e.text};case"file":if(e.mediaType.startsWith("image/")){const t="image/*"===e.mediaType?"image/jpeg":e.mediaType;return{type:"input_image",...e.data instanceof Wt?{image_url:e.data.toString()}:"string"==typeof e.data&&Vo(e.data,i)?{file_id:e.data}:{image_url:`data:${t};base64,${De(e.data)}`},detail:null==(r=null==(o=e.providerOptions)?void 0:o[n])?void 0:r.imageDetail}}if("application/pdf"===e.mediaType)return e.data instanceof Wt?{type:"input_file",file_url:e.data.toString()}:{type:"input_file",..."string"==typeof e.data&&Vo(e.data,i)?{file_id:e.data}:{filename:null!=(s=e.filename)?s:`part-${t}.pdf`,file_data:`data:application/pdf;base64,${De(e.data)}`}};throw new Ce({functionality:`file part media type ${e.mediaType}`})}}))});break;case"assistant":{const e={};for(const o of S)switch(o.type){case"text":{const e=null==(u=null==(p=o.providerOptions)?void 0:p[n])?void 0:u.itemId;if(r&&null!=e){_.push({type:"item_reference",id:e});break}_.push({role:"assistant",content:[{type:"output_text",text:o.text}],id:e});break}case"tool-call":{const e=null!=(g=null==(c=null==(d=o.providerOptions)?void 0:d[n])?void 0:c.itemId)?g:null==(f=null==(h=o.providerMetadata)?void 0:h[n])?void 0:f.itemId;if(o.providerExecuted){r&&null!=e&&_.push({type:"item_reference",id:e});break}if(r&&null!=e){_.push({type:"item_reference",id:e});break}const i=t.toProviderToolName(o.toolName);if(s&&"local_shell"===i){const t=await Ot({value:o.input,schema:So});_.push({type:"local_shell_call",call_id:o.toolCallId,id:e,action:{type:"exec",command:t.action.command,timeout_ms:t.action.timeoutMs,user:t.action.user,working_directory:t.action.workingDirectory,env:t.action.env}});break}if(a&&"shell"===i){const t=await Ot({value:o.input,schema:To});_.push({type:"shell_call",call_id:o.toolCallId,id:e,status:"completed",action:{commands:t.action.commands,timeout_ms:t.action.timeoutMs,max_output_length:t.action.maxOutputLength}});break}_.push({type:"function_call",call_id:o.toolCallId,name:i,arguments:JSON.stringify(o.input),id:e});break}case"tool-result":if("execution-denied"===o.output.type||"json"===o.output.type&&"object"==typeof o.output.value&&null!=o.output.value&&"type"in o.output.value&&"execution-denied"===o.output.value.type)break;if(r){const e=null!=(v=null==(y=null==(m=o.providerMetadata)?void 0:m[n])?void 0:y.itemId)?v:o.toolCallId;_.push({type:"item_reference",id:e})}else R.push({type:"other",message:`Results for OpenAI tool ${o.toolName} are not sent to the API when store is false`});break;case"reasoning":{const t=await Tt({provider:n,providerOptions:o.providerOptions,schema:jo}),i=null==t?void 0:t.itemId;if(null!=i){const n=e[i];if(r)void 0===n&&(_.push({type:"item_reference",id:i}),e[i]={type:"reasoning",id:i,summary:[]});else{const r=[];o.text.length>0?r.push({type:"summary_text",text:o.text}):void 0!==n&&R.push({type:"other",message:`Cannot append empty reasoning part to existing reasoning sequence. Skipping reasoning part: ${JSON.stringify(o)}.`}),void 0===n?(e[i]={type:"reasoning",id:i,encrypted_content:null==t?void 0:t.reasoningEncryptedContent,summary:r},_.push(e[i])):(n.summary.push(...r),null!=(null==t?void 0:t.reasoningEncryptedContent)&&(n.encrypted_content=t.reasoningEncryptedContent))}}else R.push({type:"other",message:`Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(o)}.`});break}}break}case"tool":for(const e of S){if("tool-approval-response"===e.type){const t=e;if(O.has(t.approvalId))continue;O.add(t.approvalId),r&&_.push({type:"item_reference",id:t.approvalId}),_.push({type:"mcp_approval_response",approval_request_id:t.approvalId,approve:t.approved});continue}const o=e.output;if("execution-denied"===o.type&&(null==(w=null==(C=o.providerOptions)?void 0:C.openai)?void 0:w.approvalId))continue;const n=t.toProviderToolName(e.toolName);if(s&&"local_shell"===n&&"json"===o.type){const t=await Ot({value:o.value,schema:Po});_.push({type:"local_shell_call_output",call_id:e.toolCallId,output:t.output});continue}if(a&&"shell"===n&&"json"===o.type){const t=await Ot({value:o.value,schema:Do});_.push({type:"shell_call_output",call_id:e.toolCallId,output:t.output.map((e=>({stdout:e.stdout,stderr:e.stderr,outcome:"timeout"===e.outcome.type?{type:"timeout"}:{type:"exit",exit_code:e.outcome.exitCode}})))});continue}if(l&&"apply_patch"===e.toolName&&"json"===o.type){const t=await Ot({value:o.value,schema:ho});_.push({type:"apply_patch_call_output",call_id:e.toolCallId,status:t.status,output:t.output});continue}let i;switch(o.type){case"text":case"error-text":i=o.value;break;case"execution-denied":i=null!=(E=o.reason)?E:"Tool execution denied.";break;case"json":case"error-json":i=JSON.stringify(o.value);break;case"content":i=o.value.map((e=>{var t;switch(e.type){case"text":return{type:"input_text",text:e.text};case"image-data":return{type:"input_image",image_url:`data:${e.mediaType};base64,${e.data}`};case"image-url":return{type:"input_image",image_url:e.url};case"file-data":return{type:"input_file",filename:null!=(t=e.filename)?t:"data",file_data:`data:${e.mediaType};base64,${e.data}`};default:return void R.push({type:"other",message:`unsupported tool content part type: ${e.type}`})}})).filter(Ye)}_.push({type:"function_call_output",call_id:e.toolCallId,output:i})}break;default:throw new Error(`Unsupported role: ${b}`)}return{input:_,warnings:R}}({prompt:l,toolNameMapping:O,systemMessageMode:null!=(f=null==_?void 0:_.systemMessageMode)?f:R?"developer":w.systemMessageMode,providerOptionsName:E,fileIdPrefixes:this.config.fileIdPrefixes,store:null==(g=null==_?void 0:_.store)||g,hasLocalShellTool:D("openai.local_shell"),hasShellTool:D("openai.shell"),hasApplyPatchTool:D("openai.apply_patch")});C.push(...S);const P=null==(m=null==_?void 0:_.strictJsonSchema)||m;let A=null==_?void 0:_.include;function T(e){null==A?A=[e]:A.includes(e)||(A=[...A,e])}function D(e){return null!=(null==u?void 0:u.find((t=>"provider"===t.type&&t.id===e)))}const N="number"==typeof(null==_?void 0:_.logprobs)?null==_?void 0:_.logprobs:!0===(null==_?void 0:_.logprobs)?20:void 0;N&&T("message.output_text.logprobs");const I=null==(y=null==u?void 0:u.find((e=>"provider"===e.type&&("openai.web_search"===e.id||"openai.web_search_preview"===e.id))))?void 0:y.name;I&&T("web_search_call.action.sources"),D("openai.code_interpreter")&&T("code_interpreter_call.outputs");const F=null==_?void 0:_.store;!1===F&&R&&T("reasoning.encrypted_content");const L={model:this.modelId,input:b,temperature:t,top_p:n,max_output_tokens:e,...("json"===(null==c?void 0:c.type)||(null==_?void 0:_.textVerbosity))&&{text:{..."json"===(null==c?void 0:c.type)&&{format:null!=c.schema?{type:"json_schema",strict:P,name:null!=(v=c.name)?v:"response",description:c.description,schema:c.schema}:{type:"json_object"}},...(null==_?void 0:_.textVerbosity)&&{verbosity:_.textVerbosity}}},conversation:null==_?void 0:_.conversation,max_tool_calls:null==_?void 0:_.maxToolCalls,metadata:null==_?void 0:_.metadata,parallel_tool_calls:null==_?void 0:_.parallelToolCalls,previous_response_id:null==_?void 0:_.previousResponseId,store:F,user:null==_?void 0:_.user,instructions:null==_?void 0:_.instructions,service_tier:null==_?void 0:_.serviceTier,include:A,prompt_cache_key:null==_?void 0:_.promptCacheKey,prompt_cache_retention:null==_?void 0:_.promptCacheRetention,safety_identifier:null==_?void 0:_.safetyIdentifier,top_logprobs:N,truncation:null==_?void 0:_.truncation,...R&&(null!=(null==_?void 0:_.reasoningEffort)||null!=(null==_?void 0:_.reasoningSummary))&&{reasoning:{...null!=(null==_?void 0:_.reasoningEffort)&&{effort:_.reasoningEffort},...null!=(null==_?void 0:_.reasoningSummary)&&{summary:_.reasoningSummary}}}};R?"none"===(null==_?void 0:_.reasoningEffort)&&w.supportsNonReasoningParameters||(null!=L.temperature&&(L.temperature=void 0,C.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"})),null!=L.top_p&&(L.top_p=void 0,C.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"}))):(null!=(null==_?void 0:_.reasoningEffort)&&C.push({type:"unsupported",feature:"reasoningEffort",details:"reasoningEffort is not supported for non-reasoning models"}),null!=(null==_?void 0:_.reasoningSummary)&&C.push({type:"unsupported",feature:"reasoningSummary",details:"reasoningSummary is not supported for non-reasoning models"})),"flex"!==(null==_?void 0:_.serviceTier)||w.supportsFlexProcessing||(C.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),delete L.service_tier),"priority"!==(null==_?void 0:_.serviceTier)||w.supportsPriorityProcessing||(C.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),delete L.service_tier);const{tools:x,toolChoice:M,toolWarnings:G}=await async function({tools:e,toolChoice:t}){const o=[];if(null==(e=(null==e?void 0:e.length)?e:void 0))return{tools:void 0,toolChoice:void 0,toolWarnings:o};const n=[];for(const t of e)switch(t.type){case"function":n.push({type:"function",name:t.name,description:t.description,parameters:t.inputSchema,...null!=t.strict?{strict:t.strict}:{}});break;case"provider":switch(t.id){case"openai.file_search":{const e=await Ot({value:t.args,schema:Eo});n.push({type:"file_search",vector_store_ids:e.vectorStoreIds,max_num_results:e.maxNumResults,ranking_options:e.ranking?{ranker:e.ranking.ranker,score_threshold:e.ranking.scoreThreshold}:void 0,filters:e.filters});break}case"openai.local_shell":n.push({type:"local_shell"});break;case"openai.shell":n.push({type:"shell"});break;case"openai.apply_patch":n.push({type:"apply_patch"});break;case"openai.web_search_preview":{const e=await Ot({value:t.args,schema:Lo});n.push({type:"web_search_preview",search_context_size:e.searchContextSize,user_location:e.userLocation});break}case"openai.web_search":{const e=await Ot({value:t.args,schema:Io});n.push({type:"web_search",filters:null!=e.filters?{allowed_domains:e.filters.allowedDomains}:void 0,external_web_access:e.externalWebAccess,search_context_size:e.searchContextSize,user_location:e.userLocation});break}case"openai.code_interpreter":{const e=await Ot({value:t.args,schema:yo});n.push({type:"code_interpreter",container:null==e.container?{type:"auto",file_ids:void 0}:"string"==typeof e.container?e.container:{type:"auto",file_ids:e.container.fileIds}});break}case"openai.image_generation":{const e=await Ot({value:t.args,schema:Oo});n.push({type:"image_generation",background:e.background,input_fidelity:e.inputFidelity,input_image_mask:e.inputImageMask?{file_id:e.inputImageMask.fileId,image_url:e.inputImageMask.imageUrl}:void 0,model:e.model,moderation:e.moderation,partial_images:e.partialImages,quality:e.quality,output_compression:e.outputCompression,output_format:e.outputFormat,size:e.size});break}case"openai.mcp":{const e=await Ot({value:t.args,schema:Go}),o=e=>({tool_names:e.toolNames}),i=e.requireApproval,r=null==i?void 0:"string"==typeof i?i:null!=i.never?{never:o(i.never)}:void 0;n.push({type:"mcp",server_label:e.serverLabel,allowed_tools:Array.isArray(e.allowedTools)?e.allowedTools:e.allowedTools?{read_only:e.allowedTools.readOnly,tool_names:e.allowedTools.toolNames}:void 0,authorization:e.authorization,connector_id:e.connectorId,headers:e.headers,require_approval:null!=r?r:"never",server_description:e.serverDescription,server_url:e.serverUrl});break}}break;default:o.push({type:"unsupported",feature:`function tool ${t}`})}if(null==t)return{tools:n,toolChoice:void 0,toolWarnings:o};const i=t.type;switch(i){case"auto":case"none":case"required":return{tools:n,toolChoice:i,toolWarnings:o};case"tool":return{tools:n,toolChoice:"code_interpreter"===t.toolName||"file_search"===t.toolName||"image_generation"===t.toolName||"web_search_preview"===t.toolName||"web_search"===t.toolName||"mcp"===t.toolName||"apply_patch"===t.toolName?{type:t.toolName}:{type:"function",name:t.toolName},toolWarnings:o};default:throw new Ce({functionality:`tool choice type: ${i}`})}}({tools:u,toolChoice:d});return{webSearchToolName:I,args:{...L,tools:x,tool_choice:M},warnings:[...C,...G],store:F,toolNameMapping:O,providerOptionsName:E}}async doGenerate(e){var t,o,n,i,r,s,a,l,p,u,d,c,h,f,m,y,v,C,w,E,_,R,O,b,S;const{args:P,warnings:A,webSearchToolName:T,toolNameMapping:D,providerOptionsName:N}=await this.getArgs(e),I=this.config.url({path:"/responses",modelId:this.modelId}),F=qo(e.prompt),{responseHeaders:L,value:x,rawValue:M}=await Nt({url:I,headers:be(this.config.headers(),e.headers),body:P,failedResponseHandler:Vt,successfulResponseHandler:Mt(Uo),abortSignal:e.abortSignal,fetch:this.config.fetch});if(x.error)throw new g({message:x.error.message,url:I,requestBodyValues:P,statusCode:400,responseHeaders:L,responseBody:M,isRetryable:!1});const G=[],k=[];let W=!1;for(const g of x.output)switch(g.type){case"reasoning":0===g.summary.length&&g.summary.push({type:"summary_text",text:""});for(const e of g.summary)G.push({type:"reasoning",text:e.text,providerMetadata:{[N]:{itemId:g.id,reasoningEncryptedContent:null!=(t=g.encrypted_content)?t:null}}});break;case"image_generation_call":G.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("image_generation"),input:"{}",providerExecuted:!0}),G.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("image_generation"),result:{result:g.result}});break;case"local_shell_call":G.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("local_shell"),input:JSON.stringify({action:g.action}),providerMetadata:{[N]:{itemId:g.id}}});break;case"shell_call":G.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("shell"),input:JSON.stringify({action:{commands:g.action.commands}}),providerMetadata:{[N]:{itemId:g.id}}});break;case"message":for(const t of g.content){(null==(n=null==(o=e.providerOptions)?void 0:o[N])?void 0:n.logprobs)&&t.logprobs&&k.push(t.logprobs);const y={itemId:g.id,...t.annotations.length>0&&{annotations:t.annotations}};G.push({type:"text",text:t.text,providerMetadata:{[N]:y}});for(const e of t.annotations)"url_citation"===e.type?G.push({type:"source",sourceType:"url",id:null!=(s=null==(r=(i=this.config).generateId)?void 0:r.call(i))?s:We(),url:e.url,title:e.title}):"file_citation"===e.type?G.push({type:"source",sourceType:"document",id:null!=(p=null==(l=(a=this.config).generateId)?void 0:l.call(a))?p:We(),mediaType:"text/plain",title:e.filename,filename:e.filename,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,index:e.index}}}):"container_file_citation"===e.type?G.push({type:"source",sourceType:"document",id:null!=(c=null==(d=(u=this.config).generateId)?void 0:d.call(u))?c:We(),mediaType:"text/plain",title:e.filename,filename:e.filename,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,containerId:e.container_id}}}):"file_path"===e.type&&G.push({type:"source",sourceType:"document",id:null!=(m=null==(f=(h=this.config).generateId)?void 0:f.call(h))?m:We(),mediaType:"application/octet-stream",title:e.file_id,filename:e.file_id,providerMetadata:{[N]:{type:e.type,fileId:e.file_id,index:e.index}}})}break;case"function_call":W=!0,G.push({type:"tool-call",toolCallId:g.call_id,toolName:g.name,input:g.arguments,providerMetadata:{[N]:{itemId:g.id}}});break;case"web_search_call":G.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName(null!=T?T:"web_search"),input:JSON.stringify({}),providerExecuted:!0}),G.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName(null!=T?T:"web_search"),result:Zo(g.action)});break;case"mcp_call":{const e=null!=g.approval_request_id&&null!=(y=F[g.approval_request_id])?y:g.id,t=`mcp.${g.name}`;G.push({type:"tool-call",toolCallId:e,toolName:t,input:g.arguments,providerExecuted:!0,dynamic:!0}),G.push({type:"tool-result",toolCallId:e,toolName:t,result:{type:"call",serverLabel:g.server_label,name:g.name,arguments:g.arguments,...null!=g.output?{output:g.output}:{},...null!=g.error?{error:g.error}:{}},providerMetadata:{[N]:{itemId:g.id}}});break}case"mcp_list_tools":break;case"mcp_approval_request":{const e=null!=(v=g.approval_request_id)?v:g.id,t=null!=(E=null==(w=(C=this.config).generateId)?void 0:w.call(C))?E:We(),o=`mcp.${g.name}`;G.push({type:"tool-call",toolCallId:t,toolName:o,input:g.arguments,providerExecuted:!0,dynamic:!0}),G.push({type:"tool-approval-request",approvalId:e,toolCallId:t});break}case"computer_call":G.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("computer_use"),input:"",providerExecuted:!0}),G.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("computer_use"),result:{type:"computer_use_tool_result",status:g.status||"completed"}});break;case"file_search_call":G.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("file_search"),input:"{}",providerExecuted:!0}),G.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("file_search"),result:{queries:g.queries,results:null!=(R=null==(_=g.results)?void 0:_.map((e=>({attributes:e.attributes,fileId:e.file_id,filename:e.filename,score:e.score,text:e.text}))))?R:null}});break;case"code_interpreter_call":G.push({type:"tool-call",toolCallId:g.id,toolName:D.toCustomToolName("code_interpreter"),input:JSON.stringify({code:g.code,containerId:g.container_id}),providerExecuted:!0}),G.push({type:"tool-result",toolCallId:g.id,toolName:D.toCustomToolName("code_interpreter"),result:{outputs:g.outputs}});break;case"apply_patch_call":G.push({type:"tool-call",toolCallId:g.call_id,toolName:D.toCustomToolName("apply_patch"),input:JSON.stringify({callId:g.call_id,operation:g.operation}),providerMetadata:{[N]:{itemId:g.id}}})}const H={[N]:{responseId:x.id}};k.length>0&&(H[N].logprobs=k),"string"==typeof x.service_tier&&(H[N].serviceTier=x.service_tier);const V=x.usage;return{content:G,finishReason:{unified:Bo({finishReason:null==(O=x.incomplete_details)?void 0:O.reason,hasFunctionCall:W}),raw:null!=(S=null==(b=x.incomplete_details)?void 0:b.reason)?S:void 0},usage:Ho(V),request:{body:P},response:{id:x.id,timestamp:new Date(1e3*x.created_at),modelId:x.model,headers:L,body:M},providerMetadata:H,warnings:A}}async doStream(e){const{args:t,warnings:o,webSearchToolName:n,toolNameMapping:i,store:r,providerOptionsName:s}=await this.getArgs(e),{responseHeaders:a,value:l}=await Nt({url:this.config.url({path:"/responses",modelId:this.modelId}),headers:be(this.config.headers(),e.headers),body:{...t,stream:!0},failedResponseHandler:Vt,successfulResponseHandler:xt(Yo),abortSignal:e.abortSignal,fetch:this.config.fetch}),p=this,u=qo(e.prompt),d=new Map;let c,h={unified:"other",raw:void 0};const f=[];let g=null;const m={},y=[];let v=!1;const C={};let w;return{stream:l.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:o})},transform(t,o){var a,l,E,_,R,O,b,S,P,A,T,D,N,I,F,L,x,M,G,k,W,H,V,j,B,Y,U,z,q,K;if(e.includeRawChunks&&o.enqueue({type:"raw",rawValue:t.rawValue}),!t.success)return h={unified:"error",raw:void 0},void o.enqueue({type:"error",error:t.error});const $=t.value;if($o($))if("function_call"===$.item.type)m[$.output_index]={toolName:$.item.name,toolCallId:$.item.call_id},o.enqueue({type:"tool-input-start",id:$.item.call_id,toolName:$.item.name});else if("web_search_call"===$.item.type)m[$.output_index]={toolName:i.toCustomToolName(null!=n?n:"web_search"),toolCallId:$.item.id},o.enqueue({type:"tool-input-start",id:$.item.id,toolName:i.toCustomToolName(null!=n?n:"web_search"),providerExecuted:!0}),o.enqueue({type:"tool-input-end",id:$.item.id}),o.enqueue({type:"tool-call",toolCallId:$.item.id,toolName:i.toCustomToolName(null!=n?n:"web_search"),input:JSON.stringify({}),providerExecuted:!0});else if("computer_call"===$.item.type)m[$.output_index]={toolName:i.toCustomToolName("computer_use"),toolCallId:$.item.id},o.enqueue({type:"tool-input-start",id:$.item.id,toolName:i.toCustomToolName("computer_use"),providerExecuted:!0});else if("code_interpreter_call"===$.item.type)m[$.output_index]={toolName:i.toCustomToolName("code_interpreter"),toolCallId:$.item.id,codeInterpreter:{containerId:$.item.container_id}},o.enqueue({type:"tool-input-start",id:$.item.id,toolName:i.toCustomToolName("code_interpreter"),providerExecuted:!0}),o.enqueue({type:"tool-input-delta",id:$.item.id,delta:`{"containerId":"${$.item.container_id}","code":"`});else if("file_search_call"===$.item.type)o.enqueue({type:"tool-call",toolCallId:$.item.id,toolName:i.toCustomToolName("file_search"),input:"{}",providerExecuted:!0});else if("image_generation_call"===$.item.type)o.enqueue({type:"tool-call",toolCallId:$.item.id,toolName:i.toCustomToolName("image_generation"),input:"{}",providerExecuted:!0});else if("mcp_call"===$.item.type||"mcp_list_tools"===$.item.type||"mcp_approval_request"===$.item.type);else if("apply_patch_call"===$.item.type){const{call_id:e,operation:t}=$.item;if(m[$.output_index]={toolName:i.toCustomToolName("apply_patch"),toolCallId:e,applyPatch:{hasDiff:"delete_file"===t.type,endEmitted:"delete_file"===t.type}},o.enqueue({type:"tool-input-start",id:e,toolName:i.toCustomToolName("apply_patch")}),"delete_file"===t.type){const n=JSON.stringify({callId:e,operation:t});o.enqueue({type:"tool-input-delta",id:e,delta:n}),o.enqueue({type:"tool-input-end",id:e})}else o.enqueue({type:"tool-input-delta",id:e,delta:`{"callId":"${Qo(e)}","operation":{"type":"${Qo(t.type)}","path":"${Qo(t.path)}","diff":"`})}else"shell_call"===$.item.type?m[$.output_index]={toolName:i.toCustomToolName("shell"),toolCallId:$.item.call_id}:"message"===$.item.type?(y.splice(0,y.length),o.enqueue({type:"text-start",id:$.item.id,providerMetadata:{[s]:{itemId:$.item.id}}})):$o($)&&"reasoning"===$.item.type&&(C[$.item.id]={encryptedContent:$.item.encrypted_content,summaryParts:{0:"active"}},o.enqueue({type:"reasoning-start",id:`${$.item.id}:0`,providerMetadata:{[s]:{itemId:$.item.id,reasoningEncryptedContent:null!=(a=$.item.encrypted_content)?a:null}}}));else if(function(e){return"response.output_item.done"===e.type}($)){if("message"===$.item.type)o.enqueue({type:"text-end",id:$.item.id,providerMetadata:{[s]:{itemId:$.item.id,...y.length>0&&{annotations:y}}}});else if("function_call"===$.item.type)m[$.output_index]=void 0,v=!0,o.enqueue({type:"tool-input-end",id:$.item.call_id}),o.enqueue({type:"tool-call",toolCallId:$.item.call_id,toolName:$.item.name,input:$.item.arguments,providerMetadata:{[s]:{itemId:$.item.id}}});else if("web_search_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:i.toCustomToolName(null!=n?n:"web_search"),result:Zo($.item.action)});else if("computer_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-input-end",id:$.item.id}),o.enqueue({type:"tool-call",toolCallId:$.item.id,toolName:i.toCustomToolName("computer_use"),input:"",providerExecuted:!0}),o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:i.toCustomToolName("computer_use"),result:{type:"computer_use_tool_result",status:$.item.status||"completed"}});else if("file_search_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:i.toCustomToolName("file_search"),result:{queries:$.item.queries,results:null!=(E=null==(l=$.item.results)?void 0:l.map((e=>({attributes:e.attributes,fileId:e.file_id,filename:e.filename,score:e.score,text:e.text}))))?E:null}});else if("code_interpreter_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:i.toCustomToolName("code_interpreter"),result:{outputs:$.item.outputs}});else if("image_generation_call"===$.item.type)o.enqueue({type:"tool-result",toolCallId:$.item.id,toolName:i.toCustomToolName("image_generation"),result:{result:$.item.result}});else if("mcp_call"===$.item.type){m[$.output_index]=void 0;const e=null!=(_=$.item.approval_request_id)?_:void 0,t=null!=e&&null!=(O=null!=(R=d.get(e))?R:u[e])?O:$.item.id,n=`mcp.${$.item.name}`;o.enqueue({type:"tool-call",toolCallId:t,toolName:n,input:$.item.arguments,providerExecuted:!0,dynamic:!0}),o.enqueue({type:"tool-result",toolCallId:t,toolName:n,result:{type:"call",serverLabel:$.item.server_label,name:$.item.name,arguments:$.item.arguments,...null!=$.item.output?{output:$.item.output}:{},...null!=$.item.error?{error:$.item.error}:{}},providerMetadata:{[s]:{itemId:$.item.id}}})}else if("mcp_list_tools"===$.item.type)m[$.output_index]=void 0;else if("apply_patch_call"===$.item.type){const e=m[$.output_index];(null==e?void 0:e.applyPatch)&&!e.applyPatch.endEmitted&&"delete_file"!==$.item.operation.type&&(e.applyPatch.hasDiff||o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo($.item.operation.diff)}),o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),e.applyPatch.endEmitted=!0),e&&"completed"===$.item.status&&o.enqueue({type:"tool-call",toolCallId:e.toolCallId,toolName:i.toCustomToolName("apply_patch"),input:JSON.stringify({callId:$.item.call_id,operation:$.item.operation}),providerMetadata:{[s]:{itemId:$.item.id}}}),m[$.output_index]=void 0}else if("mcp_approval_request"===$.item.type){m[$.output_index]=void 0;const e=null!=(P=null==(S=(b=p.config).generateId)?void 0:S.call(b))?P:We(),t=null!=(A=$.item.approval_request_id)?A:$.item.id;d.set(t,e);const n=`mcp.${$.item.name}`;o.enqueue({type:"tool-call",toolCallId:e,toolName:n,input:$.item.arguments,providerExecuted:!0,dynamic:!0}),o.enqueue({type:"tool-approval-request",approvalId:t,toolCallId:e})}else if("local_shell_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-call",toolCallId:$.item.call_id,toolName:i.toCustomToolName("local_shell"),input:JSON.stringify({action:{type:"exec",command:$.item.action.command,timeoutMs:$.item.action.timeout_ms,user:$.item.action.user,workingDirectory:$.item.action.working_directory,env:$.item.action.env}}),providerMetadata:{[s]:{itemId:$.item.id}}});else if("shell_call"===$.item.type)m[$.output_index]=void 0,o.enqueue({type:"tool-call",toolCallId:$.item.call_id,toolName:i.toCustomToolName("shell"),input:JSON.stringify({action:{commands:$.item.action.commands}}),providerMetadata:{[s]:{itemId:$.item.id}}});else if("reasoning"===$.item.type){const e=C[$.item.id],t=Object.entries(e.summaryParts).filter((([e,t])=>"active"===t||"can-conclude"===t)).map((([e])=>e));for(const e of t)o.enqueue({type:"reasoning-end",id:`${$.item.id}:${e}`,providerMetadata:{[s]:{itemId:$.item.id,reasoningEncryptedContent:null!=(T=$.item.encrypted_content)?T:null}}});delete C[$.item.id]}}else if(function(e){return"response.function_call_arguments.delta"===e.type}($)){const e=m[$.output_index];null!=e&&o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:$.delta})}else if(function(e){return"response.apply_patch_call_operation_diff.delta"===e.type}($)){const e=m[$.output_index];(null==e?void 0:e.applyPatch)&&(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo($.delta)}),e.applyPatch.hasDiff=!0)}else if(function(e){return"response.apply_patch_call_operation_diff.done"===e.type}($)){const e=m[$.output_index];(null==e?void 0:e.applyPatch)&&!e.applyPatch.endEmitted&&(e.applyPatch.hasDiff||(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo($.diff)}),e.applyPatch.hasDiff=!0),o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),e.applyPatch.endEmitted=!0)}else if(function(e){return"response.image_generation_call.partial_image"===e.type}($))o.enqueue({type:"tool-result",toolCallId:$.item_id,toolName:i.toCustomToolName("image_generation"),result:{result:$.partial_image_b64},preliminary:!0});else if(function(e){return"response.code_interpreter_call_code.delta"===e.type}($)){const e=m[$.output_index];null!=e&&o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:Qo($.delta)})}else if(function(e){return"response.code_interpreter_call_code.done"===e.type}($)){const e=m[$.output_index];null!=e&&(o.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:'"}'}),o.enqueue({type:"tool-input-end",id:e.toolCallId}),o.enqueue({type:"tool-call",toolCallId:e.toolCallId,toolName:i.toCustomToolName("code_interpreter"),input:JSON.stringify({code:$.code,containerId:e.codeInterpreter.containerId}),providerExecuted:!0}))}else if(function(e){return"response.created"===e.type}($))g=$.response.id,o.enqueue({type:"response-metadata",id:$.response.id,timestamp:new Date(1e3*$.response.created_at),modelId:$.response.model});else if(function(e){return"response.output_text.delta"===e.type}($))o.enqueue({type:"text-delta",id:$.item_id,delta:$.delta}),(null==(N=null==(D=e.providerOptions)?void 0:D[s])?void 0:N.logprobs)&&$.logprobs&&f.push($.logprobs);else if("response.reasoning_summary_part.added"===$.type){if($.summary_index>0){const e=C[$.item_id];e.summaryParts[$.summary_index]="active";for(const t of Object.keys(e.summaryParts))"can-conclude"===e.summaryParts[t]&&(o.enqueue({type:"reasoning-end",id:`${$.item_id}:${t}`,providerMetadata:{[s]:{itemId:$.item_id}}}),e.summaryParts[t]="concluded");o.enqueue({type:"reasoning-start",id:`${$.item_id}:${$.summary_index}`,providerMetadata:{[s]:{itemId:$.item_id,reasoningEncryptedContent:null!=(F=null==(I=C[$.item_id])?void 0:I.encryptedContent)?F:null}}})}}else"response.reasoning_summary_text.delta"===$.type?o.enqueue({type:"reasoning-delta",id:`${$.item_id}:${$.summary_index}`,delta:$.delta,providerMetadata:{[s]:{itemId:$.item_id}}}):"response.reasoning_summary_part.done"===$.type?r?(o.enqueue({type:"reasoning-end",id:`${$.item_id}:${$.summary_index}`,providerMetadata:{[s]:{itemId:$.item_id}}}),C[$.item_id].summaryParts[$.summary_index]="concluded"):C[$.item_id].summaryParts[$.summary_index]="can-conclude":function(e){return"response.completed"===e.type||"response.incomplete"===e.type}($)?(h={unified:Bo({finishReason:null==(L=$.response.incomplete_details)?void 0:L.reason,hasFunctionCall:v}),raw:null!=(M=null==(x=$.response.incomplete_details)?void 0:x.reason)?M:void 0},c=$.response.usage,"string"==typeof $.response.service_tier&&(w=$.response.service_tier)):function(e){return"response.output_text.annotation.added"===e.type}($)?(y.push($.annotation),"url_citation"===$.annotation.type?o.enqueue({type:"source",sourceType:"url",id:null!=(W=null==(k=(G=p.config).generateId)?void 0:k.call(G))?W:We(),url:$.annotation.url,title:$.annotation.title}):"file_citation"===$.annotation.type?o.enqueue({type:"source",sourceType:"document",id:null!=(j=null==(V=(H=p.config).generateId)?void 0:V.call(H))?j:We(),mediaType:"text/plain",title:$.annotation.filename,filename:$.annotation.filename,providerMetadata:{[s]:{type:$.annotation.type,fileId:$.annotation.file_id,index:$.annotation.index}}}):"container_file_citation"===$.annotation.type?o.enqueue({type:"source",sourceType:"document",id:null!=(U=null==(Y=(B=p.config).generateId)?void 0:Y.call(B))?U:We(),mediaType:"text/plain",title:$.annotation.filename,filename:$.annotation.filename,providerMetadata:{[s]:{type:$.annotation.type,fileId:$.annotation.file_id,containerId:$.annotation.container_id}}}):"file_path"===$.annotation.type&&o.enqueue({type:"source",sourceType:"document",id:null!=(K=null==(q=(z=p.config).generateId)?void 0:q.call(z))?K:We(),mediaType:"application/octet-stream",title:$.annotation.file_id,filename:$.annotation.file_id,providerMetadata:{[s]:{type:$.annotation.type,fileId:$.annotation.file_id,index:$.annotation.index}}})):function(e){return"error"===e.type}($)&&o.enqueue({type:"error",error:$})},flush(e){const t={[s]:{responseId:g}};f.length>0&&(t[s].logprobs=f),void 0!==w&&(t[s].serviceTier=w),e.enqueue({type:"finish",finishReason:h,usage:Ho(c),providerMetadata:t})}})),request:{body:t},response:{headers:a}}}};function $o(e){return"response.output_item.added"===e.type}function Zo(e){var t;switch(e.type){case"search":return{action:{type:"search",query:null!=(t=e.query)?t:void 0},...null!=e.sources&&{sources:e.sources}};case"open_page":return{action:{type:"openPage",url:e.url}};case"find_in_page":return{action:{type:"findInPage",url:e.url,pattern:e.pattern}}}}function Qo(e){return JSON.stringify(e).slice(1,-1)}var Xo=Et((()=>Rt(Gt.Ik({instructions:Gt.Yj().nullish(),speed:Gt.ai().min(.25).max(4).default(1).nullish()})))),Jo=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async getArgs({text:e,voice:t="alloy",outputFormat:o="mp3",speed:n,instructions:i,language:r,providerOptions:s}){const a=[],l=await Tt({provider:"openai",providerOptions:s,schema:Xo}),p={model:this.modelId,input:e,voice:t,response_format:"mp3",speed:n,instructions:i};if(o&&(["mp3","opus","aac","flac","wav","pcm"].includes(o)?p.response_format=o:a.push({type:"unsupported",feature:"outputFormat",details:`Unsupported output format: ${o}. Using mp3 instead.`})),l){const e={};for(const t in e){const o=e[t];void 0!==o&&(p[t]=o)}}return r&&a.push({type:"unsupported",feature:"language",details:`OpenAI speech models do not support language selection. Language parameter "${r}" was ignored.`}),{requestBody:p,warnings:a}}async doGenerate(e){var t,o,n;const i=null!=(n=null==(o=null==(t=this.config._internal)?void 0:t.currentDate)?void 0:o.call(t))?n:new Date,{requestBody:r,warnings:s}=await this.getArgs(e),{value:a,responseHeaders:l,rawValue:p}=await Nt({url:this.config.url({path:"/audio/speech",modelId:this.modelId}),headers:be(this.config.headers(),e.headers),body:r,failedResponseHandler:Vt,successfulResponseHandler:async({response:e,url:t,requestBodyValues:o})=>{const n=Se(e);if(!e.body)throw new g({message:"Response body is empty",url:t,requestBodyValues:o,statusCode:e.status,responseHeaders:n,responseBody:void 0});try{const t=await e.arrayBuffer();return{responseHeaders:n,value:new Uint8Array(t)}}catch(i){throw new g({message:"Failed to read response as array buffer",url:t,requestBodyValues:o,statusCode:e.status,responseHeaders:n,responseBody:void 0,cause:i})}},abortSignal:e.abortSignal,fetch:this.config.fetch});return{audio:a,warnings:s,request:{body:JSON.stringify(r)},response:{timestamp:i,modelId:this.modelId,headers:l,body:p}}}},en=Et((()=>Rt(Gt.Ik({text:Gt.Yj(),language:Gt.Yj().nullish(),duration:Gt.ai().nullish(),words:Gt.YO(Gt.Ik({word:Gt.Yj(),start:Gt.ai(),end:Gt.ai()})).nullish(),segments:Gt.YO(Gt.Ik({id:Gt.ai(),seek:Gt.ai(),start:Gt.ai(),end:Gt.ai(),text:Gt.Yj(),tokens:Gt.YO(Gt.ai()),temperature:Gt.ai(),avg_logprob:Gt.ai(),compression_ratio:Gt.ai(),no_speech_prob:Gt.ai()})).nullish()})))),tn=Et((()=>Rt(Gt.Ik({include:Gt.YO(Gt.Yj()).optional(),language:Gt.Yj().optional(),prompt:Gt.Yj().optional(),temperature:Gt.ai().min(0).max(1).default(0).optional(),timestampGranularities:Gt.YO(Gt.k5(["word","segment"])).default(["segment"]).optional()})))),on={afrikaans:"af",arabic:"ar",armenian:"hy",azerbaijani:"az",belarusian:"be",bosnian:"bs",bulgarian:"bg",catalan:"ca",chinese:"zh",croatian:"hr",czech:"cs",danish:"da",dutch:"nl",english:"en",estonian:"et",finnish:"fi",french:"fr",galician:"gl",german:"de",greek:"el",hebrew:"he",hindi:"hi",hungarian:"hu",icelandic:"is",indonesian:"id",italian:"it",japanese:"ja",kannada:"kn",kazakh:"kk",korean:"ko",latvian:"lv",lithuanian:"lt",macedonian:"mk",malay:"ms",marathi:"mr",maori:"mi",nepali:"ne",norwegian:"no",persian:"fa",polish:"pl",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"sr",slovak:"sk",slovenian:"sl",spanish:"es",swahili:"sw",swedish:"sv",tagalog:"tl",tamil:"ta",thai:"th",turkish:"tr",ukrainian:"uk",urdu:"ur",vietnamese:"vi",welsh:"cy"},nn=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v3"}get provider(){return this.config.provider}async getArgs({audio:e,mediaType:t,providerOptions:o}){const n=await Tt({provider:"openai",providerOptions:o,schema:tn}),i=new FormData,r=e instanceof Uint8Array?new Blob([e]):new Blob([Te(e)]);i.append("model",this.modelId);const s=function(e){var t;const[o,n=""]=e.toLowerCase().split("/");return null!=(t={mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[n])?t:n}(t);if(i.append("file",new File([r],"audio",{type:t}),`audio.${s}`),n){const e={include:n.include,language:n.language,prompt:n.prompt,response_format:["gpt-4o-transcribe","gpt-4o-mini-transcribe"].includes(this.modelId)?"json":"verbose_json",temperature:n.temperature,timestamp_granularities:n.timestampGranularities};for(const[t,o]of Object.entries(e))if(null!=o)if(Array.isArray(o))for(const e of o)i.append(`${t}[]`,String(e));else i.append(t,String(o))}return{formData:i,warnings:[]}}async doGenerate(e){var t,o,n,i,r,s,a,l;const p=null!=(n=null==(o=null==(t=this.config._internal)?void 0:t.currentDate)?void 0:o.call(t))?n:new Date,{formData:u,warnings:d}=await this.getArgs(e),{value:c,responseHeaders:h,rawValue:f}=await It({url:this.config.url({path:"/audio/transcriptions",modelId:this.modelId}),headers:be(this.config.headers(),e.headers),formData:u,failedResponseHandler:Vt,successfulResponseHandler:Mt(en),abortSignal:e.abortSignal,fetch:this.config.fetch}),g=null!=c.language&&c.language in on?on[c.language]:void 0;return{text:c.text,segments:null!=(a=null!=(s=null==(i=c.segments)?void 0:i.map((e=>({text:e.text,startSecond:e.start,endSecond:e.end}))))?s:null==(r=c.words)?void 0:r.map((e=>({text:e.word,startSecond:e.start,endSecond:e.end}))))?a:[],language:g,durationInSeconds:null!=(l=c.duration)?l:void 0,warnings:d,response:{timestamp:p,modelId:this.modelId,headers:h,body:f}}}},rn="3.0.9";function sn(e={}){var t,o;const n=null!=(t=null==(i=function({settingValue:e,environmentVariableName:t}){return"string"==typeof e||null==e&&void 0!==Oe&&null!=(e=Oe.env[t])&&"string"==typeof e?e:void 0}({settingValue:e.baseURL,environmentVariableName:"OPENAI_BASE_URL"}))?void 0:i.replace(/\/$/,""))?t:"https://api.openai.com/v1";var i;const r=null!=(o=e.name)?o:"openai",s=()=>Be({Authorization:`Bearer ${Ue({apiKey:e.apiKey,environmentVariableName:"OPENAI_API_KEY",description:"OpenAI"})}`,"OpenAI-Organization":e.organization,"OpenAI-Project":e.project,...e.headers},`ai-sdk/openai/${rn}`),a=t=>new ro(t,{provider:`${r}.embedding`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),l=t=>new po(t,{provider:`${r}.image`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),p=t=>new nn(t,{provider:`${r}.transcription`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),u=t=>new Jo(t,{provider:`${r}.speech`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),d=e=>{if(new.target)throw new Error("The OpenAI model function cannot be called with the new keyword.");return c(e)},c=t=>new Ko(t,{provider:`${r}.responses`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch,fileIdPrefixes:["file-"]}),h=function(e){return d(e)};return h.specificationVersion="v3",h.languageModel=d,h.chat=t=>new $t(t,{provider:`${r}.chat`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),h.completion=t=>new oo(t,{provider:`${r}.completion`,url:({path:e})=>`${n}${e}`,headers:s,fetch:e.fetch}),h.responses=c,h.embedding=a,h.embeddingModel=a,h.textEmbedding=a,h.textEmbeddingModel=a,h.image=l,h.imageModel=l,h.transcription=p,h.transcriptionModel=p,h.speech=u,h.speechModel=u,h.tools=Wo,h}sn()},78481:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(72493),p=o(26016),u=o(58342),d=o(44871),c=o(98239),h=o(97177),f=o(44081),g=o(34506),m=o(38152),y=o(40797),v=o(86608),C=o(60843),w=o(85910),E=o(21951),_=o(47721),R=o(2299),O=o(63405),b=o(93830),S=o(55090),P=o(81604),A=o(66419),T=o(83423),D=function(e){function t(o,n,i){var r=e.call(this,t.TEMPLATE)||this;return r.column=o,r.dragSourceDropTarget=n,r.pinned=i,r}return i(t,e),t.prototype.getColumn=function(){return this.column},t.prototype.getComponentHolder=function(){return this.column.getColDef()},t.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),o=e.sortable,n=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,o,n),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(o),this.addColumnHoverListener(),this.addFeature(this.getContext(),new P.HoverFeature([this.column],this.getGui())),this.addDestroyableEventListener(this.column,p.Column.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(this.getContext(),new R.SelectAllFeature(this.cbSelectAll,this.column));var i=new m.SetLeftFeature(this.column,this.getGui(),this.beans);i.init(),this.addDestroyFunc(i.destroy.bind(i)),this.addAttributes(),g.CssClassApplier.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},t.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,O.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);T._.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},t.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();T._.addCssClass(t,"ag-header-cell-sortable")}},t.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();T._.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},t.prototype.appendHeaderComp=function(e,t,o){var n=this,i={column:this.column,displayName:e,enableSorting:t,enableMenu:o,showColumnMenu:function(e){n.gridApi.showColumnMenuAfterButtonClick(n.column,e)},progressSort:function(e){n.sortController.progressSort(n.column,!!e,"uiColumnSorted")},setSort:function(e,t){n.sortController.setSortForColumn(n.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},r=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(i).then(r)},t.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},t.prototype.onColumnMovingChanged=function(){this.column.isMoving()?T._.addCssClass(this.getGui(),"ag-header-cell-moving"):T._.removeCssClass(this.getGui(),"ag-header-cell-moving")},t.prototype.setupMove=function(e,t){var o=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||this.column.isLockPosition())&&e){var n={type:u.DragSourceType.HeaderCell,eElement:e,dragItemCallback:function(){return o.createDragItem()},dragItemName:t,dragSourceDropTarget:this.dragSourceDropTarget,dragStarted:function(){return o.column.setMoving(!0,"uiColumnMoved")},dragStopped:function(){return o.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return o.dragAndDropService.removeDragSource(n)}))}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var o=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(o),!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize){this.addDestroyableEventListener(this.eResize,"dblclick",(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")}));var n=new A.TouchListener(this.eResize);this.addDestroyableEventListener(n,A.TouchListener.EVENT_DOUBLE_TAP,(function(){e.columnController.autoSizeColumn(e.column,"uiColumnResized")})),this.addDestroyFunc(n.destroy.bind(n))}}else T._.removeFromParent(this.eResize)},t.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),n=this.resizeStartWidth+o;this.columnController.setColumnWidth(this.column,n,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&T._.removeCssClass(this.getGui(),"ag-column-resizing")},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,T._.addCssClass(this.getGui(),"ag-column-resizing")},t.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},t.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},t.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},t.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,p.Column.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},t.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},t.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},t.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==p.Column.PINNED_LEFT&&(t*=-1):this.pinned===p.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-cell" role="presentation" unselectable="on"><div ref="eResize" class="ag-header-cell-resize" role="presentation"></div><ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',r([l.Autowired("gridOptionsWrapper"),s("design:type",f.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([l.Autowired("dragAndDropService"),s("design:type",u.DragAndDropService)],t.prototype,"dragAndDropService",void 0),r([l.Autowired("columnController"),s("design:type",c.ColumnController)],t.prototype,"columnController",void 0),r([l.Autowired("horizontalResizeService"),s("design:type",h.HorizontalResizeService)],t.prototype,"horizontalResizeService",void 0),r([l.Autowired("menuFactory"),s("design:type",Object)],t.prototype,"menuFactory",void 0),r([l.Autowired("gridApi"),s("design:type",y.GridApi)],t.prototype,"gridApi",void 0),r([l.Autowired("columnApi"),s("design:type",d.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("sortController"),s("design:type",v.SortController)],t.prototype,"sortController",void 0),r([l.Autowired("eventService"),s("design:type",C.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([l.Autowired("columnHoverService"),s("design:type",b.ColumnHoverService)],t.prototype,"columnHoverService",void 0),r([l.Autowired("beans"),s("design:type",S.Beans)],t.prototype,"beans",void 0),r([_.RefSelector("eResize"),s("design:type",HTMLElement)],t.prototype,"eResize",void 0),r([_.RefSelector("cbSelectAll"),s("design:type",E.AgCheckbox)],t.prototype,"cbSelectAll",void 0),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.HeaderWrapperComp=D},79886:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(40634),p=o(60843),u=o(45727),d=o(72493),c=o(22131),h=o(15068),f=o(93121),g=o(95125),m=o(98239),y=o(26016),v=o(47721),C=o(1571),w=o(85910),E=o(83423),_=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){this.params=e,this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&this.assignBlankValueToGroupFooterCell(e);var t=this.isEmbeddedRowMismatch(),o=null==e.value;this.cellIsBlank=t||o,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent())},t.prototype.assignBlankValueToGroupFooterCell=function(e){e.value||-1!=e.node.level||(e.value="")},t.prototype.isEmbeddedRowMismatch=function(){if(this.params.fullWidth&&this.gridOptionsWrapper.isEmbedFullWidthRows()){var e=this.params.pinned===y.Column.PINNED_LEFT,t=this.params.pinned===y.Column.PINNED_RIGHT,o=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!o:this.columnController.isPinningLeft()?!e:!o}return!1},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node.uiLevel;e.padding>=0?this.setPaddingDeprecatedWay(t,e.padding):(this.indentClass&&this.removeCssClass(this.indentClass),this.indentClass="ag-row-group-indent-"+t,this.addCssClass(this.indentClass))}},t.prototype.setPaddingDeprecatedWay=function(e,t){E._.doOnce((function(){return console.warn("ag-Grid: since v14.2, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the ag-Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay");var o=e*t;this.gridOptionsWrapper.isEnableRtl()?this.getGui().style.paddingRight=o+"px":this.getGui().style.paddingLeft=o+"px"},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,h.RowNode.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.hasChildren()||E._.get(e.colDef,"cellRendererParams.innerRenderer",null)||E._.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.hasChildren()&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var o=E._.cloneObject(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e,t=this,o=this.params,n=this.displayedGroup.rowGroupColumn||o.column,i=this.params.value,r=n?this.valueFormatterService.formatValue(n,o.node,o.scope,i):null;o.valueFormatted=r,(e=1==o.fullWidth?this.useFullWidth(o):this.useInnerRenderer(this.params.colDef.cellRendererParams,n.getColDef(),o))&&e.then((function(e){t.innerCellRenderer=e}))},t.prototype.useInnerRenderer=function(e,t,o){var n=this,i=null,r=this.userComponentFactory.lookupComponentClassDef(e,"innerRenderer");if(r&&null!=r.component&&r.source!=w.ComponentSource.DEFAULT)i=this.userComponentFactory.newInnerCellRenderer(e,o);else{var s=this.userComponentFactory.lookupComponentClassDef(t,"cellRenderer");i=s&&s.source!=w.ComponentSource.DEFAULT?this.userComponentFactory.newCellRenderer(t,o):s&&s.source==w.ComponentSource.DEFAULT&&E._.get(t,"cellRendererParams.innerRenderer",null)?this.userComponentFactory.newInnerCellRenderer(t.cellRendererParams,o):this.userComponentFactory.newCellRenderer({},o)}return null!=i?i.then((function(e){null!=e?E._.bindCellRendererToHtmlElement(i,n.eValue):n.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value})):this.eValue.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,i},t.prototype.useFullWidth=function(e){var t=this.userComponentFactory.newFullWidthGroupRowInnerCellRenderer(e);return null!=t?E._.bindCellRendererToHtmlElement(t,this.eValue):this.eValue.innerText=null!=e.valueFormatted?e.valueFormatted:e.value,t},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){E._.exists(this.params.value)&&(this.eValue.innerHTML=this.params.valueFormatted?this.params.valueFormatted:this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.displayedGroup,t=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(t){var o=new g.CheckboxSelectionComponent;this.getContext().wireBean(o),o.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return o.destroy()}))}E._.addOrRemoveCssClass(this.eCheckbox,"ag-invisible",!t)},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,o=E._.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),n=E._.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(o),this.eContracted.appendChild(n),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this),{capture:!0}),this.addDestroyableEventListener(e.node,h.RowNode.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.onAllChildrenCountChanged.bind(this)),this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onAllChildrenCountChanged=function(){this.showExpandAndContractIcons(),this.setIndent()},t.prototype.onKeyDown=function(e){if(!e.defaultPrevented&&E._.isKeyPressed(e,u.Constants.KEY_ENTER)){if(this.params.column.isCellEditable(this.params.node))return;e.preventDefault(),this.onExpandOrContract()}},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.hasChildren()){var o=t.rowGroupColumn;this.draggedFromHideOpenParents=!e.isRowGroupDisplayed(o.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var n=t.parent;!E._.missing(n);){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroup=n;break}n=n.parent}E._.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(e){E._.isStopPropagationForAgGrid(e)||(E._.stopPropagationForAgGrid(e),this.onExpandOrContract())},t.prototype.onCellDblClicked=function(e){E._.isStopPropagationForAgGrid(e)||E._.isElementInEventPath(this.eExpanded,e)||E._.isElementInEventPath(this.eContracted,e)||this.onExpandOrContract()},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded)},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;E._.setVisible(this.eContracted,!t),E._.setVisible(this.eExpanded,t)}else E._.setVisible(this.eExpanded,!1),E._.setVisible(this.eContracted,!1);var o=this.displayedGroup,n=this.columnController.isPivotMode()&&o.leafGroup,i=!o.isExpandable(),r=o.footer||i||n;this.addOrRemoveCssClass("ag-row-group-leaf-indent",r)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.innerCellRenderer&&this.innerCellRenderer.destroy&&this.innerCellRenderer.destroy()},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',r([d.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([d.Autowired("expressionService"),s("design:type",l.ExpressionService)],t.prototype,"expressionService",void 0),r([d.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([d.Autowired("valueFormatterService"),s("design:type",f.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),r([d.Autowired("columnController"),s("design:type",m.ColumnController)],t.prototype,"columnController",void 0),r([d.Autowired("mouseEventService"),s("design:type",C.MouseEventService)],t.prototype,"mouseEventService",void 0),r([d.Autowired("userComponentFactory"),s("design:type",w.UserComponentFactory)],t.prototype,"userComponentFactory",void 0),r([v.RefSelector("eExpanded"),s("design:type",HTMLElement)],t.prototype,"eExpanded",void 0),r([v.RefSelector("eContracted"),s("design:type",HTMLElement)],t.prototype,"eContracted",void 0),r([v.RefSelector("eCheckbox"),s("design:type",HTMLElement)],t.prototype,"eCheckbox",void 0),r([v.RefSelector("eValue"),s("design:type",HTMLElement)],t.prototype,"eValue",void 0),r([v.RefSelector("eChildCount"),s("design:type",HTMLElement)],t.prototype,"eChildCount",void 0),t}(c.Component);t.GroupCellRenderer=_},80834:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","template","templateUrl","filter","aggFunc","cellRenderer","cellEditor","pinned"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRendererParams","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","width","minWidth","maxWidth","rowGroupIndex","pivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressToolPanel","openByDefault","marryChildren","hide","rowGroup","pivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressSorting","suppressMovable","suppressFilter","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressResize","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","autoHeight","sortable","resizable","singleClickEdit"],e.FUNCTION_PROPERTIES=["valueGetter","valueSetter","filterValueGetter","keyCreator","cellRenderer","cellRendererFramework","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","tooltip","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}();t.ColDefUtil=o},81604:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8534),l=o(72493),p=o(93830),u=function(e){function t(t,o){var n=e.call(this)||this;return n.columns=t,n.addMouseHoverListeners(o),n}return i(t,e),t.prototype.addMouseHoverListeners=function(e){this.addDestroyableEventListener(e,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(e,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},r([l.Autowired("columnHoverService"),s("design:type",p.ColumnHoverService)],t.prototype,"columnHoverService",void 0),t}(a.BeanStub);t.HoverFeature=u},81999:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(44871),p=o(98239),u=o(10042),d=o(55e3),c=o(60843),h=o(64229),f=o(37132),g=o(73575),m=o(72493),y=o(42195),v=o(22131),C=o(40797),w=o(47721),E=o(63405),_=o(68198),R=o(96896),O=o(83423),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var o=this.enterprise?t.TEMPLATE_ENTERPRISE:t.TEMPLATE_NORMAL;if(this.setTemplate(o),[this.gridApi,this.filterManager,this.rowRenderer,this.popupService].forEach((function(t){return t.registerGridCore(e)})),this.enterprise&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.setSideBarVisible(this.gridOptionsWrapper.isShowToolPanel()),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 i=this.gridPanel.getGui();this.addDestroyableEventListener(i,"focusin",(function(){O._.addCssClass(i,"ag-has-focus")})),this.addDestroyableEventListener(i,"focusout",(function(e){i.contains(e.relatedTarget)||O._.removeCssClass(i,"ag-has-focus")}));var r=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()}))},t.prototype.onGridSizeChanged=function(){var e={type:E.Events.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";O._.addCssClass(this.getGui(),e)},t.prototype.getRootGui=function(){return this.getGui()},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isVisible()},t.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setVisible(e):e&&console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.setSideBar=function(e){this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=R.SideBarDefParser.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui())},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.logger.log("Grid DOM removed")},t.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t="top"),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.getPageLastRow()+1,n="function"==typeof e,i=-1,r=0;r<o;r++){var s=this.rowModel.getRow(r);if(n){if(e(s)){i=r;break}}else if(e===s||e===s.data){i=r;break}}i>=0&&this.gridPanel.ensureIndexVisible(i,t)},t.TEMPLATE_NORMAL='<div class="ag-root-wrapper">\n <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n </div>\n <ag-pagination></ag-pagination>\n </div>',t.TEMPLATE_ENTERPRISE='<div class="ag-root-wrapper">\n <ag-grid-header-drop-zones></ag-grid-header-drop-zones>\n <div ref="rootWrapperBody" class="ag-root-wrapper-body">\n <ag-grid-comp ref="gridPanel"></ag-grid-comp>\n <ag-side-bar ref="sideBar"></ag-side-bar>\n </div>\n <ag-status-bar ref="statusBar"></ag-status-bar>\n <ag-pagination></ag-pagination>\n <ag-watermark></ag-watermark>\n </div>',r([m.Autowired("enterprise"),s("design:type",Boolean)],t.prototype,"enterprise",void 0),r([m.Autowired("gridOptions"),s("design:type",Object)],t.prototype,"gridOptions",void 0),r([m.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([m.Autowired("rowModel"),s("design:type",Object)],t.prototype,"rowModel",void 0),r([m.Autowired("frameworkFactory"),s("design:type",Object)],t.prototype,"frameworkFactory",void 0),r([m.Autowired("resizeObserverService"),s("design:type",_.ResizeObserverService)],t.prototype,"resizeObserverService",void 0),r([m.Autowired("columnController"),s("design:type",p.ColumnController)],t.prototype,"columnController",void 0),r([m.Autowired("rowRenderer"),s("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),r([m.Autowired("filterManager"),s("design:type",d.FilterManager)],t.prototype,"filterManager",void 0),r([m.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([m.Autowired("eGridDiv"),s("design:type",HTMLElement)],t.prototype,"eGridDiv",void 0),r([m.Autowired("$scope"),s("design:type",Object)],t.prototype,"$scope",void 0),r([m.Autowired("quickFilterOnScope"),s("design:type",String)],t.prototype,"quickFilterOnScope",void 0),r([m.Autowired("popupService"),s("design:type",g.PopupService)],t.prototype,"popupService",void 0),r([m.Autowired("focusedCellController"),s("design:type",y.FocusedCellController)],t.prototype,"focusedCellController",void 0),r([m.Autowired("loggerFactory"),s("design:type",f.LoggerFactory)],t.prototype,"loggerFactory",void 0),r([m.Autowired("columnApi"),s("design:type",l.ColumnApi)],t.prototype,"columnApi",void 0),r([m.Autowired("gridApi"),s("design:type",C.GridApi)],t.prototype,"gridApi",void 0),r([m.Optional("clipboardService"),s("design:type",Object)],t.prototype,"clipboardService",void 0),r([w.RefSelector("gridPanel"),s("design:type",h.GridPanel)],t.prototype,"gridPanel",void 0),r([w.RefSelector("sideBar"),s("design:type",Object)],t.prototype,"sideBarComp",void 0),r([w.RefSelector("rootWrapperBody"),s("design:type",HTMLElement)],t.prototype,"eRootWrapperBody",void 0),r([m.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(v.Component);t.GridCore=b},83423:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(45727),i=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,r=/([^\s,]+)/g,s="__ag_Grid_Stop_Propagation",a=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}();t.Timer=a;var l={"&":"&","<":"<",">":">",'"':""","'":"'"},p=/[&<>"']/g,u=function(){function e(){}return e.doIeFocusHack=function(e){(t._.isBrowserIE()||t._.isBrowserEdge())&&(t._.missing(document.activeElement)||document.activeElement===document.body)&&e.focus()},e.doOnce=function(e,t){this.doOnceFlags[t]||(e(),this.doOnceFlags[t]=!0)},e.isLeftClick=function(e){return"buttons"in e?1==e.buttons:1==(e.which||e.button)},e.areEventsNear=function(e,t,o){if(0===o)return!1;var n=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(n,i)<=o},e.jsonEquals=function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},e.shallowCompare=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t))return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.getNameOfClass=function(e){var t=e.toString(),o=/function (.{1,})\(/.exec(t);return o&&o.length>1?o[1]:""},e.values=function(e){var t=[];return this.iterateObject(e,(function(e,o){t.push(o)})),t},e.getValueUsingField=function(e,t,o){if(t&&e){if(o){for(var n=t.split("."),i=e,r=0;r<n.length;r++)if(i=i[n[r]],this.missing(i))return null;return i}return e[t]}},e.getAbsoluteHeight=function(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom);return Math.ceil(e.offsetHeight+o)},e.getAbsoluteWidth=function(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return Math.ceil(e.offsetWidth+o)},e.getScrollLeft=function(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),this.isBrowserChrome()&&(o=e.scrollWidth-e.clientWidth-o)),o},e.cleanNumber=function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},e.setScrollLeft=function(e,t,o){o&&((this.isBrowserSafari()||this.isBrowserChrome())&&(t=e.scrollWidth-e.clientWidth-t),this.isBrowserFirefox()&&(t*=-1)),e.scrollLeft=t},e.iterateNamedNodeMap=function(e,t){if(e)for(var o=0;o<e.length;o++){var n=e[o];t(n.name,n.value)}},e.iterateObject=function(e,t){if(e&&!this.missing(e))if(Array.isArray(e))e.forEach((function(e,o){t(o+"",e)}));else for(var o=Object.keys(e),n=0;n<o.length;n++){var i=o[n],r=e[i];t(i,r)}},e.cloneObject=function(e){for(var t={},o=Object.keys(e),n=0;n<o.length;n++){var i=o[n],r=e[i];t[i]=r}return t},e.deepCloneObject=function(e){return JSON.parse(JSON.stringify(e))},e.map=function(e,t){for(var o=[],n=0;n<e.length;n++){var i=t(e[n],n);o.push(i)}return o},e.mapObject=function(t,o){var n=[];return e.iterateObject(t,(function(e,t){n.push(o(t))})),n},e.forEach=function(e,t){if(e)for(var o=0;o<e.length;o++)t(e[o],o)},e.filter=function(e,t){var o=[];return e.forEach((function(e){t(e)&&o.push(e)})),o},e.getAllKeysInObjects=function(e){var t={};return e.forEach((function(e){e&&Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)},e.mergeDeep=function(t,o){this.exists(o)&&this.iterateObject(o,(function(o,n){var i=t[o];i!==n&&("object"==typeof i&&"object"==typeof n?e.mergeDeep(i,n):t[o]=n)}))},e.assign=function(e){for(var t=this,o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];return o.forEach((function(o){t.exists(o)&&t.iterateObject(o,(function(t,o){e[t]=o}))})),e},e.parseYyyyMmDdToDate=function(e,t){try{if(!e)return null;if(-1===e.indexOf(t))return null;var o=e.split(t);return 3!=o.length?null:new Date(Number(o[0]),Number(o[1])-1,Number(o[2]))}catch(e){return null}},e.serializeDateToYyyyMmDd=function(t,o){return t?t.getFullYear()+o+e.pad(t.getMonth()+1,2)+o+e.pad(t.getDate(),2):null},e.pad=function(e,t){for(var o=e+"";o.length<t;)o="0"+o;return o},e.pushAll=function(e,t){this.missing(t)||this.missing(e)||t.forEach((function(t){return e.push(t)}))},e.createArrayOfNumbers=function(e,t){for(var o=[],n=e;n<=t;n++)o.push(n);return o},e.getFunctionParameters=function(e){var t=e.toString().replace(i,""),o=t.slice(t.indexOf("(")+1,t.indexOf(")")).match(r);return null===o?[]:o},e.find=function(e,t,o){if(null==e)return null;if(!Array.isArray(e)){var n=this.values(e);return this.find(n,t,o)}for(var i=e,r=null,s=0;s<i.length;s++){var a=i[s];if("string"==typeof t){if(a[t]===o){r=a;break}}else if(t(a)){r=a;break}}return r},e.toStrings=function(e){return this.map(e,(function(e){return null!=e&&e.toString?e.toString():null}))},e.iterateArray=function(e,t){for(var o=0;o<e.length;o++)t(e[o],o)},e.isNode=function(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},e.isElement=function(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isNodeOrElement=function(e){return this.isNode(e)||this.isElement(e)},e.copyNodeList=function(e){for(var t=e?e.length:0,o=[],n=0;n<t;n++)o.push(e[n]);return o},e.isEventFromPrintableCharacter=function(o){var i=String.fromCharCode(o.charCode);if(this.isKeyPressed(o,n.Constants.KEY_NEW_LINE))return!1;if(o.altKey||o.ctrlKey)return!1;if(t._.exists(o.key)){var r=1===o.key.length,s=e.isNumpadDelWithNumlockOnForEdgeOrIe(o);return r||s}return e.PRINTABLE_CHARACTERS.indexOf(i)>=0},e.isUserSuppressingKeyboardEvent=function(e,t,o,n,i){var r=e.getSuppressKeyboardEventFunc(),s=n.getColDef().suppressKeyboardEvent;if(!r&&!s)return!1;var a={event:t,editing:i,column:n,api:e.getApi(),node:o,data:o.data,colDef:n.getColDef(),context:e.getContext(),columnApi:e.getColumnApi()};return!(!s||!s(a))||!!r&&r(a)},e.getCellCompForEvent=function(e,t){for(var o=this.getTarget(t);o;){var n=e.getDomData(o,"cellComp");if(n)return n;o=o.parentElement}return null},e.addChangeListener=function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},e.makeNull=function(e){return null==e||""===e?null:e},e.missing=function(e){return!this.exists(e)},e.missingOrEmpty=function(e){return!e||this.missing(e)||0===e.length},e.missingOrEmptyObject=function(e){return this.missing(e)||0===Object.keys(e).length},e.exists=function(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)},e.firstExistingValue=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];for(var n=0;n<e.length;n++){var i=e[n];if(t._.exists(i))return i}return null},e.anyExists=function(e){if(e)for(var t=0;t<e.length;t++)if(this.exists(e[t]))return!0;return!1},e.existsAndNotEmpty=function(e){return null!=e&&this.exists(e)&&e.length>0},e.clearElement=function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)},e.removeElement=function(e,t){this.removeFromParent(e.querySelector(t))},e.removeFromParent=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.isVisible=function(e){return null!==e.offsetParent},e.loadTemplate=function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild},e.appendHtml=function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},e.addOrRemoveCssClass=function(e,t,o){o?this.addCssClass(e,t):this.removeCssClass(e,t)},e.callIfPresent=function(e){e&&e()},e.addCssClass=function(e,t){var o=this;if(t&&0!==t.length)if(t.indexOf(" ")>=0)t.split(" ").forEach((function(t){return o.addCssClass(e,t)}));else if(e.classList)e.classList.contains(t)||e.classList.add(t);else if(e.className&&e.className.length>0){var n=e.className.split(" ");n.indexOf(t)<0&&(n.push(t),e.setAttribute("class",n.join(" ")))}else e.setAttribute("class",t)},e.containsClass=function(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var o=e.className===t,n=e.className.indexOf(" "+t+" ")>=0,i=0===e.className.indexOf(t+" "),r=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return o||n||i||r}return!1},e.getElementAttribute=function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},e.offsetHeight=function(e){return e&&e.clientHeight?e.clientHeight:0},e.offsetWidth=function(e){return e&&e.clientWidth?e.clientWidth:0},e.sortNumberArray=function(e){e.sort((function(e,t){return e-t}))},e.removeCssClass=function(e,t){if(e.classList)e.classList.contains(t)&&e.classList.remove(t);else if(e.className&&e.className.length>0){var o=e.className.split(" ");if(o.indexOf(t)>=0){for(;o.indexOf(t)>=0;)o.splice(o.indexOf(t),1);e.setAttribute("class",o.join(" "))}}},e.removeRepeatsFromArray=function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var n=e[o]===t,i=e[o+1]===t;n&&i&&e.splice(o+1,1)}},e.removeFromArray=function(e,t){e.indexOf(t)>=0&&e.splice(e.indexOf(t),1)},e.removeAllFromArray=function(e,t){t.forEach((function(t){e.indexOf(t)>=0&&e.splice(e.indexOf(t),1)}))},e.insertIntoArray=function(e,t,o){e.splice(o,0,t)},e.insertArrayIntoArray=function(e,t,o){if(!this.missing(e)&&!this.missing(t))for(var n=t.length-1;n>=0;n--){var i=t[n];this.insertIntoArray(e,i,o)}},e.moveInArray=function(e,t,o){var n=this;t.forEach((function(t){n.removeFromArray(e,t)})),t.slice().reverse().forEach((function(t){n.insertIntoArray(e,t,o)}))},e.defaultComparator=function(e,t,o){void 0===o&&(o=!1);var n=null==e,i=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),n&&i)return 0;if(n)return-1;if(i)return 1;if("string"==typeof e){if(!o)return r(e,t);try{return e.localeCompare(t)}catch(o){return r(e,t)}}return e<t?-1:e>t?1:0;function r(e,t){return e>t?1:e<t?-1:0}},e.compareArrays=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t)||!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.ensureDomOrder=function(e,t,o){o&&o.nextSibling===t||(o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))},e.insertWithDomOrder=function(e,t,o){o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.insertTemplateWithDomOrder=function(e,t,o){var n;return o?(o.insertAdjacentHTML("afterend",t),n=o.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,n=e.firstChild),n},e.every=function(e,t){if(!e||0===e.length)return!0;for(var o=0;o<e.length;o++)if(!t(e[o]))return!1;return!0},e.toStringOrNull=function(e){return this.exists(e)&&e.toString?e.toString():null},e.formatSize=function(e){return"number"==typeof e?e+"px":e},e.formatNumberTwoDecimalPlacesAndCommas=function(e){return"number"!=typeof e?"":(Math.round(100*e)/100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.formatNumberCommas=function(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.prependDC=function(e,t){this.exists(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.createIcon=function(e,t,o){var n=this.createIconNoSpan(e,t,o);if(n.className.indexOf("ag-icon")>-1)return n;var i=document.createElement("span");return i.appendChild(n),i},e.createIconNoSpan=function(e,t,o){var n=null,i=o&&o.getColDef().icons?o.getColDef().icons:null;if(i&&(n=i[e]),!n&&t.getIcons()&&(n=t.getIcons()[e]),n){var r=void 0;if("function"==typeof n)r=n();else{if("string"!=typeof n)throw new Error("icon from grid options needs to be a string or a function");r=n}if("string"==typeof r)return this.loadTemplate(r);if(this.isNodeOrElement(r))return r;throw new Error("iconRenderer should return back a string or a dom object")}var s=document.createElement("span"),a=this.iconNameClassMap[e];if(!a)throw new Error(e+" did not find class");return s.setAttribute("class","ag-icon ag-icon-"+a),s.setAttribute("unselectable","on"),s},e.addStylesToElement=function(e,t){var o=this;t&&Object.keys(t).forEach((function(n){var i=o.hyphenToCamelCase(n);i&&(e.style[i]=t[n])}))},e.isHorizontalScrollShowing=function(e){return e.clientWidth<e.scrollWidth},e.isVerticalScrollShowing=function(e){return e.clientHeight<e.scrollHeight},e.getMaxDivHeight=function(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=this.loadTemplate("<div/>");for(document.body.appendChild(o);;){var n=2*e;if(o.style.height=n+"px",n>t||o.clientHeight!==n)break;e=n}return document.body.removeChild(o),e},e.getScrollbarWidth=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var o=document.createElement("div");o.style.width="100%",e.appendChild(o);var n=o.offsetWidth;return e.parentNode&&e.parentNode.removeChild(e),t-n},e.hasOverflowScrolling=function(){var e=["webkit","moz","o","ms"],t=document.createElement("div"),o=!1;document.getElementsByTagName("body")[0].appendChild(t),t.setAttribute("style",e.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var n=window.getComputedStyle(t);if("touch"===n.overflowScrolling&&(o=!0),!o)for(var i=0,r=e;i<r.length;i++)if("touch"===n[r[i]+"OverflowScrolling"]){o=!0;break}return t.parentNode&&t.parentNode.removeChild(t),o},e.isKeyPressed=function(e,t){return(e.which||e.keyCode)===t},e.setVisible=function(e,t){this.addOrRemoveCssClass(e,"ag-hidden",!t)},e.setHidden=function(e,t){this.addOrRemoveCssClass(e,"ag-invisible",t)},e.setFixedWidth=function(e,t){t=this.formatSize(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t},e.setFixedHeight=function(e,t){t=this.formatSize(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t},e.isBrowserIE=function(){return void 0===this.isIE&&(this.isIE=!!document.documentMode),this.isIE},e.isBrowserEdge=function(){return void 0===this.isEdge&&(this.isEdge=!this.isBrowserIE()&&!!window.StyleMedia),this.isEdge},e.isBrowserSafari=function(){if(void 0===this.isSafari){var e=window;this.isSafari=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||!!(t=!e.safari||e.safari.pushNotification)&&"[object SafariRemoteNotification]"===t.toString()}var t;return this.isSafari},e.isBrowserChrome=function(){if(void 0===this.isChrome){var e=window;this.isChrome=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return this.isChrome},e.isBrowserFirefox=function(){if(void 0===this.isFirefox){var e=window;this.isFirefox=void 0!==e.InstallTrigger}return this.isFirefox},e.isUserAgentIPad=function(){return void 0===this.isIPad&&(this.isIPad=null!=navigator.userAgent.match(/iPad|iPhone/i)),this.isIPad},e.getTarget=function(e){var t=e;return t.target||t.srcElement},e.isElementChildOfClass=function(e,t,o){for(var n=0;e;){if(this.containsClass(e,t))return!0;if(e=e.parentElement,o&&++n>o)break}return!1},e.isElementInEventPath=function(e,o){return!(!o||!e)&&t._.getEventPath(o).indexOf(e)>=0},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e.createEventPath=function(e){for(var o=[],n=t._.getTarget(e);n;)o.push(n),n=n.parentElement;return o},e.addAgGridEventPath=function(e){e.__agGridEventPath=this.getEventPath(e)},e.getEventPath=function(e){var t=e;return t.deepPath?t.deepPath():t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:this.createEventPath(e)},e.forEachSnapshotFirst=function(e,t){e&&e.slice(0).forEach(t)},e.getBodyWidth=function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},e.getBodyHeight=function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1},e.setCheckboxState=function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},e.traverseNodesWithKey=function(e,t){var o=[];!function e(n){n.forEach((function(n){if(n.group||n.hasChildren()){o.push(n.key);var i=o.join("|");t(n,i),e(n.childrenAfterGroup),o.pop()}}))}(e)},e.camelCaseToHyphen=function(e){return null==e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))},e.hyphenToCamelCase=function(e){return null==e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))},e.cssStyleObjectToMarkup=function(e){var t=this;if(!e)return"";var o=[];return this.iterateObject(e,(function(e,n){var i=t.camelCaseToHyphen(e);o.push(i+": "+n+";")})),o.join(" ")},e.isNumeric=function(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)},e.escape=function(e){return null!=e&&e.replace?e.replace(p,(function(e){return l[e]})):e},e.normalizeWheel=function(e){var t=0,o=0,n=0,i=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),n=10*t,i=10*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(1==e.deltaMode?(n*=40,i*=40):(n*=800,i*=800)),n&&!t&&(t=n<1?-1:1),i&&!o&&(o=i<1?-1:1),{spinX:t,spinY:o,pixelX:n,pixelY:i}},e.debounce=function(e,t,o){var n;return void 0===o&&(o=!1),function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var s=this,a=o&&!n;window.clearTimeout(n),n=window.setTimeout((function(){n=null,o||e.apply(s,i)}),t),a&&e.apply(s,i)}},e.stopPropagationForAgGrid=function(e){e[s]=!0},e.isStopPropagationForAgGrid=function(e){return!0===e[s]},e.executeInAWhile=function(e){this.executeAfter(e,400)},e.executeNextVMTurn=function(e){this.executeAfter(e,0)},e.executeAfter=function(e,t){e.length>0&&window.setTimeout((function(){e.forEach((function(e){return e()}))}),t)},e.referenceCompare=function(e,t){return null==e&&null==t||(null!=e||!t)&&(!e||null!=t)&&e===t},e.get=function(t,o,n){if(null==t)return n;if(o.indexOf(".")>-1){var i=o.split(".");return null!=(r=t[i[0]])?e.get(r,i.slice(1,i.length).join("."),n):n}var r;return null!=(r=t[o])?r:n},e.addSafePassiveEventListener=function(t,o,n,i){-1!==e.passiveEvents.indexOf(o)&&(void 0===i?i={}:"boolean"==typeof i&&(i={capture:i}),i.passive=!0),t.addEventListener(o,n,i)},e.camelCaseToHumanText=function(e){return e&&null!=e?e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" "):null},e.message=function(e){var t=document.createElement("div");t.innerHTML=e;var o=document.querySelector("#__ag__message");o||(o=this.loadTemplate('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(o)),o.insertBefore(t,o.children[0])},e.sortRowNodesByOrder=function(e,t){if(e){for(var o=function(e,o){var n=t[e.id],i=t[o.id],r=void 0!==n,s=void 0!==i;return r&&s?n-i:r||s?r?1:-1:e.__objectId-o.__objectId},n=!1,i=0;i<e.length-1;i++)if(o(e[i],e[i+1])>0){n=!0;break}n&&e.sort(o)}},e.fuzzyCheckStrings=function(e,t,o){var n=this,i={},r=e.filter((function(e){return!t.some((function(t){return t===e}))}));return r.length>0&&r.forEach((function(e){return i[e]=n.fuzzySuggestions(e,t,o)})),i},e.fuzzySuggestions=function(e,o,n){var i=n.slice(0);return i.sort((function(o,n){var i=t._.string_similarity(o.toLowerCase(),e.toLowerCase()),r=t._.string_similarity(n.toLowerCase(),e.toLowerCase());return i>r?-1:i===r?0:1})),i},e.get_bigrams=function(e){var t,o,n,i=e.toLowerCase(),r=new Array(i.length-1);for(t=o=0,n=r.length;o<=n;t=o+=1)r[t]=i.slice(t,t+2);return r},e.isNumpadDelWithNumlockOnForEdgeOrIe=function(t){return!(!e.isBrowserEdge()&&!e.isBrowserIE())&&t.key===e.NUMPAD_DEL_NUMLOCK_ON_KEY&&t.charCode===e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE},e.bindCellRendererToHtmlElement=function(e,t){e.then((function(e){var o=e.getGui();null!=o&&("object"==typeof o?t.appendChild(o):t.innerHTML=o)}))},e.PRINTABLE_CHARACTERS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./\\|<>?:@~{}",e.NUMPAD_DEL_NUMLOCK_ON_KEY="Del",e.NUMPAD_DEL_NUMLOCK_ON_CHARCODE=46,e.doOnceFlags={},e.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},e.decToHex=function(e,t){for(var o="",n=0;n<t;n++)o+=String.fromCharCode(255&e),e>>>=8;return o},e.utf8_encode=function(e){for(var t="",o=0,n=(e=e.replace(/\r\n/g,"\n")).length;o<n;o++){var i=e.charCodeAt(o);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},e.iconNameClassMap={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnMovePin:"pin",columnMoveAdd:"plus",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"expanded",groupExpanded:"contracted",checkboxChecked:"checkbox-checked",checkboxUnchecked:"checkbox-unchecked",checkboxIndeterminate:"checkbox-indeterminate",checkboxCheckedReadOnly:"checkbox-checked-readonly",checkboxUncheckedReadOnly:"checkbox-unchecked-readonly",checkboxIndeterminateReadOnly:"checkbox-indeterminate-readonly",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"column-drag",rowDrag:"row-drag",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},e.passiveEvents=["touchstart","touchend","touchmove","touchcancel"],e.string_similarity=function(t,o){if(t.length>0&&o.length>0){var n,i=e.get_bigrams(t),r=e.get_bigrams(o),s=i.length+r.length,a=0,l=void 0;for(l=0,n=i.length;l<n;l++){var p,u=i[l],d=void 0;for(d=0,p=r.length;d<p;d++)u===r[d]&&a++}if(a>0)return 2*a/s}return 0},e}();t.Utils=u;var d,c=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();t.NumberSequence=c,t._=u,function(e){e[e.IN_PROGRESS=0]="IN_PROGRESS",e[e.RESOLVED=1]="RESOLVED"}(d=t.PromiseStatus||(t.PromiseStatus={}));var h=function(){function e(e){this.status=d.IN_PROGRESS,this.resolution=null,this.listOfWaiters=[],e(this.onDone.bind(this),this.onReject.bind(this))}return e.all=function(t){return new e((function(e){var o=[],n=t.length;t.forEach((function(t,i){t.then((function(t){n--,o[i]=t,0==n&&e(o)})),o.push(null)}))}))},e.resolve=function(t){return new e((function(e){return e(t)}))},e.external=function(){var t;return{promise:new e((function(e){t=e})),resolve:function(e){t(e)}}},e.prototype.then=function(e){this.status===d.IN_PROGRESS?this.listOfWaiters.push(e):e(this.resolution)},e.prototype.firstOneOnly=function(e){this.status===d.IN_PROGRESS?0===this.listOfWaiters.length&&this.listOfWaiters.push(e):e(this.resolution)},e.prototype.map=function(t){var o=this;return new e((function(e){o.then((function(o){e(t(o))}))}))},e.prototype.resolveNow=function(e,t){return this.status==d.IN_PROGRESS?e:t(this.resolution)},e.prototype.onDone=function(e){this.status=d.RESOLVED,this.resolution=e,this.listOfWaiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}();t.Promise=h},83684:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(96652),l=o(46410),p=o(4855),u=o(47008),d=o(47008),c=o(85397),h=o(75449),f=o(43389),g=o(2102),m=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.props=t,n.state=o,n.destroyed=!1,n.changeDetectionService=new f.ChangeDetectionService,n.api=null,n.portals=[],n.hasPendingPortalUpdate=!1,n}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{style:this.createStyleForDiv(),ref:function(t){e.eGridDiv=t}},this.portals)},t.prototype.createStyleForDiv=function(){var e={height:"100%"},t=this.props.containerStyle;return t&&Object.keys(t).forEach((function(o){e[o]=t[o]})),e},t.prototype.componentDidMount=function(){var e={seedBeanInstances:{agGridReact:this}},t=this.props.gridOptions||{};c.AgGridColumn.hasChildColumns(this.props)&&(t.columnDefs=c.AgGridColumn.mapChildColumnDefs(this.props)),this.gridOptions=u.ComponentUtil.copyAttributesToGridOptions(t,this.props),new u.Grid(this.eGridDiv,this.gridOptions,e),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi},t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.waitForInstance=function(e,o,n){var i=this;if(void 0===n&&(n=0),e.getFrameworkComponentInstance()||e.isStatelesComponent())o(null);else{if(n>=t.MAX_COMPONENT_CREATION_TIME)return void console.error("ag-Grid: React Component '"+e.getReactComponentName()+"' not created within "+t.MAX_COMPONENT_CREATION_TIME+"ms");window.setTimeout((function(){return i.waitForInstance(e,o,n+5)}),5)}},t.prototype.mountReactPortal=function(e,t,o){this.portals=this.portals.concat([e]),this.batchUpdate(this.waitForInstance(t,o))},t.prototype.batchUpdate=function(e){var t=this;if(this.hasPendingPortalUpdate)return e&&e();setTimeout((function(){t.api&&t.forceUpdate((function(){e&&e(),t.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0},t.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.props.deltaRowDataMode)return f.ChangeDetectionStrategyType.IdentityCheck}return f.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.componentWillReceiveProps=function(e){var t=this,o=!!e.debug,n={};Object.keys(e).forEach((function(i){-1!==u.ComponentUtil.ALL_PROPERTIES.indexOf(i)&&(t.changeDetectionService.getStrategy(t.getStrategyTypeForProp(i)).areEqual(t.props[i],e[i])||(o&&console.log("agGridReact: ["+i+"] property changed"),n[i]={previousValue:t.props[i],currentValue:e[i]}))})),u.ComponentUtil.getEventCallbacks().forEach((function(i){t.props[i]!==e[i]&&(o&&console.log("agGridReact: ["+i+"] event callback changed"),n[i]={previousValue:t.props[i],currentValue:e[i]})})),u.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null)},t.MAX_COMPONENT_CREATION_TIME=1e3,t}(a.Component);function y(e,t){e.forEach((function(e){m[e]=t}))}t.AgGridReact=m,m.propTypes={gridOptions:p.object},y(u.ComponentUtil.getEventCallbacks(),p.func),y(u.ComponentUtil.BOOLEAN_PROPERTIES,p.bool),y(u.ComponentUtil.STRING_PROPERTIES,p.string),y(u.ComponentUtil.OBJECT_PROPERTIES,p.object),y(u.ComponentUtil.ARRAY_PROPERTIES,p.array),y(u.ComponentUtil.NUMBER_PROPERTIES,p.number),y(u.ComponentUtil.FUNCTION_PROPERTIES,p.func);var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.createWrapper=function(e){return this.useLegacyReact()?new g.LegacyReactComponent(e,this.agGridReact):new h.ReactComponent(e,this.agGridReact)},t.prototype.useLegacyReact=function(){return"function"!=typeof l.unstable_renderSubtreeIntoContainer||this.agGridReact&&this.agGridReact.gridOptions&&!this.agGridReact.gridOptions.reactNext},r([d.Autowired("agGridReact"),s("design:type",m)],t.prototype,"agGridReact",void 0),r([d.Bean("frameworkComponentWrapper")],t)}(d.BaseComponentWrapper);u.Grid.setFrameworkBeans([v])},84210:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(44329),a=o(37132),l=o(72493),p=o(83423),u=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=p._.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){p._.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){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(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===s.RowNodeBlock.STATE_DIRTY&&(e=t)})),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var o=t.getNodeIdPrefix(),n={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};p._.exists(o)?e[o+t.getBlockNumber()]=n:e[t.getBlockNumber()]=n})),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},n([r(0,l.Qualifier("loggerFactory")),i("design:type",Function),i("design:paramtypes",[a.LoggerFactory]),i("design:returntype",void 0)],e.prototype,"setBeans",null),e}();t.RowNodeBlockLoader=u},84715:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(46379),l=o(45727),p=o(72493),u=o(44081),d=o(93121),c=o(83423),h=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-input"><select class="ag-cell-edit-input"/></div>')||this;return t.eSelect=t.getGui().querySelector("select"),t}return i(t,e),t.prototype.init=function(e){var t=this;this.focusAfterAttached=e.cellStartedEdit,c._.missing(e.values)?console.warn("ag-Grid: no values found for select cellEditor"):(e.values.forEach((function(o){var n=document.createElement("option");n.value=o;var i=t.valueFormatterService.formatValue(e.column,null,null,o),r=null!=i;n.text=r?i:o,e.value===o&&(n.selected=!0),t.eSelect.appendChild(n)})),this.gridOptionsWrapper.isFullRowEdit()||this.addDestroyableEventListener(this.eSelect,"change",(function(){return e.stopEditing()})),this.addDestroyableEventListener(this.eSelect,"keydown",(function(e){(e.keyCode===l.Constants.KEY_UP||e.keyCode===l.Constants.KEY_DOWN)&&e.stopPropagation()})),this.addDestroyableEventListener(this.eSelect,"mousedown",(function(e){e.stopPropagation()})))},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.focus()},t.prototype.focusIn=function(){this.eSelect.focus()},t.prototype.getValue=function(){return this.eSelect.value},t.prototype.isPopup=function(){return!1},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("valueFormatterService"),s("design:type",d.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),t}(a.PopupComponent);t.SelectCellEditor=h},85222:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_ANIMATION_QUEUE_EMPTY="animationQueueEmpty",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e}();t.Events=o},85397:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var r=o(96652),s=o(96652),a=o(4855),l=o(47008),p=function(e){function t(t,o){var n=e.call(this,t,o)||this;return n.props=t,n.state=o,n}return i(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return r.Children.map(e.children,(function(e){return t.toColDef(e.props)}))},t.toColDef=function(e){var o=t.createColDefFromGridColumn(e);return t.hasChildColumns(e)&&(o.children=t.getChildColDefs(e.children)),o},t.hasChildColumns=function(e){return r.Children.count(e.children)>0},t.getChildColDefs=function(e){return r.Children.map(e,(function(e){return t.createColDefFromGridColumn(e.props)}))},t.createColDefFromGridColumn=function(e){var o={};return t.assign(o,e),delete o.children,o},t.assign=function(e,t){return[t].reduce((function(e,t){return Object.keys(t).forEach((function(o){e[o]=t[o]})),e}),e)},t}(s.Component);function u(e,t){e.forEach((function(e){p[e]=t}))}t.AgGridColumn=p,u(l.ColDefUtil.BOOLEAN_PROPERTIES,a.bool),u(l.ColDefUtil.STRING_PROPERTIES,a.string),u(l.ColDefUtil.OBJECT_PROPERTIES,a.object),u(l.ColDefUtil.ARRAY_PROPERTIES,a.array),u(l.ColDefUtil.NUMBER_PROPERTIES,a.number),u(l.ColDefUtil.FUNCTION_PROPERTIES,a.func)},85910:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(72493),a=o(44081),l=o(36777),p=o(69638),u=o(22743),d=o(83423);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(r=t.ComponentSource||(t.ComponentSource={}));var c=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"dateComponent","agDateInput")},e.prototype.newHeaderComponent=function(e){return this.createAndInitUserComponent(e.column.getColDef(),e,"headerComponent","agColumnHeader")},e.prototype.newHeaderGroupComponent=function(e){return this.createAndInitUserComponent(e.columnGroup.getColGroupDef(),e,"headerGroupComponent","agColumnGroupHeader")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"groupRowInnerRenderer",null,!0)},e.prototype.newFullWidthCellRenderer=function(e,t,o){return this.createAndInitUserComponent(null,e,t,o)},e.prototype.newCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"cellRenderer",null,!0)},e.prototype.newPinnedRowCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"pinnedRowCellRenderer",null,!0)},e.prototype.newCellEditor=function(e,t){return this.createAndInitUserComponent(e,t,"cellEditor","agCellEditor")},e.prototype.newInnerCellRenderer=function(e,t){return this.createAndInitUserComponent(e,t,"innerRenderer",null)},e.prototype.newLoadingOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"loadingOverlayComponent","agLoadingOverlay")},e.prototype.newNoRowsOverlayComponent=function(e){return this.createAndInitUserComponent(this.gridOptions,e,"noRowsOverlayComponent","agNoRowsOverlay")},e.prototype.newTooltipComponent=function(e){var t=e.column&&e.column.getColDef();return this.createAndInitUserComponent(t,e,"tooltipComponent","agTooltipComponent")},e.prototype.newFilterComponent=function(e,t,o,n){return this.createAndInitUserComponent(e,t,"filter",o,!1,n)},e.prototype.newFloatingFilterComponent=function(e,t,o){return this.createAndInitUserComponent(e,t,"floatingFilterComponent",o,!0)},e.prototype.newToolPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"toolPanel")},e.prototype.newStatusPanelComponent=function(e,t){return this.createAndInitUserComponent(e,t,"statusPanel")},e.prototype.createAndInitUserComponent=function(e,t,o,n,i,r){void 0===i&&(i=!1),e||(e=this.gridOptions);var s=this.createComponentInstance(e,o,t,n,i);if(!s)return null;var a=s.componentInstance,l=this.createFinalParams(e,o,t,s.paramsFromSelector);this.addReactHacks(l);var p=r?r(l,a):l,u=this.initComponent(a,p);return null==u?d.Promise.resolve(a):u.map((function(e){return a}))},e.prototype.addReactHacks=function(e){var t=this.context.getBean("agGridReact");t&&(e.agGridReact=d._.cloneObject(t));var o=this.context.getBean("frameworkComponentWrapper");o&&(e.frameworkComponentWrapper=o)},e.prototype.createUserComponentFromConcreteClass=function(e,t){var o=new e;return this.initComponent(o,t),o},e.prototype.lookupComponentClassDef=function(e,t,o,n){void 0===o&&(o=null);var i,s=null,a=null,l=null,p=null;if(null!=e){var u=e[t];null==u||!0===u||("string"==typeof u?s=u:"boolean"==typeof u||(this.agComponentUtils.doesImplementIComponent(u)?a=u:l=u)),p=e[t+"Framework"],i=e[t+"Selector"]}if(a&&p||s&&p||l&&p)throw Error("ag-grid: you are trying to specify: "+t+" twice as a component.");if(p&&!this.frameworkComponentWrapper)throw Error("ag-grid: you are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(i&&(s||a||l||p))throw Error("ag-grid: you can't specify both, the selector and the component of ag-grid for : "+t);if(p)return{componentFromFramework:!0,component:p,source:r.HARDCODED,paramsFromSelector:null};if(a)return{componentFromFramework:!1,component:a,source:r.HARDCODED,paramsFromSelector:null};if(l)return this.agComponentUtils.adaptFunction(t,l,!1,r.HARDCODED);var d,c=i?i(o):null;if(!(d=c&&c.component?c.component:s||n))return null;var h=this.lookupFromRegisteredComponents(t,d);return{componentFromFramework:h.componentFromFramework,component:h.component,source:h.source,paramsFromSelector:c?c.params:null}},e.prototype.lookupFromRegisteredComponents=function(e,t){var o=null!=t?t:e,n=this.userComponentRegistry.retrieve(o);return null==n?null:n.componentFromFramework?{component:n.component,componentFromFramework:!0,source:r.REGISTERED_BY_NAME,paramsFromSelector:null}:this.agComponentUtils.doesImplementIComponent(n.component)?{component:n.component,componentFromFramework:!1,source:n.source==l.RegisteredComponentSource.REGISTERED?r.REGISTERED_BY_NAME:r.DEFAULT,paramsFromSelector:null}:this.agComponentUtils.adaptFunction(e,n.component,n.componentFromFramework,n.source==l.RegisteredComponentSource.REGISTERED?r.REGISTERED_BY_NAME:r.DEFAULT)},e.prototype.createFinalParams=function(e,t,o,n){void 0===n&&(n=null);var i={};d._.mergeDeep(i,o);var r=e?e[t+"Params"]:null;return null!=r&&("function"==typeof r?d._.mergeDeep(i,r(o)):"object"==typeof r&&d._.mergeDeep(i,r)),d._.mergeDeep(i,n),i},e.prototype.createComponentInstance=function(e,t,o,n,i){var r,s=this.lookupComponentClassDef(e,t,o,n);if(!s||!s.component)return i||console.error("Error creating component "+t+"=>"+n),null;if(s.componentFromFramework){var a=s.component,l=this.componentMetadataProvider.retrieve(t);r=this.frameworkComponentWrapper.wrap(a,l.mandatoryMethodList,l.optionalMethodList,n)}else r=new s.component;return{componentInstance:r,paramsFromSelector:s.paramsFromSelector}},e.prototype.initComponent=function(e,t){return this.context.wireBean(e),null==e.init?void 0:e.init(t)},n([s.Autowired("gridOptions"),i("design:type",Object)],e.prototype,"gridOptions",void 0),n([s.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("context"),i("design:type",s.Context)],e.prototype,"context",void 0),n([s.Autowired("agComponentUtils"),i("design:type",p.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),n([s.Autowired("componentMetadataProvider"),i("design:type",u.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),n([s.Autowired("userComponentRegistry"),i("design:type",l.UserComponentRegistry)],e.prototype,"userComponentRegistry",void 0),n([s.Optional("frameworkComponentWrapper"),i("design:type",Object)],e.prototype,"frameworkComponentWrapper",void 0),n([s.Bean("userComponentFactory")],e)}();t.UserComponentFactory=c},86608:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(26016),s=o(72493),a=o(44081),l=o(44871),p=o(98239),u=o(60843),d=o(63405),c=o(40797),h=o(83423),f=function(){function e(){}var t;return t=e,e.prototype.progressSort=function(e,t,o){void 0===o&&(o="api");var n=this.getNextSortDirection(e);this.setSortForColumn(e,n,t,o)},e.prototype.setSortForColumn=function(e,t,o,n){if(void 0===n&&(n="api"),t!==r.Column.SORT_ASC&&t!==r.Column.SORT_DESC&&(t=null),e.setSort(t,n),e.getSort()){var i=Number((new Date).valueOf());e.setSortedAt(i)}else e.setSortedAt(null);o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,n),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:d.Events.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){o!==e&&o.setSort(void 0,t)}))},e.prototype.getNextSortDirection=function(e){var o;if(o=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var n,i=o.indexOf(e.getSort()),r=i<0,s=i==o.length-1;return n=r||s?o[0]:o[i+1],t.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("ag-grid: invalid sort type "+n),null):n},e.prototype.getSortModel=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{colId:e.getColId(),sort:e.getSort()}}))},e.prototype.setSortModel=function(e,t){var o=this;void 0===t&&(t="api");var n=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach((function(i){var r=null,s=-1;if(n&&i.getColDef().sortable)for(var a=0;a<e.length;a++){var l=e[a];"string"==typeof l.colId&&"string"==typeof i.getColId()&&o.compareColIds(l,i)&&(r=l.sort,s=a)}r?(i.setSort(r,t),i.setSortedAt(s)):(i.setSort(null,t),i.setSortedAt(null))})),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns(),t=h._.filter(e,(function(e){return!!e.getSort()}));return t.sort((function(e,t){return e.sortedAt-t.sortedAt})),t},e.prototype.getSortForRowController=function(){var e=this.getColumnsWithSortingOrdered();return h._.map(e,(function(e){return{inverter:e.getSort()===r.Column.SORT_ASC?1:-1,column:e}}))},e.DEFAULT_SORTING_ORDER=[r.Column.SORT_ASC,r.Column.SORT_DESC,null],n([s.Autowired("gridOptionsWrapper"),i("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("columnController"),i("design:type",p.ColumnController)],e.prototype,"columnController",void 0),n([s.Autowired("eventService"),i("design:type",u.EventService)],e.prototype,"eventService",void 0),n([s.Autowired("columnApi"),i("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),n([s.Autowired("gridApi"),i("design:type",c.GridApi)],e.prototype,"gridApi",void 0),t=n([s.Bean("sortController")],e)}();t.SortController=f},86895:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.dateComponent=function(e){return e.dateComponent},e.prototype.colDefFloatingCellRenderer=function(e){return e.pinnedRowCellRenderer},e.prototype.colDefCellRenderer=function(e){return e.cellRenderer},e.prototype.colDefCellEditor=function(e){return e.cellEditor},e.prototype.colDefFilter=function(e){return e.filter},e.prototype.gridOptionsFullWidthCellRenderer=function(e){return e.fullWidthCellRenderer},e.prototype.gridOptionsGroupRowRenderer=function(e){return e.groupRowRenderer},e.prototype.gridOptionsGroupRowInnerRenderer=function(e){return e.groupRowInnerRenderer},e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e}();t.BaseFrameworkFactory=o},87952:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(72493),p=o(15068),u=o(58342),d=o(85222),c=o(8534),h=o(83423),f=function(e){function t(t,o,n,i){var r=e.call(this,'<div class="ag-row-drag"></div>')||this;return r.visibleMode=null,r.rowNode=t,r.column=o,r.cellValue=n,r.beans=i,r}return i(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(h._.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility(),this.beans.gridOptionsWrapper.isRowDragManaged()?this.addFeature(this.beans.context,new m(this,this.beans,this.rowNode,this.column)):this.addFeature(this.beans.context,new g(this,this.beans,this.rowNode,this.column))},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&h._.doOnce((function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},t.prototype.addDragSource=function(){var e=this,t={rowNode:this.rowNode},o={type:u.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:this.cellValue,dragItemCallback:function(){return t},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc((function(){return e.beans.dragAndDropService.removeDragSource(o)}))},t.prototype.getVisibleMode=function(){return this.visibleMode},t.prototype.setVisibleMode=function(e){this.visibleMode=e},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.Component);t.RowDragComp=f;var g=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r.parent=t,r.beans=o,r.column=i,r.rowNode=n,r}return i(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){if(this.beans.gridOptionsWrapper.isSuppressRowDrag())this.parent.setVisibleMode("display"),this.parent.setVisible(!1,"display");else{var e=this.column.isRowDrag(this.rowNode);if(!this.parent.getVisibleMode()){var t=h._.isFunction(this.column.getColDef().rowDrag);this.parent.setVisibleMode(t?"visibility":"display")}this.parent.setVisible(e,this.parent.getVisibleMode())}},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(c.BeanStub),m=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r.parent=t,r.beans=o,r.column=i,r.rowNode=n,r}return i(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,d.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,d.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,d.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,p.RowNode.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.updateSortActive(),this.updateFilterActive(),this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateRowGroupActive=function(){var e=this.beans.columnController.getRowGroupColumns();this.rowGroupActive=!h._.missingOrEmpty(e)},t.prototype.onRowGroupChanged=function(){this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateSortActive=function(){var e=this.beans.sortController.getSortModel();this.sortActive=!h._.missingOrEmpty(e)},t.prototype.onSortChanged=function(){this.updateSortActive(),this.workOutVisibility()},t.prototype.updateFilterActive=function(){this.filterActive=this.beans.filterManager.isAnyFilterPresent()},t.prototype.onFilterChanged=function(){this.updateFilterActive(),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.sortActive||this.filterActive||this.rowGroupActive,t=this.beans.gridOptionsWrapper.isSuppressRowDrag();if(e||t)this.parent.setVisibleMode("display"),this.parent.setVisible(!1,"display");else{var o=this.column.isRowDrag(this.rowNode);if(!this.parent.getVisibleMode()){var n=h._.isFunction(this.column.getColDef().rowDrag);this.parent.setVisibleMode(n?"visibility":"display")}this.parent.setVisible(o,this.parent.getVisibleMode())}},r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(c.BeanStub)},88333:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(83423),i=function(){function e(t){var o=this;this.items=[],this.params=t,this.eGui=document.createElement("div"),this.eGui.innerHTML=e.TEMPLATE,this.eHeader=this.eGui.querySelector('[ref="tabHeader"]'),this.eBody=this.eGui.querySelector('[ref="tabBody"]'),n._.addCssClass(this.eGui,t.cssClass),t.items&&t.items.forEach((function(e){return o.addItem(e)}))}return e.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},e.prototype.getMinDimensions=function(){var e=this.eGui.cloneNode(!0),t=e.querySelector('[ref="tabBody"]');e.style.position="fixed",this.eGui.appendChild(e);var o=0,i=0;return this.items.forEach((function(r){n._.clearElement(t);var s=r.tabbedItem.bodyPromise.resolveNow(null,(function(e){return e.cloneNode(!0)}));null!=s&&(t.appendChild(s),o<e.offsetWidth&&(o=e.offsetWidth),i<e.offsetHeight&&(i=e.offsetHeight))})),this.eGui.removeChild(e),{height:i,width:o}},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(e){var t=document.createElement("span");t.appendChild(e.title),n._.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(e){var t=n._.find(this.items,(function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},e.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(n._.clearElement(this.eBody),e.tabbedItem.bodyPromise.then((function(e){t.eBody.appendChild(e)})),this.activeItem&&n._.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),n._.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):n._.callIfPresent(this.params.onActiveItemClicked)},e.prototype.getGui=function(){return this.eGui},e.TEMPLATE='<div><div ref="tabHeader" class="ag-tab-header"></div><div ref="tabBody" class="ag-tab-body"></div></div>',e}();t.TabbedLayout=i},88842:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=function(){function e(){this.cacheVersion=0}return 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(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},e.prototype.getValue=function(e,t){return this.active&&e.__cacheVersion===this.cacheVersion&&void 0!==e.__cacheData[t]?e.__cacheData[t]:void 0},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r.Bean("valueCache")],e)}();t.ValueCache=a},89929:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(44081),l=o(98239),p=o(26016),u=o(72493),d=o(40706),c=o(60843),h=o(63405),f=o(22131),g=o(47721),m=o(40797),y=o(41832),v=o(45727),C=o(83423),w=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach((function(t){return t.registerGridComp(e)}))},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===v.Constants.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new d.HeaderContainer(this.eHeaderContainer,this.eHeaderViewport,null),o=new d.HeaderContainer(this.ePinnedLeftHeader,null,p.Column.PINNED_LEFT),n=new d.HeaderContainer(this.ePinnedRightHeader,null,p.Column.PINNED_RIGHT);this.childContainers=[t,o,n],this.childContainers.forEach((function(t){return e.getContext().wireBean(t)})),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,a.GridOptionsWrapper.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===v.Constants.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach((function(t){return t.forEachHeaderElement(e)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childContainers.forEach((function(e){return e.destroy()}))},t.prototype.refreshHeader=function(){this.childContainers.forEach((function(e){return e.refresh()}))},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-on",e),C._.addOrRemoveCssClass(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",(function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)}))},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){C._.setVisible(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){C._.setVisible(this.ePinnedRightHeader,e)},t.TEMPLATE='<div class="ag-header" role="row">\n <div class="ag-pinned-left-header" ref="ePinnedLeftHeader" role="presentation"></div>\n <div class="ag-header-viewport" ref="eHeaderViewport" role="presentation">\n <div class="ag-header-container" ref="eHeaderContainer" role="presentation"></div>\n </div>\n <div class="ag-pinned-right-header" ref="ePinnedRightHeader" role="presentation"></div>\n </div>',r([g.RefSelector("ePinnedLeftHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedLeftHeader",void 0),r([g.RefSelector("ePinnedRightHeader"),s("design:type",HTMLElement)],t.prototype,"ePinnedRightHeader",void 0),r([g.RefSelector("eHeaderContainer"),s("design:type",HTMLElement)],t.prototype,"eHeaderContainer",void 0),r([g.RefSelector("eHeaderViewport"),s("design:type",HTMLElement)],t.prototype,"eHeaderViewport",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([u.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([u.Autowired("gridApi"),s("design:type",m.GridApi)],t.prototype,"gridApi",void 0),r([u.Autowired("autoWidthCalculator"),s("design:type",y.AutoWidthCalculator)],t.prototype,"autoWidthCalculator",void 0),r([u.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(f.Component);t.HeaderRootComp=w},92378:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(47721),l=o(13650),p=o(83423),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.modelFromFloatingFilter=function(e){return{type:this.selectedFilter,filter:Number(e),filterTo:this.filterNumberTo,filterType:"number"}},t.prototype.getApplicableFilterTypes=function(){return[l.BaseFilter.EQUALS,l.BaseFilter.NOT_EQUAL,l.BaseFilter.LESS_THAN,l.BaseFilter.LESS_THAN_OR_EQUAL,l.BaseFilter.GREATER_THAN,l.BaseFilter.GREATER_THAN_OR_EQUAL,l.BaseFilter.IN_RANGE]},t.prototype.bodyTemplate=function(e){var t=this.translate.bind(this),o=e==l.FilterConditionType.MAIN?"filterText":"filterConditionText",n=e==l.FilterConditionType.MAIN?"filterNumberToPanel":"filterNumberToPanelCondition",i=e==l.FilterConditionType.MAIN?"filterToText":"filterToConditionText";return'<div class="ag-filter-body">\n <div class="ag-input-text-wrapper">\n <input class="ag-filter-filter" id="'+o+'" type="text" placeholder="'+t("filterOoo")+'"/>\n </div>\n <div class="ag-input-text-wrapper ag-filter-number-to" id="'+n+'">\n <input class="ag-filter-filter" id="'+i+'" type="text" placeholder="'+t("filterOoo")+'"/>\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),t===l.FilterConditionType.MAIN?(this.eFilterTextField=this.queryForHtmlInputElement("#filterText"),this.addFilterChangedEventListeners(t,this.eFilterTextField,this.eFilterToTextField)):(this.eFilterTextConditionField=this.queryForHtmlInputElement("#filterConditionText"),this.addFilterChangedEventListeners(t,this.eFilterTextConditionField,this.eFilterToConditionText),this.setFilter(this.filterNumberCondition,l.FilterConditionType.CONDITION),this.setFilterTo(this.filterNumberConditionTo,l.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,l.FilterConditionType.CONDITION))},t.prototype.addFilterChangedEventListeners=function(e,t,o){var n=this,i=this.getDebounceMs(this.filterParams),r=p._.debounce((function(){return n.onTextFieldsChanged(e,t,o)}),i);this.addDestroyableEventListener(t,"input",r),this.addDestroyableEventListener(o,"input",r)},t.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:e>t?-1:void 0}},t.prototype.onTextFieldsChanged=function(e,t,o){var n=this.stringToFloat(t.value),i=this.stringToFloat(o.value);e===l.FilterConditionType.MAIN?this.filterNumber===n&&this.filterNumberTo===i||(this.filterNumber=n,this.filterNumberTo=i,this.onFilterChanged()):this.filterNumberCondition===n&&this.filterNumberConditionTo===i||(this.filterNumberCondition=n,this.filterNumberConditionTo=i,this.onFilterChanged())},t.prototype.filterValues=function(e){return e===l.FilterConditionType.MAIN?this.selectedFilter!==l.BaseFilter.IN_RANGE?this.asNumber(this.filterNumber):[this.asNumber(this.filterNumber),this.asNumber(this.filterNumberTo)]:this.selectedFilterCondition!==l.BaseFilter.IN_RANGE?this.asNumber(this.filterNumberCondition):[this.asNumber(this.filterNumberCondition),this.asNumber(this.filterNumberConditionTo)]},t.prototype.asNumber=function(e){return p._.isNumeric(e)?e:null},t.prototype.stringToFloat=function(e){var t=p._.makeNull(e);return t&&""===t.trim()&&(t=null),null!=t?parseFloat(t):null},t.prototype.setFilter=function(e,t){if(null!==(e=p._.makeNull(e))&&"number"!=typeof e&&(e=parseFloat(e)),t===l.FilterConditionType.MAIN){if(this.filterNumber=e,!this.eFilterTextField)return;this.eFilterTextField.value=e}else{if(this.filterNumberCondition=e,!this.eFilterTextConditionField)return;this.eFilterTextConditionField.value=e}},t.prototype.setFilterTo=function(e,t){if(null!==(e=p._.makeNull(e))&&"number"!=typeof e&&(e=parseFloat(e)),t===l.FilterConditionType.MAIN){if(this.filterNumberTo=e,!this.eFilterToTextField)return;this.eFilterToTextField.value=e}else{if(this.filterNumberConditionTo=e,!this.eFilterToConditionText)return;this.eFilterToConditionText.value=e}},t.prototype.getFilter=function(e){return e===l.FilterConditionType.MAIN?this.filterNumber:this.filterNumberCondition},t.prototype.serialize=function(e){var t=e===l.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,o=e===l.FilterConditionType.MAIN?this.filterNumber:this.filterNumberCondition,n=e===l.FilterConditionType.MAIN?this.filterNumberTo:this.filterNumberConditionTo;return{type:t||this.defaultFilter,filter:o,filterTo:n,filterType:"number"}},t.prototype.parse=function(e,t){this.setFilterType(e.type,t),this.setFilter(e.filter,t),this.setFilterTo(e.filterTo,t)},t.prototype.refreshFilterBodyUi=function(e){var o=e===l.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,n=e===l.FilterConditionType.MAIN?this.eNumberToPanel:this.eNumberToConditionPanel;if(n){var i=o===t.IN_RANGE;p._.setVisible(n,i)}var r=e===l.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterTextConditionField;if(r){var s=!this.doesFilterHaveHiddenInput(o)&&o!==l.BaseFilter.EMPTY;p._.setVisible(r,s)}},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setFilterType(this.defaultFilter,l.FilterConditionType.MAIN),this.setFilter(null,l.FilterConditionType.MAIN),this.setFilterTo(null,l.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,l.FilterConditionType.CONDITION),this.setFilter(null,l.FilterConditionType.CONDITION),this.setFilterTo(null,l.FilterConditionType.CONDITION)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.LESS_THAN="lessThan",r([a.QuerySelector("#filterText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),r([a.QuerySelector("#filterTextCondition"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextConditionField",void 0),r([a.QuerySelector("#filterToText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterToTextField",void 0),r([a.QuerySelector("#filterToConditionText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterToConditionText",void 0),r([a.QuerySelector("#filterNumberToPanel"),s("design:type",HTMLElement)],t.prototype,"eNumberToPanel",void 0),r([a.QuerySelector("#filterNumberToPanelCondition"),s("design:type",HTMLElement)],t.prototype,"eNumberToConditionPanel",void 0),t}(l.ScalarBaseFilter);t.NumberFilter=u},92427:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(72493),a=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var n=this.waitingCallbacks[e],i=this;if(!n){n=[],this.waitingCallbacks[e]=n;var r=new XMLHttpRequest;r.onload=function(){i.handleHttpResult(this,e)},r.open("GET",e),r.send()}return t&&n.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],n=0;n<o.length;n++)(0,o[n])();if(this.$scope){var i=this;window.setTimeout((function(){i.$scope.$apply()}),0)}}else console.warn("Unable to get template error "+e.status+" - "+t)},n([s.Autowired("$scope"),i("design:type",Object)],e.prototype,"$scope",void 0),n([r.Bean("templateService")],e)}();t.TemplateService=a},93121:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(72493),s=o(44081),a=o(40634),l=function(){function e(){}return e.prototype.formatValue=function(e,t,o,n){var i,r=e.getColDef(),s=null;if(i=t&&t.rowPinned&&r.pinnedRowValueFormatter?r.pinnedRowValueFormatter:r.valueFormatter){var a={value:n,node:t,data:t?t.data:null,colDef:e.getColDef(),column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};a.$scope=o,s=this.expressionService.evaluate(i,a)}else if(r.refData)return r.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},n([r.Autowired("gridOptionsWrapper"),i("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([r.Autowired("expressionService"),i("design:type",a.ExpressionService)],e.prototype,"expressionService",void 0),n([r.Bean("valueFormatterService")],e)}();t.ValueFormatterService=l},93830:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(60843),l=o(72493),p=o(63405),u=o(8534),d=o(44871),c=o(40797),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:p.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},r([l.Autowired("eventService"),s("design:type",a.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("columnApi"),s("design:type",d.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("gridApi"),s("design:type",c.GridApi)],t.prototype,"gridApi",void 0),r([l.Bean("columnHoverService")],t)}(u.BeanStub);t.ColumnHoverService=h},95125:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(15068),p=o(72493),u=o(44081),d=o(63405),c=o(60843),h=o(40797),f=o(44871),g=o(83423),m=function(e){function t(){return e.call(this,'<span class="ag-selection-checkbox" unselectable="on"/>')||this}return i(t,e),t.prototype.createAndAddIcons=function(){this.eCheckedIcon=g._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=g._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eIndeterminateIcon=g._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.column);var e=this.getGui();e.appendChild(this.eCheckedIcon),e.appendChild(this.eUncheckedIcon),e.appendChild(this.eIndeterminateIcon)},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();g._.setVisible(this.eCheckedIcon,!0===e),g._.setVisible(this.eUncheckedIcon,!1===e),g._.setVisible(this.eIndeterminateIcon,"boolean"!=typeof e)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onIndeterminateClicked=function(e){0===this.onUncheckedClicked(e)&&this.onCheckedClicked()},t.prototype.init=function(e){this.rowNode=e.rowNode,this.column=e.column,this.createAndAddIcons(),this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addGuiEventListener("dblclick",(function(e){return g._.stopPropagationForAgGrid(e)})),this.addDestroyableEventListener(this.eCheckedIcon,"click",this.onCheckedClicked.bind(this)),this.addDestroyableEventListener(this.eUncheckedIcon,"click",this.onUncheckedClicked.bind(this)),this.addDestroyableEventListener(this.eIndeterminateIcon,"click",this.onIndeterminateClicked.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc(),(this.isRowSelectableFunc||this.checkboxCallbackExists())&&(this.addDestroyableEventListener(this.eventService,d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return e&&"function"==typeof e.checkboxSelection},r([p.Autowired("gridOptionsWrapper"),s("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([p.Autowired("eventService"),s("design:type",c.EventService)],t.prototype,"eventService",void 0),r([p.Autowired("gridApi"),s("design:type",h.GridApi)],t.prototype,"gridApi",void 0),r([p.Autowired("columnApi"),s("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),t}(a.Component);t.CheckboxSelectionComponent=m},95574:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(22131),l=o(98239),p=o(44081),u=o(72493),d=o(66419),c=o(47721),h=o(72948),f=o(83423),g=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!f._.isStopPropagationForAgGrid(t)){var o=!e.params.columnGroup.isExpanded();e.columnController.setColumnGroupOpened(e.params.columnGroup.getOriginalColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){f._.stopPropagationForAgGrid(e)};this.addDestroyableEventListener(this.eCloseIcon,"dblclick",o),this.addDestroyableEventListener(this.eOpenIcon,"dblclick",o),this.addDestroyableEventListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var n=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(n,h.OriginalColumnGroup.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(n,h.OriginalColumnGroup.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var o=new d.TouchListener(this.eCloseIcon);this.addDestroyableEventListener(o,d.TouchListener.EVENT_TAP,t),this.addDestroyFunc((function(){return o.destroy()})),this.addDestroyableEventListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();f._.setVisible(this.eOpenIcon,!e),f._.setVisible(this.eCloseIcon,e)}else f._.setVisible(this.eOpenIcon,!1),f._.setVisible(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var o=f._.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return f._.setVisible(this.eOpenIcon,!1),void f._.setVisible(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){this.params.displayName&&""!==this.params.displayName&&(this.getRefElement("agLabel").innerHTML=this.params.displayName)},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer"><span ref="agLabel" class="ag-header-group-text"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',r([u.Autowired("columnController"),s("design:type",l.ColumnController)],t.prototype,"columnController",void 0),r([u.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([c.RefSelector("agOpened"),s("design:type",HTMLElement)],t.prototype,"eOpenIcon",void 0),r([c.RefSelector("agClosed"),s("design:type",HTMLElement)],t.prototype,"eCloseIcon",void 0),t}(a.Component);t.HeaderGroupComp=g},96896:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.parse=function(t){if(!t)return null;if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];return t.forEach((function(t){var n=e.DEFAULT_BY_KEY[t];n?o.push(n):console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length?null:{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault}},e.parseComponents=function(t){var o=[];return t.forEach((function(t){var n=null;if("string"==typeof t){var i=e.DEFAULT_BY_KEY[t];if(!i)return void console.warn("ag-grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));n=i}else n=t;o.push(n)})),o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}();t.SideBarDefParser=o},97156:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=o(63405),i=o(37789),r=o(44081),s=o(83423),a=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=[],e.EVENT_CALLBACKS_NO_PREFIX=[],e.EVENTS.forEach((function(t){e.EVENT_CALLBACKS.push(e.getCallbackForEvent(t)),e.EVENT_CALLBACKS_NO_PREFIX.push(t)}))),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,o,n){void 0===n&&(n=!1),l(o),"object"!=typeof t&&(t={});var i=t;return e.ARRAY_PROPERTIES.concat(e.STRING_PROPERTIES).concat(e.OBJECT_PROPERTIES).concat(e.FUNCTION_PROPERTIES).forEach((function(e){void 0!==o[e]&&(i[e]=o[e])})),e.BOOLEAN_PROPERTIES.forEach((function(t){void 0!==o[t]&&(i[t]=e.toBoolean(o[t]))})),e.NUMBER_PROPERTIES.forEach((function(t){void 0!==o[t]&&(i[t]=e.toNumber(o[t]))})),e.getEventCallbacks().forEach((function(e){void 0!==o[e]&&(i[e]=o[e])})),n||e.EVENT_CALLBACKS_NO_PREFIX.forEach((function(t){var n=e.getCallbackForEvent(t);void 0===o[t]&&void 0===o[n]||r.GridOptionsWrapper.checkEventDeprecation(t)})),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,o,i,r){if(t){l(t);var a=o;e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),e.BOOLEAN_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toBoolean(t[o].currentValue))})),e.NUMBER_PROPERTIES.forEach((function(o){t[o]&&(a[o]=e.toNumber(t[o].currentValue))})),e.getEventCallbacks().forEach((function(e){t[e]&&(a[e]=t[e].currentValue)})),t.enableCellTextSelection&&i.setEnableCellTextSelection(e.toBoolean(t.enableCellTextSelection.currentValue)),t.showToolPanel&&i.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&i.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&i.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&i.setPinnedTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&i.setPinnedBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&i.setColumnDefs(t.columnDefs.currentValue,"gridOptionsChanged"),t.datasource&&i.setDatasource(t.datasource.currentValue),t.headerHeight&&i.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&i.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&r.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&i.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue)),t.suppressRowDrag&&i.setSuppressRowDrag(e.toBoolean(t.suppressRowDrag.currentValue)),t.gridAutoHeight&&i.setGridAutoHeight(e.toBoolean(t.gridAutoHeight.currentValue)),t.suppressClipboardPaste&&i.setSuppressClipboardPaste(e.toBoolean(t.suppressClipboardPaste.currentValue)),t.sideBar&&i.setSideBar(t.sideBar.currentValue),t.datasource&&i.setDatasource(t.datasource.currentValue);var p={type:n.Events.EVENT_COMPONENT_STATE_CHANGED,api:o.api,columnApi:o.columnApi};s._.iterateObject(t,(function(e,t){p[e]=t})),i.dispatchEvent(p)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=i.PropertyKeys.STRING_PROPERTIES,e.OBJECT_PROPERTIES=i.PropertyKeys.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=i.PropertyKeys.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=i.PropertyKeys.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=i.PropertyKeys.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=i.PropertyKeys.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=i.PropertyKeys.ALL_PROPERTIES,e}();function l(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}t.ComponentUtil=a,s._.iterateObject(n.Events,(function(e,t){a.EVENTS.push(t)}))},97177:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(44081),s=o(72493),a=o(25230),l=function(){function e(){}return e.prototype.addResizeBar=function(e){var t=this,o={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};return this.dragService.addDragSource(o,!0),function(){return t.dragService.removeDragSource(o)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="col-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},n([s.Autowired("gridOptionsWrapper"),i("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("dragService"),i("design:type",a.DragService)],e.prototype,"dragService",void 0),n([s.Autowired("eGridDiv"),i("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),n([s.Bean("horizontalResizeService")],e)}();t.HorizontalResizeService=l},98239:function(e,t,o){var n=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(74517),a=o(26016),l=o(44081),p=o(40634),u=o(7897),d=o(31887),c=o(41832),h=o(60843),f=o(814),g=o(37132),m=o(63405),y=o(72948),v=o(12598),C=o(72493),w=o(64314),E=o(43878),_=o(88842),R=o(40797),O=o(44871),b=o(83423),S=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0}return e.prototype.init=function(){var e=this.gridOptionsWrapper.isPivotMode();this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation(),this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.usingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var n=this.primaryColumns,i=this.columnFactory.createColumnTree(e,!0,n);this.primaryColumnTree=i.columnTree,this.primaryHeaderRowCount=i.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.extractRowGroupColumns(t,n),this.extractPivotColumns(t,n),this.createValueColumns(t,n),this.ready=!0,this.updateGridColumns(),this.updateDisplayedColumns(t),this.checkDisplayedVirtualColumns(),this.gridOptionsWrapper.isDeltaColumnMode()&&o&&this.resetColumnState(!0,t);var r={type:m.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r);var s={type:m.Events.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)},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(e){for(var t=e,o=[];t&&b._.exists(t);)o.push(t),t=this.getDisplayedColAfter(t);return o},e.prototype.checkDisplayedVirtualColumns=function(){if(b._.exists(this.displayedCenterColumns)){var e=this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#");if(this.updateVirtualSets(),e!==this.allDisplayedVirtualColumns.map((function(e){return e.getId()})).join("#")){var t={type:m.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(e){return!e||!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(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.updateDisplayedColumns(t);var o={type:m.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent)return null;var o=this.getPrimaryColumn(t),n=null;return this.secondaryColumns&&this.secondaryColumns.forEach((function(t){var i=t.getColDef().pivotKeys,r=t.getColDef().pivotValueColumn;b._.compareArrays(i,e)&&r===o&&(n=t)})),n},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,o=this.displayedRightColumns?this.displayedRightColumns[this.displayedRightColumns.length-1]:null):(t=this.displayedLeftColumns?this.displayedLeftColumns[this.displayedLeftColumns.length-1]:null,o=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach((function(n){n.setLastLeftPinned(n===t,e),n.setFirstRightPinned(n===o,e)}))},e.prototype.autoSizeColumns=function(e,t){var o=this;void 0===t&&(t="api");for(var n=[],i=-1;0!==i;)i=0,this.actionOnGridColumns(e,(function(e){if(n.indexOf(e)>=0)return!1;var r=o.autoWidthCalculator.getPreferredWidthForColumn(e);if(r>0){var s=o.normaliseColumnWidth(e,r);e.setActualWidth(s,t),n.push(e),i++}return!0}),t);if(n.length>0){var r={type:m.Events.EVENT_COLUMN_RESIZED,columns:n,column:1===n.length?n[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumns"};this.eventService.dispatchEvent(r)}},e.prototype.autoSizeColumn=function(e,t){void 0===t&&(t="api"),e&&this.autoSizeColumns([e],t)},e.prototype.autoSizeAllColumns=function(e){void 0===e&&(e="api");var t=this.getAllDisplayedColumns();this.autoSizeColumns(t,e)},e.prototype.getColumnsFromTree=function(e){var t=[];return function e(o){for(var n=0;n<o.length;n++){var i=o[n];i instanceof a.Column?t.push(i):i instanceof y.OriginalColumnGroup&&e(i.getChildren())}}(e),t},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case a.Column.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case a.Column.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,o,n){for(var i,r=[],s=null,a=function(a){var l,p=t[a],u=t.length-a,d=Math.min(p.getColSpan(e),u),c=[p];if(d>1){for(var h=d-1,f=1;f<=h;f++)c.push(t[a+f]);a+=h}o?(l=!1,c.forEach((function(e){o(e)&&(l=!0)}))):l=!0,l&&(0===r.length&&s&&n&&n(p)&&r.push(s),r.push(p)),s=p,i=a},l=0;l<t.length;l++)a(l),l=i;return r},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var o=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,o,(function(e){return e.getLeft()>t.viewportLeft}))},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),o=e.getLeft()+e.getActualWidth(),n=this.viewportLeft-200,i=this.viewportRight+200;return!(t<n&&o<n||t>i&&o>i)},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,o,n,i,r){var s=this;if(void 0===r&&(r="api"),e&&!b._.missingOrEmpty(e)){var a=!1;if(e.forEach((function(e){var i=s.getPrimaryColumn(e);if(i){if(o){if(t.indexOf(i)>=0)return;t.push(i)}else{if(t.indexOf(i)<0)return;b._.removeFromArray(t,i)}n(i),a=!0}})),a){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var l={type:i,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:r};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},e.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,o))},e.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},e.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},e.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},e.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),m.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,m.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e,o){o.setPivotActive(e,t)}),t)},e.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},e.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),m.Events.EVENT_COLUMN_PIVOT_CHANGED,t)},e.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},e.prototype.setPrimaryColumnList=function(e,t,o,n,i){var r=this;t.length=0,b._.exists(e)&&e.forEach((function(e){var o=r.getPrimaryColumn(e);o&&t.push(o)})),this.primaryColumns.forEach((function(e){var o=t.indexOf(e)>=0;n(o,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var s={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(s)},e.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,m.Events.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},e.prototype.setValueActive=function(e,t,o){if(e!==t.isValueActive()&&(t.setValueActive(e,o),e&&!t.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(n)}},e.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),m.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},e.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},e.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),m.Events.EVENT_COLUMN_VALUE_CHANGED,t)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},e.prototype.setColumnWidth=function(e,t,o,n,i){void 0===i&&(i="api");var r=this.getPrimaryOrGridColumn(e);if(r){var s=[];if(s.push({width:t,ratios:[1],columns:[r]}),"shift"===this.gridOptionsWrapper.getColResizeDefault()&&(o=!o),o){var a=this.getDisplayedColAfter(r);if(!a)return;var l=r.getActualWidth()-t,p=a.getActualWidth()+l;s.push({width:p,ratios:[1],columns:[a]})}this.resizeColumnSets(s,n,i)}},e.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,o=e.width,n=0,i=0,r=!0;return t.forEach((function(e){n+=e.getMinWidth(),e.getMaxWidth()>0?i+=e.getMaxWidth():r=!1})),o>=n&&(!r||o<=i)},e.prototype.resizeColumnSets=function(e,t,o){if(b._.every(e,this.checkMinAndMaxWidthsForSet.bind(this))){var n=[],i=[];e.forEach((function(e){var t=e.width,o=e.columns,r=e.ratios,s={},a={};o.forEach((function(e){return i.push(e)}));for(var l=!0,p=0,u=function(){if(++p>1e3)return console.error("ag-Grid: infinite loop in resizeColumnSets"),"break";l=!1;var e=[],n=[],i=0,u=t;o.forEach((function(t,o){if(a[t.getId()])u-=s[t.getId()];else{e.push(t);var l=r[o];i+=l,n.push(l)}}));var d=1/i;e.forEach((function(o,n){var i;n===e.length-1?i=u:(i=Math.round(r[n]*t*d),u-=i),i<o.getMinWidth()?(i=o.getMinWidth(),a[o.getId()]=!0,l=!0):o.getMaxWidth()>0&&i>o.getMaxWidth()&&(i=o.getMaxWidth(),a[o.getId()]=!0,l=!0),s[o.getId()]=i}))};l&&"break"!==u(););o.forEach((function(e){var t=s[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t),n.push(e))}))}));var r=n.length>0;if(r&&(this.setLeftValues(o),this.updateBodyWidths(),this.checkDisplayedVirtualColumns()),r||t){var s={type:m.Events.EVENT_COLUMN_RESIZED,columns:i,column:1===i.length?i[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(s)}}else if(t){var a=e&&e.length>0?e[0].columns:null,l={type:m.Events.EVENT_COLUMN_RESIZED,columns:a,column:a&&1===a.length?a[0]:null,finished:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(l)}},e.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){e.setAggFunc(t);var n={type:m.Events.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(n)}},e.prototype.moveRowGroupColumn=function(e,t,o){void 0===o&&(o="api");var n=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,n);var i={type:m.Events.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(i)},e.prototype.moveColumns=function(e,t,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("ag-Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var n=this.getGridColumns(e);if(this.doesMovePassRules(n,t)){b._.moveInArray(this.gridColumns,n,t),this.updateDisplayedColumns(o);var i={type:m.Events.EVENT_COLUMN_MOVED,columns:n,column:1===n.length?n[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(i),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var o=this.gridColumns.slice();return b._.moveInArray(o,e,t),!!this.doesMovePassMarryChildren(o)&&!!this.doesMovePassLockedPositions(o)},e.prototype.doesMovePassLockedPositions=function(e){var t=!1,o=!0;return e.forEach((function(e){e.isLockPosition()?t&&(o=!1):t=!0})),o},e.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof y.OriginalColumnGroup){var n=o;if(n.getColGroupDef()&&n.getColGroupDef().marryChildren){var i=[];n.getLeafColumns().forEach((function(t){var o=e.indexOf(t);i.push(o)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>n.getLeafColumns().length-1&&(t=!1)}}})),t},e.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},e.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var n=this.gridColumns[e];this.moveColumn(n,t,o)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case a.Column.PINNED_LEFT:return this.leftWidth;case a.Column.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var n={type:m.Events.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(e){switch(e){case a.Column.PINNED_LEFT:return this.getDisplayedLeftColumns();case a.Column.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 b._.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return b._.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},e.prototype.setColumnsVisible=function(e,t,o){var n=this;void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,o),!0)}),o,(function(){return{type:m.Events.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:n.gridApi,columnApi:n.columnApi,source:o}})),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},e.prototype.setColumnsPinned=function(e,t,o){var n,i=this;void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),n=!0===t||t===a.Column.PINNED_LEFT?a.Column.PINNED_LEFT:t===a.Column.PINNED_RIGHT?a.Column.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==n&&(e.setPinned(n),!0)}),o,(function(){return{type:m.Events.EVENT_COLUMN_PINNED,pinned:n,column:null,columns:null,api:i.gridApi,columnApi:i.columnApi,source:o}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},e.prototype.actionOnGridColumns=function(e,t,o,n){var i=this;if(!b._.missingOrEmpty(e)){var r=[];if(e.forEach((function(e){var o=i.getGridColumn(e);o&&!1!==t(o)&&r.push(o)})),0!==r.length&&(this.updateDisplayedColumns(o),b._.exists(n)&&n)){var s=n();s.columns=r,s.column=1===r.length?r[0]:null,this.eventService.dispatchEvent(s)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},e.prototype.getDisplayedGroupAfter=function(e){for(var t=e.getDisplayedLeafColumns()[0],o=e.getOriginalColumnGroup().getLevel();;){if(!(t=this.getDisplayedColAfter(t)))return null;for(var n=t.getParent();n.getOriginalColumnGroup().getLevel()!==o;)n=n.getParent();if(n!==e)return n}},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return this.groupAutoColumns&&b._.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach((function(t){return e.push(t)})),this.secondaryColumnsPresent&&this.secondaryColumns&&this.secondaryColumns.forEach((function(t){return e.push(t)})),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,n=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:n,width:e.getActualWidth(),pivotIndex:o,pinned:e.getPinned(),rowGroupIndex:t}},e.prototype.getColumnState=function(){if(b._.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this)),t=(this.groupAutoColumns?this.groupAutoColumns.map(this.createStateItemFromColumn.bind(this)):[]).concat(e);return this.pivotMode||this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map((function(e){return e.getColId()}));e.sort((function(e,o){return t.indexOf(e.colId)-t.indexOf(o.colId)}))},e.prototype.resetColumnState=function(e,t){void 0===e&&(e=!1),void 0===t&&(t="api");var o=this.getColumnsFromTree(this.primaryColumnTree),n=[],i=1e3,r=1e3;o&&o.forEach((function(e){var t=e.getColDef().rowGroupIndex,o=e.getColDef().rowGroup,s=e.getColDef().pivotIndex,a=e.getColDef().pivot,l={colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:t,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width};b._.missing(t)&&o&&(l.rowGroupIndex=i++),b._.missing(s)&&a&&(l.pivotIndex=r++),n.push(l)})),this.setColumnState(n,e,t)},e.prototype.setColumnState=function(e,t,o){var n=this;if(void 0===t&&(t=!1),void 0===o&&(o="api"),b._.missingOrEmpty(this.primaryColumns))return!1;var i=this.getColumnState();this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var s=!0,a={},l={},p=[];if(e&&e.forEach((function(e){if(b._.exists(n.getAutoColumn(e.colId)))p.push(e);else{var t=n.getPrimaryColumn(e.colId);t?(n.syncColumnWithStateItem(t,e,a,l,o),b._.removeFromArray(r,t)):(console.warn("ag-grid: column "+e.colId+" not found"),s=!1)}})),r.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,a)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,l)),this.updateGridColumns(),p.forEach((function(e){var t=n.getAutoColumn(e.colId);n.syncColumnWithStateItem(t,e,a,l,o)})),e){var u=e.map((function(e){return e.colId}));this.gridColumns.sort((function(e,t){return u.indexOf(e.getId())-u.indexOf(t.getId())}))}if(this.updateDisplayedColumns(o),!t){var d={type:m.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:o};this.eventService.dispatchEvent(d)}return this.raiseColumnEvents(i,o),s},e.prototype.raiseColumnEvents=function(e,t){var o=this;if(!this.gridOptionsWrapper.isSuppressSetColumnStateEvents()){var n=this.getColumnState(),i=function(i,r,s){if(!b._.compareArrays(e.map(r).sort(),n.map(r).sort())){var a={type:i,columns:s,column:1===s.length?s[0]:null,api:o.gridApi,columnApi:o.columnApi,source:t};o.eventService.dispatchEvent(a)}},r=function(t){var n=[],i={};return e.forEach((function(e){i[e.colId]=e})),o.gridColumns.forEach((function(e){var o=i[e.getColId()];o&&!t(o,e)||n.push(e)})),n};i(m.Events.EVENT_COLUMN_VALUE_CHANGED,(function(e){return e.colId+"-"+e.aggFunc}),this.valueColumns),i(m.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(e){return e.colId+"-"+e.pivotIndex}),this.pivotColumns),i(m.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(e){return e.colId+"-"+e.rowGroupIndex}),this.rowGroupColumns),this.raiseColumnPinnedEvent(r((function(e,t){return e.pinned!==t.getPinned()})),t);var s=r((function(e,t){return e.hide===t.isVisible()}));this.raiseColumnVisibleEvent(s,t),this.raiseColumnResizeEvent(r((function(e,t){return e.width!==t.getActualWidth()})),t),this.raiseColumnMovedEvent(e,t)}},e.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_PINNED,pinned:null,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_VISIBLE,visible:void 0,columns:e,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnResizeEvent=function(e,t){if(e.length>0){var o={type:m.Events.EVENT_COLUMN_RESIZED,columns:e,column:null,finished:!0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(o)}},e.prototype.raiseColumnMovedEvent=function(e,t){for(var o=[],n=this.getColumnState(),i=function(t){var i=e[t],s=n[t];if(!i||s.hide)return"continue";if(i.colId!==s.colId){var a=b._.find(r.allDisplayedColumns,(function(e){return e.getColId()===s.colId}));o.push(a)}},r=this,s=0;s<n.length;s++)i(s);if(o.length>0){var a={type:m.Events.EVENT_COLUMN_MOVED,columns:o,column:null,toIndex:void 0,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(a)}},e.prototype.sortColumnListUsingIndexes=function(e,t,o){return e[t.getId()]-e[o.getId()]},e.prototype.syncColumnWithNoState=function(e,t){e.setVisible(!1,t),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1,t),e.setPivotActive(!1,t),e.setValueActive(!1,t)},e.prototype.syncColumnWithStateItem=function(e,t,o,n,i){if(e){e.setVisible(!t.hide,i),e.setPinned(t.pinned);var r=this.gridOptionsWrapper.getMinColWidth();t.width&&r&&t.width>=r&&e.setActualWidth(t.width,i),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0,i),this.valueColumns.push(e)):(b._.exists(t.aggFunc)&&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 isintended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1,i)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0,i),o[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1,i),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0,i),n[e.getId()]=t.pivotIndex):e.setPivotActive(!1,i)}},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach((function(e){var n=t(e);n&&o.push(n)})),o},e.prototype.getColumnWithValidation=function(e){var t=this.getPrimaryColumn(e);return t||console.warn("ag-Grid: could not find column "+t),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&b._.exists(this.groupAutoColumns)&&!b._.missing(this.groupAutoColumns)?b._.find(this.groupAutoColumns,(function(o){return t.columnsMatch(o,e)})):null},e.prototype.columnsMatch=function(e,t){var o=e===t,n=e.getColDef()===t,i=e.getColId()==t;return o||n||i},e.prototype.getDisplayNameForColumn=function(e,t,o){if(void 0===o&&(o=!1),!e)return null;var n=this.getHeaderName(e.getColDef(),e,null,null,t);return o?this.wrapHeaderNameWithAggFunc(e,n):n},e.prototype.getDisplayNameForOriginalColumnGroup=function(e,t,o){var n=t?t.getColGroupDef():null;return n?this.getHeaderName(n,null,e,t,o):null},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForOriginalColumnGroup(e,e.getOriginalColumnGroup(),t)},e.prototype.getHeaderName=function(e,t,o,n,i){var r=e.headerValueGetter;if(r){var s={colDef:e,column:t,columnGroup:o,originalColumnGroup:n,location:i,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof r?r(s):"string"==typeof r?this.expressionService.evaluate(r,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?b._.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,n=e.getColDef().pivotValueColumn,i=null;if(b._.exists(n))i=n?n.getAggFunc():null,o=!0;else{var r=e.isValueActive(),s=this.pivotMode||!this.isRowGroupEmpty();r&&s?(i=e.getAggFunc(),o=!0):o=!1}if(o){var a="string"==typeof i?i:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(a,a)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof s.ColumnGroup)return e;var o=this.getAllDisplayedColumnGroups(),n="number"==typeof t,i=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof s.ColumnGroup){var r=o;(n?e===r.getGroupId()&&t===r.getInstanceId():e===r.getGroupId())&&(i=r)}})),i},e.prototype.isReady=function(){return this.ready},e.prototype.createValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,o){return t.setValueActive(o,e)}),(function(){return null}),(function(e){return!!e.aggFunc})),this.valueColumns.forEach((function(e){e.getAggFunc()||e.setAggFunc(e.getColDef().aggFunc)}))},e.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,o){return t.setRowGroupActive(o,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.rowGroup}))},e.prototype.extractColumns=function(e,t,o,n,i){var r=this;t||(t=[]);var s=t.filter((function(e){return r.primaryColumns.indexOf(e)<0})),a=t.filter((function(e){return r.primaryColumns.indexOf(e)>=0})),l=this.primaryColumns.filter((function(t){return!e||e.indexOf(t)<0}));s.forEach((function(e){return o(e,!1)}));var p=[];return l.forEach((function(e){"number"==typeof n(e.getColDef())&&p.push(e)})),p.sort((function(e,t){var o=n(e.getColDef()),i=n(t.getColDef());return o===i?0:o<i?-1:1})),l.forEach((function(e){if(i(e.getColDef())){if(p.indexOf(e)>=0)return;p.push(e)}})),p.forEach((function(e){return o(e,!0)})),a.concat(p)},e.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,o){return t.setPivotActive(o,e)}),(function(e){return e.pivotIndex}),(function(e){return e.pivot}))},e.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof y.OriginalColumnGroup){var o={groupId:e.getGroupId(),open:e.getColGroupDef().openByDefault};t.push(o)}})),this.setColumnGroupState(t,e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){if(t instanceof y.OriginalColumnGroup){var o=t;e.push({groupId:o.getGroupId(),open:o.isExpanded()})}})),e},e.prototype.setColumnGroupState=function(e,t){var o=this;void 0===t&&(t="api"),this.columnAnimationService.start();var n=[];e.forEach((function(e){var t=e.groupId,i=e.open,r=o.getOriginalColumnGroup(t);r&&r.isExpanded()!==i&&(o.logger.log("columnGroupOpened("+r.getGroupId()+","+i+")"),r.setExpanded(i),n.push(r))})),this.updateGroupsAndDisplayedColumns(t),n.forEach((function(e){var t={type:m.Events.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t,o){var n;void 0===o&&(o="api"),n=e instanceof y.OriginalColumnGroup?e.getId():e,this.setColumnGroupState([{groupId:n,open:t}],o)},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof y.OriginalColumnGroup)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof y.OriginalColumnGroup){var n=o;n.getId()===e&&(t=n)}})),t},e.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&!this.secondaryColumnsPresent?b._.filter(this.gridColumns,(function(t){var o=e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0,n=e.valueColumns&&e.valueColumns.indexOf(t)>=0;return o||n})):b._.filter(this.gridColumns,(function(t){return e.groupAutoColumns&&e.groupAutoColumns.indexOf(t)>=0||t.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){b._.exists(e.getColDef().colSpan)&&(t=!0)})),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var o=t.getColDef();o&&b._.exists(o.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e,t){void 0===t&&(t="api");var o=e&&e.length>0;if(o||this.secondaryColumnsPresent){if(o){this.processSecondaryColumnDefinitions(e);var n=this.columnFactory.createColumnTree(e,!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(t)}},e.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),o=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();(t||o)&&e&&function e(n){n.forEach((function(n){if(b._.exists(n.children)){var i=n;o&&o(i),e(i.children)}else t&&t(n)}))}(e)},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(e){return e.getColDef().autoHeight})),this.putFixedColumnsFirst(),this.setupQuickFilterColumns(),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:m.Events.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.orderGridColsLikeLastPrimary=function(){var e=this;if(!b._.missing(this.lastPrimaryOrder)){var t=!0;if(this.gridColumns.forEach((function(o){e.lastPrimaryOrder.indexOf(o)>=0&&(t=!1)})),!t){var o=this.lastPrimaryOrder.filter((function(t){return e.gridColumns.indexOf(t)>=0})),n=this.gridColumns.filter((function(e){return o.indexOf(e)<0})),i=o.slice();n.forEach((function(e){var t=e.getOriginalParent();if(t){for(var o=[];!o.length&&t;)t.getLeafColumns().forEach((function(e){var t=i.indexOf(e)>=0,n=o.indexOf(e)<0;t&&n&&o.push(e)})),t=t.getOriginalParent();if(o.length){var n=o.map((function(e){return i.indexOf(e)})),r=Math.max.apply(Math,n);b._.insertIntoArray(i,e,r+1)}else i.push(e)}else i.push(e)})),this.gridColumns=i}}},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 e=this.gridColumns.filter((function(e){return e.isLockPosition()})),t=this.gridColumns.filter((function(e){return!e.isLockPosition()}));this.gridColumns=e.concat(t)},e.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!b._.missing(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.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(e){this.updateOpenClosedVisibilityInColumnGroups(),this.updateDisplayedColumnsFromTrees(e),this.updateVirtualSets(),this.updateBodyWidths();var t={type:m.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.updateDisplayedColumnsFromTrees=function(e){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues(e)},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(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(e){var t=this,o=this.primaryColumns.slice(0),n=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach((function(i){if(n){var r=t.getWidthOfColsInList(i);i.forEach((function(t){r-=t.getActualWidth(),t.setLeft(r,e)}))}else{var s=0;i.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}b._.removeAllFromArray(o,i)})),o.forEach((function(t){t.setLeft(null,e)}))},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach((function(e){e.forEach((function(e){e instanceof s.ColumnGroup&&e.checkLeft()}))}))},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof a.Column&&t.push(e)}))},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 e={};return this.allDisplayedVirtualColumns.forEach((function(t){e[t.getId()]=!0})),e},e.prototype.getVirtualHeaderGroupRow=function(e,t){var o;switch(e){case a.Column.PINNED_LEFT:o=this.displayedLeftHeaderRows[t];break;case a.Column.PINNED_RIGHT:o=this.displayedRightHeaderRows[t];break;default:o=this.displayedCentreHeaderRows[t]}return b._.missing(o)&&(o=[]),o},e.prototype.updateDisplayedVirtualGroups=function(e){function t(o,n,i){for(var r=!1,s=0;s<o.length;s++){var l=o[s];(l instanceof a.Column?!0===e[l.getId()]:t(l.getDisplayedChildren(),n,i+1))&&(r=!0,n[i]||(n[i]=[]),n[i].push(l))}return r}this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return b._.filter(this.displayedCenterColumns,this.isColumnInViewport.bind(this))},e.prototype.sizeColumnsToFit=function(e,t){var o=this;void 0===t&&(t="api");var n=this.getAllDisplayedColumns();if(!(e<=0||0===n.length)){for(var i=b._.filter(n,(function(e){return!0===e.getColDef().suppressSizeToFit})),r=b._.filter(n,(function(e){return!0!==e.getColDef().suppressSizeToFit})),s=r.slice(0),a=!1;!a;){a=!0;var l=e-this.getWidthOfColsInList(i);if(l<=0)r.forEach((function(e){e.setMinimum(t)}));else for(var p=l/this.getWidthOfColsInList(r),u=l,d=r.length-1;d>=0;d--){var c=r[d],h=Math.round(c.getActualWidth()*p);h<c.getMinWidth()?(c.setMinimum(t),f(c),a=!1):c.isGreaterThanMax(h)?(c.setActualWidth(c.getMaxWidth(),t),f(c),a=!1):0===d?c.setActualWidth(u,t):c.setActualWidth(h,t),u-=h}}this.setLeftValues(t),this.updateBodyWidths(),s.forEach((function(e){var t={type:m.Events.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:o.gridApi,columnApi:o.columnApi,source:"sizeColumnsToFit"};o.eventService.dispatchEvent(t)}))}function f(e){b._.removeFromArray(r,e),i.push(e)}},e.prototype.buildDisplayedTrees=function(e){var t=b._.filter(e,(function(e){return"left"===e.getPinned()})),o=b._.filter(e,(function(e){return"right"===e.getPinned()})),n=b._.filter(e,(function(e){return"left"!==e.getPinned()&&"right"!==e.getPinned()})),i=new v.GroupInstanceIdCreator;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,i,a.Column.PINNED_LEFT,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,i,a.Column.PINNED_RIGHT,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,i,null,this.displayedCentreColumnTree)},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof s.ColumnGroup&&e.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding)if(this.autoGroupsNeedBuilding=!1,!(this.rowGroupColumns.length>0||this.usingTreeData)||this.gridOptionsWrapper.isGroupSuppressAutoColumn()||this.gridOptionsWrapper.isGroupUseEntireRow()||this.gridOptionsWrapper.isGroupSuppressRow())this.groupAutoColumns=null;else{var e=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);!this.autoColsEqual(e,this.groupAutoColumns)&&(this.groupAutoColumns=e)}},e.prototype.autoColsEqual=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++){var n=e[o],i=t[o];if(n.getColId()!==i.getColId())return!1}return!0},e.prototype.getWidthOfColsInList=function(e){for(var t=0,o=0;o<e.length;o++)t+=e[o].getActualWidth();return t},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},n([C.Autowired("gridOptionsWrapper"),i("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([C.Autowired("expressionService"),i("design:type",p.ExpressionService)],e.prototype,"expressionService",void 0),n([C.Autowired("columnFactory"),i("design:type",u.ColumnFactory)],e.prototype,"columnFactory",void 0),n([C.Autowired("displayedGroupCreator"),i("design:type",d.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),n([C.Autowired("autoWidthCalculator"),i("design:type",c.AutoWidthCalculator)],e.prototype,"autoWidthCalculator",void 0),n([C.Autowired("eventService"),i("design:type",h.EventService)],e.prototype,"eventService",void 0),n([C.Autowired("columnUtils"),i("design:type",f.ColumnUtils)],e.prototype,"columnUtils",void 0),n([C.Autowired("context"),i("design:type",C.Context)],e.prototype,"context",void 0),n([C.Autowired("columnAnimationService"),i("design:type",w.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),n([C.Autowired("autoGroupColService"),i("design:type",E.AutoGroupColService)],e.prototype,"autoGroupColService",void 0),n([C.Optional("aggFuncService"),i("design:type",Object)],e.prototype,"aggFuncService",void 0),n([C.Optional("valueCache"),i("design:type",_.ValueCache)],e.prototype,"valueCache",void 0),n([C.Autowired("columnApi"),i("design:type",O.ColumnApi)],e.prototype,"columnApi",void 0),n([C.Autowired("gridApi"),i("design:type",R.GridApi)],e.prototype,"gridApi",void 0),n([C.PostConstruct,i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"init",null),n([r(0,C.Qualifier("loggerFactory")),i("design:type",Function),i("design:paramtypes",[g.LoggerFactory]),i("design:returntype",void 0)],e.prototype,"setBeans",null),n([C.Bean("columnController")],e)}();t.ColumnController=S},99093:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(72493),l=o(22131),p=o(44081),u=o(47721),d=o(83423),c=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){var t=d._.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-stub-cell">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',r([a.Autowired("gridOptionsWrapper"),s("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),r([u.RefSelector("eLoadingIcon"),s("design:type",HTMLElement)],t.prototype,"eLoadingIcon",void 0),r([u.RefSelector("eLoadingText"),s("design:type",HTMLElement)],t.prototype,"eLoadingText",void 0),t}(l.Component);t.LoadingCellRenderer=c},99104:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=o(13650),l=o(47721),p=o(83423),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getDefaultType=function(){return a.BaseFilter.CONTAINS},t.prototype.customInit=function(){this.comparator=this.filterParams.textCustomComparator?this.filterParams.textCustomComparator:t.DEFAULT_COMPARATOR,this.formatter=this.filterParams.textFormatter?this.filterParams.textFormatter:1==this.filterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER,e.prototype.customInit.call(this)},t.prototype.modelFromFloatingFilter=function(e){return{type:this.selectedFilter,filter:e,filterType:"text"}},t.prototype.getApplicableFilterTypes=function(){return[a.BaseFilter.EQUALS,a.BaseFilter.NOT_EQUAL,a.BaseFilter.STARTS_WITH,a.BaseFilter.ENDS_WITH,a.BaseFilter.CONTAINS,a.BaseFilter.NOT_CONTAINS]},t.prototype.bodyTemplate=function(e){var t=this.translate.bind(this);return'<div class="ag-filter-body">\n <div class="ag-input-text-wrapper">\n <input class="ag-filter-filter" id='+(e==a.FilterConditionType.MAIN?"filterText":"filterConditionText")+' type="text" placeholder="'+t("filterOoo","Filter...")+'"/>\n </div>\n </div>'},t.prototype.initialiseFilterBodyUi=function(t){e.prototype.initialiseFilterBodyUi.call(this,t),this.addFilterChangedListener(t),this.setFilter(this.filterConditionText,a.FilterConditionType.CONDITION),this.setFilterType(this.selectedFilterCondition,a.FilterConditionType.CONDITION)},t.prototype.addFilterChangedListener=function(e){var t=this,o=e===a.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterConditionTextField,n=this.getDebounceMs(this.filterParams),i=p._.debounce((function(){return t.onFilterTextFieldChanged(e)}),n);this.addDestroyableEventListener(o,"input",i)},t.prototype.refreshFilterBodyUi=function(e){var t=e===a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition;this.eFilterConditionTextField&&this.addFilterChangedListener(a.FilterConditionType.CONDITION);var o=e===a.FilterConditionType.MAIN?this.eFilterTextField:this.eFilterConditionTextField;if(o){var n=!this.doesFilterHaveHiddenInput(t)&&t!==a.BaseFilter.EMPTY;p._.setVisible(o,n)}},t.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},t.prototype.filterValues=function(e){return e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText},t.prototype.individualFilterPasses=function(e,t){var o=t==a.FilterConditionType.MAIN?this.filterText:this.filterConditionText,n=t==a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,i=this.customFilterOptions[n];if(i&&(null!=o||i.hideFilterInput)){var r=this.filterParams.valueGetter(e.node),s=this.formatter(r);return i.test(o,s)}return o?this.checkIndividualFilter(e,n,o):t===a.FilterConditionType.MAIN||"AND"===this.conditionValue},t.prototype.checkIndividualFilter=function(e,t,o){var n=this.filterParams.valueGetter(e.node),i=this.formatter(o);if(null==n||void 0===n)return t===a.BaseFilter.NOT_EQUAL||t===a.BaseFilter.NOT_CONTAINS;var r=this.formatter(n);return this.comparator(t,r,i)},t.prototype.onFilterTextFieldChanged=function(e){var t=e===a.FilterConditionType.MAIN?this.eFilterTextField.value:this.eFilterConditionTextField.value,o=e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText,n=p._.makeNull(t);if(n&&""===n.trim()&&(n=null),o!==n){var i=n&&1!=this.filterParams.caseSensitive?n.toLowerCase():n,r=o&&1!=this.filterParams.caseSensitive?o.toLowerCase():o;e===a.FilterConditionType.MAIN?this.filterText=this.formatter(n):this.filterConditionText=this.formatter(n),r!==i&&this.onFilterChanged()}},t.prototype.setFilter=function(e,t){if(e=p._.makeNull(e),t===a.FilterConditionType.MAIN)if(e){if(this.filterText=this.formatter(e),!this.eFilterTextField)return;this.eFilterTextField.value=e}else{if(this.filterText=null,!this.eFilterTextField)return;this.eFilterTextField.value=null}else if(e){if(this.filterConditionText=this.formatter(e),!this.eFilterConditionTextField)return;this.eFilterConditionTextField.value=e}else{if(this.filterConditionText=null,!this.eFilterConditionTextField)return;this.eFilterConditionTextField.value=null}},t.prototype.getFilter=function(){return this.filterText},t.prototype.resetState=function(e){void 0===e&&(e=!1),e||(this.setFilterType(this.defaultFilter,a.FilterConditionType.MAIN),this.setFilter(null,a.FilterConditionType.MAIN)),this.setFilterType(this.defaultFilter,a.FilterConditionType.CONDITION),this.setFilter(null,a.FilterConditionType.CONDITION)},t.prototype.serialize=function(e){var t=e===a.FilterConditionType.MAIN?this.selectedFilter:this.selectedFilterCondition,o=e===a.FilterConditionType.MAIN?this.filterText:this.filterConditionText;return{type:t||this.defaultFilter,filter:o,filterType:"text"}},t.prototype.parse=function(e,t){this.setFilterType(e.type,t),this.setFilter(e.filter,t)},t.prototype.setType=function(e,t){this.setFilterType(e,t)},t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,o,n){switch(e){case t.CONTAINS:return o.indexOf(n)>=0;case t.NOT_CONTAINS:return-1===o.indexOf(n);case t.EQUALS:return o===n;case t.NOT_EQUAL:return o!=n;case t.STARTS_WITH:return 0===o.indexOf(n);case t.ENDS_WITH:var i=o.lastIndexOf(n);return i>=0&&i===o.length-n.length;default:return console.warn("invalid filter type "+e),!1}},r([l.QuerySelector("#filterText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),r([l.QuerySelector("#filterConditionText"),s("design:type",HTMLInputElement)],t.prototype,"eFilterConditionTextField",void 0),t}(a.ComparableBaseFilter);t.TextFilter=u},99162:function(e,t,o){var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])},n(e,t)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(o,n){t(o,n,e)}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(72493),p=o(60843),u=o(63405),d=o(37132),c=o(28921),h=o(65802),f=o(40797),g=o(44871),m=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.init=function(){e.prototype.init.call(this),this.getRow(0)},t.prototype.moveItemsDown=function(e,t,o){for(var n=e.getStartRow(),i=t+o,r=e.getEndRow()-1;r>=n;r--)if(!(r<i)){var s=r-o,a=this.getRow(s,!0);a?e.setRowNode(r,a):(e.setBlankRowNode(r),e.setDirty())}},t.prototype.insertItems=function(e,t,o){for(var n=e.getStartRow(),i=e.getEndRow(),r=[],s=0;s<o.length;s++){var a=t+s;if(a>=n&&a<i){var l=o[s],p=e.setNewData(a,l);r.push(p)}}return r},t.prototype.insertItemsAtIndex=function(e,t){var o=this,n=[];this.forEachBlockInReverseOrder((function(i){i.getEndRow()<=e||(o.moveItemsDown(i,e,t.length),o.insertItems(i,e,t).forEach((function(e){return n.push(e)})))})),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var i={type:u.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.cacheParams.blockSize),n=this.getBlock(o);if(!n){if(t)return null;n=this.createBlock(o)}return n.getRow(e)},t.prototype.createBlock=function(e){var t=new c.InfiniteBlock(e,this.cacheParams);return this.getContext().wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder((function(e){return e.setDirty()})),this.checkBlockToLoad()},r([l.Autowired("eventService"),s("design:type",p.EventService)],t.prototype,"eventService",void 0),r([l.Autowired("columnApi"),s("design:type",g.ColumnApi)],t.prototype,"columnApi",void 0),r([l.Autowired("gridApi"),s("design:type",f.GridApi)],t.prototype,"gridApi",void 0),r([a(0,l.Qualifier("loggerFactory")),s("design:type",Function),s("design:paramtypes",[d.LoggerFactory]),s("design:returntype",void 0)],t.prototype,"setBeans",null),r([l.PostConstruct,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],t.prototype,"init",null),t}(h.RowNodeCache);t.InfiniteCache=m},99770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultColumnTypes={numericColumn:{headerClass:"ag-numeric-header",cellClass:"ag-numeric-cell"}}}};
|