@qaecy/cue-ui 0.0.15 → 0.0.17
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/236.js +1 -0
- package/269.js +1 -1
- package/284.js +1 -0
- package/371.js +1 -0
- package/418.js +1 -1
- package/{160.js → 419.js} +1 -1
- package/443.js +1 -0
- package/560.js +1 -1
- package/570.js +1 -0
- package/598.js +1 -1
- package/60.js +1 -0
- package/710.js +1 -1
- package/741.js +1 -1
- package/774.js +1 -0
- package/83.js +1 -0
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/styles.css +1 -0
- package/141.js +0 -1
- package/21.js +0 -1
- package/266.js +0 -1
- package/28.js +0 -1
- package/280.js +0 -1
- package/378.js +0 -1
- package/63.js +0 -1
- package/734.js +0 -1
- package/754.js +0 -1
- package/769.js +0 -1
- package/927.js +0 -1
- package/941.js +0 -1
package/60.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[60,187],{6950(qe,Ce,D){"use strict";D.d(Ce,{R:()=>Lt});var v=D(7705),R=D(5802),E=D(2271),p=D(5547),K=D(9079),L=D(4015),T=D(3913);let H=(()=>{class be{constructor(){this.vcr=(0,R.WQX)(p.c1b)}static{this.\u0275fac=function(X){return new(X||be)}}static{this.\u0275cmp=p.VBU({type:be,selectors:[["ag-component-container"]],standalone:!1,decls:0,vars:0,template:function(X,Q){},encapsulation:2})}}return be})(),I=0;const F=new Set(["doesFilterPass","isFilterActive"]);let de=(()=>{class be extends T.Cf3{setViewContainerRef(B,X){this.viewContainerRef=B,this.angularFrameworkOverrides=X}createWrapper(B){const X=this.angularFrameworkOverrides,Q=this;Q.compShards??=function Z(be){const Ve=new Map;for(let B=0;B<16;B++){const X=be.createComponent(H);Ve.set(B,X),(0,T.MwW)(X.location.nativeElement)}return Ve}(this.viewContainerRef);const We=new class ye extends le{init(Qe){X.runInsideAngular(()=>{super.init(Qe),this._componentRef.changeDetectorRef.detectChanges()})}createComponent(){return Q.createComponent(B)}hasMethod(Qe){return null!=We.getFrameworkComponentInstance()[Qe]}callMethod(Qe,vt){const Bt=this.getFrameworkComponentInstance(),ri=Bt[Qe];return F.has(Qe)?ri.apply(Bt,vt):X.runInsideAngular(()=>ri.apply(Bt,vt))}addMethod(Qe,vt){We[Qe]=vt}};return We}createComponent(B){return I=(I+1)%16,this.compShards.get(I).instance.vcr.createComponent(B)}static{this.\u0275fac=(()=>{let B;return function(Q){return(B||(B=p.xGo(be)))(Q||be)}})()}static{this.\u0275prov=R.jDH({token:be,factory:be.\u0275fac})}}return be})();class le{init(Ve){this._params=Ve,this._componentRef=this.createComponent(),this._agAwareComponent=this._componentRef.instance,this._frameworkComponentInstance=this._componentRef.instance,this._eGui=this._componentRef.location.nativeElement,(0,T.MwW)(this._eGui),this._agAwareComponent.agInit(this._params)}getGui(){return this._eGui}getRootElement(){return this._eGui.firstChild}destroy(){this._frameworkComponentInstance&&"function"==typeof this._frameworkComponentInstance.destroy&&this._frameworkComponentInstance.destroy(),this._componentRef?.destroy()}getFrameworkComponentInstance(){return this._frameworkComponentInstance}}class we{constructor(Ve){this.frameworkOverrides=Ve,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}wrap(Ve,B){const{frameworkOverrides:X,wrappedListeners:Q}=this;let ye=B;if(X.shouldWrapOutgoing){ye=st=>{X.wrapOutgoing(()=>B(st))};let We=Q.get(Ve);We||(We=new Map,Q.set(Ve,We)),We.set(B,ye)}return ye}wrapGlobal(Ve){const{frameworkOverrides:B,wrappedGlobalListeners:X}=this;let Q=Ve;return B.shouldWrapOutgoing&&(Q=(ye,We)=>{B.wrapOutgoing(()=>Ve(ye,We))},X.set(Ve,Q)),Q}unwrap(Ve,B){const{wrappedListeners:X}=this,Q=X.get(Ve);if(Q){const ye=Q.get(B);if(ye)return Q.delete(B),0===Q.size&&X.delete(Ve),ye}return B}unwrapGlobal(Ve){const{wrappedGlobalListeners:B}=this,X=B.get(Ve);return X?(B.delete(Ve),X):Ve}}let me=(()=>{class be extends T.pow{constructor(B){super("angular"),this._ngZone=B,this.batchFrameworkComps=!0,this.isRunningWithinTestZone=!1,this.wrapIncoming=(X,Q)=>this.runOutside(X,Q),this.wrapOutgoing=X=>this.runInsideAngular(X),this.isRunningWithinTestZone=window?.AG_GRID_UNDER_TEST??!!window?.Zone?.AsyncTestZoneSpec,this.runOutside=this._ngZone?this.isRunningWithinTestZone?(X,Q)=>"resize-observer"===Q||"popupPositioning"===Q?this._ngZone.runOutsideAngular(X):X():X=>this._ngZone.runOutsideAngular(X):X=>X()}get shouldWrapOutgoing(){return this._ngZone&&R.SKi.isInAngularZone()}createLocalEventListenerWrapper(B,X){if(this.shouldWrapOutgoing)return B??(X.setFrameworkOverrides(this),new we(this))}createGlobalEventListenerWrapper(){return new we(this)}isFrameworkComponent(B){if(!B)return!1;const X=B.prototype;return X&&"agInit"in X}runInsideAngular(B){return!this._ngZone||R.SKi.isInAngularZone()?B():this._ngZone.run(B)}runOutsideAngular(B,X){return this.runOutside(B,X)}static{this.\u0275fac=function(X){return new(X||be)(R.KVO(R.SKi))}}static{this.\u0275prov=R.jDH({token:be,factory:be.\u0275fac})}}return be})(),Se=(()=>{class be{constructor(B,X,Q,ye){this._viewContainerRef=X,this._angularFrameworkOverrides=Q,this._frameworkCompWrapper=ye,this._initialised=!1,this._destroyed=!1,this._holdEvents=!0,this._fullyReady=new Promise(We=>{this._resolveFullyReady=We}),this.statusBar=void 0,this.sideBar=void 0,this.suppressContextMenu=void 0,this.preventDefaultOnContextMenu=void 0,this.allowContextMenuWithControlKey=void 0,this.columnMenu=void 0,this.suppressMenuHide=void 0,this.enableBrowserTooltips=void 0,this.tooltipTrigger=void 0,this.tooltipShowDelay=void 0,this.tooltipHideDelay=void 0,this.tooltipMouseTrack=void 0,this.tooltipShowMode=void 0,this.tooltipInteraction=void 0,this.popupParent=void 0,this.copyHeadersToClipboard=void 0,this.copyGroupHeadersToClipboard=void 0,this.clipboardDelimiter=void 0,this.suppressCopyRowsToClipboard=void 0,this.suppressCopySingleCellRanges=void 0,this.suppressLastEmptyLineOnPaste=void 0,this.suppressClipboardPaste=void 0,this.suppressClipboardApi=void 0,this.suppressCutToClipboard=void 0,this.columnDefs=void 0,this.defaultColDef=void 0,this.defaultColGroupDef=void 0,this.columnTypes=void 0,this.dataTypeDefinitions=void 0,this.maintainColumnOrder=void 0,this.enableStrictPivotColumnOrder=void 0,this.suppressFieldDotNotation=void 0,this.headerHeight=void 0,this.groupHeaderHeight=void 0,this.floatingFiltersHeight=void 0,this.pivotHeaderHeight=void 0,this.pivotGroupHeaderHeight=void 0,this.hidePaddedHeaderRows=void 0,this.allowDragFromColumnsToolPanel=void 0,this.suppressMovableColumns=void 0,this.suppressColumnMoveAnimation=void 0,this.suppressMoveWhenColumnDragging=void 0,this.suppressDragLeaveHidesColumns=void 0,this.suppressGroupChangesColumnVisibility=void 0,this.suppressMakeColumnVisibleAfterUnGroup=void 0,this.suppressRowGroupHidesColumns=void 0,this.colResizeDefault=void 0,this.suppressAutoSize=void 0,this.autoSizePadding=void 0,this.skipHeaderOnAutoSize=void 0,this.autoSizeStrategy=void 0,this.components=void 0,this.editType=void 0,this.suppressStartEditOnTab=void 0,this.getFullRowEditValidationErrors=void 0,this.invalidEditValueMode=void 0,this.singleClickEdit=void 0,this.suppressClickEdit=void 0,this.readOnlyEdit=void 0,this.stopEditingWhenCellsLoseFocus=void 0,this.enterNavigatesVertically=void 0,this.enterNavigatesVerticallyAfterEdit=void 0,this.enableCellEditingOnBackspace=void 0,this.undoRedoCellEditing=void 0,this.undoRedoCellEditingLimit=void 0,this.defaultCsvExportParams=void 0,this.suppressCsvExport=void 0,this.defaultExcelExportParams=void 0,this.suppressExcelExport=void 0,this.excelStyles=void 0,this.findSearchValue=void 0,this.findOptions=void 0,this.quickFilterText=void 0,this.cacheQuickFilter=void 0,this.includeHiddenColumnsInQuickFilter=void 0,this.quickFilterParser=void 0,this.quickFilterMatcher=void 0,this.applyQuickFilterBeforePivotOrAgg=void 0,this.excludeChildrenWhenTreeDataFiltering=void 0,this.enableAdvancedFilter=void 0,this.alwaysPassFilter=void 0,this.includeHiddenColumnsInAdvancedFilter=void 0,this.advancedFilterParent=void 0,this.advancedFilterBuilderParams=void 0,this.advancedFilterParams=void 0,this.suppressAdvancedFilterEval=void 0,this.suppressSetFilterByDefault=void 0,this.enableFilterHandlers=void 0,this.filterHandlers=void 0,this.enableCharts=void 0,this.chartThemes=void 0,this.customChartThemes=void 0,this.chartThemeOverrides=void 0,this.chartToolPanelsDef=void 0,this.chartMenuItems=void 0,this.loadingCellRenderer=void 0,this.loadingCellRendererParams=void 0,this.loadingCellRendererSelector=void 0,this.localeText=void 0,this.masterDetail=void 0,this.keepDetailRows=void 0,this.keepDetailRowsCount=void 0,this.detailCellRenderer=void 0,this.detailCellRendererParams=void 0,this.detailRowHeight=void 0,this.detailRowAutoHeight=void 0,this.context=void 0,this.alignedGrids=void 0,this.tabIndex=void 0,this.rowBuffer=void 0,this.valueCache=void 0,this.valueCacheNeverExpires=void 0,this.enableCellExpressions=void 0,this.suppressTouch=void 0,this.suppressFocusAfterRefresh=void 0,this.suppressBrowserResizeObserver=void 0,this.suppressPropertyNamesCheck=void 0,this.suppressChangeDetection=void 0,this.debug=void 0,this.loading=void 0,this.overlayLoadingTemplate=void 0,this.loadingOverlayComponent=void 0,this.loadingOverlayComponentParams=void 0,this.suppressLoadingOverlay=void 0,this.overlayNoRowsTemplate=void 0,this.noRowsOverlayComponent=void 0,this.noRowsOverlayComponentParams=void 0,this.suppressNoRowsOverlay=void 0,this.pagination=void 0,this.paginationPageSize=void 0,this.paginationPageSizeSelector=void 0,this.paginationAutoPageSize=void 0,this.paginateChildRows=void 0,this.suppressPaginationPanel=void 0,this.pivotMode=void 0,this.pivotPanelShow=void 0,this.pivotMaxGeneratedColumns=void 0,this.pivotDefaultExpanded=void 0,this.pivotColumnGroupTotals=void 0,this.pivotRowTotals=void 0,this.pivotSuppressAutoColumn=void 0,this.suppressExpandablePivotGroups=void 0,this.functionsReadOnly=void 0,this.aggFuncs=void 0,this.suppressAggFuncInHeader=void 0,this.alwaysAggregateAtRootLevel=void 0,this.aggregateOnlyChangedColumns=void 0,this.suppressAggFilteredOnly=void 0,this.removePivotHeaderRowWhenSingleValueColumn=void 0,this.animateRows=void 0,this.cellFlashDuration=void 0,this.cellFadeDuration=void 0,this.allowShowChangeAfterFilter=void 0,this.domLayout=void 0,this.ensureDomOrder=void 0,this.enableCellSpan=void 0,this.enableRtl=void 0,this.suppressColumnVirtualisation=void 0,this.suppressMaxRenderedRowRestriction=void 0,this.suppressRowVirtualisation=void 0,this.rowDragManaged=void 0,this.rowDragInsertDelay=void 0,this.suppressRowDrag=void 0,this.suppressMoveWhenRowDragging=void 0,this.rowDragEntireRow=void 0,this.rowDragMultiRow=void 0,this.rowDragText=void 0,this.dragAndDropImageComponent=void 0,this.dragAndDropImageComponentParams=void 0,this.fullWidthCellRenderer=void 0,this.fullWidthCellRendererParams=void 0,this.embedFullWidthRows=void 0,this.groupDisplayType=void 0,this.groupDefaultExpanded=void 0,this.autoGroupColumnDef=void 0,this.groupMaintainOrder=void 0,this.groupSelectsChildren=void 0,this.groupLockGroupColumns=void 0,this.groupAggFiltering=void 0,this.groupTotalRow=void 0,this.grandTotalRow=void 0,this.suppressStickyTotalRow=void 0,this.groupSuppressBlankHeader=void 0,this.groupSelectsFiltered=void 0,this.showOpenedGroup=void 0,this.groupHideParentOfSingleChild=void 0,this.groupRemoveSingleChildren=void 0,this.groupRemoveLowestSingleChildren=void 0,this.groupHideOpenParents=void 0,this.groupAllowUnbalanced=void 0,this.rowGroupPanelShow=void 0,this.groupRowRenderer=void 0,this.groupRowRendererParams=void 0,this.treeData=void 0,this.treeDataChildrenField=void 0,this.treeDataParentIdField=void 0,this.rowGroupPanelSuppressSort=void 0,this.suppressGroupRowsSticky=void 0,this.groupHierarchyConfig=void 0,this.pinnedTopRowData=void 0,this.pinnedBottomRowData=void 0,this.enableRowPinning=void 0,this.isRowPinnable=void 0,this.isRowPinned=void 0,this.rowModelType=void 0,this.rowData=void 0,this.asyncTransactionWaitMillis=void 0,this.suppressModelUpdateAfterUpdateTransaction=void 0,this.datasource=void 0,this.cacheOverflowSize=void 0,this.infiniteInitialRowCount=void 0,this.serverSideInitialRowCount=void 0,this.suppressServerSideFullWidthLoadingRow=void 0,this.cacheBlockSize=void 0,this.maxBlocksInCache=void 0,this.maxConcurrentDatasourceRequests=void 0,this.blockLoadDebounceMillis=void 0,this.purgeClosedRowNodes=void 0,this.serverSideDatasource=void 0,this.serverSideSortAllLevels=void 0,this.serverSideEnableClientSideSort=void 0,this.serverSideOnlyRefreshFilteredGroups=void 0,this.serverSidePivotResultFieldSeparator=void 0,this.viewportDatasource=void 0,this.viewportRowModelPageSize=void 0,this.viewportRowModelBufferSize=void 0,this.alwaysShowHorizontalScroll=void 0,this.alwaysShowVerticalScroll=void 0,this.debounceVerticalScrollbar=void 0,this.suppressHorizontalScroll=void 0,this.suppressScrollOnNewData=void 0,this.suppressScrollWhenPopupsAreOpen=void 0,this.suppressAnimationFrame=void 0,this.suppressMiddleClickScrolls=void 0,this.suppressPreventDefaultOnMouseWheel=void 0,this.scrollbarWidth=void 0,this.rowSelection=void 0,this.cellSelection=void 0,this.rowMultiSelectWithClick=void 0,this.suppressRowDeselection=void 0,this.suppressRowClickSelection=void 0,this.suppressCellFocus=void 0,this.suppressHeaderFocus=void 0,this.selectionColumnDef=void 0,this.rowNumbers=void 0,this.suppressMultiRangeSelection=void 0,this.enableCellTextSelection=void 0,this.enableRangeSelection=void 0,this.enableRangeHandle=void 0,this.enableFillHandle=void 0,this.fillHandleDirection=void 0,this.suppressClearOnFillReduction=void 0,this.sortingOrder=void 0,this.accentedSort=void 0,this.unSortIcon=void 0,this.suppressMultiSort=void 0,this.alwaysMultiSort=void 0,this.multiSortKey=void 0,this.suppressMaintainUnsortedOrder=void 0,this.icons=void 0,this.rowHeight=void 0,this.rowStyle=void 0,this.rowClass=void 0,this.rowClassRules=void 0,this.suppressRowHoverHighlight=void 0,this.suppressRowTransform=void 0,this.columnHoverHighlight=void 0,this.gridId=void 0,this.deltaSort=void 0,this.treeDataDisplayType=void 0,this.enableGroupEdit=void 0,this.initialState=void 0,this.theme=void 0,this.loadThemeGoogleFonts=void 0,this.themeCssLayer=void 0,this.styleNonce=void 0,this.themeStyleContainer=void 0,this.getContextMenuItems=void 0,this.getMainMenuItems=void 0,this.postProcessPopup=void 0,this.processUnpinnedColumns=void 0,this.processCellForClipboard=void 0,this.processHeaderForClipboard=void 0,this.processGroupHeaderForClipboard=void 0,this.processCellFromClipboard=void 0,this.sendToClipboard=void 0,this.processDataFromClipboard=void 0,this.isExternalFilterPresent=void 0,this.doesExternalFilterPass=void 0,this.getChartToolbarItems=void 0,this.createChartContainer=void 0,this.focusGridInnerElement=void 0,this.navigateToNextHeader=void 0,this.tabToNextHeader=void 0,this.navigateToNextCell=void 0,this.tabToNextCell=void 0,this.getLocaleText=void 0,this.getDocument=void 0,this.paginationNumberFormatter=void 0,this.getGroupRowAgg=void 0,this.isGroupOpenByDefault=void 0,this.ssrmExpandAllAffectsAllRows=void 0,this.initialGroupOrderComparator=void 0,this.processPivotResultColDef=void 0,this.processPivotResultColGroupDef=void 0,this.getDataPath=void 0,this.getChildCount=void 0,this.getServerSideGroupLevelParams=void 0,this.isServerSideGroupOpenByDefault=void 0,this.isApplyServerSideTransaction=void 0,this.isServerSideGroup=void 0,this.getServerSideGroupKey=void 0,this.getBusinessKeyForNode=void 0,this.getRowId=void 0,this.resetRowDataOnUpdate=void 0,this.processRowPostCreate=void 0,this.isRowSelectable=void 0,this.isRowMaster=void 0,this.fillOperation=void 0,this.postSortRows=void 0,this.getRowStyle=void 0,this.getRowClass=void 0,this.getRowHeight=void 0,this.isFullWidthRow=void 0,this.isRowValidDropPosition=void 0,this.toolPanelVisibleChanged=new R.bkB,this.toolPanelSizeChanged=new R.bkB,this.columnMenuVisibleChanged=new R.bkB,this.contextMenuVisibleChanged=new R.bkB,this.cutStart=new R.bkB,this.cutEnd=new R.bkB,this.pasteStart=new R.bkB,this.pasteEnd=new R.bkB,this.columnVisible=new R.bkB,this.columnPinned=new R.bkB,this.columnResized=new R.bkB,this.columnMoved=new R.bkB,this.columnValueChanged=new R.bkB,this.columnPivotModeChanged=new R.bkB,this.columnPivotChanged=new R.bkB,this.columnGroupOpened=new R.bkB,this.newColumnsLoaded=new R.bkB,this.gridColumnsChanged=new R.bkB,this.displayedColumnsChanged=new R.bkB,this.virtualColumnsChanged=new R.bkB,this.columnEverythingChanged=new R.bkB,this.columnsReset=new R.bkB,this.columnHeaderMouseOver=new R.bkB,this.columnHeaderMouseLeave=new R.bkB,this.columnHeaderClicked=new R.bkB,this.columnHeaderContextMenu=new R.bkB,this.componentStateChanged=new R.bkB,this.cellValueChanged=new R.bkB,this.cellEditRequest=new R.bkB,this.rowValueChanged=new R.bkB,this.cellEditingStarted=new R.bkB,this.cellEditingStopped=new R.bkB,this.rowEditingStarted=new R.bkB,this.rowEditingStopped=new R.bkB,this.bulkEditingStarted=new R.bkB,this.bulkEditingStopped=new R.bkB,this.batchEditingStarted=new R.bkB,this.batchEditingStopped=new R.bkB,this.undoStarted=new R.bkB,this.undoEnded=new R.bkB,this.redoStarted=new R.bkB,this.redoEnded=new R.bkB,this.cellSelectionDeleteStart=new R.bkB,this.cellSelectionDeleteEnd=new R.bkB,this.rangeDeleteStart=new R.bkB,this.rangeDeleteEnd=new R.bkB,this.fillStart=new R.bkB,this.fillEnd=new R.bkB,this.filterOpened=new R.bkB,this.filterChanged=new R.bkB,this.filterModified=new R.bkB,this.filterUiChanged=new R.bkB,this.floatingFilterUiChanged=new R.bkB,this.advancedFilterBuilderVisibleChanged=new R.bkB,this.findChanged=new R.bkB,this.chartCreated=new R.bkB,this.chartRangeSelectionChanged=new R.bkB,this.chartOptionsChanged=new R.bkB,this.chartDestroyed=new R.bkB,this.cellKeyDown=new R.bkB,this.gridReady=new R.bkB,this.firstDataRendered=new R.bkB,this.gridSizeChanged=new R.bkB,this.modelUpdated=new R.bkB,this.virtualRowRemoved=new R.bkB,this.viewportChanged=new R.bkB,this.bodyScroll=new R.bkB,this.bodyScrollEnd=new R.bkB,this.dragStarted=new R.bkB,this.dragStopped=new R.bkB,this.dragCancelled=new R.bkB,this.stateUpdated=new R.bkB,this.paginationChanged=new R.bkB,this.rowDragEnter=new R.bkB,this.rowDragMove=new R.bkB,this.rowDragLeave=new R.bkB,this.rowDragEnd=new R.bkB,this.rowDragCancel=new R.bkB,this.rowResizeStarted=new R.bkB,this.rowResizeEnded=new R.bkB,this.columnRowGroupChanged=new R.bkB,this.rowGroupOpened=new R.bkB,this.expandOrCollapseAll=new R.bkB,this.pivotMaxColumnsExceeded=new R.bkB,this.pinnedRowDataChanged=new R.bkB,this.pinnedRowsChanged=new R.bkB,this.rowDataUpdated=new R.bkB,this.asyncTransactionsFlushed=new R.bkB,this.storeRefreshed=new R.bkB,this.headerFocused=new R.bkB,this.cellClicked=new R.bkB,this.cellDoubleClicked=new R.bkB,this.cellFocused=new R.bkB,this.cellMouseOver=new R.bkB,this.cellMouseOut=new R.bkB,this.cellMouseDown=new R.bkB,this.rowClicked=new R.bkB,this.rowDoubleClicked=new R.bkB,this.rowSelected=new R.bkB,this.selectionChanged=new R.bkB,this.cellContextMenu=new R.bkB,this.rangeSelectionChanged=new R.bkB,this.cellSelectionChanged=new R.bkB,this.tooltipShow=new R.bkB,this.tooltipHide=new R.bkB,this.sortChanged=new R.bkB,this._nativeElement=B.nativeElement,this._fullyReady.then(()=>{this._holdEvents=!1})}ngAfterViewInit(){this._angularFrameworkOverrides.runOutsideAngular(()=>{this._frameworkCompWrapper.setViewContainerRef(this._viewContainerRef,this._angularFrameworkOverrides);const B=Object.keys(this).filter(st=>!(st.startsWith("_")||"gridOptions"==st||"modules"==st||this[st]instanceof R.bkB)),X={};for(const st of B){const Qe=ue(st,this[st]);X[st]=Qe}const Q=(0,T.zsR)(this.gridOptions,X,B),ye={globalListener:this.globalListener.bind(this),frameworkOverrides:this._angularFrameworkOverrides,providedBeanInstances:{frameworkCompWrapper:this._frameworkCompWrapper},modules:this.modules||[],setThemeOnGridDiv:!0},We=(0,T.Dvw)(this._nativeElement,Q,ye);We&&(this.api=We),this._initialised=!0,this._resolveFullyReady()})}ngOnChanges(B){this._initialised&&this._angularFrameworkOverrides.runOutsideAngular(()=>{const X={};for(const Q of Object.keys(B))X[Q]=B[Q].currentValue;(0,T.Y6t)(X,this.api)})}ngOnDestroy(){this._initialised&&(this._destroyed=!0,this.api?.destroy())}isEmitterUsed(B){const Q=this[B],ye=Q?.observed??Q?.observers?.length>0,We=`on${B.charAt(0).toUpperCase()}${B.substring(1)}`;return ye||!!this.gridOptions&&!!this.gridOptions[We]}globalListener(B,X){if(this._destroyed)return;const Q=this[B];if(Q&&this.isEmitterUsed(B)){const ye=()=>this._angularFrameworkOverrides.runInsideAngular(()=>Q.emit(X));this._holdEvents?this._fullyReady.then(()=>ye()):ye()}}static{this.\u0275fac=function(X){return new(X||be)(p.rXU(p.aKT),p.rXU(p.c1b),p.rXU(me),p.rXU(de))}}static{this.\u0275cmp=p.VBU({type:be,selectors:[["ag-grid-angular"]],inputs:{gridOptions:"gridOptions",modules:"modules",statusBar:"statusBar",sideBar:"sideBar",suppressContextMenu:[2,"suppressContextMenu","suppressContextMenu",v.L39],preventDefaultOnContextMenu:[2,"preventDefaultOnContextMenu","preventDefaultOnContextMenu",v.L39],allowContextMenuWithControlKey:[2,"allowContextMenuWithControlKey","allowContextMenuWithControlKey",v.L39],columnMenu:"columnMenu",suppressMenuHide:[2,"suppressMenuHide","suppressMenuHide",v.L39],enableBrowserTooltips:[2,"enableBrowserTooltips","enableBrowserTooltips",v.L39],tooltipTrigger:"tooltipTrigger",tooltipShowDelay:"tooltipShowDelay",tooltipHideDelay:"tooltipHideDelay",tooltipMouseTrack:[2,"tooltipMouseTrack","tooltipMouseTrack",v.L39],tooltipShowMode:"tooltipShowMode",tooltipInteraction:[2,"tooltipInteraction","tooltipInteraction",v.L39],popupParent:"popupParent",copyHeadersToClipboard:[2,"copyHeadersToClipboard","copyHeadersToClipboard",v.L39],copyGroupHeadersToClipboard:[2,"copyGroupHeadersToClipboard","copyGroupHeadersToClipboard",v.L39],clipboardDelimiter:"clipboardDelimiter",suppressCopyRowsToClipboard:[2,"suppressCopyRowsToClipboard","suppressCopyRowsToClipboard",v.L39],suppressCopySingleCellRanges:[2,"suppressCopySingleCellRanges","suppressCopySingleCellRanges",v.L39],suppressLastEmptyLineOnPaste:[2,"suppressLastEmptyLineOnPaste","suppressLastEmptyLineOnPaste",v.L39],suppressClipboardPaste:[2,"suppressClipboardPaste","suppressClipboardPaste",v.L39],suppressClipboardApi:[2,"suppressClipboardApi","suppressClipboardApi",v.L39],suppressCutToClipboard:[2,"suppressCutToClipboard","suppressCutToClipboard",v.L39],columnDefs:"columnDefs",defaultColDef:"defaultColDef",defaultColGroupDef:"defaultColGroupDef",columnTypes:"columnTypes",dataTypeDefinitions:"dataTypeDefinitions",maintainColumnOrder:[2,"maintainColumnOrder","maintainColumnOrder",v.L39],enableStrictPivotColumnOrder:[2,"enableStrictPivotColumnOrder","enableStrictPivotColumnOrder",v.L39],suppressFieldDotNotation:[2,"suppressFieldDotNotation","suppressFieldDotNotation",v.L39],headerHeight:"headerHeight",groupHeaderHeight:"groupHeaderHeight",floatingFiltersHeight:"floatingFiltersHeight",pivotHeaderHeight:"pivotHeaderHeight",pivotGroupHeaderHeight:"pivotGroupHeaderHeight",hidePaddedHeaderRows:[2,"hidePaddedHeaderRows","hidePaddedHeaderRows",v.L39],allowDragFromColumnsToolPanel:[2,"allowDragFromColumnsToolPanel","allowDragFromColumnsToolPanel",v.L39],suppressMovableColumns:[2,"suppressMovableColumns","suppressMovableColumns",v.L39],suppressColumnMoveAnimation:[2,"suppressColumnMoveAnimation","suppressColumnMoveAnimation",v.L39],suppressMoveWhenColumnDragging:[2,"suppressMoveWhenColumnDragging","suppressMoveWhenColumnDragging",v.L39],suppressDragLeaveHidesColumns:[2,"suppressDragLeaveHidesColumns","suppressDragLeaveHidesColumns",v.L39],suppressGroupChangesColumnVisibility:"suppressGroupChangesColumnVisibility",suppressMakeColumnVisibleAfterUnGroup:[2,"suppressMakeColumnVisibleAfterUnGroup","suppressMakeColumnVisibleAfterUnGroup",v.L39],suppressRowGroupHidesColumns:[2,"suppressRowGroupHidesColumns","suppressRowGroupHidesColumns",v.L39],colResizeDefault:"colResizeDefault",suppressAutoSize:[2,"suppressAutoSize","suppressAutoSize",v.L39],autoSizePadding:"autoSizePadding",skipHeaderOnAutoSize:[2,"skipHeaderOnAutoSize","skipHeaderOnAutoSize",v.L39],autoSizeStrategy:"autoSizeStrategy",components:"components",editType:"editType",suppressStartEditOnTab:[2,"suppressStartEditOnTab","suppressStartEditOnTab",v.L39],getFullRowEditValidationErrors:"getFullRowEditValidationErrors",invalidEditValueMode:"invalidEditValueMode",singleClickEdit:[2,"singleClickEdit","singleClickEdit",v.L39],suppressClickEdit:[2,"suppressClickEdit","suppressClickEdit",v.L39],readOnlyEdit:[2,"readOnlyEdit","readOnlyEdit",v.L39],stopEditingWhenCellsLoseFocus:[2,"stopEditingWhenCellsLoseFocus","stopEditingWhenCellsLoseFocus",v.L39],enterNavigatesVertically:[2,"enterNavigatesVertically","enterNavigatesVertically",v.L39],enterNavigatesVerticallyAfterEdit:[2,"enterNavigatesVerticallyAfterEdit","enterNavigatesVerticallyAfterEdit",v.L39],enableCellEditingOnBackspace:[2,"enableCellEditingOnBackspace","enableCellEditingOnBackspace",v.L39],undoRedoCellEditing:[2,"undoRedoCellEditing","undoRedoCellEditing",v.L39],undoRedoCellEditingLimit:"undoRedoCellEditingLimit",defaultCsvExportParams:"defaultCsvExportParams",suppressCsvExport:[2,"suppressCsvExport","suppressCsvExport",v.L39],defaultExcelExportParams:"defaultExcelExportParams",suppressExcelExport:[2,"suppressExcelExport","suppressExcelExport",v.L39],excelStyles:"excelStyles",findSearchValue:"findSearchValue",findOptions:"findOptions",quickFilterText:"quickFilterText",cacheQuickFilter:[2,"cacheQuickFilter","cacheQuickFilter",v.L39],includeHiddenColumnsInQuickFilter:[2,"includeHiddenColumnsInQuickFilter","includeHiddenColumnsInQuickFilter",v.L39],quickFilterParser:"quickFilterParser",quickFilterMatcher:"quickFilterMatcher",applyQuickFilterBeforePivotOrAgg:[2,"applyQuickFilterBeforePivotOrAgg","applyQuickFilterBeforePivotOrAgg",v.L39],excludeChildrenWhenTreeDataFiltering:[2,"excludeChildrenWhenTreeDataFiltering","excludeChildrenWhenTreeDataFiltering",v.L39],enableAdvancedFilter:[2,"enableAdvancedFilter","enableAdvancedFilter",v.L39],alwaysPassFilter:"alwaysPassFilter",includeHiddenColumnsInAdvancedFilter:[2,"includeHiddenColumnsInAdvancedFilter","includeHiddenColumnsInAdvancedFilter",v.L39],advancedFilterParent:"advancedFilterParent",advancedFilterBuilderParams:"advancedFilterBuilderParams",advancedFilterParams:"advancedFilterParams",suppressAdvancedFilterEval:[2,"suppressAdvancedFilterEval","suppressAdvancedFilterEval",v.L39],suppressSetFilterByDefault:[2,"suppressSetFilterByDefault","suppressSetFilterByDefault",v.L39],enableFilterHandlers:[2,"enableFilterHandlers","enableFilterHandlers",v.L39],filterHandlers:"filterHandlers",enableCharts:[2,"enableCharts","enableCharts",v.L39],chartThemes:"chartThemes",customChartThemes:"customChartThemes",chartThemeOverrides:"chartThemeOverrides",chartToolPanelsDef:"chartToolPanelsDef",chartMenuItems:"chartMenuItems",loadingCellRenderer:"loadingCellRenderer",loadingCellRendererParams:"loadingCellRendererParams",loadingCellRendererSelector:"loadingCellRendererSelector",localeText:"localeText",masterDetail:[2,"masterDetail","masterDetail",v.L39],keepDetailRows:[2,"keepDetailRows","keepDetailRows",v.L39],keepDetailRowsCount:"keepDetailRowsCount",detailCellRenderer:"detailCellRenderer",detailCellRendererParams:"detailCellRendererParams",detailRowHeight:"detailRowHeight",detailRowAutoHeight:[2,"detailRowAutoHeight","detailRowAutoHeight",v.L39],context:"context",alignedGrids:"alignedGrids",tabIndex:"tabIndex",rowBuffer:"rowBuffer",valueCache:[2,"valueCache","valueCache",v.L39],valueCacheNeverExpires:[2,"valueCacheNeverExpires","valueCacheNeverExpires",v.L39],enableCellExpressions:[2,"enableCellExpressions","enableCellExpressions",v.L39],suppressTouch:[2,"suppressTouch","suppressTouch",v.L39],suppressFocusAfterRefresh:[2,"suppressFocusAfterRefresh","suppressFocusAfterRefresh",v.L39],suppressBrowserResizeObserver:[2,"suppressBrowserResizeObserver","suppressBrowserResizeObserver",v.L39],suppressPropertyNamesCheck:[2,"suppressPropertyNamesCheck","suppressPropertyNamesCheck",v.L39],suppressChangeDetection:[2,"suppressChangeDetection","suppressChangeDetection",v.L39],debug:[2,"debug","debug",v.L39],loading:[2,"loading","loading",v.L39],overlayLoadingTemplate:"overlayLoadingTemplate",loadingOverlayComponent:"loadingOverlayComponent",loadingOverlayComponentParams:"loadingOverlayComponentParams",suppressLoadingOverlay:[2,"suppressLoadingOverlay","suppressLoadingOverlay",v.L39],overlayNoRowsTemplate:"overlayNoRowsTemplate",noRowsOverlayComponent:"noRowsOverlayComponent",noRowsOverlayComponentParams:"noRowsOverlayComponentParams",suppressNoRowsOverlay:[2,"suppressNoRowsOverlay","suppressNoRowsOverlay",v.L39],pagination:[2,"pagination","pagination",v.L39],paginationPageSize:"paginationPageSize",paginationPageSizeSelector:"paginationPageSizeSelector",paginationAutoPageSize:[2,"paginationAutoPageSize","paginationAutoPageSize",v.L39],paginateChildRows:[2,"paginateChildRows","paginateChildRows",v.L39],suppressPaginationPanel:[2,"suppressPaginationPanel","suppressPaginationPanel",v.L39],pivotMode:[2,"pivotMode","pivotMode",v.L39],pivotPanelShow:"pivotPanelShow",pivotMaxGeneratedColumns:"pivotMaxGeneratedColumns",pivotDefaultExpanded:"pivotDefaultExpanded",pivotColumnGroupTotals:"pivotColumnGroupTotals",pivotRowTotals:"pivotRowTotals",pivotSuppressAutoColumn:[2,"pivotSuppressAutoColumn","pivotSuppressAutoColumn",v.L39],suppressExpandablePivotGroups:[2,"suppressExpandablePivotGroups","suppressExpandablePivotGroups",v.L39],functionsReadOnly:[2,"functionsReadOnly","functionsReadOnly",v.L39],aggFuncs:"aggFuncs",suppressAggFuncInHeader:[2,"suppressAggFuncInHeader","suppressAggFuncInHeader",v.L39],alwaysAggregateAtRootLevel:[2,"alwaysAggregateAtRootLevel","alwaysAggregateAtRootLevel",v.L39],aggregateOnlyChangedColumns:[2,"aggregateOnlyChangedColumns","aggregateOnlyChangedColumns",v.L39],suppressAggFilteredOnly:[2,"suppressAggFilteredOnly","suppressAggFilteredOnly",v.L39],removePivotHeaderRowWhenSingleValueColumn:[2,"removePivotHeaderRowWhenSingleValueColumn","removePivotHeaderRowWhenSingleValueColumn",v.L39],animateRows:[2,"animateRows","animateRows",v.L39],cellFlashDuration:"cellFlashDuration",cellFadeDuration:"cellFadeDuration",allowShowChangeAfterFilter:[2,"allowShowChangeAfterFilter","allowShowChangeAfterFilter",v.L39],domLayout:"domLayout",ensureDomOrder:[2,"ensureDomOrder","ensureDomOrder",v.L39],enableCellSpan:[2,"enableCellSpan","enableCellSpan",v.L39],enableRtl:[2,"enableRtl","enableRtl",v.L39],suppressColumnVirtualisation:[2,"suppressColumnVirtualisation","suppressColumnVirtualisation",v.L39],suppressMaxRenderedRowRestriction:[2,"suppressMaxRenderedRowRestriction","suppressMaxRenderedRowRestriction",v.L39],suppressRowVirtualisation:[2,"suppressRowVirtualisation","suppressRowVirtualisation",v.L39],rowDragManaged:[2,"rowDragManaged","rowDragManaged",v.L39],rowDragInsertDelay:"rowDragInsertDelay",suppressRowDrag:[2,"suppressRowDrag","suppressRowDrag",v.L39],suppressMoveWhenRowDragging:[2,"suppressMoveWhenRowDragging","suppressMoveWhenRowDragging",v.L39],rowDragEntireRow:[2,"rowDragEntireRow","rowDragEntireRow",v.L39],rowDragMultiRow:[2,"rowDragMultiRow","rowDragMultiRow",v.L39],rowDragText:"rowDragText",dragAndDropImageComponent:"dragAndDropImageComponent",dragAndDropImageComponentParams:"dragAndDropImageComponentParams",fullWidthCellRenderer:"fullWidthCellRenderer",fullWidthCellRendererParams:"fullWidthCellRendererParams",embedFullWidthRows:[2,"embedFullWidthRows","embedFullWidthRows",v.L39],groupDisplayType:"groupDisplayType",groupDefaultExpanded:"groupDefaultExpanded",autoGroupColumnDef:"autoGroupColumnDef",groupMaintainOrder:[2,"groupMaintainOrder","groupMaintainOrder",v.L39],groupSelectsChildren:[2,"groupSelectsChildren","groupSelectsChildren",v.L39],groupLockGroupColumns:"groupLockGroupColumns",groupAggFiltering:"groupAggFiltering",groupTotalRow:"groupTotalRow",grandTotalRow:"grandTotalRow",suppressStickyTotalRow:"suppressStickyTotalRow",groupSuppressBlankHeader:[2,"groupSuppressBlankHeader","groupSuppressBlankHeader",v.L39],groupSelectsFiltered:[2,"groupSelectsFiltered","groupSelectsFiltered",v.L39],showOpenedGroup:[2,"showOpenedGroup","showOpenedGroup",v.L39],groupHideParentOfSingleChild:"groupHideParentOfSingleChild",groupRemoveSingleChildren:[2,"groupRemoveSingleChildren","groupRemoveSingleChildren",v.L39],groupRemoveLowestSingleChildren:[2,"groupRemoveLowestSingleChildren","groupRemoveLowestSingleChildren",v.L39],groupHideOpenParents:[2,"groupHideOpenParents","groupHideOpenParents",v.L39],groupAllowUnbalanced:[2,"groupAllowUnbalanced","groupAllowUnbalanced",v.L39],rowGroupPanelShow:"rowGroupPanelShow",groupRowRenderer:"groupRowRenderer",groupRowRendererParams:"groupRowRendererParams",treeData:[2,"treeData","treeData",v.L39],treeDataChildrenField:"treeDataChildrenField",treeDataParentIdField:"treeDataParentIdField",rowGroupPanelSuppressSort:[2,"rowGroupPanelSuppressSort","rowGroupPanelSuppressSort",v.L39],suppressGroupRowsSticky:[2,"suppressGroupRowsSticky","suppressGroupRowsSticky",v.L39],groupHierarchyConfig:"groupHierarchyConfig",pinnedTopRowData:"pinnedTopRowData",pinnedBottomRowData:"pinnedBottomRowData",enableRowPinning:"enableRowPinning",isRowPinnable:"isRowPinnable",isRowPinned:"isRowPinned",rowModelType:"rowModelType",rowData:"rowData",asyncTransactionWaitMillis:"asyncTransactionWaitMillis",suppressModelUpdateAfterUpdateTransaction:[2,"suppressModelUpdateAfterUpdateTransaction","suppressModelUpdateAfterUpdateTransaction",v.L39],datasource:"datasource",cacheOverflowSize:"cacheOverflowSize",infiniteInitialRowCount:"infiniteInitialRowCount",serverSideInitialRowCount:"serverSideInitialRowCount",suppressServerSideFullWidthLoadingRow:[2,"suppressServerSideFullWidthLoadingRow","suppressServerSideFullWidthLoadingRow",v.L39],cacheBlockSize:"cacheBlockSize",maxBlocksInCache:"maxBlocksInCache",maxConcurrentDatasourceRequests:"maxConcurrentDatasourceRequests",blockLoadDebounceMillis:"blockLoadDebounceMillis",purgeClosedRowNodes:[2,"purgeClosedRowNodes","purgeClosedRowNodes",v.L39],serverSideDatasource:"serverSideDatasource",serverSideSortAllLevels:[2,"serverSideSortAllLevels","serverSideSortAllLevels",v.L39],serverSideEnableClientSideSort:[2,"serverSideEnableClientSideSort","serverSideEnableClientSideSort",v.L39],serverSideOnlyRefreshFilteredGroups:[2,"serverSideOnlyRefreshFilteredGroups","serverSideOnlyRefreshFilteredGroups",v.L39],serverSidePivotResultFieldSeparator:"serverSidePivotResultFieldSeparator",viewportDatasource:"viewportDatasource",viewportRowModelPageSize:"viewportRowModelPageSize",viewportRowModelBufferSize:"viewportRowModelBufferSize",alwaysShowHorizontalScroll:[2,"alwaysShowHorizontalScroll","alwaysShowHorizontalScroll",v.L39],alwaysShowVerticalScroll:[2,"alwaysShowVerticalScroll","alwaysShowVerticalScroll",v.L39],debounceVerticalScrollbar:[2,"debounceVerticalScrollbar","debounceVerticalScrollbar",v.L39],suppressHorizontalScroll:[2,"suppressHorizontalScroll","suppressHorizontalScroll",v.L39],suppressScrollOnNewData:[2,"suppressScrollOnNewData","suppressScrollOnNewData",v.L39],suppressScrollWhenPopupsAreOpen:[2,"suppressScrollWhenPopupsAreOpen","suppressScrollWhenPopupsAreOpen",v.L39],suppressAnimationFrame:[2,"suppressAnimationFrame","suppressAnimationFrame",v.L39],suppressMiddleClickScrolls:[2,"suppressMiddleClickScrolls","suppressMiddleClickScrolls",v.L39],suppressPreventDefaultOnMouseWheel:[2,"suppressPreventDefaultOnMouseWheel","suppressPreventDefaultOnMouseWheel",v.L39],scrollbarWidth:"scrollbarWidth",rowSelection:"rowSelection",cellSelection:"cellSelection",rowMultiSelectWithClick:[2,"rowMultiSelectWithClick","rowMultiSelectWithClick",v.L39],suppressRowDeselection:[2,"suppressRowDeselection","suppressRowDeselection",v.L39],suppressRowClickSelection:[2,"suppressRowClickSelection","suppressRowClickSelection",v.L39],suppressCellFocus:[2,"suppressCellFocus","suppressCellFocus",v.L39],suppressHeaderFocus:[2,"suppressHeaderFocus","suppressHeaderFocus",v.L39],selectionColumnDef:"selectionColumnDef",rowNumbers:"rowNumbers",suppressMultiRangeSelection:[2,"suppressMultiRangeSelection","suppressMultiRangeSelection",v.L39],enableCellTextSelection:[2,"enableCellTextSelection","enableCellTextSelection",v.L39],enableRangeSelection:[2,"enableRangeSelection","enableRangeSelection",v.L39],enableRangeHandle:[2,"enableRangeHandle","enableRangeHandle",v.L39],enableFillHandle:[2,"enableFillHandle","enableFillHandle",v.L39],fillHandleDirection:"fillHandleDirection",suppressClearOnFillReduction:[2,"suppressClearOnFillReduction","suppressClearOnFillReduction",v.L39],sortingOrder:"sortingOrder",accentedSort:[2,"accentedSort","accentedSort",v.L39],unSortIcon:[2,"unSortIcon","unSortIcon",v.L39],suppressMultiSort:[2,"suppressMultiSort","suppressMultiSort",v.L39],alwaysMultiSort:[2,"alwaysMultiSort","alwaysMultiSort",v.L39],multiSortKey:"multiSortKey",suppressMaintainUnsortedOrder:[2,"suppressMaintainUnsortedOrder","suppressMaintainUnsortedOrder",v.L39],icons:"icons",rowHeight:"rowHeight",rowStyle:"rowStyle",rowClass:"rowClass",rowClassRules:"rowClassRules",suppressRowHoverHighlight:[2,"suppressRowHoverHighlight","suppressRowHoverHighlight",v.L39],suppressRowTransform:[2,"suppressRowTransform","suppressRowTransform",v.L39],columnHoverHighlight:[2,"columnHoverHighlight","columnHoverHighlight",v.L39],gridId:"gridId",deltaSort:[2,"deltaSort","deltaSort",v.L39],treeDataDisplayType:"treeDataDisplayType",enableGroupEdit:[2,"enableGroupEdit","enableGroupEdit",v.L39],initialState:"initialState",theme:"theme",loadThemeGoogleFonts:[2,"loadThemeGoogleFonts","loadThemeGoogleFonts",v.L39],themeCssLayer:"themeCssLayer",styleNonce:"styleNonce",themeStyleContainer:"themeStyleContainer",getContextMenuItems:"getContextMenuItems",getMainMenuItems:"getMainMenuItems",postProcessPopup:"postProcessPopup",processUnpinnedColumns:"processUnpinnedColumns",processCellForClipboard:"processCellForClipboard",processHeaderForClipboard:"processHeaderForClipboard",processGroupHeaderForClipboard:"processGroupHeaderForClipboard",processCellFromClipboard:"processCellFromClipboard",sendToClipboard:"sendToClipboard",processDataFromClipboard:"processDataFromClipboard",isExternalFilterPresent:"isExternalFilterPresent",doesExternalFilterPass:"doesExternalFilterPass",getChartToolbarItems:"getChartToolbarItems",createChartContainer:"createChartContainer",focusGridInnerElement:"focusGridInnerElement",navigateToNextHeader:"navigateToNextHeader",tabToNextHeader:"tabToNextHeader",navigateToNextCell:"navigateToNextCell",tabToNextCell:"tabToNextCell",getLocaleText:"getLocaleText",getDocument:"getDocument",paginationNumberFormatter:"paginationNumberFormatter",getGroupRowAgg:"getGroupRowAgg",isGroupOpenByDefault:"isGroupOpenByDefault",ssrmExpandAllAffectsAllRows:[2,"ssrmExpandAllAffectsAllRows","ssrmExpandAllAffectsAllRows",v.L39],initialGroupOrderComparator:"initialGroupOrderComparator",processPivotResultColDef:"processPivotResultColDef",processPivotResultColGroupDef:"processPivotResultColGroupDef",getDataPath:"getDataPath",getChildCount:"getChildCount",getServerSideGroupLevelParams:"getServerSideGroupLevelParams",isServerSideGroupOpenByDefault:"isServerSideGroupOpenByDefault",isApplyServerSideTransaction:"isApplyServerSideTransaction",isServerSideGroup:"isServerSideGroup",getServerSideGroupKey:"getServerSideGroupKey",getBusinessKeyForNode:"getBusinessKeyForNode",getRowId:"getRowId",resetRowDataOnUpdate:[2,"resetRowDataOnUpdate","resetRowDataOnUpdate",v.L39],processRowPostCreate:"processRowPostCreate",isRowSelectable:"isRowSelectable",isRowMaster:"isRowMaster",fillOperation:"fillOperation",postSortRows:"postSortRows",getRowStyle:"getRowStyle",getRowClass:"getRowClass",getRowHeight:"getRowHeight",isFullWidthRow:"isFullWidthRow",isRowValidDropPosition:"isRowValidDropPosition"},outputs:{toolPanelVisibleChanged:"toolPanelVisibleChanged",toolPanelSizeChanged:"toolPanelSizeChanged",columnMenuVisibleChanged:"columnMenuVisibleChanged",contextMenuVisibleChanged:"contextMenuVisibleChanged",cutStart:"cutStart",cutEnd:"cutEnd",pasteStart:"pasteStart",pasteEnd:"pasteEnd",columnVisible:"columnVisible",columnPinned:"columnPinned",columnResized:"columnResized",columnMoved:"columnMoved",columnValueChanged:"columnValueChanged",columnPivotModeChanged:"columnPivotModeChanged",columnPivotChanged:"columnPivotChanged",columnGroupOpened:"columnGroupOpened",newColumnsLoaded:"newColumnsLoaded",gridColumnsChanged:"gridColumnsChanged",displayedColumnsChanged:"displayedColumnsChanged",virtualColumnsChanged:"virtualColumnsChanged",columnEverythingChanged:"columnEverythingChanged",columnsReset:"columnsReset",columnHeaderMouseOver:"columnHeaderMouseOver",columnHeaderMouseLeave:"columnHeaderMouseLeave",columnHeaderClicked:"columnHeaderClicked",columnHeaderContextMenu:"columnHeaderContextMenu",componentStateChanged:"componentStateChanged",cellValueChanged:"cellValueChanged",cellEditRequest:"cellEditRequest",rowValueChanged:"rowValueChanged",cellEditingStarted:"cellEditingStarted",cellEditingStopped:"cellEditingStopped",rowEditingStarted:"rowEditingStarted",rowEditingStopped:"rowEditingStopped",bulkEditingStarted:"bulkEditingStarted",bulkEditingStopped:"bulkEditingStopped",batchEditingStarted:"batchEditingStarted",batchEditingStopped:"batchEditingStopped",undoStarted:"undoStarted",undoEnded:"undoEnded",redoStarted:"redoStarted",redoEnded:"redoEnded",cellSelectionDeleteStart:"cellSelectionDeleteStart",cellSelectionDeleteEnd:"cellSelectionDeleteEnd",rangeDeleteStart:"rangeDeleteStart",rangeDeleteEnd:"rangeDeleteEnd",fillStart:"fillStart",fillEnd:"fillEnd",filterOpened:"filterOpened",filterChanged:"filterChanged",filterModified:"filterModified",filterUiChanged:"filterUiChanged",floatingFilterUiChanged:"floatingFilterUiChanged",advancedFilterBuilderVisibleChanged:"advancedFilterBuilderVisibleChanged",findChanged:"findChanged",chartCreated:"chartCreated",chartRangeSelectionChanged:"chartRangeSelectionChanged",chartOptionsChanged:"chartOptionsChanged",chartDestroyed:"chartDestroyed",cellKeyDown:"cellKeyDown",gridReady:"gridReady",firstDataRendered:"firstDataRendered",gridSizeChanged:"gridSizeChanged",modelUpdated:"modelUpdated",virtualRowRemoved:"virtualRowRemoved",viewportChanged:"viewportChanged",bodyScroll:"bodyScroll",bodyScrollEnd:"bodyScrollEnd",dragStarted:"dragStarted",dragStopped:"dragStopped",dragCancelled:"dragCancelled",stateUpdated:"stateUpdated",paginationChanged:"paginationChanged",rowDragEnter:"rowDragEnter",rowDragMove:"rowDragMove",rowDragLeave:"rowDragLeave",rowDragEnd:"rowDragEnd",rowDragCancel:"rowDragCancel",rowResizeStarted:"rowResizeStarted",rowResizeEnded:"rowResizeEnded",columnRowGroupChanged:"columnRowGroupChanged",rowGroupOpened:"rowGroupOpened",expandOrCollapseAll:"expandOrCollapseAll",pivotMaxColumnsExceeded:"pivotMaxColumnsExceeded",pinnedRowDataChanged:"pinnedRowDataChanged",pinnedRowsChanged:"pinnedRowsChanged",rowDataUpdated:"rowDataUpdated",asyncTransactionsFlushed:"asyncTransactionsFlushed",storeRefreshed:"storeRefreshed",headerFocused:"headerFocused",cellClicked:"cellClicked",cellDoubleClicked:"cellDoubleClicked",cellFocused:"cellFocused",cellMouseOver:"cellMouseOver",cellMouseOut:"cellMouseOut",cellMouseDown:"cellMouseDown",rowClicked:"rowClicked",rowDoubleClicked:"rowDoubleClicked",rowSelected:"rowSelected",selectionChanged:"selectionChanged",cellContextMenu:"cellContextMenu",rangeSelectionChanged:"rangeSelectionChanged",cellSelectionChanged:"cellSelectionChanged",tooltipShow:"tooltipShow",tooltipHide:"tooltipHide",sortChanged:"sortChanged"},features:[p.Jv_([me,de]),p.OA$],decls:0,vars:0,template:function(X,Q){},encapsulation:2})}}return be})();const Ee=new Set(T.KVO);function ue(be,Ve){return Ee.has(be)?""===Ve||"false"!==Ve&&Ve:Ve}let W=(()=>{class be{static{this.\u0275fac=function(X){return new(X||be)}}static{this.\u0275mod=p.$C({type:be})}static{this.\u0275inj=R.G2t({})}}return be})();var Pe=D(1951),j=D(5869);function $(be,Ve){const B={browserColorScheme:"light",fontFamily:"var(--cue-font-family)",fontSize:`var(--cue-font-${be}-size)`,dataFontSize:`var(--cue-font-${be}-size)`,headerFontSize:`var(--cue-font-${be}-size)`,backgroundColor:"transparent",foregroundColor:"blue",textColor:"var(--cue-text-primary)",borderColor:"transparent",rowHeight:`var(--cue-table-${be}-row-height)`,headerHeight:`var(--cue-table-${be}-header-height)`,headerColumnResizeHandleColor:"var(--cue-table-secondary-text-color)",headerColumnResizeHandleWidth:1,columnBorder:!1,wrapperBorder:!0,headerRowBorder:!1,rowBorder:{style:"solid",width:1,color:"var(--cue-table-border-color)"},headerBackgroundColor:"transparent",headerTextColor:"var(--cue-table-header-foreground-color)",menuBackgroundColor:"var(--cue-menu-background-color)",menuBorder:"1px solid var(--cue-border-color)",menuTextColor:"var(--cue-menu-foreground-color)",borderRadius:"var(--cue-menu-border-radius)",inputBackgroundColor:"var(--cue-menu-item-background-color)",inputFocusBackgroundColor:"var(--cue-menu-item-focus-background-color)",inputIconColor:"var(--cue-menu-foreground-color)",pickerButtonFocusBackgroundColor:"var(--cue-menu-item-focus-background-color)",pickerListBackgroundColor:"var(--cue-menu-background-color)",selectCellBackgroundColor:"var(--cue-menu-background-color)",pinnedRowBackgroundColor:"var(--cue-table-selected-color)",pinnedRowTextColor:"var(--cue-table-selected-text-color)",panelBackgroundColor:"var(--cue-menu-background-color)",tabBackgroundColor:"var(--cue-menu-background-color)",tooltipBackgroundColor:"var(--cue-menu-background-color)",tooltipTextColor:"var(--cue-menu-foreground-color)",checkboxUncheckedBorderColor:"var(--cue-border-color)",checkboxCheckedBorderColor:"var(--cue-border-color)",checkboxIndeterminateBorderColor:"var(--cue-border-color)",rowHoverColor:"var(--cue-table-row-hover-bg)"};return Ve&&(B.selectedRowBackgroundColor="var(--cue-table-selected-color)"),T.r$M.withParams(B).withPart(q)}const q=(0,T.JuG)({type:"image",mask:!0,icons:{filter:{svg:j.filter}}});var ne=D(9615),he=D(5970),J=D(5381),ie=D(2245),ee=D(1696),xe=D(3319),ve=D(2444);const Be=(be,Ve,B)=>({startIndex:be,endIndex:Ve,totalItems:B});function He(be,Ve){if(1&be){const B=p.RV6();p.j41(0,"cue-flexcontainer",3)(1,"cue-typography",4),p.EFF(2),p.nI1(3,"transloco"),p.k0s(),p.j41(4,"cue-select",5),p.mxI("valueChange",function(Q){R.eBV(B);const ye=p.XpG();return p.DH7(ye.pageSize,Q)||(ye.pageSize=Q),R.Njj(Q)}),p.k0s()(),p.nrm(5,"span",6)}if(2&be){const B=p.XpG();p.R7$(),p.Y8G("noWrap",!0),p.R7$(),p.JRh(p.bMT(3,5,"components.paginator.itemsPerPage")),p.R7$(2),p.R50("value",B.pageSize),p.Y8G("options",B.pageSizeOptions())("underline",!1)}}function Ye(be,Ve){if(1&be){const B=p.RV6();p.j41(0,"cue-button",7),p.bIt("click",function(){R.eBV(B);const Q=p.XpG();return R.Njj(Q.first())}),p.nrm(1,"cue-button-icon",8),p.k0s(),p.j41(2,"cue-button",7),p.bIt("click",function(){R.eBV(B);const Q=p.XpG();return R.Njj(Q.back())}),p.nrm(3,"cue-button-icon",9),p.k0s()}}function Ze(be,Ve){if(1&be){const B=p.RV6();p.j41(0,"cue-button",7),p.bIt("click",function(){R.eBV(B);const Q=p.XpG();return R.Njj(Q.next())}),p.nrm(1,"cue-button-icon",10),p.k0s(),p.j41(2,"cue-button",7),p.bIt("click",function(){R.eBV(B);const Q=p.XpG();return R.Njj(Q.last())}),p.nrm(3,"cue-button-icon",11),p.k0s()}}let at=(()=>{class be{pageSizeOptions=(0,v.hFB)([5,10,25,100]);size=(0,v.hFB)(111);pageSize=(0,v.geq)(10);menuPosition=(0,v.hFB)("topright");autoAdjust=(0,v.hFB)(!0);currentPage=(0,v.CGW)();_startIndex=(0,R.vPA)(0);_endIndex=(0,R.vPA)(0);anythingToPaginate=(0,E.EW)(()=>{const B=this.adjustedPageSizeOptions()[this.adjustedPageSizeOptions().length-1];return this.size()>B});startIndex=(0,E.EW)(()=>this._startIndex()+1);endIndex=(0,E.EW)(()=>Math.min(this._endIndex(),this.size()));isFirstPage=(0,E.EW)(()=>0===this._startIndex());isLastPage=(0,E.EW)(()=>this._endIndex()>=this.size());adjustedPageSizeOptions=(0,E.EW)(()=>{let B=this.pageSizeOptions();if(!this.autoAdjust())return B;const X=B[B.length-1],Q=this.size();return Q<X&&(B=B.filter(ye=>ye<=Q),B.length||(B=[Q])),B});constructor(){(0,R.QZP)(()=>{this._resetPagination()}),(0,R.QZP)(()=>{this.currentPage.emit({startIndex:this._startIndex(),endIndex:this._endIndex(),pageSize:this.pageSize()})})}setSize(B){this.pageSize.set(B),this._resetPagination()}next(){const B=this._endIndex();this._startIndex.set(B),this._endIndex.set(B+this.pageSize())}back(){const B=Math.max(0,this._startIndex()-this.pageSize());this._startIndex.set(B),this._endIndex.set(B+this.pageSize())}first(){this._startIndex.set(0),this._endIndex.set(this.pageSize())}last(){const B=Math.max(0,this.size()-(this.size()%this.pageSize()||this.pageSize()));this._startIndex.set(B),this._endIndex.set(this.size())}_resetPagination(){this._startIndex.set(0),this._endIndex.set(Math.min(this.pageSize(),this.size()))}static \u0275fac=function(X){return new(X||be)};static \u0275cmp=p.VBU({type:be,selectors:[["cue-paginator"]],inputs:{pageSizeOptions:[1,"pageSizeOptions"],size:[1,"size"],pageSize:[1,"pageSize"],menuPosition:[1,"menuPosition"],autoAdjust:[1,"autoAdjust"]},outputs:{pageSize:"pageSizeChange",currentPage:"currentPage"},decls:8,vars:11,consts:[["direction","row","justify","end","align","center",1,"paginator",2,"width","calc(100% - 4px)","padding","0 2px"],["size","s"],["direction","row","gap","s"],["direction","row","gap","s","align","center"],["size","s",3,"noWrap"],["size","xs","menuPosition","topright",3,"valueChange","value","options","underline"],[2,"flex","1"],["size","xs","variant","tertiary",3,"click"],["icon","paginator-first"],["icon","paginator-back"],["icon","paginator-next"],["icon","paginator-last"]],template:function(X,Q){1&X&&(p.j41(0,"cue-flexcontainer",0),p.nVh(1,He,6,7),p.j41(2,"cue-typography",1),p.EFF(3),p.nI1(4,"transloco"),p.k0s(),p.j41(5,"cue-flexcontainer",2),p.nVh(6,Ye,4,0),p.nVh(7,Ze,4,0),p.k0s()()),2&X&&(p.R7$(),p.vxM(!Q.autoAdjust()||Q.anythingToPaginate()?1:-1),p.R7$(2),p.JRh(p.i5U(4,4,"components.paginator.currentDisplay",p.sMw(7,Be,Q.startIndex(),Q.endIndex(),Q.size()))),p.R7$(3),p.vxM(Q.isFirstPage()?-1:6),p.R7$(),p.vxM(Q.isLastPage()?-1:7))},dependencies:[J.n,ie.o,ee.$,xe.a,ve.l,L.Kj],styles:[".paginator[_ngcontent-%COMP%]{color:var(--cue-paginator-text-color);padding-top:3px;padding-bottom:3px}"],changeDetection:0})}return be})();function dt(be,Ve){if(1&be){const B=p.RV6();p.j41(0,"ag-grid-angular",4),p.bIt("gridReady",function(Q){R.eBV(B);const ye=p.XpG();return R.Njj(ye.onGridReady(Q))})("selectionChanged",function(Q){R.eBV(B);const ye=p.XpG();return R.Njj(ye.onSelectionChanged(Q))})("cellValueChanged",function(Q){R.eBV(B);const ye=p.XpG();return R.Njj(ye.onCellValueChanged(Q))})("filterChanged",function(){R.eBV(B);const Q=p.XpG();return R.Njj(Q.onFilterChanged())})("modelUpdated",function(){R.eBV(B);const Q=p.XpG();return R.Njj(Q.onModelUpdated())}),p.k0s()}if(2&be){const B=p.XpG();p.Aen(B.style()),p.HbH("ag-theme-custom ag-theme-custom-"+B.size()),p.Y8G("rowData",B.rowData())("columnDefs",B.columnDefs())("gridOptions",B.gridOptionsInternal())("pagination",!0)("paginationPageSize",B.paginationPageSize())("suppressPaginationPanel",!0)("rowSelection",B.rowSelection())("enableCellTextSelection",B.enableCellTextSelection())("ensureDomOrder",!0)}}function Ct(be,Ve){if(1&be&&(p.j41(0,"div",5)(1,"div",6),p.nrm(2,"div",7),p.j41(3,"span"),p.EFF(4,"Loading grid..."),p.k0s()()()),2&be){const B=p.XpG();p.Aen(B.style())}}function jt(be,Ve){if(1&be){const B=p.RV6();p.nrm(0,"div",8),p.j41(1,"cue-paginator",9),p.mxI("pageSizeChange",function(Q){R.eBV(B);const ye=p.XpG();return p.DH7(ye.paginationPageSize,Q)||(ye.paginationPageSize=Q),R.Njj(Q)}),p.bIt("currentPage",function(Q){R.eBV(B);const ye=p.XpG();return R.Njj(ye.onPageChange(Q))}),p.k0s()}if(2&be){const B=p.XpG();p.R7$(),p.Y8G("size",B.totalRowCount()),p.R50("pageSize",B.paginationPageSize)}}T.syG.registerModules([T.JKr]);let Lt=(()=>{class be{rowData=(0,v.hFB)([]);columnDefs=(0,v.hFB)([]);gridOptions=(0,v.hFB)({});size=(0,v.hFB)("m");rowSelection=(0,v.hFB)(void 0);height=(0,v.hFB)(null);paginationPageSize=(0,v.geq)(10);showPaginator=(0,v.hFB)(!0);enableCellTextSelection=(0,v.hFB)(!0);noRowsText=(0,v.hFB)("No rows to display");overlaySettings=(0,v.hFB)(new Pe.K);overlayActions=(0,v.hFB)([]);selectedRows=(0,v.CGW)();hoveredCell=(0,v.CGW)();cellValueChanged=(0,v.CGW)();visibleRows=(0,v.CGW)();gridApiReady=(0,v.CGW)();_filteredRowCount=(0,R.vPA)(0);totalRowCount=(0,E.EW)(()=>this._filteredRowCount()||this.rowData().length);clickableRows=(0,E.EW)(()=>"singleRow"===this.rowSelection()?.mode);bgColor=(0,R.vPA)("transparent");_stylesLoaded=(0,R.vPA)(!1);gridApi;_hostEl=(0,R.WQX)(p.aKT);constructor(){this.setAgGridCssProperties(),(0,R.QZP)(()=>{const B=this.noRowsText(),X=this.rowData();this.gridApi&&(this.gridApi.setGridOption("overlayNoRowsTemplate",B),0===X.length?(this.gridApi.hideOverlay(),setTimeout(()=>{this.gridApi.showNoRowsOverlay()},0)):this.gridApi.hideOverlay())}),(0,R.QZP)(()=>{const B=this._localeText();this.gridApi&&B&&Object.keys(B).length>0&&(this.gridApi.setGridOption("localeText",B),this.gridApi.refreshHeader(),this.gridApi.getColumns()?.forEach(X=>{this.gridApi.destroyFilter(X)}))}),(0,R.QZP)(()=>{this.size(),this.setAgGridCssProperties()}),(0,R.QZP)(()=>{this.columnDefs(),this.gridApi&&setTimeout(()=>{this.gridApi&&this.gridApi.refreshCells({force:!0})},0)}),this._onScroll=()=>{this.overlayVisible.set(!1),this.currentCellData.set(null)},window.addEventListener("scroll",this._onScroll,!0),this._onHideCellOverlay=()=>{this.overlayVisible.set(!1),this.currentCellData.set(null)},window.addEventListener("cue-hide-cell-overlay",this._onHideCellOverlay),this._visibilityObserver=new IntersectionObserver(B=>{0===B[0]?.intersectionRatio&&(this.overlayVisible.set(!1),this.currentCellData.set(null))}),this._visibilityObserver.observe(this._hostEl.nativeElement)}_onScroll;_onHideCellOverlay;_visibilityObserver;onGridReady(B){this.gridApi=B.api,this.gridApiReady.emit(B.api);const X=this._localeText();X&&Object.keys(X).length>0&&this.gridApi.setGridOption("localeText",X),this._updateFilteredRowCount(),B.api.addEventListener("filterChanged",()=>{this._updateFilteredRowCount()}),this.initializeGridLayout()}setAgGridCssProperties(){const B=this.size(),X=this._hostEl.nativeElement,ye={xs:{rowHeight:"32px",headerHeight:"36px",fontSize:"12px"},s:{rowHeight:"36px",headerHeight:"42px",fontSize:"13px"},m:{rowHeight:"42px",headerHeight:"48px",fontSize:"14px"},l:{rowHeight:"48px",headerHeight:"54px",fontSize:"16px"},xl:{rowHeight:"54px",headerHeight:"60px",fontSize:"18px"}}[B];X.style.setProperty("--ag-row-height",ye.rowHeight),X.style.setProperty("--ag-header-height",ye.headerHeight),X.style.setProperty("--ag-font-size",ye.fontSize),this._stylesLoaded.set(!0)}initializeGridLayout(){this.gridApi&&requestAnimationFrame(()=>{this.gridApi&&(this.gridApi.refreshCells({force:!0}),this.gridApi.sizeColumnsToFit(),this.gridApi.dispatchEvent({type:"gridSizeChanged"}))})}onSelectionChanged(B){const X=B.api.getSelectedRows();this.selectedRows.emit(X),this.overlayVisible.set(!1)}onCellValueChanged(B){if(this.cellValueChanged.emit(B),this.gridApi){const X=this.gridApi.getSelectedRows(),Q=B.node;X.some(We=>We===Q.data)&&this.selectedRows.emit(X)}}onFilterChanged(){this._emitVisibleRows()}onModelUpdated(){this._emitVisibleRows()}_emitVisibleRows(){if(this.gridApi){const B=[];this.gridApi.forEachNodeAfterFilter(X=>{B.push(X.data)}),this.visibleRows.emit(B)}}onPageChange(B){if(this.gridApi){const X=Math.floor(B.startIndex/B.pageSize);this.gridApi.paginationGoToPage(X)}}_transloco=(0,R.WQX)(L.JO);_localeText=(0,K.ot)(this._transloco.selectTranslateObject("components.agGrid.localeText"),{initialValue:{}});gridOptionsInternal=(0,E.EW)(()=>{const B=this.size(),X=this.clickableRows(),Q=this.noRowsText(),ye=this.enableCellTextSelection(),We=this.gridOptions();return{theme:$(B,X),overlayNoRowsTemplate:Q,enableCellTextSelection:ye,...X?{getRowStyle:()=>({cursor:"pointer"})}:{},processDataFromClipboard:Qe=>Qe.data,processCellFromClipboard:Qe=>Qe.value,...We}});ngOnDestroy(){this._onScroll&&window.removeEventListener("scroll",this._onScroll,!0),this._onHideCellOverlay&&window.removeEventListener("cue-hide-cell-overlay",this._onHideCellOverlay),this._visibilityObserver&&this._visibilityObserver.disconnect()}style=(0,E.EW)(()=>({height:this.height()??`var(--cue-table-${this.size()}-height)`}));_updateFilteredRowCount(){if(this.gridApi){const B=this.gridApi.getDisplayedRowCount();this._filteredRowCount.set(B)}}copyToClipboard(){this.gridApi&&this.gridApi.copySelectedRowsToClipboard()}copySelectedRangeToClipboard(){this.gridApi&&this.gridApi.copySelectedRangeToClipboard()}selectAll(){this.gridApi&&this.gridApi.selectAll()}deselectAll(){this.gridApi&&this.gridApi.deselectAll()}overlayVisible=(0,R.vPA)(!1);overlayPosition=(0,R.vPA)(null);currentCellData=(0,R.vPA)(null);onGridMouseOver(B){const X=B.target,Q=this.overlaySettings().mode;"none"!==Q&&("cell"===Q?this.handleCellHover(X):"row"===Q&&this.handleRowHover(X))}onGridMouseOut(B){const X=B.target,Q=this.overlaySettings().mode,ye=B.relatedTarget;if("none"===Q)return;const We=document.querySelector(".overlay-container");if(We&&ye&&We.contains(ye))return;const st=B.currentTarget,Qe=!X.closest(".ag-row")&&!X.closest(".ag-cell"),vt=ye&&st.contains(ye)&&!ye.closest(".ag-row")&&!ye.closest(".ag-cell")&&!ye.closest(".cue-paginator");if(Qe||vt)return this.overlayVisible.set(!1),void this.currentCellData.set(null);"cell"===Q?X.closest(".ag-cell")||(this.overlayVisible.set(!1),this.currentCellData.set(null)):"row"===Q&&(X.closest(".ag-row")||(this.overlayVisible.set(!1),this.currentCellData.set(null)))}handleCellHover(B){this.overlayVisible.set(!1),this.currentCellData.set(null);const X=B.closest(".ag-cell");if(X&&this.gridApi){const Q=X.getBoundingClientRect(),ye=X.closest(".ag-row");if(ye){const We=parseInt(ye.getAttribute("row-index")||"0",10),st=X.getAttribute("col-id");if(null!==st){const Qe=this.gridApi.getDisplayedRowAtIndex(We),vt=this.gridApi.getColumn(st);if(Qe&&vt){const Bt={rowData:Qe.data,colDef:vt.getColDef(),value:Qe.data[st],rowIndex:We,columnIndex:vt.getInstanceId()||0,cellRect:Q};this.currentCellData.set(Bt),this.overlayPosition.set({x:Q.left,y:Q.top,width:Q.width,height:Q.height}),this.hoveredCell.emit(Bt),this.overlayVisible.set(!0)}}}}}handleRowHover(B){this.overlayVisible.set(!1),this.currentCellData.set(null);const X=B.closest(".ag-row");if(X&&this.gridApi){const Q=parseInt(X.getAttribute("row-index")||"0",10),ye=this.gridApi.getDisplayedRowAtIndex(Q);if(ye){const We=X.getBoundingClientRect(),st=X.querySelector(".ag-cell:last-child"),Qe=st?st.getBoundingClientRect():We,vt=this.columnDefs()[0]?.field||"",Bt=this.gridApi.getColumn(vt),ri={rowData:ye.data,colDef:Bt?.getColDef()||{},value:ye.data[vt],rowIndex:Q,columnIndex:0,cellRect:Qe};this.currentCellData.set(ri),this.overlayPosition.set({x:Qe.left,y:Qe.top,width:Qe.width,height:Qe.height}),this.overlayVisible.set(!0)}}}handleOverlayAction(B){const X=this.currentCellData();X&&(B(X),this.overlayVisible.set(!1))}onOverlayVisibilityChange(B){this.overlayVisible.set(B)}onContainerResize(){this.gridApi&&this.gridApi.sizeColumnsToFit()}static \u0275fac=function(X){return new(X||be)};static \u0275cmp=p.VBU({type:be,selectors:[["cue-ag-grid"]],inputs:{rowData:[1,"rowData"],columnDefs:[1,"columnDefs"],gridOptions:[1,"gridOptions"],size:[1,"size"],rowSelection:[1,"rowSelection"],height:[1,"height"],paginationPageSize:[1,"paginationPageSize"],showPaginator:[1,"showPaginator"],enableCellTextSelection:[1,"enableCellTextSelection"],noRowsText:[1,"noRowsText"],overlaySettings:[1,"overlaySettings"],overlayActions:[1,"overlayActions"]},outputs:{paginationPageSize:"paginationPageSizeChange",selectedRows:"selectedRows",hoveredCell:"hoveredCell",cellValueChanged:"cellValueChanged",visibleRows:"visibleRows",gridApiReady:"gridApiReady"},decls:5,vars:11,consts:[["cueResized","",1,"grid-container",3,"mouseover","mouseout","cueBgColor","resized"],[3,"class","style","rowData","columnDefs","gridOptions","pagination","paginationPageSize","suppressPaginationPanel","rowSelection","enableCellTextSelection","ensureDomOrder"],[1,"grid-loading-placeholder",3,"style"],[3,"visibilityChange","settings","visible","menuItems","positionConfig","data","bgColor","containerEl"],[3,"gridReady","selectionChanged","cellValueChanged","filterChanged","modelUpdated","rowData","columnDefs","gridOptions","pagination","paginationPageSize","suppressPaginationPanel","rowSelection","enableCellTextSelection","ensureDomOrder"],[1,"grid-loading-placeholder"],[1,"loading-content"],[1,"loading-spinner"],[2,"height","20px"],[1,"cue-paginator",3,"pageSizeChange","currentPage","size","pageSize"]],template:function(X,Q){1&X&&(p.j41(0,"div",0),p.bIt("mouseover",function(We){return Q.onGridMouseOver(We)})("mouseout",function(We){return Q.onGridMouseOut(We)})("cueBgColor",function(We){return Q.bgColor.set(We)})("resized",function(){return Q.onContainerResize()}),p.nVh(1,dt,1,13,"ag-grid-angular",1)(2,Ct,5,2,"div",2),p.j41(3,"cue-cell-overlay",3),p.bIt("visibilityChange",function(We){return Q.onOverlayVisibilityChange(We)}),p.k0s(),p.nVh(4,jt,2,2),p.k0s()),2&X&&(p.AVh("styles-loading",!Q._stylesLoaded()),p.R7$(),p.vxM(Q._stylesLoaded()?1:2),p.R7$(2),p.Y8G("settings",Q.overlaySettings())("visible",Q.overlayVisible())("menuItems",Q.overlayActions())("positionConfig",Q.overlayPosition())("data",Q.currentCellData())("bgColor",Q.bgColor())("containerEl",Q._hostEl.nativeElement),p.R7$(),p.vxM(Q.rowData().length&&Q.showPaginator()?4:-1))},dependencies:[W,Se,at,Pe.X,ne.k,he.C],styles:[".cell-overlay-panel[_ngcontent-%COMP%]{z-index:1}.cell-overlay-panel[_ngcontent-%COMP%] .overlay-container[_ngcontent-%COMP%]{height:100%;width:100%}.grid-container[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;display:flex;flex-direction:column;z-index:1;min-height:0}.grid-container.styles-loading[_ngcontent-%COMP%]{opacity:.9}.grid-container[_ngcontent-%COMP%]:not(.styles-loading){opacity:1}.grid-loading-placeholder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;min-height:200px;background:transparent}.grid-loading-placeholder[_ngcontent-%COMP%] .loading-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--cue-color-text-secondary, #666)}.grid-loading-placeholder[_ngcontent-%COMP%] .loading-content[_ngcontent-%COMP%] .loading-spinner[_ngcontent-%COMP%]{width:24px;height:24px;border:2px solid var(--cue-color-border, #e0e0e0);border-top:2px solid var(--cue-color-primary, #007bff);border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite}.grid-loading-placeholder[_ngcontent-%COMP%] .loading-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-family:var(--cue-font-family, sans-serif)}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} .ag-theme-custom{height:100%;width:100%;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;--ag-row-height: var(--cue-table-m-row-height, 42px);--ag-header-height: var(--cue-table-m-header-height, 48px);--ag-font-size: var(--cue-font-m-size, 14px);--ag-font-family: var(--cue-font-family, sans-serif)} .ag-theme-custom.ag-theme-custom-xs{--ag-row-height: var(--cue-table-xs-row-height, 32px);--ag-header-height: var(--cue-table-xs-header-height, 36px);--ag-font-size: var(--cue-font-xs-size, 12px)} .ag-theme-custom.ag-theme-custom-s{--ag-row-height: var(--cue-table-s-row-height, 36px);--ag-header-height: var(--cue-table-s-header-height, 42px);--ag-font-size: var(--cue-font-s-size, 13px)} .ag-theme-custom.ag-theme-custom-m{--ag-row-height: var(--cue-table-m-row-height, 42px);--ag-header-height: var(--cue-table-m-header-height, 48px);--ag-font-size: var(--cue-font-m-size, 14px)} .ag-theme-custom.ag-theme-custom-l{--ag-row-height: var(--cue-table-l-row-height, 48px);--ag-header-height: var(--cue-table-l-header-height, 54px);--ag-font-size: var(--cue-font-l-size, 16px)} .ag-theme-custom.ag-theme-custom-xl{--ag-row-height: var(--cue-table-xl-row-height, 54px);--ag-header-height: var(--cue-table-xl-header-height, 60px);--ag-font-size: var(--cue-font-xl-size, 18px)} .ag-theme-custom .ag-root-wrapper{display:flex;flex-direction:column;flex:1 1 auto;min-height:0} .ag-theme-custom .ag-root-wrapper-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0} .ag-theme-custom .ag-root{display:flex;flex-direction:column;flex:1 1 auto;min-height:0} .ag-theme-custom .ag-body{flex:1 1 auto;min-height:0} .ag-theme-custom .ag-body-viewport{flex:1 1 auto;min-height:0;overflow-y:auto} .ag-theme-custom .ag-body-viewport-wrapper{flex:1 1 auto;min-height:0} .ag-theme-custom .ag-body-horizontal-scroll{flex-shrink:0} .ag-theme-custom .ag-header{position:sticky;top:0;z-index:2;background:inherit;flex-shrink:0} .ag-theme-custom .ag-floating-top{flex-shrink:0} .ag-theme-custom .ag-floating-bottom{flex-shrink:0} .ag-theme-custom .ag-status-bar{flex-shrink:0} .ag-theme-custom .ag-paging-panel{flex-shrink:0} .ag-row .ag-cell{display:flex;justify-content:flex-start;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .ag-cell-wrapper{display:flex;align-items:center;justify-content:inherit;flex:1;min-width:0;width:100%} .ag-cell-value{display:flex;align-items:center;justify-content:inherit;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:text;user-select:text} .ag-cell.ag-cell-range-selected .ag-cell-value, .ag-cell.ag-cell-focus .ag-cell-value{white-space:normal;word-wrap:break-word;overflow-wrap:break-word} .ag-picker-field-wrapper, .ag-list-item{color:var(--cue-menu-foreground-color)!important} .ag-row.ag-row-selected .ag-cell, .ag-row.ag-row-selected .ag-cell .ag-cell-value{color:var(--cue-table-selected-text-color)!important} .ag-row:hover .ag-cell, .ag-row:hover .ag-cell .ag-cell-value{color:var(--cue-table-highlight-text-color)!important} .ag-row.ag-row-selected:hover .ag-cell, .ag-row.ag-row-selected:hover .ag-cell .ag-cell-value{color:var(--cue-table-selected-text-color)!important} .ag-cell:focus, .ag-cell.ag-cell-focus{border:none!important;outline:none!important} .ag-cell.ag-cell-range-selected{border:none!important;background-color:transparent!important} .ag-cell.ag-cell-range-single-cell{border:none!important;background-color:transparent!important} .header-align-left .ag-header-cell-label{justify-content:flex-start} .header-align-center .ag-header-cell-label{justify-content:center} .header-align-right .ag-header-cell-label{justify-content:flex-end} .cue-paginator{position:sticky;bottom:0;z-index:2;background:inherit;flex-shrink:0;margin-top:auto}"],changeDetection:0})}return be})()},1951(qe,Ce,D){"use strict";D.d(Ce,{K:()=>Ee,X:()=>ue});var v=D(7705),R=D(5802),E=D(2271),p=D(6939),K=D(63),L=D(6279),T=D(356),H=D(6117),U=D(29),I=D(3319),Z=D(1696),F=D(5547);const de=(W,Pe)=>Pe.label;function le(W,Pe){if(1&W&&F.nrm(0,"cue-svg-icon",10),2&W){const j=F.XpG().$implicit;F.Y8G("name",j.icon)}}function we(W,Pe){if(1&W){const j=F.RV6();F.j41(0,"cue-menu-item",9),F.bIt("click",function(q){const ne=R.eBV(j).$implicit,he=F.XpG(3);return R.Njj(he.handleClick(q,ne))}),F.nVh(1,le,1,1,"cue-svg-icon",10),F.EFF(2),F.k0s()}if(2&W){const j=Pe.$implicit;F.R7$(),F.vxM(j.icon?1:-1),F.R7$(),F.SpI("",j.label," ")}}function me(W,Pe){if(1&W){const j=F.RV6();F.j41(0,"cue-menu",5,0)(2,"cue-button",6,1),F.bIt("click",function(){R.eBV(j);const q=F.XpG(2);return R.Njj(q.onMenuButtonClick())}),F.nrm(4,"cue-button-icon",7),F.k0s(),F.j41(5,"cue-menu-wrap",8),F.bIt("click",function(q){R.eBV(j);const ne=F.XpG(2);return R.Njj(ne.onMenuItemContainerClick(q))}),F.Z7z(6,we,3,2,"cue-menu-item",null,de),F.k0s()()}if(2&W){const j=F.XpG(2);F.R7$(2),F.Y8G("variant",j.settings().buttonVariant)("size",j.settings().buttonSize),F.R7$(2),F.Y8G("icon",j.settings().buttonIcon),F.R7$(2),F.Dyx(j.menuItems())}}function Se(W,Pe){if(1&W){const j=F.RV6();F.j41(0,"div",3),F.bIt("mouseleave",function(){R.eBV(j);const q=F.XpG();return R.Njj(q.onMouseLeave())})("wheel",function(q){R.eBV(j);const ne=F.XpG();return R.Njj(ne.onWheel(q))})("scroll",function(q){R.eBV(j);const ne=F.XpG();return R.Njj(ne.onScroll(q))}),F.j41(1,"div",4),F.nVh(2,me,8,3,"cue-menu",5),F.k0s()()}if(2&W){const j=F.XpG();F.Aen(j.containerStyles()),F.R7$(2),F.vxM(j.visible()?2:-1)}}class Ee{mode="none";buttonIcon="more-vert";buttonVariant="accent";buttonSize="xs"}let ue=(()=>{class W{portal;overlay=(0,R.WQX)(K.hJ);overlayRef=null;visible=(0,v.hFB)(!1);data=(0,v.hFB)(null);settings=(0,v.hFB)(new Ee);menuItems=(0,v.hFB)([]);positionConfig=(0,v.hFB)(null);bgColor=(0,v.hFB)("transparent");containerEl=(0,v.hFB)(null);visibilityChange=(0,v.CGW)();_globalMouseTracker=null;_isMenuOpen=!1;containerStyles=(0,E.EW)(()=>`\n pointer-events: none; \n background: linear-gradient(to left, ${this.bgColor()} 20px, transparent 100%);\n height: 100%;\n width: 100%;\n `);constructor(){(0,R.QZP)(()=>{const j=this.positionConfig();this.visible()&&j?(this.attachOverlay(j),this.startGlobalMouseTracking(j)):(this.detachOverlay(),this.stopGlobalMouseTracking())})}ngOnDestroy(){this.stopGlobalMouseTracking(),this.detachOverlay()}startGlobalMouseTracking(j){this.stopGlobalMouseTracking();let $=0;this._globalMouseTracker=ne=>{const he=Date.now();if(he-$<50)return;$=he;const J=ne.clientX,ie=ne.clientY;!(J>=j.x-10&&J<=j.x+j.width+10&&ie>=j.y-10&&ie<=j.y+j.height+10)&&!this._isMenuOpen&&setTimeout(()=>{this.visibilityChange.emit(!1)},100)},this._globalMouseTracker&&document.addEventListener("mousemove",this._globalMouseTracker,{passive:!0})}stopGlobalMouseTracking(){this._globalMouseTracker&&(document.removeEventListener("mousemove",this._globalMouseTracker),this._globalMouseTracker=null)}attachOverlay(j){const $=this.adjustForPaginator(j);if(!this.overlayRef){const ne=this.overlay.position().flexibleConnectedTo({x:$.x,y:$.y,width:$.width,height:$.height}).withPositions([{originX:"start",originY:"top",overlayX:"start",overlayY:"top"}]).withPush(!1);this.overlayRef=this.overlay.create({positionStrategy:ne,width:$.width,height:$.height,hasBackdrop:!1,panelClass:["cell-overlay-panel"],scrollStrategy:this.overlay.scrollStrategies.noop()})}const q=this.overlay.position().flexibleConnectedTo({x:$.x,y:$.y,width:$.width,height:$.height}).withPositions([{originX:"start",originY:"top",overlayX:"start",overlayY:"top"}]).withPush(!1);this.overlayRef.updatePositionStrategy(q),this.overlayRef.updateSize({width:$.width,height:$.height}),this.overlayRef.hasAttached()||(this.overlayRef.attach(this.portal),setTimeout(()=>{const ne=this.overlayRef?.overlayElement;ne&&(ne.style.pointerEvents="none",ne.style.setProperty("pointer-events","none","important"))},0))}detachOverlay(){this.overlayRef&&this.overlayRef.hasAttached()&&this.overlayRef.detach()}adjustForPaginator(j){let $={...j};const q=this.containerEl()??document.documentElement,ne=q.querySelector(".ag-header");if(ne){const J=ne.getBoundingClientRect();if($.y<J.bottom){const ee=Math.max(0,$.y+$.height-J.bottom),xe=Math.max($.y,J.bottom);if(ee<10)return{...$,height:0};$={...$,y:xe,height:ee}}}const he=q.querySelector(".cue-paginator");if(he){const J=he.getBoundingClientRect();if($.y+$.height>J.top){const ee=Math.max(0,J.top-$.y);if(ee<10)return{...$,height:0};$={...$,height:ee}}}return $}handleClick(j,$){j.stopPropagation(),this._isMenuOpen=!1,$.action(this.data()),this.detachOverlay(),this.stopGlobalMouseTracking(),this.visibilityChange.emit(!1)}onMouseLeave(){this._isMenuOpen||(this.stopGlobalMouseTracking(),this.visibilityChange.emit(!1))}onWheel(j){return!0}onScroll(j){return!0}onMenuButtonClick(){this._isMenuOpen=!0,setTimeout(()=>{const j=$=>{const q=$.target;!q.closest("cue-menu-wrap")&&!q.closest("cue-button")&&(this._isMenuOpen=!1,document.removeEventListener("click",j))};document.addEventListener("click",j,{capture:!0})},0)}onMenuItemContainerClick(j){this._isMenuOpen=!1}static \u0275fac=function($){return new($||W)};static \u0275cmp=F.VBU({type:W,selectors:[["cue-cell-overlay"]],viewQuery:function($,q){if(1&$&&F.GBs(p.bV,5),2&$){let ne;F.mGM(ne=F.lsd())&&(q.portal=ne.first)}},inputs:{visible:[1,"visible"],data:[1,"data"],settings:[1,"settings"],menuItems:[1,"menuItems"],positionConfig:[1,"positionConfig"],bgColor:[1,"bgColor"],containerEl:[1,"containerEl"]},outputs:{visibilityChange:"visibilityChange"},decls:1,vars:0,consts:[["menu",""],["trigger",""],["cdkPortal",""],[1,"overlay-container",3,"mouseleave","wheel","scroll"],[1,"overlay-content"],["positioning","bottomleft"],["trigger","",3,"click","variant","size"],[3,"icon"],["menu","",3,"click"],[3,"click"],["before","",3,"name"]],template:function($,q){1&$&&F.DNE(0,Se,3,3,"ng-template",2)},dependencies:[p.jc,p.bV,K.z_,H.W,U.A,Z.$,I.a,T.M,L.D],styles:["[_nghost-%COMP%] .cell-overlay-panel{pointer-events:none!important}.overlay-container[_ngcontent-%COMP%]{pointer-events:auto;display:flex;align-items:center;justify-content:flex-end;padding:0 8px;box-sizing:border-box;height:100%;width:100%}.overlay-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;pointer-events:auto}"],changeDetection:0})}return W})()},5448(qe,Ce,D){"use strict";D.d(Ce,{L:()=>K});var v=D(7705),R=D(2245),E=D(5547);const p=["*"];let K=(()=>{class L{fontSize=(0,v.hFB)("m");italic=(0,v.hFB)(!1);noWrap=(0,v.hFB)(!0);static \u0275fac=function(U){return new(U||L)};static \u0275cmp=E.VBU({type:L,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:p,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function(U,I){1&U&&(E.NAR(),E.j41(0,"div")(1,"cue-typography",0),E.SdG(2),E.k0s()()),2&U&&(E.R7$(),E.Y8G("size",I.fontSize())("italic",I.italic())("noWrap",I.noWrap()))},dependencies:[R.o],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return L})()},5187(qe,Ce,D){"use strict";D.d(Ce,{Card:()=>T});var v=D(7705),R=D(2271),E=D(5970),p=D(5547);const K=["*"];let T=(()=>{class H{style=(0,v.hFB)("");variant=(0,v.hFB)("default");shadow=(0,v.hFB)(!1);padded=(0,v.hFB)(!0);scrollable=(0,v.hFB)(!1);maxHeight=(0,v.hFB)(void 0);maxContentHeight=(0,v.hFB)(!1);isScrollable=(0,R.EW)(()=>this.scrollable()||void 0!==this.maxHeight());getClass=(0,R.EW)(()=>`variant-${this.variant()}`);getStyles=(0,R.EW)(()=>{const I="fade"===this.variant()?"neutral":this.variant(),Z=[`\n color: var(--cue-${I}Contrast);\n --background-color: var(--cue-${I});\n background-color: var(--background-color);\n max-height: ${this.maxHeight()??"none"};\n position: ${this.isScrollable()?"relative":void 0};\n min-height: ${this.isScrollable()?void 0:"fit-content"};\n `];return"fade"===this.variant()&&Z.push(`\n background-image: linear-gradient(to bottom,var(--cue-${I}),var(--cue-main-background));\n `),Z.push(this.style()),Z.join("")});innerDisplay=(0,R.EW)(()=>this.isScrollable()?"block":"contents");onResize(I){if(!this.maxContentHeight())return;const Z=Array.from(I.element.children).reduce((F,de)=>de.getBoundingClientRect().height+F,0);I.element.parentElement.style.maxHeight=`calc(${Z}px + var(--cue-card-padding-y) * 2 + 2px)`}static \u0275fac=function(Z){return new(Z||H)};static \u0275cmp=p.VBU({type:H,selectors:[["cue-card"]],hostVars:8,hostBindings:function(Z,F){2&Z&&(p.Aen(F.getStyles()),p.HbH(F.getClass()),p.AVh("padded",F.padded())("shadow",F.shadow()))},inputs:{style:[1,"style"],variant:[1,"variant"],shadow:[1,"shadow"],padded:[1,"padded"],scrollable:[1,"scrollable"],maxHeight:[1,"maxHeight"],maxContentHeight:[1,"maxContentHeight"]},ngContentSelectors:K,decls:2,vars:2,consts:[["cueResized","",1,"inner",3,"resized"]],template:function(Z,F){1&Z&&(p.NAR(),p.j41(0,"div",0),p.bIt("resized",function(le){return F.onResize(le)}),p.SdG(1),p.k0s()),2&Z&&p.xc7("display",F.innerDisplay())},dependencies:[E.C],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--cue-card-border-radius);border:1px solid var(--cue-card-border-color);box-sizing:border-box;overflow:hidden;--cue-scrollbar-thumb-color: var(--cue-color-lightgray)}.padded[_nghost-%COMP%]{padding:var(--cue-card-padding-y) var(--cue-card-padding-x)}.shadow[_nghost-%COMP%]{box-shadow:var(--cue-card-box-shadow)}.variant-default[_nghost-%COMP%]{--cue-paginator-text-color: var(--cue-paginator-text-color);--cue-input-border-bottom-color: var(--cue-main-foreground);--cue-input-placeholder-color: var(--cue-color-darkmidgray);--cue-input-label-color: var(--cue-main-foreground);--cue-input-value-color: var(--cue-main-foreground);--cue-stepper-border-color: var(--cue-main-foreground);--cue-stepper-fill-color: var(--cue-main-foreground);--cue-stepper-connector-color: var(--cue-main-foreground)}body.dark .variant-default[_nghost-%COMP%]{--cue-scrollbar-thumb-color: var(--cue-color-midgray);--cue-paginator-text-color: var(--cue-color-midgray)}.variant-secondary[_nghost-%COMP%], .variant-primary[_nghost-%COMP%]{--cue-button-primary-focus-color: var(--cue-color-ultralightgray);--cue-button-primary-foreground: var(--cue-color-blue);--cue-button-primary-border-color: var(--cue-color-ultralightgray);--cue-button-primary-background: var(--cue-color-ultralightgray);--cue-button-primary-disabled-foreground: var(--cue-color-midgray);--cue-button-primary-disabled-background: var(--cue-color-lightgray);--cue-button-primary-disabled-border-color: var(--cue-color-lightgray);--cue-button-secondary-disabled-foreground: var(--cue-color-midgray);--cue-button-secondary-disabled-border-color: var(--cue-color-midgray);--cue-input-value-color: var(--cue-color-ultralightgray);--cue-input-label-color: var(--cue-color-ultralightgray);--cue-input-placeholder-color: var(--cue-color-lightgray);--cue-input-border-bottom-color: var(--cue-color-ultralightgray);--cue-input-switch-background: rgba(255, 255, 255, .25);--cue-input-switch-checked-background: var(--cue-color-green);--cue-input-switch-checked-indicator-background: var(--cue-color-darkgray);--cue-stepper-border-color: var(--cue-color-ultralightgray);--cue-stepper-fill-color: var(--cue-color-ultralightgray);--cue-stepper-connector-color: var(--cue-color-ultralightgray);--cue-table-text-color: var(--cue-color-ultralightgray);--cue-table-secondary-text-color: var(--cue-color-lightgray);--cue-table-row-border-bottom-color: var(--cue-color-ultralightgray);--cue-chart-text-color: var(--cue-color-ultralightgray);--cue-paginator-text-color: var(--cue-color-ultralightgray)}:is(.variant-secondary[_nghost-%COMP%], .variant-primary[_nghost-%COMP%]) .ag-cell{--cue-input-value-color: var(--cue-table-text-color);--cue-input-placeholder-color: var(--cue-table-secondary-text-color)}.variant-secondary[_nghost-%COMP%]{--cue-input-switch-checked-background: var(--cue-color-blue);--cue-chart-border-background-color: var(--cue-secondary)}.variant-accent[_nghost-%COMP%]{--cue-chart-border-background-color: var(--cue-accent);--cue-chart-text-color: var(--cue-color-darkgray);--cue-chart-text-color-select: var(--cue-color-darkmidgray);--cue-input-value-color: var(--cue-color-darkgray);--cue-input-label-color: var(--cue-color-darkgray);--cue-input-placeholder-color: var(--cue-color-darkmidgray);--cue-input-border-bottom-color: var(--cue-color-darkgray);--cue-input-border-color: var(--cue-color-darkgray);--cue-stepper-border-color: var(--cue-color-darkgray);--cue-stepper-fill-color: var(--cue-color-darkgray);--cue-stepper-connector-color: var(--cue-color-darkgray)}.variant-primary[_nghost-%COMP%]{--cue-chart-border-background-color: var(--cue-primary);--cue-chart-text-color: var(--cue-color-ultralightgray);--cue-chart-text-color-select: var(--cue-color-lightgray)}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]{position:absolute;inset:var(--cue-card-padding-y) 0 0 var(--cue-card-padding-x);overflow:auto;padding-right:var(--cue-card-padding-x);padding-bottom:var(--cue-card-padding-y);scrollbar-width:thin;scrollbar-color:var(--cue-scrollbar-thumb-color) transparent}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--cue-scrollbar-thumb-color);border-radius:2px}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}"]})}return H})()},1359(qe,Ce,D){"use strict";D.d(Ce,{S:()=>de});var v=D(7705),R=D(2271),E=D(5802),p=D(9769),K=D(9417),L=D(8173),T=D(9615),U=D(5547);const I=(le,we)=>({borderColor:le,backgroundColor:we}),Z=()=>({});function F(le,we){if(1&le&&(U.j41(0,"span",5),U.EFF(1),U.k0s()),2&le){const me=U.XpG();U.R7$(),U.JRh(me.label())}}let de=(()=>{class le{label=(0,v.hFB)("");checked=(0,v.geq)(!1);disabled=(0,v.geq)(!1);color=(0,v.hFB)(void 0);size=(0,v.geq)("m");checkedChange=(0,v.CGW)();safeColor=(0,R.EW)(()=>function H(le,we,me=30){function Se(Pe){if((Pe=Pe.trim().toLowerCase()).startsWith("#")){let $=Pe.slice(1);if(3===$.length&&($=$.split("").map(q=>q+q).join("")),6===$.length)return[parseInt($.slice(0,2),16),parseInt($.slice(2,4),16),parseInt($.slice(4,6),16)]}const j=Pe.match(/rgba?\(([^)]+)\)/);if(j){const $=j[1].split(",").map(q=>parseFloat(q.trim()));if($.length>=3)return[$[0],$[1],$[2]]}return null}const Ee=Se(le),ue=Se(we);return!(!Ee||!ue)&&Math.sqrt(Math.pow(Ee[0]-ue[0],2)+Math.pow(Ee[1]-ue[1],2)+Math.pow(Ee[2]-ue[2],2))<=me}(this.color()||"",this.bgColor()||"")?void 0:this.color());bgColor=(0,E.vPA)(void 0);onChange=()=>{this.checked.set(!this.checked()),this.checkedChange.emit(this.checked())};onTouched=()=>{};writeValue(me){this.checked.set(me)}registerOnChange(me){this.onChange=Se=>{const Ee=Se.target.checked;this.checked.set(Ee),me(Ee),this.checkedChange.emit(Ee)}}registerOnTouched(me){this.onTouched=me}setDisabledState(me){this.disabled.set(me)}static \u0275fac=function(Se){return new(Se||le)};static \u0275cmp=U.VBU({type:le,selectors:[["cue-checkbox"]],inputs:{label:[1,"label"],checked:[1,"checked"],disabled:[1,"disabled"],color:[1,"color"],size:[1,"size"]},outputs:{checked:"checkedChange",disabled:"disabledChange",size:"sizeChange",checkedChange:"checkedChange"},features:[U.Jv_([{provide:K.kq,useExisting:(0,E.Rfq)(()=>le),multi:!0}])],decls:6,vars:25,consts:[[1,"checkbox-container",3,"cueBgColor"],["type","checkbox",1,"checkbox-input",3,"change","blur","checked","disabled"],[1,"checkmark",3,"ngStyle"],["viewBox","0 0 24 24",2,"display","block","width","100%","height","100%"],["fill","none","stroke-width","2","d","M5 13l4 4L19 7"],[1,"checkbox-label"]],template:function(Se,Ee){1&Se&&(U.j41(0,"label",0),U.bIt("cueBgColor",function(W){return Ee.bgColor.set(W)}),U.j41(1,"input",1),U.bIt("change",function(W){return Ee.onChange(W)})("blur",function(){return Ee.onTouched()}),U.k0s(),U.j41(2,"span",2),E.qSk(),U.j41(3,"svg",3),U.nrm(4,"path",4),U.k0s()(),U.nVh(5,F,2,1,"span",5),U.k0s()),2&Se&&(U.AVh("disabled",Ee.disabled())("checked",Ee.checked())("size-xs","xs"===Ee.size())("size-s","s"===Ee.size())("size-m","m"===Ee.size())("size-l","l"===Ee.size())("size-xl","xl"===Ee.size()),U.R7$(),U.Y8G("checked",Ee.checked())("disabled",Ee.disabled()),U.BMQ("aria-label",Ee.label()),U.R7$(),U.Y8G("@checkmarkAnimation",Ee.checked()?"checked":"unchecked")("ngStyle",Ee.safeColor()?U.l_i(21,I,Ee.safeColor(),Ee.checked()?Ee.safeColor():"transparent"):U.lJ4(24,Z)),U.R7$(2),U.BMQ("stroke",Ee.checked()?Ee.safeColor()?"white":"currentColor":"transparent"),U.R7$(),U.vxM(Ee.label()?5:-1))},dependencies:[p.MD,p.B3,K.YN,T.k],styles:[".checkbox-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-family:var(--cue-font-family);position:relative;-webkit-tap-highlight-color:transparent}.checkbox-input[_ngcontent-%COMP%]{position:absolute;opacity:0;width:0;height:0}.checkmark[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--cue-input-border-color);border-radius:2px;background-color:transparent;transition:all .2s ease;box-sizing:border-box}.checkbox-container.size-xs[_ngcontent-%COMP%]{font-size:10px}.checkbox-container.size-xs[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:12px;height:12px}.checkbox-container.size-xs[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:8px;height:8px}.checkbox-container.size-s[_ngcontent-%COMP%]{font-size:12px}.checkbox-container.size-s[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:14px;height:14px}.checkbox-container.size-s[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:10px;height:10px}.checkbox-container.size-m[_ngcontent-%COMP%]{font-size:14px}.checkbox-container.size-m[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:18px;height:18px}.checkbox-container.size-m[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px}.checkbox-container.size-l[_ngcontent-%COMP%]{font-size:16px}.checkbox-container.size-l[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:22px;height:22px}.checkbox-container.size-l[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px}.checkbox-container.size-xl[_ngcontent-%COMP%]{font-size:18px}.checkbox-container.size-xl[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{width:24px;height:24px}.checkbox-container.size-xl[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:20px;height:20px}.checkbox-container.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}.checkbox-label[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;color:var(--cue-input-label-color)}svg[_ngcontent-%COMP%]{stroke-linecap:round;stroke-linejoin:round;fill:none;width:100%;height:100%;display:block}"],data:{animation:[(0,L.hZ)("checkmarkAnimation",[(0,L.kY)("unchecked => checked",[(0,L.iF)({transform:"scale(0.8)",opacity:0}),(0,L.i0)("150ms cubic-bezier(0.4, 0, 0.2, 1)",(0,L.iF)({transform:"scale(1.1)",opacity:1})),(0,L.i0)("100ms cubic-bezier(0.4, 0, 0.2, 1)",(0,L.iF)({transform:"scale(1)"}))]),(0,L.kY)("checked => unchecked",[(0,L.i0)("100ms cubic-bezier(0.4, 0, 0.2, 1)",(0,L.iF)({transform:"scale(1.1)",opacity:1})),(0,L.i0)("150ms cubic-bezier(0.4, 0, 0.2, 1)",(0,L.iF)({transform:"scale(0.8)",opacity:0}))])])]}})}return le})()},8957(qe,Ce,D){"use strict";D.d(Ce,{p:()=>F});var v=D(7705),R=D(5802),E=D(9417),p=D(2245),K=D(5381),L=D(29),T=D(5547);const H=["inputField"];function U(de,le){1&de&&T.EFF(0,"*")}function I(de,le){if(1&de&&(T.j41(0,"span",4),T.nrm(1,"cue-svg-icon",7),T.k0s()),2&de){const we=T.XpG();T.R7$(),T.Y8G("name",we.icon())}}function Z(de,le){if(1&de&&(T.j41(0,"cue-typography",6),T.EFF(1),T.k0s()),2&de){const we=T.XpG();T.R7$(),T.JRh(we.error())}}let F=(()=>{class de{value=(0,v.geq)("");info=(0,v.hFB)("");label=(0,v.hFB)("");placeholder=(0,v.hFB)("");error=(0,v.hFB)(void 0);required=(0,v.hFB)(!1);icon=(0,v.hFB)();type=(0,v.hFB)("text");size=(0,v.hFB)("m");isFocused=!1;disabled=!1;inputField;onValueChange=(0,R.QZP)(()=>this.valueChange.emit(this.value()));valueChange=(0,v.CGW)();onChange=we=>{};onTouched=()=>{};writeValue(we){this.value.set(we||"")}registerOnChange(we){this.onChange=we}registerOnTouched(we){this.onTouched=we}setDisabledState(we){this.disabled=we}emitValue(we){const me=we.target.value;this.value.set(me),this.onChange(me)}focus(){this.isFocused=!0,this.inputField?.nativeElement&&this.inputField.nativeElement.focus()}onBlur(){this.isFocused=!1,this.onTouched()}static \u0275fac=function(me){return new(me||de)};static \u0275cmp=T.VBU({type:de,selectors:[["cue-input"]],viewQuery:function(me,Se){if(1&me&&T.GBs(H,5),2&me){let Ee;T.mGM(Ee=T.lsd())&&(Se.inputField=Ee.first)}},inputs:{value:[1,"value"],info:[1,"info"],label:[1,"label"],placeholder:[1,"placeholder"],error:[1,"error"],required:[1,"required"],icon:[1,"icon"],type:[1,"type"],size:[1,"size"]},outputs:{value:"valueChange",valueChange:"valueChange"},features:[T.Jv_([{provide:E.kq,useExisting:(0,R.Rfq)(()=>de),multi:!0}])],decls:9,vars:13,consts:[["inputField",""],[1,"form-field"],["size","s",1,"label",3,"click","info"],["align","center","gap","s"],[2,"height","12px"],[1,"input",3,"keyup","input","focus","blur","type","value","placeholder","disabled"],["size","s",1,"error-text"],[3,"name"]],template:function(me,Se){if(1&me){const Ee=T.RV6();T.j41(0,"div",1)(1,"cue-typography",2),T.bIt("click",function(){R.eBV(Ee);const W=T.sdS(7);return R.Njj(W.focus())}),T.EFF(2),T.nVh(3,U,1,0),T.k0s(),T.j41(4,"cue-flexcontainer",3),T.nVh(5,I,2,1,"span",4),T.j41(6,"input",5,0),T.bIt("keyup",function(W){return Se.emitValue(W)})("input",function(W){return Se.emitValue(W)})("focus",function(){return Se.isFocused=!0})("blur",function(){return Se.onBlur()}),T.k0s()(),T.nVh(8,Z,2,1,"cue-typography",6),T.k0s()}2&me&&(T.HbH("size-"+Se.size()),T.AVh("focused",Se.isFocused||Se.value()||Se.placeholder()),T.R7$(),T.Y8G("info",Se.info()),T.R7$(),T.SpI(" ",Se.label()," "),T.R7$(),T.vxM(Se.required()?3:-1),T.R7$(2),T.vxM(Se.icon()?5:-1),T.R7$(),T.Y8G("type",Se.type())("value",Se.value())("placeholder",Se.placeholder())("disabled",Se.disabled),T.R7$(2),T.vxM(Se.error()?8:-1))},dependencies:[p.o,K.n,L.A],styles:['.form-field[_ngcontent-%COMP%]{position:relative}.input[_ngcontent-%COMP%]{color:var(--cue-input-value-color);width:100%;border:none;border-bottom:1px solid var(--cue-input-border-bottom-color);background:none;outline:none;font-family:var(--cue-font-family)}.size-xs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.input[_ngcontent-%COMP%]::placeholder{color:var(--cue-input-placeholder-color);font-family:var(--cue-font-family);opacity:.5}.input[_ngcontent-%COMP%]:-webkit-autofill, .input[_ngcontent-%COMP%]:-webkit-autofill:hover, .input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-box-shadow:0 0 0px 1000px transparent inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;-webkit-text-fill-color:var(--cue-input-value-color)}.label[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;transition:all .2s ease;cursor:text}.size-xs[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-top);left:var(--cue-input-xs-label-left)}.size-s[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-top);left:var(--cue-input-s-label-left)}.size-m[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-top);left:var(--cue-input-m-label-left)}.size-l[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-top);left:var(--cue-input-l-label-left)}.form-field.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-focused-top);font-size:var(--cue-input-xs-label-focused-font-size)}.size-s.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-focused-top);font-size:var(--cue-input-s-label-focused-font-size)}.size-m.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-focused-top);font-size:var(--cue-input-m-label-focused-font-size)}.size-l.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}.underline[_ngcontent-%COMP%]{content:"";position:absolute;bottom:0;left:0;height:1px;width:0;background-color:var(--cue-input-border-bottom-color);transition:width .3s ease}.form-field.focused[_ngcontent-%COMP%] .underline[_ngcontent-%COMP%]{width:100%}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}'],changeDetection:0})}return de})()},2444(qe,Ce,D){"use strict";D.d(Ce,{l:()=>ue});var v=D(7705),R=D(5802),E=D(2271),p=D(4015),K=D(8957),L=D(6117),T=D(356),H=D(6279),U=D(2245),I=D(29),Z=D(5381),F=D(5547);function de(W,Pe){if(1&W){const j=F.RV6();F.j41(0,"cue-typography",11),F.bIt("click",function(){R.eBV(j);const q=F.XpG();return R.Njj(!q.disabled()&&q.openMenu())}),F.EFF(1),F.k0s()}if(2&W){const j=F.XpG();F.Y8G("info",j.info()),F.R7$(),F.JRh(j.label())}}function le(W,Pe){if(1&W&&F.nrm(0,"cue-svg-icon",12),2&W){const j=F.XpG();F.xc7("--cue-icon-width",j.iconSize()),F.Y8G("name",Pe)}}function we(W,Pe){if(1&W){const j=F.RV6();F.j41(0,"cue-input",13),F.nI1(1,"transloco"),F.bIt("valueChange",function(q){R.eBV(j);const ne=F.XpG();return R.Njj(ne.onFilterValueChange(q))}),F.k0s(),F.nrm(2,"div",14)}if(2&W){const j=F.XpG();F.Y8G("value",j.filterValue())("placeholder",F.bMT(1,2,"components.input.select.placeholderFilter"))}}function me(W,Pe){1&W&&F.nrm(0,"cue-svg-icon",16),2&W&&F.Y8G("name",Pe)}function Se(W,Pe){if(1&W){const j=F.RV6();F.j41(0,"cue-menu-item",15),F.bIt("click",function(q){const ne=R.eBV(j).$implicit,he=F.XpG();return R.Njj(he.handleSelect(q,ne.value))})("mousedown",function(q){R.eBV(j);const ne=F.XpG();return R.Njj(ne.preventEventBubbling(q))}),F.nVh(1,me,1,1,"cue-svg-icon",16),F.EFF(2),F.k0s()}if(2&W){let j;const $=Pe.$implicit,q=F.XpG();F.Y8G("size",q.size())("selected",$.value===q.value()),F.R7$(),F.vxM((j=q.icon($.value))?1:-1,j),F.R7$(),F.SpI(" ",$.label," ")}}function Ee(W,Pe){if(1&W&&(F.j41(0,"cue-typography",10),F.EFF(1),F.k0s()),2&W){const j=F.XpG();F.R7$(),F.JRh(j.error())}}let ue=(()=>{class W{label=(0,v.hFB)("");info=(0,v.hFB)("");placeholder=(0,v.hFB)(void 0);menuPosition=(0,v.hFB)(void 0);options=(0,v.hFB)();labelMap=(0,v.hFB)({});iconMap=(0,v.hFB)({});value=(0,v.geq)();valueChange=(0,v.CGW)();size=(0,v.hFB)("m");disabled=(0,v.hFB)(!1);showFilter=(0,v.hFB)(!1);filterChange=(0,v.CGW)();remoteFilter=(0,v.hFB)(!1);underline=(0,v.hFB)(!0);error=(0,v.hFB)(void 0);maxHeight=(0,v.hFB)(void 0);optionLabels=(0,E.EW)(()=>{const j=this.labelMap();return(this.options()??[]).map(q=>j[q]?j[q]:q.toString())});_defaultPlaceholder=(0,p.Xx)("components.input.select.placeholderSelect");_placeholder=(0,E.EW)(()=>this.placeholder()??this._defaultPlaceholder());valueLabel=(0,E.EW)(()=>{const j=this.labelMap(),$=this.value();return void 0===$?"":j[$]?j[$]:$.toString()});menuIsOpen=(0,R.vPA)(void 0);filterInputEl=(0,v.ebz)(K.p);menuEl=(0,v.ebz)(L.W);filterValue=(0,R.vPA)("");_filterDebounce;optionsFiltered=(0,E.EW)(()=>{if(this.remoteFilter()){const j=this.labelMap();return(this.options()??[]).map($=>({value:$,label:j[$]??$.toString()}))}return this._appendFilter(this.options()??[],this.filterValue(),this.labelMap())});iconSize=(0,E.EW)(()=>`var(--cue-input-${this.size()}-font-size)`);handleSelect(j,$){const ne=j.target.closest("cue-select");if(null!==ne?.closest(".ag-filter-wrapper")||null!==ne?.closest(".ag-popup")||null!==ne?.closest(".ag-filter-apply-panel")||null!==ne?.closest('[class*="ag-"]')||null!==document.querySelector(".ag-filter-wrapper")){j.stopPropagation();const J=this.menuEl();J&&J.closeMenu()}this.value.set($),this.valueChange.emit($)}preventEventBubbling(j){const q=j.target.closest("cue-select");(null!==q?.closest(".ag-filter-wrapper")||null!==q?.closest(".ag-popup")||null!==q?.closest(".ag-filter-apply-panel")||null!==q?.closest('[class*="ag-"]')||null!==document.querySelector(".ag-filter-wrapper"))&&(j.stopPropagation(),j.stopImmediatePropagation())}onMenuClosed(){this.menuIsOpen.set(!1)}openMenu(){this.menuIsOpen.set(!0),this.filterValue.set(""),this.showFilter()&&(clearTimeout(this._filterDebounce),this.filterChange.emit(""))}onFilterValueChange(j){this.filterValue.set(j),this.showFilter()&&(clearTimeout(this._filterDebounce),""===j?this.filterChange.emit(""):this._filterDebounce=setTimeout(()=>this.filterChange.emit(j),300))}handleSpace(j){j.preventDefault(),this.openMenu()}constructor(){(0,R.QZP)(()=>{this.showFilter()&&this.menuIsOpen()&&setTimeout(()=>this.filterInputEl()?.focus(),20)})}icon(j){if(void 0!==j)return this.iconMap()[j]}_appendFilter(j,$,q){const ne=$.toLowerCase();return(""===$?j:j.filter(J=>(q[J]?q[J].toLowerCase():J.toString().toLowerCase()).startsWith(ne))).map(J=>({value:J,label:q[J]?q[J]:J.toString()}))}static \u0275fac=function($){return new($||W)};static \u0275cmp=F.VBU({type:W,selectors:[["cue-select"]],viewQuery:function($,q){1&$&&F.wEZ(q.filterInputEl,K.p,5)(q.menuEl,L.W,5),2&$&&F.NyB(2)},inputs:{label:[1,"label"],info:[1,"info"],placeholder:[1,"placeholder"],menuPosition:[1,"menuPosition"],options:[1,"options"],labelMap:[1,"labelMap"],iconMap:[1,"iconMap"],value:[1,"value"],size:[1,"size"],disabled:[1,"disabled"],showFilter:[1,"showFilter"],remoteFilter:[1,"remoteFilter"],underline:[1,"underline"],error:[1,"error"],maxHeight:[1,"maxHeight"]},outputs:{value:"valueChange",valueChange:"valueChange",filterChange:"filterChange"},decls:14,vars:20,consts:[["trigger",""],[1,"form-field"],["size","s",1,"label",3,"info"],[3,"menuClosed","positioning","contextEnabled"],["trigger","","tabindex","0",1,"select-trigger",3,"click","keydown.enter","keydown.space"],["align","center","gap","s",1,"select-value"],[3,"--cue-icon-width","name"],["name","arrow-dropdown",1,"select-arrow"],["menu","",1,"menu",3,"maxHeight"],[3,"size","selected"],["size","s",1,"error-text"],["size","s",1,"label",3,"click","info"],[3,"name"],[3,"valueChange","value","placeholder"],[2,"height","6px"],[3,"click","mousedown","size","selected"],["before","",3,"name"]],template:function($,q){if(1&$&&(F.j41(0,"div",1),F.nVh(1,de,2,2,"cue-typography",2),F.j41(2,"cue-menu",3),F.bIt("menuClosed",function(){return q.onMenuClosed()}),F.j41(3,"div",4,0),F.bIt("click",function(){return!q.disabled()&&q.openMenu()})("keydown.enter",function(){return!q.disabled()&&q.openMenu()})("keydown.space",function(he){return!q.disabled()&&q.handleSpace(he)}),F.j41(5,"cue-flexcontainer",5),F.nVh(6,le,1,3,"cue-svg-icon",6),F.EFF(7),F.k0s(),F.nrm(8,"cue-svg-icon",7),F.k0s(),F.j41(9,"cue-menu-wrap",8),F.nVh(10,we,3,4),F.Z7z(11,Se,3,4,"cue-menu-item",9,F.Vm6),F.k0s()(),F.nVh(13,Ee,2,1,"cue-typography",10),F.k0s()),2&$){let ne;F.HbH("size-"+q.size()),F.AVh("focused",!!q.value()||""!==q.placeholder())("menu-open",q.menuIsOpen())("underline",q.underline())("no-label",!q.label()),F.R7$(),F.vxM(q.label()?1:-1),F.R7$(),F.Y8G("positioning",q.menuPosition())("contextEnabled",!q.disabled()),F.R7$(),F.AVh("disabled",q.disabled()),F.R7$(3),F.vxM((ne=q.icon(q.value()))?6:-1,ne),F.R7$(),F.SpI(" ",q.value()?q.valueLabel():q._placeholder()),F.R7$(2),F.Y8G("maxHeight",q.maxHeight()),F.R7$(),F.vxM(q.showFilter()?10:-1),F.R7$(),F.Dyx(q.optionsFiltered()),F.R7$(2),F.vxM(q.error()?13:-1)}},dependencies:[L.W,T.M,H.D,U.o,K.p,I.A,Z.n,p.Kj],styles:["[_nghost-%COMP%]{display:block;width:100%}.form-field[_ngcontent-%COMP%]{position:relative;width:100%}.select-trigger[_ngcontent-%COMP%]{color:var(--cue-input-value-color);width:100%;border:none;background:none;outline:none;font-family:var(--cue-font-family);display:flex;justify-content:space-between;align-items:center;cursor:pointer;box-sizing:border-box}.form-field.underline[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{border-bottom:1px solid var(--cue-input-border-bottom-color)}.form-field[_ngcontent-%COMP%]:not(.underline) .select-trigger[_ngcontent-%COMP%]{align-items:center;padding-top:2px;padding-bottom:1px}.select-trigger.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6}.select-trigger[_ngcontent-%COMP%]:focus{outline:none}.size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.form-field.no-label.size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%], .form-field.no-label.size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]{padding-top:0}.select-value[_ngcontent-%COMP%]{color:var(--cue-input-value-color);font-family:var(--cue-font-family);flex:1;text-align:left}.form-field[_ngcontent-%COMP%]:not(.focused) .select-value[_ngcontent-%COMP%]{color:var(--cue-input-placeholder-color)}.select-arrow[_ngcontent-%COMP%]{color:var(--cue-input-value-color);margin-left:8px;display:inline-block;transition:transform .2s ease}.form-field.menu-open[_ngcontent-%COMP%] .select-arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.label[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;transition:all .2s ease;cursor:pointer}.size-xs[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-top);left:var(--cue-input-xs-label-left)}.size-s[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-top);left:var(--cue-input-s-label-left)}.size-m[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-top);left:var(--cue-input-m-label-left)}.size-l[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-top);left:var(--cue-input-l-label-left)}.form-field.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-focused-top);font-size:var(--cue-input-xs-label-focused-font-size)}.size-s.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-focused-top);font-size:var(--cue-input-s-label-focused-font-size)}.size-m.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-focused-top);font-size:var(--cue-input-m-label-focused-font-size)}.size-l.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l.menu-open[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] .select-trigger[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}cue-menu[_ngcontent-%COMP%]{width:100%}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}"],changeDetection:0})}return W})()},9695(qe,Ce,D){"use strict";D.d(Ce,{d:()=>L});var v=D(7705),R=D(29),E=D(5547);function p(T,H){if(1&T&&E.nrm(0,"cue-svg-icon",2),2&T){const U=E.XpG();E.Y8G("name",U.iconChecked())}}function K(T,H){if(1&T&&E.nrm(0,"cue-svg-icon",2),2&T){const U=E.XpG();E.Y8G("name",U.icon())}}let L=(()=>{class T{size=(0,v.hFB)("m");icon=(0,v.hFB)(void 0);iconChecked=(0,v.hFB)(void 0);disabled=(0,v.hFB)(!1);checked=(0,v.geq)(!1);toggleChange=(0,v.CGW)();toggle(){this.checked.set(!this.checked()),this.toggleChange.emit(this.checked())}static \u0275fac=function(I){return new(I||T)};static \u0275cmp=E.VBU({type:T,selectors:[["cue-input-switch"]],hostVars:5,hostBindings:function(I,Z){2&I&&(E.BMQ("size",Z.size()),E.AVh("checked",Z.checked())("disabled",Z.disabled()))},inputs:{size:[1,"size"],icon:[1,"icon"],iconChecked:[1,"iconChecked"],disabled:[1,"disabled"],checked:[1,"checked"]},outputs:{checked:"checkedChange",toggleChange:"toggleChange"},decls:4,vars:3,consts:[["type","checkbox",3,"click","checked","disabled"],[1,"indicator"],[3,"name"]],template:function(I,Z){1&I&&(E.j41(0,"input",0),E.bIt("click",function(){return Z.toggle()}),E.k0s(),E.j41(1,"div",1),E.nVh(2,p,1,1,"cue-svg-icon",2)(3,K,1,1,"cue-svg-icon",2),E.k0s()),2&I&&(E.Y8G("checked",Z.checked())("disabled",Z.disabled()),E.R7$(2),E.vxM(Z.checked()&&Z.iconChecked()?2:Z.icon()?3:-1))},dependencies:[R.A],styles:["[_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-width: calc(var(--cue-input-switch-height) * 1.7);--cue-input-switch-inset: 2px;--cue-input-switch-indicator-width: calc( var(--cue-input-switch-height) - (2 * var(--cue-input-switch-inset)) );--cue-input-switch-icon-width: calc( var(--cue-input-switch-indicator-width) - (2 * var(--cue-input-switch-inset)) );display:block;flex-shrink:0;position:relative;height:var(--cue-input-switch-height);width:var(--cue-input-switch-width);border-radius:var(--cue-input-switch-height);--cue-icon-width: var(--cue-input-switch-icon-width);background:var(--cue-input-switch-background);transition:background-color .4s ease}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 12px;--cue-input-switch-inset: 1px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 14px;--cue-input-switch-inset: 1px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-inset: 2px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 22px;--cue-input-switch-inset: 3px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 28px;--cue-input-switch-inset: 3px}@container cue-container (width < 20em){[_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 10px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 12px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 18px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 20px}}.checked[_nghost-%COMP%]{background:var(--cue-input-switch-checked-background)}.disabled[_nghost-%COMP%]{background:var(--cue-input-switch-disabled-background);cursor:default}[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:var(--cue-input-switch-inset);top:var(--cue-input-switch-inset);width:var(--cue-input-switch-indicator-width);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:var(--cue-input-switch-indicator-background);color:var(--cue-input-switch-indicator-foreground);transition:left .4s ease,background-color .4s ease,color .4s ease}.checked[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{left:calc(var(--cue-input-switch-width) - var(--cue-input-switch-inset) - var(--cue-input-switch-indicator-width));background:var(--cue-input-switch-checked-indicator-background);color:var(--cue-input-switch-checked-indicator-foreground)}.disabled[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{background:var(--cue-input-switch-disabled-indicator-background);color:var(--cue-input-switch-disabled-indicator-foreground)}input[_ngcontent-%COMP%]{all:unset;position:absolute;inset:0;cursor:pointer;border-radius:var(--cue-input-switch-height)}input[_ngcontent-%COMP%]:focus-visible:not(:disabled) + .indicator[_ngcontent-%COMP%]{outline:1px solid var(--cue-input-switch-focus-color);outline-offset:2px}"]})}return T})()},6279(qe,Ce,D){"use strict";D.d(Ce,{D:()=>H});var v=D(7705),R=D(2271),E=D(2245),p=D(7089),K=D(5547);const L=[[["","before",""]],"*",[["","after",""]]],T=["[before]","*","[after]"];let H=(()=>{class U{selected=(0,v.hFB)(!1);disabled=(0,v.hFB)(!1);size=(0,v.hFB)("s");tooltip=(0,v.hFB)("");getClass=(0,R.EW)(()=>this.selected()?"selected":"");getTabindex=(0,R.EW)(()=>this.disabled()||this.selected()?"-1":"0");getStyles=(0,R.EW)(()=>`min-width: var(--cue-menu-item-${this.size()}-min-width);\n width: 100%;`);static \u0275fac=function(F){return new(F||U)};static \u0275cmp=K.VBU({type:U,selectors:[["cue-menu-item"]],inputs:{selected:[1,"selected"],disabled:[1,"disabled"],size:[1,"size"],tooltip:[1,"tooltip"]},ngContentSelectors:T,decls:6,vars:8,consts:[["tooltipPlacement","right",3,"disabled","cueTooltip"],[3,"noWrap"],[1,"flexer"]],template:function(F,de){1&F&&(K.NAR(L),K.j41(0,"button",0),K.SdG(1),K.j41(2,"cue-typography",1),K.SdG(3,1),K.k0s(),K.nrm(4,"div",2),K.SdG(5,2),K.k0s()),2&F&&(K.Aen(de.getStyles()),K.HbH(de.getClass()),K.Y8G("disabled",de.disabled())("cueTooltip",de.tooltip()),K.BMQ("tabIndex",de.getTabindex()),K.R7$(2),K.Y8G("noWrap",!0))},dependencies:[E.o,p.d],styles:["[_nghost-%COMP%]{display:contents}button[_ngcontent-%COMP%]{appearance:none;font:inherit;display:flex;border:0;align-items:center;justify-content:start;background:transparent;height:var(--cue-menu-item-height);border-radius:var(--cue-menu-item-border-radius);padding:0 var(--cue-menu-item-padding-x);gap:0 var(--cue-menu-item-gap);--cue-icon-width: var(--cue-menu-item-icon-size);background:var(--cue-menu-item-background-color)}button[_ngcontent-%COMP%]:focus{outline:none}button[_ngcontent-%COMP%]:hover:not(:disabled), button[_ngcontent-%COMP%]:focus:not(:disabled){background:var(--cue-menu-item-focus-background-color)}button.selected[_ngcontent-%COMP%]{background:var(--cue-menu-item-selected-background-color)!important}button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default!important;background:var(--cue-menu-item-background-color)!important}button[_ngcontent-%COMP%]:hover{cursor:pointer}button[_ngcontent-%COMP%]:disabled:hover{cursor:not-allowed}.flexer[_ngcontent-%COMP%]{flex:1}"]})}return U})()},356(qe,Ce,D){"use strict";D.d(Ce,{M:()=>K});var v=D(7705),R=D(2271),E=D(5547);const p=["*"];let K=(()=>{class L{maxHeight=(0,v.hFB)(void 0);maxHeightStyle=(0,R.EW)(()=>{const H=this.maxHeight();if(void 0!==H)return"number"==typeof H?`${H}px`:H});static \u0275fac=function(U){return new(U||L)};static \u0275cmp=E.VBU({type:L,selectors:[["cue-menu-wrap"]],hostVars:2,hostBindings:function(U,I){2&U&&E.xc7("max-height",I.maxHeightStyle())},inputs:{maxHeight:[1,"maxHeight"]},ngContentSelectors:p,decls:2,vars:0,consts:[[1,"cue-menu-wrap-inner"]],template:function(U,I){1&U&&(E.NAR(),E.rj2(0,"div",0),E.SdG(1),E.eux())},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:var(--cue-menu-gap);padding:var(--cue-menu-padding-y) var(--cue-menu-padding-x);border-radius:var(--cue-menu-border-radius);border:1px solid var(--cue-menu-border-color);background:var(--cue-menu-background-color);color:var(--cue-menu-foreground-color);max-height:var(--cue-menu-max-height);overflow-y:auto}.cue-menu-wrap-inner[_ngcontent-%COMP%]{--cue-input-value-color: var(--cue-menu-foreground-color);width:100%;height:100%;display:flex;flex-direction:column;gap:var(--cue-menu-gap)}"]})}return L})()},6117(qe,Ce,D){"use strict";D.d(Ce,{W:()=>U});var v=D(7705),R=D(7023),E=D(5547);const p=["contextMenuDirective"],K=[[["","trigger",""]],[["","menu",""]],[["","menu",""]]],L=["[trigger]","[menu]","[menu]"];function T(I,Z){1&I&&E.SdG(0,1)}function H(I,Z){1&I&&E.SdG(0,2)}let U=(()=>{class I{contextMenuData=(0,v.hFB)({});trigger=(0,v.hFB)("leftclick");positioning=(0,v.hFB)(void 0);contextEnabled=(0,v.hFB)(!0);menuClosed=(0,v.CGW)();contextMenuDirective=(0,v.ebz)("contextMenuDirective",{read:R.Q});onMenuClose(){this.menuClosed.emit()}closeMenu(){const F=this.contextMenuDirective();F&&F.closeContextMenu()}static \u0275fac=function(de){return new(de||I)};static \u0275cmp=E.VBU({type:I,selectors:[["cue-menu"]],viewQuery:function(de,le){1&de&&E.wEZ(le.contextMenuDirective,p,5,R.Q),2&de&&E.NyB()},inputs:{contextMenuData:[1,"contextMenuData"],trigger:[1,"trigger"],positioning:[1,"positioning"],contextEnabled:[1,"contextEnabled"]},outputs:{menuClosed:"menuClosed"},ngContentSelectors:L,decls:7,vars:5,consts:[["contextMenuDirective",""],["menuTemplate",""],[3,"contextMenuClose","cueContextMenu","contextMenuData","cueContextEnabled","trigger","positioning"]],template:function(de,le){if(1&de&&(E.NAR(K),E.j41(0,"div",2,0),E.bIt("contextMenuClose",function(){return le.onMenuClose()}),E.SdG(2),E.k0s(),E.DNE(3,T,1,0,"ng-template",null,1,E.C5r)(5,H,1,0,"ng-template",null,1,E.C5r)),2&de){const we=E.sdS(4);E.Y8G("cueContextMenu",we)("contextMenuData",le.contextMenuData)("cueContextEnabled",le.contextEnabled())("trigger",le.trigger())("positioning",le.positioning())}},dependencies:[R.Q],styles:["[_nghost-%COMP%]{display:block}"]})}return I})()},5745(qe,Ce,D){"use strict";D.d(Ce,{a:()=>de});var v=D(7705),R=D(5802),E=D(5187),p=D(5381),K=D(29),L=D(2245),T=D(5547);const H=["dialog"],U=["*"];function I(le,we){if(1&le&&(T.j41(0,"cue-typography",4),T.EFF(1),T.k0s()),2&le){const me=T.XpG(2);T.R7$(),T.JRh(me.label())}}function Z(le,we){if(1&le){const me=T.RV6();T.j41(0,"cue-svg-icon",7),T.bIt("click",function(){R.eBV(me);const Ee=T.XpG(2);return R.Njj(Ee.onClose())}),T.k0s()}}function F(le,we){if(1&le&&(T.j41(0,"cue-flexcontainer",3),T.bIt("click",function(Se){return Se.stopPropagation()}),T.nVh(1,I,2,1,"cue-typography",4),T.j41(2,"cue-card",5),T.bIt("click",function(Se){return Se.stopPropagation()}),T.nVh(3,Z,1,0,"cue-svg-icon",6),T.j41(4,"cue-flexcontainer"),T.SdG(5),T.k0s()()()),2&le){const me=T.XpG();T.R7$(),T.vxM(me.label()?1:-1),T.R7$(),T.Aen(me.minWidth()?"position: relative; min-width: min("+me.minWidth()+", 80vw)":"position: relative"),T.R7$(),T.vxM(me.displayCloseBtn()?3:-1),T.R7$(),T.Aen("width: 100%; margin-top: "+(me.displayCloseBtn()?"16px":"0"))}}let de=(()=>{class le{visible=(0,v.geq)(!0);closeOnBackgroundClick=(0,v.hFB)(!0);displayCloseBtn=(0,v.hFB)(!0);label=(0,v.hFB)("");minWidth=(0,v.hFB)();close=(0,v.CGW)();dialogRef=v.ebz.required("dialog");constructor(){(0,R.QZP)(()=>{const me=this.dialogRef().nativeElement;this.visible()?me.open||me.showModal():me.open&&me.close()})}onBackdropClick(){this.closeOnBackgroundClick()&&this.onClose()}onClose(){this.visible.set(!1),this.close.emit()}static \u0275fac=function(Se){return new(Se||le)};static \u0275cmp=T.VBU({type:le,selectors:[["cue-modal"]],viewQuery:function(Se,Ee){1&Se&&T.wEZ(Ee.dialogRef,H,5),2&Se&&T.NyB()},inputs:{visible:[1,"visible"],closeOnBackgroundClick:[1,"closeOnBackgroundClick"],displayCloseBtn:[1,"displayCloseBtn"],label:[1,"label"],minWidth:[1,"minWidth"]},outputs:{visible:"visibleChange",close:"close"},ngContentSelectors:U,decls:3,vars:1,consts:[["dialog",""],[1,"modal-dialog",3,"cancel","click"],["direction","column","gap","s","align","center",2,"max-width","80vw"],["direction","column","gap","s","align","center",2,"max-width","80vw",3,"click"],["weight","medium"],[3,"click"],["name","close",1,"close-btn"],["name","close",1,"close-btn",3,"click"]],template:function(Se,Ee){1&Se&&(T.NAR(),T.j41(0,"dialog",1,0),T.bIt("cancel",function(){return Ee.onClose()})("click",function(){return Ee.onBackdropClick()}),T.nVh(2,F,6,6,"cue-flexcontainer",2),T.k0s()),2&Se&&(T.R7$(2),T.vxM(Ee.visible()?2:-1))},dependencies:[E.Card,p.n,K.A,L.o],styles:[".close-btn[_ngcontent-%COMP%]{position:absolute;right:8px;top:8px;cursor:pointer}.modal-dialog[_ngcontent-%COMP%]{padding:0;border:none;background:transparent;overflow:visible;margin:auto;outline:none}.modal-dialog[_ngcontent-%COMP%]::backdrop{background-color:var(--cue-modal-overlay-color, rgba(0, 0, 0, .5))}"]})}return le})()},9615(qe,Ce,D){"use strict";D.d(Ce,{k:()=>p});var v=D(7705),R=D(5802),E=D(5547);let p=(()=>{class K{darkModeSignal=(0,v.hFB)(void 0);cueBgColor=(0,v.CGW)();mutationObserver=null;cleanupEffect=null;el=(0,R.WQX)(E.aKT);renderer=(0,R.WQX)(E.sFG);ngOnInit(){if(this.setBgColor(),this.darkModeSignal()){const T=(0,R.QZP)(()=>{this.setBgColor()});this.cleanupEffect=()=>T.destroy()}this.mutationObserver=new MutationObserver(T=>{for(const H of T)"attributes"===H.type&&"class"===H.attributeName&&this.setBgColor()}),this.mutationObserver.observe(document.body,{attributes:!0,attributeFilter:["class"]})}ngOnDestroy(){this.cleanupEffect&&this.cleanupEffect(),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null)}setBgColor(){const T=this.getClosestParentBackgroundColor(this.el.nativeElement);this.renderer.setStyle(this.el.nativeElement,"background-color",T||"transparent"),this.cueBgColor.emit(T||"transparent")}getClosestParentBackgroundColor(T){let H=T.parentElement;for(;H;){const U=window.getComputedStyle(H).backgroundColor;if(U&&"rgba(0, 0, 0, 0)"!==U&&"transparent"!==U)return U;H=H.parentElement}return null}static \u0275fac=function(H){return new(H||K)};static \u0275dir=E.FsC({type:K,selectors:[["","cueBgColor",""]],inputs:{darkModeSignal:[1,"darkModeSignal"]},outputs:{cueBgColor:"cueBgColor"}})}return K})()},7023(qe,Ce,D){"use strict";D.d(Ce,{Q:()=>T});var v=D(7705),R=D(5802),E=D(5547),p=D(9769),K=D(9595);let L=(()=>{class H{template=v.hFB.required();context=(0,v.hFB)({});positioning=(0,v.hFB)("bottomright");menuClick=(0,v.CGW)();positioningClass=()=>this.positioning();static \u0275fac=function(Z){return new(Z||H)};static \u0275cmp=E.VBU({type:H,selectors:[["cue-context-menu-container"]],hostAttrs:[1,"clickoutside-ignore"],inputs:{template:[1,"template"],context:[1,"context"],positioning:[1,"positioning"]},outputs:{menuClick:"menuClick"},decls:2,vars:4,consts:[[1,"context-menu-wrapper","clickoutside-ignore",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(Z,F){1&Z&&(E.j41(0,"div",0),E.bIt("click",function(){return F.menuClick.emit()}),E.eu8(1,1),E.k0s()),2&Z&&(E.HbH(F.positioningClass()),E.R7$(),E.Y8G("ngTemplateOutlet",F.template())("ngTemplateOutletContext",F.context()))},dependencies:[p.MD,p.T3],styles:["[_nghost-%COMP%]{position:fixed;pointer-events:auto;z-index:10000;min-width:10px;min-height:10px}.context-menu-wrapper[_ngcontent-%COMP%]{pointer-events:auto;min-width:150px;min-height:10px}.context-menu-wrapper.topleft[_ngcontent-%COMP%]{transform:translate(-100%,-100%)}.context-menu-wrapper.topright[_ngcontent-%COMP%]{transform:translateY(-100%)}.context-menu-wrapper.bottomleft[_ngcontent-%COMP%]{transform:translate(-100%)}.context-menu-wrapper.bottomright[_ngcontent-%COMP%], .context-menu-wrapper.rightstart[_ngcontent-%COMP%]{transform:translate(0)}.context-menu-wrapper.rightend[_ngcontent-%COMP%]{transform:translateY(-100%)}.context-menu-wrapper.leftstart[_ngcontent-%COMP%]{transform:translate(-100%)}.context-menu-wrapper.leftend[_ngcontent-%COMP%]{transform:translate(-100%,-100%)}"]})}return H})(),T=(()=>{class H{elementRef=(0,R.WQX)(E.aKT);applicationRef=(0,R.WQX)(E.o8S);environmentInjector=(0,R.WQX)(R.uvJ);mousePressHandler=K.B.getInstance();static openMenus=[];cueContextMenu=v.hFB.required();contextMenuData=(0,v.hFB)();cueContextEnabled=(0,v.hFB)(!0);trigger=(0,v.hFB)("rightclick");positioning=(0,v.hFB)(void 0);positionAtCursor=(0,v.hFB)(!1);contextMenuOpen=(0,v.CGW)();contextMenuClose=(0,v.CGW)();contextMenuRef=null;documentClickHandlerAttached=!1;documentClickHandler=this.onDocumentClick.bind(this);documentScrollHandler=this.onDocumentScroll.bind(this);hoverTimeout=null;closeTimeout=null;hoverDelay=150;menuMouseEnterHandler=null;menuMouseLeaveHandler=null;boundOnShortRightPress=this.onShortRightPress.bind(this);boundOnShortLeftPress=this.onShortLeftPress.bind(this);boundOnLongRightPress=this.onLongRightPress.bind(this);boundOnLongLeftPress=this.onLongLeftPress.bind(this);constructor(){(0,R.QZP)(()=>{!this.cueContextEnabled()&&this.contextMenuRef&&setTimeout(()=>{this.contextMenuRef&&this.closeContextMenu()},0)})}ngOnInit(){const I=document.querySelectorAll("cue-context-menu-container");if(I.length>0){const Z=new Set(H.openMenus.filter(F=>F.contextMenuRef).map(F=>F.contextMenuRef.location.nativeElement));I.forEach(F=>{F.parentNode&&!Z.has(F)&&F.parentNode.removeChild(F)})}("rightclick"===this.trigger()||"both"===this.trigger()||"longpress"===this.trigger())&&this.mousePressHandler.setSuppressNativeContextMenu(!0),this.mousePressHandler.events.addListener("shortPressedRight",this.boundOnShortRightPress),this.mousePressHandler.events.addListener("shortPressedLeft",this.boundOnShortLeftPress),"longpress"===this.trigger()&&(this.mousePressHandler.events.addListener("longPressedRight",this.boundOnLongRightPress),this.mousePressHandler.events.addListener("longPressedLeft",this.boundOnLongLeftPress)),"hover"===this.trigger()&&(this.elementRef.nativeElement.addEventListener("mouseenter",this.onMouseEnter.bind(this)),this.elementRef.nativeElement.addEventListener("mouseleave",this.onMouseLeave.bind(this)))}onShortRightPress(I){if(this.isEventOnThisElement(I)&&("rightclick"===this.trigger()||"both"===this.trigger())){if(this.contextMenuRef)return I.preventDefault(),I.stopPropagation(),void this.closeContextMenu();if(!this.cueContextEnabled?.())return;I.preventDefault(),I.stopPropagation(),this.showContextMenu(I)}}onShortLeftPress(I){if(this.isEventOnThisElement(I)&&("leftclick"===this.trigger()||"both"===this.trigger())){if(this.contextMenuRef)return I.preventDefault(),I.stopPropagation(),void this.closeContextMenu();if(!this.cueContextEnabled?.())return;I.preventDefault(),I.stopPropagation(),this.showContextMenu(I)}}onLongRightPress(I){this.cueContextEnabled?.()&&this.isEventOnThisElement(I)&&("longpress"===this.trigger()||"rightclick"===this.trigger()||"both"===this.trigger())&&(I.preventDefault(),I.stopPropagation(),this.showContextMenu(I))}onLongLeftPress(I){this.cueContextEnabled?.()&&this.isEventOnThisElement(I)&&("longpress"===this.trigger()||"leftclick"===this.trigger()||"both"===this.trigger())&&(I.preventDefault(),I.stopPropagation(),this.showContextMenu(I))}isEventOnThisElement(I){return this.elementRef.nativeElement.contains(I.target)}onMouseEnter(I){!this.cueContextEnabled?.()||"hover"!==this.trigger()||(this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.contextMenuRef||(this.hoverTimeout=setTimeout(()=>{this.showContextMenu(I)},this.hoverDelay)))}onMouseLeave(I){!this.cueContextEnabled?.()||"hover"!==this.trigger()||(this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=null),this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.closeTimeout=setTimeout(()=>{this.contextMenuRef&&this.closeContextMenu()},this.hoverDelay))}onDocumentClick(I){if(this.contextMenuRef)return this.contextMenuRef.location.nativeElement.contains(I.target)?null!==I.target?.closest("cue-menu-item button")?void setTimeout(()=>{this.contextMenuRef&&this.closeContextMenu()},0):void 0:void this.closeContextMenu()}onDocumentScroll(I){this.contextMenuRef&&(this.contextMenuRef.location.nativeElement.contains(I.target)||this.closeContextMenu())}showContextMenu(I){const Z=this.elementRef.nativeElement.getBoundingClientRect();H.openMenus.forEach(Se=>{Se!==this&&(Se.contextMenuRef?.location.nativeElement?.contains(this.elementRef.nativeElement)||Se.closeContextMenu())}),this.closeContextMenu();const F=this.calculatePositioning(I,Z),de=this.cueContextMenu();if(!(de&&de instanceof E.C4Q))return void console.error("Invalid template provided to context menu");this.contextMenuRef=(0,v.a0P)(L,{environmentInjector:this.environmentInjector}),this.contextMenuRef.setInput("template",de),this.contextMenuRef.setInput("context",{$implicit:this.contextMenuData(),event:I}),this.contextMenuRef.setInput("positioning",F);const le=this.contextMenuRef.instance.menuClick.subscribe(()=>{this.closeContextMenu()}),we=this.contextMenuRef.location.nativeElement;"hover"!==this.trigger()||this.positionAtCursor()?(we.style.left=`${I.clientX}px`,we.style.top=`${I.clientY}px`):this.positionSubmenu(we,F,Z),this.applicationRef.attachView(this.contextMenuRef.hostView),(this.elementRef.nativeElement.closest("dialog")||document.body).appendChild(we),this.contextMenuRef._menuClickSubscription=le,"hover"===this.trigger()&&(this.menuMouseEnterHandler=()=>{this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)},this.menuMouseLeaveHandler=()=>{this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null),this.closeTimeout=setTimeout(()=>{this.contextMenuRef&&this.closeContextMenu()},this.hoverDelay)},we.addEventListener("mouseenter",this.menuMouseEnterHandler),we.addEventListener("mouseleave",this.menuMouseLeaveHandler)),setTimeout(()=>{this.contextMenuRef&&!this.documentClickHandlerAttached&&(document.addEventListener("click",this.documentClickHandler,!0),document.addEventListener("contextmenu",this.documentClickHandler,!0),document.addEventListener("scroll",this.documentScrollHandler,!0),this.documentClickHandlerAttached=!0)},0),H.openMenus.includes(this)||H.openMenus.push(this),this.contextMenuOpen.emit({event:I,data:this.contextMenuData(),suggestedPositioning:F})}calculatePositioning(I,Z){const F=this.positioning();if(F)return F;if("hover"===this.trigger()&&!this.positionAtCursor())return this.calculateSubmenuPositioning(Z);const de=window.innerWidth,le=window.innerHeight,me=I.clientX>de-200,Se=I.clientY>le-200;return me&&Se?"topleft":me?"bottomleft":Se?"topright":"bottomright"}calculateSubmenuPositioning(I){const Z=window.innerWidth,F=window.innerHeight,Ee=Z-I.right>=300,ue=F-I.bottom>=150;return Ee&&ue?"rightstart":Ee&&!ue?"rightend":!Ee&&ue?"leftstart":"leftend"}positionSubmenu(I,Z,F){switch(Z){case"rightstart":default:I.style.left=`${F.right}px`,I.style.top=`${F.top}px`;break;case"rightend":I.style.left=`${F.right}px`,I.style.top=`${F.bottom}px`;break;case"leftstart":I.style.left=`${F.left}px`,I.style.top=`${F.top}px`;break;case"leftend":I.style.left=`${F.left}px`,I.style.top=`${F.bottom}px`}}closeContextMenu(){if(this.contextMenuRef){const Z=this.contextMenuRef.location.nativeElement;this.menuMouseEnterHandler&&(Z.removeEventListener("mouseenter",this.menuMouseEnterHandler),this.menuMouseEnterHandler=null),this.menuMouseLeaveHandler&&(Z.removeEventListener("mouseleave",this.menuMouseLeaveHandler),this.menuMouseLeaveHandler=null),this.documentClickHandlerAttached&&(document.removeEventListener("click",this.documentClickHandler,!0),document.removeEventListener("contextmenu",this.documentClickHandler,!0),document.removeEventListener("scroll",this.documentScrollHandler,!0),this.documentClickHandlerAttached=!1);const F=this.contextMenuRef._menuClickSubscription;F&&F.unsubscribe(),this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null);try{Z.parentNode?Z.parentNode.removeChild(Z):document.body.contains(Z)&&document.body.removeChild(Z)}catch{try{Z.remove&&Z.remove()}catch{}}this.applicationRef.detachView(this.contextMenuRef.hostView),this.contextMenuRef.destroy(),this.contextMenuRef=null,this.contextMenuClose.emit()}const I=H.openMenus.indexOf(this);I>-1&&H.openMenus.splice(I,1)}ngOnDestroy(){this.mousePressHandler.setSuppressNativeContextMenu(!1),this.mousePressHandler.events.removeListener("shortPressedRight",this.boundOnShortRightPress),this.mousePressHandler.events.removeListener("shortPressedLeft",this.boundOnShortLeftPress),this.mousePressHandler.events.removeListener("longPressedRight",this.boundOnLongRightPress),this.mousePressHandler.events.removeListener("longPressedLeft",this.boundOnLongLeftPress),"hover"===this.trigger()&&(this.elementRef.nativeElement.removeEventListener("mouseenter",this.onMouseEnter),this.elementRef.nativeElement.removeEventListener("mouseleave",this.onMouseLeave)),this.hoverTimeout&&clearTimeout(this.hoverTimeout),this.closeTimeout&&clearTimeout(this.closeTimeout),this.closeContextMenu()}static \u0275fac=function(Z){return new(Z||H)};static \u0275dir=E.FsC({type:H,selectors:[["","cueContextMenu",""]],inputs:{cueContextMenu:[1,"cueContextMenu"],contextMenuData:[1,"contextMenuData"],cueContextEnabled:[1,"cueContextEnabled"],trigger:[1,"trigger"],positioning:[1,"positioning"],positionAtCursor:[1,"positionAtCursor"]},outputs:{contextMenuOpen:"contextMenuOpen",contextMenuClose:"contextMenuClose"}})}return H})()},5970(qe,Ce,D){"use strict";D.d(Ce,{C:()=>K});var v=D(7705),R=D(5802),E=D(5547);class p{newRect;oldRect;isFirst;element;constructor(T,H,U){this.newRect=T,this.oldRect=H,this.isFirst=null==H,this.element=U}}let K=(()=>{class L{element;zone;observer;oldRect;resized=(0,v.CGW)();windowResized=(0,v.CGW)();constructor(H,U){this.element=H,this.zone=U,this.observer=new ResizeObserver(I=>this.zone.run(()=>this.observe(I)))}ngOnInit(){this.observer.observe(this.element.nativeElement)}ngOnDestroy(){this.observer.disconnect()}onWindowResize(){this.zone.run(()=>{const H=this.getWindowRect(),U=new p(H,void 0,window.document.documentElement);this.windowResized.emit(U)})}observe(H){const U=H[0],I=new p(U.contentRect,this.oldRect,U.target);this.oldRect=U.contentRect,this.resized.emit(I)}getWindowRect(){return{x:0,y:0,width:window.innerWidth,height:window.innerHeight,top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,toJSON:()=>({})}}static \u0275fac=function(U){return new(U||L)(E.rXU(E.aKT),E.rXU(R.SKi))};static \u0275dir=E.FsC({type:L,selectors:[["","cueResized",""]],hostBindings:function(U,I){1&U&&E.bIt("resize",function(){return I.onWindowResize()},E.tSv)},outputs:{resized:"resized",windowResized:"windowResized"}})}return L})()},2065(qe,Ce,D){"use strict";function E(L,T,H="text/plain"){return function v(L,T="data.zip"){const H=document.createElement("a"),U=URL.createObjectURL(L);H.href=U,H.download=T,document.body.appendChild(H),H.click(),document.body.removeChild(H),URL.revokeObjectURL(U)}(new Blob([L],{type:H}),T)}function p(L,T){const H=document.createElement("a");H.style.display="hidden",H.setAttribute("href",window.URL.createObjectURL(L)),H.setAttribute("download",T),document.body.appendChild(H),H.click(),H.remove()}D.d(Ce,{KE:()=>p,YN:()=>E})},9595(qe,Ce,D){"use strict";D.d(Ce,{B:()=>E});var v=D(1339);let R=(()=>{class p{static _instance;_pressTimer;_shortPressDuration=300;_longPressDuration=1e3;_pressTime;_emittedLongPress=!1;events=new v.EventEmitter;constructor(){document.addEventListener("keydown",L=>{void 0===this._pressTime&&(this._pressTime=(new Date).getTime(),this._pressTimer=setTimeout(()=>{this._handleLongPress(L.key),this._emittedLongPress=!0,clearTimeout(this._pressTimer)},this._longPressDuration),this.events.emit("holdingKey",L.key))}),document.addEventListener("keyup",L=>{void 0!==this._pressTime&&(clearTimeout(this._pressTimer),this._pressTime-(new Date).getTime()<this._shortPressDuration&&!this._emittedLongPress&&this._handleShortPress(L.key),this._reset(),this.events.emit("releasedKey",L.key))})}static getInstance(){return this._instance||(this._instance=new p),this._instance}_handleShortPress(L){"Escape"===L&&this.events.emit("shortPressedEsc"),this.events.emit("shortPressedKey",L)}_handleLongPress(L){"Escape"===L&&this.events.emit("longPressedEsc"),this.events.emit("longPressedKey",L)}_reset(){this._pressTime=void 0,this._emittedLongPress=!1}}return p})(),E=(()=>{class p{static _instance;_pressTimer;_shortPressDuration=200;_pressTime;_emittedLongPress=!1;_holdingControl=!1;_keyPressHandler=R.getInstance();_suppressNativeContextMenu=!1;events=new v.EventEmitter;constructor(){this._keyPressHandler.events.addListener("holdingKey",L=>{this._holdingControl="Control"===L}),this._keyPressHandler.events.addListener("releasedKey",L=>{"Control"===L&&(this._holdingControl=!1)}),document.addEventListener("mousedown",L=>{void 0===this._pressTime&&(this._pressTime=(new Date).getTime(),this._pressTimer=setTimeout(()=>{this._handlePress(L,"long"),this._emittedLongPress=!0,clearTimeout(this._pressTimer)},this._shortPressDuration))}),document.addEventListener("mouseup",L=>{void 0!==this._pressTime&&(clearTimeout(this._pressTimer),this._pressTime-(new Date).getTime()<this._shortPressDuration&&!this._emittedLongPress&&this._handlePress(L,"short"),this._reset())}),document.addEventListener("contextmenu",L=>{this._suppressNativeContextMenu&&(L.preventDefault(),L.stopPropagation())})}static getInstance(){return this._instance||(this._instance=new p),this._instance}setSuppressNativeContextMenu(L){this._suppressNativeContextMenu=L}get suppressNativeContextMenu(){return this._suppressNativeContextMenu}_handlePress(L,T){0===L.button&&!this._holdingControl&&this.events.emit(`${T}PressedLeft`,L),0===L.button&&this._holdingControl&&this.events.emit(`${T}PressedRight`,L),2===L.button&&this.events.emit(`${T}PressedRight`,L)}_reset(){this._pressTime=void 0,this._emittedLongPress=!1}}return p})()},7374(qe){qe.exports=function(){"use strict";var D=6e4,v=36e5,R="millisecond",E="second",p="minute",K="hour",L="day",T="week",H="month",U="quarter",I="year",Z="date",F="Invalid Date",de=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,le=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,we={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(J){var ie=["th","st","nd","rd"],ee=J%100;return"["+J+(ie[(ee-20)%10]||ie[ee]||ie[0])+"]"}},me=function(J,ie,ee){var xe=String(J);return!xe||xe.length>=ie?J:""+Array(ie+1-xe.length).join(ee)+J},Se={s:me,z:function(J){var ie=-J.utcOffset(),ee=Math.abs(ie),xe=Math.floor(ee/60),ve=ee%60;return(ie<=0?"+":"-")+me(xe,2,"0")+":"+me(ve,2,"0")},m:function J(ie,ee){if(ie.date()<ee.date())return-J(ee,ie);var xe=12*(ee.year()-ie.year())+(ee.month()-ie.month()),ve=ie.clone().add(xe,H),Be=ee-ve<0,He=ie.clone().add(xe+(Be?-1:1),H);return+(-(xe+(ee-ve)/(Be?ve-He:He-ve))||0)},a:function(J){return J<0?Math.ceil(J)||0:Math.floor(J)},p:function(J){return{M:H,y:I,w:T,d:L,D:Z,h:K,m:p,s:E,ms:R,Q:U}[J]||String(J||"").toLowerCase().replace(/s$/,"")},u:function(J){return void 0===J}},Ee="en",ue={};ue[Ee]=we;var W="$isDayjsObject",Pe=function(J){return J instanceof ne||!(!J||!J[W])},j=function J(ie,ee,xe){var ve;if(!ie)return Ee;if("string"==typeof ie){var Be=ie.toLowerCase();ue[Be]&&(ve=Be),ee&&(ue[Be]=ee,ve=Be);var He=ie.split("-");if(!ve&&He.length>1)return J(He[0])}else{var Ye=ie.name;ue[Ye]=ie,ve=Ye}return!xe&&ve&&(Ee=ve),ve||!xe&&Ee},$=function(J,ie){if(Pe(J))return J.clone();var ee="object"==typeof ie?ie:{};return ee.date=J,ee.args=arguments,new ne(ee)},q=Se;q.l=j,q.i=Pe,q.w=function(J,ie){return $(J,{locale:ie.$L,utc:ie.$u,x:ie.$x,$offset:ie.$offset})};var ne=function(){function J(ee){this.$L=j(ee.locale,null,!0),this.parse(ee),this.$x=this.$x||ee.x||{},this[W]=!0}var ie=J.prototype;return ie.parse=function(ee){this.$d=function(xe){var ve=xe.date,Be=xe.utc;if(null===ve)return new Date(NaN);if(q.u(ve))return new Date;if(ve instanceof Date)return new Date(ve);if("string"==typeof ve&&!/Z$/i.test(ve)){var He=ve.match(de);if(He){var Ye=He[2]-1||0,Ze=(He[7]||"0").substring(0,3);return Be?new Date(Date.UTC(He[1],Ye,He[3]||1,He[4]||0,He[5]||0,He[6]||0,Ze)):new Date(He[1],Ye,He[3]||1,He[4]||0,He[5]||0,He[6]||0,Ze)}}return new Date(ve)}(ee),this.init()},ie.init=function(){var ee=this.$d;this.$y=ee.getFullYear(),this.$M=ee.getMonth(),this.$D=ee.getDate(),this.$W=ee.getDay(),this.$H=ee.getHours(),this.$m=ee.getMinutes(),this.$s=ee.getSeconds(),this.$ms=ee.getMilliseconds()},ie.$utils=function(){return q},ie.isValid=function(){return this.$d.toString()!==F},ie.isSame=function(ee,xe){var ve=$(ee);return this.startOf(xe)<=ve&&ve<=this.endOf(xe)},ie.isAfter=function(ee,xe){return $(ee)<this.startOf(xe)},ie.isBefore=function(ee,xe){return this.endOf(xe)<$(ee)},ie.$g=function(ee,xe,ve){return q.u(ee)?this[xe]:this.set(ve,ee)},ie.unix=function(){return Math.floor(this.valueOf()/1e3)},ie.valueOf=function(){return this.$d.getTime()},ie.startOf=function(ee,xe){var ve=this,Be=!!q.u(xe)||xe,He=q.p(ee),Ye=function(Ve,B){var X=q.w(ve.$u?Date.UTC(ve.$y,B,Ve):new Date(ve.$y,B,Ve),ve);return Be?X:X.endOf(L)},Ze=function(Ve,B){return q.w(ve.toDate()[Ve].apply(ve.toDate("s"),(Be?[0,0,0,0]:[23,59,59,999]).slice(B)),ve)},at=this.$W,dt=this.$M,Ct=this.$D,jt="set"+(this.$u?"UTC":"");switch(He){case I:return Be?Ye(1,0):Ye(31,11);case H:return Be?Ye(1,dt):Ye(0,dt+1);case T:var Lt=this.$locale().weekStart||0,be=(at<Lt?at+7:at)-Lt;return Ye(Be?Ct-be:Ct+(6-be),dt);case L:case Z:return Ze(jt+"Hours",0);case K:return Ze(jt+"Minutes",1);case p:return Ze(jt+"Seconds",2);case E:return Ze(jt+"Milliseconds",3);default:return this.clone()}},ie.endOf=function(ee){return this.startOf(ee,!1)},ie.$set=function(ee,xe){var ve,Be=q.p(ee),He="set"+(this.$u?"UTC":""),Ye=(ve={},ve[L]=He+"Date",ve[Z]=He+"Date",ve[H]=He+"Month",ve[I]=He+"FullYear",ve[K]=He+"Hours",ve[p]=He+"Minutes",ve[E]=He+"Seconds",ve[R]=He+"Milliseconds",ve)[Be],Ze=Be===L?this.$D+(xe-this.$W):xe;if(Be===H||Be===I){var at=this.clone().set(Z,1);at.$d[Ye](Ze),at.init(),this.$d=at.set(Z,Math.min(this.$D,at.daysInMonth())).$d}else Ye&&this.$d[Ye](Ze);return this.init(),this},ie.set=function(ee,xe){return this.clone().$set(ee,xe)},ie.get=function(ee){return this[q.p(ee)]()},ie.add=function(ee,xe){var ve,Be=this;ee=Number(ee);var He=q.p(xe),Ye=function(dt){var Ct=$(Be);return q.w(Ct.date(Ct.date()+Math.round(dt*ee)),Be)};if(He===H)return this.set(H,this.$M+ee);if(He===I)return this.set(I,this.$y+ee);if(He===L)return Ye(1);if(He===T)return Ye(7);var Ze=(ve={},ve[p]=D,ve[K]=v,ve[E]=1e3,ve)[He]||1,at=this.$d.getTime()+ee*Ze;return q.w(at,this)},ie.subtract=function(ee,xe){return this.add(-1*ee,xe)},ie.format=function(ee){var xe=this,ve=this.$locale();if(!this.isValid())return ve.invalidDate||F;var Be=ee||"YYYY-MM-DDTHH:mm:ssZ",He=q.z(this),Ye=this.$H,Ze=this.$m,at=this.$M,dt=ve.weekdays,Ct=ve.months,Lt=function(B,X,Q,ye){return B&&(B[X]||B(xe,Be))||Q[X].slice(0,ye)},be=function(B){return q.s(Ye%12||12,B,"0")},Ve=ve.meridiem||function(B,X,Q){var ye=B<12?"AM":"PM";return Q?ye.toLowerCase():ye};return Be.replace(le,function(B,X){return X||function(Q){switch(Q){case"YY":return String(xe.$y).slice(-2);case"YYYY":return q.s(xe.$y,4,"0");case"M":return at+1;case"MM":return q.s(at+1,2,"0");case"MMM":return Lt(ve.monthsShort,at,Ct,3);case"MMMM":return Lt(Ct,at);case"D":return xe.$D;case"DD":return q.s(xe.$D,2,"0");case"d":return String(xe.$W);case"dd":return Lt(ve.weekdaysMin,xe.$W,dt,2);case"ddd":return Lt(ve.weekdaysShort,xe.$W,dt,3);case"dddd":return dt[xe.$W];case"H":return String(Ye);case"HH":return q.s(Ye,2,"0");case"h":return be(1);case"hh":return be(2);case"a":return Ve(Ye,Ze,!0);case"A":return Ve(Ye,Ze,!1);case"m":return String(Ze);case"mm":return q.s(Ze,2,"0");case"s":return String(xe.$s);case"ss":return q.s(xe.$s,2,"0");case"SSS":return q.s(xe.$ms,3,"0");case"Z":return He}return null}(B)||He.replace(":","")})},ie.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ie.diff=function(ee,xe,ve){var Be,He=this,Ye=q.p(xe),Ze=$(ee),at=(Ze.utcOffset()-this.utcOffset())*D,dt=this-Ze,Ct=function(){return q.m(He,Ze)};switch(Ye){case I:Be=Ct()/12;break;case H:Be=Ct();break;case U:Be=Ct()/3;break;case T:Be=(dt-at)/6048e5;break;case L:Be=(dt-at)/864e5;break;case K:Be=dt/v;break;case p:Be=dt/D;break;case E:Be=dt/1e3;break;default:Be=dt}return ve?Be:q.a(Be)},ie.daysInMonth=function(){return this.endOf(H).$D},ie.$locale=function(){return ue[this.$L]},ie.locale=function(ee,xe){if(!ee)return this.$L;var ve=this.clone(),Be=j(ee,xe,!0);return Be&&(ve.$L=Be),ve},ie.clone=function(){return q.w(this.$d,this)},ie.toDate=function(){return new Date(this.valueOf())},ie.toJSON=function(){return this.isValid()?this.toISOString():null},ie.toISOString=function(){return this.$d.toISOString()},ie.toString=function(){return this.$d.toUTCString()},J}(),he=ne.prototype;return $.prototype=he,[["$ms",R],["$s",E],["$m",p],["$H",K],["$W",L],["$M",H],["$y",I],["$D",Z]].forEach(function(J){he[J[1]]=function(ie){return this.$g(ie,J[0],J[1])}}),$.extend=function(J,ie){return J.$i||(J(ie,ne,$),J.$i=!0),$},$.locale=j,$.isDayjs=Pe,$.unix=function(J){return $(1e3*J)},$.en=ue[Ee],$.Ls=ue,$.p={},$}()},3798(qe,Ce,D){"use strict";D.d(Ce,{Z:()=>T});var v=D(3236),R=D(9974),E=D(8750),p=D(4360),L=D(1584);function T(H,U=v.E){return function K(H){return(0,R.N)((U,I)=>{let Z=!1,F=null,de=null,le=!1;const we=()=>{if(de?.unsubscribe(),de=null,Z){Z=!1;const Se=F;F=null,I.next(Se)}le&&I.complete()},me=()=>{de=null,le&&I.complete()};U.subscribe((0,p._)(I,Se=>{Z=!0,F=Se,de||(0,E.Tg)(H(Se)).subscribe(de=(0,p._)(I,we,me))},()=>{le=!0,(!Z||!de||de.closed)&&I.complete()}))})}(()=>(0,L.O)(H,U))}},5964(qe,Ce,D){"use strict";D.d(Ce,{p:()=>E});var v=D(9974),R=D(4360);function E(p,K){return(0,v.N)((L,T)=>{let H=0;L.subscribe((0,R._)(T,U=>p.call(K,U,H++)&&T.next(U)))})}},536(qe,Ce,D){"use strict";D.d(Ce,{X:()=>T});var v=D(6780),R=D(8359);const E={schedule(U){let I=requestAnimationFrame,Z=cancelAnimationFrame;const{delegate:F}=E;F&&(I=F.requestAnimationFrame,Z=F.cancelAnimationFrame);const de=I(le=>{Z=void 0,U(le)});return new R.yU(()=>Z?.(de))},requestAnimationFrame(...U){const{delegate:I}=E;return(I?.requestAnimationFrame||requestAnimationFrame)(...U)},cancelAnimationFrame(...U){const{delegate:I}=E;return(I?.cancelAnimationFrame||cancelAnimationFrame)(...U)},delegate:void 0};var K=D(9687);const T=new class L extends K.q{flush(I){let Z;this._active=!0,I?Z=I.id:(Z=this._scheduled,this._scheduled=void 0);const{actions:F}=this;let de;I=I||F.shift();do{if(de=I.execute(I.state,I.delay))break}while((I=F[0])&&I.id===Z&&F.shift());if(this._active=!1,de){for(;(I=F[0])&&I.id===Z&&F.shift();)I.unsubscribe();throw de}}}(class p extends v.R{constructor(I,Z){super(I,Z),this.scheduler=I,this.work=Z}requestAsyncId(I,Z,F=0){return null!==F&&F>0?super.requestAsyncId(I,Z,F):(I.actions.push(this),I._scheduled||(I._scheduled=E.requestAnimationFrame(()=>I.flush(void 0))))}recycleAsyncId(I,Z,F=0){var de;if(null!=F?F>0:this.delay>0)return super.recycleAsyncId(I,Z,F);const{actions:le}=I;null!=Z&&Z===I._scheduled&&(null===(de=le[le.length-1])||void 0===de?void 0:de.id)!==Z&&(E.cancelAnimationFrame(Z),I._scheduled=void 0)}})},2001(qe,Ce){"use strict";var D=this&&this.__spreadArrays||function(){for(var R=0,E=0,p=arguments.length;E<p;E++)R+=arguments[E].length;var K=Array(R),L=0;for(E=0;E<p;E++)for(var T=arguments[E],H=0,U=T.length;H<U;H++,L++)K[L]=T[H];return K};Object.defineProperty(Ce,"__esModule",{value:!0});var v=function(){return function R(){var E=this;this.events={},this.maxListeners=1/0,this.emit=function(p){for(var K=[],L=1;L<arguments.length;L++)K[L-1]=arguments[L];if(E.events[p]){for(var T=E.events[p].length,U=0,I=Array.from(E.events[p]);U<I.length;U++)I[U].apply(void 0,K);return!!T}return!1},this.on=function(p,K){return E.addListener(p,K),E},this.once=function(p,K){var L=function(){for(var T=[],H=0;H<arguments.length;H++)T[H]=arguments[H];K.apply(void 0,T),E.removeListener(p,L)};return E.addListener(p,L),E},this.addListener=function(p,K){return p in E.events?E.events[p].push(K):E.events[p]=[K],E.maxListeners!==1/0&&E.maxListeners<=E.events[p].length&&console.warn('Maximum event listeners for "'+p+'" event!'),E},this.removeListener=function(p,K){if(p in E.events){var L=E.events[p].indexOf(K);-1!==L&&E.events[p].splice(L,1)}return E},this.hasListeners=function(p){return E.events[p]&&!!E.events[p].length},this.prependListener=function(p,K){return p in E.events?E.events[p].unshift(K):E.events[p]=[K],E},this.prependOnceListener=function(p,K){var L=function(){for(var T=[],H=0;H<arguments.length;H++)T[H]=arguments[H];K.apply(void 0,T),E.removeListener(p,L)};return E.prependListener(p,L),E},this.off=function(p,K){return E.removeListener(p,K)},this.removeAllListeners=function(p){return delete E.events[p],E},this.setMaxListeners=function(p){return E.maxListeners=p,E},this.getMaxListeners=function(){return E.maxListeners},this.listeners=function(p){return D(E.events[p])},this.rawListeners=function(p){return E.events[p]},this.eventNames=function(){return Object.keys(E.events)},this.listenerCount=function(p){return E.events[p]&&E.events[p].length||0}}}();Ce.EventEmitter=v},1339(qe,Ce,D){"use strict";function v(R){for(var E in R)Ce.hasOwnProperty(E)||(Ce[E]=R[E])}Object.defineProperty(Ce,"__esModule",{value:!0}),v(D(9146)),v(D(2001))},9146(qe,Ce){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.asTypedEventEmitter=function D(v){return v}},8173(qe,Ce,D){"use strict";D.d(Ce,{FX:()=>Ee,If:()=>v,K2:()=>L,PZ:()=>Se,hZ:()=>E,i0:()=>p,iF:()=>T,kY:()=>I,kp:()=>R,sf:()=>me});var v=function(ue){return ue[ue.State=0]="State",ue[ue.Transition=1]="Transition",ue[ue.Sequence=2]="Sequence",ue[ue.Group=3]="Group",ue[ue.Animate=4]="Animate",ue[ue.Keyframes=5]="Keyframes",ue[ue.Style=6]="Style",ue[ue.Trigger=7]="Trigger",ue[ue.Reference=8]="Reference",ue[ue.AnimateChild=9]="AnimateChild",ue[ue.AnimateRef=10]="AnimateRef",ue[ue.Query=11]="Query",ue[ue.Stagger=12]="Stagger",ue}(v||{});const R="*";function E(ue,W){return{type:v.Trigger,name:ue,definitions:W,options:{}}}function p(ue,W=null){return{type:v.Animate,styles:W,timings:ue}}function L(ue,W=null){return{type:v.Sequence,steps:ue,options:W}}function T(ue){return{type:v.Style,styles:ue,offset:null}}function I(ue,W,Pe=null){return{type:v.Transition,expr:ue,animation:W,options:Pe}}class me{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(W=0,Pe=0){this.totalTime=W+Pe}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(W=>W()),this._onDoneFns=[])}onStart(W){this._originalOnStartFns.push(W),this._onStartFns.push(W)}onDone(W){this._originalOnDoneFns.push(W),this._onDoneFns.push(W)}onDestroy(W){this._onDestroyFns.push(W)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(W=>W()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(W=>W()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(W){this._position=this.totalTime?W*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(W){const Pe="start"==W?this._onStartFns:this._onDoneFns;Pe.forEach(j=>j()),Pe.length=0}}class Se{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(W){this.players=W;let Pe=0,j=0,$=0;const q=this.players.length;0==q?queueMicrotask(()=>this._onFinish()):this.players.forEach(ne=>{ne.onDone(()=>{++Pe==q&&this._onFinish()}),ne.onDestroy(()=>{++j==q&&this._onDestroy()}),ne.onStart(()=>{++$==q&&this._onStart()})}),this.totalTime=this.players.reduce((ne,he)=>Math.max(ne,he.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(W=>W()),this._onDoneFns=[])}init(){this.players.forEach(W=>W.init())}onStart(W){this._onStartFns.push(W)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(W=>W()),this._onStartFns=[])}onDone(W){this._onDoneFns.push(W)}onDestroy(W){this._onDestroyFns.push(W)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(W=>W.play())}pause(){this.players.forEach(W=>W.pause())}restart(){this.players.forEach(W=>W.restart())}finish(){this._onFinish(),this.players.forEach(W=>W.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(W=>W.destroy()),this._onDestroyFns.forEach(W=>W()),this._onDestroyFns=[])}reset(){this.players.forEach(W=>W.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(W){const Pe=W*this.totalTime;this.players.forEach(j=>{const $=j.totalTime?Math.min(1,Pe/j.totalTime):1;j.setPosition($)})}getPosition(){const W=this.players.reduce((Pe,j)=>null===Pe||j.totalTime>Pe.totalTime?j:Pe,null);return null!=W?W.getPosition():0}beforeDestroy(){this.players.forEach(W=>{W.beforeDestroy&&W.beforeDestroy()})}triggerCallback(W){const Pe="start"==W?this._onStartFns:this._onDoneFns;Pe.forEach(j=>j()),Pe.length=0}}const Ee="!"},7523(qe,Ce,D){"use strict";function v(R){return Array.isArray(R)?R:[R]}D.d(Ce,{F:()=>v})},9752(qe,Ce,D){"use strict";D.d(Ce,{dS:()=>K});var v=D(5802);const R=new v.nKC("cdk-dir-doc",{providedIn:"root",factory:()=>(0,v.WQX)(v.qQL)}),E=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let K=(()=>{class L{get value(){return this.valueSignal()}valueSignal=(0,v.vPA)("ltr");change=new v.bkB;constructor(){const H=(0,v.WQX)(R,{optional:!0});H&&this.valueSignal.set(function p(L){const T=L?.toLowerCase()||"";return"auto"===T&&typeof navigator<"u"&&navigator?.language?E.test(navigator.language)?"rtl":"ltr":"rtl"===T?"rtl":"ltr"}((H.body?H.body.dir:null)||(H.documentElement?H.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(U){return new(U||L)};static \u0275prov=v.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},7384(qe,Ce,D){"use strict";D.d(Ce,{OE:()=>R,i8:()=>p});var v=D(5547);function R(K,L=0){return function E(K){return!isNaN(parseFloat(K))&&!isNaN(Number(K))}(K)?Number(K):2===arguments.length?L:0}function p(K){return K instanceof v.aKT?K.nativeElement:K}},3531(qe,Ce,D){"use strict";D.d(Ce,{g:()=>p});var v=D(5802),R=D(5547);const E={};class p{_appId=(0,v.WQX)(R.sZ2);static _infix=`a${Math.floor(1e5*Math.random()).toString()}`;getId(L,T=!1){return"ng"!==this._appId&&(L+=this._appId),E.hasOwnProperty(L)||(E[L]=0),`${L}${T?p._infix+"-":""}${E[L]++}`}static \u0275fac=function(T){return new(T||p)};static \u0275prov=v.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}},63(qe,Ce,D){"use strict";D.d(Ce,{hJ:()=>At,z_:()=>_i});var v=D(5802),R=D(5547),E=D(1413),p=D(6494);function L(k,S){return k?S?k.endsWith("/")?S.startsWith("/")?k+S.slice(1):k+S:S.startsWith("/")?k+S:`${k}/${S}`:k:S}function T(k){const S=k.search(/#|\?|$/);return"/"===k[S-1]?k.slice(0,S-1)+k.slice(S):k}function H(k){return k&&"?"!==k[0]?`?${k}`:k}let U=(()=>{class k{historyGo(P){throw new Error("")}static \u0275fac=function(M){return new(M||k)};static \u0275prov=v.jDH({token:k,factory:()=>(0,v.WQX)(Z),providedIn:"root"})}return k})();const I=new v.nKC("");let Z=(()=>{class k extends U{_platformLocation;_baseHref;_removeListenerFns=[];constructor(P,M){super(),this._platformLocation=P,this._baseHref=M??this._platformLocation.getBaseHrefFromDOM()??(0,v.WQX)(v.qQL).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(P){this._removeListenerFns.push(this._platformLocation.onPopState(P),this._platformLocation.onHashChange(P))}getBaseHref(){return this._baseHref}prepareExternalUrl(P){return L(this._baseHref,P)}path(P=!1){const M=this._platformLocation.pathname+H(this._platformLocation.search),G=this._platformLocation.hash;return G&&P?`${M}${G}`:M}pushState(P,M,G,re){const De=this.prepareExternalUrl(G+H(re));this._platformLocation.pushState(P,M,De)}replaceState(P,M,G,re){const De=this.prepareExternalUrl(G+H(re));this._platformLocation.replaceState(P,M,De)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(P=0){this._platformLocation.historyGo?.(P)}static \u0275fac=function(M){return new(M||k)(v.KVO(p.Vw),v.KVO(I,8))};static \u0275prov=v.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),we=(()=>{class k{_subject=new E.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(P){this._locationStrategy=P;const M=this._locationStrategy.getBaseHref();this._basePath=function ue(k){if(new RegExp("^(https?:)?//").test(k)){const[,P]=k.split(/\/\/[^\/]+/);return P}return k}(T(Ee(M))),this._locationStrategy.onPopState(G=>{this._subject.next({url:this.path(!0),pop:!0,state:G.state,type:G.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(P=!1){return this.normalize(this._locationStrategy.path(P))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(P,M=""){return this.path()==this.normalize(P+H(M))}normalize(P){return k.stripTrailingSlash(function Se(k,S){if(!k||!S.startsWith(k))return S;const P=S.substring(k.length);return""===P||["/",";","?","#"].includes(P[0])?P:S}(this._basePath,Ee(P)))}prepareExternalUrl(P){return P&&"/"!==P[0]&&(P="/"+P),this._locationStrategy.prepareExternalUrl(P)}go(P,M="",G=null){this._locationStrategy.pushState(G,"",P,M),this._notifyUrlChangeListeners(this.prepareExternalUrl(P+H(M)),G)}replaceState(P,M="",G=null){this._locationStrategy.replaceState(G,"",P,M),this._notifyUrlChangeListeners(this.prepareExternalUrl(P+H(M)),G)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(P=0){this._locationStrategy.historyGo?.(P)}onUrlChange(P){return this._urlChangeListeners.push(P),this._urlChangeSubscription??=this.subscribe(M=>{this._notifyUrlChangeListeners(M.url,M.state)}),()=>{const M=this._urlChangeListeners.indexOf(P);this._urlChangeListeners.splice(M,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(P="",M){this._urlChangeListeners.forEach(G=>G(P,M))}subscribe(P,M,G){return this._subject.subscribe({next:P,error:M??void 0,complete:G??void 0})}static normalizeQueryParams=H;static joinWithSlash=L;static stripTrailingSlash=T;static \u0275fac=function(M){return new(M||k)(v.KVO(U))};static \u0275prov=v.jDH({token:k,factory:()=>function me(){return new we((0,v.KVO)(U))}(),providedIn:"root"})}return k})();function Ee(k){return k.replace(/\/index.html$/,"")}var W=D(7421),Pe=D(9867);function j(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var $=D(3293),q=D(8359);function ne(k){return null==k?"":"string"==typeof k?k:`${k}px`}var he=D(7523),J=D(5272),ie=D(6939);let ve;function Be(){if(null==ve){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ve=!1,ve;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)ve=!0;else{const k=Element.prototype.scrollTo;ve=!!k&&!/\{\s*\[native code\]\s*\}/.test(k.toString())}}return ve}var Ye=D(5964),Ze=D(3531),at=D(9752),dt=D(8203);const yt=Be();class Eo{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(S,P){this._viewportRuler=S,this._document=P}attach(){}enable(){if(this._canBeEnabled()){const S=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=S.style.left||"",this._previousHTMLStyles.top=S.style.top||"",S.style.left=ne(-this._previousScrollPosition.left),S.style.top=ne(-this._previousScrollPosition.top),S.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const S=this._document.documentElement,M=S.style,G=this._document.body.style,re=M.scrollBehavior||"",De=G.scrollBehavior||"";this._isEnabled=!1,M.left=this._previousHTMLStyles.left,M.top=this._previousHTMLStyles.top,S.classList.remove("cdk-global-scrollblock"),yt&&(M.scrollBehavior=G.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yt&&(M.scrollBehavior=re,G.scrollBehavior=De)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const P=this._document.documentElement,M=this._viewportRuler.getViewportSize();return P.scrollHeight>M.height||P.scrollWidth>M.width}}class Hi{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(S,P,M,G){this._scrollDispatcher=S,this._ngZone=P,this._viewportRuler=M,this._config=G}attach(S){this._overlayRef=S}enable(){if(this._scrollSubscription)return;const S=this._scrollDispatcher.scrolled(0).pipe((0,Ye.p)(P=>!P||!this._overlayRef.overlayElement.contains(P.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=S.subscribe(()=>{const P=this._viewportRuler.getViewportScrollPosition().top;Math.abs(P-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=S.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class Ci{enable(){}disable(){}attach(){}}function Gi(k,S){return S.some(P=>k.bottom<P.top||k.top>P.bottom||k.right<P.left||k.left>P.right)}function Zt(k,S){return S.some(P=>k.top<P.top||k.bottom>P.bottom||k.left<P.left||k.right>P.right)}class xo{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(S,P,M,G){this._scrollDispatcher=S,this._viewportRuler=P,this._ngZone=M,this._config=G}attach(S){this._overlayRef=S}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const P=this._overlayRef.overlayElement.getBoundingClientRect(),{width:M,height:G}=this._viewportRuler.getViewportSize();Gi(P,[{width:M,height:G,bottom:G,right:M,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Di=(()=>{class k{_injector=(0,v.WQX)(v.zZn);constructor(){}noop=()=>new Ci;close=P=>function yn(k,S){return new Hi(k.get(J.R),k.get(v.SKi),k.get(J.Xj),S)}(this._injector,P);block=()=>function Qt(k){return new Eo(k.get(J.Xj),k.get(v.qQL))}(this._injector);reposition=P=>function it(k,S){return new xo(k.get(J.R),k.get(J.Xj),k.get(v.SKi),S)}(this._injector,P);static \u0275fac=function(M){return new(M||k)};static \u0275prov=v.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})();class ai{positionStrategy;scrollStrategy=new Ci;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(S){if(S){const P=Object.keys(S);for(const M of P)void 0!==S[M]&&(this[M]=S[M])}}}class Ni{connectionPair;scrollableViewProperties;constructor(S,P){this.connectionPair=S,this.scrollableViewProperties=P}}let Fo=(()=>{class k{_attachedOverlays=[];_document=(0,v.WQX)(v.qQL);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(P){this.remove(P),this._attachedOverlays.push(P)}remove(P){const M=this._attachedOverlays.indexOf(P);M>-1&&this._attachedOverlays.splice(M,1),0===this._attachedOverlays.length&&this.detach()}canReceiveEvent(P,M,G){return!(G.observers.length<1)&&(!P.eventPredicate||P.eventPredicate(M))}static \u0275fac=function(M){return new(M||k)};static \u0275prov=v.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),Mi=(()=>{class k extends Fo{_ngZone=(0,v.WQX)(v.SKi);_renderer=(0,v.WQX)(R._9s).createRenderer(null,null);_cleanupKeydown;add(P){super.add(P),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=P=>{const M=this._attachedOverlays;for(let G=M.length-1;G>-1;G--){const re=M[G];if(this.canReceiveEvent(re,P,re._keydownEvents)){this._ngZone.run(()=>re._keydownEvents.next(P));break}}};static \u0275fac=(()=>{let P;return function(G){return(P||(P=R.xGo(k)))(G||k)}})();static \u0275prov=v.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),wi=(()=>{class k extends Fo{_platform=(0,v.WQX)(W.O);_ngZone=(0,v.WQX)(v.SKi);_renderer=(0,v.WQX)(R._9s).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(P){if(super.add(P),!this._isAttached){const M=this._document.body,G={capture:!0},re=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[re.listen(M,"pointerdown",this._pointerDownListener,G),re.listen(M,"click",this._clickListener,G),re.listen(M,"auxclick",this._clickListener,G),re.listen(M,"contextmenu",this._clickListener,G)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=M.style.cursor,M.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(P=>P()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=P=>{this._pointerDownEventTarget=(0,Pe.Fb)(P)};_clickListener=P=>{const M=(0,Pe.Fb)(P),G="click"===P.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:M;this._pointerDownEventTarget=null;const re=this._attachedOverlays.slice();for(let De=re.length-1;De>-1;De--){const Oe=re[De],ze=Oe._outsidePointerEvents;if(Oe.hasAttached()&&this.canReceiveEvent(Oe,P,ze)){if(wt(Oe.overlayElement,M)||wt(Oe.overlayElement,G))break;this._ngZone?this._ngZone.run(()=>ze.next(P)):ze.next(P)}}};static \u0275fac=(()=>{let P;return function(G){return(P||(P=R.xGo(k)))(G||k)}})();static \u0275prov=v.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})();function wt(k,S){const P=typeof ShadowRoot<"u"&&ShadowRoot;let M=S;for(;M;){if(M===k)return!0;M=P&&M instanceof ShadowRoot?M.host:M.parentNode}return!1}let Tt=(()=>{class k{static \u0275fac=function(M){return new(M||k)};static \u0275cmp=R.VBU({type:k,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(M,G){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:auto;top:0;left:0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}\n"],encapsulation:2,changeDetection:0})}return k})(),to=(()=>{class k{_platform=(0,v.WQX)(W.O);_containerElement;_document=(0,v.WQX)(v.qQL);_styleLoader=(0,v.WQX)($.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const P="cdk-overlay-container";if(this._platform.isBrowser||j()){const G=this._document.querySelectorAll(`.${P}[platform="server"], .${P}[platform="test"]`);for(let re=0;re<G.length;re++)G[re].remove()}const M=this._document.createElement("div");M.classList.add(P),j()?M.setAttribute("platform","test"):this._platform.isBrowser||M.setAttribute("platform","server"),this._document.body.appendChild(M),this._containerElement=M}_loadStyles(){this._styleLoader.load(Tt)}static \u0275fac=function(M){return new(M||k)};static \u0275prov=v.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})();class Dt{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(S,P,M,G){this._renderer=P,this._ngZone=M,this.element=S.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=P.listen(this.element,"click",G)}detach(){this._ngZone.runOutsideAngular(()=>{const S=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(S,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),S.style.pointerEvents="none",S.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}}function Jt(k){return k&&1===k.nodeType}class li{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new E.B;_attachments=new E.B;_detachments=new E.B;_positionStrategy;_scrollStrategy;_locationChanges=q.yU.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new E.B;_outsidePointerEvents=new E.B;_afterNextRenderRef;constructor(S,P,M,G,re,De,Oe,ze,Je,Le=!1,et,Pt){this._portalOutlet=S,this._host=P,this._pane=M,this._config=G,this._ngZone=re,this._keyboardDispatcher=De,this._document=Oe,this._location=ze,this._outsideClickDispatcher=Je,this._animationsDisabled=Le,this._injector=et,this._renderer=Pt,G.scrollStrategy&&(this._scrollStrategy=G.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=G.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(S){if(this._disposed)return null;this._attachHost();const P=this._portalOutlet.attach(S);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,R.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof P?.onDestroy&&P.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),P}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const S=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),S}dispose(){if(this._disposed)return;const S=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,S&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(S){S!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=S,this.hasAttached()&&(S.attach(this),this.updatePosition()))}updateSize(S){this._config={...this._config,...S},this._updateElementSize()}setDirection(S){this._config={...this._config,direction:S},this._updateElementDirection()}addPanelClass(S){this._pane&&this._toggleClasses(this._pane,S,!0)}removePanelClass(S){this._pane&&this._toggleClasses(this._pane,S,!1)}getDirection(){const S=this._config.direction;return S?"string"==typeof S?S:S.value:"ltr"}updateScrollStrategy(S){S!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=S,this.hasAttached()&&(S.attach(this),S.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const S=this._pane.style;S.width=ne(this._config.width),S.height=ne(this._config.height),S.minWidth=ne(this._config.minWidth),S.minHeight=ne(this._config.minHeight),S.maxWidth=ne(this._config.maxWidth),S.maxHeight=ne(this._config.maxHeight)}_togglePointerEvents(S){this._pane.style.pointerEvents=S?"":"none"}_attachHost(){if(!this._host.parentElement){const S=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Jt(S)?S.after(this._host):"parent"===S?.type?S.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch{}}_attachBackdrop(){const S="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Dt(this._document,this._renderer,this._ngZone,P=>{this._backdropClick.next(P)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(S))}):this._backdropRef.element.classList.add(S)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(S,P,M){const G=(0,he.F)(P||[]).filter(re=>!!re);G.length&&(M?S.classList.add(...G):S.classList.remove(...G))}_detachContentWhenEmpty(){let S=!1;try{this._detachContentAfterRenderRef=(0,R.mal)(()=>{S=!0,this._detachContent()},{injector:this._injector})}catch(P){if(S)throw P;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){const S=this._scrollStrategy;S?.disable(),S?.detach?.()}}const di="cdk-overlay-connected-position-bounding-box",bi=/([A-Za-z%]+)$/;class ci{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new E.B;_resizeSubscription=q.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(S,P,M,G,re){this._viewportRuler=P,this._document=M,this._platform=G,this._overlayContainer=re,this.setOrigin(S)}attach(S){this._validatePositions(),S.hostElement.classList.add(di),this._overlayRef=S,this._boundingBox=S.hostElement,this._pane=S.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();const S=this._originRect,P=this._overlayRect,M=this._viewportRect,G=this._containerRect,re=[];let De;for(let Oe of this._preferredPositions){let ze=this._getOriginPoint(S,G,Oe),Je=this._getOverlayPoint(ze,P,Oe),Le=this._getOverlayFit(Je,P,M,Oe);if(Le.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Oe,ze);this._canFitWithFlexibleDimensions(Le,Je,M)?re.push({position:Oe,origin:ze,overlayRect:P,boundingBoxRect:this._calculateBoundingBoxRect(ze,Oe)}):(!De||De.overlayFit.visibleArea<Le.visibleArea)&&(De={overlayFit:Le,overlayPoint:Je,originPoint:ze,position:Oe,overlayRect:P})}if(re.length){let Oe=null,ze=-1;for(const Je of re){const Le=Je.boundingBoxRect.width*Je.boundingBoxRect.height*(Je.position.weight||1);Le>ze&&(ze=Le,Oe=Je)}return this._isPushed=!1,void this._applyPosition(Oe.position,Oe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(De.position,De.originPoint);this._applyPosition(De.position,De.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ht(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(di),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const S=this._lastPosition;S?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(S,this._getOriginPoint(this._originRect,this._containerRect,S))):this.apply()}withScrollableContainers(S){return this._scrollables=S,this}withPositions(S){return this._preferredPositions=S,-1===S.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(S){return this._viewportMargin=S,this}withFlexibleDimensions(S=!0){return this._hasFlexibleDimensions=S,this}withGrowAfterOpen(S=!0){return this._growAfterOpen=S,this}withPush(S=!0){return this._canPush=S,this}withLockedPosition(S=!0){return this._positionLocked=S,this}setOrigin(S){return this._origin=S,this}withDefaultOffsetX(S){return this._offsetX=S,this}withDefaultOffsetY(S){return this._offsetY=S,this}withTransformOriginOn(S){return this._transformOriginSelector=S,this}withPopoverLocation(S){return this._popoverLocation=S,this}getPopoverInsertionPoint(){return"global"===this._popoverLocation?null:"inline"!==this._popoverLocation?this._popoverLocation:this._origin instanceof R.aKT?this._origin.nativeElement:Jt(this._origin)?this._origin:null}_getOriginPoint(S,P,M){let G,re;if("center"==M.originX)G=S.left+S.width/2;else{const De=this._isRtl()?S.right:S.left,Oe=this._isRtl()?S.left:S.right;G="start"==M.originX?De:Oe}return P.left<0&&(G-=P.left),re="center"==M.originY?S.top+S.height/2:"top"==M.originY?S.top:S.bottom,P.top<0&&(re-=P.top),{x:G,y:re}}_getOverlayPoint(S,P,M){let G,re;return G="center"==M.overlayX?-P.width/2:"start"===M.overlayX?this._isRtl()?-P.width:0:this._isRtl()?0:-P.width,re="center"==M.overlayY?-P.height/2:"top"==M.overlayY?0:-P.height,{x:S.x+G,y:S.y+re}}_getOverlayFit(S,P,M,G){const re=Ri(P);let{x:De,y:Oe}=S,ze=this._getOffset(G,"x"),Je=this._getOffset(G,"y");ze&&(De+=ze),Je&&(Oe+=Je);let Pt=0-Oe,Gt=Oe+re.height-M.height,Nt=this._subtractOverflows(re.width,0-De,De+re.width-M.width),Kt=this._subtractOverflows(re.height,Pt,Gt),Vt=Nt*Kt;return{visibleArea:Vt,isCompletelyWithinViewport:re.width*re.height===Vt,fitsInViewportVertically:Kt===re.height,fitsInViewportHorizontally:Nt==re.width}}_canFitWithFlexibleDimensions(S,P,M){if(this._hasFlexibleDimensions){const G=M.bottom-P.y,re=M.right-P.x,De=Si(this._overlayRef.getConfig().minHeight),Oe=Si(this._overlayRef.getConfig().minWidth);return(S.fitsInViewportVertically||null!=De&&De<=G)&&(S.fitsInViewportHorizontally||null!=Oe&&Oe<=re)}return!1}_pushOverlayOnScreen(S,P,M){if(this._previousPushAmount&&this._positionLocked)return{x:S.x+this._previousPushAmount.x,y:S.y+this._previousPushAmount.y};const G=Ri(P),re=this._viewportRect,De=Math.max(S.x+G.width-re.width,0),Oe=Math.max(S.y+G.height-re.height,0),ze=Math.max(re.top-M.top-S.y,0),Je=Math.max(re.left-M.left-S.x,0);let Le=0,et=0;return Le=G.width<=re.width?Je||-De:S.x<this._getViewportMarginStart()?re.left-M.left-S.x:0,et=G.height<=re.height?ze||-Oe:S.y<this._getViewportMarginTop()?re.top-M.top-S.y:0,this._previousPushAmount={x:Le,y:et},{x:S.x+Le,y:S.y+et}}_applyPosition(S,P){if(this._setTransformOrigin(S),this._setOverlayElementStyles(P,S),this._setBoundingBoxStyles(P,S),S.panelClass&&this._addPanelClasses(S.panelClass),this._positionChanges.observers.length){const M=this._getScrollVisibility();if(S!==this._lastPosition||!this._lastScrollVisibility||!function Mt(k,S){return k===S||k.isOriginClipped===S.isOriginClipped&&k.isOriginOutsideView===S.isOriginOutsideView&&k.isOverlayClipped===S.isOverlayClipped&&k.isOverlayOutsideView===S.isOverlayOutsideView}(this._lastScrollVisibility,M)){const G=new Ni(S,M);this._positionChanges.next(G)}this._lastScrollVisibility=M}this._lastPosition=S,this._isInitialRender=!1}_setTransformOrigin(S){if(!this._transformOriginSelector)return;const P=this._boundingBox.querySelectorAll(this._transformOriginSelector);let M,G=S.overlayY;M="center"===S.overlayX?"center":this._isRtl()?"start"===S.overlayX?"right":"left":"start"===S.overlayX?"left":"right";for(let re=0;re<P.length;re++)P[re].style.transformOrigin=`${M} ${G}`}_calculateBoundingBoxRect(S,P){const M=this._viewportRect,G=this._isRtl();let re,De,Oe;if("top"===P.overlayY)De=S.y,re=M.height-De+this._getViewportMarginBottom();else if("bottom"===P.overlayY)Oe=M.height-S.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),re=M.height-Oe+this._getViewportMarginTop();else{const Gt=Math.min(M.bottom-S.y+M.top,S.y),Nt=this._lastBoundingBoxSize.height;re=2*Gt,De=S.y-Gt,re>Nt&&!this._isInitialRender&&!this._growAfterOpen&&(De=S.y-Nt/2)}const ze="start"===P.overlayX&&!G||"end"===P.overlayX&&G;let Le,et,Pt;if("end"===P.overlayX&&!G||"start"===P.overlayX&&G)Pt=M.width-S.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),Le=S.x-this._getViewportMarginStart();else if(ze)et=S.x,Le=M.right-S.x-this._getViewportMarginEnd();else{const Gt=Math.min(M.right-S.x+M.left,S.x),Nt=this._lastBoundingBoxSize.width;Le=2*Gt,et=S.x-Gt,Le>Nt&&!this._isInitialRender&&!this._growAfterOpen&&(et=S.x-Nt/2)}return{top:De,left:et,bottom:Oe,right:Pt,width:Le,height:re}}_setBoundingBoxStyles(S,P){const M=this._calculateBoundingBoxRect(S,P);!this._isInitialRender&&!this._growAfterOpen&&(M.height=Math.min(M.height,this._lastBoundingBoxSize.height),M.width=Math.min(M.width,this._lastBoundingBoxSize.width));const G={};if(this._hasExactPosition())G.top=G.left="0",G.bottom=G.right="auto",G.maxHeight=G.maxWidth="",G.width=G.height="100%";else{const re=this._overlayRef.getConfig().maxHeight,De=this._overlayRef.getConfig().maxWidth;G.width=ne(M.width),G.height=ne(M.height),G.top=ne(M.top)||"auto",G.bottom=ne(M.bottom)||"auto",G.left=ne(M.left)||"auto",G.right=ne(M.right)||"auto",G.alignItems="center"===P.overlayX?"center":"end"===P.overlayX?"flex-end":"flex-start",G.justifyContent="center"===P.overlayY?"center":"bottom"===P.overlayY?"flex-end":"flex-start",re&&(G.maxHeight=ne(re)),De&&(G.maxWidth=ne(De))}this._lastBoundingBoxSize=M,Ht(this._boundingBox.style,G)}_resetBoundingBoxStyles(){Ht(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ht(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(S,P){const M={},G=this._hasExactPosition(),re=this._hasFlexibleDimensions,De=this._overlayRef.getConfig();if(G){const Le=this._viewportRuler.getViewportScrollPosition();Ht(M,this._getExactOverlayY(P,S,Le)),Ht(M,this._getExactOverlayX(P,S,Le))}else M.position="static";let Oe="",ze=this._getOffset(P,"x"),Je=this._getOffset(P,"y");ze&&(Oe+=`translateX(${ze}px) `),Je&&(Oe+=`translateY(${Je}px)`),M.transform=Oe.trim(),De.maxHeight&&(G?M.maxHeight=ne(De.maxHeight):re&&(M.maxHeight="")),De.maxWidth&&(G?M.maxWidth=ne(De.maxWidth):re&&(M.maxWidth="")),Ht(this._pane.style,M)}_getExactOverlayY(S,P,M){let G={top:"",bottom:""},re=this._getOverlayPoint(P,this._overlayRect,S);return this._isPushed&&(re=this._pushOverlayOnScreen(re,this._overlayRect,M)),"bottom"===S.overlayY?G.bottom=this._document.documentElement.clientHeight-(re.y+this._overlayRect.height)+"px":G.top=ne(re.y),G}_getExactOverlayX(S,P,M){let De,G={left:"",right:""},re=this._getOverlayPoint(P,this._overlayRect,S);return this._isPushed&&(re=this._pushOverlayOnScreen(re,this._overlayRect,M)),De=this._isRtl()?"end"===S.overlayX?"left":"right":"end"===S.overlayX?"right":"left","right"===De?G.right=this._document.documentElement.clientWidth-(re.x+this._overlayRect.width)+"px":G.left=ne(re.x),G}_getScrollVisibility(){const S=this._getOriginRect(),P=this._pane.getBoundingClientRect(),M=this._scrollables.map(G=>G.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Zt(S,M),isOriginOutsideView:Gi(S,M),isOverlayClipped:Zt(P,M),isOverlayOutsideView:Gi(P,M)}}_subtractOverflows(S,...P){return P.reduce((M,G)=>M-Math.max(G,0),S)}_getNarrowedViewportRect(){const S=this._document.documentElement.clientWidth,P=this._document.documentElement.clientHeight,M=this._viewportRuler.getViewportScrollPosition();return{top:M.top+this._getViewportMarginTop(),left:M.left+this._getViewportMarginStart(),right:M.left+S-this._getViewportMarginEnd(),bottom:M.top+P-this._getViewportMarginBottom(),width:S-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:P-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(S,P){return"x"===P?null==S.offsetX?this._offsetX:S.offsetX:null==S.offsetY?this._offsetY:S.offsetY}_validatePositions(){}_addPanelClasses(S){this._pane&&(0,he.F)(S).forEach(P=>{""!==P&&-1===this._appliedPanelClasses.indexOf(P)&&(this._appliedPanelClasses.push(P),this._pane.classList.add(P))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(S=>{this._pane.classList.remove(S)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return"number"==typeof this._viewportMargin?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return"number"==typeof this._viewportMargin?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return"number"==typeof this._viewportMargin?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return"number"==typeof this._viewportMargin?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){const S=this._origin;if(S instanceof R.aKT)return S.nativeElement.getBoundingClientRect();if(S instanceof Element)return S.getBoundingClientRect();const P=S.width||0,M=S.height||0;return{top:S.y,bottom:S.y+M,left:S.x,right:S.x+P,height:M,width:P}}_getContainerRect(){const S=this._overlayRef.getConfig().usePopover&&"global"!==this._popoverLocation,P=this._overlayContainer.getContainerElement();S&&(P.style.display="block");const M=P.getBoundingClientRect();return S&&(P.style.display=""),M}}function Ht(k,S){for(let P in S)S.hasOwnProperty(P)&&(k[P]=S[P]);return k}function Si(k){if("number"!=typeof k&&null!=k){const[S,P]=k.split(bi);return P&&"px"!==P?null:parseFloat(S)}return k||null}function Ri(k){return{top:Math.floor(k.top),right:Math.floor(k.right),bottom:Math.floor(k.bottom),left:Math.floor(k.left),width:Math.floor(k.width),height:Math.floor(k.height)}}const Fe="cdk-global-overlay-wrapper";class ae{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(S){const P=S.getConfig();this._overlayRef=S,this._width&&!P.width&&S.updateSize({width:this._width}),this._height&&!P.height&&S.updateSize({height:this._height}),S.hostElement.classList.add(Fe),this._isDisposed=!1}top(S=""){return this._bottomOffset="",this._topOffset=S,this._alignItems="flex-start",this}left(S=""){return this._xOffset=S,this._xPosition="left",this}bottom(S=""){return this._topOffset="",this._bottomOffset=S,this._alignItems="flex-end",this}right(S=""){return this._xOffset=S,this._xPosition="right",this}start(S=""){return this._xOffset=S,this._xPosition="start",this}end(S=""){return this._xOffset=S,this._xPosition="end",this}width(S=""){return this._overlayRef?this._overlayRef.updateSize({width:S}):this._width=S,this}height(S=""){return this._overlayRef?this._overlayRef.updateSize({height:S}):this._height=S,this}centerHorizontally(S=""){return this.left(S),this._xPosition="center",this}centerVertically(S=""){return this.top(S),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const S=this._overlayRef.overlayElement.style,P=this._overlayRef.hostElement.style,M=this._overlayRef.getConfig(),{width:G,height:re,maxWidth:De,maxHeight:Oe}=M,ze=!("100%"!==G&&"100vw"!==G||De&&"100%"!==De&&"100vw"!==De),Je=!("100%"!==re&&"100vh"!==re||Oe&&"100%"!==Oe&&"100vh"!==Oe),Le=this._xPosition,et=this._xOffset,Pt="rtl"===this._overlayRef.getConfig().direction;let Gt="",Nt="",Kt="";ze?Kt="flex-start":"center"===Le?(Kt="center",Pt?Nt=et:Gt=et):Pt?"left"===Le||"end"===Le?(Kt="flex-end",Gt=et):("right"===Le||"start"===Le)&&(Kt="flex-start",Nt=et):"left"===Le||"start"===Le?(Kt="flex-start",Gt=et):("right"===Le||"end"===Le)&&(Kt="flex-end",Nt=et),S.position=this._cssPosition,S.marginLeft=ze?"0":Gt,S.marginTop=Je?"0":this._topOffset,S.marginBottom=this._bottomOffset,S.marginRight=ze?"0":Nt,P.justifyContent=Kt,P.alignItems=Je?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const S=this._overlayRef.overlayElement.style,P=this._overlayRef.hostElement,M=P.style;P.classList.remove(Fe),M.justifyContent=M.alignItems=S.marginTop=S.marginBottom=S.marginLeft=S.marginRight=S.position="",this._overlayRef=null,this._isDisposed=!0}}let _e=(()=>{class k{_injector=(0,v.WQX)(v.zZn);constructor(){}global(){return function z(){return new ae}()}flexibleConnectedTo(P){return function yi(k,S){return new ci(S,k.get(J.Xj),k.get(v.qQL),k.get(W.O),k.get(to))}(this._injector,P)}static \u0275fac=function(M){return new(M||k)};static \u0275prov=v.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})();const Xe=new v.nKC("OVERLAY_DEFAULT_CONFIG");let At=(()=>{class k{scrollStrategies=(0,v.WQX)(Di);_positionBuilder=(0,v.WQX)(_e);_injector=(0,v.WQX)(v.zZn);constructor(){}create(P){return function ct(k,S){k.get($.l).load(Tt);const P=k.get(to),M=k.get(v.qQL),G=k.get(Ze.g),re=k.get(R.o8S),De=k.get(at.dS),Oe=k.get(R.sFG,null,{optional:!0})||k.get(R._9s).createRenderer(null,null),ze=new ai(S),Je=k.get(Xe,null,{optional:!0})?.usePopover??!0;ze.direction=ze.direction||De.value,ze.usePopover="showPopover"in M.body&&(S?.usePopover??Je);const Le=M.createElement("div"),et=M.createElement("div");Le.id=G.getId("cdk-overlay-"),Le.classList.add("cdk-overlay-pane"),et.appendChild(Le),ze.usePopover&&(et.setAttribute("popover","manual"),et.classList.add("cdk-overlay-popover"));const Pt=ze.usePopover?ze.positionStrategy?.getPopoverInsertionPoint?.():null;return Jt(Pt)?Pt.after(et):"parent"===Pt?.type?Pt.element.appendChild(et):P.getContainerElement().appendChild(et),new li(new ie.aI(Le,re,k),et,Le,ze,k.get(v.SKi),k.get(Mi),M,k.get(we),k.get(wi),S?.disableAnimations??"NoopAnimations"===k.get(R.bc$,null,{optional:!0}),k.get(v.uvJ),Oe)}(this._injector,P)}position(){return this._positionBuilder}static \u0275fac=function(M){return new(M||k)};static \u0275prov=v.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),_i=(()=>{class k{static \u0275fac=function(M){return new(M||k)};static \u0275mod=R.$C({type:k});static \u0275inj=v.G2t({providers:[At],imports:[dt.jI,ie.jc,J.E9,J.E9]})}return k})()},7421(qe,Ce,D){"use strict";D.d(Ce,{O:()=>K});var v=D(5802),R=D(5547),E=D(177);let p;try{p=typeof Intl<"u"&&Intl.v8BreakIterator}catch{p=!1}let K=(()=>{class L{_platformId=(0,v.WQX)(R.Agw);isBrowser=this._platformId?(0,E.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!p)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(U){return new(U||L)};static \u0275prov=v.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},9867(qe,Ce,D){"use strict";let v;function E(L){if(function R(){if(null==v){const L=typeof document<"u"?document.head:null;v=!(!L||!L.createShadowRoot&&!L.attachShadow)}return v}()){const T=L.getRootNode?L.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&T instanceof ShadowRoot)return T}return null}function K(L){return L.composedPath?L.composedPath()[0]:L.target}D.d(Ce,{Fb:()=>K,KT:()=>E})},3293(qe,Ce,D){"use strict";D.d(Ce,{l:()=>K});var v=D(5802),R=D(7705),E=D(5547);const p=new WeakMap;let K=(()=>{class L{_appRef;_injector=(0,v.WQX)(v.zZn);_environmentInjector=(0,v.WQX)(v.uvJ);load(H){const U=this._appRef=this._appRef||this._injector.get(E.o8S);let I=p.get(U);I||(I={loaders:new Set,refs:[]},p.set(U,I),U.onDestroy(()=>{p.get(U)?.refs.forEach(Z=>Z.destroy()),p.delete(U)})),I.loaders.has(H)||(I.loaders.add(H),I.refs.push((0,R.a0P)(H,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(U){return new(U||L)};static \u0275prov=v.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},8203(qe,Ce,D){"use strict";D.d(Ce,{jI:()=>U});var L=D(5802),T=D(5547);let U=(()=>{class I{static \u0275fac=function(de){return new(de||I)};static \u0275mod=T.$C({type:I});static \u0275inj=L.G2t({})}return I})()},6939(qe,Ce,D){"use strict";D.d(Ce,{A8:()=>Se,aI:()=>Pe,bV:()=>j,jc:()=>q});var T=D(5802),H=D(5547),U=D(7705);class me{_attachedHost=null;attach(he){return this._attachedHost=he,he.attach(this)}detach(){let he=this._attachedHost;null!=he&&(this._attachedHost=null,he.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(he){this._attachedHost=he}}class Se extends me{component;viewContainerRef;injector;projectableNodes;bindings;constructor(he,J,ie,ee,xe){super(),this.component=he,this.viewContainerRef=J,this.injector=ie,this.projectableNodes=ee,this.bindings=xe||null}}class Ee extends me{templateRef;viewContainerRef;context;injector;constructor(he,J,ie,ee){super(),this.templateRef=he,this.viewContainerRef=J,this.context=ie,this.injector=ee}get origin(){return this.templateRef.elementRef}attach(he,J=this.context){return this.context=J,super.attach(he)}detach(){return this.context=void 0,super.detach()}}class ue extends me{element;constructor(he){super(),this.element=he instanceof H.aKT?he.nativeElement:he}}class W{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(he){return he instanceof Se?(this._attachedPortal=he,this.attachComponentPortal(he)):he instanceof Ee?(this._attachedPortal=he,this.attachTemplatePortal(he)):this.attachDomPortal&&he instanceof ue?(this._attachedPortal=he,this.attachDomPortal(he)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(he){this._disposeFn=he}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Pe extends W{outletElement;_appRef;_defaultInjector;constructor(he,J,ie){super(),this.outletElement=he,this._appRef=J,this._defaultInjector=ie}attachComponentPortal(he){let J;if(he.viewContainerRef){const ie=he.injector||he.viewContainerRef.injector,ee=ie.get(H.Ab1,null,{optional:!0})||void 0;J=he.viewContainerRef.createComponent(he.component,{index:he.viewContainerRef.length,injector:ie,ngModuleRef:ee,projectableNodes:he.projectableNodes||void 0,bindings:he.bindings||void 0}),this.setDisposeFn(()=>J.destroy())}else{const ie=this._appRef,ee=he.injector||this._defaultInjector||T.zZn.NULL,xe=ee.get(T.uvJ,ie.injector);J=(0,U.a0P)(he.component,{elementInjector:ee,environmentInjector:xe,projectableNodes:he.projectableNodes||void 0,bindings:he.bindings||void 0}),ie.attachView(J.hostView),this.setDisposeFn(()=>{ie.viewCount>0&&ie.detachView(J.hostView),J.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(J)),this._attachedPortal=he,J}attachTemplatePortal(he){let J=he.viewContainerRef,ie=J.createEmbeddedView(he.templateRef,he.context,{injector:he.injector});return ie.rootNodes.forEach(ee=>this.outletElement.appendChild(ee)),ie.detectChanges(),this.setDisposeFn(()=>{let ee=J.indexOf(ie);-1!==ee&&J.remove(ee)}),this._attachedPortal=he,ie}attachDomPortal=he=>{const J=he.element,ie=this.outletElement.ownerDocument.createComment("dom-portal");J.parentNode.insertBefore(ie,J),this.outletElement.appendChild(J),this._attachedPortal=he,super.setDisposeFn(()=>{ie.parentNode&&ie.parentNode.replaceChild(J,ie)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(he){return he.hostView.rootNodes[0]}}let j=(()=>{class ne extends Ee{constructor(){super((0,T.WQX)(H.C4Q),(0,T.WQX)(H.c1b))}static \u0275fac=function(ie){return new(ie||ne)};static \u0275dir=H.FsC({type:ne,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[H.Vt3]})}return ne})(),q=(()=>{class ne{static \u0275fac=function(ie){return new(ie||ne)};static \u0275mod=H.$C({type:ne});static \u0275inj=T.G2t({})}return ne})()},5272(qe,Ce,D){"use strict";D.d(Ce,{R:()=>wi,E9:()=>ui,Xj:()=>to});var v=D(5802),R=D(5547),E=D(1413),p=D(7673),K=D(4226),T=(D(536),D(6780));let U,H=1;const I={};function Z(Ae){return Ae in I&&(delete I[Ae],!0)}const F={setImmediate(Ae){const Fe=H++;return I[Fe]=!0,U||(U=Promise.resolve()),U.then(()=>Z(Fe)&&Ae()),Fe},clearImmediate(Ae){Z(Ae)}},{setImmediate:le,clearImmediate:we}=F,me={setImmediate(...Ae){const{delegate:Fe}=me;return(Fe?.setImmediate||le)(...Ae)},clearImmediate(Ae){const{delegate:Fe}=me;return(Fe?.clearImmediate||we)(Ae)},delegate:void 0};var Ee=D(9687);new class ue extends Ee.q{flush(Fe){this._active=!0;const z=this._scheduled;this._scheduled=void 0;const{actions:ae}=this;let _e;Fe=Fe||ae.shift();do{if(_e=Fe.execute(Fe.state,Fe.delay))break}while((Fe=ae[0])&&Fe.id===z&&ae.shift());if(this._active=!1,_e){for(;(Fe=ae[0])&&Fe.id===z&&ae.shift();)Fe.unsubscribe();throw _e}}}(class Se extends T.R{constructor(Fe,z){super(Fe,z),this.scheduler=Fe,this.work=z}requestAsyncId(Fe,z,ae=0){return null!==ae&&ae>0?super.requestAsyncId(Fe,z,ae):(Fe.actions.push(this),Fe._scheduled||(Fe._scheduled=me.setImmediate(Fe.flush.bind(Fe,void 0))))}recycleAsyncId(Fe,z,ae=0){var _e;if(null!=ae?ae>0:this.delay>0)return super.recycleAsyncId(Fe,z,ae);const{actions:Xe}=Fe;null!=z&&(null===(_e=Xe[Xe.length-1])||void 0===_e?void 0:_e.id)!==z&&(me.clearImmediate(z),Fe._scheduled===z&&(Fe._scheduled=void 0))}});var j=D(3798),$=D(5964),q=D(7384),ne=D(7421),he=D(8203);let wi=(()=>{class Ae{_ngZone=(0,v.WQX)(v.SKi);_platform=(0,v.WQX)(ne.O);_renderer=(0,v.WQX)(R._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new E.B;_scrolledCount=0;scrollContainers=new Map;register(z){this.scrollContainers.has(z)||this.scrollContainers.set(z,z.elementScrolled().subscribe(()=>this._scrolled.next(z)))}deregister(z){const ae=this.scrollContainers.get(z);ae&&(ae.unsubscribe(),this.scrollContainers.delete(z))}scrolled(z=20){return this._platform.isBrowser?new K.c(ae=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const _e=z>0?this._scrolled.pipe((0,j.Z)(z)).subscribe(ae):this._scrolled.subscribe(ae);return this._scrolledCount++,()=>{_e.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,p.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((z,ae)=>this.deregister(ae)),this._scrolled.complete()}ancestorScrolled(z,ae){const _e=this.getAncestorScrollContainers(z);return this.scrolled(ae).pipe((0,$.p)(Xe=>!Xe||_e.indexOf(Xe)>-1))}getAncestorScrollContainers(z){const ae=[];return this.scrollContainers.forEach((_e,Xe)=>{this._scrollableContainsElement(Xe,z)&&ae.push(Xe)}),ae}_scrollableContainsElement(z,ae){let _e=(0,q.i8)(ae),Xe=z.getElementRef().nativeElement;do{if(_e==Xe)return!0}while(_e=_e.parentElement);return!1}static \u0275fac=function(ae){return new(ae||Ae)};static \u0275prov=v.jDH({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),to=(()=>{class Ae{_platform=(0,v.WQX)(ne.O);_listeners;_viewportSize=null;_change=new E.B;_document=(0,v.WQX)(v.qQL);constructor(){const z=(0,v.WQX)(v.SKi),ae=(0,v.WQX)(R._9s).createRenderer(null,null);z.runOutsideAngular(()=>{if(this._platform.isBrowser){const _e=Xe=>this._change.next(Xe);this._listeners=[ae.listen("window","resize",_e),ae.listen("window","orientationchange",_e)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(z=>z()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const z={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),z}getViewportRect(){const z=this.getViewportScrollPosition(),{width:ae,height:_e}=this.getViewportSize();return{top:z.top,left:z.left,bottom:z.top+_e,right:z.left+ae,height:_e,width:ae}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const z=this._document,ae=this._getWindow(),_e=z.documentElement,Xe=_e.getBoundingClientRect();return{top:-Xe.top||z.body?.scrollTop||ae.scrollY||_e.scrollTop||0,left:-Xe.left||z.body?.scrollLeft||ae.scrollX||_e.scrollLeft||0}}change(z=20){return z>0?this._change.pipe((0,j.Z)(z)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const z=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:z.innerWidth,height:z.innerHeight}:{width:0,height:0}}static \u0275fac=function(ae){return new(ae||Ae)};static \u0275prov=v.jDH({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),Mt=(()=>{class Ae{static \u0275fac=function(ae){return new(ae||Ae)};static \u0275mod=R.$C({type:Ae});static \u0275inj=v.G2t({})}return Ae})(),ui=(()=>{class Ae{static \u0275fac=function(ae){return new(ae||Ae)};static \u0275mod=R.$C({type:Ae});static \u0275inj=v.G2t({imports:[he.jI,Mt,he.jI,Mt]})}return Ae})()},9417(qe,Ce,D){"use strict";D.d(Ce,{YN:()=>zr,kq:()=>le});var E=D(5802),p=D(5547);D(7705),D(2271),D(6494),D(1413),D(7468),D(6648),D(6354);const le=new E.nKC(""),_i=new E.nKC("",{factory:()=>k}),k="always";Promise.resolve(),Promise.resolve();let jl=(()=>{class f{static \u0275fac=function(y){return new(y||f)};static \u0275mod=p.$C({type:f});static \u0275inj=E.G2t({})}return f})(),zr=(()=>{class f{static withConfig(h){return{ngModule:f,providers:[{provide:_i,useValue:h.callSetDisabledState??k}]}}static \u0275fac=function(y){return new(y||f)};static \u0275mod=p.$C({type:f});static \u0275inj=E.G2t({imports:[jl]})}return f})()},3913(qe,Ce,D){"use strict";D.d(Ce,{Cf3:()=>vS,Dvw:()=>hS,JKr:()=>$3,JuG:()=>x0,KVO:()=>wu,MwW:()=>Tt,Y6t:()=>$h,pow:()=>Lc,r$M:()=>U0,syG:()=>vs,zsR:()=>Uh});var v=D(467),R=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const o=t?this.allAsyncListeners:this.allSyncListeners;let n=o.get(e);return!n&&i&&(n=new Set,o.set(e,n)),n}noRegisteredListenersExist(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const o=this.getListeners(e,i,!1);o&&(o.delete(t),0===o.size&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const i=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:o}=this,n=a=>{const l=o?()=>o.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},s=this.getListeners(i,t,!1);if((s?.size??0)>0){const a=new Set(s);for(const l of a)s?.has(l)&&n(()=>l(e))}const r=this.getGlobalListeners(t);if(r.size>0){const a=new Set(r);for(const l of a)n(()=>l(i,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}};function E(e){return null==e||""===e?null:e}function p(e){return null!=e&&""!==e}function K(e){return!p(e)}function L(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function T(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function H(e,t,i=!1){const o=null==e,n=null==t;if(e?.toNumber&&(e=e.toNumber()),t?.toNumber&&(t=t.toNumber()),o&&n)return 0;if(o)return-1;if(n)return 1;function s(r,a){return r>a?1:r<a?-1:0}if("string"!=typeof e||!i)return s(e,t);try{return e.localeCompare(t)}catch{return s(e,t)}}var U=/[&<>"']/g,I={"&":"&","<":"<",">":">",'"':""","'":"'"};function Z(e){return e?.toString().toString()??null}function F(e){return Z(e)?.replace(U,t=>I[t])??null}function de(e){return e.eRootDiv.getRootNode()}function le(e){return de(e).activeElement}function we(e){const{gos:t,eRootDiv:i}=e;let o=null;const n=t.get("getDocument");return n&&p(n)?o=n():i&&(o=i.ownerDocument),o&&p(o)?o:document}function me(e){const t=le(e);return null===t||t===we(e).body}function Se(e){return we(e).defaultView||window}function Ee(e){let t=null,i=null;try{t=we(e).fullscreenElement}catch{}finally{t||(t=de(e));i=t.querySelector("body")||(t instanceof ShadowRoot?t:t instanceof Document?t?.documentElement:t)}return i}function Pe(e,t,i){null==i||"string"==typeof i&&""==i?$(e,t):j(e,t,i)}function j(e,t,i){e.setAttribute(q(t),i.toString())}function $(e,t){e.removeAttribute(q(t))}function q(e){return`aria-${e}`}function ne(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function ee(e,t){Pe(e,"label",t)}function xe(e,t){Pe(e,"labelledby",t)}function Be(e,t){Pe(e,"live",t)}function Ze(e,t){Pe(e,"invalid",t)}function Ct(e,t){Pe(e,"hidden",t)}function Lt(e,t){j(e,"expanded",t)}function ye(e,t){j(e,"rowindex",t)}function Qe(e,t){j(e,"colindex",t)}function Ro(e,t){Pe(e,"selected",t)}function bn(e,t){Pe(e,"owns",t)}function Hi(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Gi="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Zt(e){return!!(e&&e.matches("input, select, button, textarea")&&e.matches(Gi))&&Dt(e)}function it(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-hidden",!t),o||Ct(e,!t)}function Di(e,t){const i="disabled",o=t?s=>s.setAttribute(i,""):s=>s.removeAttribute(i);o(e);const n=e.querySelectorAll("input")??[];for(const s of n)o(s)}function ai(e,t,i){let o=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof i){if(++o>i)break}else if(e===i)break}return!1}function vi(e){const{height:t,width:i,borderTopWidth:o,borderRightWidth:n,borderBottomWidth:s,borderLeftWidth:r,paddingTop:a,paddingRight:l,paddingBottom:d,paddingLeft:c,marginTop:u,marginRight:g,marginBottom:m,marginLeft:w,boxSizing:b}=window.getComputedStyle(e),x=Number.parseFloat;return{height:x(t||"0"),width:x(i||"0"),borderTopWidth:x(o||"0"),borderRightWidth:x(n||"0"),borderBottomWidth:x(s||"0"),borderLeftWidth:x(r||"0"),paddingTop:x(a||"0"),paddingRight:x(l||"0"),paddingBottom:x(d||"0"),paddingLeft:x(c||"0"),marginTop:x(u||"0"),marginRight:x(g||"0"),marginBottom:x(m||"0"),marginLeft:x(w||"0"),boxSizing:b}}function $o(e){const t=vi(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function Ni(e){const t=vi(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function Sn(e){const{height:t,marginBottom:i,marginTop:o}=vi(e);return Math.floor(t+i+o)}function Po(e){const{width:t,marginLeft:i,marginRight:o}=vi(e);return Math.floor(t+i+o)}function Fo(e){const t=e.getBoundingClientRect(),{borderTopWidth:i,borderLeftWidth:o,borderRightWidth:n,borderBottomWidth:s}=vi(e);return{top:t.top+(i||0),left:t.left+(o||0),right:t.right+(n||0),bottom:t.bottom+(s||0)}}function Mi(e,t){let i=e.scrollLeft;return t&&(i=Math.abs(i)),i}function wi(e,t,i){i&&(t*=-1),e.scrollLeft=t}function wt(e){for(;e?.firstChild;)e.firstChild.remove()}function Tt(e){e?.parentNode&&e.remove()}function to(e){return!!e.offsetParent}function Dt(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!to(e)||"visible"!==window.getComputedStyle(e).visibility)}function Jt(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function li(e,t,i){i&&i.nextSibling===t||(e.firstChild?i?i.nextSibling?e.insertBefore(t,i.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t):e.appendChild(t))}function di(e,t){for(let i=0;i<t.length;i++){const o=t[i],n=e.children[i];n!==o&&e.insertBefore(o,n)}}function bi(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function yi(e,t){if(t)for(const i of Object.keys(t)){const o=t[i];if(!i?.length||null==o)continue;const n=bi(i),s=o.toString(),r=s.replace(/\s*!important/g,"");e.style.setProperty(n,r,r.length!=s.length?"important":void 0)}}function ci(e){return()=>{const t=e();return!t||Ht(t)||Si(t)}}function Ht(e){return e.clientWidth<e.scrollWidth}function Si(e){return e.clientHeight<e.scrollHeight}function Ri(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Mt(e,t)}function Mt(e,t){t=Ae(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function ui(e,t){t=Ae(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Ae(e){return"number"==typeof e?`${e}px`:e}function Fe(e){return e instanceof Node||e instanceof HTMLElement}function z(e,t,i){null==i||""===i?e.removeAttribute(t):e.setAttribute(t,i.toString())}function ae(e,t,i){const n=Se(e).ResizeObserver,s=n?new n(i):null;return s?.observe(t),()=>s?.disconnect()}function _e(e,t){const i=Se(e);i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)}var ct,Xe="data-ref";function At(){return ct??(ct=document.createTextNode(" ")),ct.cloneNode()}function _t(e){const{attrs:t,children:i,cls:o,ref:n,role:s,tag:r}=e,a=document.createElement(r);if(o&&(a.className=o),n&&a.setAttribute(Xe,n),s&&a.setAttribute("role",s),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(i)if("string"==typeof i)a.textContent=i;else{let l=!0;for(const d of i)d&&("string"==typeof d?(a.appendChild(document.createTextNode(d)),l=!1):"function"==typeof d?a.appendChild(d()):(l&&(a.appendChild(At()),l=!1),a.append(_t(d)),a.appendChild(At())))}return a}var hi=["touchstart","touchend","touchmove","touchcancel","scroll"],Er=["wheel"],jo={},us=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if("boolean"==typeof jo[i])return jo[i];const o=document.createElement(e[i]||"div");return jo[i="on"+i]=i in o}})();function _i(e,t){return!(!t||!e)&&function S(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():function k(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}(t)}(t).indexOf(e)>=0}function G(e,t,i){if(0===i)return!1;const o=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(o,n)<=i}var re=(e,t)=>{const i=e.identifier;for(let o=0,n=t.length;o<n;++o){const s=t[o];if(s.identifier===i)return s}return null};function De(e,t){return e.gos.isElementInThisInstance(t.target)}var ze=(e,...t)=>{for(const i of t){const[o,n,s,r]=i;o.addEventListener(n,s,r),e.push(i)}},Je=e=>{if(e){for(const[t,i,o,n]of e)t.removeEventListener(i,o,n);e.length=0}},Le=e=>{e.cancelable&&e.preventDefault()};function et(e,t){return t}function Pt(e){return e?.getLocaleTextFunc()??et}var Vt=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:"destroyed"})}addEventListener(e,t,i){this.localEventService||(this.localEventService=new R),this.localEventService.addEventListener(e,t,i)}removeEventListener(e,t,i){this.localEventService?.removeEventListener(e,t,i)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){const i=[];for(const o of Object.keys(t)){const n=t[o];n&&i.push(this._setupListener(e,o,n))}return i}_setupListener(e,t,i){if(this.destroyed)return()=>null;let o;if(function Hl(e){return void 0!==e.__addEventListener}(e))e.__addEventListener(t,i),o=()=>(e.__removeEventListener(t,i),null);else{const n=function Gl(e){return"global"===e.eventServiceType}(e);e instanceof HTMLElement?function P(e,t,i){const o=(e=>{const t=hi.includes(e),i=Er.includes(e);return!!t||!i&&void 0})(t);let n;null!=o&&(n={passive:o}),e.addEventListener(t,i,n)}(e,t,i):n?e.addListener(t,i):e.addEventListener(t,i),o=n?()=>(e.removeListener(t,i),null):()=>(e.removeEventListener(t,i),null)}return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(n=>n!==o),null)}setupPropertyListener(e,t){const{gos:i}=this;i.addPropertyEventListener(e,t);const o=()=>(i.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(o),()=>(o(),this.destroyFunctions=this.destroyFunctions.filter(n=>n!==o),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const i=e.join("-")+this.propertyListenerId++,o=n=>{if(n.changeSet){if(n.changeSet&&n.changeSet.id===this.lastChangeSetIdLookup[i])return;this.lastChangeSetIdLookup[i]=n.changeSet.id}t({type:"propertyChanged",changeSet:n.changeSet,source:n.source})};for(const n of e)this.setupPropertyListener(n,o)}getLocaleTextFunc(){return Pt(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const i=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),i}createBean(e,t,i){return(t||this.stubContext).createBean(e,i)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}},Y=class extends Vt{},hs={};function Ko(e,t){hs[t]||(e(),hs[t]=!0)}var Rn={pending:!1,funcs:[]},xr={pending:!1,funcs:[]};function gs(e,t="setTimeout",i){const o="raf"===t?xr:Rn;if(o.funcs.push(e),o.pending)return;o.pending=!0;const n=()=>{const s=o.funcs.slice();o.funcs.length=0,o.pending=!1;for(const r of s)r()};"raf"===t?_e(i,n):window.setTimeout(n,0)}function St(e,t,i){let o;return function(...n){const s=this;window.clearTimeout(o),o=window.setTimeout(function(){e.isAlive()&&t.apply(s,n)},i)}}function io(e,t){let i=0;return function(...o){const s=Date.now();s-i<t||(i=s,e.apply(this,o))}}var En=new Set(["__proto__","constructor","prototype"]);function It(e,t,i=!0,o=!1){p(t)&&function ps(e,t){if(null!=e){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(const i of Object.keys(e).filter(o=>!En.has(o)))t(i,e[i])}}(t,(n,s)=>{let r=e[n];r!==s&&(o&&null==r&&null!=s&&"object"==typeof s&&s.constructor===Object&&(r={},e[n]=r),Pr(s)&&Pr(r)&&!Array.isArray(r)?It(r,s,i,o):(i||void 0!==s)&&(e[n]=s))})}function Pr(e){return"object"==typeof e&&null!==e}var Fr=(()=>{let e=class eo{static applyGlobalGridOptions(i){if(!eo.gridOptions)return{...i};let o={};return It(o,eo.gridOptions,!0,!0),"deep"===eo.mergeStrategy?It(o,i,!0,!0):o={...o,...i},eo.gridOptions.context&&(o.context=eo.gridOptions.context),i.context&&("deep"===eo.mergeStrategy&&o.context&&It(i.context,o.context,!0,!0),o.context=i.context),o}static applyGlobalGridOption(i,o){if("deep"===eo.mergeStrategy){const n=function fs(e){return ki.gridOptions?.[e]}(i);if(n&&"object"==typeof n&&"object"==typeof o)return eo.applyGlobalGridOptions({[i]:o})[i]}return o}};return e.gridOptions=void 0,e.mergeStrategy="shallow",e})(),ki=Fr;var Dr={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"\t",suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:"never",pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:"normal",ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:"singleColumn",groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:"clientSide",asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:"_",viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:"xy",suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1,enableFilterHandlers:!1},Mr="https://www.ag-grid.com";function Ti(e,t,...i){e.get("debug")&&console.log("AG Grid: "+t,...i)}function Ei(e,...t){Ko(()=>console.warn("AG Grid: "+e,...t),e+t?.join(""))}function oo(e,...t){Ko(()=>console.error("AG Grid: "+e,...t),e+t?.join(""))}var Xo,xn=new Set,Do={},no={},ms=!1,Pn=!1;function so(e,t,i=!1){i||(ms=!0),function _r(e){Xo||(Xo=e.version);const t=o=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${o} Please update all modules to the same version.`;e.version?function zl(e){const[t,i]=e.version.split(".")||[],[o,n]=Xo.split(".")||[];return t===o&&i===n}(e)||oo(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${Xo}.`)):oo(t(`'${e.moduleName}' is incompatible.`));const i=e.validate?.();i&&!i.isValid&&oo(`${i.message}`)}(e);const o=e.rowModels??["all"];let n;xn.add(e),void 0!==t?(Pn=!0,void 0===no[t]&&(no[t]={}),n=no[t]):n=Do;for(const s of o)void 0===n[s]&&(n[s]={}),n[s][e.moduleName]=e;if(e.dependsOn)for(const s of e.dependsOn)so(s,t,i)}function Yo(e,t,i){const o=n=>!!Do[n]?.[e]||!!no[t]?.[n]?.[e];return o(i)||o("all")}function Fn(){return Pn}var vs=class{static register(e){so(e,void 0)}static registerModules(e){for(const t of e)so(t,void 0)}},ge="34.3.1",bs="_version_",Mo=null,zi=`${Mr}/javascript-data-grid`;function Or(e,t,i){return Mo?.(e,t)??[Br(e,t,i)]}function Qo(e,t,i,o,n){e(`${o?"warning":"error"} #${t}`,...Or(t,i,n))}function Lr(e){let t=e;return e instanceof Error?t=e.toString():"object"==typeof e&&(t=function Ss(e){if(!e)return String(e);const t={};for(const i of Object.keys(e))"object"!=typeof e[i]&&"function"!=typeof e[i]&&(t[i]=e[i]);return JSON.stringify(t)}(e)),t}function _o(e){return void 0===e?"undefined":null===e?"null":e}function _n(e,t){return`${e}?${t.toString()}`}function Rs(e,t){const i=new URLSearchParams;if(i.append(bs,ge),t)for(const s of Object.keys(t))i.append(s,Lr(t[s]));const o=`${zi}/errors/${e}`,n=_n(o,i);return n.length<=2e3?n:function kn(e,t,i){const o=Array.from(t.entries()).sort((s,r)=>r[1].length-s[1].length);let n=_n(e,t);for(const[s,r]of o){if(s===bs)continue;const a=n.length-i;if(a<=0)break;const l="...",d=a+l.length,c=r.length-d>100?r.slice(0,r.length-d)+l:r.slice(0,100)+l;t.set(s,c),n=_n(e,t)}return n}(o,i,2e3)}var Br=(e,t,i)=>{const n=`${i?i+" \n":""}Visit ${Rs(e,t)}`;return`${n}${i?"":" \n Alternatively register the ValidationModule to see the full message in the console."}`};function se(...e){Qo(Ei,e[0],e[1],!0)}function tt(...e){Qo(oo,e[0],e[1],!1)}function Wi(e,t,i){Qo(oo,e,t,!1,i)}function ei(...e){return function Tn(e,t){const i=t[0];return`error #${i} `+Or(i,t[1],e).join(" ")}(void 0,e)}function Es(e,t){return e.get("rowModelType")===t}function ut(e,t){return Es(e,"clientSide")}function lo(e,t){return Es(e,"serverSide")}function Ft(e,t){return e.get("domLayout")===t}function Ui(e){return void 0!==Ds(e)}function xs(e){return"function"==typeof e.get("getRowHeight")}function xi(e,t,i=!1,o){const{gos:n,environment:s}=e;if(null==o&&(o=s.getDefaultRowHeight()),xs(n)){if(i)return{height:o,estimated:!0};const l={node:t,data:t.data},d=n.getCallback("getRowHeight")(l);if(In(d))return 0===d&&se(23),{height:Math.max(1,d),estimated:!1}}if(t.detail&&n.get("masterDetail"))return function Vr(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return In(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}(n);const r=n.get("rowHeight");return{height:r&&In(r)?r:o,estimated:!1}}function Ai(e){const{environment:t,gos:i}=e,o=i.get("rowHeight");if(!o||K(o))return t.getDefaultRowHeight();const n=t.refreshRowHeightVariable();return-1!==n?n:(se(24),t.getDefaultRowHeight())}function In(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)}function On(e,t,i){const o=t[e.getDomDataKey()];return o?o[i]:void 0}function $i(e,t,i,o){const n=e.getDomDataKey();let s=t[n];K(s)&&(s={},t[n]=s),s[i]=o}function ji(e){return!e.get("ensureDomOrder")&&e.get("animateRows")}function Ps(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||Ft(e,"print"))}function ti(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function Fs(e){const t=e.get("groupAggFiltering");return"function"==typeof t?e.getCallback("groupAggFiltering"):!0===t?()=>!0:void 0}function Hr(e){return e.get("grandTotalRow")}function Gr(e,t){return!t&&"groupRows"===e.get("groupDisplayType")}function Nr(e,t,i){return!!t.group&&!t.footer&&Gr(e,i)}function ko(e){const t=e.getCallback("getRowId");return void 0===t?t:i=>{let o=t(i);return"string"!=typeof o&&(Ko(()=>se(25,{id:o}),"getRowIdString"),o=String(o)),o}}function f(e){return e?.checkboxes??!0}function C(e){return"multiRow"===e?.mode&&(e.headerCheckbox??!0)}function h(e){if("object"==typeof e)return e.checkboxLocation??"selectionColumn"}function y(e){return e?.hideDisabledCheckboxes??!1}function kt(e){const t=e.get("cellSelection");return void 0!==t?!!t:e.get("enableRangeSelection")}function Zo(e){const t=e.get("rowSelection")??"single";if("string"==typeof t){const i=e.get("suppressRowClickSelection"),o=e.get("suppressRowDeselection");return(!i||!o)&&(i?"enableDeselection":!o||"enableSelection")}return("singleRow"===t.mode||"multiRow"===t.mode)&&(t.enableClickSelection??!1)}function Wr(e){const t=e.get("rowSelection");return"string"==typeof t?e.get("isRowSelectable"):t?.isRowSelectable}function Ds(e){const t="beanName"in e&&"gos"===e.beanName?e.get("rowSelection"):e.rowSelection;if("string"==typeof t)switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t?.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function Bn(e){return"multiRow"===Ds(e)}function Ms(e){const t=e.get("rowSelection");if("string"==typeof t){const i=e.get("groupSelectsChildren"),o=e.get("groupSelectsFiltered");return i&&o?"filteredDescendants":i?"descendants":"self"}return"multiRow"===t?.mode?t.groupSelects:void 0}function ql(e,t=!0){const i=e.get("rowSelection");return"object"!=typeof i?t?"all":void 0:"multiRow"===i.mode?i.selectAll:"all"}function Vn(e){const t=Ms(e);return"descendants"===t||"filteredDescendants"===t}function Xl(e){const t=e.get("rowSelection");return"object"==typeof t&&t.masterSelects||"self"}function ii(e){return"legacy"===e.get("columnMenu")}function Uh(e,t,i){"object"!=typeof e&&(e={});const o={...e};for(const n of i){const s=t[n];typeof s<"u"&&(o[n]=s)}return o}function $h(e,t){if(!e)return;const i={};let o=!1;for(const r of Object.keys(e))i[r]=e[r],o=!0;if(!o)return;t.dispatchEvent({type:"gridOptionsChanged",options:i});const s={type:"componentStateChanged",...i};t.dispatchEvent(s)}function Ie(e,t){return e.addCommon(t)}function Yl({gos:e},t){return 2===t.button||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}var jh={resizable:!0,sortable:!0},Kh=0;function Ql(){return Kh++}function co(e){return e instanceof uo}var uo=class extends Y{constructor(e,t,i,o){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=i,this.primary=o,this.isColumn=!0,this.instanceId=Ql(),this.autoHeaderHeight=null,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new R,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=F(i)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){const{colDef:e,beans:{sortSvc:t,pinnedCols:i,colFlex:o}}=this;t?.initCol(this);const n=e.hide;this.visible=void 0!==n?!n:!e.initialHide,i?.initCol(this),o?.initCol(this)}setColDef(e,t,i){const o=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),o&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent("colDefChanged",i)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){const{gos:e,colDef:{field:t,tooltipField:i}}=this,o=e.get("suppressFieldDotNotation");this.fieldContainsDots=p(t)&&t.includes(".")&&!o,this.tooltipFieldContainsDots=p(i)&&i.includes(".")&&!o}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){const e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;!e||!t||this.addManagedListeners(t,{colDefChanged:i=>{const o=e.recreateColDef(this.colDef);this.setColDef(o,o,i.source)}})}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const i=e.width,o=e.initialWidth;return t=null!=i?i:null!=o?o:200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);const i=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,i)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,i)}createColumnFunctionCallbackParams(e){return Ie(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??jh[e]}isColumnFunc(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createColumnFunctionCallbackParams(e))}createColumnEvent(e,t){return Ie(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return"asc"===this.sort}isSortDescending(){return"desc"===this.sort}isSortNone(){return K(this.sort)}isSorting(){return p(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){return se(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return"left"===this.pinned||"right"===this.pinned}isPinnedLeft(){return"left"===this.pinned}isPinnedRight(){return"right"===this.pinned}getPinned(){return this.pinned}setVisible(e,t){const i=!0===e;this.visible!==i&&(this.visible=i,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e?.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e?.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let i=!0;for(;e;){if(!e.isPadding()){i=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:i}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return Ie(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(K(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.colSpan(t);return Math.max(i,1)}getRowSpan(e){if(K(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),i=this.colDef.rowSpan(t);return Math.max(i,1)}setActualWidth(e,t,i=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,null!=this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),i||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return!0===this.colDef.enablePivot}isAllowValue(){return!0===this.colDef.enableValue}isAllowRowGroup(){return!0===this.colDef.enableRowGroup}dispatchColEvent(e,t,i){const o=this.createColumnEvent(e,t);i&&It(o,i),this.colEventSvc.dispatchEvent(o)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function zt(e){return e instanceof Hn}var Hn=class extends Y{constructor(e,t,i,o){super(),this.colGroupDef=e,this.groupId=t,this.padding=i,this.level=o,this.isColumn=!1,this.expandable=!1,this.instanceId=Ql(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return!!this.children&&this.children.some(e=>e.isVisible())}isPadding(){return this.padding}setExpanded(e){this.expanded=void 0!==e&&e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(const t of this.children)co(t)?e(t):zt(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){if(this.children)for(const t of this.children)co(t)?e.push(t):zt(t)&&t.addLeafColumns(e)}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);for(const t of this.getLeafColumns())t.__addEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=()=>{for(const t of this.getLeafColumns())t.__removeEventListener("visibleChanged",e);this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,i=!1;const o=this.findChildrenRemovingPadding();for(let s=0,r=o.length;s<r;s++){const a=o[s];if(!a.isVisible())continue;const l=a.getColumnGroupShow();"open"===l?(e=!0,i=!0):"closed"===l?(t=!0,i=!0):(e=!0,t=!0)}const n=e&&t&&i;this.expandable!==n&&(this.expandable=n,this.dispatchLocalEvent({type:"expandableChanged"}))}findChildrenRemovingPadding(){const e=[],t=i=>{for(const o of i)zt(o)&&o.isPadding()?t(o.children):e.push(o)};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},qh={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function Ur(e,t,i){const o={},n=e.gos;return Object.assign(o,n.get("defaultColGroupDef")),Object.assign(o,t),n.validateColDef(o,i),o}var Xh=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=L(e);let i=0;for(;;){let o=e??t;if(o?0!==i&&(o+="_"+i):o=i,!this.existingKeys[o]){const n=String(o);return e&&i>0&&se(273,{providedId:e,usedId:n}),this.existingKeys[n]=!0,n}i++}}};function rt(e){if(e?.length)return e[e.length-1]}function ho(e,t,i){if(e===t)return!0;if(!e||!t)return null==e&&null==t;const o=e.length;if(o!==t.length)return!1;for(let n=0;n<o;n++)if(e[n]!==t[n]&&!i?.(e[n],t[n]))return!1;return!0}function Gn(e,t){if(e)for(const i of e)t(i)}function gi(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function Zl(e,t,i){for(let o=0;o<t.length;o++)gi(e,t[o]);for(let o=t.length-1;o>=0;o--)e.splice(i,0,t[o])}Object.freeze([]);var go="ag-Grid-AutoColumn",$r="ag-Grid-SelectionColumn",jr="ag-Grid-RowNumbersColumn";function Jl(e){const t=[],i=o=>{for(let n=0;n<o.length;n++){const s=o[n];co(s)?t.push(s):zt(s)&&i(s.getChildren())}};return i(e),t}function Ki(e){return e.reduce((t,i)=>t+i.getActualWidth(),0)}function _s(e,t,i){const o={};if(!t)return;Ii(null,t,s=>{o[s.getInstanceId()]=s}),i&&Ii(null,i,s=>{o[s.getInstanceId()]=null});const n=Object.values(o).filter(s=>null!=s);e.context.destroyBeans(n)}function Kr(e){return e.getId().startsWith(go)}function qi(e){return("string"==typeof e?e:"getColId"in e?e.getColId():e.colId)?.startsWith($r)??!1}function Xi(e){return("string"==typeof e?e:"getColId"in e?e.getColId():e.colId)?.startsWith(jr)??!1}function Yh(e){return qi(e)||Xi(e)}function ks(e){let t=[];return e instanceof Array?t=e:"string"==typeof e&&(t=e.split(",")),t}function Jo(e){return"optionsUpdated"===e?"gridOptionsChanged":e}function Nn(e,t){const i=e===t,o=e.getColDef()===t,n=e.getColId()==t;return i||o||n}var ed=(e,t)=>{zt(e)&&e.setupExpandable(),e.originalParent=t};function id(e,t,i,o,n,s,r,a){if(!t)return[];const{colGroupSvc:l}=e,d=new Array(t.length);for(let c=0;c<d.length;c++){const u=t[c];d[c]=l&&sd(u)?l.createProvidedColumnGroup(o,u,i,n,s,r,a):tg(e,o,u,n,s,a)}return d}function tg(e,t,i,o,n,s){const r=function ig(e,t){if(t)for(let i=0;i<t.length;i++){const o=t[i].getUserProvidedColDef();if(o)if(null==e.colId){if(null==e.field){if(o===e)return{idx:i,column:t[i]}}else if(o.field===e.field)return{idx:i,column:t[i]}}else if(t[i].getId()===e.colId)return{idx:i,column:t[i]}}}(i,o);r&&o?.splice(r.idx,1);let a=r?.column;if(a){const l=Ts(e,i,a.getColId());a.setColDef(l,i,s),function nd(e,t,i,o){od(e,t,i.hide,i.sort,i.sortIndex,i.pinned,i.flex,o);const n=t.getFlex();if(!(null!=n&&n>0))if(null!=i.width)t.setActualWidth(i.width,o);else{const s=t.getActualWidth();t.setActualWidth(s,o)}}(e,a,l,s)}else{const l=n.getUniqueKey(i.colId,i.field),d=Ts(e,i,l);a=new uo(d,i,l,t),e.context.createBean(a)}return e.dataTypeSvc?.addColumnListeners(a),a}function od(e,t,i,o,n,s,r,a){const{sortSvc:l,pinnedCols:d,colFlex:c}=e;void 0!==i&&t.setVisible(!i,a),l&&(l.updateColSort(t,o,a),void 0!==n&&l.setColSortIndex(t,n)),void 0!==s&&d?.setColPinned(t,s),void 0!==r&&c?.setColFlex(t,r)}function Ts(e,t,i,o){const{gos:n,dataTypeSvc:s}=e,r={};It(r,n.get("defaultColDef"),!1,!0);const l=function og(e,t,i,o){const n=e.dataTypeSvc?.updateColDefAndGetColumnType(t,i,o),s=i.type??n??t.type;return t.type=s,s?ks(s):void 0}(e,r,t,i);l&&function ng(e,t,i){if(!t.length)return;const o=Object.assign({},qh),n=e.gos.get("columnTypes")||{};for(const s of Object.keys(n)){const r=n[s];s in o?se(34,{key:s}):(r.type&&se(35),o[s]=r)}for(const s of t){const r=o[s.trim()];r?It(i,r,!1,!0):se(36,{t:s})}}(e,l,r);const d=r.cellDataType;It(r,t,!1,!0),void 0!==d&&(r.cellDataType=d);const c=n.get("autoGroupColumnDef"),u=ti(n);return t.rowGroup&&c&&u&&It(r,{sort:c.sort,initialSort:c.initialSort},!1,!0),s&&(s.postProcess(r),s.validateColDef(r)),n.validateColDef(r,i,o),r}function sd(e){return void 0!==e.children}function Ii(e,t,i){if(t)for(let o=0;o<t.length;o++){const n=t[o];zt(n)&&Ii(n,n.getChildren(),i),i(n,e)}}function rd(e,t){const i=[],o=[],n=[];return e.forEach(r=>{const a=r.getColDef().lockPosition;"right"===a?n.push(r):"left"===a||!0===a?i.push(r):o.push(r)}),t.get("enableRtl")?[...n,...o,...i]:[...i,...o,...n]}function ad(e,t){let i=!0;return Ii(null,t,o=>{if(!zt(o))return;const n=o;if(!n.getColGroupDef()?.marryChildren)return;const a=[];for(const g of n.getLeafColumns()){const m=e.indexOf(g);a.push(m)}Math.max.apply(Math,a)-Math.min.apply(Math,a)>n.getLeafColumns().length-1&&(i=!1)}),i}function ld(e,t){if(!e||0==e.length)return;const i=t(e[0]);for(let o=1;o<e.length;o++)if(i!==t(e[o]))return;return i}function dd(e,t,i){if(!t.length)return;const o=1===t.length?t[0]:null,n=ld(t,s=>s.getPinned());e.dispatchEvent({type:"columnPinned",pinned:n??null,columns:t,column:o,source:i})}function en(e,t,i,o,n=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:1===t.length?t[0]:null,flexColumns:n,finished:i,source:o})}function Pi(e,t,i){const{colModel:o,rowGroupColsSvc:n,pivotColsSvc:s,autoColSvc:r,selectionColSvc:a,colAnimation:l,visibleCols:d,pivotResultCols:c,environment:u,valueColsSvc:g,eventSvc:m,gos:w}=e,b=o.getColDefCols()??[],x=a?.getColumns();if(!b.length&&!x?.length)return!1;if(t?.state&&!t.state.forEach)return se(32),!1;const A=(oe,ce,pe,Ne,$e)=>{if(!oe)return;const Ue=((e,t)=>(i,o)=>{const n={value1:void 0,value2:void 0};let s=!1;return e&&(void 0!==e[i]&&(n.value1=e[i],s=!0),p(o)&&void 0!==e[o]&&(n.value2=e[o],s=!0)),!s&&t&&(void 0!==t[i]&&(n.value1=t[i]),p(o)&&void 0!==t[o]&&(n.value2=t[o])),n})(ce,t.defaultState),je=Ue("flex").value1;if(od(e,oe,Ue("hide").value1,Ue("sort").value1,Ue("sortIndex").value1,Ue("pinned").value1,je,i),null==je){const lt=Ue("width").value1;if(null!=lt){const pt=oe.getColDef().minWidth??u.getDefaultColumnMinWidth();null!=pt&<>=pt&&oe.setActualWidth(lt,i)}}$e||!oe.isPrimary()||(g?.syncColumnWithState(oe,i,Ue),n?.syncColumnWithState(oe,i,Ue,pe),s?.syncColumnWithState(oe,i,Ue,Ne))},O=(oe,ce,pe)=>{const Ne=ud(e,i),$e=ce.slice(),Ue={},je={},lt=[],pt=[],Ut=[];let Yt=0;const X3=n?.columns.slice()??[],Y3=s?.columns.slice()??[];for(const $t of oe){const ds=$t.colId;if(ds.startsWith(go)){lt.push($t),Ut.push($t);continue}if(qi(ds)){pt.push($t),Ut.push($t);continue}const wn=pe(ds);wn?(A(wn,$t,Ue,je,!1),gi($e,wn)):(Ut.push($t),Yt+=1)}const kh=$t=>A($t,null,Ue,je,!1);$e.forEach(kh),n?.sortColumns(gd.bind(n,Ue,X3)),s?.sortColumns(gd.bind(s,je,Y3)),o.refreshCols(!1,i);const Th=($t,ds,Vl=[])=>{for(const wn of ds){const Ah=$t(wn.colId);gi(Vl,Ah),A(Ah,wn,null,null,!0)}Vl.forEach(kh)};return Th($t=>r?.getColumn($t)??null,lt,r?.getColumns()?.slice()),Th($t=>a?.getColumn($t)??null,pt,a?.getColumns()?.slice()),function ag(e,t,i){if(!e.applyOrder||!e.state)return;const o=[];for(const n of e.state)null!=n.colId&&o.push(n.colId);!function lg(e,t,i,o){if(null==e)return;let n=[];const s={};for(const a of t){if(s[a])continue;const l=e.map[a];l&&(n.push(l),s[a]=!0)}let r=0;for(const a of e.list){const l=a.getColId();null==s[l]&&(l.startsWith(go)?n.splice(r++,0,a):n.push(a))}n=rd(n,o),ad(n,i.getColTree())?e.list=n:se(39)}(t.cols,o,t,i)}(t,o,w),d.refresh(i),m.dispatchEvent({type:"columnEverythingChanged",source:i}),Ne(),{unmatchedAndAutoStates:Ut,unmatchedCount:Yt}};l?.start();let{unmatchedAndAutoStates:V,unmatchedCount:te}=O(t.state||[],b,oe=>o.getColDefCol(oe));return(V.length>0||p(t.defaultState))&&(te=O(V,c?.getPivotResultCols()?.list??[],ce=>c?.getPivotResultCol(ce)??null).unmatchedCount),l?.finish(),0===te}function ud(e,t){const{rowGroupColsSvc:i,pivotColsSvc:o,valueColsSvc:n,colModel:s,sortSvc:r,eventSvc:a}=e,l={rowGroupColumns:i?.columns.slice()??[],pivotColumns:o?.columns.slice()??[],valueColumns:n?.columns.slice()??[]},d=As(e),c={};for(const u of d)c[u.colId]=u;return()=>{const u=(ce,pe,Ne,$e)=>{if(ho(pe.map($e),Ne.map($e)))return;const pt=new Set(pe);for(const Yt of Ne)pt.delete(Yt)||pt.add(Yt);const Ut=[...pt];a.dispatchEvent({type:ce,columns:Ut,column:1===Ut.length?Ut[0]:null,source:t})},g=ce=>{const pe=[];return s.forAllCols(Ne=>{const $e=c[Ne.getColId()];$e&&ce($e,Ne)&&pe.push(Ne)}),pe},m=ce=>ce.getColId();u("columnRowGroupChanged",l.rowGroupColumns,i?.columns??[],m),u("columnPivotChanged",l.pivotColumns,o?.columns??[],m);const b=g((ce,pe)=>{const Ne=null!=ce.aggFunc,$e=Ne!=pe.isValueActive(),Ue=Ne&&ce.aggFunc!=pe.getAggFunc();return $e||Ue});b.length>0&&function cd(e,t,i,o){e.dispatchEvent({type:t,columns:i,column:i&&1==i.length?i[0]:null,source:o})}(a,"columnValueChanged",b,t),en(a,g((ce,pe)=>ce.width!=pe.getActualWidth()),!0,t),dd(a,g((ce,pe)=>ce.pinned!=pe.getPinned()),t),function sg(e,t,i){if(!t.length)return;const o=1===t.length?t[0]:null,n=ld(t,s=>s.isVisible());e.dispatchEvent({type:"columnVisible",visible:n,columns:t,column:o,source:i})}(a,g((ce,pe)=>ce.hide==pe.isVisible()),t);const te=g((ce,pe)=>ce.sort!=pe.getSort()||ce.sortIndex!=pe.getSortIndex());te.length>0&&r?.dispatchSortChangedEvents(t,te);const oe=As(e);!function dg(e,t,i,o,n){const s={};for(const c of t)s[c.colId]=c;const r={};for(const c of e)s[c.colId]&&(r[c.colId]=!0);const a=e.filter(c=>r[c.colId]),l=t.filter(c=>r[c.colId]),d=[];l.forEach((c,u)=>{const g=a?.[u];if(g&&g.colId!==c.colId){const m=o.getCol(g.colId);m&&d.push(m)}}),d.length&&n.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,finished:!0,source:i})}(d,oe,t,s,a)}}function As(e){const{colModel:t,rowGroupColsSvc:i,pivotColsSvc:o}=e;if(K(t.getColDefCols())||!t.isAlive())return[];const s=i?.columns,r=o?.columns,a=[];t.forAllCols(c=>(c=>{const u=c.isRowGroupActive()&&s?s.indexOf(c):null,g=c.isPivotActive()&&r?r.indexOf(c):null,m=c.isValueActive()?c.getAggFunc():null,w=null!=c.getSort()?c.getSort():null,b=null!=c.getSortIndex()?c.getSortIndex():null;a.push({colId:c.getColId(),width:c.getActualWidth(),hide:!c.isVisible(),pinned:c.getPinned(),sort:w,sortIndex:b,aggFunc:m,rowGroup:c.isRowGroupActive(),rowGroupIndex:u,pivot:c.isPivotActive(),pivotIndex:g,flex:c.getFlex()??null})})(c));const d=new Map(t.getCols().map((c,u)=>[c.getColId(),u]));return a.sort((c,u)=>(d.has(c.colId)?d.get(c.colId):-1)-(d.has(u.colId)?d.get(u.colId):-1)),a}function hd(e){const t=(w,b)=>w??b??null,i=e.getColDef(),o=t(i.sort,i.initialSort),n=t(i.sortIndex,i.initialSortIndex),s=t(i.hide,i.initialHide),r=t(i.pinned,i.initialPinned),a=t(i.width,i.initialWidth),l=t(i.flex,i.initialFlex);let d=t(i.rowGroupIndex,i.initialRowGroupIndex),c=t(i.rowGroup,i.initialRowGroup);null==d&&!c&&(d=null,c=null);let u=t(i.pivotIndex,i.initialPivotIndex),g=t(i.pivot,i.initialPivot);null==u&&!g&&(u=null,g=null);const m=t(i.aggFunc,i.initialAggFunc);return{colId:e.getColId(),sort:o,sortIndex:n,hide:s,pinned:r,width:a,flex:l,rowGroup:c,rowGroupIndex:d,pivot:g,pivotIndex:u,aggFunc:m}}var gd=(e,t,i,o)=>{const n=e[i.getId()],s=e[o.getId()],r=null!=n,a=null!=s;if(r&&a)return n-s;if(r)return-1;if(a)return 1;const l=t.indexOf(i),d=t.indexOf(o),c=l>=0;return c&&d>=0?l-d:c?-1:1},pd=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let i;return i="number"!=typeof t?0:t+1,this.existingIds[e]=i,i}};function zn(e,t,i){return i&&e.addDestroyFunc(()=>t.destroyBean(i)),i??e}var fe=null;function fd(e){return"function"==typeof e?.getGui}var md=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(e){if(e.indexOf(" ")>=0){const o=(e||"").split(" ");if(o.length>1){for(const n of o)this.toggleCss(n,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}}},ug=0,Wn=class extends Vt{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=ug++,this.cssManager=new md(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(i=>[i.selector,i])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui());const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(Xe):null}applyElementsToComponent(e,t,i,o=null){if(void 0===t&&(t=this.getDataRefAttribute(e)),t){const n=this[t];if(n===fe)this[t]=o??e;else{const s=i?.[t];if(!this.suppressDataRefValidation&&!s)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${n}`)}}}createChildComponentsFromTags(e,t){const i=[];for(const o of e.childNodes??[])i.push(o);for(const o of i){if(!(o instanceof HTMLElement))continue;const n=this.createComponentFromElement(o,s=>{const r=s.getGui();if(r)for(const a of o.attributes??[])r.setAttribute(a.name,a.value)},t);if(n){if(n.addItems&&o.children.length){this.createChildComponentsFromTags(o,t);const s=Array.prototype.slice.call(o.children);n.addItems(s)}this.swapComponentForNode(n,e,o)}else o.childNodes&&this.createChildComponentsFromTags(o,t)}}createComponentFromElement(e,t,i){const o=e.nodeName,n=this.getDataRefAttribute(e),s=0===o.indexOf("AG-"),r=s?this.componentSelectors.get(o):null;let a=null;if(r)a=new r.component(i&&n?i[n]:void 0),a.setParentComponent(this),this.createBean(a,null,t);else if(s)throw new Error(`selector: ${o}`);return this.applyElementsToComponent(e,n,i,a),a}swapComponentForNode(e,t,i){const o=e.getGui();t.replaceChild(o,i),t.insertBefore(document.createComment(i.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const i of e)i.setAttribute("tabindex",t.toString())}setTemplate(e,t,i){let o;o="string"==typeof e||null==e?Jt(e):_t(e),this.setTemplateFromElement(o,t,i)}setTemplateFromElement(e,t,i,o=!1){if(this.eGui=e,this.suppressDataRefValidation=o,t)for(let n=0;n<t.length;n++){const s=t[n];this.componentSelectors.set(s.selector,s)}this.wireTemplate(e,i)}getGui(){return this.eGui}getFocusableElement(){return this.eGui}getAriaElement(){return this.getFocusableElement()}setParentComponent(e){this.parentComponent=e}getParentComponent(){return this.parentComponent}setGui(e){this.eGui=e}queryForHtmlElement(e){return this.eGui.querySelector(e)}getContainerAndElement(e,t){let i=t;return null==e?null:(i||(i=this.eGui),Fe(e)?{element:e,parent:i}:{element:e.getGui(),parent:i})}prependChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.insertAdjacentElement("afterbegin",i)}appendChild(e,t){const{element:i,parent:o}=this.getContainerAndElement(e,t)||{};!i||!o||o.appendChild(i)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:i}=t;!function xo(e,t,i={}){const{skipAriaHidden:o}=i;e.classList.toggle("ag-invisible",!t),o||Ct(e,!t)}(this.eGui,e,{skipAriaHidden:i})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:i}=t;it(this.eGui,e,{skipAriaHidden:i}),this.dispatchLocalEvent({type:"displayChanged",visible:this.displayed})}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,i){this.eGui.addEventListener(e,t,i),this.addDestroyFunc(()=>this.eGui.removeEventListener(e,t))}addCss(e){this.cssManager.toggleCss(e,!0)}removeCss(e){this.cssManager.toggleCss(e,!1)}toggleCss(e,t){this.cssManager.toggleCss(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}},ot=class extends Wn{};function Cd(e){return"object"==typeof e&&!!e.component}var ft=class cs{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(i=>this.onDone(i),i=>this.onReject(i))}static all(t){return t.length?new cs(i=>{let o=t.length;const n=new Array(o);t.forEach((s,r)=>{s.then(a=>{n[r]=a,o--,0===o&&i(n)})})}):cs.resolve()}static resolve(t=null){return new cs(i=>i(t))}then(t){return new cs(i=>{1===this.status?i(t(this.resolution)):this.waiters.push(o=>i(t(o)))})}onDone(t){this.status=1,this.resolution=t;for(const i of this.waiters)i(t)}onReject(t){}};function vd(e,t,i,o){const{name:n}=i;let s,r,a,l,d,c;if(t){const u=t,g=u[n+"Selector"],m=g?g(o):null,w=b=>{"string"==typeof b?s=b:null!=b&&!0!==b&&(e.isFrameworkComponent(b)?a=b:r=b)};m?(w(m.component),l=m.params,d=m.popup,c=m.popupPosition):w(u[n])}return{compName:s,jsComp:r,fwComp:a,paramsFromSelector:l,popupFromSelector:d,popupPositionFromSelector:c}}var fg={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},mg={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},Cg={name:"headerComponent",optionalMethods:["refresh"]},vg={name:"innerHeaderComponent"},wg={name:"innerHeaderGroupComponent"},bg={name:"headerGroupComponent"},Sg={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},Eg={name:"loadingCellRenderer",cellRenderer:!0},xg={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},Pg={name:"loadingOverlayComponent",optionalMethods:["refresh"]},Fg={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},Dg={name:"tooltipComponent"},qr={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},Mg={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},_g={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},kg={name:"loadingCellRenderer",cellRenderer:!0},Tg={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},Ag={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function wd(e,t,i){return e.getCompDetails(t,Sg,void 0,i)}function bd(e,t,i){return e.getCompDetails(t,Eg,"agSkeletonCellRenderer",i,!0)}function yd(e,t,i){return e.getCompDetails(t,xg,"agCellEditor",i,!0)}function Sd(e,t){return vd(e,t,qr)}function Xr(e,t,i){return e.mergeParams(t,qr,i)}function Un(e){const t=e;return null!=t?.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}function Xg(e){return"object"==typeof e&&!!e.getComp}var Qr,Zr,Jr,ea,ta,ia,oa,N_LEFT="ArrowLeft",N_UP="ArrowUp",N_RIGHT="ArrowRight",N_DOWN="ArrowDown",Yr=class extends Wn{isPopup(){return!0}setParentComponent(e){e.addCss("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e?.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}};function po(){return void 0===Qr&&(Qr=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Qr}function Rd(){return void 0===Zr&&(Zr=/(firefox)/i.test(navigator.userAgent)),Zr}function Ed(){return void 0===Jr&&(Jr=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Jr}function To(){return void 0===ea&&(ea=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),ea}function na(e){if(!e)return null;const t=e.tabIndex,i=e.getAttribute("tabIndex");return-1!==t||null!==i&&(""!==i||Rd())?t.toString():null}function xd(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let i=t.offsetWidth-t.clientWidth;0===i&&0===t.clientWidth&&(i=null),t.parentNode&&t.remove(),null!=i&&(ia=i,ta=0===i)}function Pd(){return null==ta&&xd(),ta}var Zg=new RegExp("[T ]"),Jg=new RegExp("^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}:\\d{2}\\D?)?");function Oi(e,t){return e.toString().padStart(t,"0")}function oi(e,t=!0,i="T"){if(!e)return null;let o=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(n=>Oi(n,2)).join("-");return t&&(o+=i+[e.getHours(),e.getMinutes(),e.getSeconds()].map(n=>Oi(n,2)).join(":")),o}function Is(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),Oi(e.getDate(),2),Oi(e.getHours(),2),`:${Oi(e.getMinutes(),2)}`,`:${Oi(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,Oi(e.getDate(),2)].map(String):null}var ra=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"},Fd=["January","February","March","April","May","June","July","August","September","October","November","December"],aa=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function la(e,t){if(null==t)return oi(e,!1);const i=Oi(e.getFullYear(),4),o={YYYY:()=>i.slice(i.length-4,i.length),YY:()=>i.slice(i.length-2,i.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>Fd[e.getMonth()],MMM:()=>Fd[e.getMonth()].slice(0,3),MM:()=>Oi(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${ra(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${ra(e.getDate())}`,DD:()=>Oi(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>aa[e.getDay()],ddd:()=>aa[e.getDay()].slice(0,3),dd:()=>aa[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${ra(e.getDay())}`,d:()=>`${e.getDay()}`},n=new RegExp(Object.keys(o).join("|"),"g");return t.replace(n,s=>s in o?o[s]():s)}function Os(e,t=!1){return!!qt(e,t)}function qt(e,t=!1,i){if(!e||!i&&!Jg.test(e))return null;const[o,n]=e.split(Zg);if(!o)return null;const s=o.split("-").map(m=>Number.parseInt(m,10));if(3!==s.filter(m=>!isNaN(m)).length)return null;const[r,a,l]=s,d=new Date(r,a-1,l);if(d.getFullYear()!==r||d.getMonth()!==a-1||d.getDate()!==l||!n&&t)return null;if(!n||"00:00:00"===n)return d;const[c,u,g]=n.split(":").map(m=>Number.parseInt(m,10));if(c>=0&&c<24)d.setHours(c);else if(t)return null;if(u>=0&&u<60)d.setMinutes(u);else if(t)return null;if(g>=0&&g<60)d.setSeconds(g);else if(t)return null;return d}function da(e){const{inputValue:t,allSuggestions:i,hideIrrelevant:o,filterByPercentageOfBestMatch:n}=e;let s=(i??[]).map((l,d)=>({value:l,relevance:tp(t,l),idx:d}));if(s.sort((l,d)=>l.relevance-d.relevance),o&&(s=s.filter(l=>l.relevance<Math.max(l.value.length,t.length))),s.length>0&&n&&n>0){const d=s[0].relevance*n;s=s.filter(c=>d-c.relevance<0)}const r=[],a=[];for(const l of s)r.push(l.value),a.push(l.idx);return{values:r,indices:a}}function tp(e,t){e.length<t.length&&([e,t]=[t,e]);let i=[],o=[];const n=e.length,s=t.length;for(let a=0;a<=s;a++)i[a]=a;let r=0;for(let a=1;a<=n;a++){o[0]=a;for(let l=1;l<=s;l++){const d=e[a-1],c=t[l-1];d.toLocaleLowerCase()===c.toLocaleLowerCase()?(++r,d===c&&++r,a>1&&l>1&&e[a-2].toLocaleLowerCase()===t[l-2].toLocaleLowerCase()&&(++r,e[a-2]===t[l-2]&&++r),a<n/2-10&&++r,o[l]=i[l-1]):o[l]=1+Math.min(o[l-1],i[l],i[l-1])}[i,o]=[o,i]}return i[s]/(r+1)}function Dd(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key?.length}var ca=!1,Ls=0;function Bs(e){const i="keydown"===e.type;i&&(e.ctrlKey||e.metaKey||e.altKey)||ca!==i&&(ca=i)}function tn(e,t,i=!1){let n=Gi;t&&(n+=", "+t),i&&(n+=', [tabindex="-1"]');const s=Array.prototype.slice.apply(e.querySelectorAll("[tabindex], input, select, button, textarea, [href]")).filter(l=>Dt(l)),r=Array.prototype.slice.apply(e.querySelectorAll(n));return r.length?(d=r,s.filter(c=>-1===d.indexOf(c))):s;var d}function Ao(e,t=!1,i=!1,o=!1){const n=tn(e,o?".ag-tab-guard":null,i),s=t?rt(n):n[0];return!!s&&(s.focus({preventScroll:!0}),!0)}function Io(e,t,i,o){const n=tn(t,i?':not([tabindex="-1"])':null),s=le(e);let r;r=i?n.findIndex(l=>l.contains(s)):n.indexOf(s);const a=r+(o?-1:1);return a<0||a>=n.length?null:n[a]}function Md(e,t=5){let i=0;for(;e&&null===na(e)&&++i<=t;)e=e.parentElement;return null===na(e)?null:e}var Ad,Wd,rn,an,ap=class extends Wn{constructor(e,t,i){super(t,i),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}")}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:i,labelAlignment:o,disabled:n}=this.config;null!=n&&this.setDisabled(n),null!=e&&this.setLabelSeparator(e),null!=t&&this.setLabel(t),null!=i&&this.setLabelWidth(i),this.setLabelAlignment(o||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;wt(t),"string"==typeof e?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),""===e?(it(t,!1),ne(t,"presentation")):(it(t,!0),ne(t,null))}setLabelSeparator(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e||(this.label=e,this.refreshLabel()),this}setLabelAlignment(e){const i=this.getGui().classList;return i.toggle("ag-label-align-left","left"===e),i.toggle("ag-label-align-right","right"===e),i.toggle("ag-label-align-top","top"===e),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return null==this.label||Ri(this.eLabel,e),this}setDisabled(e){e=!!e;const t=this.getGui();return Di(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},_d=class extends ap{constructor(e,t,i,o){super(e,t,i),this.className=o}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:i}=this.config;null!=e&&this.setWidth(e),null!=t&&this.setValue(t),null!=i&&this.onValueChange(i),this.className&&this.addCss(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),i=this.getLabel();null==i||""==i||null!==function ie(e){return e.getAttribute("aria-label")}(e)?xe(e,""):xe(e,t??"")}setAriaLabel(e){return ee(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return Mt(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e||(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"})),this}},Oo=class extends _d{constructor(e,t,i="text",o="input"){super(e,e?.template??function lp(e){return{tag:"div",role:"presentation",children:[{tag:"div",ref:"eLabel",cls:"ag-input-field-label"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-input-wrapper",role:"presentation",children:[{tag:e,ref:"eInput",cls:"ag-input-field-input"}]}]}}(o),[],t),this.inputType=i,this.displayFieldTag=o,this.eLabel=fe,this.eWrapper=fe,this.eInput=fe}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:i,className:o}=this;e.classList.add(`${o}-label`),t.classList.add(`${o}-input-wrapper`),i.classList.add(`${o}-input`),this.addCss("ag-input-field"),i.id=i.id||`ag-${this.getCompId()}-input`;const{inputName:n,inputWidth:s}=this.config;null!=n&&this.setInputName(n),null!=s&&this.setInputWidth(s),this.addInputListeners(),this.activateTabIndex([i])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){"input"===this.displayFieldTag&&(this.inputType=e,z(this.eInput,"type",e))}getInputElement(){return this.eInput}setInputWidth(e){return Ri(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){return this.eInput.maxLength=e,this}setInputPlaceholder(e){return z(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return ee(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Di(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){return z(this.eInput,"autocomplete",!0===e?null:"string"==typeof e?e:"off"),this}},Vs=class extends Oo{constructor(e,t="ag-checkbox",i="checkbox"){super(e,t,i),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;"boolean"==typeof e&&this.setReadOnly(e),"boolean"==typeof t&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return void 0===this.selected||!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){return this.getInputElement().name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0;const i=this.eInput;i.checked=e,i.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,i){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:i});const o=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:o.id,name:o.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),i=this.selected=e.target.checked;this.refreshSelectedClass(i),this.dispatchChange(i,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",!0===e),t.toggle("ag-indeterminate",null==e)}},ua={selector:"AG-CHECKBOX",component:Vs},dp=class extends Vs{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},Lo=class extends Oo{constructor(e,t="ag-text-field",i="text"){super(e,t,i)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const i=this.eInput;return i.value!==e&&(i.value=p(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`);this.addManagedListeners(this.eInput,{keydown:i=>{Dd(i)&&i.key&&!e.test(i.key)&&i.preventDefault()},paste:i=>{i.clipboardData?.getData("text")?.split("").some(n=>!e.test(n))&&i.preventDefault()}})}},Hs={selector:"AG-INPUT-TEXT-FIELD",component:Lo},gp={selector:"AG-INPUT-TEXT-AREA",component:class extends Oo{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const i=super.setValue(e,t);return this.eInput.value=e,i}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}}},ha=class extends Lo{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const s=Number.parseFloat(e.value),r=isNaN(s)?"":this.normalizeValue(s.toString());this.value!==r&&this.setValue(r)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:i,max:o,step:n}=this.config;"number"==typeof t&&this.setPrecision(t),"number"==typeof i&&this.setMin(i),"number"==typeof o&&this.setMax(o),"number"==typeof n&&this.setStep(n)}onWheel(e){le(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return""===e?"":(null!=this.precision&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const i=this.precision;if(null==i)return e;if(t){const n=Number.parseFloat(e).toFixed(i);return Number.parseFloat(n).toString()}const o=String(e).split(".");if(o.length>1){if(o[1].length<=i)return e;if(i>0)return`${o[0]}.${o[1].slice(0,i)}`}return o[0]}setMin(e){return this.min===e||(this.min=e,z(this.eInput,"min",e)),this}setMax(e){return this.max===e||(this.max=e,z(this.eInput,"max",e)),this}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e||(this.step=e,z(this.eInput,"step",e)),this}setValue(e,t){return this.setValueOrInputValue(i=>super.setValue(i,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,i){if(p(i)){let o=this.isScientificNotation(i);if(o&&this.eInput.validity.valid)return e(i);if(o||(o=(i=this.adjustPrecision(i))!=this.normalizeValue(i)),o)return t(i)}return e(i)}getValue(){const e=this.eInput;if(!e.validity.valid)return;const t=e.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):super.getValue()}isScientificNotation(e){return"string"==typeof e&&e.includes("e")}},pp={selector:"AG-INPUT-NUMBER-FIELD",component:ha},kd={selector:"AG-INPUT-DATE-FIELD",component:class extends Lo{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=po();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){le(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?oi(e??null,!!this.includeTime)??void 0:e;return this.min===t||(this.min=t,z(this.eInput,"min",t)),this}setMax(e){const t=e instanceof Date?oi(e??null,!!this.includeTime)??void 0:e;return this.max===t||(this.max=t,z(this.eInput,"max",t)),this}setStep(e){return this.step===e||(this.step=e,z(this.eInput,"step",e)),this}setIncludeTime(e){return this.includeTime===e||(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1)),this}getDate(){if(this.eInput.validity.valid)return qt(this.getValue())??void 0}setDate(e,t){this.setValue(oi(e??null,this.includeTime),t)}}},wp=class extends Wn{constructor(e,t,i){super(((e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",ref:"eText",children:t}]}))(e,t)),this.label=t,this.value=i,this.eText=fe}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle("ag-active-item",e),Ro(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const i=this.getGui();(function B(e,t){j(e,"posinset",t)})(i,e),function Ve(e,t){j(e,"setsize",t)}(i,t)}createTooltip(){const t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,{getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>Ht(this.eText)},this));t&&(this.tooltipFeature=t)}addEventListeners(){const e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},bp=class extends Wn{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}")}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case"Enter":if(this.highlightedItem){const i=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(i)}else this.setValue(this.getValue());break;case N_DOWN:case N_UP:e.preventDefault(),this.navigate(t);break;case"PageDown":case"PageUp":case"Home":case"End":e.preventDefault(),this.navigateToPage(t)}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:i}=e,o=i??t;return this.options.push({value:t,text:o}),this.renderOption(t,o),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();wt(this.getGui()),this.listItems=[],this.refreshAriaRole()}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(t),this;const i=this.options.findIndex(o=>o.value===e);if(-1!==i){const o=this.options[i];this.value=o.value,this.displayValue=o.text,this.highlightItem(this.listItems[i]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);-1!==e&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Dt(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const i=this.getGui(),{scrollTop:o,clientHeight:n}=i,{offsetTop:s,offsetHeight:r}=t;(s+r>o+n||s<o)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const i=new wp(this.cssIdentifier,t,e);i.setParentComponent(this);const o=this.createManagedBean(i);this.listItems.push(o),this.getGui().appendChild(o.getGui())}navigate(e){const t=e===N_DOWN;let i;const{listItems:o,highlightedItem:n}=this;if(n){let r=o.indexOf(n)+(t?1:-1);r=Math.min(Math.max(r,0),o.length-1),i=o[r]}else i=t?o[0]:rt(o);this.highlightItem(i)}navigateToPage(e){const{listItems:t,highlightedItem:i}=this;if(!i||0===t.length)return;const o=t.indexOf(i),n=this.options.length-1,s=t[0].getHeight(),r=Math.floor(this.getGui().clientHeight/s);let a=-1;"Home"===e?a=0:"End"===e?a=n:"PageDown"===e?a=Math.min(o+r,n):"PageUp"===e&&(a=Math.max(o-r,0)),-1!==a&&this.highlightItem(t[a])}refreshAriaRole(){ne(this.getGui(),0===this.options.length?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((i,o)=>{i.setIndex(o+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},Sp={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},Rp=class extends _d{constructor(e){if(super(e,e?.template||Sp,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=fe,this.eWrapper=fe,this.eDisplayField=fe,this.eIcon=fe,this.registerCSS(".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.ag-picker-has-focus),&:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:disabled{opacity:.5}}"),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:i,variableWidth:o,minPickerWidth:n,maxPickerWidth:s}=e;null!=t&&(this.pickerGap=t),this.variableWidth=!!o,null!=i&&this.setPickerMaxHeight(i),null!=n&&this.setPickerMinWidth(n),null!=s&&this.setPickerMaxWidth(s)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:i,inputWidth:o}=this.config;if(i){const n=this.beans.iconSvc.createIconNoSpan(i);n&&this.eIcon.appendChild(n)}null!=o&&this.setInputWidth(o)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),Lt(e,!1),this.ariaRole&&ne(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case N_UP:case N_DOWN:case"Enter":case" ":e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case"Escape":this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:i,pickerAriaLabelValue:o,modalPicker:n=!0},maxPickerHeight:s,minPickerWidth:r,maxPickerWidth:a,variableWidth:l,beans:d,eWrapper:c}=this,u={modal:n,eChild:e,closeOnEsc:!0,closedCallback:()=>{const b=me(d);this.beforeHidePicker(),b&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(i,o),anchorToElement:c};e.style.position="absolute";const g=d.popupSvc,m=g.addPopup(u);l?(r&&(e.style.minWidth=r),e.style.width=Ae(Po(c)),a&&(e.style.maxWidth=a)):Ri(e,a??Po(c));const w=s??`${$o(g.getPopupParent())}px`;return e.style.setProperty("max-height",w),this.alignPickerToComponent(),m.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:i,gos:o},eWrapper:n,pickerComponent:s}=this,r=o.get("enableRtl")?"right":"left";i.positionPopupByComponent({type:t,eventSource:n,ePopup:s.getGui(),position:"under",alignSide:r,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;Lt(this.getAriaElement(),e);const i=this.eWrapper.classList;i.toggle("ag-picker-expanded",e),i.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return Ri(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return"number"==typeof e&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return"number"==typeof e&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return"number"==typeof e&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},ga=class extends Rp{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;:where(span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}:where(.ag-ltr) .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding)/2)}:where(.ag-rtl) .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding)/2)}")}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:ci(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:i}=this.config;null!=e&&this.addOptions(e),null!=t&&this.setValue(t,!0),i&&null==t&&(this.eDisplayField.textContent=i),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new bp("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),i=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",i),function Eo(e,t){(function Qt(e,t){Pe(e,"controls",t)})(e,t.id),xe(t,e.id)}(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:o=>{o?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){const{key:t}=e;switch("Tab"===t&&this.hidePicker(),t){case"Enter":case N_UP:case N_DOWN:case"PageUp":case"PageDown":case"Home":case"End":e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case"Escape":super.onKeyDown(e);break;case" ":this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e)}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}setValue(e,t,i){const{listComponent:o,config:{placeholder:n},eDisplayField:s,tooltipFeature:r}=this;if(this.value===e||!o)return this;if(i||o.setValue(e,!0),o.getValue()===this.getValue())return this;let l=o.getDisplayValue();return null==l&&n&&(l=n),s.textContent=l,r?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},xp={selector:"AG-SELECT",component:ga},pa="object"!=typeof window||!window?.document?.fonts?.forEach,on=(e,t,i,o,n,s)=>{if(pa)return;o&&(e=`@layer ${CSS.escape(o)} { ${e} }`);let r=nn.map.get(t);if(r||(r=[],nn.map.set(t,r)),r.some(c=>c.css===e))return;const a=document.createElement("style");s&&a.setAttribute("nonce",s),a.dataset.agGlobalCss=i,a.textContent=e;const l={css:e,el:a,priority:n};let d;for(const c of r){if(c.priority>n)break;d=c}if(d){d.el.insertAdjacentElement("afterend",a);const c=r.indexOf(d);r.splice(c+1,0,l)}else t.insertBefore(a,t.querySelector(":not(title, meta)")),r.push(l)},Td=(e,t,i,o)=>{on(':where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart),:where(.ag-root-wrapper,.ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]){box-sizing:border-box;&:after,&:before{box-sizing:border-box}&:where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}&:where(button){color:inherit}}:where(.ag-root-wrapper,ag-external,.ag-popup,.ag-dnd-ghost,.ag-chart) :where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-popup-child{top:0;z-index:5;&:where(:not(.ag-tooltip-custom)){box-shadow:var(--ag-popup-shadow)}}.ag-input-wrapper,.ag-picker-field-wrapper{align-items:center;display:flex;flex:1 1 auto;line-height:normal;position:relative}.ag-input-field{align-items:center;display:flex;flex-direction:row}.ag-input-field-input:where(:not([type=checkbox],[type=radio])){flex:1 1 auto;min-width:0;width:100%}.ag-chart,.ag-dnd-ghost,.ag-external,.ag-popup,.ag-root-wrapper{cursor:default;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;background-color:var(--ag-background-color);color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled,[disabled]{.ag-icon{opacity:.5}&.ag-icon-grip{opacity:.35}}.ag-resizer{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}:where(.ag-resizer){&.ag-resizer-topLeft{cursor:nwse-resize;height:5px;left:0;top:0;width:5px}&.ag-resizer-top{cursor:ns-resize;height:5px;left:5px;right:5px;top:0}&.ag-resizer-topRight{cursor:nesw-resize;height:5px;right:0;top:0;width:5px}&.ag-resizer-right{bottom:5px;cursor:ew-resize;right:0;top:5px;width:5px}&.ag-resizer-bottomRight{bottom:0;cursor:nwse-resize;height:5px;right:0;width:5px}&.ag-resizer-bottom{bottom:0;cursor:ns-resize;height:5px;left:5px;right:5px}&.ag-resizer-bottomLeft{bottom:0;cursor:nesw-resize;height:5px;left:0;width:5px}&.ag-resizer-left{bottom:5px;cursor:ew-resize;left:0;top:5px;width:5px}}',e,"shared",t,0,i),o?.forEach((n,s)=>n.forEach(r=>on(r,e,s,t,0,i)))},nn=(Ad="object"==typeof window?window:{}).agStyleInjectionState??(Ad.agStyleInjectionState={map:new WeakMap,grids:new Set}),nt=e=>new Id(e),fo="$default",_p=0,Id=class{constructor({feature:e,params:t,modeParams:i={},css:o,cssImports:n}){this.feature=e,this.css=o,this.cssImports=n,this.modeParams={[fo]:{...i[fo]??{},...t??{}},...i}}use(e,t,i){let o=this._inject;if(null==o){let{css:n}=this;if(n){const s=`ag-theme-${this.feature??"part"}-${++_p}`;"function"==typeof n&&(n=n()),n=`:where(.${s}) {\n${n}\n}\n`;for(const r of this.cssImports??[])n=`@import url(${JSON.stringify(r)});\n${n}`;o={css:n,class:s}}else o=!1;this._inject=o}return o&&e&&on(o.css,e,o.class,t,1,i),!!o&&o.class}},Od=e=>`--ag-${(e=>e.replace(/[A-Z]/g,t=>`-${t}`).toLowerCase())(e)}`,Li=e=>`var(${Od(e)})`,ni=e=>({ref:"accentColor",mix:e}),Rt=e=>({ref:"foregroundColor",mix:e}),ht=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),mt={ref:"backgroundColor"},si={ref:"foregroundColor"},bt={ref:"accentColor"},Bo={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:Rt(.15),chromeBackgroundColor:ht(.02),browserColorScheme:"light"},Op={...Bo,textColor:si,accentColor:"#2196f3",invalidColor:"#e02525",fontFamily:["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,focusShadow:{spread:3,color:ni(.5)},focusErrorShadow:{spread:3,color:{ref:"invalidColor",onto:"backgroundColor",mix:.5}},popupShadow:"0 0 16px #00000026",cardShadow:"0 1px 4px 1px #00000018",dropdownShadow:{ref:"cardShadow"},listItemHeight:{calc:"max(iconSize, dataFontSize) + widgetVerticalSpacing"},dragAndDropImageBackgroundColor:mt,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:bt,toggleButtonOffBackgroundColor:ht(.3),toggleButtonSwitchBackgroundColor:mt,toggleButtonSwitchInset:2,tooltipBackgroundColor:{ref:"chromeBackgroundColor"},tooltipErrorBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.1},tooltipTextColor:{ref:"textColor"},tooltipErrorTextColor:{ref:"invalidColor"},tooltipBorder:!0,tooltipErrorBorder:{color:{ref:"invalidColor",onto:"backgroundColor",mix:.25}}},Lp=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration"],Bp=(()=>{const t=new Map;return i=>{const o=i;return t.has(o)||t.set(o,(e=>(e=e.toLowerCase(),Lp.find(t=>e.endsWith(t.toLowerCase()))??"length"))(i)),t.get(o)}})(),Gs=e=>"object"==typeof e&&e?.ref?Li(e.ref):"string"==typeof e?e:"number"==typeof e&&String(e),Ns=e=>{if("string"==typeof e)return e;if(e&&"ref"in e){const t=Li(e.ref);return null==e.mix?t:`color-mix(in srgb, ${e.onto?Li(e.onto):"transparent"}, ${t} ${(e=>Math.max(0,Math.min(100,e)))(100*e.mix)}%)`}return!1},sn=e=>"string"==typeof e?e:"number"==typeof e?`${e}px`:e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,i=>"-"===i[0]?i:" "+Li(i)+" ")})`:!(!e||!("ref"in e))&&Li(e.ref),ma=(e,t)=>"string"==typeof e?e:!0===e?ma({},t):!1===e?"columnBorder"===t?ma({color:"transparent"},t):"none":e&&"ref"in e?Li(e.ref):Ld(e.style??"solid")+" "+sn(e.width??{ref:"borderWidth"})+" "+Ns(e.color??{ref:"borderColor"}),Ld=Gs,Ca=e=>"string"==typeof e?e.includes(",")?e:Bd(e):e&&"googleFont"in e?Ca(e.googleFont):e&&"ref"in e?Li(e.ref):!!Array.isArray(e)&&e.map(t=>("object"==typeof t&&"googleFont"in t&&(t=t.googleFont),Bd(t))).join(", "),Bd=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),Vd=Gs,va=e=>"string"==typeof e?e:e&&"url"in e?`url(${JSON.stringify(e.url)})`:e&&"svg"in e?va({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):!(!e||!("ref"in e))&&Li(e.ref),zp={color:Ns,colorScheme:Gs,length:sn,scale:Gs,border:ma,borderStyle:Ld,shadow:e=>"string"==typeof e?e:!1===e?"none":e&&"ref"in e?Li(e.ref):[sn(e.offsetX??0),sn(e.offsetY??0),sn(e.radius??0),sn(e.spread??0),Ns(e.color??{ref:"foregroundColor"})].join(" "),image:va,fontFamily:Ca,fontWeight:Vd,duration:(e,t,i)=>"string"==typeof e?e:"number"==typeof e?(e>=10&&i.warn(104,{value:e,param:t}),`${e}s`):!(!e||!("ref"in e))&&Li(e.ref)},Wp=(e,t,i)=>{const o=Bp(e);return zp[o](t,e,i)},wa=class Ih{constructor(t,i=[]){this.themeLogger=t,this.parts=i}withPart(t){return"function"==typeof t&&(t=t()),t instanceof Id?new Ih(this.themeLogger,[...this.parts,t]):(this.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(t){return this.withPart(nt({feature:t}))}withParams(t,i=fo){return this.withPart(nt({modeParams:{[i]:t}}))}_startUse({styleContainer:t,cssLayer:i,nonce:o,loadThemeGoogleFonts:n,moduleCss:s}){if(pa)return;jp(),Td(t,i,o,s);const r=$p(this);if(r.length>0)for(const a of r)n&&Kp(a,o);for(const a of this.parts)a.use(t,i,o)}_getCssClass(){return this._cssClassCache??(this._cssClassCache=Hd(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).join(" "))}_getModeParams(){let t=this._paramsCache;if(!t){const i={[fo]:{...Op}};for(const o of Hd(this.parts))for(const n of Object.keys(o.modeParams)){const s=o.modeParams[n];if(s){const r=i[n]??(i[n]={}),a=new Set;for(const l of Object.keys(s)){const d=s[l];void 0!==d&&(r[l]=d,a.add(l))}if(n===fo)for(const l of Object.keys(i)){const d=i[l];if(l!==fo)for(const c of a)delete d[c]}}}this._paramsCache=t=i}return t}_getPerInstanceCss(t){const i="##SELECTOR##";let o=this._paramsCssCache;if(!o){let n="",s="";const r=this._getModeParams();for(const l of Object.keys(r)){const d=r[l];if(l!==fo){const u=`:where([data-ag-theme-mode="${"object"==typeof CSS?CSS.escape(l):l}"]) & {\n`;n+=u,s+=u}for(const c of Object.keys(d).sort()){const u=d[c],g=Wp(c,u,this.themeLogger);if(!1===g)this.themeLogger.error(107,{key:c,value:u});else{const m=Od(c),w=m.replace("--ag-","--ag-inherited-");n+=`\t${m}: var(${w}, ${g});\n`,s+=`\t${w}: var(${m});\n`}}l!==fo&&(n+="}\n",s+="}\n")}let a=`${i} {\n${n}}\n`;a+=`:has(> ${i}):not(${i}) {\n${s}}\n`,this._paramsCssCache=o=a}return o.replaceAll(i,`:where(.${t})`)}},Hd=e=>{const t=new Map;for(const o of e)t.set(o.feature,o);const i=[];for(const o of e)(!o.feature||t.get(o.feature)===o)&&i.push(o);return i},$p=e=>{const t=new Set,i=s=>{if(Array.isArray(s))s.forEach(i);else{const r=s?.googleFont;"string"==typeof r&&t.add(r)}};return Object.values(e._getModeParams()).flatMap(s=>Object.values(s)).forEach(i),Array.from(t).sort()},Gd=!1,jp=()=>{if(!Gd){Gd=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},Kp=function(){var e=(0,v.A)(function*(t,i){const o=`@import url('https://${qp}/css2?family=${encodeURIComponent(t)}:wght@100;200;300;400;500;600;700;800;900&display=swap');\n`;on(o,document.head,`googleFont:${t}`,void 0,0,i)});return function(i,o){return e.apply(this,arguments)}}(),qp="fonts.googleapis.com",Xp=1,Yp=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=Xp++,e?.beanClasses&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){this.id=e.id,this.beans.context=this,this.destroyCallback=e.destroyCallback;for(const t of Object.keys(e.providedBeanInstances))this.beans[t]=e.providedBeanInstances[t];for(const t of e.beanClasses){const i=new t;i.beanName?this.beans[i.beanName]=i:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(i)}for(const t of e.derivedBeans??[]){const{beanName:i,bean:o}=t(this);this.beans[i]=o,this.createdBeans.push(o)}e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){return this.initBeans([e],t),e}initBeans(e,t){const i=this.beans;for(const o of e)o.preWireBeans?.(i),o.wireBeans?.(i);for(const o of e)o.preConstruct?.();t&&e.forEach(t);for(const o of e)o.postConstruct?.()}getBeans(){return this.beans}getBean(e){return this.beans[e]}getId(){return this.id}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[],this.destroyCallback?.()}destroyBean(e){e?.destroy?.()}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},Qp=0,Zp=class extends Vt{constructor(){super(...arguments),this.beanName="environment",this.paramsClass="ag-theme-params-"+ ++Qp,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t),this.eStyleContainer=e.get("themeStyleContainer")??(t.getRootNode()===document?document.head:t),this.cssLayer=e.get("themeCssLayer"),this.styleNonce=e.get("styleNonce"),this.addManagedPropertyListener("theme",()=>this.handleThemeChange()),this.handleThemeChange(),this.initVariables(),this.addDestroyFunc(()=>(()=>{if(nn.grids.delete(this),0===nn.grids.size){nn.map=new WeakMap;for(const t of document.head.querySelectorAll("style[data-ag-global-css]"))t.remove()}})()),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("themeChanged")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect())}applyThemeClasses(e,t=[]){const{theme:i}=this;let o;o=i?`${this.paramsClass} ${i._getCssClass()}`:this.applyLegacyThemeClasses();for(const n of Array.from(e.classList))n.startsWith("ag-theme-")&&e.classList.remove(n);if(o){const n=e.className;e.className=`${n}${n?" ":""}${o}${t?.length?" "+t.join(" "):""}`}}applyLegacyThemeClasses(){let e="";this.mutationObserver.disconnect();let t=this.eRootDiv;for(;t;){let i=!1;for(const o of Array.from(t.classList))o.startsWith("ag-theme-")&&(i=!0,e=e?`${e} ${o}`:o);i&&this.mutationObserver.observe(t,{attributes:!0,attributeFilter:["class"]}),t=t.parentElement}return e}addGlobalCSS(e,t){this.theme?on(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}handleThemeChange(){const{gos:e,theme:t}=this,i=e.get("theme");let o;if("legacy"===i)o=void 0;else{const n=i??this.getDefaultTheme();n instanceof wa?o=n:this.themeError(n)}o!==t&&this.handleNewTheme(o),this.postProcessThemeChange(o,i)}handleNewTheme(e){const{gos:t,eRootDiv:i,globalCSS:o}=this,n=this.getAdditionalCss();if(e){(()=>{nn.grids.add(this)})(),Td(this.eStyleContainer,this.cssLayer,this.styleNonce,n);for(const[r,a]of o)on(r,this.eStyleContainer,a,this.cssLayer,0,this.styleNonce);o.length=0}this.theme=e,e?._startUse({loadThemeGoogleFonts:t.get("loadThemeGoogleFonts"),styleContainer:this.eStyleContainer,cssLayer:this.cssLayer,nonce:this.styleNonce,moduleCss:n});let s=this.eParamsStyle;if(!s){s=this.eParamsStyle=_t({tag:"style"});const r=t.get("styleNonce");r&&s.setAttribute("nonce",r),i.appendChild(s)}pa||(s.textContent=e?._getPerInstanceCss(this.paramsClass)||""),this.applyThemeClasses(i),this.fireStylesChangedEvent("themeChanged")}},Jp=class extends Vt{constructor(){super(...arguments),this.beanName="registry"}registerDynamicBeans(e){if(e){this.dynamicBeans??(this.dynamicBeans={});for(const t of Object.keys(e))this.dynamicBeans[t]=e[t]}}createDynamicBean(e,t,...i){if(!this.dynamicBeans)throw new Error(this.getDynamicError(e,!0));const o=this.dynamicBeans[e];if(null!=o)return new o(...i);if(t)throw new Error(this.getDynamicError(e,!1))}},ef=class extends Vt{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new R}addListener(e,t,i){this.globalSvc.addEventListener(e,t,i)}removeListener(e,t,i){this.globalSvc.removeEventListener(e,t,i)}addGlobalListener(e,t=!1){this.globalSvc.addGlobalListener(e,t)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchEvent(e){this.globalSvc.dispatchEvent(this.gos.addCommon(e))}dispatchEventOnce(e){this.globalSvc.dispatchEventOnce(this.gos.addCommon(e))}},Nd=class extends Vt{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const i="title",o=this.ctrl.getGui();o&&(null==e||""==e&&!t?o.removeAttribute(i):o.setAttribute(i,e))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(null==this.tooltipManager){const e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,()=>this.tooltip);e&&(this.tooltipManager=this.createBean(e,this.beans.context))}}attemptToShowTooltip(){this.tooltipManager?.prepareToShowTooltip()}attemptToHideTooltip(){this.tooltipManager?.hideTooltip()}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},zs=!1,nf=class extends Vt{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();0===this.tooltipTrigger&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),1===this.tooltipTrigger&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return"show"===e?this.tooltipCtrl.getTooltipShowDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipCtrl.getTooltipHideDelayOverride?.()??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return e&&"hover"!==e?1:0}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!To()&&(zs?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},100):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&2===this.state&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,i=this.tooltipCtrl.getGui(),o=this.tooltipComp?.getGui();this.isInteractingWithTooltip||i.contains(t)||this.interactionEnabled&&o?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(0!=this.state||zs)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-Wd<1e3}setToDoNothing(e){!e&&2===this.state&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!p(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip())return void this.setToDoNothing();const i=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(i,o)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),Wd=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(2!==this.state||this.tooltipInstanceCount!==e)return void this.destroyBean(t);const o=t.getGui();this.tooltipComp=t,o.classList.contains("ag-tooltip")||o.classList.add("ag-tooltip-custom"),0===this.tooltipTrigger&&o.classList.add("ag-tooltip-animate"),this.interactionEnabled&&o.classList.add("ag-tooltip-interactive");const n=this.getLocaleTextFunc(),s=this.popupSvc?.addPopup({eChild:o,ariaLabel:n("ariaLabelTooltip","Tooltip")});if(s&&(this.tooltipPopupDestroyFunc=s.hideFunc),this.positionTooltip(),1===this.tooltipTrigger){const r=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:r}),this.setEventHandlers(r)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(o,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(we(this.beans),{keydown:r=>{o.contains(r?.target)||this.onKeyDown()}}),1===this.tooltipTrigger&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(o,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:o,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=le(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp;window.setTimeout(()=>{e(),this.destroyBean(t)},0===this.tooltipTrigger?1e3:0),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){for(const e of[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener])e&&e();this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){zs=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},100)}unlockService(){zs=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}},Ws=0,af=class extends Vt{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}getPopupParent(){return this.gos.get("popupParent")||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:i,nudgeY:o,skipObserver:n}=e;this.positionPopup({ePopup:t,nudgeX:i,nudgeY:o,keepWithinBounds:!0,skipObserver:n,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:i,nudgeY:o,keepWithinBounds:n,eventSource:s,alignSide:r="left",position:a="over",type:l}=e,d=s.getBoundingClientRect(),c=this.getParentRect();this.setAlignedTo(s,t),this.positionPopup({ePopup:t,nudgeX:i,nudgeY:o,keepWithinBounds:n,updatePosition:()=>{let m,g=d.left-c.left;return"right"===r&&(g-=t.offsetWidth-d.width),"over"===a?(m=d.top-c.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),m="under"===this.shouldRenderUnderOrAbove(t,d,c,e.nudgeY||0)?d.top-c.top+d.height:d.top-t.offsetHeight-2*(o||0)-c.top),{x:g,y:m}},postProcessCallback:()=>this.callPostProcessPopup(e,l,t,s,null)})}shouldRenderUnderOrAbove(e,t,i,o){const n=i.bottom-t.bottom,s=t.top-i.top,r=e.offsetHeight+o;return n>r?"under":s>r||s>n?"above":"under"}setAlignedStyles(e,t){const i=this.getPopupIndex(e);if(-1===i)return;const o=this.popupList[i],{alignedToElement:n}=o;if(!n)return;const s=["right","left","over","above","under"];for(const r of s)n.classList.remove(`ag-has-popup-positioned-${r}`),e.classList.remove(`ag-popup-positioned-${r}`);t&&(n.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const i=this.getPopupIndex(t);-1!==i&&(this.popupList[i].alignedToElement=e)}positionPopup(e){const{ePopup:t,keepWithinBounds:i,nudgeX:o,nudgeY:n,skipObserver:s,updatePosition:r}=e,a={width:0,height:0},l=(d=!1)=>{let{x:c,y:u}=r();d&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,o&&(c+=o),n&&(u+=n),i&&(c=this.keepXYWithinBounds(t,c,1),u=this.keepXYWithinBounds(t,u,0)),t.style.left=`${c}px`,t.style.top=`${u}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!s){const d=ae(this.beans,t,()=>l(!0));setTimeout(()=>d(),200)}}getParentRect(){const e=we(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent),Fo(t)}keepXYWithinBounds(e,t,i){const o=0===i,n=o?"clientHeight":"clientWidth",s=o?"top":"left",r=o?"height":"width",a=o?"scrollTop":"scrollLeft",l=we(this.beans),d=l.documentElement,c=this.getPopupParent(),u=e.getBoundingClientRect(),g=c.getBoundingClientRect(),m=l.documentElement.getBoundingClientRect(),w=c===l.body,b=Math.ceil(u[r]);let A=w?(o?Sn:Po)(d)+d[a]:c[n];w&&(A-=Math.abs(m[s]-g[s]));const O=A-b;return Math.min(Math.max(t,0),Math.max(O,0))}addPopup(e){const{eChild:t,ariaLabel:i,ariaOwns:o,alwaysOnTop:n,positionCallback:s,anchorToElement:r}=e,a=this.getPopupIndex(t);if(-1!==a)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(t);const l=this.createPopupWrapper(t,!!n,i,o),d=this.addEventListenersToPopup({...e,wrapperEl:l});return s&&s(),this.addPopupToPopupList(t,l,d,r),{hideFunc:d}}initialisePopupPosition(e){const i=this.getPopupParent().getBoundingClientRect();p(e.style.top)||(e.style.top=-1*i.top+"px"),p(e.style.left)||(e.style.left=-1*i.left+"px")}createPopupWrapper(e,t,i,o){const n=this.getPopupParent(),{environment:s,gos:r}=this.beans,a=_t({tag:"div"});return s.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(r.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||ne(e,"dialog"),i?ee(e,i):o&&(e.id||(e.id=`popup-component-${Ws}`),bn(o,e.id)),a.appendChild(e),n.appendChild(a),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}addEventListenersToPopup(e){const t=this.beans,i=we(t),{wrapperEl:o,eChild:n,closedCallback:s,afterGuiAttached:r,closeOnEsc:a,modal:l,ariaOwns:d}=e;let c=!1;const u=b=>{o.contains(le(t))&&"Escape"===b.key&&!this.isStopPropagation(b)&&w({keyboardEvent:b})},g=b=>w({mouseEvent:b}),m=b=>w({touchEvent:b}),w=(b={})=>{const{mouseEvent:x,touchEvent:A,keyboardEvent:O,forceHide:V}=b;!V&&(this.isEventFromCurrentPopup({mouseEvent:x,touchEvent:A},n)||c)||(c=!0,o.remove(),i.removeEventListener("keydown",u),i.removeEventListener("mousedown",g),i.removeEventListener("touchstart",m),i.removeEventListener("contextmenu",g),this.eventSvc.removeListener("dragStarted",g),s&&s(x||A||O),this.removePopupFromPopupList(n,d))};return r&&r({hidePopup:w}),window.setTimeout(()=>{a&&i.addEventListener("keydown",u),l&&(i.addEventListener("mousedown",g),this.eventSvc.addListener("dragStarted",g),i.addEventListener("touchstart",m),i.addEventListener("contextmenu",g))},0),w}addPopupToPopupList(e,t,i,o){this.popupList.push({element:e,wrapper:t,hideFunc:i,instanceId:Ws,isAnchored:!!o}),o&&this.setPopupPositionRelatedToElement(e,o),Ws+=1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const i=this.getPopupIndex(e);if(-1===i)return;const o=this.popupList[i];if(o.stopAnchoringPromise&&o.stopAnchoringPromise.then(s=>s&&s()),o.stopAnchoringPromise=void 0,o.isAnchored=!1,!t)return;const n=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:o.hideFunc});return o.stopAnchoringPromise=n,o.isAnchored=!0,n}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&bn(t,null),this.popupList=this.popupList.filter(i=>i.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),i=t.getBoundingClientRect(),{element:o,ePopup:n}=e,s=o.getBoundingClientRect(),r=u=>Number.parseInt(u.substring(0,u.length-1),10),a=(u,g)=>{const m=i[u]-s[u],w=r(n.style[u]);return{initialDiff:m,lastDiff:m,initial:w,last:w,direction:g}},l=a("top",0),d=a("left",1),c=this.beans.frameworkOverrides;return new ft(u=>{c.wrapIncoming(()=>{(function hg(e,t){return new ft(i=>{i(window.setInterval(e,t))})})(()=>{const g=t.getBoundingClientRect(),m=o.getBoundingClientRect();if(0==m.top&&0==m.left&&0==m.height&&0==m.width)return void e.hidePopup();const b=(x,A)=>{const O=r(n.style[A]);x.last!==O&&(x.initial=O,x.last=O);const V=g[A]-m[A];if(V!=x.lastDiff){const te=this.keepXYWithinBounds(n,x.initial+x.initialDiff-V,x.direction);n.style[A]=`${te}px`,x.last=te}x.lastDiff=V};b(l,"top"),b(d,"left")},200).then(g=>{u(()=>{null!=g&&window.clearInterval(g)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:i,touchEvent:o}=e,n=i||o;if(!n)return!1;const s=this.getPopupIndex(t);if(-1===s)return!1;for(let r=s;r<this.popupList.length;r++)if(_i(this.popupList[r].element,n))return!0;return this.isElementWithinCustomPopup(n.target)}isElementWithinCustomPopup(e){const t=we(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const i=this.getWrapper(e);i&&(i.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(i))}bringPopupToFront(e){const t=this.getPopupParent(),i=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),o=i.length,n=this.getWrapper(e);if(!n||o<=1||!t.contains(e))return;const s=[],r=[];for(const g of i)g!==n&&(g.classList.contains("ag-always-on-top")?r.push(g):s.push(g));const a=[],l=r.length,u=n.classList.contains("ag-always-on-top")||!l?[...s,...r,n]:[...s,n,...r];for(let g=0;g<=o;g++){const m=u[g];if(i[g]===u[g]||m===n)continue;const w=m.querySelectorAll("div");for(const b of w)0!==b.scrollTop&&a.push([b,b.scrollTop]);0===g?t.insertAdjacentElement("afterbegin",m):u[g-1].insertAdjacentElement("afterend",m)}for(;a.length;){const g=a.pop();g[0].scrollTop=g[1]}}},Ud=(e,t)=>{if(null!=t&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},$d=e=>{const{eElement:t,onLost:i}=e;t&&i&&(t.removeEventListener("lostpointercapture",i),e.onLost=null)},Yi=e=>{if(an){if(an.has(e))return!1}else an=new WeakSet;return an.add(e),!0},hf=class extends Vt{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.start.target??null}isPointer(){return!!rn?.has(de(this.beans))}hasPointerCapture(){const e=this.drag?.pointerCapture;return!(!e||!this.beans.eRootDiv.hasPointerCapture?.(e.pointerId))}destroy(){this.drag&&this.cancelDrag();const e=this.dragSources;for(const t of e)jd(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let i=0,o=t.length;i<o;++i){const n=t[i];if(n.params===e){t.splice(i,1),jd(n);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:i}=e,o=[];let n;if(i){const d=t.style;d&&(n=d.touchAction,d.touchAction="none")}this.dragSources.push({handlers:o,params:e,oldTouchAction:n}),ze(o,[t,"pointerdown",d=>this.onPointerDown(e,d),{passive:!1}],[t,"mousedown",d=>this.onMouseDown(e,d)]);const l=this.gos.get("suppressTouch");i&&!l&&ze(o,[t,"touchstart",c=>this.onTouchStart(e,c),{passive:!1}])}cancelDrag(e){const t=this.drag;e??(e=t?.eElement),e&&this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),t?.params.onDragCancel?.(),this.destroyDrag()}shouldPreventMouseEvent(e){const t=e.type;return("mousemove"===t||"pointermove"===t)&&e.cancelable&&De(this.beans,e)&&!Zt(ya(e))}initDrag(e,...t){this.drag=e;const i=this.beans,o=a=>this.onScroll(a),s=de(i),r=we(i);ze(e.handlers,[s,"contextmenu",Le],[s,"keydown",a=>this.onKeyDown(a)],[r,"scroll",o,{capture:!0}],[r.defaultView||window,"scroll",o],...t)}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;rn?.get(t)===e&&rn?.delete(t),this.drag=null,(e=>{if(!e)return;$d(e);const{eElement:t,pointerId:i}=e;if(t){try{t.releasePointerCapture(i)}catch{}e.eElement=null}})(e.pointerCapture),Je(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const i=this.beans;if(an?.has(t))return;const o=t.pointerType;if("touch"===o&&(i.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),Zt(ya(t))))||!t.isPrimary||"mouse"===o&&0!==t.button)return;this.destroyDrag();const n=de(i),s=e.eElement,r=t.pointerId,a=new ba(n,e,t,r);rn??(rn=new WeakMap),rn.set(n,a),this.initDrag(a,[n,"pointerup",u=>{u.pointerId===r&&this.onMouseOrPointerUp(u)}],[n,"pointercancel",u=>{u.pointerId===r&&Yi(u)&&this.cancelDrag()}],[n,"pointermove",u=>{u.pointerId===r&&this.onMouseOrPointerMove(u)},{passive:!1}],[n,"touchmove",Le,{passive:!1}],[s,"mousemove",Le,{passive:!1}]),0===e.dragStartPixels?this.onMouseOrPointerMove(t):Yi(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!Yi(t)||Zt(ya(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer())return void Le(t);this.destroyDrag();const o=this.beans,n=de(o),s=new ba(n,e,t.touches[0]),a=d=>this.onTouchUp(d),l=t.target??e.eElement;this.initDrag(s,[de(o),"touchmove",Le,{passive:!1}],[l,"touchmove",d=>this.onTouchMove(d),{passive:!0}],[l,"touchend",a,{passive:!0}],[l,"touchcancel",a,{passive:!0}]),0===e.dragStartPixels&&this.onMove(s.start)}onMouseDown(e,t){if(0!==t.button||an?.has(t)||this.isPointer())return;const i=this.beans;this.destroyDrag();const o=new ba(de(i),e,t),r=de(i);this.initDrag(o,[r,"mousemove",a=>this.onMouseOrPointerMove(a)],[r,"mouseup",a=>this.onMouseOrPointerUp(a)]),0===e.dragStartPixels?this.onMouseOrPointerMove(t):Yi(t)}onScroll(e){if(!Yi(e))return;const t=this.drag,i=t?.lastDrag;i&&this.dragging&&t.params?.onDragging(i)}onMouseOrPointerMove(e){Yi(e)&&(po()&&we(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&Le(e),this.onMove(e))}onTouchMove(e){const t=this.drag;if(!t||!Yi(e))return;const i=re(t.start,e.touches);i&&(e.preventDefault(),this.onMove(i))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const i=t.params;if(!this.dragging){const o=t.start;if(G(e,o,i.dragStartPixels??4)||(this.dragging=!0,i.capturePointer&&(t.pointerCapture=((e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const i=t.pointerId;if(!Ud(e,i))return null;const o={eElement:e,pointerId:i,onLost(n){((e,t)=>{$d(e);const{eElement:i,pointerId:o}=e;i&&t.pointerId===o&&Ud(i,o)})(o,n)}};return e.addEventListener("lostpointercapture",o.onLost),o})(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:i.eElement}),i.onDragStart(o),this.drag!==t)||(i.onDragging(o),this.drag!==t))return}i.onDragging(e)}onTouchUp(e){const t=this.drag;t&&Yi(e)&&this.onUp(re(t.start,e.changedTouches))}onMouseOrPointerUp(e){Yi(e)&&this.onUp(e)}onUp(e){const t=this.drag;t&&(e||(e=t.lastDrag),e&&this.dragging&&(this.dragging=!1,t.params.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t.params.eElement})),this.destroyDrag())}onKeyDown(e){"Escape"===e.key&&this.cancelDrag()}},jd=e=>{Je(e.handlers);const t=e.oldTouchAction;if(null!=t){const i=e.params.eElement.style;i&&(i.touchAction=t)}},ba=class{constructor(e,t,i,o=null){this.rootEl=e,this.params=t,this.start=i,this.pointerId=o,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement}},ya=e=>{const t=e.target;return t instanceof Element?t:null},gf=class extends Vt{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.dragSource=null,this.dragImageParent=null,this.dragImageCompPromise=null,this.dragImageComp=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.lastDropTarget=null}addDragSource(e,t=!1){const i={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:o=>this.onDragStart(e,o),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(i),this.beans.dragSvc.addDragSource(i)}setDragImageCompIcon(e,t=!1){const i=this.dragImageComp;i&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,i.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:i}=this,o=t.find(n=>n.dragSource===e);o&&(i.dragSvc?.removeDragSource(o),gi(t,o))}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:i}=this,o=i.dragSvc;for(const n of e)o?.removeDragSource(n);e.length=0,t.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){const e=this.lastMouseEvent;e&&this.onDragging(e,!0)}onDragStart(e,t){this.lastMouseEvent=t,this.dragSource=e,this.dragItem=e.getDragItem();const i=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-i.left,this.dragInitialSourcePointerOffsetY=t.clientY-i.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:i}=this;if(t?.onDragStopped?.(),i){const o=this.dropTargetEvent(i,e,!1);i.onDragStop?.(o)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:i}=this;if(e?.onDragCancelled?.(),t&&i){const o=this.dropTargetEvent(t,i,!1);t.onDragCancel?.(o)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const i=this.findCurrentDropTarget(e),{lastDropTarget:o,dragSource:n,dragItem:s}=this;let r=!1;if(i!==o){if(r=!0,o){const a=this.dropTargetEvent(o,e,t);o.onDragLeave?.(a)}if(null===o||i?null===o&&i&&this.handleEnter(n,s):this.handleExit(n,s),i){const a=this.dropTargetEvent(i,e,t);i.onDragEnter?.(a)}this.lastDropTarget=i}else if(i){const a=this.dropTargetEvent(i,e,t);i.onDragging?.(a),a?.changed&&(r=!0)}this.lastMouseEvent=e,r&&this.updateDragImageComp()}clearDragAndDropProperties(){this.removeDragImageComp(this.dragImageComp),this.dragImageCompPromise=null,this.dragImageParent=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.lastMouseEvent=null,this.lastDraggingEvent=null,this.lastDropTarget=null,this.dragItem=null,this.dragInitialSourcePointerOffsetX=0,this.dragInitialSourcePointerOffsetY=0,this.dragSource=null}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,i=[[e.getContainer()]];return t?i.concat(t):i}isMouseOnDropTarget(e,t){const i=this.getAllContainersFromDropTarget(t);let o=!1;const n=(a,l)=>{for(const d of l){const{width:c,height:u,left:g,right:m,top:w,bottom:b}=d.getBoundingClientRect();if(0===c||0===u)return!1;if(!(a.clientX>=g&&a.clientX<m&&a.clientY>=w&&a.clientY<b))return!1}return!0};for(const a of i)if(n(e,a)){o=!0;break}const{eElement:s,type:r}=this.dragSource;return!(t.targetContainsSource&&!t.getContainer().contains(s))&&o&&t.isInterestedIn(r,s)}findCurrentDropTarget(e){const t=this.dropTargets.filter(s=>this.isMouseOnDropTarget(e,s)),i=t.length;if(0===i)return null;if(1===i)return t[0];const n=de(this.beans).elementsFromPoint(e.clientX,e.clientY);for(const s of n)for(const r of t)if(-1!==this.getAllContainersFromDropTarget(r).flatMap(l=>l).indexOf(s))return r;return null}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.find(t=>t.external&&t.getContainer()===e)||null}dropTargetEvent(e,t,i){const{dragSource:o,dragItem:n,lastDraggingEvent:s,lastMouseEvent:r,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:l}=this,d=e.getContainer(),c=d.getBoundingClientRect(),{clientX:u,clientY:g}=t,m=u-(r?.clientX||0),w=g-(r?.clientY||0),b=this.createEvent({event:t,x:u-c.left,y:g-c.top,vDirection:w>0?"down":w<0?"up":null,hDirection:m<0?"left":m>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:l,dragSource:o,fromNudge:i,dragItem:n,dropZoneTarget:d,dropTarget:s?.dropTarget??null,changed:!!s?.changed});return this.lastDraggingEvent=b,b}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&function Oe(e,t,i){const n=e.getBoundingClientRect().height,s=function ue(e){return Ee(e)?.clientWidth??(window.innerWidth||-1)}(i)-2,r=function W(e){return Ee(e)?.clientHeight??(window.innerHeight||-1)}(i)-2;if(!e.offsetParent)return;const l=Fo(e.offsetParent),{clientY:d,clientX:c}=t;let u=d-l.top-n/2,g=c-l.left-10;const m=we(i),w=m.defaultView||window,b=w.pageYOffset||m.documentElement.scrollTop,x=w.pageXOffset||m.documentElement.scrollLeft;s>0&&g+e.clientWidth>s+x&&(g=s+x-e.clientWidth),g<0&&(g=0),r>0&&u+e.clientHeight>r+b&&(u=r+b-e.clientHeight),u<0&&(u=0),e.style.left=`${g}px`,e.style.top=`${u}px`}(t,e,this.beans)}removeDragImageComp(e){this.dragImageComp===e&&(this.dragImageComp=null),e&&(e.getGui()?.remove(),this.destroyBean(e))}createAndUpdateDragImageComp(e){const t=this.createDragImageComp(e)??null;this.dragImageCompPromise=t,t?.then(i=>{if(t!==this.dragImageCompPromise||!this.lastMouseEvent||!this.isAlive())return void this.destroyBean(i);this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const o=this.dragImageComp;o!==i&&(this.dragImageComp=i,this.removeDragImageComp(o)),i&&(this.appendDragImageComp(i),this.updateDragImageComp())})}appendDragImageComp(e){const t=e.getGui(),i=t.style;i.position="absolute",i.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(i.pointerEvents="none"),this.gos.setInstanceDomData(t),this.beans.environment.applyThemeClasses(t),i.top="20px",i.left="20px";const o=Ee(this.beans);this.dragImageParent=o,o?o.appendChild(t):this.warnNoBody()}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:i,lastDraggingEvent:o,dragImageLastLabel:n}=this;if(!e)return;this.setDragImageCompIcon(i?.getIconName?.(o)??null);let s=t?.dragItemName;"function"==typeof s&&(s=s(o)),s||(s=""),n!==s&&(this.dragImageLastLabel=s,e.setLabel(s))}};function Kd(e,t){return e+"_"+t}function Et(e){return e instanceof $n}var $n=class extends Y{constructor(e,t,i,o){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=i,this.pinned=o,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null,this.colIdSanitised=F(this.getUniqueId())}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return Kd(this.groupId,this.partId)}isEmptyGroup(){return 0===this.displayedChildren.length}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every(t=>t.isMoving())}checkLeft(){for(const e of this.displayedChildren)Et(e)&&e.checkLeft();if(this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=rt(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){let e=0;for(const t of this.displayedChildren??[])e+=t.getActualWidth();return e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;for(const t of this.displayedChildren)t.isResizable()&&(e=!0);return e}getMinWidth(){let e=0;for(const t of this.displayedChildren)e+=t.getMinWidth();return e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){return!!this.getColGroupDef()?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){for(const t of this.displayedChildren??[])co(t)?e.push(t):Et(t)&&t.addDisplayedLeafColumns(e)}addLeafColumns(e){for(const t of this.children??[])co(t)?e.push(t):Et(t)&&t.addLeafColumns(e)}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return this.isPadding()&&e?.isPadding()?1+e.getPaddingLevel():0}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e?.isPadding();)e=e.getParent();if(!e||!e.getProvidedColumnGroup().isExpandable())return this.displayedChildren=this.children,void this.dispatchLocalEvent({type:"displayedChildrenChanged"});for(const i of this.children??[])if(!Et(i)||i.displayedChildren?.length)switch(i.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(i);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(i);break;default:this.displayedChildren.push(i)}this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},Sa="row-group-",mf=0,mo=class{constructor(e){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=mf++,this.alreadyRendered=!1,this.hovered=!1,this.__selected=!1,this.beans=e}get allLeafChildren(){const e=this._leafs;return void 0===e?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){const{valueCache:i,eventSvc:o}=this.beans,n=this.data;this.data=e,i?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const s=this.createDataChangedEvent(e,n,t);if(this.__localEventService?.dispatchEvent(s),this.sibling){this.sibling.data=e;const a=this.sibling.createDataChangedEvent(e,n,t);this.sibling.__localEventService?.dispatchEvent(a)}o.dispatchEvent({type:"rowNodeDataChanged",node:this});const r=this.pinnedSibling;r&&(r.data=e,r.__localEventService?.dispatchEvent(r.createDataChangedEvent(e,n,t)),o.dispatchEvent({type:"rowNodeDataChanged",node:r}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,i){return{type:"dataChanged",node:this,oldData:t,newData:e,update:i}}getRowIndexString(){return null==this.rowIndex?(tt(13),null):"top"===this.rowPinned?"t-"+this.rowIndex:"bottom"===this.rowPinned?"b-"+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const{selectionSvc:i}=this.beans,o=i?.createDaemonNode?.(this),n=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),i&&(i.updateRowSelectable(this),i.syncInRowNode(this,o));const s=this.createDataChangedEvent(e,n,!1);this.__localEventService?.dispatchEvent(s)}setId(e){const t=ko(this.beans.gos);if(t)if(this.data){const i=this.parent?.getRoute()??[];this.id=t({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(Sa)&&tt(14,{groupPrefix:Sa})}else this.id=void 0;else this.id=e}setRowTop(e){if(this.oldRowTop=this.rowTop,this.rowTop===e)return;this.rowTop=e,this.dispatchRowEvent("topChanged");const t=null!==e;this.displayed!==t&&(this.displayed=t,this.dispatchRowEvent("displayedChanged"))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,i){this.beans.expansionSvc?.setExpanded(this,e,t,i)}setDataValue(e,t,i){const{colModel:o,valueSvc:n,gos:s,editSvc:r}=this.beans,a="string"!=typeof e?e:o.getCol(e)??o.getColDefCol(e);if(!a)return!1;const l=n.getValueForDisplay(a,this,void 0,void 0,"api").value;if(s.get("readOnlyEdit")){const{beans:{eventSvc:c},data:u,rowIndex:g,rowPinned:m}=this;return c.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:g,rowPinned:m,column:a,colDef:a.colDef,data:u,node:this,oldValue:l,newValue:t,value:t,source:i}),!1}if(r&&!r.committing){const c=r.setDataValue({rowNode:this,column:a},t,i);if(null!=c)return c}const d=n.setValue(this,a,t,i);return this.dispatchCellChangedEvent(a,t,l),d&&this.pinnedSibling?.dispatchCellChangedEvent(a,t,l),d}updateHasChildren(){let e=this.group&&!this.footer||!!this.childrenAfterGroup?.length;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,i){const o={type:"cellChanged",node:this,column:e,newValue:t,oldValue:i};this.__localEventService?.dispatchEvent(o)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){if(this.footer)return this.sibling.isSelected();const e=this.rowPinned&&this.pinnedSibling;return e?e.isSelected():this.__selected}depthFirstSearch(e){const t=this.childrenAfterGroup;if(t)for(let i=0,o=t.length;i<o;++i)t[i].depthFirstSearch(e);e(this)}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,i="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:i})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){(this.__localEventService??(this.__localEventService=new R)).addEventListener(e,t)}__removeEventListener(e,t){this.removeLocalListener(e,t)}addEventListener(e,t){this.beans.validation?.checkRowEvents(e);const i=this.__localEventService??(this.__localEventService=new R);this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,i);const o=this.frameworkEventListenerService?.wrap(e,t)??t;i.addEventListener(e,o)}removeEventListener(e,t){const i=this.frameworkEventListenerService?.unwrap(e,t)??t;this.removeLocalListener(e,i)}removeLocalListener(e,t){const i=this.__localEventService;i&&(i.removeEventListener(e,t),i.noRegisteredListenersExist()&&(this.__localEventService=null))}isFullWidthCell(){if(se(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this})}getRoute(){if(-1===this.level)return[];if(null==this.key)return;const e=[];let t=this;for(;null!=t?.key;)e.push(t.key),t=t.parent;return e.reverse()}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}getFirstChild(){const e=this.childStore;return e?e.getFirstNode():this.childrenAfterSort?.[0]??null}};function Cf(e,t,i){return Ie(t,{type:i,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var vf=new Set(["__autoHeights","__checkAutoHeightsDebounced","__localEventService","__objectId","_leafs","childStore","oldRowTop","sticky","treeNodeFlags","treeParent"]),qd=e=>{for(;e?.length;){const t=e[0];if(t.data)return t;e=t.childrenAfterGroup}},Xd={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},bf=new Set(Object.values(Xd));function Co(e,t){const i=e.filterUi;if(!i)return null;if(i.created)return i.promise;if(t)return null;const o=i.create(i.refreshed),n=i;return n.created=!0,n.promise=o,o}function Yd(e,t,i,o,n,s){e?.refresh?.({...t,model:i,state:o,source:n,additionalEventAttributes:s})}function Qd(e,t,i){const o=e();o?.created&&o.promise.then(n=>{const s=t();Yd(n,o.filterParams,s,i()??{model:s},"ui")})}function Zd(e,t,i,o,n,s,r){let a,d,l=!1;switch(e){case"apply":{const c=o();d=c?.model??null,r&&(d=r(d)),a={state:c?.state,model:d},l=!0;break}case"clear":a={model:null};break;case"reset":a={model:null},l=!0,d=null;break;case"cancel":a={model:i()}}n(a),l?s(d):Qd(t,i,o)}function Ot(e,t){return e[t]??null}function xt(e){return _t(e)}var Jd=class extends ot{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(function Sf(e){return{tag:"div",cls:e}}(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const i=this.buttons;if(this.buttons=e,i===e)return;const o=this.getGui();let n;wt(o),this.destroyListeners();const s=document.createDocumentFragment(),r=this.className,a=({type:d,label:c})=>{const u=A=>{this.dispatchLocalEvent({type:d,event:A})};["apply","clear","reset","cancel"].includes(d)||se(75);const g="apply"===d,w=xt({tag:"button",attrs:{type:g&&t?"submit":"button"},ref:`${d}FilterButton`,cls:`ag-button ag-standard-button ${r}-button${g?" "+r+"-apply-button":""}`,children:c});this.activateTabIndex([w]),g&&(n=w);const b=A=>{"Enter"===A.key&&(A.preventDefault(),u(A))},x=this.listeners;w.addEventListener("click",u),x.push(()=>w.removeEventListener("click",u)),w.addEventListener("keydown",b),x.push(()=>w.removeEventListener("keydown",b)),s.append(w)};for(const d of e)a(d);this.eApply=n;const l=this.validationTooltipFeature;n&&!l?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!n&&l&&(this.validationTooltipFeature=this.destroyBean(l)),o.append(s)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const i=this.eApply;i&&(Di(i,!1===e),this.validationMessage=t??null,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},Rf={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd",filterSummaryInactive:"is (All)",filterSummaryContains:"contains",filterSummaryNotContains:"does not contain",filterSummaryTextEquals:"equals",filterSummaryTextNotEqual:"does not equal",filterSummaryStartsWith:"begins with",filterSummaryEndsWith:"ends with",filterSummaryBlank:"is blank",filterSummaryNotBlank:"is not blank",filterSummaryEquals:"=",filterSummaryNotEqual:"!=",filterSummaryGreaterThan:">",filterSummaryGreaterThanOrEqual:">=",filterSummaryLessThan:"<",filterSummaryLessThanOrEqual:"<=",filterSummaryInRange:"between",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`};function vo(e,t,i){return function Gt(e,t,i,o){const n=t[i];return e.getLocaleTextFunc()(i,"function"==typeof n?n(o):n,o)}(e,Rf,t,i)}function xa(e,t){const{debounceMs:i}=e;return Us(e)?(null!=i&&se(71),0):i??t}function Us(e){return(e.buttons?.indexOf("apply")??-1)>=0}var Ef=class extends ot{constructor(e,t,i,o,n,s){super(),this.column=e,this.wrapper=t,this.eventParent=i,this.updateModel=o,this.isGlobalButtons=n,this.enableGlobalButtonCheck=s,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,i=t,o=i.useForm;this.setTemplate({tag:o?"form":"div",cls:"ag-filter-wrapper"}),o&&this.addManagedElementListeners(this.getGui(),{submit:s=>{s?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=i,this.resetButtonsPanel(i),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:s,params:r})=>{s===this.column&&this.resetButtonsPanel(r,this.params)},filterStateChanged:({column:s,state:r})=>{s===this.column&&this.eButtons?.updateValidity(!1!==r.valid)},filterAction:({column:s,action:r,event:a})=>{s===this.column&&this.afterAction(r,a)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:s})=>{if(s!==this.isGlobalButtons){this.isGlobalButtons=s;const r=this.params;this.resetButtonsPanel(r,r,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,i){const{buttons:o,readOnly:n}=t??{},{buttons:s,readOnly:r,useForm:a}=e;if(!i&&n===r&&T(o,s))return;let d=this.eButtons;if(s&&s.length>0&&!e.readOnly&&!this.isGlobalButtons){const c=s.map(u=>({type:u,label:vo(this,`${u}Filter`)}));if(this.applyActive=Us(this.params),!d){d=this.createBean(new Jd),this.appendChild(d.getGui());const u=this.column,g=m=>({event:w})=>{this.updateModel(u,m,{fromButtons:!0}),this.afterAction(m,w)};d?.addManagedListeners(d,{apply:g("apply"),clear:g("clear"),reset:g("reset"),cancel:g("cancel")}),this.eButtons=d}d.updateButtons(c,a)}else this.applyActive=!1,d&&(Tt(d.getGui()),this.eButtons=this.destroyBean(d))}close(e){const t=this.hidePopup;if(!t)return;const i=e,o=i?.key;let n;("Enter"===o||" "===o)&&(n={keyboardEvent:i}),t(n),this.hidePopup=null}afterAction(e,t){const{params:i,applyActive:o}=this,n=i?.closeOnApply;switch(e){case"apply":t?.preventDefault(),n&&o&&this.close(t);break;case"reset":n&&o&&this.close();break;case"cancel":n&&this.close(t)}}handleKeyDown(e){!e.defaultPrevented&&"Enter"===e.key&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},xf={tag:"div",cls:"ag-filter"},Pf=class extends ot{constructor(e,t,i){super(xf),this.column=e,this.source=t,this.enableGlobalButtonCheck=i,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return null!=this.wrapper}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??ft.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then(t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)})}afterGuiDetached(){this.wrapper?.then(e=>{e?.comp?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:i,beans:{colFilter:o}}=this,n=o.getFilterUiForDisplay(t)??null;this.wrapper=n,n?.then(s=>{if(!s)return;const{isHandler:r,comp:a}=s;let l;if(r){const d=!!this.enableGlobalButtonCheck,c=this.createBean(new Ef(t,s,o,o.updateModel.bind(o),d&&o.isGlobalButtons,d));this.comp=c,l=c.getGui()}else l=a.getGui(),p(l)||se(69,{guiFromFilter:l});this.appendChild(l),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:i,eGui:this.getGui()}):a.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:i}=e;("api"===t||"paramsUpdated"===t)&&i.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(wt(this.getGui()),this.comp=this.destroyBean(this.comp),this.createFilter())}destroy(){this.beans.colFilter?.activeFilterComps.delete(this),this.eventSvc.dispatchEvent({type:"filterClosed",column:this.column}),this.wrapper=null,this.comp=this.destroyBean(this.comp),this.afterGuiAttachedParams=void 0,super.destroy()}},ec={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},tc=["january","february","march","april","may","june","july","august","september","october","november","december"];function Ff(e,t){return null==e?-1:null==t?1:Number.parseFloat(e)-Number.parseFloat(t)}function ic(e){return e instanceof Date&&!isNaN(e.getTime())}var Pa={number:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>!1===t,numberOfInputs:0}]}),date:()=>({isValidDate:ic}),dateString:({dataTypeDefinition:e})=>({comparator:(t,i)=>{const o=e.dateParser(i);return null==i||o<t?-1:o>t?1:0},isValidDate:t=>"string"==typeof t&&ic(e.dateParser(t))}),dateTime:e=>Pa.date(e),dateTimeString:e=>Pa.dateString(e),object:()=>{},text:()=>{}},Fa={number:()=>({comparator:Ff}),boolean:({t:e})=>({valueFormatter:t=>p(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:i=>{const o=e(i);return p(o)?o:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(i,o)=>{if("NaN"===i)return t("invalidDate","Invalid Date");if(1===o&&null!=i){const n=tc[Number(i)-1];return t(n,ec[n])}return i??t("blanks","(Blanks)")},treeListPathGetter:i=>Is(i,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:i})=>({valueFormatter:o=>{const n=e(o);return p(n)?n:i("blanks","(Blanks)")},treeList:!0,treeListPathGetter:o=>Is(t.dateParser(o??void 0),!1),treeListFormatter:(o,n)=>{if(1===n&&null!=o){const s=tc[Number(o)-1];return i(s,ec[s])}return o??i("blanks","(Blanks)")}}),dateTime:e=>{const t=Fa.date(e);return t.treeListPathGetter=Is,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,i=Fa.dateString(e);return i.treeListPathGetter=o=>Is(t(o??void 0)),i},object:({formatValue:e,t})=>({valueFormatter:i=>{const o=e(i);return p(o)?o:t("blanks","(Blanks)")}}),text:()=>{}},Mf={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},_f={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"},oc="ag-resizer-wrapper",wo=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),Tf={tag:"div",cls:oc,children:[wo("eTopLeft","topLeft"),wo("eTop","top"),wo("eTopRight","topRight"),wo("eRight","right"),wo("eBottomRight","bottomRight"),wo("eBottom","bottom"),wo("eBottomLeft","bottomLeft"),wo("eLeft","left")]},Af=class extends Y{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(e){const{clientHeight:t,clientWidth:i}=this.offsetParent,o=i/2-this.getWidth()/2,n=t/2-this.getHeight()/2;this.offsetElement(o,n,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:i,minWidth:o,width:n,minHeight:s,height:r,x:a,y:l}=this.config;this.offsetParent||this.setOffsetParent();let d=0,c=0;const u=Dt(this.element);if(u){const g=this.findBoundaryElement(),m=window.getComputedStyle(g);if(null!=m.minWidth){const w=g.offsetWidth-this.element.offsetWidth;c=Number.parseInt(m.minWidth,10)-w}if(null!=m.minHeight){const w=g.offsetHeight-this.element.offsetHeight;d=Number.parseInt(m.minHeight,10)-w}}if(this.minHeight=s||d,this.minWidth=o||c,n&&this.setWidth(n),r&&this.setHeight(r),(!n||!r)&&this.refreshSize(),t)this.center(e);else if(a||l)this.offsetElement(a,l,e);else if(u&&i){let g=this.boundaryEl,m=!0;if(g||(g=this.findBoundaryElement(),m=!1),g){const w=Number.parseFloat(g.style.top),b=Number.parseFloat(g.style.left);m?this.offsetElement(isNaN(b)?0:b,isNaN(w)?0:w,e):this.setPosition(b,w)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const i=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(i),this.moveElementDragListener=i):(this.dragSvc?.removeDragSource(i),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{const o=!!e[t],n=this.getResizerElement(t),s={dragStartPixels:0,eElement:n,onDragStart:r=>this.onResizeStart(r,t),onDragging:this.onResize.bind(this),onDragStop:r=>this.onResizeEnd(r,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(s),this.resizeListeners.push(s),n.style.pointerEvents="all"):n.style.pointerEvents="none",this.resizable[t]=o)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;-1!==t&&(this.element.style.width=`${t}px`),-1!==e&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,i=this.element;let o=!1;if("string"==typeof e&&e.includes("%"))ui(i,e),e=Sn(i),o=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const n=this.getAvailableHeight();n&&e>n&&(e=n)}this.getHeight()!==e&&(o?(i.style.maxHeight="unset",i.style.minHeight="unset"):t?ui(i,e):(i.style.height=`${e}px`,i.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:Number.parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:i}=this.offsetParent;if(!i)return null;const o=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),s=e?this.position.y:o.top,r=e?0:n.top;let a=0;if(t){const d=this.element.parentElement;if(d){const{bottom:c}=d.getBoundingClientRect();a=c-o.bottom}}return i+r-s-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:i}=this.config;let o=!1;if("string"==typeof e&&e.includes("%"))Mt(t,e),e=Po(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:n}=this.offsetParent,s=i?this.position.x:this.element.getBoundingClientRect().left;n&&e+s>n&&(e=n-s)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Mt(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width="number"==typeof e?e:Number.parseFloat(e)))}offsetElement(e=0,t=0,i){const{forcePopupParentAsOffsetParent:o}=this.config,n=o?this.boundaryEl:this.element;n&&(this.popupSvc?.positionPopup({ePopup:n,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:i}),this.setPosition(Number.parseFloat(n.style.left),Number.parseFloat(n.style.top)))}constrainSizeToAvailableHeight(e){this.config.forcePopupParentAsOffsetParent&&(e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=ae(this.beans,this.popupSvc?.getPopupParent(),()=>{const i=this.getAvailableHeight();this.element.style.setProperty("max-height",`${i}px`)})):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0)))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:i,isTop:o,anywhereWithin:n,topBuffer:s}=e,r=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!i,!!n,r)?0:r,movementY:this.shouldSkipY(t,!!o,s,a)?0:a}}shouldSkipX(e,t,i,o){const n=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:n.left;let l=a<=0&&s.left>=e.clientX||s.right<=e.clientX&&s.right<=r.right;return!!l||(l=t?o<0&&e.clientX>a+s.left||o>0&&e.clientX<a+s.left:i?o<0&&e.clientX>r.right||o>0&&e.clientX<a+s.left:o<0&&e.clientX>r.right||o>0&&e.clientX<r.right,l)}shouldSkipY(e,t,i=0,o){const n=this.element.getBoundingClientRect(),s=this.offsetParent.getBoundingClientRect(),r=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:n.top;let l=a<=0&&s.top>=e.clientY||s.bottom<=e.clientY&&s.bottom<=r.bottom;return!!l||(l=t?o<0&&e.clientY>a+s.top+i||o>0&&e.clientY<a+s.top:o<0&&e.clientY>r.bottom||o>0&&e.clientY<r.bottom,l)}createResizeMap(){const e=t=>({element:this.element.querySelector(`[data-ref=${t}Resizer]`)});this.resizerMap={topLeft:e("eTopLeft"),top:e("eTop"),topRight:e("eTopRight"),right:e("eRight"),bottomRight:e("eBottomRight"),bottom:e("eBottom"),bottomLeft:e("eBottomLeft"),left:e("eLeft")}}addResizers(){if(this.resizersAdded)return;const e=this.element;e&&(e.appendChild(xt(Tf)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0,this.element.querySelector(`.${oc}`)?.remove(),this.resizersAdded=!1}getResizerElement(e){return this.resizerMap[e].element}onResizeStart(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");const{popup:i,forcePopupParentAsOffsetParent:o}=this.config;!i&&!o&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)}getSiblings(){const t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter(i=>!i.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,i=0;for(let o=0;o<e.length;o++){const n=e[o],s=!!n.style.flex&&"0 0 auto"!==n.style.flex;if(n===this.element)continue;let r=this.minHeight||0,a=this.minWidth||0;if(s){const l=window.getComputedStyle(n);l.minHeight&&(r=Number.parseInt(l.minHeight,10)),l.minWidth&&(a=Number.parseInt(l.minWidth,10))}else r=n.offsetHeight,a=n.offsetWidth;t+=r,i+=a}return{height:t,width:i}}applySizeToSiblings(e){let t=null;const i=this.getSiblings();if(i){for(let o=0;o<i.length;o++){const n=i[o];n!==t&&(e?n.style.height=`${n.offsetHeight}px`:n.style.width=`${n.offsetWidth}px`,n.style.flex="0 0 auto",n===this.element&&(t=i[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}}isResizable(){return Object.values(this.resizable).some(e=>e)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:i}=this.config,{isTop:o,isRight:n,isBottom:s,isLeft:r}=this.currentResizer,a=n||r,l=s||o,{movementX:d,movementY:c}=this.calculateMouseMovement({e,isLeft:r,isTop:o}),u=this.position.x,g=this.position.y;let m=0,w=0;if(a&&d){const b=r?-1:1,x=this.getWidth(),A=x+d*b;let O=!1;r&&(m=x-A,(u+m<=0||A<=this.minWidth)&&(O=!0,m=0)),O||this.setWidth(A)}if(l&&c){const b=o?-1:1,x=this.getHeight(),A=x+c*b;let O=!1;o?(w=x-A,(g+w<=0||A<=this.minHeight)&&(O=!0,w=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&x<A&&this.getMinSizeOfSiblings().height+A>this.element.parentElement.offsetHeight&&(O=!0),O||this.setHeight(A)}this.updateDragStartPosition(e.clientX,e.clientY),((t||i)&&m||w)&&this.offsetElement(u+m,g+w)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:i}=this.position;let o;this.config.calculateTopBuffer&&(o=this.config.calculateTopBuffer());const{movementX:n,movementY:s}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:o});this.offsetElement(t+n,i+s),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.offsetParent=this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.popupSvc.getPopupParent():this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element}clearResizeListeners(){for(;this.resizeListeners.length;){const e=this.resizeListeners.pop();this.dragSvc?.removeDragSource(e)}}destroy(){super.destroy(),this.moveElementDragListener&&this.dragSvc?.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},nc="__ag_Grid_Stop_Propagation";function Vo(e){e[nc]=!0}function Qi(e){return!0===e[nc]}var ln=class extends Y{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:i=>{if(i.defaultPrevented)return;const o=Io(this.beans,this.eFocusable,!1,i.shiftKey);o&&(o.focus(),i.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:i}}=this;e.classList.add("ag-focus-managed"),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),i&&this.addManagedElementListeners(e,{focusout:i})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||Qi(t))return;const{callbacks:i}=this;i.shouldStopEventPropagation(t)?Vo(t):"Tab"===t.key?i.onTabKeyDown(t):i.handleKeyDown&&i.handleKeyDown(t)}})}},Of=class extends ot{constructor(e,t){super(),this.filterNameKey=e,this.cssIdentifier=t,this.applyActive=!1,this.debouncePending=!1,this.defaultDebounceMs=0}postConstruct(){const e={tag:"div",cls:`ag-filter-body-wrapper ag-${this.cssIdentifier}-body-wrapper`,children:[this.createBodyTemplate()]};this.setTemplate(e,this.getAgComponents()),this.createManagedBean(new ln(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=this.createBean(new Af(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}handleKeyDown(e){}init(e){const t=e;this.setParams(t),this.setModelIntoUi(t.state.model,!0).then(()=>this.updateUiVisibility())}refresh(e){const t=e,i=this.params;this.params=t,"colDef"===t.source&&this.updateParams(t,i);const n=t.state,s=this.state;return this.state=n,(n.model!==s.model||n.state!==s.state)&&this.setModelIntoUi(n.model),!0}setParams(e){this.params=e,this.state=e.state,this.commonUpdateParams(e)}updateParams(e,t){this.commonUpdateParams(e,t)}commonUpdateParams(e,t){this.applyActive=Us(e),this.setupApplyDebounced()}doesFilterPass(e){se(283);const{getHandler:t,model:i,column:o}=this.params;return t().doesFilterPass({...e,model:i,handlerParams:this.beans.colFilter.getHandlerParams(o)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return se(284),null!=this.params.model}setupApplyDebounced(){const e=xa(this.params,this.defaultDebounceMs),t=St(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return se(285),this.params.model}setModel(e){se(286);const{beans:t,params:i}=this;return t.colFilter.setModelForColumnLegacy(i.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:i}=this,o=!this.areModelsEqual(t.model,i.model);return o&&t.onAction("apply",e),o}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const i=this.getModelFromUi(),o={model:i,state:this.getState(),valid:this.canApply(i)};this.state=o;const n=this.params;n.onStateChange(o),n.onUiChange(this.getUiChangeEventParams()),this.gos.get("enableFilterHandlers")||this.eventSvc.dispatchEvent({type:"filterModified",column:n.column,filterInstance:this}),e??(e=this.applyActive?void 0:"debounce"),"immediately"===e?this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1}):"debounce"===e&&this.applyDebounced()}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:i}=this;if(!t)return;const o="floatingFilter"===e||"columnFilter"===e;o?(t.restoreLastSize(),t.setResizable(i.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(o)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e){return vo(this,e)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&this.areNonNullModelsEqual(e,t)}};function sc(e){return!!e.operator}var Fi={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},Da=class extends Y{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e};this.view.updateLayoutClasses(t.autoHeight?Fi.AUTO_HEIGHT:t.print?Fi.PRINT:Fi.NORMAL,t)}},bo="Viewport",rc="fakeVScrollComp",Ma=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],Bf=class extends Y{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isScrollActive=!1,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=St(this,()=>this.lastScrollSource[1]=null,150),this.resetLastVScrollDebounced=St(this,()=>this.lastScrollSource[0]=null,150)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),this.clearRetryListenerFncs=[],window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.invalidateVerticalScroll.bind(this),t=this.invalidateHorizontalScroll.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),bodyHeightChanged:e,scrollGapChanged:t}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,i=>{this.centerRowsCtrl=i.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,bo)});for(const e of Ma){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),i=t?St(this,this.onVScroll.bind(this,bo),100):this.onVScroll.bind(this,bo),o=t?St(this,this.onVScroll.bind(this,rc),100):this.onVScroll.bind(this,rc);this.addManagedElementListeners(this.eBodyViewport,{scroll:i}),this.registerScrollPartner(e,o)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){null!=this.centerRowsCtrl&&(void 0===e&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...Ma,bo])this.lastScrollSource[1]!==t&&wi(this.getViewportForSource(t),e,this.enableRtl)}getViewportForSource(e){return e===bo?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return null==this.lastScrollSource[t]?(0===t?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:i}=t;if(this.shouldBlockScrollUpdate(1,i,!0))return;const o=Mi(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(o),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(t=e===bo?this.eBodyViewport.scrollTop:this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:i}=this;i?.setScrollTop(t),this.nextScrollTop=t,e===bo?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,i?.active?i.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction:1===e?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.isScrollActive=!0,this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.isScrollActive=!1,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},150)}shouldBlockScrollUpdate(e,t,i=!1){return!(i&&!To())&&(0===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))}shouldBlockVerticalScroll(e){const t=$o(this.eBodyViewport),{scrollHeight:i}=this.eBodyViewport;return e<0||e+t>i}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:i}=this.centerRowsCtrl.eViewport;if(this.enableRtl){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>i}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=this.scrollLeft;let t=!1;for(const i of Ma)if(this.getViewportForSource(i).scrollLeft!==e){t=!0;break}t&&this.onHScroll(bo)}scrollGridIfNeeded(e=!1){const t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,e&&this.invalidateVerticalScroll(),this.redrawRowsAfterScroll()),t}setHorizontalScrollPosition(e,t=!1){const o=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(e=this.enableRtl?e>0?0:o:Math.min(Math.max(e,0),o)),wi(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:i,lastScrollTop:o}=this;return{top:o,bottom:o+i}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.centerRowsCtrl.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:i}=this.beans,o=i.getRowCount();let n=-1;for(let s=0;s<o;s++){const r=i.getRow(s);if("function"==typeof e){if(r&&e(r)){n=s;break}}else if(e===r||e===r.data){n=s;break}}n>=0&&this.ensureIndexVisible(n,t)}ensureIndexVisible(e,t,i=0){if(Ft(this.gos,"print"))return;const{rowModel:o}=this.beans,n=o.getRowCount();if("number"!=typeof e||e<0||e>=n)return void se(88,{index:e});this.clearRetryListeners();const{frameworkOverrides:s,pageBounds:r,rowContainerHeight:a,rowRenderer:l}=this.beans;s.wrapIncoming(()=>{const d=this.ctrlsSvc.getGridBodyCtrl(),c=o.getRow(e);let u,g,m=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:w,stickyBottomHeight:b}=d,x=c.rowTop,A=c.rowHeight,O=r.getPixelOffset(),V=c.rowTop-O,te=V+c.rowHeight,oe=this.getVScrollPosition(),ce=a.divStretchOffset,pe=oe.top+ce,Ne=oe.bottom+ce,$e=Ne-pe,Ue=a.getScrollPositionForPixel(V),je=a.getScrollPositionForPixel(te-$e),lt=Math.min((Ue+je)/2,V);let Yt=null;"top"===t?Yt=Ue-w:"bottom"===t?Yt=je+b:"middle"===t?Yt=lt:pe+w>V?Yt=Ue-w:Ne-b<te&&(Yt=je-Ue>$e?Ue-w:je+b),null!==Yt&&(this.setVerticalScrollPosition(Yt),l.redraw({afterScroll:!0})),u=x!==c.rowTop||A!==c.rowHeight,g=w!==d.stickyTopHeight||b!==d.stickyBottomHeight,m++}while((u||g)&&m<10);if(this.animationFrameSvc?.flushAllFrames(),i<10&&(c?.stub||!this.beans.rowAutoHeight?.areRowsMeasured())){const w=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const b=this.getVScrollPosition().top;w!==b&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=o.getRowCount())&&this.ensureIndexVisible(e,t,i+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:i,frameworkOverrides:o}=this.beans,n=i.getCol(e);if(!n||n.isPinned()||!this.visibleCols.isColDisplayed(n))return;const s=this.getPositionedHorizontalScroll(n,t);o.wrapIncoming(()=>{null!==s&&this.centerRowsCtrl.setCenterViewportScrollLeft(s),this.centerRowsCtrl.onHorizontalViewportChanged(),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:i,columnAfterEnd:o}=this.isColumnOutsideViewport(e),n=this.centerRowsCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowsCtrl.getCenterWidth(),r=this.enableRtl;let a=(r?i:o)||n,l=r?o:i;"auto"!==t&&(a="start"===t,l="end"===t);const d="middle"===t;if(a||l||d){const{colLeft:c,colMiddle:u,colRight:g}=this.getColumnBounds(e);return d?u-s/2:a?r?g:c:r?c-s:g-s}return null}isColumnOutsideViewport(e){const{start:t,end:i}=this.getViewportBounds(),{colLeft:o,colRight:n}=this.getColumnBounds(e),s=this.enableRtl;return{columnBeforeStart:s?t>n:i<n,columnAfterEnd:s?i<o:t>o}}getColumnBounds(e){const t=this.enableRtl,i=this.visibleCols.bodyWidth,o=e.getActualWidth(),n=e.getLeft(),s=t?-1:1,r=t?i-n:n;return{colLeft:r,colMiddle:r+o/2*s,colRight:r+o*s}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}}},ka=class extends Y{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=Ft(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:i}=this.beans,o=t.bodyWidth,n=t.getColsLeftWidth(),s=t.getDisplayedColumnsRightWidth();let r;e?r=o+n+s:(r=o,this.addSpacer&&0===(this.gos.get("enableRtl")?n:s)&&i.verticalScrollShowing&&(r+=i.getScrollbarWidth())),this.callback(r)}},Vf=class extends Y{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:i}=this,o=()=>{_e(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(o),i.registerBodyViewportResizeListener(o)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const i=this.centerContainerCtrl.getCenterWidth();i!==this.centerWidth&&(this.centerWidth=i,t?.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const t=$o(this.gridBodyCtrl.eBodyViewport);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){if(!this.isAlive())return;const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function $s(e,t,i,o){const n=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return lc(e,t,i,o,n)}function lc(e,t,i,o,n){return!!n&&n(Ie(e,{column:t,node:i,event:o}))}function dc(e,t,i){let o=t;for(;o;){const n=On(e,o,i);if(n)return n;o=o.parentElement}return null}var js="cellCtrl";function Ta(e,t){return dc(e,t,js)}var Ks="renderedRow";function Gf(e,t){return dc(e,t,Ks)}function Aa(e,t,i,o,n){const s=o?o.getColDef().suppressKeyboardEvent:void 0;if(!s)return!1;const r=Ie(e,{event:t,editing:n,column:o,node:i,data:i.data,colDef:o.getColDef()});return!(!s||!s(r))}var Xf=class extends Y{constructor(e){super(),this.element=e}postConstruct(){this.addKeyboardListeners(),this.addMouseListeners(),this.beans.touchSvc?.mockRowContextMenu(this),this.editSvc=this.beans.editSvc}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){const t=["dblclick","contextmenu","mouseover","mouseout","click",us("touchstart")?"touchstart":"mousedown"];for(const i of t){const o=this.processMouseEvent.bind(this,i);this.addManagedElementListeners(this.element,{[i]:o})}}processMouseEvent(e,t){if(!De(this.beans,t)||Qi(t))return;const{cellCtrl:i,rowCtrl:o}=this.getControlsForEventTarget(t.target);"contextmenu"===e?(i?.column&&i.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,o,i)):(i&&i.onMouseEvent(e,t),o&&o.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:Ta(t,e),rowCtrl:Gf(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:i,rowCtrl:o}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(i?this.processCellKeyboardEvent(i,e,t):o?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(o,e,t))}processCellKeyboardEvent(e,t,i){const o=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!Aa(this.gos,i,e.rowNode,e.column,o)&&"keydown"===t&&(!o&&this.beans.navigation?.handlePageScrollingKey(i)||e.onKeyDown(i),this.doGridOperations(i,o),Dd(i)&&e.processCharacter(i)),"keydown"===t&&this.eventSvc.dispatchEvent(e.createEvent(i,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,i){const{rowNode:o}=e,{focusSvc:n,navigation:s}=this.beans,a=n.getFocusedCell()?.column;if(!Aa(this.gos,i,o,a,!1)&&"keydown"===t)switch(i.key){case"Home":case"End":case"PageUp":case"PageDown":s?.handlePageScrollingKey(i,!0);break;case N_LEFT:case N_RIGHT:if(!this.gos.get("embedFullWidthRows"))break;case N_UP:case N_DOWN:e.onKeyboardNavigate(i);break;case"Tab":e.onTabKeyDown(i)}"keydown"===t&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",i))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!De(this.beans,e))return;const i=function qf(e){const{keyCode:t}=e;let i;switch(t){case 65:i="KeyA";break;case 67:i="KeyC";break;case 86:i="KeyV";break;case 68:i="KeyD";break;case 90:i="KeyZ";break;case 89:i="KeyY";break;default:i=e.code}return i}(e),{clipboardSvc:o,undoRedo:n}=this.beans;return"KeyA"===i?this.onCtrlAndA(e):"KeyC"===i?this.onCtrlAndC(o,e):"KeyD"===i?this.onCtrlAndD(o,e):"KeyV"===i?this.onCtrlAndV(o,e):"KeyX"===i?this.onCtrlAndX(o,e):"KeyY"===i?this.onCtrlAndY(n):"KeyZ"===i?this.onCtrlAndZ(n,e):void 0}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:i,selectionSvc:o},gos:n}=this;i&&kt(n)&&!function Gh(e){const t=e.get("rowSelection");return"string"!=typeof t&&"multiRow"===t?.mode&&(t.ctrlASelectsRows??!1)}(n)&&t.isRowsToRender()?function Nf(e){const{pinnedRowModel:t,rowModel:i}=e,[o,n]=[t?.isEmpty("top")??!0,t?.isEmpty("bottom")??!0],s=o?null:"top";let r,a;n?(r=null,a=i.getRowCount()-1):(r="bottom",a=t?.getPinnedBottomRowCount()??-1);const{visibleCols:l,rangeSvc:d}=e,c=l.allCols;!d||!c?.length||d.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:a,rowEndPinned:r})}(this.beans):o&&o.selectAllRowNodes({source:"keyboardSelectAll",selectAll:ql(n)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:i}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(i,{withOpenEditor:!0})||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e?.redo("ui")}},cc=class extends Y{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,i=null!=t?`${t}px`:"";this.eContainer.style.height=i,this.eViewport&&(this.eViewport.style.height=i)}},qs=e=>e.topRowCtrls,Xs=e=>e.getStickyTopRowCtrls(),Ys=e=>e.getStickyBottomRowCtrls(),Qs=e=>e.bottomRowCtrls,Zs=e=>e.allRowCtrls,Ia=e=>e.getCtrls("top"),Oa=e=>e.getCtrls("center"),La=e=>e.getCtrls("bottom"),Yf={center:{type:"center",name:"center-cols",getRowCtrls:Zs,getSpannedRowCtrls:Oa},left:{type:"left",name:"pinned-left-cols",pinnedType:"left",getRowCtrls:Zs,getSpannedRowCtrls:Oa},right:{type:"right",name:"pinned-right-cols",pinnedType:"right",getRowCtrls:Zs,getSpannedRowCtrls:Oa},fullWidth:{type:"fullWidth",name:"full-width",fullWidth:!0,getRowCtrls:Zs},topCenter:{type:"center",name:"floating-top",getRowCtrls:qs,getSpannedRowCtrls:Ia},topLeft:{type:"left",name:"pinned-left-floating",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:qs,getSpannedRowCtrls:Ia},topRight:{type:"right",name:"pinned-right-floating",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:qs,getSpannedRowCtrls:Ia},topFullWidth:{type:"fullWidth",name:"floating-top-full-width",fullWidth:!0,getRowCtrls:qs},stickyTopCenter:{type:"center",name:"sticky-top",getRowCtrls:Xs},stickyTopLeft:{type:"left",name:"pinned-left-sticky-top",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:Xs},stickyTopRight:{type:"right",name:"pinned-right-sticky-top",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:Xs},stickyTopFullWidth:{type:"fullWidth",name:"sticky-top-full-width",fullWidth:!0,getRowCtrls:Xs},stickyBottomCenter:{type:"center",name:"sticky-bottom",getRowCtrls:Ys},stickyBottomLeft:{type:"left",name:"pinned-left-sticky-bottom",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:Ys},stickyBottomRight:{type:"right",name:"pinned-right-sticky-bottom",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:Ys},stickyBottomFullWidth:{type:"fullWidth",name:"sticky-bottom-full-width",fullWidth:!0,getRowCtrls:Ys},bottomCenter:{type:"center",name:"floating-bottom",getRowCtrls:Qs,getSpannedRowCtrls:La},bottomLeft:{type:"left",name:"pinned-left-floating-bottom",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:Qs,getSpannedRowCtrls:La},bottomRight:{type:"right",name:"pinned-right-floating-bottom",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:Qs,getSpannedRowCtrls:La},bottomFullWidth:{type:"fullWidth",name:"floating-bottom-full-width",fullWidth:!0,getRowCtrls:Qs}};function uc(e){return`ag-${jn(e).name}-viewport`}function Js(e){const t=jn(e);return t.container??`ag-${t.name}-container`}function Qf(e){return`ag-${jn(e).name}-spanned-cells-container`}function jn(e){return Yf[e]}var tm=["center","left","right","fullWidth"],im=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],om=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],nm=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],hc=["stickyTopCenter","stickyTopLeft","stickyTopRight"],gc=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],sm=[...hc,"stickyTopFullWidth",...gc,"stickyBottomFullWidth"],rm=["topCenter","topLeft","topRight","bottomCenter","bottomLeft","bottomRight","center","left","right",...hc,...gc],am=class extends Y{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=jn(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new Vf(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,i,o){this.comp=e,this.eContainer=t,this.eSpannedContainer=i,this.eViewport=o,this.createManagedBean(new Xf(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:n,rangeSvc:s}=this.beans,r=()=>this.onPinnedWidthChanged();this.forContainers(om,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n?.createPinnedWidthFeature(!0,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({leftPinnedWidthChanged:r})}),this.forContainers(nm,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(n?.createPinnedWidthFeature(!1,this.eContainer,this.eSpannedContainer)),this.addManagedEventListeners({rightPinnedWidthChanged:r})}),this.forContainers(tm,()=>this.createManagedBean(new cc(this.eContainer,"center"===this.name?o:void 0))),s&&this.forContainers(rm,()=>this.createManagedBean(s.createDragListenerFeature(this.eContainer))),this.forContainers(im,()=>this.createManagedBean(new ka(a=>this.comp.setContainerWidth(`${a}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,i=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i,displayedColumnsWidthChanged:i,displayedRowsChanged:o=>this.onDisplayedRowsChanged(o.afterScroll)}),i(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const o=this.options.getSpannedRowCtrls(e);o&&this.comp.setSpannedRowCtrls(o,!1)}})}listenOnDomOrder(){if(sm.indexOf(this.name)>=0)return void this.comp.setDomOrder(!0);const t=()=>{const i=this.gos.get("ensureDomOrder"),o=Ft(this.gos,"print");this.comp.setDomOrder(i||o)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=i=>{e.dragging&&i.cancelable&&i.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,i,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return Ni(this.eViewport)}getCenterViewportScrollLeft(){return Mi(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=ae(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return to(this.eViewport)}getViewportScrollLeft(){return Mi(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||Ht(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){wi(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(null!=this.options.pinnedType)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||0===t.length)return void this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});const i=Ft(this.gos,"print"),n=this.gos.get("embedFullWidthRows")||i,s=t.filter(r=>{const a=r.isFullWidth();return this.options.fullWidth?!n&&a:n||!a});this.comp.setRowCtrls({rowCtrls:s,useFlushSync:e})}},pc="ag-force-vertical-scroll",cm=class extends Y{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,i,o,n,s,r){this.comp=e,this.eGridBody=t,this.eBodyViewport=i,this.eTop=o,this.eBottom=n,this.eStickyTop=s,this.eStickyBottom=r,this.eCenterColsViewport=i.querySelector(`.${uc("center")}`),this.eFullWidthContainer=i.querySelector(`.${Js("fullWidth")}`),this.eStickyTopFullWidthContainer=s.querySelector(`.${Js("stickyTopFullWidth")}`),this.eStickyBottomFullWidthContainer=r.querySelector(`.${Js("stickyBottomFullWidth")}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",a=>this.setCellTextSelection(a.currentValue)),this.createManagedBean(new Da(this.comp)),this.scrollFeature=this.createManagedBean(new Bf(i)),this.beans.rowDragSvc?.setupRowDrag(i,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([o,i,n,s,r]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),this.filterManager?.setupAdvFilterHeaderComp(o),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this),i=this.toggleRowResizeStyles.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t,rowResizeStarted:i,rowResizeEnded:i}),this.addManagedPropertyListener("treeData",t)}toggleRowResizeStyles(e){this.eBodyViewport.classList.toggle("ag-prevent-animation","rowResizeStarted"===e.type)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const n=`calc(100% + ${(t&&e.getScrollbarWidth()||0)+(Pd()?16:0)}px)`;_e(this.beans,()=>this.comp.setBodyViewportWidth(n)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t}=this;let i=this.gos.get("treeData");if(!i){const o=t.isPivotMode();i=(e?e.columns.length:0)>=(o?2:1)}this.comp.setGridRootRole(i?"treegrid":"grid")}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:i=>{const{target:o}=i,n=ai(o,"ag-root",t);t.classList.toggle("ag-has-focus",!n)},focusout:i=>{const{target:o,relatedTarget:n}=i,s=t.contains(n),r=ai(n,"ag-root",t);ai(o,"ag-root",t)||(!s||r)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss("ag-column-moving",e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss("ag-selectable",e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){const e=(this.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.filterManager?.getHeaderRowCount()??0),{rowModel:t}=this.beans,i=t.isLastRowIndexKnown()?t.getRowCount():-1;this.comp.setRowCount(-1===i?-1:e+i)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){this.comp.setPinnedTopBottomOverflowY(e?"scroll":"hidden")}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?pc:null,i=Ft(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||i&&Si(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let i=t.sizesMeasured;const o=()=>{const n=i&&ji(this.gos)&&!e.stretching;this.comp.setRowAnimationCssOnBodyViewport(n?"ag-row-animation":"ag-row-no-animation",n)};o(),this.addManagedEventListeners({heightScaleChanged:o}),this.addManagedPropertyListener("animateRows",o),this.addManagedEventListeners({gridStylesChanged:()=>{!i&&t.sizesMeasured&&(i=!0,o())}})}addBodyViewportListener(){const{eBodyViewport:e,eStickyTop:t,eStickyBottom:i,eTop:o,eBottom:n,beans:{popupSvc:s,touchSvc:r}}=this,a=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:a}),r?.mockBodyContextMenu(this,a),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,s)});const l=this.onStickyWheel.bind(this);for(const c of[t,i,o,n])this.addManagedElementListeners(c,{wheel:l});const d=this.onHorizontalWheel.bind(this);for(const c of["left","right","topLeft","topRight","bottomLeft","bottomRight"])this.addManagedElementListeners(this.ctrlsSvc.get(c).eContainer,{wheel:d});this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:i,shiftKey:o}=e;(o||Math.abs(t)>Math.abs(i))&&De(this.beans,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onHorizontalWheel(e){const{deltaX:t,deltaY:i,shiftKey:o}=e;(o||Math.abs(t)>Math.abs(i))&&this.scrollGridBodyToMatchEvent(e)}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:i}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||i})}onBodyViewportContextMenu(e,t,i){if(!e&&!i)return;this.gos.get("preventDefaultOnContextMenu")&&(e||i).preventDefault();const{target:o}=e||t;(o===this.eBodyViewport||o===this.ctrlsSvc.get("center").eViewport)&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:i,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e,beans:{environment:t}}=this,i=e?.getPinnedTopTotalHeight(),o=e?.getPinnedBottomTotalHeight(),r=t.getPinnedRowBorderWidth()-t.getRowBorderWidth(),a=i?r+i:0,l=o?r+o:0;this.comp.setTopHeight(a),this.comp.setBottomHeight(l),this.comp.setTopInvisible(a<=0),this.comp.setBottomInvisible(l<=0),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(e){const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}else this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%")}setStickyTopOffsetTop(){const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(this.filterManager?.getHeaderHeight()??0),i=this.pinnedRowModel?.getPinnedTopTotalHeight()??0;let o=0;t>0&&(o+=t),i>0&&(o+=i),o>0&&(o+=1),this.comp.setStickyTopTop(`${o}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:i}=this,o=e?.getPinnedBottomTotalHeight()??0,s=t.horizontalScrollShowing&&t.getScrollbarWidth()||0;i.setStickyBottomBottom(`${o+s}px`)}};function fc(e,t){const i=Ft(e.gos,"normal");let n,s;null!=t.clientX||null!=t.clientY?(n=t.clientX,s=t.clientY):(n=t.x,s=t.y);const{pageFirstPixel:r}=e.pageBounds.getCurrentPagePixelRange();if(s+=r,i){const a=e.ctrlsSvc.getScrollFeature(),l=a.getVScrollPosition();n+=a.getHScrollPosition().left,s+=l.top}return{x:n,y:s}}var mc=class extends ot{constructor(e,t){super(),this.direction=t,this.eViewport=fe,this.eContainer=fe,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",Ed()||To())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=Pd(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),i=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:i,touchend:i})}onScrollVisibilityChanged(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),_e(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.toggleCss("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.toggleCss("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;!function qo(e,t,i,o=100){const n=Date.now();let s=null,r=!1;const a=()=>{null!=s&&(window.clearInterval(s),s=null)};e.addDestroyFunc(a);const l=()=>{const d=Date.now()-n>o;(t()||d)&&(i(),r=!0,a())};l(),r||(s=window.setInterval(l,10))}(this,()=>Dt(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},hm={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eLeftSpacer",cls:"ag-horizontal-left-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eRightSpacer",cls:"ag-horizontal-right-spacer"}]},pm={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:class extends mc{constructor(){super(hm,"horizontal"),this.eLeftSpacer=fe,this.eRightSpacer=fe,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new ka(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const i=!this.enableRtl&&e,o=this.scrollVisibleSvc.getScrollbarWidth();i&&(t+=o),Mt(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=o);let n=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(n+=o),Mt(this.eLeftSpacer,n),this.eLeftSpacer.classList.toggle("ag-scroller-corner",n<=o)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,i=this.gos.get("suppressHorizontalScroll"),o=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,s=i?0:0===o&&t?16:o,r=()=>{this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",t),ui(this.getGui(),s),ui(this.eViewport,s),ui(this.eContainer,s),s||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(r,100):r()}getScrollPosition(){return Mi(this.eViewport,this.enableRtl)}setScrollPosition(e){Dt(this.eViewport)||this.attemptSettingScrollPosition(e),wi(this.eViewport,e,this.enableRtl)}}},fm={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},Cm={selector:"AG-FAKE-VERTICAL-SCROLL",component:class extends mc{constructor(){super(fm,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new cc(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,i=this.invisibleScrollbar,o=t&&e.getScrollbarWidth()||0,n=0===o&&i?16:o;this.toggleCss("ag-scrollbar-invisible",i),Mt(this.getGui(),n),Mt(this.eViewport,n),Mt(this.eContainer,n),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const i=e.getGridBodyCtrl().eBodyViewport,o=this.getScrollPosition(),n=i.scrollTop;o!=n&&this.setScrollPosition(n,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!Dt(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}}};function Cc(e,t,i,o){return K(e)?[]:function wc(e,t,i,o,n){if(K(e))return[];let s;if("function"==typeof e){const r=function bm(e,t,i,o){return Ie(t,{colDef:e,column:i,columnGroup:o})}(t,i,o,n);s=e(r)}else s=e;return"string"==typeof s?[s]:Array.isArray(s)?[...s]:[]}(e.headerClass,e,t,i,o)}function vc(e,t,i){e.toggleCss("ag-column-first",i.isColAtEdge(t,"first")),e.toggleCss("ag-column-last",i.isColAtEdge(t,"last"))}function Ho(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.isExclusive()}function er(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.isExclusive()}function dn(e,t,i=!1){const o=e.ctrlsSvc.get("gridCtrl");return!(i||!o.focusNextInnerContainer(t))||((i||!t&&!o.isDetailGrid())&&o.forceFocusOutOfContainer(t),!1)}function Bi(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function Ba(e){const t=[],i=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const o of i){if(!o)continue;const n=o.getGroupRowCount()||0;for(let s=0;s<n;s++){const r=o.getGroupRowCtrlAtIndex(s),a=t[s];if(r){const l=Rm(e,r);(null==a||l>a)&&(t[s]=l)}}}return t}function Rm(e,t){let o=e.colModel.isPivotMode()?function xm(e){return e.gos.get("pivotGroupHeaderHeight")??yc(e)}(e):yc(e);const n=t.getHeaderCellCtrls();for(const s of n){const{column:r}=s,a=r.getAutoHeaderHeight();null!=a&&a>o&&r.isAutoHeaderHeight()&&(o=a)}return o}function Va(e){let i=e.colModel.isPivotMode()?function Em(e){return e.gos.get("pivotHeaderHeight")??Kn(e)}(e):Kn(e);return e.colModel.forAllCols(o=>{const n=o.getAutoHeaderHeight();null!=n&&n>i&&o.isAutoHeaderHeight()&&(i=n)}),i}function Kn(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function bc(e){return e.gos.get("floatingFiltersHeight")??Kn(e)}function yc(e){return e.gos.get("groupHeaderHeight")??Kn(e)}var Fm=class extends Y{setComp(e,t,i){this.comp=e,this.eGui=t;const{beans:o}=this,{headerNavigation:n,touchSvc:s,ctrlsSvc:r}=o;n&&this.createManagedBean(new ln(i,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,o),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,o)}),this.onPivotModeChanged(o),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),s?.mockHeaderContextMenu(this,a),r.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({headerRowsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>_e(this.beans,()=>e()),gridStylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const i=Ba(e).reduce((s,r)=>s+r,0),o=Va(e);e.filterManager?.hasFloatingFilters()&&(t+=bc(e)),t+=i,t+=o,this.headerHeight!==t&&(this.headerHeight=t,this.comp.setHeightAndMinHeight(`${t+1}px`),this.eventSvc.dispatchEvent({type:"headerHeightChanged"}))}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const i=e.visibleCols.allCols.some(o=>o.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",i)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),i=e.shiftKey,o=i!==t?"LEFT":"RIGHT",{beans:n}=this,{headerNavigation:s,focusSvc:r}=n;(s.navigateHorizontally(o,!0,e)||!i&&r.focusOverlay(!1)||dn(n,i,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:i}=this.beans;switch(e.key){case N_LEFT:t="LEFT";case N_RIGHT:p(t)||(t="RIGHT"),i.navigateHorizontally(t,!1,e)&&e.preventDefault();break;case N_UP:t="UP";case N_DOWN:p(t)||(t="DOWN"),i.navigateVertically(t,e)&&e.preventDefault();break;default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:i,beans:o}=this;!t&&i.contains(le(o))||i.contains(t)||(o.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,i){const{menuSvc:o,ctrlsSvc:n}=this.beans;if(!e&&!i||!o?.isHeaderContextMenuEnabled())return;const{target:s}=e??t;(s===this.eGui||s===n.getHeaderRowContainerCtrl()?.eViewport)&&o.showHeaderContextMenu(void 0,e,i)}},Ha=class extends ot{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},Dm={tag:"div",cls:"ag-header-cell",role:"columnheader",children:[{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"},{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"}]},Mm=class extends Ha{constructor(e){super(Dm,e),this.eResize=fe,this.eHeaderCompWrapper=fe,this.headerCompVersion=0}postConstruct(){const e=this.getGui(),t=()=>{const o=this.ctrl.getSelectAllGui();o&&(this.eResize.insertAdjacentElement("afterend",o),this.addDestroyFunc(()=>o.remove()))};this.ctrl.setComp({setWidth:o=>e.style.width=o,toggleCss:(o,n)=>this.toggleCss(o,n),setUserStyles:o=>yi(e,o),setAriaSort:o=>o?function Bt(e,t){j(e,"sort",t)}(e,o):function ri(e){$(e,"sort")}(e),setUserCompDetails:o=>this.setUserCompDetails(o),getUserCompInstance:()=>this.headerComp,refreshSelectAllGui:t,removeSelectAllGui:()=>this.ctrl.getSelectAllGui()?.remove()},this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0),t()}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.headerCompGui?.remove(),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(e){this.headerCompVersion++;const t=this.headerCompVersion;e.newAgStackInstance().then(i=>this.afterCompCreated(t,i))}afterCompCreated(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(t)}},_m={tag:"div",cls:"ag-header-group-cell",role:"columnheader",children:[{tag:"div",ref:"eHeaderCompWrapper",cls:"ag-header-cell-comp-wrapper",role:"presentation"},{tag:"div",ref:"eResize",cls:"ag-header-cell-resize",role:"presentation"}]},km=class extends Ha{constructor(e){super(_m,e),this.eResize=fe,this.eHeaderCompWrapper=fe}postConstruct(){const e=this.getGui();this.ctrl.setComp({toggleCss:(o,n)=>this.toggleCss(o,n),setUserStyles:o=>yi(e,o),setHeaderWrapperHidden:o=>{o?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:o=>{null!=o?this.eHeaderCompWrapper.style.setProperty("max-height",`${o}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",null!=o)},setResizableDisplayed:o=>it(this.eResize,o),setWidth:o=>e.style.width=o,setAriaExpanded:o=>((o,n)=>null!=n?e.setAttribute(o,n):e.removeAttribute(o))("aria-expanded",o),setUserCompDetails:o=>this.setUserCompDetails(o),getUserCompInstance:()=>this.headerGroupComp},e,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(e){e.newAgStackInstance().then(t=>this.afterHeaderCompCreated(t))}afterHeaderCompCreated(e){const t=()=>this.destroyBean(e);if(!this.isAlive())return void t();const i=this.getGui(),o=e.getGui();this.eHeaderCompWrapper.appendChild(o),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(i)}},Tm={tag:"div",cls:"ag-header-cell ag-floating-filter",role:"gridcell",children:[{tag:"div",ref:"eFloatingFilterBody",role:"presentation"},{tag:"div",ref:"eButtonWrapper",cls:"ag-floating-filter-button ag-hidden",role:"presentation",children:[{tag:"button",ref:"eButtonShowMainFilter",cls:"ag-button ag-floating-filter-button-button",attrs:{type:"button",tabindex:"-1"}}]}]},Am=class extends Ha{constructor(e){super(Tm,e),this.eFloatingFilterBody=fe,this.eButtonWrapper=fe,this.eButtonShowMainFilter=fe}postConstruct(){const e=this.getGui();this.ctrl.setComp({toggleCss:(i,o)=>this.toggleCss(i,o),setUserStyles:i=>yi(e,i),addOrRemoveBodyCssClass:(i,o)=>this.eFloatingFilterBody.classList.toggle(i,o),setButtonWrapperDisplayed:i=>it(this.eButtonWrapper,i),setCompDetails:i=>this.setCompDetails(i),getFloatingFilterComp:()=>this.compPromise,setWidth:i=>e.style.width=i,setMenuIcon:i=>this.eButtonShowMainFilter.appendChild(i)},e,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(e){if(!e)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=e.newAgStackInstance(),this.compPromise.then(t=>this.afterCompCreated(t))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.floatingFilterComp.getGui().remove(),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(e){if(e){if(!this.isAlive())return void this.destroyBean(e);this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()}}},Im=class extends ot{constructor(e){super({tag:"div",cls:e.headerRowClass,role:"row"}),this.ctrl=e,this.headerComps={}}postConstruct(){this.getGui().setAttribute("tabindex",String(this.gos.get("tabIndex"))),ye(this.getGui(),this.ctrl.getAriaRowIndex()),this.ctrl.setComp({setHeight:i=>this.getGui().style.height=i,setTop:i=>this.getGui().style.top=i,setHeaderCtrls:(i,o)=>this.setHeaderCtrls(i,o),setWidth:i=>this.getGui().style.width=i,setRowIndex:i=>ye(this.getGui(),i)},void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(e,t){if(!this.isAlive())return;const i=this.headerComps;this.headerComps={};for(const o of e){const n=o.instanceId;let s=i[n];delete i[n],null==s&&(s=this.createHeaderComp(o),this.getGui().appendChild(s.getGui())),this.headerComps[n]=s}if(Object.values(i).forEach(o=>{o.getGui().remove(),this.destroyBean(o)}),t){const o=Object.values(this.headerComps);o.sort((s,r)=>s.getCtrl().column.getLeft()-r.getCtrl().column.getLeft());const n=o.map(s=>s.getGui());di(this.getGui(),n)}}createHeaderComp(e){let t;switch(this.ctrl.type){case"group":t=new km(e);break;case"filter":t=new Am(e);break;default:t=new Mm(e)}return this.createBean(t),t.setParentComponent(this),t}},Ga=class extends Y{constructor(e,t,i,o){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=o,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=i}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?rt(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,i=e.get("suppressColumnMoveAnimation"),o=p(this.columnOrGroup.getOldLeft());t?.isActive()&&o&&!i?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),i=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=i,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===i&&this.setLeft(i)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:i,visibleCols:o}=this.beans;if(!Ft(i,"print")||"left"===e.getPinned())return t;const s=o.getColsLeftWidth();return"right"===e.getPinned()?s+o.bodyWidth+t:s+t}setLeft(e){if(p(e)&&(this.eCell.style.left=`${e}px`),Et(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&function vt(e,t){j(e,"colspan",t)}(this.ariaEl,t.length)}}},Om=0,Sc="headerCtrl",Na=class extends Y{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.reAttemptToFocus=!1,this.instanceId=e.getUniqueId()+"-"+Om++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,i,o,n){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,i,o,n),this.reAttemptToFocus&&(this.reAttemptToFocus=!1,this.focus(this.lastFocusEvent??void 0))}shouldStopEventPropagation(e){const{headerRowIndex:t,column:i}=this.beans.focusSvc.focusedHeader,o=i.getDefinition(),n=o?.suppressHeaderKeyboardEvent;return!!p(n)&&!!n(Ie(this.gos,{colDef:o,column:i,headerRowIndex:t,event:e}))}getWrapperHasFocus(){return le(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}refreshHeaderStyles(){const e=this.column.getDefinition();if(!e)return;const{headerStyle:t}=e;let i;i="function"==typeof t?t(this.getHeaderClassParams()):t,i&&this.comp.setUserStyles(i)}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:i,compBean:o}=e,{beans:n}=this,s=u=>{if(!this.isAlive()||!o.isAlive())return;const{paddingTop:g,paddingBottom:m,borderBottomWidth:w,borderTopWidth:b}=vi(this.eGui),O=t.offsetHeight+(g+m+w+b);!(u<5)||we(n)?.contains(t)&&0!=O?this.setColHeaderHeight(this.column,O):gs(()=>s(u+1),"raf",n)};let a,r=!1;const l=()=>{const u=this.column.isAutoHeaderHeight();u&&!r&&d(),!u&&r&&c()},d=()=>{r=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),s(0),a=ae(this.beans,t,()=>s(0))},c=()=>{r=!1,a&&a(),this.comp.toggleCss("ag-header-cell-auto-height",!1),a=void 0};l(),o.addDestroyFunc(()=>c()),o.addManagedListeners(this.column,{widthChanged:()=>r&&s(0)}),o.addManagedEventListeners({sortChanged:()=>{r&&window.setTimeout(()=>s(0))}}),i&&i(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:i,eGui:o}=this;!e||!t||!o||(vc(e,t,i.visibleCols),Qe(o,i.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=Ho(this.beans);this.eGui&&z(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){const t=le(this.beans),i=e.key===N_LEFT||e.key===N_RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey||((this.isResizing||i)&&(e.preventDefault(),e.stopImmediatePropagation()),!i))return;const n=e.key===N_LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const s=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(s,e.shiftKey),this.resizeFeature?.toggleColumnResizing(!0)}else this.moveHeader(n)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:i}=this.beans;return i?i.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:i}=this;let o=e.key===N_LEFT!==t.get("enableRtl");const n=i.getPinned(),s=t.get("enableRtl");return n&&s!==("right"===n)&&(o=!o),(o?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{this.resizeFeature?.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case"PageDown":case"PageUp":case"Home":case"End":t&&e.preventDefault()}}addDomData(e){const t=Sc,{eGui:i,gos:o}=this;$i(o,i,t,this),e.addDestroyFunc(()=>$i(o,i,t,null))}focus(e){if(!this.isAlive())return!1;const{eGui:t}=this;return t?(t.focus(),this.lastFocusEvent=e||null):this.reAttemptToFocus=!0,!0}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop?.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,i){const o=e??t,{menuSvc:n,gos:s}=this.beans;s.get("preventDefaultOnContextMenu")&&o.preventDefault(),n?.isHeaderContextMenuEnabled(i)&&n.showHeaderContextMenu(i,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",i)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:i}=this;i.dispatchEvent(e.isColumn?{type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}:{type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},Lm=class extends Na{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}wireComp(e,t,i,o,n){this.comp=e;const{rowCtrl:s,column:r,beans:a}=this,{colResize:l,context:d,colHover:c,rangeSvc:u}=a,g=zn(this,d,n);this.setGui(t,g),this.updateState(),this.setupWidth(g),this.setupMovingCss(g),this.setupMenuClass(g),this.setupSortableClass(g),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:o,checkMeasuringCallback:w=>this.setRefreshFunction("measuring",w),compBean:g}),this.addColumnHoverListener(g),this.setupFilterClass(g),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(g),this.setupSelectAll(g),this.setupUserComp(),this.refreshAria(),l?this.resizeFeature=g.createManagedBean(l.createResizeFeature(s.pinned,r,i,e,this)):it(i,!1),c?.createHoverFeature(g,[r],t),u?.createRangeHighlightFeature(g,r,e),g.createManagedBean(new Ga(r,t,a)),g.createManagedBean(new ln(t,{shouldStopEventPropagation:w=>this.shouldStopEventPropagation(w),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(g),g.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),g.addManagedListeners(r,{colDefChanged:()=>this.refresh()}),g.addManagedListeners(r,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const m=()=>this.checkDisplayName();g.addManagedEventListeners({columnValueChanged:m,columnRowGroupChanged:m,columnPivotChanged:m,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),g.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){this.beans.colResize?.resizeHeader(this.column,e,t)}getHeaderClassParams(){const{column:e,beans:t}=this;return Ie(t.gos,{colDef:e.colDef,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return function Og(e,t,i){return e.getCompDetails(t,Cg,"agColumnHeader",i)}(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:i,gos:o}=this.beans;return Ie(o,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!e?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!i&&(!this.openFilterEnabled||ii(this.gos)),showColumnMenu:(s,r)=>{e?.showColumnMenu({column:this.column,buttonElement:s,positionBy:"button",onClosedCallback:r})},showColumnMenuAfterMouseClick:(s,r)=>{e?.showColumnMenu({column:this.column,mouseEvent:s,positionBy:"mouse",onClosedCallback:r})},showFilter:s=>{e?.showFilterMenu({column:this.column,buttonElement:s,containerType:"columnFilter",positionBy:"button"})},progressSort:s=>{t?.progressSort(this.column,!!s,"uiColumnSorted")},setSort:(s,r)=>{t?.setSortForColumn(this.column,s,!!r,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(s,r)=>{o.assertModuleRegistered("Tooltip",3),this.setupTooltip(s,r)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>{const i=t.createSelectAllFeature(this.column);i&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(i),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!i&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e)," "===e.key&&this.selectAllFeature?.onSpaceKeyDown(e),"Enter"===e.key&&this.onEnterKeyDown(e),e.key===N_DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){e.ctrlKey||e.metaKey?this.showMenuOnKeyPress(e,!0):this.sortable&&this.beans.sortSvc?.progressSort(this.column,e.shiftKey,"uiColumnSorted")}showMenuOnKeyPress(e,t){const i=this.comp.getUserCompInstance();Rc(i)&&i.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),function sp(){return ca}()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const i=Cc(this.column.getColDef(),this.gos,this.column,null),o=this.userHeaderClasses;this.userHeaderClasses=new Set(i);for(const n of i)o.has(n)?o.delete(n):this.comp.toggleCss(n,!0);for(const n of o)this.comp.toggleCss(n,!1)};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!e?.isColumnMenuInHeaderEnabled(this.column),this.openFilterEnabled=!!e?.isFilterMenuInHeaderEnabled(this.column),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria();for(const e of Object.values(this.refreshFunctions))e()}refreshHeaderComp(){const e=this.lookupUserCompDetails();e&&(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e))}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!(!t||!t.refresh)&&t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!(this.gos.get("suppressMovableColumns")||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const i=this.column.getActualWidth();this.comp.setWidth(`${i}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp?.toggleCss("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.toggleCss("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const i=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",i),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),i=1===e;this.comp.toggleCss("ag-header-highlight-before",0===e),this.comp.toggleCss("ag-header-highlight-after",i)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:i,beans:o}=this,n=Ba(this.beans),s=0===n.reduce((g,m)=>g+m,0);if(i.toggleCss("ag-header-parent-hidden",s),!t.isSpanHeaderHeight())return e.style.removeProperty("top"),e.style.removeProperty("height"),i.toggleCss("ag-header-span-height",!1),void i.toggleCss("ag-header-span-total",!1);const{numberOfParents:r,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();i.toggleCss("ag-header-span-height",r>0);const l=Va(o);if(0===r)return i.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),void e.style.setProperty("height",`${l}px`);i.toggleCss("ag-header-span-total",a);const d=(this.column.getFirstRealParent()?.getLevel()??-1)+1,c=n.length-d;let u=0;for(let g=0;g<c;g++)u+=n[n.length-1-g];e.style.setProperty("top",-u+"px"),e.style.setProperty("height",`${l+u}px`)}refreshAriaSort(){if(this.sortable){const e=this.getLocaleTextFunc(),t=this.beans.sortSvc?.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(function he(e){let t;return t="asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none",t}(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort"))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)}refreshAriaMenu(){if(this.menuEnabled){const e=this.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press ALT DOWN to open column menu"))}else this.setAriaDescriptionProperty("menu",null)}refreshAriaFilterButton(){if(this.openFilterEnabled&&!ii(this.gos)){const e=this.getLocaleTextFunc();this.setAriaDescriptionProperty("filterButton",e("ariaFilterColumn","Press CTRL ENTER to open filter"))}else this.setAriaDescriptionProperty("filterButton",null)}refreshAriaFiltered(){const e=this.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)}setAriaDescriptionProperty(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)}announceAriaDescription(){if(!this.eGui.contains(le(this.beans)))return;const e=Array.from(this.ariaDescriptionProperties.keys()).sort((t,i)=>"filter"===t?-1:i.charCodeAt(0)-t.charCodeAt(0)).map(t=>this.ariaDescriptionProperties.get(t)).join(". ");this.beans.ariaAnnounce?.announceValue(e,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=n=>this.handleMouseOverChange("mouseenter"===n.type);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:()=>{this.setActiveHeader(!0),this.dispatchColumnMouseEvent("columnHeaderClicked",this.column)},contextmenu:n=>this.handleContextMenuMouseEvent(n,void 0,this.column)})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.toggleCss("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return Rc(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function Rc(e){return"function"==typeof e?.getAnchorElementForMenu&&"function"==typeof e.onMenuKeyboardShortcut}var Bm=0,za=class extends Y{constructor(e,t,i){super(),this.rowIndex=e,this.pinned=t,this.type=i,this.instanceId=Bm++,this.comp=null,this.allCtrls=[];let o="ag-header-row-column";"group"===i?o="ag-header-row-group":"filter"===i&&(o="ag-header-row-filter"),this.headerRowClass=`ag-header-row ${o}`}setRowIndex(e){this.rowIndex=e,this.comp?.setRowIndex(this.getAriaRowIndex()),this.onRowHeightChanged()}postConstruct(){this.isPrintLayout=Ft(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return!!this.comp&&this.allCtrls.every(e=>null!=e.eGui)}setComp(e,t,i=!0){this.comp=e,t=zn(this,this.beans.context,t),i&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),i=this.onDisplayedColumnsChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:i,virtualColumnsChanged:o=>this.onVirtualColumnsChanged(o.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,gridStylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",i),e.addManagedPropertyListener("ensureDomOrder",o=>this.isEnsureDomOrder=o.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){this.isPrintLayout=Ft(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){if(!this.comp)return;const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?null!=this.pinned?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){if(!this.comp)return;const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){let e=0;const t=Ba(this.beans);for(let n=0;n<t.length;n++){if(n===this.rowIndex&&"group"===this.type)return{topOffset:e,rowHeight:t[n]};e+=t[n]}const i=Va(this.beans);return"column"===this.type?{topOffset:e,rowHeight:i}:(e+=i,{topOffset:e,rowHeight:bc(this.beans)})}onVirtualColumnsChanged(e=!1){if(!this.comp)return;const t=this.getUpdatedHeaderCtrls();this.comp.setHeaderCtrls(t,this.isEnsureDomOrder||this.isPrintLayout,e)}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const o of t)this.recycleAndCreateHeaderCtrls(o,this.ctrlsById,e);const i=o=>{const{focusSvc:n,visibleCols:s}=this.beans;return!!n.isHeaderWrapperFocused(o)&&s.isVisible(o.column)};if(e)for(const[o,n]of e)i(n)?this.ctrlsById.set(o,n):this.destroyBean(n);return this.allCtrls=Array.from(this.ctrlsById.values()),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,i){if(e.isEmptyGroup())return;const o=e.getUniqueId();let n;if(i&&(n=i.get(o),i.delete(o)),n&&n.column!=e&&(this.destroyBean(n),n=void 0),null==n)switch(this.type){case"filter":n=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break;case"group":n=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:n=this.createBean(new Lm(e,this))}t.set(o,n)}getColumnsInViewport(){if(!this.isPrintLayout)return this.getComponentsToRender();if(this.pinned)return[];const e=[];for(const t of["left",null,"right"])e.push(...this.getComponentsToRender(t));return e}getComponentsToRender(e=this.pinned){return"group"===this.type?this.beans.colViewport.getHeadersToRender(e,this.rowIndex):this.beans.colViewport.getColumnHeadersToRender(e)}focusHeader(e,t){const i=this.allCtrls.find(n=>n.column==e);return!!i&&i.focus(t)}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,super.destroy()}},Vm=class extends Y{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:i,ctrlsSvc:o,colModel:n,colMoves:s}=this.beans;this.setupCenterWidth(),i?.setupHeaderPinnedWidth(this),this.setupDragAndDrop(s,this.eViewport);const r=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:r,advancedFilterEnabledChanged:r}),o.register(`${"string"==typeof this.pinned?this.pinned:"center"}Header`,this),n.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,filterManager:i,visibleCols:o}=this.beans;let n=0;const s=t.getFocusHeaderToUseAfterRefresh(),d=this.getAllCtrls();(()=>{const u=o.headerGroupRowCount;n=u,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const g=this.groupsRowCtrls.length;if(g!==u){if(g>u){for(let m=u;m<g;m++)this.destroyBean(this.groupsRowCtrls[m]);return void(this.groupsRowCtrls.length=u)}for(let m=g;m<u;m++){const w=this.createBean(new za(m,this.pinned,"group"));this.groupsRowCtrls.push(w)}}})(),(()=>{const u=n++;this.hidden?this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl):null!=this.columnsRowCtrl&&e?this.columnsRowCtrl.rowIndex!==u&&this.columnsRowCtrl.setRowIndex(u):(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.columnsRowCtrl=this.createBean(new za(u,this.pinned,"column")))})(),(()=>{this.includeFloatingFilter=!!i?.hasFloatingFilters()&&!this.hidden;const u=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter)return void u();e||u();const g=n++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==g&&this.filtersRowCtrl.setRowIndex(g):this.filtersRowCtrl=this.createBean(new za(g,this.pinned,"filter"))})();const c=this.getAllCtrls();this.comp.setCtrls(c),this.restoreFocusOnHeader(t,s),d.length!==c.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=i=>i?.getHeaderCellCtrls().find(o=>o.column===e);if(co(e))return t(this.columnsRowCtrl);if(0!==this.groupsRowCtrls.length)for(let i=0;i<this.groupsRowCtrls.length;i++){const o=t(this.groupsRowCtrls[i]);if(o)return o}}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,i){const n=this.getAllCtrls()[e];return!!n&&n.focusHeader(t,i)}getGroupRowCount(){return this.groupsRowCtrls.length}getGroupRowCtrlAtIndex(e){return this.groupsRowCtrls[e]}getRowCount(){return this.groupsRowCtrls.length+(this.columnsRowCtrl?1:0)+(this.filtersRowCtrl?1:0)}setHorizontalScroll(e){this.comp.setViewportScrollLeft(e)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}destroy(){this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl),this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls),super.destroy()}setupDragAndDrop(e,t){const i=e?.createBodyDropTarget(this.pinned,t);i&&this.createManagedBean(i)}restoreFocusOnHeader(e,t){if(!t)return;const{column:i}=t;i.getPinned()==this.pinned&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}setupCenterWidth(){null==this.pinned&&this.createManagedBean(new ka(e=>this.comp.setCenterWidth(`${e}px`),!0))}};function Ec(e,t,i){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",i))}function xc(e){const{enterpriseMenuFactory:t,filterMenuFactory:i,gos:o}=e;return t&&ii(o)?t:i}var tr=class extends Yr{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.errorMessages=null}},Pc=class extends ot{constructor(){super()}},Gm={tag:"span",cls:"ag-overlay-loading-center"},zm={tag:"span",cls:"ag-overlay-no-rows-center"};function pi(e,t,i){let o=null;"smallDown"===e?se(262):"smallLeft"===e?se(263):"smallRight"===e&&se(264);const n=i?.getColDef().icons;if(n&&(o=n[e]),t.gos&&!o){const s=t.gos.get("icons");s&&(o=s[e])}if(o){let s;if("function"==typeof o)s=o();else{if("string"!=typeof o)return void se(38,{iconName:e});s=o}return"string"==typeof s?Jt(s):Fe(s)?s:void se(133,{iconName:e})}{const s=t.registry.getIcon(e);return s||t.validation?.validateIcon(e),xt({tag:"span",cls:`ag-icon ag-icon-${s??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var jm={tag:"div",children:[{tag:"div",ref:"eGhost",cls:"ag-dnd-ghost ag-unselectable",children:[{tag:"span",ref:"eIcon",cls:"ag-dnd-ghost-icon ag-shake-left-to-right"},{tag:"div",ref:"eLabel",cls:"ag-dnd-ghost-label"}]}]},Xm={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},Fc=class{constructor(e,t){this.beans=e,this.floating=t,this.all=new Set,this.visible=new Set,this.order=[],this.queued=new Set}size(){return this.visible.size}add(e){const{all:t,visible:i,order:o}=this;t.has(e)||(t.add(e),i.add(e),o.push(e),this.sort())}delete(e){this.all.delete(e),this.visible.delete(e),this.queued.delete(e.id),gi(this.order,e)}has(e){return this.visible.has(e)}forEach(e){this.order.forEach(e)}getByIndex(e){return this.order[e]}getById(e){for(const t of this.visible)if(t.id==e)return t}clear(){const{all:e,visible:t,order:i,queued:o}=this;e.clear(),o.clear(),t.clear(),i.length=0}sort(){const{sortSvc:e,rowNodeSorter:t,gos:i}=this.beans,o=e?.getSortOptions()??[],n=function Jm(e){const t=e.findIndex(Zm);if(t>-1)return e.splice(t,1)?.[0]}(this.order);if(this.order.sort((r,a)=>(r.pinnedSibling?.rowIndex??0)-(a.pinnedSibling?.rowIndex??0)),this.order=t?.doFullSort(this.order,o)??this.order,!n)return;const s=Hr(i);"bottom"===s||"pinnedBottom"===s?this.order.push(n):this.order.unshift(n)}hide(e){const{all:t,visible:i}=this;t.forEach(o=>e(o)?i.delete(o):i.add(o)),this.order=Array.from(i),this.sort()}queue(e){this.queued.add(e)}unqueue(e){this.queued.delete(e)}forEachQueued(e){this.queued.forEach(e)}};function Dc(e){if(-1===e.level)return!0;const t=e.parent;return!!t?.childrenAfterSort?.some(i=>i==e)&&Dc(t)}function Wa(e,t){const{gos:i,rowModel:o,filterManager:n}=e;return lo(i)?!o.getRowNode(t.id):n?.isAnyFilterPresent()?!Dc(t):!!i.get("pivotMode")&&!t.group}function Zm(e){return!!e.pinnedSibling&&function Qm(e){return!!e.footer&&-1===e.level}(e.pinnedSibling)}var Mc=class extends Y{postConstruct(){const{gos:e,beans:t}=this;this.top=new Fc(t,"top"),this.bottom=new Fc(t,"bottom");const i=n=>Wa(t,n.pinnedSibling),o=()=>{const n=e.get("isRowPinned");n&&e.get("enableRowPinning")&&t.rowModel.forEachNode(s=>this.pinRow(s,n(s)),!0),this.refreshRowPositions(),this.dispatchRowPinnedEvents()};this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this),modelUpdated:({keepRenderedRows:n})=>{this.tryToEmptyQueues(),this.pinGrandTotalRow(),this.forContainers(r=>r.hide(i));const s=this.refreshRowPositions();(!n||s)&&this.dispatchRowPinnedEvents()},columnRowGroupChanged:()=>{this.forContainers(tC),this.refreshRowPositions()},rowNodeDataChanged:({node:n})=>{(e.get("isRowPinnable")?.(n)??1)||this.pinRow(n,null)},firstDataRendered:o}),this.addManagedPropertyListener("pivotMode",()=>{this.forContainers(n=>n.hide(i)),this.dispatchRowPinnedEvents()}),this.addManagedPropertyListener("grandTotalRow",({currentValue:n})=>{this._grandTotalPinned="pinnedBottom"===n?"bottom":"pinnedTop"===n?"top":null}),this.addManagedPropertyListener("isRowPinned",o)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){this.forContainers(t=>{const i=[];t.forEach(o=>i.push(o)),i.forEach(o=>this.pinRow(o,null)),t.clear()}),e&&this.dispatchRowPinnedEvents()}pinRow(e,t,i){if(e.footer&&e.level>-1)return;if(e.footer&&-1===e.level)return this._grandTotalPinned=t,void function oC({gos:e,rowModel:t}){ut(e)&&t.refreshModel({step:"map"})}(this.beans);const o=e.rowPinned??e.pinnedSibling?.rowPinned;if(null!=o&&null!=t&&t!=o){const a=e.rowPinned?e.pinnedSibling:e;return this.pinRow(e.rowPinned?e:e.pinnedSibling,null,i),void this.pinRow(a,t,i)}const s=i&&function iC(e,t,i){const{rowSpanSvc:o}=e,n=(i&&o?.isCellSpanning(i,t))??!1;if(i&&n)return o?.getCellSpan(i,t)?.spannedNodes}(this.beans,e,i);if(s)s.forEach(r=>this.pinRow(r,t));else if(null==t){const r=e.rowPinned?e:e.pinnedSibling,a=this.findPinnedRowNode(r);if(!a)return;a.delete(r);const l=r.pinnedSibling;Ua(r),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(l)}else{const r=_c(this.beans,e,t),a=this.getContainer(t);a.add(r),Wa(this.beans,e)&&a.hide(l=>Wa(this.beans,l.pinnedSibling)),this.refreshRowPositions(t),this.dispatchRowPinnedEvents(e)}}isManual(){return!0}isEmpty(e){return 0===this.getContainer(e).size()}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){let e=!1,t=0;const i=o=>{if(o.rowHeightEstimated){const n=xi(this.beans,o);o.setRowTop(t),o.setRowHeight(n.height),t+=n.height,e=!0}};return this.bottom.forEach(i),t=0,this.top.forEach(i),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}getPinnedTopTotalHeight(){return kc(this.top)}getPinnedBottomTotalHeight(){return kc(this.bottom)}getPinnedTopRowCount(){return this.top.size()}getPinnedBottomRowCount(){return this.bottom.size()}getPinnedTopRow(e){return this.top.getByIndex(e)}getPinnedBottomRow(e){return this.bottom.getByIndex(e)}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){this.getContainer(e).forEach(t)}getPinnedState(){const e=t=>{const i=[];return this.forEachPinnedRow(t,o=>i.push(o.pinnedSibling.id)),i};return{top:e("top"),bottom:e("bottom")}}setPinnedState(e){this.forContainers((t,i)=>{for(const o of e[i]){const n=this.beans.rowModel.getRowNode(o);n?this.pinRow(n,i):t.queue(o)}})}getGrandTotalPinned(){return this._grandTotalPinned}setGrandTotalPinned(e){this._grandTotalPinned=e}tryToEmptyQueues(){this.forContainers((e,t)=>{const i=new Set;e.forEachQueued(o=>{const n=this.beans.rowModel.getRowNode(o);n&&i.add(n)});for(const o of i)e.unqueue(o.id),this.pinRow(o,t)})}pinGrandTotalRow(){const{gos:e,beans:t,_grandTotalPinned:i}=this,o=t.rowModel;if(!ut(e))return;const n=o.rootNode?.sibling;if(!n)return;const s=n.pinnedSibling,r=s&&this.findPinnedRowNode(s);if(i){if(r&&r.floating!==i&&(r.delete(s),Ua(s)),!r||r.floating!==i){const a=_c(t,n,i);this.getContainer(i).add(a)}}else{if(!r)return;r.delete(s),Ua(s)}}onGridStylesChanges(e){e.rowHeightChanged&&this.forContainers(t=>t.forEach(i=>i.setRowHeight(i.rowHeight,!0)))}getContainer(e){return"top"===e?this.top:this.bottom}findPinnedRowNode(e){return this.top.has(e)?this.top:this.bottom.has(e)?this.bottom:void 0}refreshRowPositions(e){const t=o=>function eC(e,t){let i=0,o=!1;return t.forEach((n,s)=>{if(o||(o=n.rowTop!==i),n.setRowTop(i),n.rowHeightEstimated||null==n.rowHeight){const r=xi(e,n).height;o||(o=n.rowHeight!==r),n.setRowHeight(r)}n.setRowIndex(s),i+=n.rowHeight}),o}(this.beans,o);if(e)return t(this.getContainer(e));let i=!1;return this.forContainers(o=>{const n=t(o);i||(i=n)}),i}forContainers(e){e(this.top,"top"),e(this.bottom,"bottom")}dispatchRowPinnedEvents(e){this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),e?.dispatchRowEvent("rowPinned")}};function _c(e,t,i){if(t.pinnedSibling)return t.pinnedSibling;const o=((e,t)=>{const i=new mo(t);for(const o of Object.keys(e))vf.has(o)||(i[o]=e[o]);return i.oldRowTop=null,i})(t,e);return o.setRowTop(null),o.setRowIndex(null),o.rowPinned=i,o.id=`${"top"===i?"t-":"b-"}${i}-${t.id}`,o.pinnedSibling=t,t.pinnedSibling=o,o}function Ua(e){if(!e.pinnedSibling)return;e.rowPinned=null,e.setRowTop(null),e.setRowIndex(null);const t=e.pinnedSibling;e.pinnedSibling=void 0,t&&(t.pinnedSibling=void 0,t.rowPinned=null)}function tC(e){const t=new Set;e.forEach(i=>{i.group&&t.add(i)}),t.forEach(i=>e.delete(i))}function kc(e){const t=e.size();if(0===t)return 0;const i=e.getByIndex(t-1);return void 0===i?0:i.rowTop+i.rowHeight}var Tc=class extends Y{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:{},order:[]},this.pinnedBottomRows={cache:{},order:[]}}postConstruct(){const e=this.gos;this.setPinnedRowData(e.get("pinnedTopRowData"),"top"),this.setPinnedRowData(e.get("pinnedBottomRowData"),"bottom"),this.addManagedPropertyListener("pinnedTopRowData",t=>this.setPinnedRowData(t.currentValue,"top")),this.addManagedPropertyListener("pinnedBottomRowData",t=>this.setPinnedRowData(t.currentValue,"bottom")),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanges.bind(this)})}reset(){}isEmpty(e){return 0===this.getCache(e).order.length}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}onGridStylesChanges(e){if(e.rowHeightChanged){const t=i=>{i.setRowHeight(i.rowHeight,!0)};Xn(this.pinnedBottomRows,t),Xn(this.pinnedTopRows,t)}}ensureRowHeightsValid(){let e=!1,t=0;const i=o=>{if(o.rowHeightEstimated){const n=xi(this.beans,o);o.setRowTop(t),o.setRowHeight(n.height),t+=n.height,e=!0}};return Xn(this.pinnedBottomRows,i),t=0,Xn(this.pinnedTopRows,i),this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),e}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const i=this.getCache(t);if(void 0===e)return i.order.length=0,void(i.cache={});const o=ko(this.gos),n="top"===t?"t-":"b-",s=new Set(i.order),r=[],a=new Set;let l=0,d=-1;for(const c of e){const u=o?.({data:c,level:0,rowPinned:t})??n+this.nextId++;if(a.has(u)){se(96,{id:u,data:c});continue}d++,a.add(u),r.push(u);const g=qn(i,u);if(void 0!==g)g.data!==c&&g.updateData(c),l+=this.setRowTopAndRowIndex(g,l,d),s.delete(u);else{const m=new mo(this.beans);m.id=u,m.data=c,m.rowPinned=t,l+=this.setRowTopAndRowIndex(m,l,d),i.cache[u]=m,i.order.push(u)}}for(const c of s)qn(i,c)?.clearRowTopAndRowIndex(),delete i.cache[c];i.order=r}setRowTopAndRowIndex(e,t,i){return e.setRowTop(t),e.setRowHeight(xi(this.beans,e).height),e.setRowIndex(i),e.rowHeight}getPinnedTopTotalHeight(){return Ac(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return Ac(this.pinnedBottomRows)}getPinnedTopRowCount(){return ja(this.pinnedTopRows)}getPinnedBottomRowCount(){return ja(this.pinnedBottomRows)}getPinnedTopRow(e){return $a(this.pinnedTopRows,e)}getPinnedBottomRow(e){return $a(this.pinnedBottomRows,e)}getPinnedRowById(e,t){return qn(this.getCache(t),e)}forEachPinnedRow(e,t){return Xn(this.getCache(e),t)}getCache(e){return"top"===e?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getGrandTotalPinned(){}setGrandTotalPinned(){}};function Ac(e){const t=ja(e);if(0===t)return 0;const i=$a(e,t-1);return void 0===i?0:i.rowTop+i.rowHeight}function qn(e,t){return e.cache[t]}function $a(e,t){return qn(e,e.order[t])}function Xn(e,t){e.order.forEach((i,o)=>{const n=qn(e,i);n&&t(n,o)})}function ja(e){return e.order.length}function Yn(e){return!(!e.rowPinned||!e.pinnedSibling)}function fi(e,t,i,o){const n="top"===t;if(!i)return fi(e,t,n?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),o);if(!o){const l=n?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return fi(e,t,i,n?e.getPinnedTopRow(l-1):e.getPinnedBottomRow(l-1))}let s=!1,r=!1;const a=[];return e.forEachPinnedRow(t,l=>l!==i||s?s&&l===o?(r=!0,void a.push(l)):void(s&&!r&&a.push(l)):(s=!0,void a.push(l))),a}var rC={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},aC=class extends ot{constructor(){super(rC,[ua]),this.eCheckbox=fe}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:i}=this,o=t.isSelected(),n=Hi(e,o),[s,r]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(s,r);i.setValue(o,!0),i.setInputAriaLabel(`${a} (${n})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:Vo,click:o=>{Vo(o),this.beans.selectionSvc?.handleSelectionEvent(o,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:o,previousValue:n})=>{("object"==typeof o?y(o):void 0)!==("object"==typeof n?y(n):void 0)&&this.onSelectableChanged()}),Wr(this.gos)||"function"==typeof this.getIsVisible()){const o=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:o}),this.addManagedListeners(this.rowNode,{dataChanged:o,cellChanged:o}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:i,gos:o}=this,n=t.selectable,s=this.getIsVisible();let r;if("function"==typeof s){const u=i?.callbackParams;if(e){const g=e.createColumnFunctionCallbackParams(t);r=s({...u,...g})}else r=s({...u,node:t,data:t.data})}else r=s??!1;const a=n&&!r||!n&&r,l=n||r,d=o.get("rowSelection"),c=d&&"string"!=typeof d?!y(d):!!e?.getColDef().showDisabledCheckboxes;this.setVisible(l&&(!a||c)),this.setDisplayed(l&&(!a||c)),l&&this.eCheckbox.setDisabled(a),i?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&"string"!=typeof t?f(t):this.column?.getColDef()?.checkboxSelection}},lC=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(0===this.cachedRange.length){const e=this.getRoot(),t=this.getEnd();if(null==e||null==t)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return null!==this.rootId&&this.getRange().some(t=>t.id===e.id)}getRoot(e){return this.rootId?this.getRowNode(this.rootId):e?(this.setRoot(e),e):void 0}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:i,pinnedRowModel:o}=this;return t??(t=i.getRowNode(e)),o?.isManual()&&(t??(t=o.getPinnedRowById(e,"top")),t??(t=o.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(0===t.length)return{keep:[],discard:[]};const i=t[0].id===this.rootId,o=t.findIndex(n=>n.id===e.id);if(o>-1){const n=t.slice(0,o),s=t.slice(o+1);return this.setEndRange(e),i?{keep:n,discard:s}:{keep:s,discard:n}}return{keep:t,discard:[]}}extend(e,t=!1){const i=this.getRoot();if(null==i){const n=this.getRange().slice();return t&&e.depthFirstSearch(s=>!s.group&&n.push(s)),n.push(e),this.setRoot(e),{keep:n,discard:[]}}const o=this.getNodesInRange(i,e);if(!o)return this.setRoot(e),{keep:[e],discard:[]};if(o.find(n=>n.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const n=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:n}}}getNodesInRange(e,t){const{pinnedRowModel:i,rowModel:o}=this;if(!i?.isManual())return o.getNodesInRangeForSelection(e,t);if("top"===e.rowPinned&&!t.rowPinned)return fi(i,"top",e,void 0).concat(o.getNodesInRangeForSelection(o.getRow(0),t)??[]);if("bottom"===e.rowPinned&&!t.rowPinned){const n=fi(i,"bottom",void 0,e),s=o.getRowCount(),r=o.getRow(s-1);return(o.getNodesInRangeForSelection(t,r)??[]).concat(n)}if(!e.rowPinned&&!t.rowPinned)return o.getNodesInRangeForSelection(e,t);if("top"===e.rowPinned&&"top"===t.rowPinned)return fi(i,"top",e,t);if("bottom"===e.rowPinned&&"top"===t.rowPinned){const n=fi(i,"top",t,void 0),s=fi(i,"bottom",void 0,e),r=o.getRow(0),a=o.getRow(o.getRowCount()-1);return n.concat(o.getNodesInRangeForSelection(r,a)??[]).concat(s)}if(!e.rowPinned&&"top"===t.rowPinned)return fi(i,"top",t,void 0).concat(o.getNodesInRangeForSelection(o.getRow(0),e)??[]);if("top"===e.rowPinned&&"bottom"===t.rowPinned){const n=fi(i,"top",e,void 0),s=fi(i,"bottom",void 0,t),r=o.getRow(0),a=o.getRow(o.getRowCount()-1);return n.concat(o.getNodesInRangeForSelection(r,a)??[]).concat(s)}if("bottom"===e.rowPinned&&"bottom"===t.rowPinned)return fi(i,"bottom",e,t);if(!e.rowPinned&&"bottom"===t.rowPinned){const n=fi(i,"bottom",void 0,t),s=o.getRow(o.getRowCount());return(o.getNodesInRangeForSelection(e,s)??[]).concat(n)}return null}},dC=class extends Y{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(le(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new Vs);this.cbSelectAll=t,t.addCss("ag-header-select-all"),ne(t.getGui(),"presentation"),this.showOrHideSelectAll();const i=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:i,paginationChanged:i,modelUpdated:i}),this.addManagedPropertyListener("rowSelection",({currentValue:o,previousValue:n})=>{const s=r=>"string"!=typeof r&&r&&"singleRow"!==r.mode?r.selectAll:void 0;s(o)!==s(n)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll("uiColumnMoved"===e.source)}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,i=this.cbSelectAll,o=t.getSelectAllState(e);i.setValue(o);const n=t.hasNodesToSelect(e);i.setDisabled(!n),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:i,cbSelectAll:o,cbSelectAllVisible:n}=this,r=Hi(t,o.getValue()),a=t("ariaRowSelectAll","Press Space to toggle all rows selection");i.setAriaDescriptionProperty("selectAll",n?`${a} (${r})`:null),o.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||i.announceAriaDescription()}checkSelectionType(e){return!!Bn(this.gos)||(se(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:i}=this.beans;return!(!ut(t)&&!lo(t)&&(se(129,{feature:e,rowModel:i.getType()}),1))}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let i="uiSelectAll";"currentPage"===t?i="uiSelectAllCurrentPage":"filtered"===t&&(i="uiSelectAllFiltered");const o={source:i,selectAll:t},n=this.beans.selectionSvc;e?n.selectAllRowNodes(o):n.deselectAllRowNodes(o)}isCheckboxSelection(){const{column:e,gos:t,beans:i}=this,s="object"==typeof t.get("rowSelection")?"headerCheckbox":"headerCheckboxSelection";return Ic(i,e)&&this.checkRightRowModelType(s)&&this.checkSelectionType(s)}getSelectAllMode(){const e=ql(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:i}=this.column.getColDef();return t?"currentPage":i?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function Ic({gos:e,selectionColSvc:t},i){const o=e.get("rowSelection"),n=i.getColDef(),{headerCheckboxSelection:s}=n;let r=!1;if("object"==typeof o){const l=qi(i),d=Kr(i);("autoGroupColumn"===h(o)&&d||l&&t?.isSelectionColumnEnabled())&&(r=C(o))}else r="function"==typeof s?s(Ie(e,{column:i,colDef:n})):!!s;return r}var ir,cC=class extends Y{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new lC(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const i=Wr(e);i!==this.isRowSelectable&&(this.isRowSelectable=i,this.updateSelectable())}),this.isRowSelectable=Wr(e),this.addManagedEventListeners({cellValueChanged:i=>this.updateRowSelectable(i.node),rowNodeDataChanged:i=>this.updateRowSelectable(i.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new aC}createSelectAllFeature(e){if(Ic(this.beans,e))return new dC(e)}isMultiSelect(){return Bn(this.gos)}onRowCtrlSelected(e,t,i){const o=!!e.rowNode.isSelected();e.forEachGui(i,n=>{n.rowComp.toggleCss("ag-row-selected",o);const s=n.element;Ro(s,o),s.contains(le(this.beans))&&t(n)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected(),i=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||i)return;const n=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(n,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!Yn(e)||!Ui(this.gos)}updateRowSelectable(e,t){const i=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,i,t),i}setRowSelectable(e,t,i){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),i)return;if(Vn(this.gos)){const n=this.calculateSelectedFromChildren(e);return void this.setNodesSelected({nodes:[e],newValue:n??!1,source:"selectableChanged"})}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,i=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let o=0;o<e.childrenAfterGroup.length;o++){const n=e.childrenAfterGroup[o];let s=n.isSelected();if(!n.selectable){const r=this.calculateSelectedFromChildren(n);if(null===r)continue;s=r}switch(s){case!0:t=!0;break;case!1:i=!0;break;default:return}}return t&&i?void 0:!!t||!i&&(e.selectable?e.__selected:null)}selectRowNode(e,t,i,o="api"){if(!e.selectable&&t||e.__selected===t)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const r=e.sibling;r&&r.footer&&r.__localEventService&&r.dispatchRowEvent("rowSelected");const a=e.pinnedSibling;return a?.rowPinned&&a.__localEventService&&a.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...Cf(e,this.gos,"rowSelected"),event:i||null,source:o}),!0}isCellCheckboxSelection(e,t){const i=this.gos.get("rowSelection");if(i&&"string"!=typeof i){const o=qi(e)&&f(i);return e.isColumnFunc(t,o)}return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,i,o){const{gos:n,selectionCtx:s}=this,r=e.isSelected(),a=Vn(n),l=function Bh(e){const t=Zo(e);return!0===t||"enableSelection"===t}(n),d=function Vh(e){const t=Zo(e);return!0===t||"enableDeselection"===t}(n),c=this.isMultiSelect(),u="rowClicked"===o;if(u&&!l&&!d)return null;if(t&&i&&c){const g=s.getRoot();if(g){if(g.isSelected()){const m=s.isInRange(e)?s.truncate(e):s.extend(e,a);return{deselect:m.discard,select:m.keep,reset:!1}}return{select:[],deselect:s.extend(e,a).keep,reset:!1}}return null}if(t&&c){const g=s.selectAll?this.beans.rowModel.getRow(0):void 0,m=s.getRoot(g),w=s.isInRange(e)?s.truncate(e):s.extend(e,a);return{select:w.keep,deselect:w.discard,reset:s.selectAll||!(!m||m.isSelected())}}if(i){if(u){const g=!r;return g&&!l||!g&&!d?null:(s.setRoot(e),{node:e,newValue:g,clearSelection:!1})}return s.setRoot(e),{node:e,newValue:!r,clearSelection:!c}}{s.setRoot(e);const g=function Hh(e){const t=e.get("rowSelection");return"string"==typeof t?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}(n),w=u&&(!g||!l);if("filteredDescendants"===Ms(n)&&void 0===r&&ut(n))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!c||w};if(u){const b=r?!g:l;return b===r&&!w||b&&!l||!b&&!d?null:{node:e,newValue:b,clearSelection:!c||w,keepDescendants:e.group&&a}}return{node:e,newValue:!r,clearSelection:!c||w}}}},uC=class extends Y{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:t,eTopGuard:i,eBottomGuard:o,focusTrapActive:n,forceFocusOutWhenTabGuardsAreEmpty:s,isFocusableContainer:r,focusInnerElement:a,onFocusIn:l,onFocusOut:d,shouldStopEventPropagation:c,onTabKeyDown:u,handleKeyDown:g,isEmpty:m,eFocusableElement:w}=e;this.comp=t,this.eTopGuard=i,this.eBottomGuard=o,this.providedFocusInnerElement=a,this.eFocusableElement=w,this.focusTrapActive=!!n,this.forceFocusOutWhenTabGuardsAreEmpty=!!s,this.isFocusableContainer=!!r,this.providedFocusIn=l,this.providedFocusOut=d,this.providedShouldStopEventPropagation=c,this.providedOnTabKeyDown=u,this.providedHandleKeyDown=g,this.providedIsEmpty=m}postConstruct(){this.createManagedBean(new ln(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards();for(const e of[this.eTopGuard,this.eBottomGuard])this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)})}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus)return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);if(this.skipTabGuardFocus)return void(this.skipTabGuardFocus=!1);if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():0===tn(this.eFocusableElement,".ag-tab-guard").length))return void this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}findNextElementOutsideAndFocus(e){const i=tn(we(this.beans).body,null,!0),o=i.indexOf(e?this.eTopGuard:this.eBottomGuard);if(-1===o)return;let n,s;e?(n=0,s=o):(n=o+1,s=i.length);const r=i.slice(n,s),a=this.gos.get("tabIndex");r.sort((l,d)=>{const c=Number.parseInt(l.getAttribute("tabindex")||"0"),u=Number.parseInt(d.getAttribute("tabindex")||"0");return u===a?1:c===a?-1:0===c?1:0===u?-1:c-u}),r[e?r.length-1:0]?.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown)return void this.providedOnTabKeyDown(e);if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const i=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),i&&(i.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=tn(this.eFocusableElement);return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),!!t.length&&(t[e?t.length-1:0].focus({preventScroll:!0}),!0)}getNextFocusableElement(e){return Io(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},hC=class extends Y{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:i,eFocusableElement:o}=this,n=[t,i],s={setTabIndex:x=>{for(const A of n)null!=x?A.setAttribute("tabindex",x):A.removeAttribute("tabindex")}};this.addTabGuards(t,i);const{focusTrapActive:r=!1,onFocusIn:a,onFocusOut:l,focusInnerElement:d,handleKeyDown:c,onTabKeyDown:u,shouldStopEventPropagation:g,isEmpty:m,forceFocusOutWhenTabGuardsAreEmpty:w,isFocusableContainer:b}=e;this.tabGuardCtrl=this.createManagedBean(new uC({comp:s,focusTrapActive:r,eTopGuard:t,eBottomGuard:i,eFocusableElement:o,onFocusIn:a,onFocusOut:l,focusInnerElement:d,handleKeyDown:c,onTabKeyDown:u,shouldStopEventPropagation:g,isEmpty:m,forceFocusOutWhenTabGuardsAreEmpty:w,isFocusableContainer:b}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=we(this.beans).createElement("div");return t.classList.add("ag-tab-guard","top"===e?"ag-tab-guard-top":"ag-tab-guard-bottom"),ne(t,"presentation"),t}addTabGuards(e,t){const i=this.eFocusableElement;i.insertAdjacentElement("afterbegin",e),i.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];wt(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,i){Fe(t)||(t=t.getGui());const{eBottomGuard:o}=this;o?o.insertAdjacentElement("beforebegin",t):e(t,i)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;Tt(e),Tt(t),super.destroy()}},Oc=class extends ot{initialiseTabGuard(e){this.tabGuardFeature=this.createManagedBean(new hC(this)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},Go=class{constructor(e,t=!1){this.eElement=e,this.preventClick=t,this.startListener=null,this.handlers=[],this.eventSvc=void 0,this.touchStart=null,this.lastTapTime=null,this.longPressTimer=0,this.moved=!1}addEventListener(e,t){let i=this.eventSvc;if(!i){if(null===i)return;this.eventSvc=i=new R;const o=this.onTouchStart.bind(this);this.startListener=o,this.eElement.addEventListener("touchstart",o,{passive:!0})}i.addEventListener(e,t)}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t)}onTouchStart(e){if(this.touchStart||!(e=>{if(ir){if(ir.has(e))return!1}else ir=new WeakSet;return ir.add(e),!0})(e))return;const t=e.touches[0];this.touchStart=t;const i=this.handlers;if(!i.length){const o=this.eElement,n=o.ownerDocument,s=this.onTouchMove.bind(this),r=this.onTouchEnd.bind(this),a=this.onTouchCancel.bind(this),l={passive:!0},d={passive:!1};ze(i,[o,"touchmove",s,l],[n,"touchcancel",a,l],[n,"touchend",r,d],[n,"contextmenu",Le,d])}this.clearLongPress(),this.longPressTimer=window.setTimeout(()=>{this.longPressTimer=0,this.touchStart===t&&!this.moved&&(this.moved=!0,this.eventSvc?.dispatchEvent({type:"longTap",touchStart:t,touchEvent:e}))},550)}onTouchMove(e){const{moved:t,touchStart:i}=this;if(!t&&i){const o=re(i,e.touches);o&&!G(o,i,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;!t||!re(t,e.changedTouches)||(this.moved||(this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t)),this.preventClick&&Le(e),this.cancel())}onTouchCancel(e){const t=this.touchStart;!t||!re(t,e.changedTouches)||(this.lastTapTime=null,this.cancel())}checkDoubleTap(e){let t=Date.now();const i=this.lastTapTime;i&&t-i>500&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),t=null),this.lastTapTime=t}cancel(){this.clearLongPress(),Je(this.handlers),this.touchStart=null}clearLongPress(){window.clearTimeout(this.longPressTimer),this.longPressTimer=0,this.moved=!1}destroy(){const e=this.startListener;e&&(this.startListener=null,this.eElement.removeEventListener("touchstart",e)),this.cancel(),this.eElement=null,this.eventSvc=null}},CC=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.includes("x"),this.scrollVertically=e.scrollAxis.includes("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}get scrolling(){return null!==this.tickingInterval}check(e,t=!1){const i=t||this.shouldSkipVerticalScroll();if(i&&this.shouldSkipHorizontalScroll())return;const o=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=e.clientX<o.left+n,this.tickRight=e.clientX>o.right-n,this.tickUp=e.clientY<o.top+n&&!i,this.tickDown=e.clientY>o.bottom-n&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}},Lc=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${Mr}/${this.frameworkName}-data-grid`,function ys(e){zi=e}(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}};function vC(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var Bc=Object.fromEntries(["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","rowSpanSvc","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"].map((e,t)=>[e,t]));function bC(e,t){return((e.beanName?Bc[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER)-((t.beanName?Bc[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER)}function yC(e,t){return"gridDestroySvc"===e?.beanName?-1:"gridDestroySvc"===t?.beanName?1:0}var SC={tag:"div",cls:"ag-pinned-left-header",role:"rowgroup"},RC={tag:"div",cls:"ag-pinned-right-header",role:"rowgroup"},EC={tag:"div",cls:"ag-header-viewport",role:"rowgroup",attrs:{tabindex:"-1"},children:[{tag:"div",ref:"eCenterContainer",cls:"ag-header-container",role:"presentation"}]},qa=class extends ot{constructor(e){super(),this.eCenterContainer=fe,this.headerRowComps={},this.rowCompsList=[],this.pinned=e}postConstruct(){this.selectAndSetTemplate();const e={setDisplayed:i=>this.setDisplayed(i),setCtrls:i=>this.setCtrls(i),setCenterWidth:i=>this.eCenterContainer.style.width=i,setViewportScrollLeft:i=>this.getGui().scrollLeft=i,setPinnedContainerWidth:i=>{const o=this.getGui();o.style.width=i,o.style.maxWidth=i,o.style.minWidth=i}};this.createManagedBean(new Vm(this.pinned)).setComp(e,this.getGui())}selectAndSetTemplate(){this.setTemplate("left"==this.pinned?SC:"right"==this.pinned?RC:EC),this.eRowContainer=this.eCenterContainer!==fe?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(e){this.destroyBean(e),e.getGui().remove()}setCtrls(e){const t=this.headerRowComps;let i;this.headerRowComps={},this.rowCompsList=[];const o=n=>{const s=n.getGui();s.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(s),i&&li(this.eRowContainer,s,i),i=s};for(const n of e){const s=n.instanceId,r=t[s];delete t[s];const a=r||this.createBean(new Im(n));this.headerRowComps[s]=a,this.rowCompsList.push(a),o(a)}for(const n of Object.values(t))this.destroyRowComp(n)}},xC={tag:"div",cls:"ag-header",role:"presentation"},FC={selector:"AG-HEADER-ROOT",component:class extends ot{constructor(){super(xC)}postConstruct(){const e={toggleCss:(o,n)=>this.toggleCss(o,n),setHeightAndMinHeight:o=>{this.getGui().style.height=o,this.getGui().style.minHeight=o}};this.createManagedBean(new Fm).setComp(e,this.getGui(),this.getFocusableElement());const i=o=>{this.createManagedBean(o),this.appendChild(o)};i(new qa("left")),i(new qa(null)),i(new qa("right"))}}},DC=class extends ot{constructor(e,t,i,o,n){super(),this.cellCtrl=t,this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.gos=e.gos,this.column=t.column,this.rowNode=t.rowNode,this.eRow=o;const s=xt({tag:"div",role:t.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":t.column.colIdSanitised}});let r;this.eCell=s,t.isCellSpanning()?(r=xt({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"}),r.appendChild(s),this.setTemplateFromElement(r)):this.setTemplateFromElement(s),this.cellCssManager=new md(()=>s),this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1),t.setComp({toggleCss:(l,d)=>this.cellCssManager.toggleCss(l,d),setUserStyles:l=>yi(s,l),getFocusableElement:()=>s,setIncludeSelection:l=>this.includeSelection=l,setIncludeRowDrag:l=>this.includeRowDrag=l,setIncludeDndSource:l=>this.includeDndSource=l,setRenderDetails:(l,d,c)=>this.setRenderDetails(l,d,c),setEditDetails:(l,d,c)=>this.setEditDetails(l,d,c),getCellEditor:()=>this.cellEditor||null,getCellRenderer:()=>this.cellRenderer||null,getParentOfValue:()=>this.getParentOfValue(),refreshEditStyles:(l,d)=>this.refreshEditStyles(l,d)},s,r,this.eCellWrapper,i,n,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRenderDetails(e,t,i){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=null==this.firstRender;const n=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!(i||n)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)),this.rowDraggingComp?.refreshVisibility()}setEditDetails(e,t,i){e?this.createCellEditorInstance(e,t,i):this.destroyEditor()}removeControls(){const e=this.beans.context;this.checkboxSelectionComp=e.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=e.destroyBean(this.dndSourceComp),this.rowDraggingComp=e.destroyBean(this.rowDraggingComp)}refreshWrapper(e){const t=this.includeRowDrag||this.includeDndSource||this.includeSelection,i=t||this.forceWrapper,o=i&&null==this.eCellWrapper;o&&(this.eCellWrapper=xt({tag:"div",cls:"ag-cell-wrapper",role:"presentation"}),this.eCell.appendChild(this.eCellWrapper));const n=!i&&null!=this.eCellWrapper;n&&(Tt(this.eCellWrapper),this.eCellWrapper=void 0),this.cellCssManager.toggleCss("ag-cell-value",!i);const s=!e&&i,r=s&&null==this.eCellValue;if(r){const d=this.cellCtrl.getCellValueClass();this.eCellValue=xt({tag:"span",cls:d,role:"presentation"}),this.eCellWrapper.appendChild(this.eCellValue)}const a=!s&&null!=this.eCellValue;a&&(Tt(this.eCellValue),this.eCellValue=void 0);const l=o||n||r||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l}addControls(){const{cellCtrl:e,eCellWrapper:t,eCellValue:i,includeRowDrag:o,includeDndSource:n,includeSelection:s}=this,r=a=>{a&&t.insertBefore(a.getGui(),i)};o&&null==this.rowDraggingComp&&(this.rowDraggingComp=e.createRowDragComp(),r(this.rowDraggingComp)),n&&null==this.dndSourceComp&&(this.dndSourceComp=e.createDndSource(),r(this.dndSourceComp)),s&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=e.createSelectionCheckbox(),r(this.checkboxSelectionComp))}createCellEditorInstance(e,t,i){const o=this.editorVersion,n=e.newAgStackInstance(),{params:s}=e;n.then(a=>this.afterCellEditorCreated(o,a,s,t,i)),K(this.cellEditor)&&s.cellStartedEdit&&this.cellCtrl.focusCell(!0)}insertValueWithoutCellRenderer(e){const t=this.getParentOfValue();wt(t);const i=Z(e);null!=i&&(t.textContent=i)}destroyRenderer(){const{context:e}=this.beans;this.cellRenderer=e.destroyBean(this.cellRenderer),Tt(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++}destroyEditor(){const{context:e}=this.beans;(this.cellEditorPopupWrapper?.getGui().contains(le(this.beans))||this.cellCtrl.hasBrowserFocus())&&this.eCell.focus({preventScroll:!0}),this.hideEditorPopup?.(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Tt(this.cellEditorGui),this.cellCtrl.disableEditorTooltipFeature(),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(null==this.cellRenderer?.refresh||this.cellRendererClass!==e.componentClass)return!1;const t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t}createCellRendererInstance(e){const t=this.rendererVersion,i=s=>r=>{if(this.rendererVersion!==t||!this.isAlive())return;const l=s.newAgStackInstance(),d=this.afterCellRendererCreated.bind(this,t,s.componentClass);l?.then(d)},{animationFrameSvc:o}=this.beans;let n;if(n=o?.active&&this.firstRender?(s,r=!1)=>{o.createTask(i(s),this.rowNode.rowIndex,"p2",s.componentFromFramework,r)}:s=>i(s)(),e.params?.deferRender&&!this.cellCtrl.rowNode.group){const{loadingComp:s,onReady:r}=this.cellCtrl.getDeferLoadingCellRenderer();s&&(n(s),r.then(()=>n(e,!0)))}else n(e)}afterCellRendererCreated(e,t,i){if(!this.isAlive()||e!==this.rendererVersion)return void this.beans.context.destroyBean(i);this.cellRenderer=i,this.cellRendererClass=t;const n=i.getGui();if(this.cellRendererGui=n,null!=n){const s=this.getParentOfValue();wt(s),s.appendChild(n)}}afterCellEditorCreated(e,t,i,o,n){const s=e!==this.editorVersion,{context:r}=this.beans;if(s)return void r.destroyBean(t);if(t.isCancelBeforeStart?.())return r.destroyBean(t),void this.cellCtrl.stopEditing(!0);if(!t.getGui)return se(97,{colId:this.column.getId()}),void r.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();const l=o||t.isPopup?.();l?this.addPopupCellEditor(i,n):this.addInCellEditor(),this.refreshEditStyles(!0,l),t.afterGuiAttached?.(),this.cellCtrl.enableEditorTooltipFeature(t),this.cellCtrl.cellEditorAttached()}refreshEditStyles(e,t){const{cellCssManager:i}=this;i.toggleCss("ag-cell-inline-editing",e&&!t),i.toggleCss("ag-cell-popup-editing",e&&!!t),i.toggleCss("ag-cell-not-inline-editing",!e||!!t)}addInCellEditor(){const{eCell:e}=this;e.contains(le(this.beans))&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),wt(this.getParentOfValue()),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(e,t){const{gos:i,context:o,popupSvc:n,editSvc:s}=this.beans;"fullRow"===i.get("editType")&&se(98);const r=this.cellEditorPopupWrapper=o.createBean(s.createPopupEditorWrapper(e)),{cellEditor:a,cellEditorGui:l,eCell:d,rowNode:c,column:u,cellCtrl:g}=this,m=r.getGui();l&&m.appendChild(l);const w=i.get("stopEditingWhenCellsLoseFocus"),b=t??a.getPopupPosition?.()??"over",x=i.get("enableRtl"),O=n.positionPopupByComponent.bind(n,{ePopup:m,column:u,rowNode:c,type:"popupCellEditor",eventSource:d,position:b,alignSide:x?"right":"left",keepWithinBounds:!0}),V=n.addPopup({modal:w,eChild:m,closeOnEsc:!0,closedCallback:()=>{g.onPopupEditorClosed()},anchorToElement:d,positionCallback:O,ariaOwns:d});V&&(this.hideEditorPopup=V.hideFunc)}detach(){this.getGui().remove()}destroy(){this.destroyRenderer(),this.destroyEditor(),this.removeControls(),super.destroy()}},MC=class extends ot{constructor(e,t,i){super(),this.cellComps=new Map,this.beans=t,this.rowCtrl=e;const o=xt({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});this.setInitialStyle(o,i),this.setTemplateFromElement(o);const n=o.style;this.domOrder=this.rowCtrl.getDomOrder(),e.setComp({setDomOrder:r=>this.domOrder=r,setCellCtrls:r=>this.setCellCtrls(r),showFullWidth:r=>this.showFullWidth(r),getFullWidthCellRenderer:()=>this.fullWidthCellRenderer,getFullWidthCellRendererParams:()=>this.fullWidthCellRendererParams,toggleCss:(r,a)=>this.toggleCss(r,a),setUserStyles:r=>yi(o,r),setTop:r=>n.top=r,setTransform:r=>n.transform=r,setRowIndex:r=>o.setAttribute("row-index",r),setRowId:r=>o.setAttribute("row-id",r),setRowBusinessKey:r=>o.setAttribute("row-business-key",r),refreshFullWidth:r=>{const a=r();return this.fullWidthCellRendererParams=a,this.fullWidthCellRenderer?.refresh?.(a)??!1}},this.getGui(),i,void 0),this.addDestroyFunc(()=>{e.unsetComp(i)})}setInitialStyle(e,t){const i=this.rowCtrl.getInitialTransform(t);if(i)e.style.setProperty("transform",i);else{const o=this.rowCtrl.getInitialRowTop(t);o&&e.style.setProperty("top",o)}}showFullWidth(e){e.newAgStackInstance().then(o=>{if(this.isAlive()){const n=o.getGui();this.getGui().appendChild(n),this.rowCtrl.setupDetailRowAutoHeight(n),this.setFullWidthRowComp(o,e.params)}else this.beans.context.destroyBean(o)})}setCellCtrls(e){const t=new Map(this.cellComps);for(const i of e){const o=i.instanceId;this.cellComps.has(o)?t.delete(o):this.newCellComp(i)}this.destroyCells(t),this.ensureDomOrder(e)}ensureDomOrder(e){if(!this.domOrder)return;const t=[];for(const i of e){const o=this.cellComps.get(i.instanceId);o&&t.push(o.getGui())}di(this.getGui(),t)}newCellComp(e){const t=this.beans.editSvc?.isEditing(e,{withOpenEditor:!0})??!1,i=new DC(this.beans,e,this.rowCtrl.printLayout,this.getGui(),t);this.cellComps.set(e.instanceId,i),this.getGui().appendChild(i.getGui())}destroy(){super.destroy(),this.destroyCells(this.cellComps)}setFullWidthRowComp(e,t){this.fullWidthCellRenderer=e,this.fullWidthCellRendererParams=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer),this.fullWidthCellRendererParams=void 0})}destroyCells(e){for(const t of e.values()){if(!t)return;const i=t.cellCtrl.instanceId;if(this.cellComps.get(i)!==t)return;t.detach(),t.destroy(),this.cellComps.delete(i)}}},TC={selector:"AG-ROW-CONTAINER",component:class extends ot{constructor(e){super(),this.eViewport=fe,this.eContainer=fe,this.eSpannedContainer=fe,this.rowCompsNoSpan={},this.rowCompsWithSpan={},this.name=e?.name,this.options=jn(this.name)}postConstruct(){this.setTemplate(function _C(e,t,i){const o=!!i.gos.get("enableCellSpan")&&!!t.getSpannedRowCtrls,n={tag:"div",ref:"eContainer",cls:Js(e),role:"rowgroup"};if("center"===t.type||o){const s={tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${Qf(e)}`,role:"presentation"};return n.role="presentation",{tag:"div",ref:"eViewport",cls:`ag-viewport ${uc(e)}`,role:"rowgroup",children:[n,o?s:null]}}return n}(this.name,this.options,this.beans));const e={setHorizontalScroll:i=>this.eViewport.scrollLeft=i,setViewportHeight:i=>this.eViewport.style.height=i,setRowCtrls:({rowCtrls:i})=>this.setRowCtrls(i),setSpannedRowCtrls:i=>this.setRowCtrls(i,!0),setDomOrder:i=>{this.domOrder=i},setContainerWidth:i=>{this.eContainer.style.width=i,this.eSpannedContainer&&(this.eSpannedContainer.style.width=i)},setOffsetTop:i=>{const o=`translateY(${i})`;this.eContainer.style.transform=o,this.eSpannedContainer&&(this.eSpannedContainer.style.transform=o)}};this.createManagedBean(new am(this.name)).setComp(e,this.eContainer,this.eSpannedContainer,this.eViewport)}destroy(){this.setRowCtrls([]),this.setRowCtrls([],!0),super.destroy(),this.lastPlacedElement=null}setRowCtrls(e,t){const{beans:i,options:o}=this,n=t?this.eSpannedContainer:this.eContainer,s=t?{...this.rowCompsWithSpan}:{...this.rowCompsNoSpan},r={};t?this.rowCompsWithSpan=r:this.rowCompsNoSpan=r,this.lastPlacedElement=null;const a=[];for(const l of e){const d=l.instanceId,c=s[d];let u;if(c)u=c,delete s[d];else{if(!l.rowNode.displayed)continue;u=new MC(l,i,o.type)}r[d]=u,a.push([u,!c])}this.removeOldRows(Object.values(s)),this.addRowNodes(a,n)}addRowNodes(e,t){const{domOrder:i}=this;for(const[o,n]of e){const s=o.getGui();i?this.ensureDomOrder(s,t):n&&t.appendChild(s)}}removeOldRows(e){for(const t of e)t.getGui().remove(),t.destroy()}ensureDomOrder(e,t){li(t,e,this.lastPlacedElement),this.lastPlacedElement=e}}};function Qn(e,t){return t.map(i=>{const o=`e${i[0].toUpperCase()+i.substring(1)}RowContainer`;return e[o]={name:i},{tag:"ag-row-container",ref:o,attrs:{name:i}}})}var OC={selector:"AG-GRID-BODY",component:class extends ot{constructor(){super(...arguments),this.eGridRoot=fe,this.eBodyViewport=fe,this.eStickyTop=fe,this.eStickyBottom=fe,this.eTop=fe,this.eBottom=fe,this.eBody=fe}postConstruct(){const{overlays:e,rangeSvc:t}=this.beans,i=e?.getOverlayWrapperSelector(),{paramsMap:o,elementParams:n}=function AC(e){const t={};return{paramsMap:t,elementParams:{tag:"div",ref:"eGridRoot",cls:"ag-root ag-unselectable",children:[{tag:"ag-header-root"},{tag:"div",ref:"eTop",cls:"ag-floating-top",role:"presentation",children:Qn(t,["topLeft","topCenter","topRight","topFullWidth"])},{tag:"div",ref:"eBody",cls:"ag-body",role:"presentation",children:[{tag:"div",ref:"eBodyViewport",cls:"ag-body-viewport",role:"presentation",children:Qn(t,["left","center","right","fullWidth"])},{tag:"ag-fake-vertical-scroll"}]},{tag:"div",ref:"eStickyTop",cls:"ag-sticky-top",role:"presentation",children:Qn(t,["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])},{tag:"div",ref:"eStickyBottom",cls:"ag-sticky-bottom",role:"presentation",children:Qn(t,["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])},{tag:"div",ref:"eBottom",cls:"ag-floating-bottom",role:"presentation",children:Qn(t,["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])},{tag:"ag-fake-horizontal-scroll"},e?{tag:"ag-overlay-wrapper"}:null]}}}(!!i);this.setTemplate(n,[...i?[i]:[],pm,Cm,FC,TC],o);const s=(a,l)=>{const d=`${a}px`;l.style.minHeight=d,l.style.height=d},r={setRowAnimationCssOnBodyViewport:(a,l)=>this.setRowAnimationCssOnBodyViewport(a,l),setColumnCount:a=>function st(e,t){j(e,"colcount",t)}(this.getGui(),a),setRowCount:a=>function Q(e,t){j(e,"rowcount",t)}(this.getGui(),a),setTopHeight:a=>s(a,this.eTop),setBottomHeight:a=>s(a,this.eBottom),setTopInvisible:a=>this.eTop.classList.toggle("ag-invisible",a),setBottomInvisible:a=>this.eBottom.classList.toggle("ag-invisible",a),setStickyTopHeight:a=>this.eStickyTop.style.height=a,setStickyTopTop:a=>this.eStickyTop.style.top=a,setStickyTopWidth:a=>this.eStickyTop.style.width=a,setStickyBottomHeight:a=>{this.eStickyBottom.style.height=a,this.eStickyBottom.classList.toggle("ag-invisible","0px"===a)},setStickyBottomBottom:a=>this.eStickyBottom.style.bottom=a,setStickyBottomWidth:a=>this.eStickyBottom.style.width=a,setColumnMovingCss:(a,l)=>this.toggleCss(a,l),updateLayoutClasses:(a,l)=>{const d=[this.eBodyViewport.classList,this.eBody.classList];for(const c of d)c.toggle(Fi.AUTO_HEIGHT,l.autoHeight),c.toggle(Fi.NORMAL,l.normal),c.toggle(Fi.PRINT,l.print);this.toggleCss(Fi.AUTO_HEIGHT,l.autoHeight),this.toggleCss(Fi.NORMAL,l.normal),this.toggleCss(Fi.PRINT,l.print)},setAlwaysVerticalScrollClass:(a,l)=>this.eBodyViewport.classList.toggle(pc,l),registerBodyViewportResizeListener:a=>{const l=ae(this.beans,this.eBodyViewport,a);this.addDestroyFunc(()=>l())},setPinnedTopBottomOverflowY:a=>this.eTop.style.overflowY=this.eBottom.style.overflowY=a,setCellSelectableCss:(a,l)=>{for(const d of[this.eTop,this.eBodyViewport,this.eBottom])d.classList.toggle(a,l)},setBodyViewportWidth:a=>this.eBodyViewport.style.width=a,setGridRootRole:a=>ne(this.eGridRoot,a)};this.ctrl=this.createManagedBean(new cm),this.ctrl.setComp(r,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(t&&kt(this.gos)||Bn(this.gos))&&function X(e,t){j(e,"multiselectable",t)}(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(e,t){const i=this.eBodyViewport.classList;i.toggle("ag-row-animation",t),i.toggle("ag-row-no-animation",!t)}}},LC=class extends Y{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,i){this.view=e,this.eGridHostDiv=t,this.eGui=i,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:o,ctrlsSvc:n}=this.beans;o?.registerGridDropTarget(()=>this.eGui,this),this.createManagedBean(new Da(this.view)),this.view.setRtlClass(this.gos.get("enableRtl")?"ag-rtl":"ag-ltr");const s=ae(this.beans,this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>s()),n.register("gridCtrl",this)}isDetailGrid(){return Md(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:e.registry?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:e.registry?.getSelector("AG-STATUS-BAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e){const{view:t}=this;t.setCursor(!1===e?null:1===e?"ew-resize":"ns-resize")}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:i,nextIndex:o}=this.getNextFocusableIndex(t,e);if(o<0||o>=t.length)return!1;if(0===o){if(i>0){const{visibleCols:n,focusSvc:s}=this.beans,a=rt(n.allCols);if(s.focusGridView({column:a,backwards:!0}))return!0}return!1}return this.focusContainer(t[o],e)}focusInnerElement(e){if(this.gos.getCallback("focusGridInnerElement")?.({fromBottom:!!e}))return!0;const i=this.getFocusableContainers(),{focusSvc:o,visibleCols:n}=this.beans,s=n.allCols;if(e){if(i.length>1)return this.focusContainer(rt(i),e);const r=rt(s);if(o.focusGridView({column:r,backwards:e}))return!0}if(0===this.gos.get("headerHeight")||Ho(this.beans)){if(o.focusGridView({column:s[0],backwards:e}))return!0;for(let r=1;r<i.length;r++)if(Ao(i[r].getGui(),e))return!0;return!1}return o.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{nextIndex:i,indexWithFocus:o}=this.getNextFocusableIndex(t,e);if(-1===o||i<0||i>=t.length)return;const n=t[i];n.setAllowFocus?.(!0),setTimeout(()=>{n.setAllowFocus?.(!1)})}isFocusable(){const e=this.beans;return!er(e)||!Ho(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const i=le(this.beans),o=e.findIndex(s=>s.getGui().contains(i));return{indexWithFocus:o,nextIndex:o+(t?-1:1)}}focusContainer(e,t){e.setAllowFocus?.(!0);const i=Ao(e.getGui(),t,!1,!0);return e.setAllowFocus?.(!1),i}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},BC=class extends Oc{constructor(e){super(),this.gridBody=fe,this.sideBar=fe,this.pagination=fe,this.rootWrapperBody=fe,this.eGridDiv=e}postConstruct(){const e={destroyGridUi:()=>this.destroyBean(this),setRtlClass:s=>this.addCss(s),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:s=>{this.getGui().style.userSelect=s??"",this.getGui().style.webkitUserSelect=s??""},setCursor:s=>{this.getGui().style.cursor=s??""}},t=this.createManagedBean(new LC),i=t.getOptionalSelectors(),o=this.createTemplate(i),n=[OC,...Object.values(i).filter(s=>!!s)];this.setTemplate(o,n),t.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:s=>t.focusInnerElement(s),forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:()=>!t.isFocusable()})}insertGridIntoDom(){const e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc(()=>{e.remove(),Ti(this.gos,"Grid removed from DOM")})}updateLayoutClasses(e,t){const i=this.rootWrapperBody.classList,{AUTO_HEIGHT:o,NORMAL:n,PRINT:s}=Fi,{autoHeight:r,normal:a,print:l}=t;i.toggle(o,r),i.toggle(n,a),i.toggle(s,l),this.toggleCss(o,r),this.toggleCss(n,a),this.toggleCss(s,l)}createTemplate(e){return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[e.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones"}:null,{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},e.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null]},e.statusBarSelector?{tag:"ag-status-bar"}:null,e.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null,e.watermarkSelector?{tag:"ag-watermark"}:null]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(e=!1){e||!this.pagination?.isDisplayed()?super.forceFocusOutOfContainer(e):this.pagination.forceFocusOutOfContainer(e)}getFocusableContainers(){const e=[this.gridBody];for(const t of[this.sideBar,this.pagination])t&&e.push(t);return e.filter(t=>Dt(t.getGui()))}},Ge=(e,t)=>{for(const i of Object.keys(t))t[i]=e;return t},Vc={dispatchEvent:"CommunityCore",...Ge("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...Ge("GridState",{getState:0,setState:0}),...Ge("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...Ge("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...Ge("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...Ge("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...Ge("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...Ge("ValueCache",{expireValueCache:0}),...Ge("CellApi",{getCellValue:0}),...Ge("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...Ge("Sort",{onSortChanged:0}),...Ge("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...Ge("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...Ge("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...Ge("HighlightChanges",{flashCells:0}),...Ge("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...Ge("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...Ge("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...Ge("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...Ge("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...Ge("ColumnResize",{setColumnWidths:0}),...Ge("ColumnHover",{isColumnHovered:0}),...Ge("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...Ge("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...Ge("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...Ge("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...Ge("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...Ge("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...Ge("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...Ge("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...Ge("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0}),...Ge("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...Ge("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0,onRowHeightChanged:0,resetRowHeights:0}),...Ge("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...Ge("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...Ge("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...Ge("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...Ge("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...Ge("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...Ge("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...Ge("ContextMenu",{showContextMenu:0}),...Ge("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...Ge("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...Ge("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...Ge("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...Ge("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...Ge("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...Ge("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...Ge("StatusBar",{getStatusPanel:0}),...Ge("AiToolkit",{getStructuredSchema:0})},Xa={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},VC=(e,t)=>e.eventSvc.dispatchEvent(t),Hc=class{};function Nc(e,t){e.gos.updateGridOptions({options:t})}Reflect.defineProperty(Hc,"name",{value:"GridApi"});var $C={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},ev={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},tv=class extends ot{constructor(e,t,i,o,n,s=!1){super(),this.cellValueFn=e,this.rowNode=t,this.column=i,this.customGui=o,this.dragStartPixels=n,this.alwaysVisible=s,this.dragSource=null}isCustomGui(){return null!=this.customGui}postConstruct(){const{beans:e,customGui:t}=this;t?this.setDragElement(t,this.dragStartPixels):(this.setTemplate(ev),this.getGui().appendChild(pi("rowDrag",e,null)),this.addDragSource()),this.alwaysVisible||this.initCellDrag()}initCellDrag(){const{beans:e,gos:t,rowNode:i}=this,o=this.refreshVisibility.bind(this);this.addManagedPropertyListener("suppressRowDrag",o),this.addManagedListeners(i,{dataChanged:o,cellChanged:o}),this.addManagedListeners(e.eventSvc,t.get("rowDragManaged")?{sortChanged:o,filterChanged:o,columnRowGroupChanged:o,newColumnsLoaded:o}:{newColumnsLoaded:o})}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}refreshVisibility(){if(this.alwaysVisible)return;const e={skipAriaHidden:!0};if(this.isNeverDisplayed())return void this.setDisplayed(!1,e);const t=this.column;let i="function"==typeof t?.getColDef().rowDrag,o=!t||this.isCustomGui()||t.isRowDrag(this.rowNode);o&&this.rowNode.footer&&this.gos.get("rowDragManaged")&&(o=!1,i=!0),this.setDisplayed(i||o,e),this.setVisible(o,e)}isNeverDisplayed(){const{gos:e,beans:t}=this;return!!(e.get("suppressRowDrag")||e.get("rowDragManaged")&&t.rowDragSvc.rowDragFeature?.shouldPreventRowMove()&&!t.dragAndDrop?.hasExternalDropZones())}getSelectedNodes(){const e=this.rowNode;if(!this.gos.get("rowDragMultiRow"))return[e];const i=this.beans.selectionSvc?.getSelectedNodes()??[];return-1!==i.indexOf(e)?i:[e]}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}getRowDragText(e){if(e){const t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gos.get("rowDragText")}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;const t=this.getGui();this.gos.get("enableCellTextSelection")&&(this.removeMouseDownListener(),this.mouseDownListener=this.addManagedElementListeners(t,{mousedown:o=>{o?.preventDefault()}})[0]);const i=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:o=>{const n=o?.dragItem||this.getDragItem(),s=(o?.dropTarget?.rows.length??n.rowNodes?.length)||1,r=this.getRowDragText(this.column);return r?r(n,s):1===s?this.cellValueFn():`${s} ${i("rowDragRows","rows")}`},getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}destroy(){this.removeDragSource(),this.removeMouseDownListener(),super.destroy()}removeDragSource(){this.dragSource&&(this.beans.dragAndDrop.removeDragSource(this.dragSource),this.dragSource=null)}removeMouseDownListener(){this.mouseDownListener&&(this.mouseDownListener(),this.mouseDownListener=void 0)}},or=class{constructor(){this.reordered=!1,this.removals=new Set,this.updates=new Set,this.adds=new Set}};function zc(e,t){return e.column===t.column&&e.rowPinned===t.rowPinned&&e.rowIndex===t.rowIndex}function Zi(e,t){switch(t.rowPinned){case"top":return e.pinnedRowModel?.getPinnedTopRow(t.rowIndex);case"bottom":return e.pinnedRowModel?.getPinnedBottomRow(t.rowIndex);default:return e.rowModel.getRow(t.rowIndex)}}function cn(e,t){const i=e.spannedRowRenderer?.getCellByPosition(t);if(i)return i;const o=e.rowRenderer.getRowByPosition(t);return o?o.getCellCtrl(t.column):null}function nr(e,t,i=!1){const{rowIndex:o,rowPinned:n}=t,{pageBounds:s,pinnedRowModel:r,rowModel:a}=e;return 0===o?"top"===n?null:"bottom"===n&&a.isRowsToRender()?{rowIndex:s.getLastRow(),rowPinned:null}:r?.isRowsToRender("top")?{rowIndex:r.getPinnedTopRowCount()-1,rowPinned:"top"}:null:i?Uc(e,n?void 0:a.getRow(o),!0)??{rowIndex:o-1,rowPinned:n}:{rowIndex:o-1,rowPinned:n}}function Wc(e,t,i=!1){const{rowIndex:o,rowPinned:n}=t,{pageBounds:s,pinnedRowModel:r,rowModel:a}=e;return function lv(e,t){const{rowPinned:i,rowIndex:o}=t,{pinnedRowModel:n,pageBounds:s}=e;return"top"===i?(n?.getPinnedTopRowCount()??0)-1<=o:"bottom"===i?(n?.getPinnedBottomRowCount()??0)-1<=o:s.getLastRow()<=o}(e,t)?"bottom"===n?null:"top"===n&&a.isRowsToRender()?{rowIndex:s.getFirstRow(),rowPinned:null}:r?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null:i?Uc(e,n?void 0:a.getRow(o))??{rowIndex:o+1,rowPinned:n}:{rowIndex:o+1,rowPinned:n}}function Uc(e,t,i=!1){const{gos:o,rowRenderer:n}=e;if(!t?.sticky||!Ps(o))return;const s=n.getStickyTopRowCtrls(),r=n.getStickyBottomRowCtrls(),a=!r.some(u=>u.rowNode.rowIndex===t.rowIndex),l=a?s:r,d=(i?-1:1)*(a?-1:1);let c;for(let u=0;u<l.length;u++)if(l[u].rowNode.rowIndex===t.rowIndex){c=l[u+d];break}return c?{rowIndex:c.rowNode.rowIndex,rowPinned:null}:void 0}var Zn=class{constructor(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}depthFirstSearchChangedPath(e,t){const{rowNode:i,children:o}=e;if(o)for(let n=0;n<o.length;++n)this.depthFirstSearchChangedPath(o[n],t);t(i)}depthFirstSearchEverything(e,t,i){const o=e.childrenAfterGroup;if(o)for(let n=0,s=o.length;n<s;++n){const r=o[n];r.childrenAfterGroup?this.depthFirstSearchEverything(r,t,i):i&&t(r)}t(e)}forEachChangedNodeDepthFirst(e,t=!1,i=!1){this.active&&!i?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)}executeFromRootNode(e){e(this.pathRoot.rowNode)}createPathItems(e){let t=e,i=0;for(;!this.mapToItems[t.id];)this.mapToItems[t.id]={rowNode:t,children:null},i++,t=t.parent;return i}populateColumnsMap(e,t){if(!this.keepingColumns||!t)return;let i=e;for(;i;){this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={});for(const o of t)this.nodeIdsToColumns[i.id][o.getId()]=!0;i=i.parent}}linkPathItems(e,t){let i=e;for(let o=0;o<t;o++){const n=this.mapToItems[i.id],s=this.mapToItems[i.parent.id];s.children||(s.children=[]),s.children.push(n),i=i.parent}}addParentNode(e,t){if(!e||e.isRowPinned())return;const i=this.createPathItems(e);this.linkPathItems(e,i),this.populateColumnsMap(e,t)}canSkip(e){return this.active&&!this.mapToItems[e.id]}getValueColumnsForNode(e,t){if(!this.keepingColumns)return t;const i=this.nodeIdsToColumns[e.id];return t.filter(n=>i[n.getId()])}getNotValueColumnsForNode(e,t){if(!this.keepingColumns)return null;const i=this.nodeIdsToColumns[e.id];return t.filter(n=>!i[n.getId()])}},dv=class{constructor(e,t){this.beans=e,this.groupThrottled=!1,this.scrollChanged=!1,this.scrollChanging=!1,this.oldVScroll=null,this.groupTimer=null,this.groupTarget=null,this.onGroupThrottle=()=>{this.groupTimer=null,this.groupThrottled=!0,this.beans.dragAndDrop?.nudge()};const i=()=>t.scrollFeature.getVScrollPosition().top;this.autoScroll=new CC({scrollContainer:t.eBodyViewport,scrollAxis:"y",getVerticalPosition:i,setVerticalPosition:o=>t.scrollFeature.setVerticalScrollPosition(o),onScrollCallback:()=>{const o=i();if(this.oldVScroll!==o)return this.oldVScroll=o,void(this.scrollChanging=!0);const n=this.scrollChanging;this.scrollChanged=n,this.scrollChanging=!1,n&&(this.beans.dragAndDrop?.nudge(),this.scrollChanged=!1)}})}updateGroup(e,t){this.groupTarget&&this.groupTarget!==e&&this.clearGroup(),e&&(t&&this.groupThrottled&&!e.expanded&&e.childrenAfterSort?.length&&e.isExpandable()&&e.setExpanded(!0,void 0,!0),e.expanded&&e.childrenAfterSort?.length&&(this.groupThrottled=!0,this.groupTarget=e))}startGroup(e){this.groupTarget=e,null===this.groupTimer&&(this.groupTimer=window.setTimeout(this.onGroupThrottle,this.beans.gos.get("rowDragInsertDelay")))}clearGroup(){this.groupThrottled=!1,this.groupTarget=null;const e=this.groupTimer;null!==e&&(this.groupTimer=null,window.clearTimeout(e))}clear(){this.clearGroup(),this.autoScroll.ensureCleared(),this.oldVScroll=null,this.scrollChanged=!1,this.scrollChanging=!1}},cv=class extends Y{constructor(e){super(),this.eContainer=e,this.lastDraggingEvent=null,this.nudger=null}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,t=>{this.nudger=new dv(e,t.gridBodyCtrl)})}destroy(){super.destroy(),this.nudger?.clear(),this.nudger=null,this.lastDraggingEvent=null,this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(e){return 2===e}getIconName(e){return!1===e?.dropTarget?.allowed||this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){const{rowGroupColsSvc:e,filterManager:t,sortSvc:i}=this.beans;return!!((e?.columns??[]).length||t?.isAnyFilterPresent()||i?.isSortActive())}getRowNodes(e){if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const i=this.beans.selectionSvc?.getSelectedNodes();if(i&&i.indexOf(t)>=0)return i.slice().sort(gv)}return[t]}onDragEnter(e){this.dragging(e,!0)}onDragging(e){this.dragging(e,!1)}dragging(e,t){const{lastDraggingEvent:i,beans:o}=this;if(t){const r=this.getRowNodes(e);e.dragItem.rowNodes=r,Kc(r,!0)}this.lastDraggingEvent=e;const n=e.fromNudge,s=this.makeRowsDrop(i,e,n,!1);o.rowDropHighlightSvc?.fromDrag(e),t&&this.dispatchGridEvent("rowDragEnter",e),this.dispatchGridEvent("rowDragMove",e),s?.rowDragManaged&&s.moved&&s.allowed&&s.sameGrid&&!s.suppressMoveWhenRowDragging&&(!n&&!this.nudger?.autoScroll.scrolling||this.nudger?.scrollChanged)&&this.dropRows(s),this.nudger?.autoScroll.check(e.event)}isFromThisGrid(e){return e.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(e,t,i,o){const{beans:n,gos:s}=this,r=this.newRowsDrop(t,o),a=n.rowModel;if(t.dropTarget=r,t.changed=!1,!r)return null;let{sameGrid:l,rootNode:d,source:c,target:u,rows:g}=r;u??(u=a.getRow(a.getRowCount()-1)??null);const m=!!this.beans.groupStage?.treeData&&l;let w=null;if(u?.footer){const V=sr(a,-1,u)??sr(a,1,u);w=u.sibling??d,u=V??null}u?.detail&&(u=u.parent),r.moved&&(r.moved=c!==u);let b=.5;if(u&&(b=l&&r.moved&&(w||!m)?c.rowIndex>u.rowIndex?-.5:.5:(r.y-u.rowTop-u.rowHeight/2)/u.rowHeight||0),!m&&l&&u&&r.moved&&ut(s)){const V=pv(a,r);V&&(b=c.rowIndex>V.rowIndex?-.5:.5,u=V,r.moved&&(r.moved=c!==u))}const x=this.nudger;x?.updateGroup(u,i),m&&!w&&x&&(!u||b>=.5&&u.rowIndex===n.pageBounds.getLastRow()?w=d:r.moved&&this.targetShouldBeParent(u,b,g)&&(x.groupThrottled&&(w=u),!i&&(!w||u&&!u.expanded&&u.childrenAfterSort?.length)&&x.startGroup(u)),w??(w=u?.parent??d));let A=!1;if(w){if(w===u&&w!==d){const V=w.expanded?sr(a,1,u):null;V?.parent===w?(u=V,b=-.5):A=!0}if(u&&!A){let V=u;for(;V&&V!==d&&V!==w;)u=V,V=V.parent}}r.target=u,r.newParent=w,r.moved&&(r.moved=c!==u);const O=b<0?"above":"below";return r.position=r.moved?A?"inside":O:"none",this.validateRowsDrop(r,m,O,o),t.changed||(t.changed=hv(e?.dropTarget,r)),r}newRowsDrop(e,t){const{beans:i,gos:o}=this,n=i.rowModel.rootNode,s=!!ut(o)&&o.get("rowDragManaged"),r=o.get("suppressMoveWhenRowDragging"),a=this.isFromThisGrid(e);let{rowNode:l,rowNodes:d}=e.dragItem;if(d||(d=l?[l]:[]),l||(l=d[0]),!l||!n)return null;const c=this.beans.dragAndDrop.isDropZoneWithinThisGrid(e);let u=!0;s&&(!d.length||this.shouldPreventRowMove()||(r||!a)&&!c)&&(u=!1);const g=fc(i,e).y,m=this.getOverNode(g);return{api:i.gridApi,context:i.gridOptions.context,draggingEvent:e,rowDragManaged:s,suppressMoveWhenRowDragging:r,sameGrid:a,withinGrid:c,rootNode:n,moved:l!==m,y:g,overNode:m,overIndex:m?.rowIndex??-1,position:"none",source:l,target:m??null,newParent:null,rows:d,allowed:u,highlight:!t&&s&&r&&(c||!a)}}validateRowsDrop(e,t,i,o){const{rowDragManaged:n,suppressMoveWhenRowDragging:s}=e;t||(e.newParent=null),s&&!e.moved&&(e.allowed=!1);const r=(!n||e.allowed)&&this.gos.get("isRowValidDropPosition");if(r){t&&e.newParent&&$c(e.rows,e.newParent)&&(e.newParent=null);const a=r(e);if(a){if("object"==typeof a){void 0!==a.rows&&(e.rows=a.rows??[]),t&&void 0!==a.newParent&&(e.newParent=a.newParent),void 0!==a.target&&(e.target=a.target),a.position&&(e.position=a.position),void 0!==a.allowed?e.allowed=a.allowed:n||(e.allowed=!0);const l=e.draggingEvent;a.changed&&l&&(l.changed=!0),!o&&void 0!==a.highlight&&(e.highlight=a.highlight)}}else e.allowed=!1}n&&(e.rows=this.filterRows(e)),t&&e.newParent&&$c(e.rows,e.newParent)&&(e.newParent=null),s&&(!e.rows.length||"none"===e.position)&&(e.allowed=!1),(!e.allowed||!e.newParent)&&"inside"===e.position&&(e.position=i)}targetShouldBeParent(e,t,i){if(t<-.25)return!1;if(t<.25)return!0;let s,r=e.rowIndex+1;const a=this.beans.rowModel;do{s=a.getRow(r++)}while(s?.footer);const l=e.childrenAfterGroup;if(s&&s.parent===e&&l?.length){const d=new Set(i);for(const c of l)if(null!==c.rowIndex&&!d.has(c))return!0}return!1}addRowDropZone(e){if(!e.getContainer())return void se(55);const t=this.beans.dragAndDrop;if(t.findExternalZone(e.getContainer()))return void se(56);const o={isInterestedIn:n=>2===n,getIconName:()=>"move",external:!0,...e.fromGrid?e:{getContainer:e.getContainer,onDragEnter:e.onDragEnter&&(n=>e.onDragEnter(this.rowDragEvent("rowDragEnter",n))),onDragLeave:e.onDragLeave&&(n=>e.onDragLeave(this.rowDragEvent("rowDragLeave",n))),onDragging:e.onDragging&&(n=>e.onDragging(this.rowDragEvent("rowDragMove",n))),onDragStop:e.onDragStop&&(n=>e.onDragStop(this.rowDragEvent("rowDragEnd",n))),onDragCancel:e.onDragCancel&&(n=>e.onDragCancel(this.rowDragEvent("rowDragCancel",n)))}};t.addDropTarget(o),this.addDestroyFunc(()=>t.removeDropTarget(o))}getRowDropZone(e){return{getContainer:this.getContainer.bind(this),onDragEnter:i=>{this.onDragEnter(i),e?.onDragEnter?.(this.rowDragEvent("rowDragEnter",i))},onDragLeave:i=>{this.onDragLeave(i),e?.onDragLeave?.(this.rowDragEvent("rowDragLeave",i))},onDragging:i=>{this.onDragging(i),e?.onDragging?.(this.rowDragEvent("rowDragMove",i))},onDragStop:i=>{this.onDragStop(i),e?.onDragStop?.(this.rowDragEvent("rowDragEnd",i))},onDragCancel:i=>{this.onDragCancel(i),e?.onDragCancel?.(this.rowDragEvent("rowDragCancel",i))},fromGrid:!0}}getOverNode(e){const{pageBounds:t,rowModel:i}=this.beans,n=e>t.getCurrentPagePixelRange().pageLastPixel?-1:i.getRowIndexAtPixel(e);return n>=0?i.getRow(n):void 0}rowDragEvent(e,t){const i=this.beans,{dragItem:o,dropTarget:n,event:s,vDirection:r}=t,a=n?.rootNode===i.rowModel.rootNode,l=a?n.y:fc(i,t).y,d=a?n.overNode:this.getOverNode(l);return{api:i.gridApi,context:i.gridOptions.context,type:e,event:s,node:o.rowNode,nodes:o.rowNodes,overIndex:a?n.overIndex:d?.rowIndex??-1,overNode:d,y:l,vDirection:r,rowsDrop:n}}dispatchGridEvent(e,t){const i=this.rowDragEvent(e,t);this.eventSvc.dispatchEvent(i)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e)}onDragStop(e){const t=this.makeRowsDrop(this.lastDraggingEvent,e,!1,!0);this.dispatchGridEvent("rowDragEnd",e),t?.allowed&&t.rowDragManaged&&(t.suppressMoveWhenRowDragging||!t.sameGrid||this.nudger?.autoScroll.scrolling)&&this.dropRows(t),this.stopDragging(e)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e)}stopDragging(e){this.nudger?.clear(),this.beans.rowDropHighlightSvc?.fromDrag(null),Kc(e.dragItem.rowNodes,!1)}dropRows(e){return e.sameGrid?this.csrmMoveRows(e):this.csrmAddRows(e)}csrmAddRows({position:e,target:t,rows:i}){const o=ko(this.gos),n=this.beans.rowModel,s=i.filter(({data:a,rowPinned:l})=>!n.getRowNode(o?.({data:a,level:0,rowPinned:l})??a.id)).map(({data:a})=>a);if(0===s.length)return!1;const r=t?jc(t)+("above"===e?0:1):void 0;return n.updateRowData({add:s,addIndex:r}),!0}filterRows({newParent:e,rows:t}){let i;for(let o=0,n=t.length;o<n;++o){let s=!0;const r=t[o];(!r||r.footer||null===r.rowTop&&r!==this.beans.rowModel.getRowNode(r.id)||e&&r.parent!==e&&uv(r,e)||!Ya(r))&&(s=!1),s?i?.push(r):i??(i=t.slice(0,o))}return i??t}csrmMoveRows({position:e,target:t,rows:i,newParent:o,rootNode:n}){let s=!1;const r=new Set;for(const g of i){o&&g.parent!==o&&(g.treeParent=o,s=!0);const m=Ya(g);m&&r.add(m)}if(!s&&0===r.size)return!1;const a=this.beans.focusSvc,l=a.getFocusedCell(),d=l&&cn(this.beans,l);if(r.size&&this.reorderLeafChildren(r,...this.getMoveRowsBounds(r,t,"above"===e))&&(s=!0),!s)return!1;const c=this.beans.rowModel,u=new or;return u.reordered=!0,c.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedPath:new Zn(!1,n),changedRowNodes:u}),d?d.focusCell():a.clearFocusedCell(),!0}getMoveRowsBounds(e,t,i){const o=this.beans.rowModel.rootNode?._leafs?.length??0;let n=t?jc(t):-1;n<0||n>=o?n=o:i||++n;let s=n,r=Math.min(n,o-1);for(const a of e){const l=a.sourceRowIndex;l<s&&(s=l),l>r&&(r=l)}return[s,n,r]}reorderLeafChildren(e,t,i,o){let n=!1;const s=this.beans.rowModel.rootNode?._leafs;if(!e.size||!s)return!1;let r=t;for(let l=t;l<i;++l){const d=s[l];e.has(d)||(d.sourceRowIndex!==r&&(d.sourceRowIndex=r,s[r]=d,n=!0),++r)}let a=o;for(let l=o;l>=i;--l){const d=s[l];e.has(d)||(d.sourceRowIndex!==a&&(d.sourceRowIndex=a,s[a]=d,n=!0),--a)}for(const l of e)l.sourceRowIndex!==r&&(l.sourceRowIndex=r,s[r]=l,n=!0),++r;return n}},sr=(e,t,i)=>{if(i){const o=e.getRowCount();let n=i.rowIndex+t;for(;n>=0&&n<o;){const s=e.getRow(n);if(!s||!s.footer&&!s.detail)return s;n+=t}}},uv=(e,t)=>{let i=t;for(;i;){if(i===e)return!0;i=i.parent}return!1},$c=(e,t)=>{for(let i=0,o=e.length;i<o;++i)if(e[i].parent!==t)return!1;return!0},jc=e=>{const t=Ya(e);return void 0!==t?t.sourceRowIndex:-1},Ya=e=>e.data?e:qd(e.childrenAfterGroup),hv=(e,t)=>!(e===t||e&&e.sameGrid===t.sameGrid&&e.allowed===t.allowed&&e.position===t.position&&e.target===t.target&&e.source===t.source&&e.newParent===t.newParent&&ho(e.rows,t.rows)),gv=({rowIndex:e},{rowIndex:t})=>null!==e&&null!==t?e-t:0,Kc=(e,t)=>{for(let i=0,o=e?.length||0;i<o;++i){const n=e[i];n.dragging!==t&&(n.dragging=t,n.dispatchRowEvent("draggingChanged"))}},pv=(e,t)=>{let i=null,o=t.target;if(o&&t.rows.indexOf(o)<0)return null;const n=t.source;if(!o||!n)return null;let s=o.rowIndex-n.rowIndex;const r=s<0?-1:1;s=t.suppressMoveWhenRowDragging?Math.abs(s):1;const a=new Set(t.rows);do{const l=sr(e,r,o);if(!l)break;a.has(l)||(i=l,--s),o=l}while(s>0);return i},qc={moduleName:"Drag",version:ge,beans:[class extends hf{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}}]},Cv={moduleName:"DragAndDrop",version:ge,dynamicBeans:{dndSourceComp:class extends ot{constructor(e,t,i){super($C),this.rowNode=e,this.column=t,this.eCell=i}postConstruct(){this.getGui().appendChild(pi("rowDrag",this.beans,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const{rowNode:t,column:i,eCell:o,gos:n}=this,s=i.getColDef().dndSourceOnRowDrag,r=e.dataTransfer;if(r.setDragImage(o,0,0),s)s(Ie(n,{rowNode:t,dragEvent:e}));else try{const a=JSON.stringify(t.data);r.setData("application/json",a),r.setData("text/plain",a)}catch{}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}}},icons:{rowDrag:"grip"}},Xc={moduleName:"SharedDragAndDrop",version:ge,beans:[class extends gf{createEvent(e){return Ie(this.gos,e)}createDragImageComp(e){const{gos:t,beans:i}=this;return function Ig(e,t){return e.getCompDetailsFromGridOptions(mg,"agDragAndDropImage",t,!0)}(i.userCompFactory,Ie(t,{dragSource:e}))?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){se(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const i={getContainer:e,isInterestedIn:o=>1===o||0===o,getIconName:()=>"notAllowed"};this.addDropTarget(i),t.addDestroyFunc(()=>this.removeDropTarget(i))}}],dependsOn:[qc],userComponents:{agDragAndDropImage:class extends ot{constructor(){super(),this.dragSource=null,this.eIcon=fe,this.eLabel=fe,this.eGhost=fe,this.registerCSS(".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}.ag-dnd-ghost-not-allowed{border:var(--ag-drag-and-drop-image-not-allowed-border)}")}postConstruct(){const e=t=>function Um(e,t,i){const o=pi(e,t,i);if(o){const{className:s}=o;if("string"==typeof s&&s.includes("ag-icon")||"object"==typeof s&&s["ag-icon"])return o}const n=xt({tag:"span"});return n.appendChild(o),n}(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(jm),this.beans.environment.applyThemeClasses(this.eGhost)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eGhost:i,eIcon:o,dragSource:n,dropIconMap:s,gos:r}=this;wt(o);let a=null;e||(e=n?.getDefaultIconName?n.getDefaultIconName():"notAllowed"),a=s[e],i.classList.toggle("ag-dnd-ghost-not-allowed","notAllowed"===e),o.classList.toggle("ag-shake-left-to-right",t),(a!==s.hide||!r.get("suppressDragLeaveHidesColumns"))&&a&&o.appendChild(a)}setLabel(e){this.eLabel.textContent=e}}},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},vv={moduleName:"RowDrag",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="rowDropHighlightSvc",this.uiLevel=0,this.dragging=!1,this.row=null,this.position="none"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this)})}onModelUpdated(){const e=this.row,t=this.dragging;e&&null!==e?.rowIndex&&"none"!==this.position?this.set(e,this.position):this.clear(),this.dragging=t}destroy(){this.clear(),super.destroy()}clear(){const e=this.row;this.dragging=!1,e&&(this.uiLevel=0,this.position="none",this.row=null,e.dispatchRowEvent("rowHighlightChanged"))}set(e,t){const i=e!==this.row,o=e.uiLevel,n=t!==this.position,s=o!==this.uiLevel;this.dragging=!1,(i||n||s)&&(i&&this.clear(),this.uiLevel=o,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}fromDrag(e){const t=e?.dropTarget;if(t){const{highlight:i,target:o,position:n}=t;if(i&&o&&"none"!==n)return this.set(o,n),void(this.dragging=!0)}this.dragging&&this.clear()}},class extends Y{constructor(){super(...arguments),this.beanName="rowDragSvc"}setupRowDrag(e,t){const i=t.createManagedBean(new cv(e)),o=this.beans.dragAndDrop;o.addDropTarget(i),t.addDestroyFunc(()=>o.removeDropTarget(i)),this.rowDragFeature=i}createRowDragComp(e,t,i,o,n,s){return new tv(e,t,i,o,n,s)}createRowDragCompForRow(e,t){if(kt(this.gos))return;const i=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${i("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,i,o,n,s){const r=this.gos;return!r.get("rowDragManaged")||ut(r)&&!r.get("pagination")?this.createRowDragComp(i,e,t,o,n,s):void 0}}],apiFunctions:{addRowDropZone:function KC(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)},removeRowDropZone:function qC(e,t){const i=e.dragAndDrop?.findExternalZone(t.getContainer());i&&e.dragAndDrop?.removeDropTarget(i)},getRowDropZoneParams:function XC(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)},getRowDropPositionIndicator:function YC(e){const t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}},setRowDropPositionIndicator:function QC(e,t){const i=e.rowDropHighlightSvc;if(!i)return;const o=t?.row;let n=t?.dropIndicatorPosition;"above"!==n&&"below"!==n&&"inside"!==n&&(n="none");const s=o?.rowIndex;null==s||"none"===n?i.clear():i.set(o,n)}},dependsOn:[Xc]},wv={moduleName:"HorizontalResize",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="horizontalResizeSvc"}addResizeBar(e){const t={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),onDragCancel:this.onDragStop.bind(this,e),includeTouch:!0,stopPropagationForTouch:!0},{dragSvc:i}=this.beans;return i.addDragSource(t),()=>i.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons();const i=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(i)}setResizeIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(1),e.disableUserSelect(!0)}onDragStop(e){e.onResizeEnd(this.resizeAmount),this.resetIcons()}resetIcons(){const e=this.beans.ctrlsSvc.get("gridCtrl");e.setResizeCursor(!1),e.disableUserSelect(!1)}onDragging(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)}}],dependsOn:[qc]},Ev=class extends Y{constructor(e){super(),this.pinned=e,this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[]}onDragEnter(e){if(this.clearColumnsList(),this.gos.get("functionsReadOnly"))return;const t=e.dragItem.columns;if(t)for(const i of t)i.isPrimary()&&(i.isAnyFunctionActive()||(i.isAllowValue()?this.columnsToAggregate.push(i):i.isAllowRowGroup()?this.columnsToGroup.push(i):i.isAllowPivot()&&this.columnsToPivot.push(i)))}getIconName(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?"pinned":"move":null}onDragLeave(e){this.clearColumnsList()}clearColumnsList(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0}onDragging(e){}onDragStop(e){const{valueColsSvc:t,rowGroupColsSvc:i,pivotColsSvc:o}=this.beans;this.columnsToAggregate.length>0&&t?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&i?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&o?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}onDragCancel(){this.clearColumnsList()}};function Yc(e){const{isFromHeader:t,fromLeft:i,xPosition:o,fromEnter:n,fakeEvent:s,pinned:r,gos:a,colModel:l,colMoves:d,visibleCols:c}=e;let{allMovingColumns:u}=e;t&&(u=function Pv(e){const t=[...e];for(const i of e){let o=null,n=i.getParent();for(;null!=n&&1===n.getDisplayedLeafColumns().length;)o=n,n=n.getParent();if(null!=o){const r=o.getColGroupDef()?.marryChildren?o.getProvidedColumnGroup().getLeafColumns():o.getLeafColumns();for(const a of r)t.includes(a)||t.push(a)}}return t}(u));const g=u.slice();!function xv(e,t){!t||t.length<=1||t.filter(o=>e.indexOf(o)<0).length>0||t.sort((o,n)=>e.indexOf(o)-e.indexOf(n))}(l.getCols(),g);const m=function kv(e){const{movingCols:t,draggingRight:i,xPosition:o,pinned:n,gos:s,colModel:r,visibleCols:a}=e;if(s.get("suppressMovableColumns")||t.some(V=>V.getColDef().suppressMovable))return[];const d=function _v(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}(a,n),c=r.getCols(),u=d.filter(V=>t.includes(V)),g=d.filter(V=>!t.includes(V)),m=c.filter(V=>!t.includes(V));let x,w=0,b=o;if(i){let V=0;for(const te of u)V+=te.getActualWidth();b-=V}if(b>0){for(let V=0;V<g.length&&(b-=g[V].getActualWidth(),!(b<0));V++)w++;i&&w++}w>0?x=m.indexOf(g[w-1])+1:(x=m.indexOf(g[0]),-1===x&&(x=0));const A=[x],O=(V,te)=>V-te;if(i){let V=x+1;const te=c.length-1;for(;V<=te;)A.push(V),V++;A.sort(O)}else{let V=x;const te=c.length-1;let oe=c[V];for(;V<=te&&d.indexOf(oe)<0;)V++,A.push(V),oe=c[V];V=x-1;const ce=0;for(;V>=ce;)A.push(V),V--;A.sort(O).reverse()}return A}({movingCols:g,draggingRight:i,xPosition:o,pinned:r,gos:a,colModel:l,visibleCols:c}),w=function Dv(e,t){const i=t.getCols(),o=e.map(l=>i.indexOf(l)).sort((l,d)=>l-d),n=o[0];return rt(o)-n!==o.length-1?null:n}(g,l);if(0===m.length)return;const b=m[0];if(null!==w&&(t||!n)&&!s&&(!i&&b>=w||i&&b<=w))return;const A=function Fv(e,t,i,o){const n=o.allCols;let s=null,r=null;for(let a=0;a<e.length;a++){const l=e[a],d=i.getProposedColumnOrder(t,l);if(!i.doesOrderPassRules(d))continue;const c=d.filter(g=>n.includes(g));if(null===r)r=c;else if(!ho(c,r))break;const u=Mv(d);(null===s||u<s.fragCount)&&(s={move:l,fragCount:u})}return s}(m,g,d,c);if(!A)return;const O=A.move;return O>l.getCols().length-g.length?void 0:{columns:g,toIndex:O}}function Qc(e){const{columns:t,toIndex:i}=Yc(e)||{},{finished:o,colMoves:n}=e;return t&&null!=i?(n.moveColumns(t,i,"uiColumnMoved",o),o?null:{columns:t,toIndex:i}):null}function Mv(e){function t(o){const n=[];let s=o.getOriginalParent();for(;null!=s;)n.push(s),s=s.getOriginalParent();return n}let i=0;for(let o=0;o<e.length-1;o++){let n=t(e[o]),s=t(e[o+1]);[n,s]=n.length>s.length?[n,s]:[s,n];for(const r of n)-1===s.indexOf(r)&&i++}return i}function Qa(e){const{pinned:t,fromKeyboard:i,gos:o,ctrlsSvc:n,useHeaderRow:s,skipScrollPadding:r}=e;let a=n.getHeaderRowContainerCtrl(t)?.eViewport,{x:l}=e;return a?(i&&(l-=a.getBoundingClientRect().left),o.get("enableRtl")&&(s&&(a=a.querySelector(".ag-header-row")),l=a.clientWidth-l),null==t&&!r&&(l+=n.get("center").getCenterViewportScrollLeft()),l):0}function Za(e,t){for(const i of e)i.moving=t,i.dispatchColEvent("movingChanged","uiColumnMoved")}var Iv=class extends Y{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!p(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:i}=t||{},o=i?.columns??[];for(const n of o){const s=n.getPinned();if(n.getColDef().lockPinned){if(s==e)return"move";continue}const r=i?.containerType;if(r===e||!e)return"move";if(e&&(!s||r!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,i=t.columns;if(0===e.dragSource.type)this.setColumnsVisible(i,!0,"uiColumnDragged");else{const n=t.visibleState,s=(i||[]).filter(r=>n[r.getId()]&&!r.isVisible());this.setColumnsVisible(s,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(i,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,i=!1,o=!1){const{gos:n,ctrlsSvc:s}=this.beans,r=n.get("suppressMoveWhenColumnDragging");if(o&&!r)return void this.finishColumnMoving();if(this.lastDraggingEvent=e,!e||!o&&K(e.hDirection))return;const a=Qa({x:e.x,pinned:this.pinned,gos:n,ctrlsSvc:s});t||this.checkCenterForScrolling(a),r?this.handleColumnDragWhileSuppressingMovement(e,t,i,a,o):this.handleColumnDragWhileAllowingMovement(e,t,i,a,o)}onDragLeave(){this.ensureIntervalCleared(),this.clearHighlighted(),this.updateDragItemContainerType(),this.lastMovedInfo=null}onDragStop(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null}onDragCancel(){this.clearHighlighted(),this.ensureIntervalCleared(),this.lastMovedInfo=null}setColumnsVisible(e,t,i){if(!e?.length)return;const o=e.filter(n=>!n.getColDef().lockVisible);o.length&&this.beans.colModel.setColsVisible(o,t,i)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;if(!e)return;const{columns:t,toIndex:i}=e;this.beans.colMoves.moveColumns(t,i,"uiColumnMoved",!0)}updateDragItemContainerType(){const{lastDraggingEvent:e}=this;if(this.gos.get("suppressMoveWhenColumnDragging")||!e)return;const t=e.dragItem;t&&(t.containerType=this.pinned)}handleColumnDragWhileSuppressingMovement(e,t,i,o,n){const s=this.getAllMovingColumns(e,!0);if(n){const r=this.isAttemptingToPin(s);r&&this.attemptToPinColumns(s,void 0,!0);const{fromLeft:a,xPosition:l}=this.getNormalisedXPositionInfo(s,r)||{};if(null==a||null==l)return void this.finishColumnMoving();this.moveColumnsAfterHighlight({allMovingColumns:s,xPosition:l,fromEnter:t,fakeEvent:i,fromLeft:a})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(s,o)}}handleColumnDragWhileAllowingMovement(e,t,i,o,n){const s=this.getAllMovingColumns(e),r="right"===this.normaliseDirection(e.hDirection),d=Qc({...this.getMoveColumnParams({allMovingColumns:s,isFromHeader:1===e.dragSource.type,xPosition:o,fromLeft:r,fromEnter:t,fakeEvent:i}),finished:n});d&&(this.lastMovedInfo=d)}getAllMovingColumns(e,t=!1){const i=e.dragSource.getDragItem();let o=null;return t?(o=i.columnsInSplit,o||(o=i.columns)):o=i.columns,o?o.filter(s=>!s.getColDef().lockPinned||s.getPinned()==this.pinned):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:i,xPosition:o,fromLeft:n,fromEnter:s,fakeEvent:r}=e,{gos:a,colModel:l,colMoves:d,visibleCols:c}=this.beans;return{allMovingColumns:t,isFromHeader:i,fromLeft:n,xPosition:o,pinned:this.pinned,fromEnter:s,fakeEvent:r,gos:a,colModel:l,colMoves:d,visibleCols:c}}highlightHoveredColumn(e,t){const{gos:i,colModel:o}=this.beans,n=i.get("enableRtl"),s=o.getCols().filter(c=>c.isVisible()&&c.getPinned()===this.pinned);let d,r=null,a=null,l=null;for(const c of s){if(a=c.getActualWidth(),r=this.getNormalisedColumnLeft(c,0,n),null!=r&&r<=t&&r+a>=t){l=c;break}r=null,a=null}if(l)-1!==e.indexOf(l)&&(l=null);else{for(let c=s.length-1;c>=0;c--){const u=s[c],g=s[c].getParent();if(!g){l=u;break}const m=g?.getDisplayedLeafColumns();if(m.length){l=rt(m);break}}if(!l)return;r=this.getNormalisedColumnLeft(l,0,n),a=l.getActualWidth()}this.lastHighlightedColumn?.column!==l&&this.clearHighlighted(),null!=l&&null!=r&&null!=a&&(d=t-r<a/2!==n?0:1,Jc(l,d),this.lastHighlightedColumn={column:l,position:d})}getNormalisedXPositionInfo(e,t){const{gos:i,visibleCols:o}=this.beans,n=i.get("enableRtl"),{firstMovingCol:s,column:r,position:a}=this.getColumnMoveAndTargetInfo(e,t,n);if(!s||!r||null==a)return;const l=o.allCols,d=l.indexOf(s),c=l.indexOf(r),u=0===a!==n,g=d<c||d===c&&!u;let m=0;if(u?g&&(m-=1):g||(m+=1),c+m===d)return;const w=l[c+m];return w?{fromLeft:g,xPosition:this.getNormalisedColumnLeft(w,20,n)}:void 0}getColumnMoveAndTargetInfo(e,t,i){const o=this.lastHighlightedColumn||{},{firstMovingCol:n,lastMovingCol:s}=function Ov(e){const t=e.length;let i,o;for(let n=0;n<t;n++){if(!i){const s=e[n];null!=s.getLeft()&&(i=s)}if(!o){const s=e[t-1-n];null!=s.getLeft()&&(o=s)}if(i&&o)break}return{firstMovingCol:i,lastMovingCol:o}}(e);if(!n||!s||o.column||!t)return{firstMovingCol:n,...o};const a="left"===this.getPinDirection();return{firstMovingCol:n,position:a?1:0,column:a!==i?n:s}}normaliseDirection(e){if(this.gos.get("enableRtl"))switch(e){case"left":return"right";case"right":return"left"}return e}getNormalisedColumnLeft(e,t,i){const{gos:o,ctrlsSvc:n}=this.beans,s=e.getLeft();if(null==s)return null;const r=e.getActualWidth();return Qa({x:i?s+r-t:s+t,pinned:e.getPinned(),useHeaderRow:i,skipScrollPadding:!0,gos:o,ctrlsSvc:n})}isAttemptingToPin(e){return(this.needToMoveLeft||this.needToMoveRight)&&this.failedMoveAttempts>7||e.some(o=>o.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:i,fromEnter:o,fakeEvent:n,fromLeft:s}=e,r=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:i,fromLeft:s,fromEnter:o,fakeEvent:n}),{columns:a,toIndex:l}=Yc(r)||{};a&&null!=l&&(this.lastMovedInfo={columns:a,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(Jc(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const t=this.beans.ctrlsSvc.get("center"),i=t.getCenterViewportScrollLeft(),o=i+t.getCenterWidth();let n,s;this.gos.get("enableRtl")?(n=e<i+50,s=e>o-50):(s=e<i+50,n=e>o-50),this.needToMoveRight=n,this.needToMoveLeft=s,s||n?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.beans.dragAndDrop.setDragImageCompIcon(this.needToMoveLeft?"left":"right",!0))}ensureIntervalCleared(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.failedMoveAttempts=0,this.beans.dragAndDrop.setDragImageCompIcon(this.getIconName()))}moveInterval(){let e;this.intervalCount++,e=10+5*this.intervalCount,e>100&&(e=100);let t=null;const i=this.gridBodyCon.scrollFeature;if(this.needToMoveLeft?t=i.scrollHorizontally(-e):this.needToMoveRight&&(t=i.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{pinnedCols:o,dragAndDrop:n,gos:s}=this.beans;if(this.failedMoveAttempts<=8||!o)return;if(n.setDragImageCompIcon("pinned"),!s.get("suppressMoveWhenColumnDragging")){const r=this.lastDraggingEvent?.dragItem.columns;this.attemptToPinColumns(r,void 0,!0)}}}getPinDirection(){return this.needToMoveLeft||"left"===this.pinned?"left":this.needToMoveRight||"right"===this.pinned?"right":void 0}attemptToPinColumns(e,t,i=!1){const o=(e||[]).filter(r=>!r.getColDef().lockPinned);if(!o.length)return 0;i&&(t=this.getPinDirection());const{pinnedCols:n,dragAndDrop:s}=this.beans;return n?.setColsPinned(o,t,"uiColumnDragged"),i&&s.nudge(),o.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function Jc(e,t){e.highlighted!==t&&(e.highlighted=t,e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}var Lv=class extends Y{constructor(e,t){super(),this.pinned=e,this.eContainer=t}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans,i=this.pinned;e.whenReady(this,o=>{let n;const s=o.gridBodyCtrl.eBodyViewport;switch(i){case"left":n=[[s,o.left.eContainer],[o.bottomLeft.eContainer],[o.topLeft.eContainer]];break;case"right":n=[[s,o.right.eContainer],[o.bottomRight.eContainer],[o.topRight.eContainer]];break;default:n=[[s,o.center.eViewport],[o.bottomCenter.eViewport],[o.topCenter.eViewport]]}this.eSecondaryContainers=n}),this.moveColumnFeature=this.createManagedBean(new Iv(i)),this.bodyDropPivotTarget=this.createManagedBean(new Ev(i)),t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return 1===e||0===e&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener.getIconName()}isDropColumnInPivotMode(e){return this.beans.colModel.isPivotMode()&&0===e.dragSource.type}onDragEnter(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)}onDragLeave(e){this.currentDropListener.onDragLeave(e)}onDragging(e){this.currentDropListener.onDragging(e)}onDragStop(e){this.currentDropListener.onDragStop(e)}onDragCancel(){this.currentDropListener.onDragCancel()}},Nv={moduleName:"ColumnMove",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,i){const o=this.beans.colModel.getCols();o&&this.moveColumns([o[e]],t,i)}moveColumns(e,t,i,o=!0){const{colModel:n,colAnimation:s,visibleCols:r,eventSvc:a}=this.beans,l=n.getCols();if(!l)return;if(t>l.length-e.length)return void se(30,{toIndex:t});s?.start();const d=n.getColsForKeys(e);this.doesMovePassRules(d,t)&&(Zl(n.getCols(),d,t),r.refresh(i),a.dispatchEvent({type:"columnMoved",columns:d,column:1===d.length?d[0]:null,toIndex:t,finished:o,source:i})),s?.finish()}doesMovePassRules(e,t){const i=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(i)}doesOrderPassRules(e){const{colModel:t,gos:i}=this.beans;return!(!ad(e,t.getColTree())||!(n=>{const s=d=>d?"left"===d||!0===d?-1:1:0,r=i.get("enableRtl");let a=r?1:-1,l=!0;for(const d of n){const c=s(d.getColDef().lockPosition);r?c>a&&(l=!1):c<a&&(l=!1),a=c}return l})(e))}getProposedColumnOrder(e,t){const o=this.beans.colModel.getCols().slice();return Zl(o,e,t),o}createBodyDropTarget(e,t){return new Lv(e,t)}moveHeader(e,t,i,o,n){const{ctrlsSvc:s,gos:r,colModel:a,visibleCols:l,focusSvc:d}=this.beans,c=t.getBoundingClientRect(),u=c.left,g=Et(i),m=g?c.width:i.getActualWidth(),w="left"===e!==r.get("enableRtl"),b=Qa({x:w?u-20:u+m+20,pinned:o,fromKeyboard:!0,gos:r,ctrlsSvc:s}),x=d.focusedHeader;let A;if(Qc({allMovingColumns:g?i.getLeafColumns():[i],isFromHeader:!0,fromLeft:"right"===e,xPosition:b,pinned:o,fromEnter:!1,fakeEvent:!1,gos:r,colModel:a,colMoves:this,visibleCols:l,finished:!0}),g){const O=i.getDisplayedLeafColumns();A=w?O[0]:rt(O)}else A=i;if(s.getScrollFeature().ensureColumnVisible(A,"auto"),(!n.isAlive()||r.get("ensureDomOrder"))&&x){let O;if(g){const V=i.getGroupId(),te=i.getLeafColumns();if(!te.length)return;const oe=te[0].getParent();if(!oe)return;O=function Vv(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}}(oe,V)}else O=i;O&&d.focusHeaderPosition({headerPosition:{...x,column:O}})}}setDragSourceForHeader(e,t,i){const{gos:o,colModel:n,dragAndDrop:s,visibleCols:r}=this.beans;let a=!o.get("suppressDragLeaveHidesColumns");const l=Et(t),d=l?t.getProvidedColumnGroup().getLeafColumns():[t],u={type:1,eElement:e,getDefaultIconName:()=>a?"hide":"notAllowed",getDragItem:l?()=>function Gv(e,t){const i=e.getProvidedColumnGroup().getLeafColumns(),o={};for(const a of i)o[a.getId()]=a.isVisible();const n=[];for(const a of t)i.indexOf(a)>=0&&(n.push(a),gi(i,a));for(const a of i)n.push(a);const s=[],r=e.getLeafColumns();for(const a of n)-1!==r.indexOf(a)&&s.push(a);return{columns:n,columnsInSplit:s,visibleState:o,containerType:s[0]?.pinned}}(t,r.allCols):()=>function Hv(e){const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}(t),dragItemName:i,onDragStarted:()=>{a=!o.get("suppressDragLeaveHidesColumns"),Za(d,!0)},onDragStopped:()=>Za(d,!1),onDragCancelled:()=>Za(d,!1),onGridEnter:g=>{if(a){const{columns:m=[],visibleState:w}=g??{},b=l?A=>!w||w[A.getColId()]:()=>!0,x=m.filter(A=>!A.getColDef().lockVisible&&b(A));n.setColsVisible(x,!0,"uiColumnMoved")}},onGridExit:g=>{if(a){const m=g?.columns?.filter(w=>!w.getColDef().lockVisible)||[];n.setColsVisible(m,!1,"uiColumnMoved")}}};return s.addDragSource(u,!0),u}},class extends Y{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>this.gridBodyCtrl=e.gridBodyCtrl)}isActive(){return this.active&&!this.suppressAnimation}setSuppressAnimation(e){this.suppressAnimation=e}start(){if(this.active)return;const{gos:e}=this;e.get("suppressColumnMoveAnimation")||e.get("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0,this.activeNext=!0)}finish(){this.active&&this.flush(()=>this.activeNext=!1,()=>this.active=!1)}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(){this.animationThreadCount++;const e=this.animationThreadCount,{gridBodyCtrl:t}=this;t.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===e&&t.setColumnMovingCss(!1)})}flush(e,t){const{executeNextFuncs:i,executeLaterFuncs:o}=this;if(0===i.length&&0===o.length)return e(),void t();const n=s=>{for(;s.length;){const r=s.pop();r&&r()}};this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e(),n(i)},0),window.setTimeout(()=>{t(),n(o)},200)})}}],apiFunctions:{moveColumnByIndex:function Sv(e,t,i){e.colMoves?.moveColumnByIndex(t,i,"api")},moveColumns:function Rv(e,t,i){e.colMoves?.moveColumns(t,i,"api")}},dependsOn:[Xc],css:[":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s}.ag-header-group-cell{transition:left .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s}.ag-header-group-cell{transition:right .2s,width .2s}}"]},eu={moduleName:"AutoWidth",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowContainerCtrl=e.center})}getPreferredWidthForColumn(e,t){const i=this.getHeaderCellForColumn(e);if(!i)return-1;const o=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||o.push(i),this.getPreferredWidthForElements(o)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const i=document.createElement("form");i.style.position="fixed";const o=this.centerRowContainerCtrl.eContainer;for(const s of e)this.cloneItemIntoDummy(s,i);o.appendChild(i);const n=i.offsetWidth;return i.remove(),n+(t??this.gos.get("autoSizePadding"))}getHeaderCellForColumn(e){let t=null;for(const i of this.beans.ctrlsSvc.getHeaderRowContainerCtrls()){const o=i.getHtmlElementForColumnHeader(e);null!=o&&(t=o)}return t}cloneItemIntoDummy(e,t){const i=e.cloneNode(!0);i.style.width="",i.style.position="static",i.style.left="";const o=document.createElement("div"),n=o.classList;["ag-header-cell","ag-header-group-cell"].some(a=>i.classList.contains(a))?(n.add("ag-header","ag-header-row"),o.style.position="static"):n.add("ag-row");let r=e.parentElement;for(;r;){if(["ag-header-row","ag-row"].some(l=>r.classList.contains(l))){for(let l=0;l<r.classList.length;l++){const d=r.classList[l];"ag-row-position-absolute"!=d&&n.add(d)}break}r=r.parentElement}o.appendChild(i),t.appendChild(o)}}]},Uv=class extends Y{constructor(e,t,i,o){super(),this.comp=e,this.eResize=t,this.pinned=i,this.columnGroup=o}postConstruct(){if(!this.columnGroup.isResizable())return void this.comp.setResizableDisplayed(!1);const{horizontalResizeSvc:e,gos:t,colAutosize:i}=this.beans,o=e.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(o),!t.get("suppressAutoSize")&&i&&this.addDestroyFunc(i.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnsToResize:t,resizeStartWidth:i,resizeRatios:o,groupAfterColumns:n,groupAfterStartWidth:s,groupAfterRatios:r}=this.getInitialValues(e);this.resizeCols=t,this.resizeStartWidth=i,this.resizeRatios=o,this.resizeTakeFromCols=n,this.resizeTakeFromStartWidth=s,this.resizeTakeFromRatios=r,this.toggleColumnResizing(!0)}onResizing(e,t,i="uiColumnResized"){const o=this.normaliseDragChange(t);this.resizeColumnsFromLocalValues(this.resizeStartWidth+o,i,e)}getInitialValues(e){const t=l=>l.reduce((d,c)=>d+c.getActualWidth(),0),i=(l,d)=>l.map(c=>c.getActualWidth()/d),o=this.getColumnsToResize(),n=t(o),r={columnsToResize:o,resizeStartWidth:n,resizeRatios:i(o,n)};let a=null;if(e&&(a=this.beans.colGroupSvc?.getGroupAtDirection(this.columnGroup,"After")??null),a){const l=a.getDisplayedLeafColumns(),d=r.groupAfterColumns=l.filter(u=>u.isResizable()),c=r.groupAfterStartWidth=t(d);r.groupAfterRatios=i(d,c)}else r.groupAfterColumns=void 0,r.groupAfterStartWidth=void 0,r.groupAfterRatios=void 0;return r}resizeLeafColumnsToFit(e){const t=this.beans.autoWidthCalc.getPreferredWidthForColumnGroup(this.columnGroup),i=this.getInitialValues();t>i.resizeStartWidth&&this.resizeColumns(i,t,e,!0)}resizeColumnsFromLocalValues(e,t,i=!0){this.resizeCols&&this.resizeRatios&&this.resizeColumns({columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:this.resizeTakeFromCols,groupAfterStartWidth:this.resizeTakeFromStartWidth,groupAfterRatios:this.resizeTakeFromRatios},e,t,i)}resizeColumns(e,t,i,o=!0){const{columnsToResize:n,resizeStartWidth:s,resizeRatios:r,groupAfterColumns:a,groupAfterStartWidth:l,groupAfterRatios:d}=e,c=[];c.push({columns:n,ratios:r,width:t}),a&&c.push({columns:a,ratios:d,width:l-(t-s)}),this.beans.colResize?.resizeColumnSets({resizeSets:c,finished:o,source:i}),o&&this.toggleColumnResizing(!1)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}getColumnsToResize(){return this.columnGroup.getDisplayedLeafColumns().filter(t=>t.isResizable())}normaliseDragChange(e){let t=e;return this.gos.get("enableRtl")?"left"!==this.pinned&&(t*=-1):"right"===this.pinned&&(t*=-1),t}destroy(){super.destroy(),this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0}},$v=class extends Y{constructor(e,t,i,o,n){super(),this.pinned=e,this.column=t,this.eResize=i,this.comp=o,this.ctrl=n}postConstruct(){const e=[];let t,i;const o=()=>{if(it(this.eResize,t),!t)return;const{horizontalResizeSvc:r,colAutosize:a}=this.beans,l=r.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(l),i&&a&&e.push(a.addColumnAutosizeListeners(this.eResize,this.column))},n=()=>{for(const r of e)r();e.length=0},s=()=>{const r=this.column.isResizable(),a=!this.gos.get("suppressAutoSize")&&!this.column.getColDef().suppressAutoSize;(r!==t||a!==i)&&(t=r,i=a,n(),o())};s(),this.addDestroyFunc(n),this.ctrl.setRefreshFunction("resize",s)}onResizing(e,t){const{column:i,lastResizeAmount:o,resizeStartWidth:n,beans:s}=this,r=this.normaliseResizeAmount(t),l=[{key:i,newWidth:n+r}],{pinnedCols:d,ctrlsSvc:c,colResize:u}=s;this.column.getPinned()&&(d?.leftWidth??0)+(d?.rightWidth??0)+(r-o)>Ni(c.getGridBodyCtrl().eBodyViewport)-50||(this.lastResizeAmount=r,u?.setColumnWidths(l,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1))}onResizeStart(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.column.resizing=e,this.comp.toggleCss("ag-column-resizing",e)}normaliseResizeAmount(e){let t=e;const i="left"!==this.pinned,o="right"===this.pinned;return this.gos.get("enableRtl")?i&&(t*=-1):o&&(t*=-1),t}},qv={moduleName:"ColumnResize",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,i,o){const n=[],{colModel:s,gos:r,visibleCols:a}=this.beans;for(const l of e){const d=s.getColDefCol(l.key)||s.getCol(l.key);if(d&&(n.push({width:l.newWidth,ratios:[1],columns:[d]}),"shift"===r.get("colResizeDefault")&&(t=!t),t)){const u=a.getColAfter(d);if(!u)continue;const g=d.getActualWidth()-l.newWidth,m=u.getActualWidth()+g;n.push({width:m,ratios:[1],columns:[u]})}}0!==n.length&&this.resizeColumnSets({resizeSets:n,finished:i,source:o})}resizeColumnSets(e){const{resizeSets:t,finished:i,source:o}=e;if(t&&!t.every(c=>function Kv(e){const{columns:t,width:i}=e;let o=0,n=0,s=!0;for(const l of t){o+=l.getMinWidth()||0;const c=l.getMaxWidth();c>0?n+=c:s=!1}return i>=o&&(!s||i<=n)}(c)))return void(i&&en(this.eventSvc,t&&t.length>0?t[0].columns:null,i,o));const s=[],r=[];for(const c of t){const{width:u,columns:g,ratios:m}=c,w={},b={};for(const O of g)r.push(O);let x=!0,A=0;for(;x;){if(A++,A>1e3){tt(31);break}x=!1;const O=[];let V=0,te=u;g.forEach((ce,pe)=>{b[ce.getId()]?te-=w[ce.getId()]:(O.push(ce),V+=m[pe])});const oe=1/V;O.forEach((ce,pe)=>{let $e;pe===O.length-1?$e=te:($e=Math.round(m[pe]*u*oe),te-=$e);const Ue=ce.getMinWidth(),je=ce.getMaxWidth();$e<Ue?($e=Ue,b[ce.getId()]=!0,x=!0):je>0&&$e>je&&($e=je,b[ce.getId()]=!0,x=!0),w[ce.getId()]=$e})}for(const O of g){const V=w[O.getId()];O.getActualWidth()!==V&&(O.setActualWidth(V,o),s.push(O))}}const a=s.length>0;let l=[];if(a){const{colFlex:c,visibleCols:u,colViewport:g}=this.beans;l=c?.refreshFlexedColumns({resizingCols:r,skipSetLeft:!0})??[],u.setLeftValues(o),u.updateBodyWidths(),g.checkViewportColumns()}const d=r.concat(l);(a||i)&&en(this.eventSvc,d,i,o,l)}resizeHeader(e,t,i){if(!e.isResizable())return;const o=e.getActualWidth(),n=e.getMinWidth(),s=e.getMaxWidth(),r=Math.min(Math.max(o+t,n),s);this.setColumnWidths([{key:e,newWidth:r}],i,!0,"uiColumnResized")}createResizeFeature(e,t,i,o,n){return new $v(e,t,i,o,n)}createGroupResizeFeature(e,t,i,o){return new Uv(e,t,i,o)}}],apiFunctions:{setColumnWidths:function Wv(e,t,i=!0,o="api"){e.colResize?.setColumnWidths(t,!1,i,o)}},dependsOn:[wv,eu]},Xv=class extends Y{constructor(e,t){super(),this.removeChildListenersFuncs=[],this.columnGroup=t,this.comp=e}postConstruct(){this.addListenersToChildrenColumns(),this.addManagedListeners(this.columnGroup,{displayedChildrenChanged:this.onDisplayedChildrenChanged.bind(this)}),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))}addListenersToChildrenColumns(){this.removeListenersOnChildrenColumns();const e=this.onWidthChanged.bind(this);for(const t of this.columnGroup.getLeafColumns())t.__addEventListener("widthChanged",e),t.__addEventListener("visibleChanged",e),this.removeChildListenersFuncs.push(()=>{t.__removeEventListener("widthChanged",e),t.__removeEventListener("visibleChanged",e)})}removeListenersOnChildrenColumns(){for(const e of this.removeChildListenersFuncs)e();this.removeChildListenersFuncs=[]}onDisplayedChildrenChanged(){this.addListenersToChildrenColumns(),this.onWidthChanged()}onWidthChanged(){const e=this.columnGroup.getActualWidth();this.comp.setWidth(`${e}px`),this.comp.toggleCss("ag-hidden",0===e)}};function lw(e,t){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);o>=0&&(e[o]=e[e.length-1],e.pop())}}function No(e,t,i){if(e)for(let o=0;o<e.length;o++){const n=e[o];Et(n)&&No(t?n.getDisplayedChildren():n.getChildren(),t,i),i(n)}}function el(e){const t=[];return No(e,!0,i=>{co(i)&&t.push(i)}),t}var uw={moduleName:"ColumnGroup",version:ge,dynamicBeans:{headerGroupCellCtrl:class extends Na{constructor(){super(...arguments),this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,i,o,n){const{column:s,beans:r}=this,{context:a,colNames:l,colHover:d,rangeSvc:c,colResize:u}=r;this.comp=e,n=zn(this,a,n),this.setGui(t,n),this.displayName=l.getDisplayNameForColumnGroup(s,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(n),this.setupExpandable(n),this.setupTooltip(),this.setupAutoHeight({wrapperElement:o,compBean:n}),this.setupUserComp(),this.addHeaderMouseListeners(n),this.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const g=this.rowCtrl.pinned,m=s.getProvidedColumnGroup().getLeafColumns();d?.createHoverFeature(n,m,t),c?.createRangeHighlightFeature(n,s,e),n.createManagedBean(new Ga(s,t,r)),n.createManagedBean(new Xv(e,s)),u?this.resizeFeature=n.createManagedBean(u.createGroupResizeFeature(e,i,g,s)):e.setResizableDisplayed(!1),n.createManagedBean(new ln(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(n,m),n.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(n),n.addDestroyFunc(()=>this.clearComponent())}getHeaderClassParams(){const{column:e,beans:t}=this,i=e.getDefinition();return Ie(t.gos,{colDef:i,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,i=e.get("groupHeaderHeight");null!=i?0===i?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(i):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const i of t)e.addManagedListeners(i,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,i)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),i=t[0]===e,o=rt(t)===e;if(!i&&!o)return;const n=e.getHighlighted();let r=!1,a=!1;if(this.rowCtrl.getHeaderCellCtrls().find(l=>l.column.isMoving())){const l=this.beans.gos.get("enableRtl"),d=1===n,c=0===n;i&&(l?a=d:r=c),o&&(l?r=c:a=d)}this.comp.toggleCss("ag-header-highlight-before",r),this.comp.toggleCss("ag-header-highlight-after",a)}resizeHeader(e,t){const{resizeFeature:i}=this;if(!i)return;const o=i.getInitialValues(t);i.resizeColumns(o,o.resizeStartWidth+e,"uiColumnResized",!0)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}setupUserComp(){const{colGroupSvc:e,userCompFactory:t,gos:i,enterpriseMenuFactory:o}=this.beans,n=this.column,s=n.getProvidedColumnGroup(),a=function Bg(e,t){const i=t.columnGroup.getColGroupDef();return e.getCompDetails(i,bg,"agColumnGroupHeader",t)}(t,Ie(i,{displayName:this.displayName,columnGroup:n,setExpanded:l=>{e.setColumnGroupOpened(s,l,"gridInitializing")},setTooltip:(l,d)=>{i.assertModuleRegistered("Tooltip",3),this.setupTooltip(l,d)},showColumnMenu:(l,d)=>o?.showMenuAfterButtonClick(s,l,"columnMenu",d),showColumnMenuAfterMouseClick:(l,d)=>o?.showMenuAfterMouseEvent(s,l,"columnMenu",d),eGridHeader:this.eGui}));a&&this.comp.setUserCompDetails(a)}addHeaderMouseListeners(e){const t=n=>this.handleMouseOverChange("mouseenter"===n.type);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column.getProvidedColumnGroup()),contextmenu:n=>this.handleContextMenuMouseEvent(n,void 0,this.column.getProvidedColumnGroup())})}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(e,t){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this.tooltipFeature,this,e,t)}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const i=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:i,expandableChanged:i})}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.comp.setAriaExpanded(this.expandable?t?"true":"false":void 0),this.refreshHeaderStyles()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),i=Cc(t,this.gos,null,e);e.isPadding()?(i.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(n=>n.isSpanHeaderHeight())&&i.push("ag-header-span-height")):(i.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&i.push("ag-header-cell-wrap-text"));for(const o of i)this.comp.toggleCss(o,!0)}setupMovingCss(e){const{column:t}=this,o=t.getProvidedColumnGroup().getLeafColumns(),n=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const s of o)e.addManagedListeners(s,{movingChanged:n});n()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||this.focusThis()}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();if(this.expandable&&t&&"Enter"===e.key){const i=this.column,o=!i.isExpanded();this.beans.colGroupSvc.setColumnGroupOpened(i.getProvidedColumnGroup(),o,"uiColumnExpanded")}}setDragSource(e){!this.isAlive()||this.isSuppressMoving()||(this.removeDragSource(),e&&(this.dragSource=this.beans.colMoves?.setDragSourceForHeader(e,this.column,this.displayName)??null))}isSuppressMoving(){return this.gos.get("suppressMovableColumns")||this.column.getLeafColumns().some(e=>e.getColDef().suppressMovable||e.getColDef().lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}}},beans:[class extends Y{constructor(){super(...arguments),this.beanName="colGroupSvc"}getColumnGroupState(){const e=[];return Ii(null,this.beans.colModel.getColTree(),i=>{zt(i)&&e.push({groupId:i.getGroupId(),open:i.isExpanded()})}),e}resetColumnGroupState(e){const t=this.beans.colModel.getColDefColTree();if(!t)return;const i=[];Ii(null,t,o=>{if(zt(o)){const n=o.getColGroupDef(),s={groupId:o.getGroupId(),open:n?n.openByDefault:void 0};i.push(s)}}),this.setColumnGroupState(i,e)}setColumnGroupState(e,t){const{colModel:i,colAnimation:o,visibleCols:n,eventSvc:s}=this.beans;if(!i.getColTree().length)return;o?.start();const a=[];for(const l of e){const c=l.open,u=this.getProvidedColGroup(l.groupId);u&&u.isExpanded()!==c&&(u.setExpanded(c),a.push(u))}n.refresh(t,!0),a.length&&s.dispatchEvent({type:"columnGroupOpened",columnGroup:1===a.length?a[0]:void 0,columnGroups:a}),o?.finish()}setColumnGroupOpened(e,t,i){let o;o=zt(e)?e.getId():e||"",this.setColumnGroupState([{groupId:o,open:t}],i)}getProvidedColGroup(e){let t=null;return Ii(null,this.beans.colModel.getColTree(),i=>{zt(i)&&i.getId()===e&&(t=i)}),t}getGroupAtDirection(e,t){const i=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),o=e.getDisplayedLeafColumns(),n="After"===t?rt(o):o[0],s=`getCol${t}`;for(;;){const r=this.beans.visibleCols[s](n);if(!r)return null;const a=this.getColGroupAtLevel(r,i);if(a!==e)return a}}getColGroupAtLevel(e,t){let o,n,i=e.getParent();for(;o=i.getProvidedColumnGroup().getLevel(),n=i.getPaddingLevel(),!(o+n<=t);)i=i.getParent();return i}updateOpenClosedVisibility(){No(this.beans.visibleCols.getAllTrees(),!1,t=>{Et(t)&&t.calculateDisplayedColumns()})}getColumnGroup(e,t){if(!e)return null;if(Et(e))return e;const i=this.beans.visibleCols.getAllTrees(),o="number"==typeof t;let n=null;return No(i,!1,s=>{if(Et(s)){const r=s;let a;a=o?e===r.getGroupId()&&t===r.getPartId():e===r.getGroupId(),a&&(n=r)}}),n}createColumnGroups(e){const{columns:t,idCreator:i,pinned:o,oldDisplayedGroups:n,isStandaloneStructure:s}=e,r=this.mapOldGroupsById(n),a=[];let l=t;for(;l.length;){const d=l;l=[];let c=0;const u=g=>{const m=c;c=g;const w=d[m],x=(Et(w)?w.getProvidedColumnGroup():w).getOriginalParent();if(null==x){for(let O=m;O<g;O++)a.push(d[O]);return}const A=this.createColumnGroup(x,i,r,o,s);for(let O=m;O<g;O++)A.addChild(d[O]);l.push(A)};for(let g=1;g<d.length;g++){const m=d[g],b=(Et(m)?m.getProvidedColumnGroup():m).getOriginalParent(),x=d[c];b!==(Et(x)?x.getProvidedColumnGroup():x).getOriginalParent()&&u(g)}c<d.length&&u(d.length)}return s||this.setupParentsIntoCols(a,null),a}createProvidedColumnGroup(e,t,i,o,n,s,r){const a=n.getUniqueKey(t.groupId||null,null),l=Ur(this.beans,t,a),d=new Hn(l,a,!1,i);this.createBean(d);const c=this.findExistingGroup(t,s);c&&s.splice(c.idx,1);const u=c?.group;u&&d.setExpanded(u.isExpanded());const g=id(this.beans,l.children,i+1,e,o,n,s,r);return d.setChildren(g),d}balanceColumnTree(e,t,i,o){const n=[];for(let s=0;s<e.length;s++){const r=e[s];if(zt(r)){const a=r,l=this.balanceColumnTree(a.getChildren(),t+1,i,o);a.setChildren(l),n.push(a)}else{let a,l;for(let d=t;d<i;d++){const c=o.getUniqueKey(null,null),u=Ur(this.beans,null,c),g=new Hn(u,c,!0,d);this.createBean(g),l&&l.setChildren([g]),l=g,a||(a=l)}if(a&&l){if(n.push(a),e.some(c=>zt(c))){l.setChildren([r]);continue}l.setChildren(e);break}n.push(r)}}return n}findDepth(e){let t=0,i=e;for(;i?.[0]&&zt(i[0]);)t++,i=i[0].getChildren();return t}findMaxDepth(e,t){let i=t;for(let o=0;o<e.length;o++){const n=e[o];if(zt(n)){const r=this.findMaxDepth(n.getChildren(),t+1);i<r&&(i=r)}}return i}balanceTreeForAutoCols(e,t){const i=[];for(const o of e){let n=o;for(let s=t-1;s>=0;s--){const r=new Hn(null,`FAKE_PATH_${o.getId()}}_${s}`,!0,s);this.createBean(r),r.setChildren([n]),n.originalParent=r,n=r}0===t&&(o.originalParent=null),i.push(n)}return i}findExistingGroup(e,t){if(null!=e.groupId)for(let o=0;o<t.length;o++){const n=t[o];if(n.getColGroupDef()&&n.getId()===e.groupId)return{idx:o,group:n}}}createColumnGroup(e,t,i,o,n){const s=e.getGroupId(),r=t.getInstanceIdForKey(s);let l=i[Kd(s,r)];return l&&l.getProvidedColumnGroup()!==e&&(l=null),p(l)?l.reset():(l=new $n(e,s,r,o),n||this.createBean(l)),l}mapOldGroupsById(e){const t={},i=o=>{for(const n of o)if(Et(n)){const s=n;t[n.getUniqueId()]=s,i(s.getChildren())}};return e&&i(e),t}setupParentsIntoCols(e,t){for(const i of e??[])if(i.parent!==t&&(this.beans.colViewport.colsWithinViewportHash=""),i.parent=t,Et(i)){const o=i;this.setupParentsIntoCols(o.getChildren(),o)}}}],apiFunctions:{getAllDisplayedColumnGroups:function aw(e){return e.visibleCols.getAllTrees()},getCenterDisplayedColumnGroups:function sw(e){return e.visibleCols.treeCenter},getColumnGroup:function Zv(e,t,i){return e.colGroupSvc?.getColumnGroup(t,i)??null},getColumnGroupState:function tw(e){return e.colGroupSvc?.getColumnGroupState()??[]},getDisplayNameForColumnGroup:function ew(e,t,i){return e.colNames.getDisplayNameForColumnGroup(t,i)||""},getLeftDisplayedColumnGroups:function nw(e){return e.visibleCols.treeLeft},getProvidedColumnGroup:function Jv(e,t){return e.colGroupSvc?.getProvidedColGroup(t)??null},getRightDisplayedColumnGroups:function rw(e){return e.visibleCols.treeRight},resetColumnGroupState:function ow(e){e.colGroupSvc?.resetColumnGroupState("api")},setColumnGroupOpened:function Qv(e,t,i){e.colGroupSvc?.setColumnGroupOpened(t,i,"api")},setColumnGroupState:function iw(e,t){e.colGroupSvc?.setColumnGroupState(t,"api")}}},hw={tag:"div",cls:"ag-skeleton-container"},pw={moduleName:"CheckboxCellRenderer",version:ge,userComponents:{agCheckboxCellRenderer:class extends ot{constructor(){super(Xm,[ua]),this.eCheckbox=fe,this.registerCSS(".ag-checkbox-cell{height:100%}")}init(e){this.refresh(e);const{eCheckbox:t,beans:i}=this,o=t.getInputElement();o.setAttribute("tabindex","-1"),Be(o,"polite"),this.addManagedListeners(o,{click:n=>{if(Vo(n),t.isDisabled())return;const s=t.getValue();this.onCheckboxChanged(s)},dblclick:n=>{Vo(n)}}),this.addManagedElementListeners(e.eGridCell,{keydown:n=>{if(" "===n.key&&!t.isDisabled()){e.eGridCell===le(i)&&t.toggle();const s=t.getValue();this.onCheckboxChanged(s),n.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,i=!0;const{value:o,column:n,node:s}=e;if(s.group&&n)if("boolean"==typeof o)t=o;else{const u=n.getColId();u.startsWith(go)?t=null==o||""===o?void 0:"true"===o:s.aggData&&void 0!==s.aggData[u]||s.sourceRowIndex>=0?t=o??void 0:i=!1}else t=o??void 0;const{eCheckbox:r}=this;if(!i)return void r.setDisplayed(!1);r.setValue(t);const a=e.disabled??!n?.isCellEditable(s);r.setDisabled(a);const l=this.getLocaleTextFunc(),d=Hi(l,t),c=a?d:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${d})`;r.setInputAriaLabel(c)}onCheckboxChanged(e){const{params:t}=this,{column:i,node:o,value:n}=t;this.beans?.editSvc?.setEditingCells([{column:i,colId:i.getColId(),rowIndex:o.rowIndex,rowPinned:o.rowPinned,state:"changed",oldValue:n,newValue:n}],{update:!0,forceRefreshOfEditCellsOnly:!0});const s=o.setDataValue(i,e,"renderer");this.beans.editSvc?.stopEditing({rowNode:o,column:i},{source:this.beans.editSvc?.isBatchEditing()?"ui":"api"}),s||this.updateCheckbox(t)}}}},fw={moduleName:"SkeletonCellRenderer",version:ge,userComponents:{agSkeletonCellRenderer:class extends ot{constructor(){super(hw)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>xe(e.eParentOfValue)),xe(e.eParentOfValue,t),e.deferRender?this.setupLoading(e):e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){const e=this.getLocaleTextFunc();this.getGui().textContent=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");ee(this.getGui(),t)}setupLoading(e){const t=xt({tag:"div",cls:"ag-skeleton-effect"}),i=e.node.rowIndex;if(null!=i){const s=75+25*(i%2==0?Math.sin(i):Math.cos(i));t.style.width=`${s}%`}this.getGui().appendChild(t);const o=this.getLocaleTextFunc(),n=e.deferRender?o("ariaDeferSkeletonCellLoading","Cell is loading"):o("ariaSkeletonCellLoading","Row data is loading");ee(this.getGui(),n)}refresh(e){return!1}}}};function tl(e,t){if(!e)return;const i=e,o={};for(const n of Object.keys(i)){if(t&&t.indexOf(n)>=0||En.has(n))continue;const s=i[n];o[n]="object"==typeof s&&null!==s&&s.constructor===Object?tl(s):s}return o}function Jn(e,t,i){if(!t||!e)return;if(!i)return e[t];const o=t.split(".");let n=e;for(let s=0;s<o.length;s++){if(null==n)return;n=n[o[s]]}return n}var Hw=["dateTimeString","dateString","text","number","boolean","date"];function tu(e,t){const i={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(i.columnTypes=[...ks(e.columnTypes),...ks(t.columnTypes)]),i}function iu(e,t,i){return t?t.baseDataType===e.baseDataType||(se(46),!1):(se(45,{parentCellDataType:i}),!1)}function ou(e,t){if(e.valueFormatter)return i=>{if(i.node?.group){const o=(i.colDef.pivotValueColumn??i.column).getAggFunc();if(o){if("first"===o||"last"===o)return e.valueFormatter(i);if("number"===e.baseDataType&&"count"!==o){if("number"==typeof i.value)return e.valueFormatter(i);if("object"==typeof i.value){if(!i.value)return;if("toNumber"in i.value)return e.valueFormatter({...i,value:i.value.toNumber()});if("value"in i.value)return e.valueFormatter({...i,value:i.value.value})}}return}}else if(t.get("groupHideOpenParents")&&i.column.isRowGroupActive()&&"string"==typeof i.value&&!e.dataTypeMatcher?.(i.value))return;return e.valueFormatter(i)}}function il(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([i,o])=>function Nw(e,t,i,o){if(!t[i])return!1;const n=e[i];return null===n?(t[i]=!1,!1):void 0===o?!!n:n===o}(e,t,i,o))}function zw(e,t){const i=hd(e);for(const o of t)delete i[o],"rowGroup"===o?delete i.rowGroupIndex:"pivot"===o&&delete i.pivotIndex;return i}var Ww={moduleName:"DataType",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference={},this.columnStateUpdateListenerDestroyFuncs=[],this.columnDefinitionPropsPerDataType={number:()=>({cellEditor:"agNumberCellEditor"}),boolean:()=>({cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:e=>!!e.colDef.editable&&" "===e.event.key}),date:({formatValue:e})=>({cellEditor:"agDateCellEditor",keyCreator:e}),dateString:({formatValue:e})=>({cellEditor:"agDateStringCellEditor",keyCreator:e}),dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object:({formatValue:e,colModel:t,colId:i})=>({cellEditorParams:{useFormatter:!0},comparator:(o,n)=>{const s=t.getColDefCol(i),r=s?.getColDef();if(!s||!r)return 0;const a=null==o?"":e({column:s,node:null,value:o}),l=null==n?"":e({column:s,node:null,value:n});return a===l?0:a>l?1:-1},keyCreator:e}),text:()=>({})}}wireBeans(e){this.colModel=e.colModel}postConstruct(){this.processDataTypeDefinitions(),this.addManagedPropertyListener("dataTypeDefinitions",e=>{this.processDataTypeDefinitions(),this.colModel.recreateColumnDefs(e)})}processDataTypeDefinitions(){const e=this.getDefaultDataTypes(),t={},i={},o=c=>u=>{const{column:g,node:m,value:w}=u;let b=g.getColDef().valueFormatter;return b===c.groupSafeValueFormatter&&(b=c.valueFormatter),this.beans.valueSvc.formatValue(g,m,w,b)};for(const c of Object.keys(e)){const u=e[c],g={...u,groupSafeValueFormatter:ou(u,this.gos)};t[c]=g,i[c]=o(g)}const n=this.gos.get("dataTypeDefinitions")??{},s={};for(const c of Object.keys(n)){const u=n[c],g=this.processDataTypeDefinition(u,n,[c],e);g&&(t[c]=g,u.dataTypeMatcher&&(s[c]=u.dataTypeMatcher),i[c]=o(g))}const{valueParser:r,valueFormatter:a}=e.object,{valueParser:l,valueFormatter:d}=t.object;this.hasObjectValueParser=l!==r,this.hasObjectValueFormatter=d!==a,this.formatValueFuncs=i,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(s,e)}sortKeysInMatchers(e,t){const i={...e};for(const o of Hw)delete i[o],i[o]=e[o]??t[o].dataTypeMatcher;return i}processDataTypeDefinition(e,t,i,o){let n;const s=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let r=o[s];const a=t[s];if(r&&a&&(r=a),!iu(e,r,s))return;n=tu(r,e)}else{if(i.includes(s))return void se(44);const r=t[s];if(!iu(e,r,s))return;const a=this.processDataTypeDefinition(r,t,[...i,s],o);if(!a)return;n=tu(a,e)}return{...n,groupSafeValueFormatter:ou(n,this.gos)}}updateColDefAndGetColumnType(e,t,i){let{cellDataType:o}=t;const{field:n}=t;if(void 0===o&&(o=e.cellDataType),(null==o||!0===o)&&(o=!!this.canInferCellDataType(e,t)&&this.inferCellDataType(n,i)),!o)return void(e.cellDataType=!1);const s=this.dataTypeDefinitions[o];if(s)return e.cellDataType=o,s.groupSafeValueFormatter&&(e.valueFormatter=s.groupSafeValueFormatter),s.valueParser&&(e.valueParser=s.valueParser),s.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,o,s,i),s.columnTypes;se(47,{cellDataType:o})}addColumnListeners(e){if(!this.isPendingInference)return;const t=this.columnStateUpdatesPendingInference[e.getColId()];if(!t)return;const i=o=>{t.add(o.key)};e.__addEventListener("columnStateUpdated",i),this.columnStateUpdateListenerDestroyFuncs.push(()=>e.__removeEventListener("columnStateUpdated",i))}canInferCellDataType(e,t){const{gos:i}=this;if(!ut(i))return!1;const o={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(il(t,o))return!1;const n=null===t.type?e.type:t.type;if(n){const s=i.get("columnTypes")??{};if(ks(n).some(a=>{const l=s[a.trim()];return l&&il(l,o)}))return!1}return!il(e,o)}inferCellDataType(e,t){if(!e)return;let i;const o=this.getInitialData();if(o){const s=e.includes(".")&&!this.gos.get("suppressFieldDotNotation");i=Jn(o,e,s)}else this.initWaitForRowData(t);return null==i?void 0:Object.keys(this.dataTypeMatchers).find(s=>this.dataTypeMatchers[s](i))??"object"}getInitialData(){const e=this.gos.get("rowData");if(e?.length)return e[0];if(this.initialData)return this.initialData;{const t=this.beans.rowModel.rootNode?._leafs;if(t?.length)return t[0].data}return null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:i,eventSvc:o}=this.beans;t&&i&&(i.shouldQueueResizeOperations=!0);const[n]=this.addManagedEventListeners({rowDataUpdateStarted:s=>{const{firstRowData:r}=s;r&&(n?.(),this.isPendingInference=!1,this.processColumnsPendingInference(r,t),this.columnStateUpdatesPendingInference={},t&&i?.processResizeOperations(),o.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const i=[];this.destroyColumnStateUpdateListeners();const o={},n={};for(const s of Object.keys(this.columnStateUpdatesPendingInference)){const r=this.columnStateUpdatesPendingInference[s],a=this.colModel.getCol(s);if(!a)return;const l=a.getColDef();if(!this.resetColDefIntoCol(a,"cellDataTypeInferred"))return;const d=a.getColDef();if(t&&d.type&&d.type!==l.type){const c=zw(a,r);c.rowGroup&&null==c.rowGroupIndex&&(o[s]=c),c.pivot&&null==c.pivotIndex&&(n[s]=c),i.push(c)}}t&&i.push(...this.generateColumnStateForRowGroupAndPivotIndexes(o,n)),i.length&&Pi(this.beans,{state:i},"cellDataTypeInferred"),this.initialData=null}generateColumnStateForRowGroupAndPivotIndexes(e,t){const i={},{rowGroupColsSvc:o,pivotColsSvc:n}=this.beans;return o?.restoreColumnOrder(i,e),n?.restoreColumnOrder(i,t),Object.values(i)}resetColDefIntoCol(e,t){const i=e.getUserProvidedColDef();if(!i)return!1;const o=Ts(this.beans,i,e.getColId());return e.setColDef(o,i,t),!0}getDateStringTypeDefinition(e){const{dateString:t}=this.dataTypeDefinitions;return e?this.getDataTypeDefinition(e)??t:t}getDateParserFunction(e){return this.getDateStringTypeDefinition(e).dateParser}getDateFormatterFunction(e){return this.getDateStringTypeDefinition(e).dateFormatter}getDateIncludesTimeFlag(e){return"dateTime"===e||"dateTimeString"===e}getDataTypeDefinition(e){const t=e.getColDef();if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(null==t)return!0;const i=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!i||i(t)}validateColDef(e){const t=i=>se(48,{property:i});if("object"===e.cellDataType){const{object:i}=this.dataTypeDefinitions;e.valueFormatter===i.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&t("Formatter"),e.editable&&e.valueParser===i.valueParser&&!this.hasObjectValueParser&&t("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||"string"!=typeof t)return;const{dataTypeDefinitions:i,beans:o,formatValueFuncs:n}=this,s=i[t];s&&o.colFilter?.setColDefPropsForDataType(e,s,n[t])}getFormatValue(e){return this.formatValueFuncs[e]}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,i,o){const s=this.columnDefinitionPropsPerDataType[i.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:i,colId:o,formatValue:this.formatValueFuncs[t]});Object.assign(e,s)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),i=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:o=>qt(o.newValue&&String(o.newValue)),valueFormatter:o=>null==o.value?"":o.value instanceof Date&&!isNaN(o.value.getTime())?oi(o.value,i)??"":t("invalidDate","Invalid Date"),dataTypeMatcher:o=>o instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:i=>qt(i)??void 0,dateFormatter:i=>oi(i??null,t)??void 0,valueParser:i=>Os(String(i.newValue))?i.newValue:null,valueFormatter:i=>Os(String(i.value))?String(i.value):"",dataTypeMatcher:i=>"string"==typeof i&&Os(i)}}getDefaultDataTypes(){const e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:t=>""===t.newValue?.trim?.()?null:Number(t.newValue),valueFormatter:t=>null==t.value?"":"number"!=typeof t.value||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:t=>"number"==typeof t},text:{baseDataType:"text",valueParser:t=>""===t.newValue?null:L(t.newValue),dataTypeMatcher:t=>"string"==typeof t},boolean:{baseDataType:"boolean",valueParser:t=>null==t.newValue?t.newValue:""===t.newValue?.trim?.()?null:"true"===String(t.newValue).toLowerCase(),valueFormatter:t=>null==t.value?"":String(t.value),dataTypeMatcher:t=>"boolean"==typeof t},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:t=>"string"==typeof t&&function ep(e){return Os(e,!0)}(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>L(t.value)??""}}}destroyColumnStateUpdateListeners(){for(const e of this.columnStateUpdateListenerDestroyFuncs)e();this.columnStateUpdateListenerDestroyFuncs=[]}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference={},this.destroyColumnStateUpdateListeners(),super.destroy()}}],dependsOn:[pw]},Uw={moduleName:"ColumnFlex",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="colFlex",this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth);const i=this.flexViewportWidth,{visibleCols:o,colDelayRenderSvc:n}=this.beans,s=o.centerCols;let r=-1;if(e.resizingCols){const b=new Set(e.resizingCols);for(let x=s.length-1;x>=0;x--)if(b.has(s[x])){r=x;break}}let a=!1;const l=s.map((b,x)=>{const A=b.getFlex(),O=null!=A&&A>0&&x>r;return a||(a=O),{col:b,isFlex:O,flex:Math.max(0,A??0),initialSize:b.getActualWidth(),min:b.getMinWidth(),max:b.getMaxWidth(),targetSize:0}});if(a?(n?.hideColumns("colFlex"),this.columnsHidden=!0):this.columnsHidden&&this.revealColumns(n),!i||!a)return[];let d=l.length,c=l.reduce((b,x)=>b+x.flex,0),u=i;const g=(b,x)=>{b.frozenSize=x,b.col.setActualWidth(x,t),u-=x,c-=b.flex,d-=1},m=b=>null!=b.frozenSize;for(const b of l)b.isFlex||g(b,b.initialSize);for(;d>0;){const b=Math.round(c<1?u*c:u);let x,A=0,O=0;for(const oe of l){if(m(oe))continue;x=oe,O+=b*(oe.flex/c);const pe=Math.round(O-A);oe.targetSize=pe,A+=pe}x&&(x.targetSize+=b-A);let V=0;for(const oe of l){if(m(oe))continue;const ce=oe.targetSize,pe=Math.min(Math.max(ce,oe.min),oe.max);V+=pe-ce,oe.violationType=pe===ce?void 0:pe<ce?"max":"min",oe.targetSize=pe}const te=0===V?"all":V>0?"min":"max";for(const oe of l)m(oe)||("all"===te||oe.violationType===te)&&g(oe,oe.targetSize)}e.skipSetLeft||o.setLeftValues(t),e.updateBodyWidths&&o.updateBodyWidths();const w=l.filter(b=>b.isFlex&&!b.violationType).map(b=>b.col);if(e.fireResizedEvent){const b=l.filter(A=>A.initialSize!==A.frozenSize).map(A=>A.col),x=l.filter(A=>A.flex).map(A=>A.col);en(this.eventSvc,b,!0,t,x)}return this.revealColumns(n),w}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:i}=e.colDef;void 0!==t?e.flex=t:void 0!==i&&(e.flex=i)}setColFlex(e,t){e.flex=t??null,e.dispatchStateUpdatedEvent("flex")}}]},nu={moduleName:"ColumnApi",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.rowGroupColsSvc=e.rowGroupColsSvc,this.pivotColsSvc=e.pivotColsSvc}getColumnDefs(e,t,i,o,n=!1){const s=e.slice();t?s.sort((l,d)=>i.indexOf(l)-i.indexOf(d)):(i||n)&&s.sort((l,d)=>o.indexOf(l)-o.indexOf(d));const r=this.rowGroupColsSvc?.columns,a=this.pivotColsSvc?.columns;return this.buildColumnDefs(s,r,a)}buildColumnDefs(e,t=[],i=[]){const o=[],n={};for(const s of e){let a=!0,l=this.createDefFromColumn(s,t,i),d=s.getOriginalParent(),c=null;for(;d;){let u=null;if(d.isPadding()){d=d.getOriginalParent();continue}const g=n[d.getGroupId()];if(g){g.children.push(l),a=!1;break}if(u=this.createDefFromGroup(d),u&&(u.children=[l],n[u.groupId]=u,l=u,d=d.getOriginalParent()),null!=d&&c===d){a=!1;break}c=d}a&&o.push(l)}return o}createDefFromGroup(e){const t=tl(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,i){const o=tl(e.getColDef());return o.colId=e.getColId(),o.width=e.getActualWidth(),o.rowGroup=e.isRowGroupActive(),o.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,o.pivot=e.isPivotActive(),o.pivotIndex=e.isPivotActive()?i.indexOf(e):null,o.aggFunc=e.isValueActive()?e.getAggFunc():null,o.hide=!e.isVisible()||void 0,o.pinned=e.isPinned()?e.getPinned():null,o.sort=e.getSort()?e.getSort():null,o.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,o}}],apiFunctions:{getColumnDef:function mw(e,t){const i=e.colModel.getColDefCol(t);return i?i.getColDef():null},getDisplayNameForColumn:function vw(e,t,i){return e.colNames.getDisplayNameForColumn(t,i)||""},getColumn:function ww(e,t){return e.colModel.getColDefCol(t)},getColumns:function bw(e){return e.colModel.getColDefCols()},applyColumnState:function yw(e,t){return Pi(e,t,"api")},getColumnState:function Sw(e){return As(e)},resetColumnState:function Rw(e){!function rg(e,t){const{colModel:i,autoColSvc:o,selectionColSvc:n,eventSvc:s,gos:r}=e,a=i.getColDefCols();if(!a?.length)return;const d=Jl(i.getColDefColTree()),c=[];let u=1e3,g=1e3;const m=O=>{const V=hd(O);K(V.rowGroupIndex)&&V.rowGroup&&(V.rowGroupIndex=u++),K(V.pivotIndex)&&V.pivot&&(V.pivotIndex=g++),c.push(V)};o?.getColumns()?.forEach(m),n?.getColumns()?.forEach(m),d?.forEach(m),Pi(e,{state:c},t);const w=o?.getColumns()??[];Pi(e,{state:[...n?.getColumns()??[],...w,...a].map(O=>({colId:O.colId})),applyOrder:!0},t),s.dispatchEvent(Ie(r,{type:"columnsReset",source:t}))}(e,"api")},isPinning:function Ew(e){return e.visibleCols.isPinningLeft()||e.visibleCols.isPinningRight()},isPinningLeft:function xw(e){return e.visibleCols.isPinningLeft()},isPinningRight:function Pw(e){return e.visibleCols.isPinningRight()},getDisplayedColAfter:function Fw(e,t){return e.visibleCols.getColAfter(t)},getDisplayedColBefore:function Dw(e,t){return e.visibleCols.getColBefore(t)},setColumnsVisible:function Mw(e,t,i){e.colModel.setColsVisible(t,i,"api")},setColumnsPinned:function _w(e,t,i){e.pinnedCols?.setColsPinned(t,i,"api")},getAllGridColumns:function kw(e){return e.colModel.getCols()},getDisplayedLeftColumns:function Tw(e){return e.visibleCols.leftCols},getDisplayedCenterColumns:function Aw(e){return e.visibleCols.centerCols},getDisplayedRightColumns:function Iw(e){return e.visibleCols.rightCols},getAllDisplayedColumns:function Ow(e){return e.visibleCols.allCols},getAllDisplayedVirtualColumns:function Lw(e){return e.colViewport.getViewportColumns()},getColumnDefs:function Cw(e){return e.colModel.getColumnDefs(!0)}}},Yw={moduleName:"CellRendererFunction",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){return e.cellRenderer?class i{refresh(){return!1}getGui(){return this.eGui}init(n){const s=t(n),r=typeof s;this.eGui="string"!==r&&"number"!==r&&"boolean"!==r?null!=s?s:xt({tag:"span"}):Jt("<span>"+s+"</span>")}}:null}}]},t0={wrapperBorder:!0,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarBackgroundColor:{ref:"chromeBackgroundColor"},sideButtonBarBackgroundColor:{ref:"sideBarBackgroundColor"},sideButtonBarTopPadding:0,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineColor:"transparent",sideButtonSelectedUnderlineTransitionDuration:0,sideButtonBackgroundColor:"transparent",sideButtonTextColor:{ref:"textColor"},sideButtonHoverBackgroundColor:{ref:"sideButtonBackgroundColor"},sideButtonHoverTextColor:{ref:"sideButtonTextColor"},sideButtonSelectedBackgroundColor:mt,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},cellFontFamily:{ref:"fontFamily"},headerFontWeight:500,headerFontSize:{ref:"fontSize"},dataFontSize:{ref:"fontSize"},headerTextColor:{ref:"textColor"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:bt,rangeSelectionBackgroundColor:ni(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:ni(.5),rangeHeaderHighlightColor:{ref:"foregroundColor",mix:.08,onto:"headerBackgroundColor"},rowNumbersSelectedColor:ni(.5),rowHoverColor:ni(.08),columnHoverColor:ni(.05),selectedRowBackgroundColor:ni(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:mt,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",rowHeight:{calc:"max(iconSize, dataFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,headerHeight:{calc:"max(iconSize, dataFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,paginationPanelHeight:{ref:"rowHeight",calc:"max(rowHeight, 22px)"},dragHandleColor:Rt(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:Rt(.1),iconButtonActiveColor:bt,iconButtonActiveBackgroundColor:ni(.28),iconButtonActiveIndicatorColor:bt,menuBorder:{color:Rt(.2)},menuBackgroundColor:ht(.03),menuTextColor:ht(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"},setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:Rt(.8),dialogShadow:{ref:"popupShadow"},cellEditingBorder:{color:bt},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},dialogBorder:{color:Rt(.2)},panelBackgroundColor:mt,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,columnSelectIndentSize:{ref:"iconSize"},toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:Rt(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:Rt(.13)},selectCellBackgroundColor:Rt(.07),selectCellBorder:{color:Rt(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:mt,filterPanelApplyButtonBackgroundColor:bt,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:si,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:si,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:Rt(.15),statusBarLabelColor:si,statusBarLabelFontWeight:500,statusBarValueColor:si,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedRowTextColor:{ref:"textColor"}},su={cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"}},o0={...su,cellBatchEditTextColor:"#f3d0b3"},s0=(()=>nt({feature:"batchEditStyle",params:su,css:".ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color);display:inherit}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}"}))(),ar=":where(.ag-button){background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0;text-indent:inherit;text-shadow:inherit;text-transform:inherit;word-spacing:inherit;&:disabled{cursor:default}&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:none}}.ag-standard-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--ag-button-background-color);border:var(--ag-button-border);border-radius:var(--ag-button-border-radius);color:var(--ag-button-text-color);cursor:pointer;font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding);&:hover{background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}&:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}&:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}}",lr={buttonTextColor:"inherit",buttonFontWeight:"normal",buttonBackgroundColor:"transparent",buttonBorder:!1,buttonBorderRadius:{ref:"borderRadius"},buttonHorizontalPadding:{calc:"spacing * 2"},buttonVerticalPadding:{ref:"spacing"},buttonHoverTextColor:{ref:"buttonTextColor"},buttonHoverBackgroundColor:{ref:"buttonBackgroundColor"},buttonHoverBorder:{ref:"buttonBorder"},buttonActiveTextColor:{ref:"buttonHoverTextColor"},buttonActiveBackgroundColor:{ref:"buttonHoverBackgroundColor"},buttonActiveBorder:{ref:"buttonHoverBorder"},buttonDisabledTextColor:{ref:"inputDisabledTextColor"},buttonDisabledBackgroundColor:{ref:"inputDisabledBackgroundColor"},buttonDisabledBorder:{ref:"inputDisabledBorder"}},l0=(()=>nt({feature:"buttonStyle",params:{...lr,buttonBackgroundColor:mt,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:bt}},css:ar}))(),c0=(()=>nt({feature:"buttonStyle",params:{...lr,buttonBackgroundColor:mt,buttonBorder:{color:bt},buttonFontWeight:600,buttonTextColor:bt,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBackgroundColor:bt,buttonActiveTextColor:mt},css:ar}))(),ol=(()=>nt({feature:"columnDropStyle",css:".ag-column-drop-vertical-empty-message{align-items:center;border:dashed var(--ag-border-width);border-color:var(--ag-border-color);display:flex;inset:0;justify-content:center;margin:calc(var(--ag-spacing)*1.5) calc(var(--ag-spacing)*2);overflow:hidden;padding:calc(var(--ag-spacing)*2);position:absolute}"}))(),f0={warn:(...e)=>{se(e[0],e[1])},error:(...e)=>{tt(e[0],e[1])},preInitErr:(...e)=>{Wi(e[0],e[2],e[1])}},dr=()=>(e=>new wa(e))(f0).withParams(t0).withPart(l0).withPart(ol).withPart(s0),cr=(()=>nt({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:mt,checkboxUncheckedBorderColor:ht(.3),checkboxCheckedBackgroundColor:bt,checkboxCheckedBorderColor:{ref:"checkboxCheckedBackgroundColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:mt,checkboxIndeterminateBackgroundColor:ht(.3),checkboxIndeterminateBorderColor:{ref:"checkboxIndeterminateBackgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:mt,radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}},css:'.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);:where(input){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;display:block;height:var(--ag-icon-size);margin:0;opacity:0;width:var(--ag-icon-size)}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&:where(.ag-checked):after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&:where(.ag-indeterminate){background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within{box-shadow:var(--ag-focus-error-shadow)}.ag-radio-button-input-wrapper{border-radius:100%;&:where(.ag-checked):after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}'}))(),nl=()=>({...Bo,...o0,backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:ht(.05),rowHoverColor:ni(.15),selectedRowBackgroundColor:ni(.2),menuBackgroundColor:ht(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:si,findMatchColor:mt,findActiveMatchColor:mt,checkboxUncheckedBorderColor:ht(.4),toggleButtonOffBackgroundColor:ht(.4),rowBatchEditBackgroundColor:ht(.1)}),ur=(()=>nt({feature:"colorScheme",params:Bo,modeParams:{light:Bo,dark:nl(),"dark-blue":{...nl(),backgroundColor:"#1f2836"}}}))(),S0=nt({feature:"iconSet",css:".ag-icon-aggregation:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24 6H8v2l8 8-8 8v2h16v-2H11l8-8-8-8h13z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-arrows:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.515 11.171 2.687 16l4.828 4.829-1.414 1.414L-.142 16l6.243-6.243zm16.97 0 1.414-1.414L32.142 16l-6.243 6.243-1.414-1.414L29.313 16zM16.028 13.2l2.829 2.828-2.829 2.829-2.828-2.829zm-4.857 11.285L16 29.313l4.829-4.828 1.414 1.414L16 32.142l-6.243-6.243zm0-16.97L9.757 6.101 16-.142l6.243 6.243-1.414 1.414L16 2.687z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-asc:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-cancel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667A13.32 13.32 0 0 0 2.667 16c0 7.373 5.96 13.333 13.333 13.333S29.333 23.373 29.333 16 23.373 2.667 16 2.667m6.667 18.12-1.88 1.88L16 17.88l-4.787 4.787-1.88-1.88L14.12 16l-4.787-4.787 1.88-1.88L16 14.12l4.787-4.787 1.88 1.88L17.88 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-chart:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Echart%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M14 7h4v18h-4zM8 17h4v8H8zM20 13h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E\")}.ag-icon-color-picker:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M23.907 17.587 10.574 4.254l-1.88 1.88 3.173 3.173-8.28 8.28 10.16 10.16zm-16.547 0 6.387-6.387 6.387 6.387zm18.387 2s-2.667 2.893-2.667 4.667c0 1.467 1.2 2.667 2.667 2.667s2.667-1.2 2.667-2.667c0-1.773-2.667-4.667-2.667-4.667' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-columns:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26 25H6V7h20zM12 11H8v12h4zm6 0h-4v12h4zm6 12V11h-4v12z' style='fill-rule:nonzero' transform='translate(0 -1)'/%3E%3C/svg%3E\")}.ag-icon-contracted:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m12 6 10 10-10 10-2-2 8-8-8-8z'/%3E%3C/svg%3E\")}.ag-icon-copy:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22 1.333H6A2.675 2.675 0 0 0 3.333 4v18.667H6V4h16zm4 5.334H11.333a2.675 2.675 0 0 0-2.667 2.667v18.667c0 1.467 1.2 2.667 2.667 2.667H26c1.467 0 2.667-1.2 2.667-2.667V9.334c0-1.467-1.2-2.667-2.667-2.667M26 28H11.333V9.333H26z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-cross:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.984 13.894 27.05 2.828l2.122 2.122-11.066 11.066 11.066 11.066-2.122 2.12-11.066-11.066L4.918 29.202l-2.12-2.12 11.066-11.066L2.798 4.95l2.12-2.122z'/%3E%3C/svg%3E\")}.ag-icon-csv:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='M.688-.226a.2.2 0 0 1-.017.074.28.28 0 0 1-.145.14.412.412 0 0 1-.234.013.28.28 0 0 1-.202-.168.468.468 0 0 1-.04-.19q0-.086.025-.155a.319.319 0 0 1 .182-.191.4.4 0 0 1 .134-.025q.087 0 .155.035a.3.3 0 0 1 .104.085.17.17 0 0 1 .036.097.06.06 0 0 1-.018.044.06.06 0 0 1-.042.019.06.06 0 0 1-.042-.013.2.2 0 0 1-.031-.046.2.2 0 0 0-.066-.079.16.16 0 0 0-.095-.027.17.17 0 0 0-.142.068.3.3 0 0 0-.053.193.4.4 0 0 0 .023.139.2.2 0 0 0 .067.083.2.2 0 0 0 .1.027q.063 0 .106-.031a.2.2 0 0 0 .065-.091.2.2 0 0 1 .023-.046q.014-.018.044-.018a.06.06 0 0 1 .044.018.06.06 0 0 1 .019.045' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.622-.215a.2.2 0 0 1-.033.117.23.23 0 0 1-.098.081.4.4 0 0 1-.153.029.34.34 0 0 1-.175-.04.23.23 0 0 1-.079-.077.17.17 0 0 1-.031-.093q0-.027.019-.045a.06.06 0 0 1 .046-.019.06.06 0 0 1 .039.014.1.1 0 0 1 .027.044.3.3 0 0 0 .03.057q.015.023.044.038.03.015.076.015.065 0 .105-.03a.09.09 0 0 0 .04-.075.08.08 0 0 0-.022-.058.14.14 0 0 0-.056-.034 1 1 0 0 0-.092-.025.7.7 0 0 1-.129-.042.2.2 0 0 1-.083-.066.17.17 0 0 1-.03-.104q0-.058.032-.105a.2.2 0 0 1 .093-.07.4.4 0 0 1 .144-.025q.066 0 .114.016a.3.3 0 0 1 .08.044.2.2 0 0 1 .046.057q.015.03.015.058a.07.07 0 0 1-.018.046.06.06 0 0 1-.046.021q-.025 0-.038-.012a.2.2 0 0 1-.028-.041.2.2 0 0 0-.047-.063Q.387-.625.326-.625a.15.15 0 0 0-.09.025q-.035.024-.035.059 0 .021.012.037a.1.1 0 0 0 .032.027.4.4 0 0 0 .111.036q.06.015.11.031.048.018.083.042a.2.2 0 0 1 .054.062.2.2 0 0 1 .019.091' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='m.184-.633.162.48.163-.483q.013-.038.019-.053a.062.062 0 0 1 .061-.039q.018 0 .034.009a.1.1 0 0 1 .025.025q.009.015.009.031L.654-.64l-.007.025-.009.024-.173.468-.019.051a.2.2 0 0 1-.021.042.1.1 0 0 1-.033.03.1.1 0 0 1-.049.012.1.1 0 0 1-.05-.011A.1.1 0 0 1 .26-.03a.2.2 0 0 1-.021-.042L.22-.123.05-.587.041-.612.033-.638.03-.662q0-.025.02-.046a.07.07 0 0 1 .05-.02q.037 0 .053.023.015.023.031.072' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%3E%3C/svg%3E\")}.ag-icon-cut:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M13.775 15.198 3.835 2.945a1.501 1.501 0 0 1 2.33-1.89l14.997 18.488A6.003 6.003 0 0 1 29.657 25c0 3.311-2.688 6-6 6s-6-2.689-6-6c0-1.335.437-2.569 1.176-3.566l-3.127-3.855-3.001 3.7A5.97 5.97 0 0 1 14 25c0 3.311-2.689 6-6 6s-6-2.689-6-6a6.003 6.003 0 0 1 8.315-5.536zm9.882 6.702a3.1 3.1 0 0 0-3.1 3.1c0 1.711 1.389 3.1 3.1 3.1s3.1-1.389 3.1-3.1-1.389-3.1-3.1-3.1M8 21.95a3.05 3.05 0 1 0 .001 6.101A3.05 3.05 0 0 0 8 21.95m9.63-11.505 1.932 2.381 8.015-9.881a1.5 1.5 0 0 0-2.329-1.89z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-desc:before,.ag-icon-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m26.667 16-1.88-1.88-7.453 7.44V5.333h-2.667V21.56l-7.44-7.453L5.334 16l10.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-excel:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M384 131.9c-7.753-8.433-110.425-128.473-114.9-133L48-.1C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48zm-35.9 2.1H257V27.9zM30 479V27h200l1 105c0 13.3-1.3 29 12 29h111l1 318z' style='fill-rule:nonzero' transform='translate(3.934 -.054)scale(.06285)'/%3E%3Cpath d='m.052-.139.16-.234-.135-.208a.4.4 0 0 1-.028-.052.1.1 0 0 1-.01-.042.05.05 0 0 1 .018-.037.07.07 0 0 1 .045-.016q.03 0 .047.018a1 1 0 0 1 .047.066l.107.174.115-.174.024-.038.019-.026.021-.015a.1.1 0 0 1 .027-.005.06.06 0 0 1 .044.016.05.05 0 0 1 .018.039q0 .033-.038.089l-.141.211.152.234a.3.3 0 0 1 .03.051.1.1 0 0 1 .009.038.1.1 0 0 1-.008.031.1.1 0 0 1-.024.023.1.1 0 0 1-.034.008.1.1 0 0 1-.035-.008.1.1 0 0 1-.023-.022L.427-.067.301-.265l-.134.204-.022.034-.016.019a.1.1 0 0 1-.022.015.1.1 0 0 1-.03.005.06.06 0 0 1-.044-.016.06.06 0 0 1-.017-.047q0-.036.036-.088' style='fill-rule:nonzero' transform='matrix(17.82892 0 0 16.50777 10.371 25.928)'/%3E%3C/svg%3E\")}.ag-icon-expanded:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 26 10 16 20 6l2 2-8 8 8 8z'/%3E%3C/svg%3E\")}.ag-icon-eye-slash:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye-slash%3C/title%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M8.95 10.364 7 8.414 8.414 7l2.32 2.32A13.2 13.2 0 0 1 16.5 8c5.608 0 10.542 3.515 12.381 8.667L29 17l-.119.333a13 13 0 0 1-4.255 5.879l1.466 1.466-1.414 1.414-1.754-1.753A13.2 13.2 0 0 1 16.5 26c-5.608 0-10.542-3.515-12.381-8.667L4 17l.119-.333a13 13 0 0 1 4.83-6.303m1.445 1.445A11.02 11.02 0 0 0 6.148 17c1.646 4.177 5.728 7 10.352 7 1.76 0 3.441-.409 4.94-1.146l-1.878-1.878A5.06 5.06 0 0 1 16.5 22c-2.789 0-5.05-2.239-5.05-5 0-1.158.398-2.223 1.065-3.07zm1.855-.974 1.794 1.795A5.07 5.07 0 0 1 16.5 12c2.789 0 5.05 2.239 5.05 5 0 .9-.24 1.745-.661 2.474l2.305 2.306A11 11 0 0 0 26.852 17c-1.646-4.177-5.728-7-10.352-7-1.495 0-2.933.295-4.25.835'/%3E%3C/svg%3E\")}.ag-icon-eye:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16.5 23c4.624 0 8.706-2.823 10.352-7-1.646-4.177-5.728-7-10.352-7s-8.706 2.823-10.352 7c1.646 4.177 5.728 7 10.352 7M4.119 15.667C5.958 10.515 10.892 7 16.5 7s10.542 3.515 12.381 8.667L29 16l-.119.333C27.042 21.485 22.108 25 16.5 25S5.958 21.485 4.119 16.333L4 16zM16.5 21c2.789 0 5.049-2.239 5.049-5s-2.26-5-5.049-5-5.049 2.239-5.049 5 2.26 5 5.049 5' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-filter:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m28 8-8 8v5l-6 6V16L6 8V6h22zM9 8l7 7v7l2-2v-5l7-7z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-first:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-group:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 7v1H9V7zm0-3v1H5.001V4zm-7 7H5v-1h2zm0-3H5V7h2zM3 5H1V4h2zm11 5v1H9v-1zm-7 4H5v-1h2zm7-1v1H9v-1z' style='fill-rule:nonzero' transform='matrix(2 0 0 2 0 -2)'/%3E%3C/svg%3E\")}.ag-icon-last:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m7.727 9.88 6.12 6.12-6.12 6.12L9.607 24l8-8-8-8zM21.607 8h2.667v16h-2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M26.667 14.667H10.44l7.453-7.453L16 5.334 5.333 16.001 16 26.668l1.88-1.88-7.44-7.453h16.227z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-linked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333a6.67 6.67 0 0 0-6.667 6.667 6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.333A4.136 4.136 0 0 1 5.2 16.002zm5.467 1.333h10.667v-2.667H10.667zm12-8h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133 4.136 4.136 0 0 1-4.133 4.133h-5.333v2.533h5.333a6.67 6.67 0 0 0 6.667-6.667 6.67 6.67 0 0 0-6.667-6.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-loading:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M17 29h-2v-8h2zm-3.586-9L7 26.414 5.586 25 12 18.586zm13 5L25 26.414 18.586 20 20 18.586zM29 17h-8v-2h8zm-18 0H3v-2h8zm2.414-5L12 13.414 5.586 7 7 5.586zm13-5L20 13.414 18.586 12 25 5.586zM17 11h-2V3h2z' style='fill-rule:nonzero' transform='translate(-3.692 -3.692)scale(1.23077)'/%3E%3C/svg%3E\")}.ag-icon-maximize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M14 30H2V18h2.828v7.05l8.254-8.252 2.12 2.12-8.252 8.254H14zm4-28h12v12h-2.828V6.95l-8.254 8.252-2.12-2.12 8.252-8.254H18z'/%3E%3C/svg%3E\")}.ag-icon-menu:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M20 13H0v-2h20zm0-6H0V5h20zm0-6H0v-2h20z' style='fill-rule:nonzero' transform='translate(6 9)'/%3E%3C/svg%3E\")}.ag-icon-menu-alt:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M16 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M16 27a3 3 0 1 0 0-6 3 3 0 0 0 0 6'/%3E%3C/svg%3E\")}.ag-icon-minimize:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M2 18h12v12h-2.828v-7.05l-8.254 8.252-2.12-2.12 8.252-8.254H2zm28-4H18V2h2.828v7.05L29.082.798l2.12 2.12-8.252 8.254H30z'/%3E%3C/svg%3E\")}.ag-icon-minus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658H7.901v-2.658z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-next:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.94 6 9.06 7.88 17.167 16 9.06 24.12 10.94 26l10-10z' style='fill-rule:nonzero' transform='translate(1)'/%3E%3C/svg%3E\")}.ag-icon-none:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctitle%3Enone%3C/title%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cpath d='M23.708 14.645 16 6.939l-7.708 7.706 1.416 1.416L16 9.767l6.292 6.294zM23.708 20.355 16 28.061l-7.708-7.706 1.416-1.416L16 25.233l6.292-6.294z'/%3E%3C/g%3E%3C/svg%3E\")}.ag-icon-not-allowed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667M5.333 16c0-5.893 4.773-10.667 10.667-10.667 2.467 0 4.733.84 6.533 2.253L7.586 22.533A10.54 10.54 0 0 1 5.333 16M16 26.667c-2.467 0-4.733-.84-6.533-2.253L24.414 9.467A10.54 10.54 0 0 1 26.667 16c0 5.893-4.773 10.667-10.667 10.667' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-paste:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.334 4H19.76C19.2 2.453 17.733 1.333 16 1.333S12.8 2.453 12.24 4H6.667A2.675 2.675 0 0 0 4 6.667V28c0 1.467 1.2 2.667 2.667 2.667h18.667c1.467 0 2.667-1.2 2.667-2.667V6.667C28.001 5.2 26.801 4 25.334 4M16 4c.733 0 1.333.6 1.333 1.333s-.6 1.333-1.333 1.333-1.333-.6-1.333-1.333S15.267 4 16 4m9.333 24H6.666V6.667h2.667v4h13.333v-4h2.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m10.78 19.777-4.668-4.666s.032-1 .67-1.87c1.366-1.86 4.052-1.96 6.056-1.572l3.158-3.108c-.7-2.342 3.352-5.046 3.352-5.046l9.166 9.168q-.334.447-.67.894c-1.074 1.426-2.538 2.63-4.272 2.338l-3.32 3.218c.046.344.042.03.118 1.152.144 2.13-.64 4.324-2.632 5.34l-.746.364-4.798-4.798-7.292 7.294-1.416-1.416zm8.24-13.672c-.688.568-1.416 1.45-1.024 2.072l.49.722-4.986 4.988c-1.988-.506-4.346-.636-5.156.614l9.02 9.032q.14-.099.272-.21c1.226-1.08.764-3.04.498-4.9l4.79-4.79s1.47.938 2.936-.776l-6.79-6.79q-.026.019-.05.038' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-pivot:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M25.128 2.002c2.56.096 4.772 2.292 4.87 4.87a712 712 0 0 1 0 18.256c-.096 2.56-2.292 4.772-4.87 4.87a712 712 0 0 1-18.256 0c-2.558-.096-4.772-2.29-4.87-4.87a712 712 0 0 1 0-18.256c.096-2.56 2.292-4.772 4.87-4.87a712 712 0 0 1 18.256 0m2.966 7.954H9.892v18.136c5.086.13 10.18.098 15.264-.096 1.48-.094 2.746-1.35 2.84-2.84.192-5.064.226-10.134.098-15.2M3.968 24.1q.015.528.036 1.056c.094 1.484 1.354 2.746 2.84 2.84l1.012.036V24.1zM22 15.414l-.292.294-1.416-1.416L23 11.586l2.708 2.706-1.416 1.416-.292-.294v3.592c-.032 2.604-2.246 4.892-4.872 4.992L15.414 24l.294.292-1.416 1.416L11.586 23l2.706-2.708 1.416 1.416-.322.32c3.372.03 6.578-.164 6.614-3.034zM3.88 18.038c.002 1.346.012 2.694.038 4.04h3.938v-4.04zm.05-6.062a681 681 0 0 0-.044 4.042h3.97v-4.042zm5.962-7.99Q8.449 3.999 7.006 4c-1.57.02-2.946 1.348-3.004 2.922q-.02 1.517-.042 3.034h3.896v-2.02h2.036zm14.244-.016v3.966h3.898q-.017-.546-.038-1.092c-.094-1.48-1.35-2.746-2.84-2.84q-.51-.019-1.02-.034m-8.14-.054q-2.035.022-4.07.048v3.972h4.07zm6.106.008a213 213 0 0 0-4.07-.022v4.034h4.07z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-plus:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6.572 6.572a13.32 13.32 0 0 0 0 18.856 13.32 13.32 0 0 0 18.856 0 13.32 13.32 0 0 0 0-18.856 13.32 13.32 0 0 0-18.856 0m17.527 8.099v2.658h-6.77v6.77h-2.658v-6.77h-6.77v-2.658h6.77v-6.77h2.658v6.77z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-previous:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.94 7.88 20.06 6l-10 10 10 10 1.88-1.88L13.833 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m16 5.333-1.88 1.88 7.44 7.453H5.333v2.667H21.56l-7.44 7.453 1.88 1.88 10.667-10.667L16 5.332z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-save:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M15.708 2.355 8 10.061.292 2.355 1.708.939 8 7.233 14.292.939z' style='fill-rule:nonzero' transform='translate(8 14)'/%3E%3Cpath d='M5 26h22v2H5zM15 4h2v18h-2z'/%3E%3C/svg%3E\")}.ag-icon-small-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 10.667 16 21.334l8.667-10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M21.333 7.334 10.666 16l10.667 8.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M10.667 24.666 21.334 16 10.667 7.333z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-small-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M7.334 21.333 16 10.666l8.667 10.667z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-tick:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M11.586 22.96 27.718 6.828 29.84 8.95 11.586 27.202 2.4 18.016l2.12-2.122z'/%3E%3C/svg%3E\")}.ag-icon-tree-closed:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m11.94 6-1.88 1.88L18.167 16l-8.107 8.12L11.94 26l10-10z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-tree-indeterminate:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M6 13.5h20v3H6z'/%3E%3C/svg%3E\")}.ag-icon-tree-open:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M24.12 9.06 16 17.167 7.88 9.06 6 10.94l10 10 10-10z' style='fill-rule:nonzero' transform='translate(0 1)'/%3E%3C/svg%3E\")}.ag-icon-unlinked:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M22.667 9.333h-5.333v2.533h5.333a4.136 4.136 0 0 1 4.133 4.133c0 1.907-1.307 3.507-3.08 3.973l1.947 1.947c2.173-1.107 3.667-3.32 3.667-5.92a6.67 6.67 0 0 0-6.667-6.667zm-1.334 5.334h-2.92l2.667 2.667h.253zM2.667 5.693 6.814 9.84A6.65 6.65 0 0 0 2.667 16a6.67 6.67 0 0 0 6.667 6.667h5.333v-2.533H9.334a4.136 4.136 0 0 1-4.133-4.133c0-2.12 1.613-3.867 3.68-4.093l2.76 2.76h-.973v2.667h3.64l3.027 3.027v2.307h2.307l5.347 5.333 1.68-1.68L4.362 4.002 2.669 5.695z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='m5.333 16 1.88 1.88 7.453-7.44v16.227h2.667V10.44l7.44 7.453L26.666 16 15.999 5.333 5.332 16z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-grip:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 32 32'%3E%3Cpath d='M8 24H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 18H6v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zm6 0h-2v-4h2zM8 12H6V8h2zm6 0h-2V8h2zm6 0h-2V8h2zm6 0h-2V8h2z' style='fill-rule:nonzero'/%3E%3C/svg%3E\")}.ag-icon-settings:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' d='M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30zm-9 4c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3M2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2zm9-4c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3'/%3E%3C/svg%3E\")}.ag-icon-column-arrow:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11 4a1 1 0 0 1 1 1v22a1 1 0 1 1-2 0V5a1 1 0 0 1 1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 13a1 1 0 0 1 1-1h23.5a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2 4h18v24H2zm2 2v20h14V6zM26.793 13 23 9.207l1.414-1.414L29.621 13l-5.207 5.207L23 16.793z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-un-pin:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6.112 15.111 3.272 3.271 1.436-1.402-2.476-2.479c.81-1.25 3.168-1.12 5.156-.614l4.986-4.988-.49-.722c-.392-.622.336-1.504 1.024-2.072l.008-.007.01-.006.032-.025 1.447 1.447 1.432-1.397-2.601-2.602s-4.052 2.704-3.352 5.046l-3.158 3.108c-2.004-.388-4.69-.288-6.056 1.572-.638.87-.67 1.87-.67 1.87m.581 11.582.014.014 5.502-5.501 4.783 4.783.746-.364c1.992-1.016 2.776-3.21 2.632-5.34-.055-.805-.068-.87-.088-.97-.008-.04-.017-.085-.03-.182l3.32-3.218c1.734.292 3.198-.912 4.272-2.338q.337-.447.67-.894l-.001-.001-.007-.007-.007-.007-.007-.007-3.87-3.87 1.585-1.584-1.414-1.414-14.381 14.38-1.237 1.209-5.69 5.687 1.417 1.416zM23.21 10.206l2.65 2.651c-1.465 1.714-2.935.776-2.935.776l-4.79 4.79q.041.291.087.583c.257 1.676.513 3.35-.585 4.317a4 4 0 0 1-.272.21l-3.739-3.744z' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-pinned-top:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='m16.708 10.878 8.708 8.706L24 21l-6.292-6.294V27h-2V14.706L9.416 21 8 19.584q4.348-4.344 8.691-8.69zM25 6H8v2h17z'/%3E%3C/svg%3E\")}.ag-icon-pinned-bottom:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M16.708 22.122 8 13.416 9.416 12l6.292 6.294V6h2v12.294L24 12l1.416 1.416-8.691 8.69zM7.416 28h17v-2h-17z'/%3E%3C/svg%3E\")}.ag-icon-chevron-up:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.479 10.521a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-down:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12.521 5.461a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l3.47 3.47 3.47-3.47a.75.75 0 0 1 1.06 0' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-left:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M10.53 12.512a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06l-3.47 3.47 3.47 3.47a.75.75 0 0 1 0 1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-chevron-right:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M5.47 3.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06L8.94 8 5.47 4.53a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E\")}.ag-icon-filter-add:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M19.834 8H8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.056-2.267 2.968-4.417 5.49-6.75v3.087c-1.081.974-2.245 1.968-3.232 3.005a1.05 1.05 0 0 0-.258.682v3.66L13 25c0-2.74.066-5.482-.002-8.222a1.05 1.05 0 0 0-.256-.62C10.026 13.304 6.06 10.61 6 8.184V6h13.834z'/%3E%3Cpath fill='currentColor' d='M26 6h2.946v2.002H26v3.313h-2.002V8.002h-2.946V6h2.946V3.04H26z'/%3E%3C/svg%3E\")}.ag-icon-edit:before{mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none' viewBox='0 0 32 32'%3E%3Cpath fill='currentColor' d='M6.222 25.778h1.611l14.834-14.811-1.611-1.611-14.834 14.81zM4 28v-4.733L22.644 4.656a2.26 2.26 0 0 1 1.567-.634q.423 0 .833.167.412.166.734.478l1.589 1.6q.333.322.483.733t.15.822q0 .423-.161.839-.162.416-.472.728L8.733 28zm17.856-17.833-.8-.811 1.61 1.61z'/%3E%3C/svg%3E\")}"}),x0=e=>{const t=[];if("image"===e.type){const{icons:i,mask:o}=e;for(const n of Object.keys(i)){const s=va(i[n]);t.push(o?`.ag-icon-${n}::before { mask-image: ${s}; }`:`.ag-icon-${n}::before { background-image: ${s}; ${lu} }`)}}if("font"===e.type){const{family:i,weight:o,color:n,icons:s}=e;let r=lu;i&&(r+=` font-family: ${Ca(i)};`),o&&(r+=` font-weight: ${Vd(o)};`),n&&(r+=` color: ${Ns(n)};`);for(const a of Object.keys(s))t.push(`.ag-icon-${a}::before { content: ${JSON.stringify(s[a])}; ${r} }`)}return nt({css:t.join(";\n"),cssImports:e.cssImports})},lu="background-color: unset; mask-image: unset; -webkit-mask-image: unset;",du={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<path d="m18 6-12 12"/><path d="m6 6 12 12"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},cu={"column-arrow":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 32 32"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 26C0 28.2092 1.79086 30 4 30H14C16.2091 30 18 28.2092 18 26V15H25.8786L24.4394 16.4393C23.8536 17.0251 23.8536 17.9749 24.4394 18.5607C25.0252 19.1464 25.9748 19.1464 26.5606 18.5607L30.5606 14.5607C31.1464 13.9749 31.1464 13.0251 30.5606 12.4393L26.5606 8.43934C25.9748 7.85356 25.0252 7.85356 24.4394 8.43934C23.8536 9.02512 23.8536 9.97488 24.4394 10.5607L25.8786 12H18V6C18 3.79086 16.2091 2 14 2H4C1.79086 2 0 3.79086 0 6V26ZM14 5H10.5V12H15V6C15 5.44772 14.5523 5 14 5ZM4 5H7.5V12H3V6C3 5.44772 3.44772 5 4 5ZM10.5 15H15V26C15 26.5522 14.5523 27 14 27H10.5V15ZM4 27H7.5V15H3V26C3 26.5522 3.44772 27 4 27Z" fill="currentColor"/></svg>',"small-down":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 10.667 16 21.334l8.667-10.667H7.334Z"/></svg>',"small-up":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="black" stroke="none" viewBox="0 0 32 32"><path d="M7.334 21.333 16 10.666l8.667 10.667H7.334Z"/></svg>',"pinned-top":'<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.53 3.72A.75.75 0 0 1 12 5H4a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 .53.22ZM3.269 10.744a.75.75 0 0 1 .2-.524l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06L8.75 8.56V14a.75.75 0 0 1-1.5 0V8.56l-2.72 2.72a.75.75 0 0 1-1.26-.536Z"/></svg>',"pinned-bottom":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M3.47 12.28A.75.75 0 0 1 4 11h8a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.53-.22ZM12.731 5.256a.75.75 0 0 1-.2.524l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06l2.72 2.72V2a.75.75 0 0 1 1.5 0v5.44l2.72-2.72a.75.75 0 0 1 1.26.536Z"/></svg>',"un-pin":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="ag-icon" viewBox="0 0 16 16"><path fill="currentColor" d="M8 11a.75.75 0 0 0-.75.75v3.333a.75.75 0 1 0 1.5 0V11.75A.75.75 0 0 0 8 11Z"/><path fill="currentColor" d="M13.11 1.436a.75.75 0 0 0-1.22-.872l-10 14a.75.75 0 1 0 1.22.872L5.207 12.5h7.376a.75.75 0 0 0 .75-.75v-1.174a2.08 2.08 0 0 0-1.153-1.863l-1.185-.599-.005-.002a.58.58 0 0 1-.323-.522V5.165a2.083 2.083 0 0 0 1.854-2.904l.589-.825Zm-3.943 5.52v.634a2.08 2.08 0 0 0 1.153 1.863l1.185.6.005.002a.58.58 0 0 1 .323.522V11H6.28l2.887-4.044ZM9.277 1H5.25a2.084 2.084 0 0 0-.083 4.165v1.676l1.5-2.132v-.292a.75.75 0 0 0-.75-.75H5.25a.584.584 0 0 1 0-1.167h2.972L9.277 1Z"/></svg>',"chevron-down":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 6L8 10L4 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-up":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 10L8 6L12 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-left":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"chevron-right":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',"filter-add":'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.12126 7.75L10.8517 7.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M6.65934 11.748L9.32778 11.748" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M12.2943 1.04872V6.19184M14.9886 3.74341H9.68478" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><path d="M8.25488 3C8.04799 3.18323 7.91706 3.45099 7.91699 3.74902C7.91713 4.04868 8.04988 4.31681 8.25879 4.5H2C1.58579 4.5 1.25 4.16421 1.25 3.75C1.25 3.33579 1.58579 3 2 3H8.25488Z" fill="currentColor"/></svg>',edit:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 10.6262V12.5012H5.375L10.905 6.97122L9.03 5.09622L3.5 10.6262ZM12.355 5.52122C12.4014 5.47497 12.4381 5.42002 12.4632 5.35953C12.4883 5.29905 12.5012 5.23421 12.5012 5.16872C12.5012 5.10324 12.4883 5.0384 12.4632 4.97791C12.4381 4.91742 12.4014 4.86248 12.355 4.81622L11.185 3.64622C11.1387 3.59987 11.0838 3.5631 11.0233 3.53801C10.9628 3.51291 10.898 3.5 10.8325 3.5C10.767 3.5 10.7022 3.51291 10.6417 3.53801C10.5812 3.5631 10.5263 3.59987 10.48 3.64622L9.565 4.56122L11.44 6.43622L12.355 5.52122Z" fill="currentColor"/></svg>'},F0=(e,t=1.5)=>{const i=cu[e];if(i)return i;const o=du[e];if(!o)throw new Error(`Missing icon data for ${e}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${t}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+o+"</svg>"},sl=(e={})=>nt({feature:"iconSet",css:()=>((e={})=>{let t="";for(const i of[...Object.keys(du),...Object.keys(cu)]){const o=F0(i,e.strokeWidth);t+=`.ag-icon-${i}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(o)}'); }\n`}return t})(e)}),D0=sl(),al={inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPlaceholderTextColor:{ref:"inputTextColor",mix:.5},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"},inputIconColor:{ref:"inputTextColor"},pickerButtonBorder:!1,pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"},colorPickerThumbSize:18,colorPickerTrackSize:12,colorPickerThumbBorderWidth:3,colorPickerTrackBorderRadius:12,colorPickerColorBorderRadius:4},ll=(()=>nt({feature:"inputStyle",params:{...al,inputBackgroundColor:mt,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:bt},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:ht(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>':where(.ag-input-field-input[type=number]:not(.ag-number-field-input-stepper)){-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color);outline:none}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}:where(.ag-ltr) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-left:var(--ag-input-padding-start)}:where(.ag-rtl) .ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){padding-right:var(--ag-input-padding-start)}:where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{background-color:currentcolor;color:var(--ag-input-icon-color);content:"";display:block;height:12px;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");mask-image:url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41Ij48cGF0aCBkPSJNNS4zIDlhMy43IDMuNyAwIDEgMCAwLTcuNSAzLjcgMy43IDAgMCAwIDAgNy41Wk0xMC41IDEwLjUgOC4zIDguMiIvPjwvc3ZnPg==");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;opacity:.5;position:absolute;width:12px}}:where(.ag-ltr) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{margin-left:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-left:calc(var(--ag-spacing)*1.5 + 12px)}}:where(.ag-rtl) :where(.ag-column-select-header-filter-wrapper,.ag-filter-toolpanel-search,.ag-mini-filter,.ag-filter-filter,.ag-filter-add-select){.ag-input-wrapper:before{margin-right:var(--ag-spacing)}.ag-number-field-input,.ag-text-field-input{padding-right:calc(var(--ag-spacing)*1.5 + 12px)}}.ag-input-field-input:where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){&:focus{box-shadow:var(--ag-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}'}))(),es='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;flex:1;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex}.ag-tabs-close-button-wrapper{align-items:center;border:0;display:flex;padding:var(--ag-spacing)}:where(.ag-ltr) .ag-tabs-close-button-wrapper{border-right:solid var(--ag-border-width) var(--ag-border-color)}:where(.ag-rtl) .ag-tabs-close-button-wrapper{border-left:solid var(--ag-border-width) var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}}:where(.ag-ltr) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-left-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}}}:where(.ag-rtl) .ag-tab{&.ag-tab-selected{&:where(:not(:first-of-type)){border-right-color:var(--ag-tab-selected-border-color)}&:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}}}',ts={tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:{ref:"borderWidth"},tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:0,tabSelectedUnderlineTransitionDuration:0,tabBarBorder:!1},O0=(()=>nt({feature:"tabStyle",params:{...ts,tabBarBorder:!0,tabBarBackgroundColor:Rt(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:mt},css:es}))(),V0=(()=>nt({feature:"tabStyle",params:{...ts,tabBarBorder:!0,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:bt,tabSelectedTextColor:bt,tabSelectedUnderlineColor:bt,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"},css:es}))(),z0=(()=>dr().withPart(cr).withPart(ur).withPart(D0).withPart(O0).withPart(ll).withPart(ol).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]}))(),U0=(()=>dr().withPart(c0).withPart(cr).withPart(ur).withPart(S0).withPart(V0).withPart(ll).withPart(ol).withParams({accentColor:"#2196f3",selectedRowBackgroundColor:ni(.3),inputFocusBorder:{color:ni(.4)},focusShadow:{radius:2,spread:1.6,color:ni(.4)},iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",checkboxUncheckedBorderColor:ht(.45),checkboxIndeterminateBackgroundColor:ht(.45),checkboxIndeterminateBorderColor:ht(.45),checkboxBorderWidth:2,checkboxBorderRadius:2,fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:bt,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sideButtonSelectedUnderlineColor:bt,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,sideButtonSelectedBorder:!1,sideButtonBarTopPadding:{calc:"spacing * 3"},sideButtonSelectedBackgroundColor:"transparent",sideButtonHoverTextColor:bt,iconButtonHoverColor:bt,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:ht(.45),colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2}))(),j0={cssName:"--ag-cell-horizontal-padding",changeKey:"cellHorizontalPaddingChanged",defaultValue:16},K0={cssName:"--ag-indentation-level",changeKey:"indentationLevelChanged",defaultValue:0,noWarn:!0,cacheDefault:!0},q0={cssName:"--ag-row-group-indent-size",changeKey:"rowGroupIndentSizeChanged",defaultValue:0},uu={cssName:"--ag-row-height",changeKey:"rowHeightChanged",defaultValue:42},hu={cssName:"--ag-header-height",changeKey:"headerHeightChanged",defaultValue:48},gu={cssName:"--ag-list-item-height",changeKey:"listItemHeightChanged",defaultValue:24},dl={cssName:"--ag-row-border",changeKey:"rowBorderWidthChanged",defaultValue:1,border:!0},pu={cssName:"--ag-pinned-row-border",changeKey:"pinnedRowBorderWidthChanged",defaultValue:1,border:!0};function fu(e,t,i){const o=e.visibleCols.headerGroupRowCount;if(i>=o)return{column:t,headerRowIndex:i};let n=t.getParent();for(;n&&n.getProvidedColumnGroup().getLevel()>i;)n=n.getParent();const s=t.isSpanHeaderHeight();return!n||s&&n.isPadding()?{column:t,headerRowIndex:o}:{column:n,headerRowIndex:n.getProvidedColumnGroup().getLevel()}}var hr=new Set(["gridPreDestroyed","fillStart","pasteStart"]),ul=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnGroupOpened","columnResized","displayedColumnsChanged","virtualColumnsChanged","columnHeaderMouseOver","columnHeaderMouseLeave","columnHeaderClicked","columnHeaderContextMenu","asyncTransactionsFlushed","rowGroupOpened","rowDataUpdated","pinnedRowDataChanged","pinnedRowsChanged","rangeSelectionChanged","cellSelectionChanged","chartCreated","chartRangeSelectionChanged","chartOptionsChanged","chartDestroyed","toolPanelVisibleChanged","toolPanelSizeChanged","modelUpdated","cutStart","cutEnd","pasteStart","pasteEnd","fillStart","fillEnd","cellSelectionDeleteStart","cellSelectionDeleteEnd","rangeDeleteStart","rangeDeleteEnd","undoStarted","undoEnded","redoStarted","redoEnded","cellClicked","cellDoubleClicked","cellMouseDown","cellContextMenu","cellValueChanged","cellEditRequest","rowValueChanged","headerFocused","cellFocused","rowSelected","selectionChanged","tooltipShow","tooltipHide","cellKeyDown","cellMouseOver","cellMouseOut","filterChanged","filterModified","filterUiChanged","filterOpened","floatingFilterUiChanged","advancedFilterBuilderVisibleChanged","sortChanged","virtualRowRemoved","rowClicked","rowDoubleClicked","gridReady","gridPreDestroyed","gridSizeChanged","viewportChanged","firstDataRendered","dragStarted","dragStopped","dragCancelled","rowEditingStarted","rowEditingStopped","cellEditingStarted","cellEditingStopped","bodyScroll","bodyScrollEnd","paginationChanged","componentStateChanged","storeRefreshed","stateUpdated","columnMenuVisibleChanged","contextMenuVisibleChanged","rowDragEnter","rowDragMove","rowDragLeave","rowDragEnd","rowDragCancel","findChanged","rowResizeStarted","rowResizeEnded","columnsReset","bulkEditingStarted","bulkEditingStopped","batchEditingStarted","batchEditingStopped"].reduce((e,t)=>(e[t]=function Wh(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}(t),e),{}),is=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),sb={tag:"span",cls:"ag-sort-indicator-container",children:[is("Order","order"),is("Asc","ascending-icon"),is("Desc","descending-icon"),is("Mixed","mixed-icon"),is("None","none-icon")]},hl=class extends ot{constructor(e){super(),this.eSortOrder=fe,this.eSortAsc=fe,this.eSortDesc=fe,this.eSortMixed=fe,this.eSortNone=fe,e||this.setTemplate(sb)}attachCustomElements(e,t,i,o,n){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=i,this.eSortMixed=o,this.eSortNone=n}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!e.isSortable()&&!e.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e);const i=this.updateIcons.bind(this),o=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",i),this.addManagedEventListeners({newColumnsLoaded:i,sortChanged:o,columnRowGroupChanged:o}),this.onSortChanged()}addInIcon(e,t,i){if(null==t)return;const o=pi(e,this.beans,i);o&&t.appendChild(o)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortNone:i,column:o,gos:n,beans:s}=this,r=s.sortSvc.getDisplaySortForColumn(o);e&&it(e,"asc"===r,{skipAriaHidden:!0}),t&&it(t,"desc"===r,{skipAriaHidden:!0}),i&&it(i,!(!o.getColDef().unSortIcon&&!n.get("unSortIcon"))&&null==r,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:i}=this;this.addInIcon("sortUnSort",e,t);const o=t.getColDef().showRowGroup;ti(i)&&o&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:i}=this;e&&it(e,"mixed"===t.sortSvc.getDisplaySortForColumn(i),{skipAriaHidden:!0})}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:i}}=this;if(!e)return;const o=i.getColumnsWithSortingOrdered(),n=i.getDisplaySortIndexForColumn(t)??-1,s=o.some(a=>i.getDisplaySortIndexForColumn(a)??!1);it(e,n>=0&&s,{skipAriaHidden:!0}),n>=0?e.textContent=(n+1).toString():wt(e)}},rb={selector:"AG-SORT-INDICATOR",component:hl},os=["asc","desc",null],un={agSetColumnFilter:"SetFilter",agSetColumnFloatingFilter:"SetFilter",agMultiColumnFilter:"MultiFilter",agMultiColumnFloatingFilter:"MultiFilter",agGroupColumnFilter:"GroupFilter",agGroupColumnFloatingFilter:"GroupFilter",agGroupCellRenderer:"GroupCellRenderer",agGroupRowRenderer:"GroupCellRenderer",agRichSelect:"RichSelect",agRichSelectCellEditor:"RichSelect",agDetailCellRenderer:"SharedMasterDetail",agSparklineCellRenderer:"Sparklines",agDragAndDropImage:"SharedDragAndDrop",agColumnHeader:"ColumnHeaderComp",agColumnGroupHeader:"ColumnGroupHeaderComp",agSortIndicator:"Sort",agAnimateShowChangeCellRenderer:"HighlightChanges",agAnimateSlideCellRenderer:"HighlightChanges",agLoadingCellRenderer:"LoadingCellRenderer",agSkeletonCellRenderer:"SkeletonCellRenderer",agCheckboxCellRenderer:"CheckboxCellRenderer",agLoadingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agDateColumnFloatingFilter:"DateFilter",agCellEditor:"TextEditor",agSelectCellEditor:"SelectEditor",agTextCellEditor:"TextEditor",agNumberCellEditor:"NumberEditor",agDateCellEditor:"DateEditor",agDateStringCellEditor:"DateEditor",agCheckboxCellEditor:"CheckboxEditor",agLargeTextCellEditor:"LargeTextEditor",agMenuItem:"MenuItem",agColumnsToolPanel:"ColumnsToolPanel",agFiltersToolPanel:"FiltersToolPanel",agNewFiltersToolPanel:"NewFiltersToolPanel",agAggregationComponent:"StatusBar",agSelectedRowCountComponent:"StatusBar",agTotalRowCountComponent:"StatusBar",agFilteredRowCountComponent:"StatusBar",agTotalAndFilteredRowCountComponent:"StatusBar",agFindCellRenderer:"Find"};function Cu(e){return`"${e}"`}var db={aggFunc:"SharedAggregation",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t})=>t?"string"==typeof e?un[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>"string"!=typeof e?null:un[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&"string"!=typeof e&&"boolean"!=typeof e?"CustomFilter":"string"==typeof e?un[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(i=>t.includes(i))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},ub={headerName:void 0,columnGroupShow:void 0,headerStyle:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,cellDataType:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,headerTooltipValueGetter:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams:void 0,refData:void 0,columnChooserParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,suppressStickyLabel:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressHeaderMenuButton:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,spanRows:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,tooltipComponentSelector:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0,mainMenuItems:void 0,contextMenuItems:void 0,suppressFloatingFilterButton:void 0,suppressHeaderFilterButton:void 0,suppressHeaderContextMenu:void 0,loadingCellRenderer:void 0,loadingCellRendererParams:void 0,loadingCellRendererSelector:void 0,context:void 0,dateComponent:void 0,dateComponentParams:void 0,getFindText:void 0,rowGroupingHierarchy:void 0,groupHierarchy:void 0},pb=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"],fb=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","themeStyleContainer","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","advancedFilterParams","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers","groupHierarchyConfig"],mb=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector"],vu=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],Cb=["theme","rowSelection"],wu=["cellSelection","sideBar","rowNumbers","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],bu=["loadThemeGoogleFonts","suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellFocus","suppressHeaderFocus","suppressHorizontalScroll","groupSelectsChildren","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressColumnMoveAnimation","suppressMoveWhenColumnDragging","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","allowContextMenuWithControlKey","suppressContextMenu","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","alwaysAggregateAtRootLevel","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","tooltipInteraction","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideSortAllLevels","serverSideEnableClientSideSort","serverSideOnlyRefreshFilteredGroups","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","groupMaintainOrder","columnHoverHighlight","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","suppressGroupRowsSticky","suppressCutToClipboard","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","loading","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows"],vb=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition"];function Vi(e,t,i){return"number"==typeof t||null==t?null==t||t>=i?null:`${e}: value should be greater than or equal to ${i}`:`${e}: value should be a number`}var yb={alignedGrids:"AlignedGrids",allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",cellSelection:"CellSelection",columnHoverHighlight:"ColumnHover",datasource:"InfiniteRowModel",doesExternalFilterPass:"ExternalFilter",editType:"EditCore",invalidEditValueMode:"EditCore",enableAdvancedFilter:"AdvancedFilter",enableCellSpan:"CellSpan",enableCharts:"IntegratedCharts",enableRangeSelection:"CellSelection",enableRowPinning:"PinnedRow",findSearchValue:"Find",getFullRowEditValidationErrors:"EditCore",getContextMenuItems:"ContextMenu",getLocaleText:"Locale",getMainMenuItems:"ColumnMenu",getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:"SharedRowGrouping",grandTotalRow:"ClientSideRowModelHierarchy",initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDetail:"SharedMasterDetail",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:"SharedPivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:"SharedRowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:"SharedTreeData",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},Sb=()=>{const e={autoSizePadding:{validate:({autoSizePadding:i})=>Vi("autoSizePadding",i,0)},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate:({cacheBlockSize:i})=>Vi("cacheBlockSize",i,1)},cacheOverflowSize:{validate:({cacheOverflowSize:i})=>Vi("cacheOverflowSize",i,1)},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:i=>{const o=i.domLayout,n=["autoHeight","normal","print"];return o&&!n.includes(o)?`domLayout must be one of [${n.join()}], currently it's ${o}`:null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate:({enableRowPinning:i,pinnedTopRowData:o,pinnedBottomRowData:n})=>i&&(o||n)?"Manual row pinning cannot be used together with pinned row data. Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":null},isRowPinnable:{supportedRowModels:["clientSide"],validate:({enableRowPinning:i,isRowPinnable:o,pinnedTopRowData:n,pinnedBottomRowData:s})=>o&&(n||s)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!i&&o?"`isRowPinnable` requires `enableRowPinning` to be set.":null},isRowPinned:{supportedRowModels:["clientSide"],validate:({enableRowPinning:i,isRowPinned:o,pinnedTopRowData:n,pinnedBottomRowData:s})=>o&&(n||s)?"Manual row pinning cannot be used together with pinned row data. Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`.":!i&&o?"`isRowPinned` requires `enableRowPinning` to be set.":null},groupDefaultExpanded:{supportedRowModels:["clientSide"]},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},treeData:{required:[void 0,!1],reason:"Tree Data has values at the group level so it doesn't make sense to hide them."}}},groupHideParentOfSingleChild:{dependencies:{groupHideOpenParents:{required:[void 0,!1]}}},groupRemoveLowestSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveSingleChildren:{required:[void 0,!1]}}},groupRemoveSingleChildren:{dependencies:{groupHideOpenParents:{required:[void 0,!1]},groupRemoveLowestSingleChildren:{required:[void 0,!1]}}},groupSelectsChildren:{dependencies:{rowSelection:{required:["multiple"]}}},groupHierarchyConfig:{validate({groupHierarchyConfig:i={}},o,n){for(const s of Object.keys(i))n.validation?.validateColDef(i[s]);return null}},icons:{validate:({icons:i})=>{if(i){if(i.smallDown)return ei(262);if(i.smallLeft)return ei(263);if(i.smallRight)return ei(264)}return null}},infiniteInitialRowCount:{validate:({infiniteInitialRowCount:i})=>Vi("infiniteInitialRowCount",i,1)},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:i=>{if("boolean"==typeof i.ssrmExpandAllAffectsAllRows){if("serverSide"!==i.rowModelType)return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(i.ssrmExpandAllAffectsAllRows&&"function"!=typeof i.getRowId)return"'getRowId' callback must be provided for Server Side Row Model grouping to work correctly."}return null}},keepDetailRowsCount:{validate:({keepDetailRowsCount:i})=>Vi("keepDetailRowsCount",i,1)},paginationPageSize:{validate:({paginationPageSize:i})=>Vi("paginationPageSize",i,1)},paginationPageSizeSelector:{validate:i=>{const o=i.paginationPageSizeSelector;return"boolean"==typeof o||null==o||o.length?null:"'paginationPageSizeSelector' cannot be an empty array.\n If you want to hide the page size selector, set paginationPageSizeSelector to false."}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate:({rowBuffer:i})=>Vi("rowBuffer",i,0)},rowClass:{validate:i=>"function"==typeof i.rowClass?"rowClass should not be a function, please use getRowClass instead":null},rowData:{supportedRowModels:["clientSide"]},rowDragManaged:{supportedRowModels:["clientSide"],dependencies:{pagination:{required:[!1,void 0]}}},rowSelection:{validate:({rowSelection:i})=>i&&"string"==typeof i?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':i&&"object"!=typeof i?"Expected `RowSelectionOptions` object for the `rowSelection` property.":i&&"multiRow"!==i.mode&&"singleRow"!==i.mode?`Selection mode "${i.mode}" is invalid. Use one of 'singleRow' or 'multiRow'.`:null},rowStyle:{validate:i=>{const o=i.rowStyle;return o&&"function"==typeof o?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate:({serverSideInitialRowCount:i})=>Vi("serverSideInitialRowCount",i,1)},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:i=>{const o=i.sortingOrder;if(Array.isArray(o)&&o.length>0){const n=o.filter(s=>!os.includes(s));if(n.length>0)return`sortingOrder must be an array with elements from [${os.map(_o).join()}], currently it includes [${n.map(_o).join()}]`}else if(!Array.isArray(o)||o.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${o}`;return null}},tooltipHideDelay:{validate:i=>i.tooltipHideDelay&&i.tooltipHideDelay<0?"tooltipHideDelay should not be lower than 0":null},tooltipShowDelay:{validate:i=>i.tooltipShowDelay&&i.tooltipShowDelay<0?"tooltipShowDelay should not be lower than 0":null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:i=>{const o=i.rowModelType??"clientSide";switch(o){case"clientSide":{const{treeDataChildrenField:n,treeDataParentIdField:s,getDataPath:r,getRowId:a}=i;if(!n&&!s&&!r)return"treeData requires either 'treeDataChildrenField' or 'treeDataParentIdField' or 'getDataPath' in the clientSide row model.";if(n){if(r)return"Cannot use both 'treeDataChildrenField' and 'getDataPath' at the same time.";if(s)return"Cannot use both 'treeDataChildrenField' and 'treeDataParentIdField' at the same time."}if(s){if(!a)return"getRowId callback not provided, tree data with parent id cannot be built.";if(r)return"Cannot use both 'treeDataParentIdField' and 'getDataPath' at the same time."}return null}case"serverSide":return i.isServerSideGroup&&i.getServerSideGroupKey?null:`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${o} row model.`}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate:({viewportRowModelBufferSize:i})=>Vi("viewportRowModelBufferSize",i,0)},viewportRowModelPageSize:{validate:({viewportRowModelPageSize:i})=>Vi("viewportRowModelPageSize",i,1)},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate:({autoGroupColumnDef:i,showOpenedGroup:o})=>i?.field&&o?"autoGroupColumnDef.field and showOpenedGroup are not supported when used together.":i?.valueGetter&&o?"autoGroupColumnDef.valueGetter and showOpenedGroup are not supported when used together.":null},renderingMode:{validate:i=>{const o=i.renderingMode,n=["default","legacy"];return o&&!n.includes(o)?`renderingMode must be one of [${n.join()}], currently it's ${o}`:null}},autoSizeStrategy:{validate:({autoSizeStrategy:i})=>{if(!i)return null;const n=i.type;return"fitCellContents"!==n&&"fitGridWidth"!==n&&"fitProvidedWidth"!==n?`Invalid Auto-size strategy. \`autoSizeStrategy\` must be one of ${["fitCellContents","fitGridWidth","fitProvidedWidth"].map(s=>'"'+s+'"').join(", ")}, currently it's ${n}`:"fitProvidedWidth"===n&&"number"!=typeof i.width?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${i.width}`:null}}},t={};for(const i of bu)t[i]={expectedType:"boolean"};for(const i of vu)t[i]={expectedType:"number"};return It(t,e),t},Eb=0,xb=0,yu="__ag_grid_instance";function Su(e){const t={"aria-hidden":"true"};return{tag:"div",cls:"ag-cell-label-container",role:"presentation",children:[{tag:"span",ref:"eMenu",cls:"ag-header-icon ag-header-cell-menu-button",attrs:t},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:t},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[{tag:"span",ref:"eText",cls:"ag-header-cell-text"},{tag:"span",ref:"eFilter",cls:"ag-header-icon ag-header-label-icon ag-filter-icon",attrs:t},e?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var Db=Su(!0),Mb=Su(!1),kb={tag:"div",cls:"ag-header-group-cell-label",role:"presentation",children:[{tag:"span",ref:"agLabel",cls:"ag-header-group-text",role:"presentation"},{tag:"span",ref:"agOpened",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"},{tag:"span",ref:"agClosed",cls:"ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"}]},Ab={moduleName:"ColumnHeaderComp",version:ge,userComponents:{agColumnHeader:class extends ot{constructor(){super(...arguments),this.eFilter=fe,this.eFilterButton=fe,this.eSortIndicator=fe,this.eMenu=fe,this.eLabel=fe,this.eText=fe,this.eSortOrder=fe,this.eSortAsc=fe,this.eSortDesc=fe,this.eSortMixed=fe,this.eSortNone=fe,this.isLoadingInnerComponent=!1}refresh(e){const t=this.params;if(this.params=e,this.workOutTemplate(e,!!this.beans?.sortSvc)!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||e.enableSorting!=this.currentSort||null!=this.currentSuppressMenuHide&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const i={...e};It(i,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(i)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const i=e.template;return i?i?.trim?i.trim():i:t?Db:Mb}init(e){this.params=e;const{sortSvc:t,touchSvc:i,rowNumbersSvc:o,userCompFactory:n}=this.beans,s=t?.getSortIndicatorSelector();this.currentTemplate=this.workOutTemplate(e,!!s),this.setTemplate(this.currentTemplate,s?[s]:void 0),i?.setupForHeader(this),this.setMenu(),this.setupSort(),o?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.workOutInnerHeaderComponent(n,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const i=function Lg(e,t,i){return e.getCompDetails(t,vg,void 0,i)}(e,t,t);i&&(this.isLoadingInnerComponent=!0,i.newAgStackInstance().then(o=>{this.isLoadingInnerComponent=!1,o&&(this.isAlive()?(this.innerHeaderComponent=o,this.eText&&this.eText.appendChild(o.getGui())):this.destroyBean(o))}))}setDisplayName(e){const{displayName:t}=e,i=this.currentDisplayName;this.currentDisplayName=t,this.eText&&i!==t&&!this.innerHeaderComponent&&!this.isLoadingInnerComponent&&(this.eText.textContent=Z(t))}addInIcon(e,t,i){const o=pi(e,this.beans,i);o&&t.appendChild(o)}workOutShowMenu(){return this.params.enableMenu&&!!this.beans.menuSvc?.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return!!this.beans.menuSvc?.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return Tt(this.eMenu),void(this.eMenu=void 0);const{gos:e,eMenu:t,params:i}=this,o=ii(e);this.addInIcon(o?"menu":"menuAlt",t,i.column),t.classList.toggle("ag-header-menu-icon",!o);const n=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=n,this.addManagedElementListeners(t,{click:()=>this.showColumnMenu(this.eMenu)}),this.toggleMenuAlwaysShow(n)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:i}=this;t||this.toggleMenuAlwaysShow(!0),i.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}onMenuKeyboardShortcut(e){const{params:t,gos:i,beans:o,eMenu:n,eFilterButton:s}=this,r=t.column,a=ii(i);if(e&&!a){if(o.menuSvc?.isFilterMenuInHeaderEnabled(r))return t.showFilter(s??n??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(n??s??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:i}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(e.createSortIndicator(!0));const{eSortIndicator:o,eSortOrder:n,eSortAsc:s,eSortDesc:r,eSortMixed:a,eSortNone:l}=this;o.attachCustomElements(n,s,r,a,l)}this.eSortIndicator.setupSort(i),this.currentSort&&e.setupHeader(this,i,this.eLabel)}setupFilterIcon(){const{eFilter:e,params:t}=this;e&&this.configureFilter(t.enableFilterIcon,e,()=>{const o=t.column.isFilterActive();it(e,o,{skipAriaHidden:!0})},"filterActive")}setupFilterButton(){const{eFilterButton:e,params:t}=this;e&&(this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?this.addManagedElementListeners(e,{click:()=>t.showFilter(e)}):this.eFilterButton=void 0)}configureFilter(e,t,i,o){if(!e)return Tt(t),!1;const n=this.params.column;return this.addInIcon(o,t,n),this.addManagedListeners(n,{filterChanged:i}),i(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:i}=this;return e?t??i??this.getGui():i??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent&&(this.destroyBean(this.innerHeaderComponent),this.innerHeaderComponent=void 0)}}},icons:{menu:"menu",menuAlt:"menu-alt"}},Ib={moduleName:"ColumnGroupHeaderComp",version:ge,userComponents:{agColumnGroupHeader:class extends ot{constructor(){super(kb),this.agOpened=fe,this.agClosed=fe,this.agLabel=fe,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:i}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),i?.setupForHeaderGroup(this)}checkWarnings(){this.params.template&&se(89)}workOutInnerHeaderGroupComponent(e,t){const i=function Vg(e,t,i){return e.getCompDetails(t,wg,void 0,i)}(e,t,t);i&&(this.isLoadingInnerComponent=!0,i.newAgStackInstance().then(o=>{this.isLoadingInnerComponent=!1,o&&(this.isAlive()?(this.innerHeaderGroupComponent=o,this.agLabel.appendChild(o.getGui())):this.destroyBean(o))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:i},beans:o}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const n=l=>{if(Qi(l))return;const d=!i.isExpanded();o.colGroupSvc.setColumnGroupOpened(i.getProvidedColumnGroup(),d,"uiColumnExpanded")};this.addTouchAndClickListeners(o,t,n),this.addTouchAndClickListeners(o,e,n);const s=l=>{Vo(l)};this.addManagedElementListeners(t,{dblclick:s}),this.addManagedElementListeners(e,{dblclick:s}),this.addManagedElementListeners(this.getGui(),{dblclick:n}),this.updateIconVisibility();const r=i.getProvidedColumnGroup(),a=this.updateIconVisibility.bind(this);this.addManagedListeners(r,{expandedChanged:a,expandableChanged:a})}addTouchAndClickListeners(e,t,i){e.touchSvc?.setupForHeaderGroupElement(this,t,i),this.addManagedElementListeners(t,{click:i})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:i}}=this;if(i.isExpandable()){const o=i.isExpanded();it(e,o),it(t,!o)}else it(e,!1),it(t,!1)}addInIcon(e,t){const i=pi(e,this.beans,null);i&&t.appendChild(i)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:i}=this;it(t,!1),it(i,!1)}}setupLabel(e){const{displayName:t,columnGroup:i}=e,o=this.innerHeaderGroupComponent||this.isLoadingInnerComponent;p(t)&&!o&&(this.agLabel.textContent=Z(t)),this.toggleCss("ag-sticky-label",!i.getColGroupDef()?.suppressStickyLabel)}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}}},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},Lb={moduleName:"AnimationFrame",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="animationFrameSvc",this.p1={list:[],sorted:!1},this.p2={list:[],sorted:!1},this.f1={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,0===e&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){!1===this.active&&se(92)}createTask(e,t,i,o,n=!1){this.verify();let s=i;o&&this.batchFrameworkComps&&(s="f1");const r={task:e,index:t,createOrder:++this.taskCount,deferred:n};this.addTaskToList(this[s],r),this.schedule()}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((i,o)=>i.deferred!==o.deferred?i.deferred?-1:1:i.index!==o.index?t*(o.index-i.index):o.createOrder-i.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}executeFrame(e){const{p1:t,p2:i,f1:o,destroyTasks:n,beans:s}=this,{ctrlsSvc:r,frameworkOverrides:a}=s,l=t.list,d=i.list,c=o.list,u=Date.now();let g=0;const m=e<=0,w=r.getScrollFeature();for(;m||g<e;){if(!w.scrollGridIfNeeded()){let x;if(l.length)this.sortTaskList(t),x=l.pop().task;else if(d.length)this.sortTaskList(i),x=d.pop().task;else if(c.length)a.wrapOutgoing(()=>{for(;(m||g<e)&&!w.scrollGridIfNeeded()&&c.length;)this.sortTaskList(o),x=c.pop().task,x(),g=Date.now()-u}),x=()=>{};else{if(!n.length)break;x=n.pop()}x()}g=Date.now()-u}l.length||d.length||c.length||n.length?this.requestFrame():this.ticking=!1}flushAllFrames(){this.active&&this.executeFrame(-1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,this.requestFrame()))}requestFrame(){const e=this.executeFrame.bind(this,60);_e(this.beans,e)}isQueueEmpty(){return!this.ticking}}]},Hb={moduleName:"Touch",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eBodyViewport,t)}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t)}mockRowContextMenu(e){To()&&this.mockContextMenu(e,e.element,(i,o,n)=>{const{rowCtrl:s,cellCtrl:r}=e.getControlsForEventTarget(n?.target??null);r?.column&&r.dispatchCellContextMenuEvent(n??null),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,n,s,r)})}handleCellDoubleClick(e,t){return!!(()=>{if(!To()||us("dblclick"))return!1;const o=Date.now(),n=o-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=o,n})()&&(e.onCellDoubleClicked(t),t.preventDefault(),!0)}setupForHeader(e){const{gos:t,sortSvc:i,menuSvc:o}=this.beans;if(t.get("suppressTouch"))return;const{params:n,eMenu:s,eFilterButton:r}=e,a=new Go(e.getGui(),!0);e.addDestroyFunc(()=>a.destroy());const l=e.shouldSuppressMenuHide(),d=l&&p(s)&&n.enableMenu;let c=a;if(d&&(c=new Go(s,!0),e.addDestroyFunc(()=>c.destroy())),n.enableMenu||o?.isHeaderContextMenuEnabled(n.column)){const u=d?"tap":"longTap",g=m=>n.showColumnMenuAfterMouseClick(m.touchStart);e.addManagedListeners(c,{[u]:g}),e.addManagedListeners(a,{longTap:g})}if(n.enableSorting&&e.addManagedListeners(a,{tap:g=>{const m=g.touchStart.target;l&&(s?.contains(m)||r?.contains(m))||i?.progressSort(n.column,!1,"uiColumnSorted")}}),n.enableFilterButton&&r){const u=new Go(r,!0);e.addManagedListeners(u,{tap:()=>n.showFilter(r)}),e.addDestroyFunc(()=>u.destroy())}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const i=new Go(t.eGridHeader,!0);e.addManagedListeners(i,{longTap:n=>t.showColumnMenuAfterMouseClick(n.touchStart)}),e.addDestroyFunc(()=>i.destroy())}}setupForHeaderGroupElement(e,t,i){const o=new Go(t,!0);e.addManagedListeners(o,{tap:i}),e.addDestroyFunc(()=>o.destroy())}mockContextMenu(e,t,i){if(!To())return;const o=new Go(t);e.addManagedListeners(o,{longTap:s=>{De(this.beans,s.touchEvent)&&i(void 0,s.touchStart,s.touchEvent)}}),e.addDestroyFunc(()=>o.destroy())}}]},Ru=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:i}=e||{};return this.cellValidations?.get(t)?.get(i)}hasCellValidation(e){return e?.rowNode&&e.column?!!this.getCellValidation(e):this.cellValidations.size>0}setCellValidation(e,t){const{rowNode:i,column:o}=e;this.cellValidations.has(i)||this.cellValidations.set(i,new Map),this.cellValidations.get(i).set(o,t)}clearCellValidation(e){const{rowNode:t,column:i}=e;this.cellValidations.get(t)?.delete(i)}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},Eu=class{constructor(){this.rowValidations=new Map}getRowValidation(e){const{rowNode:t}=e||{};return this.rowValidations.get(t)}hasRowValidation(e){return e?.rowNode?!!this.getRowValidation(e):this.rowValidations.size>0}setRowValidation({rowNode:e},t){this.rowValidations.set(e,t)}clearRowValidation({rowNode:e}){this.rowValidations.delete(e)}setRowValidationMap(e){this.rowValidations=e}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}};function gl(e,t={}){const{rowIndex:i,rowId:o,rowCtrl:n,rowPinned:s}=t;if(n)return n;const{rowModel:r,rowRenderer:a}=e;let{rowNode:l}=t;return l||(o?l=function av(e,t,i){const{rowModel:o,pinnedRowModel:n}=e;let s;return s??(s=o?.getRowNode(t)),i?s??(s=n?.getPinnedRowById(t,i)):(s??(s=n?.getPinnedRowById(t,"top")),s??(s=n?.getPinnedRowById(t,"bottom"))),s}(e,o,s):null!=i&&(l=r.getRow(i))),a.getRowCtrls(l?[l]:[])?.[0]}function gt(e,t={}){const{cellCtrl:i,colId:o,columnId:n,column:s}=t;if(i)return i;const r=e.colModel.getCol(o??n??pl(s)),a=t.rowCtrl??gl(e,t),l=a?.getCellCtrl(r)??void 0;if(l)return l;const d=t.rowNode??a?.rowNode;return d?e.rowRenderer.getCellCtrls([d],[r])?.[0]:void 0}function xu(e){const{editSvc:t}=e;t?.isBatchEditing()?gn(e):t?.stopEditing(void 0,{source:"api"})}function pl(e){if(e)return"string"==typeof e?e:e.getColId()}var mi=Symbol("unedited");function Pu(e,t={}){const i=[],o=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns);for(const n of o){const s=n.comp?.getCellEditor();s&&i.push({ctrl:n,editor:Un(s)})}return i}function Ji({pendingValue:e,sourceValue:t}){return e===mi&&(e=t),e!==t}function hn(e,t,i){const o=e.gos.get("enableGroupEdit"),{key:n,event:s,cellStartedEdit:r,silent:a}=i??{},l=gt(e,t),d=l?.comp?.getCellEditor(),c=Du(e,t,n,r&&!a),u=e.editModelSvc?.getEdit(t);let g=c.value;if(void 0===g&&(g=u?.sourceValue),e.editModelSvc?.setEdit(t,{editorValue:g,state:"editing"}),d)return void d.refresh?.(c);const m=t.column.getColDef(),w=yd(e.userCompFactory,m,c),b=null!=w?.popupFromSelector?w.popupFromSelector:!!m.cellEditorPopup,x=null!=w?.popupPositionFromSelector?w.popupPositionFromSelector:m.cellEditorPopupPosition;if(Mu(w.params,s),l){l.editCompDetails=w,l.onEditorAttachedFuncs.push(()=>l.rangeFeature?.unsetComp()),l.comp?.setEditDetails(w,b,x,e.gos.get("reactiveCustomComponents")),l?.rowCtrl?.refreshRow({suppressFlash:!0});const A=e.editModelSvc?.getEdit(t,!0);!a&&!A?.editorState?.cellStartedEditing&&(e.editSvc?.dispatchCellEvent(t,s,"cellEditingStarted",o?{value:g}:{}),e.editModelSvc?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}}function Fu(e,t,i){const o={editorValueExists:!1};if(ml(e)&&(t.getValidationErrors?.()?.length??0)>0||i?.isCancelling)return o;if(i?.isStopping){const s=t?.isCancelAfterEnd?.();if(s)return{...o,isCancelAfterEnd:s}}return{editorValue:t.getValue(),editorValueExists:!0}}function Du(e,t,i,o){const{valueSvc:n,gos:s,editSvc:r}=e,a=e.gos.get("enableGroupEdit"),l=gt(e,t),d=t.rowNode?.rowIndex??void 0,c=r?.isBatchEditing(),u=e.colModel.getCol(t.column.getId()),{rowNode:g,column:m}=t,w=l.comp?.getCellEditor(),b=r?.getCellDataValue(t,!1),x=void 0===b?w?Fu(e,w)?.editorValue:void 0:b,A=x===mi?n.getValueForDisplay(u,g)?.value:x;return Ie(s,{value:a?x:A,eventKey:i??null,column:m,colDef:m.getColDef(),rowIndex:d,node:g,data:g.data,cellStartedEdit:o??!1,onKeyDown:l?.onKeyDown.bind(l),stopEditing:O=>{r.stopEditing(t,{source:c?"ui":"api",suppressNavigateAfterEdit:O}),pr(e,t)},eGridCell:l?.eGui,parseValue:O=>n.parseValue(u,g,O,l?.value),formatValue:l?.formatValue.bind(l),validate:()=>{r?.validateEdit()}})}function fl(e,t){const{editModelSvc:i}=e;i?.getEditMap().forEach((o,n)=>{o.forEach((s,r)=>{!t&&("editing"===s.state||s.pendingValue===mi)||!Ji(s)&&("editing"!==s.state||t)&&i?.removeEdits({rowNode:n,column:r})})})}function Mu(e,t){return t instanceof KeyboardEvent&&"agNumberCellEditor"===e.column.getColDef().cellEditor?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function zo(e,t){for(const i of e.editModelSvc?.getEditPositions()??[]){const o=gt(e,i);if(!o)continue;const n=o.comp?.getCellEditor();if(!n)continue;const{editorValue:s,editorValueExists:r,isCancelAfterEnd:a}=Fu(e,n,t);a&&e.editModelSvc?.setEdit(i,{editorState:{isCancelAfterEnd:a}}),gr(e,i,s,0,!r,t)}}function gr(e,t,i,o,n,s){const{editModelSvc:r,valueSvc:a}=e;if(!r)return;const{rowNode:l,column:d}=t;if(!l||!d)return;let c=r.getEdit(t,!0);c?.sourceValue||(c=r.setEdit(t,{sourceValue:a.getValue(d,l,void 0,"api"),pendingValue:c?c.editorValue:mi})),r.setEdit(t,{editorValue:n?c.sourceValue:i}),s?.persist&&function Zb(e,t){const{editModelSvc:i}=e,o=i?.getEdit(t,!0);i?.setEdit(t,{pendingValue:o?.editorValue})}(e,t)}function gn(e,t,i){t||(t=e.editModelSvc?.getEditPositions());for(const o of t??[])pr(e,o,i)}function pr(e,t,i){const o=e.gos.get("enableGroupEdit"),{editModelSvc:n}=e,s=gt(e,t),r=n?.getEdit(t,!0);if(!s)return void(r&&n?.setEdit(t,{state:"changed"}));const{comp:a}=s;if(a&&!a.getCellEditor())return s?.refreshCell(),void(r&&(n?.setEdit(t,{state:"changed"}),ku(e,t,o?_u(i,r):{valueChanged:!1,newValue:void 0,oldValue:r.sourceValue},i)));if(ml(e)){const d=a?.getCellEditor()?.getValidationErrors?.(),c=n?.getCellValidationModel();d?.length?c?.setCellValidation(t,{errorMessages:d}):c?.clearCellValidation(t)}n?.setEdit(t,{state:"changed"}),a?.setEditDetails(),a?.refreshEditStyles(!1,!1),s?.refreshCell({force:!0,suppressFlash:!0});const l=n?.getEdit(t);l&&"changed"===l.state&&ku(e,t,o?_u(i,l):{valueChanged:Ji(l)&&!i?.cancel,newValue:i?.cancel||l.editorState.isCancelAfterEnd?void 0:l?.editorValue??r?.pendingValue,oldValue:l?.sourceValue},i)}function _u(e,t){return e?.cancel?{valueChanged:!1,oldValue:t.sourceValue,newValue:void 0,value:t.sourceValue}:{valueChanged:!1,oldValue:t.sourceValue,newValue:t.pendingValue,value:t.sourceValue}}function ku(e,t,i,{silent:o,event:n}={}){const{editSvc:s,editModelSvc:r}=e,a=r?.getEdit(t),{editorState:l}=a||{},{isCancelBeforeStart:d}=l||{};!o&&!d&&(s?.dispatchCellEvent(t,n,"cellEditingStopped",i),r?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function ml(e){const{gos:t,colModel:i}=e,o=!!t.get("getFullRowEditValidationErrors"),n=i.getColumnDefs()?.filter(r=>r.editable).some(({cellEditorParams:r})=>{const{minLength:a,maxLength:l,getValidationErrors:d,min:c,max:u}=r||{};return void 0!==a||void 0!==l||void 0!==d||void 0!==c||void 0!==u}),s=e.gridApi.getCellEditorInstances().some(r=>r.getValidationElement||r.getValidationErrors);return n||o||s}function Wo(e,t){if(!t&&!ml(e))return;const i=Pu(e),o=new Ru,{ariaAnnounce:n,localeSvc:s,editModelSvc:r,gos:a}=e,l="fullRow"===a.get("editType"),c=Pt(s)("ariaValidationErrorPrefix","Cell Editor Validation");for(const g of i){const{ctrl:m,editor:w}=g,{rowNode:b,column:x}=m,A=w.getValidationErrors?.()??[],O=w.getValidationElement?.(!1)||!w.isPopup?.()&&m.eGui;if(O){const V=null!=A&&A.length>0,te=V?A.join(". "):"";Ze(O,V),V&&n.announceValue(`${c} ${A}`,"editorValidation"),O instanceof HTMLInputElement?O.setCustomValidity(te):O.classList.toggle("invalid",V)}A?.length>0&&o.setCellValidation({rowNode:b,column:x},{errorMessages:A})}zo(e,{persist:!1}),r?.setCellValidationModel(o);const u=new Set;for(const{ctrl:g}of i)u.add(g.rowCtrl);if(l){const g=Jb(e);r?.setRowValidationModel(g)}for(const g of u.values()){g.rowEditStyleFeature?.applyRowStyles();for(const m of g.getAllCellCtrls())m.tooltipFeature?.refreshTooltip(!0),m.editorTooltipFeature?.refreshTooltip(!0),m.editStyleFeature?.applyCellStyles?.()}}var Jb=e=>{const t=new Eu,i=e.gos.get("getFullRowEditValidationErrors"),o=e.editModelSvc?.getEditMap();if(!o)return t;for(const n of o.keys()){const s=o.get(n);if(!s)continue;const r=[],{rowIndex:a,rowPinned:l}=n;for(const c of s.keys()){const u=s.get(c);if(!u)continue;const{editorValue:g,pendingValue:m,sourceValue:w}=u,b=g??(m===mi?void 0:m)??w;r.push({column:c,colId:c.getColId(),rowIndex:a,rowPinned:l,oldValue:w,newValue:b})}const d=i?.({editorsState:r})??[];d.length>0&&t.setRowValidation({rowNode:n},{errorMessages:d})}return t},oy=class extends Y{constructor(e,t,i,o){super(),this.cellCtrl=e,this.rowNode=i,this.rowCtrl=o,this.beans=t}init(){this.eGui=this.cellCtrl.eGui}onKeyDown(e){const t=e.key;switch(t){case"Enter":this.onEnterKeyDown(e);break;case"F2":this.onF2KeyDown(e);break;case"Escape":this.onEscapeKeyDown(e);break;case"Tab":this.onTabKeyDown(e);break;case"Backspace":case"Delete":this.onBackspaceOrDeleteKeyDown(t,e);break;case N_DOWN:case N_UP:case N_RIGHT:case N_LEFT:this.onNavigationKeyDown(e,t)}}onNavigationKeyDown(e,t){const{cellCtrl:i,beans:o}=this;if(!o.editSvc?.isEditing(i,{withOpenEditor:!0})){if(e.shiftKey&&i.isRangeSelectionEnabled())this.onShiftRangeSelect(e);else{const n=i.getFocusedCellPosition();o.navigation?.navigateToNextCell(e,t,n,!0)}e.preventDefault()}}onShiftRangeSelect(e){const{rangeSvc:t,navigation:i}=this.beans;if(!t)return;const o=t.extendLatestRangeInDirection(e);o&&(e.key===N_LEFT||e.key===N_RIGHT?i?.ensureColumnVisible(o.column):i?.ensureRowVisible(o.rowIndex))}onTabKeyDown(e){this.beans.navigation?.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){const{cellCtrl:i,beans:o,rowNode:n}=this,{gos:s,rangeSvc:r,eventSvc:a,editSvc:l}=o;if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),function iy(e,t=!1){return"Delete"===e||!t&&"Backspace"===e&&Ed()}(e,s.get("enableCellEditingOnBackspace"))&&!l?.isEditing(i,{withOpenEditor:!0})){if(r&&kt(s))r.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(i.isCellEditable()){const{column:d}=i,c=this.beans.valueSvc.getDeleteValue(d,n);n.setDataValue(d,c,"cellClear")}}else l?.isEditing(i,{withOpenEditor:!0})||o.editSvc?.startEditing(i,{startedEdit:!0,event:t});a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}onEnterKeyDown(e){const{cellCtrl:t,beans:i}=this,{editSvc:o,navigation:n}=i,s=o?.isEditing(t,{withOpenEditor:!0}),r=t.rowNode,a=o?.isRowEditing(r,{withOpenEditor:!0}),l=d=>{o?.startEditing(d,{startedEdit:!0,event:e,source:"edit"})&&e.preventDefault()};if(s||a){if(this.isCtrlEnter(e))return void o?.applyBulkEdit(t,i?.rangeSvc?.getCellRanges()||[]);if(Wo(i),"block-stop"===o?.checkNavWithValidation(void 0,e))return;o?.isEditing(t,{withOpenEditor:!0})?o?.stopEditing(t,{event:e,source:"edit"}):a&&!t.isCellEditable()?o?.stopEditing({rowNode:r},{event:e,source:"edit"}):l(t)}else if(i.gos.get("enterNavigatesVertically")){const d=e.shiftKey?N_UP:N_DOWN;n?.navigateToNextCell(null,d,t.cellPosition,!1)}else{if(o?.hasValidationErrors())return;o?.hasValidationErrors(t)&&o.revertSingleCellEdit(t,!0),l(t)}}isCtrlEnter(e){return(e.ctrlKey||e.metaKey)&&"Enter"===e.key}onF2KeyDown(e){const{cellCtrl:t,beans:{editSvc:i}}=this;i?.isEditing()&&(Wo(this.beans),"block-stop"===i?.checkNavWithValidation(void 0,e))||i?.startEditing(t,{startedEdit:!0,event:e})}onEscapeKeyDown(e){const{cellCtrl:t,beans:{editSvc:i}}=this;"block-stop"===i?.checkNavWithValidation(t,e)&&i.revertSingleCellEdit(t),i?.stopEditing(t,{event:e,cancel:!0})}processCharacter(e){const i=e.target!==this.eGui,{beans:{editSvc:o},cellCtrl:n}=this;if(!i&&!o?.isEditing(n,{withOpenEditor:!0}))if(" "===e.key)this.onSpaceKeyDown(e);else if(o?.isCellEditable(n,"ui")){if(o?.hasValidationErrors()&&!o?.hasValidationErrors(n))return;o?.startEditing(n,{startedEdit:!0,event:e,source:"api"}),!n.editCompDetails?.params?.suppressPreventDefault&&e.preventDefault()}}onSpaceKeyDown(e){const{gos:t,editSvc:i}=this.beans,{rowNode:o}=this.cellCtrl;!i?.isEditing(this.cellCtrl,{withOpenEditor:!0})&&Ui(t)&&this.beans.selectionSvc?.handleSelectionEvent(e,o,"spaceKey"),e.preventDefault()}},ny=class extends Y{constructor(e,t,i){super(),this.cellCtrl=e,this.column=i,this.beans=t}onMouseEvent(e,t){if(!Qi(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}}onCellClicked(e){if(this.beans.touchSvc?.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:i,editSvc:o,editModelSvc:n,frameworkOverrides:s,gos:r}=this.beans,a=e.ctrlKey||e.metaKey,{cellCtrl:l}=this,{column:d,cellPosition:c,rowNode:u}=l,g=$s(r,d,u,e);i&&a&&!g&&i.getCellRangeCount(c)>1&&i.intersectLastRange(!0);const m=l.createEvent(e,"cellClicked");m.isEventHandlingSuppressed=g,t.dispatchEvent(m);const w=d.getColDef();if(w.onCellClicked&&window.setTimeout(()=>{s.wrapOutgoing(()=>{w.onCellClicked(m)})},0),!g&&"editing"!==n?.getState(l)){const b=o?.isEditing(),x=n?.getCellValidationModel().getCellValidationMap().size??0,A=n?.getRowValidationModel().getRowValidationMap().size??0;if(b&&(x>0||A>0))return;o?.shouldStartEditing(l,e)?o?.startEditing(l,{event:e}):o?.shouldStopEditing(l,e)&&("fullRow"===this.beans.gos.get("editType")?o?.stopEditing(l,{event:e,source:"edit"}):o?.stopEditing(void 0,{event:e,source:"edit"}))}}onCellDoubleClicked(e){const{column:t,beans:i,cellCtrl:o}=this,{eventSvc:n,frameworkOverrides:s,editSvc:r,editModelSvc:a,gos:l}=i,d=$s(l,o.column,o.rowNode,e),c=t.getColDef(),u=o.createEvent(e,"cellDoubleClicked");if(u.isEventHandlingSuppressed=d,n.dispatchEvent(u),"function"==typeof c.onCellDoubleClicked&&window.setTimeout(()=>{s.wrapOutgoing(()=>{c.onCellDoubleClicked(u)})},0),!d&&r?.shouldStartEditing(o,e)&&"editing"!==a?.getState(o)){const g=r?.isEditing(),m=a?.getCellValidationModel().getCellValidationMap().size??0,w=a?.getRowValidationModel().getRowValidationMap().size??0;if(g&&(m>0||w>0))return;r?.startEditing(o,{event:e})}}onMouseDown(e){const{ctrlKey:t,metaKey:i,shiftKey:o}=e,n=e.target,{cellCtrl:s,beans:r}=this,{eventSvc:a,rangeSvc:l,rowNumbersSvc:d,focusSvc:c,gos:u,editSvc:g}=r,{column:m,rowNode:w,cellPosition:b}=s,x=$s(u,m,w,e),A=()=>{const oe=s.createEvent(e,"cellMouseDown");oe.isEventHandlingSuppressed=x,a.dispatchEvent(oe)};if(x)return void A();if(this.isRightClickInExistingRange(e))return;const O=l&&!l.isEmpty(),V=this.containsWidget(n),te=Xi(m);if(d&&te&&!d.handleMouseDownOnCell(b,e))return l&&e.preventDefault(),void e.stopImmediatePropagation();if(!o||!O){const oe=g?.isEditing(s),pe=u.get("enableCellTextSelection")&&e.defaultPrevented,Ne=(po()||pe)&&!oe&&!Zt(n)&&!V;s.focusCell(Ne,e)}if(o&&O&&!c.isCellFocused(b)){e.preventDefault();const oe=c.getFocusedCell();if(oe){const{column:ce,rowIndex:pe,rowPinned:Ne}=oe;g?.isEditing(oe)&&g?.stopEditing(oe),c.setFocusedCell({column:ce,rowIndex:pe,rowPinned:Ne,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:e})}}if(!V){if(l){te&&e.preventDefault();const oe=Yl(r,e)&&te;o?l.extendLatestRangeToCell(b):oe||l.setRangeToCell(b,t||i)}A()}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const i=t.isCellInAnyRange(this.cellCtrl.cellPosition),o=Yl(this.beans,e);if(i&&o)return!0}return!1}containsWidget(e){return ai(e,"ag-selection-checkbox",3)||ai(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),i?.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:i}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),i?.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const t=this.cellCtrl.eGui,i=t.contains(e.target),o=t.contains(e.relatedTarget);return i&&o}},sy=class extends Y{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}init(){this.eSetLeft=this.cellCtrl.getRootElement(),this.eContent=this.cellCtrl.eGui;const e=this.cellCtrl.getCellSpan();if(e||(this.setupColSpan(),this.setupRowSpan()),this.onLeftChanged(),this.onWidthChanged(),e||this._legacyApplyRowSpan(),e){const t=this.refreshSpanHeight.bind(this,e);t(),this.addManagedListeners(this.beans.eventSvc,{paginationChanged:t,recalculateRowBounds:t,pinnedHeightChanged:t})}}refreshSpanHeight(e){const t=e.getCellHeight();null!=t&&(this.eContent.style.height=`${t}px`)}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this._legacyApplyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();ho(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eContent)return;const e=this.getCellWidth();this.eContent.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,i=e.getColSpan(t),o=[];if(1===i)o.push(e);else{let n=e;const s=e.getPinned();for(let r=0;n&&r<i&&(o.push(n),n=this.beans.visibleCols.getColAfter(n),n&&!K(n)&&s===n.getPinned());r++);}return o}onLeftChanged(){if(!this.eSetLeft)return;const e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eSetLeft.style.left=e+"px"}getCellLeft(){let e;return e=this.beans.gos.get("enableRtl")&&this.colsSpanning?rt(this.colsSpanning):this.column,e.getLeft()}modifyLeftForPrintLayout(e){if(!this.cellCtrl.printLayout||"left"===this.column.getPinned())return e;const{visibleCols:t}=this.beans,i=t.getColsLeftWidth();return"right"===this.column.getPinned()?i+t.bodyWidth+(e||0):i+(e||0)}_legacyApplyRowSpan(e){if(1===this.rowSpan&&!e)return;const i=Ai(this.beans)*this.rowSpan;this.eContent.style.height=`${i}px`,this.eContent.style.zIndex="1"}destroy(){super.destroy()}},py=0,pn=class extends Y{constructor(e,t,i,o){super(),this.column=e,this.rowNode=t,this.rowCtrl=o,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.positionFeature=void 0,this.customStyleFeature=void 0,this.editStyleFeature=void 0,this.mouseListener=void 0,this.keyboardListener=void 0,this.suppressRefreshCell=!1,this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.focusEventWhileNotReady=null,this.hasBeenFocused=!1,this.hasEdit=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.beans=i,this.gos=i.gos,this.editSvc=i.editSvc,this.hasEdit=!!i.editSvc;const{colId:n}=e;this.instanceId=n+"-"+py++,this.createCellPosition(),this.updateAndFormatValue(!1)}addFeatures(){const{beans:e}=this;this.positionFeature=new sy(this,e),this.customStyleFeature=e.cellStyles?.createCellCustomStyleFeature(this,e),this.editStyleFeature=e.editSvc?.createCellStyleFeature(this,e),this.mouseListener=new ny(this,e,this.column),this.keyboardListener=new oy(this,e,this.rowNode,this.rowCtrl),this.enableTooltipFeature();const{rangeSvc:t}=e;t&&kt(e.gos)&&(this.rangeFeature=t.createCellRangeFeature(e,this)),Xi(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(e,this))}isCellSpanning(){return!1}getCellSpan(){}removeFeatures(){const e=this.beans.context;this.positionFeature=e.destroyBean(this.positionFeature),this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.customStyleFeature=e.destroyBean(this.customStyleFeature),this.editStyleFeature=e.destroyBean(this.editStyleFeature),this.mouseListener=e.destroyBean(this.mouseListener),this.keyboardListener=e.destroyBean(this.keyboardListener),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.disableTooltipFeature()}enableTooltipFeature(e,t){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this,e,t)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature)}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),Wo(this.beans)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,i,o,n,s,r){if(this.comp=e,this.eGui=t,this.printLayout=n,r??(r=this),this.addDomData(r),this.addFeatures(),r.addDestroyFunc(()=>this.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(o,r),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),this.positionFeature?.init(),this.customStyleFeature?.setComp(e),this.editStyleFeature?.setComp(e),this.tooltipFeature?.refreshTooltip(),this.keyboardListener?.init(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer(),s&&this.isCellEditable()||this.hasEdit&&this.editSvc?.isEditing(this,{withOpenEditor:!0})?this.editSvc?.startEditing(this,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0}):this.showValue(!1,!0),this.onCompAttachedFuncs.length){for(const a of this.onCompAttachedFuncs)a();this.onCompAttachedFuncs=[]}}setupAutoHeight(e,t){this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return null!=e.cellRenderer||null!=e.cellRendererSelector}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:i,ctrlsSvc:o,eventSvc:n}=e,s=t.getColDef(),r=this.createCellRendererParams();r.deferRender=!0;const a=bd(i,s,r);if(o.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let l;const d=new ft(u=>{l=u}),[c]=this.addManagedListeners(n,{bodyScrollEnd:()=>{l(),c()}});return{loadingComp:a,onReady:d}}return{loadingComp:a,onReady:ft.resolve()}}showValue(e,t){const{beans:i,column:o,rowNode:n,rangeFeature:s}=this,{userCompFactory:r}=i;let l,a=this.getValueToDisplay();const d=n.stub&&null==n.groupData?.[o.getId()],c=o.getColDef();if(d||this.isCellRenderer()){const u=this.createCellRendererParams();l=!d||Xi(o)?wd(r,c,u):bd(r,c,u)}if(!l&&!d&&i.findSvc?.isMatch(n,o)){const u=this.createCellRendererParams();l=wd(r,{...o.getColDef(),cellRenderer:"agFindCellRenderer"},u)}if(this.hasEdit&&this.editSvc.isBatchEditing()&&this.editSvc.isRowEditing(n,{checkSiblings:!0})){const u=this.editSvc.prepDetailsDuringBatch(this,{compDetails:l,valueToDisplay:a});u&&(u.compDetails?l=u.compDetails:u.valueToDisplay&&(a=u.valueToDisplay))}this.comp.setRenderDetails(l,a,e),this.customRowDragComp?.refreshVisibility(),!t&&s&&_e(i,()=>s?.refreshHandle()),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e),!0),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}getCellValueClass(){let i="";return"agCheckboxCellRenderer"===this.column.getColDef().cellRenderer&&(i=" ag-allow-overflow"),`ag-cell-value${i}`}isIncludeControl(e,t=!1){return(null==this.rowNode.rowPinned||t&&Yn(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:i}=this.beans.gridOptions,o=h(t),n=qi(this.column);return("custom"!==i||"selectionColumn"===o||!n)&&(e.checkboxSelection||n&&"object"==typeof t&&f(t))}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),i=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource),n=this.isAutoHeight!=this.column.isAutoHeight();return t||i||o||n}onPopupEditorClosed(){const{editSvc:e}=this.beans;e?.isEditing(this,{withOpenEditor:!0})&&e?.stopEditing(this,{source:e?.isBatchEditing()?"ui":"api"})}stopEditing(e=!1){const{editSvc:t}=this.beans;return t?.stopEditing(this,{cancel:e,source:t?.isBatchEditing()?"ui":"api"})??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:i,rowNode:o,comp:n,eGui:s,beans:{valueSvc:r,gos:a,editSvc:l}}=this;return Ie(a,{value:e,valueFormatted:t,getValue:()=>r.getValueForDisplay(i,o).value,setValue:c=>l?.setDataValue({rowNode:o,column:i},c)||o.setDataValue(i,c),formatValue:this.formatValue.bind(this),data:o.data,node:o,pinned:i.getPinned(),colDef:i.getColDef(),column:i,refreshCell:this.refreshCell.bind(this),eGridCell:s,eParentOfValue:n.getParentOfValue(),registerRowDragger:(c,u,g,m)=>this.registerRowDragger(c,u,m),setTooltip:(c,u)=>{a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(c,u),this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){if(this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e),this.hasEdit&&this.editCompDetails){const{editSvc:t,comp:i}=this;!i?.getCellEditor()&&t.isEditing(this,{withOpenEditor:!0})&&t.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}}refreshCell({force:e,suppressFlash:t,newData:i}={}){const{editStyleFeature:o,customStyleFeature:n,rowCtrl:{rowEditStyleFeature:s},beans:{cellFlashSvc:r,filterManager:a},column:l,comp:d,suppressRefreshCell:c,tooltipFeature:u}=this;if(c)return;const{field:g,valueGetter:m,showRowGroup:w,enableCellChangeFlash:b}=l.getColDef(),A=e||null==g&&null==m&&null==w||i,O=!!d,V=this.updateAndFormatValue(O);if(O){if(A||V){this.showValue(!!i,!1);const oe=a?.isSuppressFlashingCellsBecauseFiltering();!t&&!oe&&b&&r?.flashCell(this),o?.applyCellStyles?.(),n?.applyUserStyles(),n?.applyClassesFromColDef(),s?.applyRowStyles()}u?.refreshTooltip(),n?.applyCellClassRules()}}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,i=this.valueFormatted,{value:o,valueFormatted:n}=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode,!0);return this.value=o,this.valueFormatted=n,!e||!this.valuesAreEqual(t,this.value)||this.valueFormatted!=i}valuesAreEqual(e,t){const i=this.column.getColDef();return i.equals?i.equals(e,t):e===t}addDomData(e){const t=this.eGui;$i(this.beans.gos,t,js,this),e.addDestroyFunc(()=>$i(this.beans.gos,t,js,null))}createEvent(e,t){const{rowNode:i,column:o,value:n,beans:s}=this;return function ty(e,t,i,{rowNode:o,column:n},s){return Ie(e.gos,{type:i,node:o,data:o.data,value:s,column:n,colDef:n.getColDef(),rowPinned:o.rowPinned,event:t,rowIndex:o.rowIndex})}(s,e,t,{rowNode:i,column:o},n)}processCharacter(e){this.keyboardListener?.processCharacter(e)}onKeyDown(e){this.keyboardListener?.onKeyDown(e)}onMouseEvent(e,t){this.mouseListener?.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature?.getColSpanningList()??[]}onLeftChanged(){this.comp&&this.positionFeature?.onLeftChanged()}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:i}=this;vc(e,t,i.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);Qe(this.eGui,e)}onWidthChanged(){return this.positionFeature?.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){this.comp&&this.rangeFeature?.updateRangeBordersIfRangeCount()}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return null!=this.rangeFeature}focusCell(e=!1,t){const i=this.editSvc?.allowedFocusTargetOnValidation(this);i&&i!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:e,sourceEvent:t})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:i},comp:o}=this;if(!o||t?.isEditing(this)||!this.isCellFocused()||!i.shouldTakeFocus())return;const n=()=>{if(!this.isAlive())return;const s=o.getFocusableElement();this.isCellFocused()&&s.focus({preventScroll:!0})};e?setTimeout(n,0):n()}onRowIndexChanged(){this.createCellPosition(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&(Xi(this.column)&&(e=!0),z(t,"tabindex",e?void 0:-1))}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.toggleCss("ag-cell-first-right-pinned",e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.toggleCss("ag-cell-last-left-pinned",e)}checkCellFocused(){return this.beans.focusSvc.isCellFocused(this.cellPosition)}isCellFocused(){const e=this.checkCellFocused();return this.hasBeenFocused||(this.hasBeenFocused=e),e}setupFocus(){this.restoreFocus(!0),this.onCellFocused(this.focusEventWhileNotReady??void 0)}onCellFocused(e){const{beans:t}=this;if(er(t))return;if(!this.comp)return void(e&&(this.focusEventWhileNotReady=e));const i=this.isCellFocused(),o=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss("ag-cell-focus",i),i&&e?.forceBrowserFocus){let n=this.comp.getFocusableElement();if(o){const s=tn(n,null,!0);s.length&&(n=s[0])}n.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}i&&e&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:E(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss("ag-cell",!0),e.toggleCss("ag-cell-not-inline-editing",!0);const t=1==this.column.isAutoHeight();e.toggleCss("ag-cell-auto-height",t),e.toggleCss("ag-cell-normal-height",!t)}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){const e=1==this.column.getColDef().wrapText;this.comp.toggleCss("ag-cell-wrap-text",e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),i=this.createEvent(e,"cellContextMenu"),{beans:o}=this;o.eventSvc.dispatchEvent(i),t.onCellContextMenu&&window.setTimeout(()=>{o.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(i)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.attemptToRecoverFocus(),super.destroy()}hasBrowserFocus(){return this.eGui?.contains(le(this.beans))??!1}createSelectionCheckbox(){const e=this.beans.selectionSvc?.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,i){if(this.customRowDragComp)return void this.customRowDragComp.setDragElement(e,t);const o=this.createRowDragComp(e,t,i);o&&(this.customRowDragComp=o,this.addDestroyFunc(()=>{this.beans.context.destroyBean(o),this.customRowDragComp=null}),o.refreshVisibility())}createRowDragComp(e,t,i){const o=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,i);if(o)return this.beans.context.createBean(o),o}cellEditorAttached(){for(const e of this.onEditorAttachedFuncs)e();this.onEditorAttachedFuncs=[]}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){}getRootElement(){return this.eGui}};function Cl(e,t,i,o,n,s){if(null==i&&null==t)return;const r={},a={},l=(d,c)=>{for(const u of d.split(" "))""!=u.trim()&&c(u)};if(i){const d=Object.keys(i);for(let c=0;c<d.length;c++){const u=d[c],g=i[u];let m;"string"==typeof g?m=!e||e.evaluate(g,o):"function"==typeof g&&(m=g(o)),l(u,w=>{m?r[w]=!0:a[w]=!0})}}if(t&&s)for(const d of Object.keys(t))l(d,c=>{r[c]||(a[c]=!0)});s&&Object.keys(a).forEach(s),Object.keys(r).forEach(n)}function Tu(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var my=0,fr=class extends Y{constructor(e,t,i,o,n){super(),this.rowNode=e,this.useAnimationFrameForCreate=o,this.printLayout=n,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+my++,this.rowId=F(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=Tu(this.rowNode),this.setRowType(),this.setAnimateFlags(i),this.rowStyles=this.processStylesFromGridOptions(),this.rowEditStyleFeature=t.editSvc?.createRowStyleFeature(this,t),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if("function"!=typeof this.businessKeyForNodeFunc)return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=F(e)}updateGui(e,t){"left"===e?this.leftGui=t:"right"===e?this.rightGui=t:"fullWidth"===e?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,i,o){const{context:n,focusSvc:s}=this.beans,r={rowComp:e,element:t,containerType:i,compBean:o=zn(this,n,o)};this.allRowGuis.push(r),this.updateGui(i,r),this.initialiseRowComp(r);const a=this.rowNode,l="FullWidthLoading"===this.rowType||a.stub,d=!a.data&&"infinite"===this.beans.rowModel.getType();!l&&!d&&!a.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent();const c=this.fullWidthGui?.element;c&&!this.beans.editSvc?.isEditing(this)&&s.isRowFocused(a.rowIndex,a.rowPinned)&&s.shouldTakeFocus()&&setTimeout(()=>c.focus({preventScroll:!0}),0)}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return"FullWidthDetail"===this.rowType&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";for(const i of this.allRowGuis)i.element.style.display=t}initialiseRowComp(e){const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Ui(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const i=e.rowComp,o=this.getInitialRowClasses(e.containerType);for(const n of o)i.toggleCss(n,!0);this.executeSlideAndFadeAnimations(e),this.rowNode.group&&Lt(e.element,1==this.rowNode.expanded),this.setRowCompRowId(i),this.setRowCompRowBusinessKey(i),$i(t,e.element,Ks,this),e.compBean.addDestroyFunc(()=>$i(t,e.element,Ks,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){null!=this.businessKey&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=F(this.rowNode.id);this.rowId=t,null!=t&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(gs(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(gs(()=>{e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const i=this.createBean(t,this.beans.context);this.rowDragComps.push(i),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(o=>o!==i),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,this.beans.context),this.destroyBean(i,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),i=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(i)}getFullWidthCellRenderers(){return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(e=>e?.rowComp?.getFullWidthCellRenderer()):[this.fullWidthGui?.rowComp?.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");e&&this.areAllContainersReady()&&e({eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:i,beans:{visibleCols:o}}=this,n=!!e||!o.isPinningLeft(),s=!!t,r=!!i||!o.isPinningRight();return n&&s&&r}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return!!e&&e({rowNode:this.rowNode})}setRowType(){const e=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),t=this.isNodeFullWidthCell(),i=this.gos.get("masterDetail")&&this.rowNode.detail,o=this.beans.colModel.isPivotMode(),n=Nr(this.gos,this.rowNode,o);this.rowType=e?"FullWidthLoading":i?"FullWidthDetail":t?"FullWidth":n?"FullWidthGroup":"Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:i}=this.beans;!i?.active||e||this.printLayout?this.updateColumnListsImpl(t):this.updateColumnListsPending||(i.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new pn(e,this.rowNode,this.beans,this)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}createCellCtrls(e,t,i=null){const o={list:[],map:{}},n=(d,c,u)=>{null!=u?o.list.splice(u,0,c):o.list.push(c),o.map[d]=c},s=[];for(const d of t){const c=d.getInstanceId();let u=e.map[c];u&&!this.isCorrectCtrlForSpan(u)&&(u.destroy(),u=void 0),u||(u=this.getNewCellCtrl(d)),u&&n(c,u)}for(const d of e.list){const c=d.column.getInstanceId();null==o.map[c]&&(this.isCellEligibleToBeRemoved(d,i)?d.destroy():s.push([c,d]))}if(s.length)for(const[d,c]of s){const u=o.list.findIndex(m=>m.column.getLeft()>c.column.getLeft()),g=-1===u?void 0:Math.max(u-1,0);n(d,c,g)}const{focusSvc:r,visibleCols:a}=this.beans,l=r.getFocusedCell();if(l&&l.column.getPinned()==i){const d=l.column.getInstanceId();if(!o.map[d]&&a.allCols.includes(l.column)){const u=this.createFocusedCellCtrl();if(u){const g=o.list.findIndex(w=>w.column.getLeft()>u.column.getLeft()),m=-1===g?void 0:Math.max(g-1,0);n(d,u,m)}}}return o}createFocusedCellCtrl(){const{focusSvc:e,rowSpanSvc:t}=this.beans,i=e.getFocusedCell();if(!i)return;const o=t?.getCellSpan(i.column,this.rowNode);if(o){if(o.firstNode!==this.rowNode||!o.doesSpanContain(i))return}else if(!e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned))return;return this.getNewCellCtrl(i.column)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){for(const t of this.allRowGuis){const i=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(i,e)}}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const i=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i);const o=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,o,"left");const n=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,n,"right")}}isCellEligibleToBeRemoved(e,t){const{column:n}=e;if(n.getPinned()!=t||!this.isCorrectCtrlForSpan(e))return!0;const{visibleCols:s,editSvc:r}=this.beans,a=r?.isEditing(e),l=e.isCellFocused();return!a&&!l||!(s.allCols.indexOf(n)>=0)}getDomOrder(){return this.gos.get("ensureDomOrder")||Ft(this.gos,"print")}listenOnDomOrder(e){e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],()=>{e.rowComp.setDomOrder(this.getDomOrder())})}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=p(this.rowNode.oldRowTop),{visibleCols:i}=this.beans,o=i.isPinningLeft(),n=i.isPinningRight();if(t){const{slideInAnimation:s}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(s.fullWidth=!0);s.center=!0,s.left=o,s.right=n}else{const{fadeInAnimation:s}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows"))return void(s.fullWidth=!0);s.center=!0,s.left=o,s.right=n}}isFullWidth(){return"Normal"!==this.rowType}refreshFullWidth(){const e=(r,a)=>!r||r.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(r.element,a).params),t=e(this.fullWidthGui,null),i=e(this.centerGui,null),o=e(this.leftGui,"left"),n=e(this.rightGui,"right");return t&&i&&o&&n}addListeners(){const{beans:e,gos:t,rowNode:i}=this,{expansionSvc:o,eventSvc:n,context:s,rowSpanSvc:r}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...o?.getRowExpandedListeners(this)??{}}),i.detail&&this.addManagedListeners(i.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(i,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this),rowPinned:this.onRowPinned.bind(this)}),this.addManagedListeners(n,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),r&&this.addManagedListeners(r,{spannedCellsUpdated:({pinned:a})=>{a&&!i.rowPinned||this.updateColumnLists()}}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,s),this.tooltipFeature=this.destroyBean(this.tooltipFeature,s),this.rowEditStyleFeature=this.destroyBean(this.rowEditStyleFeature,s)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow"))for(const l of this.allRowGuis)this.addRowDraggerToRow(l);else this.rowDragComps=this.destroyBeans(this.rowDragComps,s)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{for(const e of this.getAllCellCtrls())e.onRowIndexChanged()},cellChanged:e=>{for(const t of this.getAllCellCtrls())t.onCellChanged(e)}})}onRowPinned(){for(const e of this.allRowGuis)e.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){if(this.isFullWidth()===!!this.isNodeFullWidthCell())if(this.isFullWidth())this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);else{for(const i of this.getAllCellCtrls())i.refreshCell(e);for(const i of this.allRowGuis)this.setRowCompRowId(i.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(i.rowComp);this.onRowSelected(),this.postProcessCss()}else this.beans.rowRenderer.redrawRow(this.rowNode)}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.rowEditStyleFeature?.applyRowStyles(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.beans.rowDropHighlightSvc,t=e?.row===this.rowNode?e.position:"none",i="above"===t,o="inside"===t,n="below"===t,r=this.gos.get("treeData")&&(n||i),a=this.rowNode.uiLevel.toString();for(const l of this.allRowGuis){const d=l.rowComp;d.toggleCss("ag-row-highlight-above",i),d.toggleCss("ag-row-highlight-inside",o),d.toggleCss("ag-row-highlight-below",n),d.toggleCss("ag-row-highlight-indent",r),r?l.element.style.setProperty("--ag-row-highlight-level",a):l.element.style.removeProperty("--ag-row-highlight-level")}}postProcessRowDragging(){const e=this.rowNode.dragging;for(const t of this.allRowGuis)t.rowComp.toggleCss("ag-row-dragging",e)}onDisplayedColumnsChanged(){this.updateColumnLists(!0),this.beans.rowAutoHeight?.requestCheckAutoHeight()}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:E(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){const t=this.findFullWidthInfoForEvent(e);if(!t)return;const{rowGui:i,column:o}=t;if(i.element!==e.target)return;const r=this.rowNode,{focusSvc:a,navigation:l}=this.beans,d=a.getFocusedCell(),c={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:d?.column??o};l?.navigateToNextCell(e,e.key,c,!0),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||Qi(e))return;const t=this.allRowGuis.find(a=>a.element.contains(e.target)),i=t?t.element:null,o=i===e.target,n=le(this.beans);let s=!1;i&&n&&(s=i.contains(n)&&n.classList.contains("ag-cell"));let r=null;!o&&!s&&(r=Io(this.beans,i,!1,e.shiftKey)),(this.isFullWidth()&&o||!r)&&this.beans.navigation?.onTabKeyDown(this,e)}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){const e=this.allRowGuis.find(t=>Dt(t.element))?.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");for(const i of this.allRowGuis)z(i.element,"tabindex",t)}onFullWidthRowFocused(e){const t=this.rowNode,i=!!e&&this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned;let o;if(this.fullWidthGui)o=this.fullWidthGui.element;else{const s=this.beans.colModel.getCol(e?.column)?.pinned;o=s?"right"===s?this.rightGui?.element:this.leftGui?.element:this.centerGui?.element}o&&(o.classList.toggle("ag-full-width-focus",i),i&&e?.forceBrowserFocus&&o.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const i={list:[],map:{}};for(const o of e.list)o!==t&&(i.list.push(o),i.map[o.column.getInstanceId()]=o);return i}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}}createRowEvent(e,t){const{rowNode:i}=this;return Ie(this.gos,{type:e,node:i,data:i.data,rowIndex:i.rowIndex,rowPinned:i.rowPinned,event:t})}createRowEventWithSource(e,t){const i=this.createRowEvent(e,t);return i.source=this,i}onRowDblClick(e){if(Qi(e))return;const t=this.createRowEventWithSource("rowDoubleClicked",e);t.isEventHandlingSuppressed=this.isSuppressMouseEvent(e),this.beans.eventSvc.dispatchEvent(t)}findFullWidthInfoForEvent(e){if(!e)return;const t=this.findFullWidthRowGui(e.target),i=this.getColumnForFullWidth(t);return t&&i?{rowGui:t,column:i}:void 0}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e?.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=ai(e.target,"ag-row-drag",3),!this.isFullWidth()||this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:i}=this.beans;t?.removeAllCellRanges();const o=this.findFullWidthInfoForEvent(e);if(!o)return;const{rowGui:n,column:s}=o,r=n.element,a=e.target,l=this.rowNode;let d=e.defaultPrevented||po();r&&r.contains(a)&&Zt(a)&&(d=!1),i.setFocusedCell({rowIndex:l.rowIndex,column:s,rowPinned:l.rowPinned,forceBrowserFocus:d})}isSuppressMouseEvent(e){const{gos:t,rowNode:i}=this;if(this.isFullWidth()){const n=this.findFullWidthRowGui(e.target);return function Hf(e,t,i,o){const n=t?.suppressMouseEventHandling;return lc(e,void 0,i,o,n)}(t,n?.rowComp.getFullWidthCellRendererParams(),i,e)}const o=Ta(t,e.target);return null!=o&&$s(t,o.column,i,e)}onRowClick(e){if(Qi(e)||this.lastMouseDownOnDragger)return;const i=this.isSuppressMouseEvent(e),{eventSvc:o,selectionSvc:n}=this.beans,s=this.createRowEventWithSource("rowClicked",e);s.isEventHandlingSuppressed=i,o.dispatchEvent(s),!i&&n?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){"FullWidthDetail"===this.rowType&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this,e)}createFullWidthCompDetails(e,t){const{gos:i,rowNode:o}=this,n=Ie(i,{fullWidth:!0,data:o.data,node:o,value:o.key,valueFormatted:o.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(r,a,l,d)=>this.addFullWidthRowDragging(r,a,l,d),setTooltip:(r,a)=>{i.assertModuleRegistered("Tooltip",3),this.setupFullWidthRowTooltip(r,a)}}),s=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return function zg(e,t){return e.getCompDetailsFromGridOptions(Ag,"agDetailCellRenderer",t,!0)}(s,n);case"FullWidthGroup":{const{value:r,valueFormatted:a}=this.beans.valueSvc.getValueForDisplay(void 0,this.rowNode,!0);return n.value=r,n.valueFormatted=a,function Ng(e,t){return e.getCompDetailsFromGridOptions(Tg,"agGroupRowRenderer",t,!0)}(s,n)}case"FullWidthLoading":return function Gg(e,t){return e.getCompDetailsFromGridOptions(kg,"agLoadingCellRenderer",t,!0)}(s,n);default:return function Hg(e,t){return e.getCompDetailsFromGridOptions(_g,void 0,t,!0)}(s,n)}}setupFullWidthRowTooltip(e,t){this.fullWidthGui&&(this.tooltipFeature=this.beans.tooltipSvc?.setupFullWidthRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,i="",o){const{rowDragSvc:n,context:s}=this.beans;if(!n||!this.isFullWidth())return;const r=n.createRowDragComp(()=>i,this.rowNode,void 0,e,t,o);this.createBean(r,s),this.addDestroyFunc(()=>{this.destroyBean(r,s)})}onUiLevelChanged(){const e=Tu(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,i="ag-row-level-"+this.rowLevel;for(const o of this.allRowGuis)o.rowComp.toggleCss(t,!0),o.rowComp.toggleCss(i,!1)}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();if(this.firstRowOnPage!==e){this.firstRowOnPage=e;for(const i of this.allRowGuis)i.rowComp.toggleCss("ag-row-first",e)}if(this.lastRowOnPage!==t){this.lastRowOnPage=t;for(const i of this.allRowGuis)i.rowComp.toggleCss("ag-row-last",t)}}getAllCellCtrls(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){const e=[];if(this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),e.length)for(const t of e)for(const i of this.allRowGuis)i.rowComp.toggleCss(t,!0)}postProcessRowClassRules(){this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!0)},e=>{for(const t of this.allRowGuis)t.rowComp.toggleCss(e,!1)})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,i=>i.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return"left"===e||"right"===e?e:null}getInitialRowClasses(e){const t=this.getPinnedForContainer(e),i=this.isFullWidth(),{rowNode:o,beans:n}=this,s=[];s.push("ag-row"),s.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&s.push("ag-opacity-zero"),s.push(o.rowIndex%2==0?"ag-row-even":"ag-row-odd"),o.isRowPinned()&&(s.push("ag-row-pinned"),n.pinnedRowModel?.isManual()&&s.push("ag-row-pinned-manual")),!o.isRowPinned()&&o.pinnedSibling&&s.push("ag-row-pinned-source"),o.isSelected()&&s.push("ag-row-selected"),o.footer&&s.push("ag-row-footer"),s.push("ag-row-level-"+this.rowLevel),o.stub&&s.push("ag-row-loading"),i&&s.push("ag-full-width-row"),n.expansionSvc?.addExpandedCss(s,o),o.dragging&&s.push("ag-row-dragging");const{rowStyleSvc:r}=n;return r&&(r.processClassesFromGridOptions(s,o),r.preProcessRowClassRules(s,o)),s.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&s.push("ag-row-first"),this.isLastRowOnPage()&&s.push("ag-row-last"),i&&("left"===t&&s.push("ag-cell-last-left-pinned"),"right"===t&&s.push("ag-cell-first-right-pinned")),s}processStylesFromGridOptions(){return this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??this.emptyStyle}onRowSelected(e){this.beans.selectionSvc?.onRowCtrlSelected(this,t=>{(t===this.centerGui||t===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){this.beans.selectionSvc?.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:i}=e,{rowNode:o,beans:n,gos:s}=this;i.addManagedListeners(t,{pointerenter:r=>{"mouse"===r.pointerType&&o.dispatchRowEvent("mouseEnter")},pointerleave:r=>{"mouse"===r.pointerType&&o.dispatchRowEvent("mouseLeave")}}),i.addManagedListeners(o,{mouseEnter:()=>{!n.dragSvc?.dragging&&!s.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),o.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){const t=e?[e]:this.allRowGuis.map(i=>i.element);for(const i of t)i.classList.remove("ag-row-hover");this.rowNode.setHovered(!1)}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),i=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(i,e),o)}forEachGui(e,t){if(e)t(e);else for(const i of this.allRowGuis)t(i)}isRowRendered(){return this.allRowGuis.length>0}onRowHeightChanged(e){if(null==this.rowNode.rowHeight)return;const t=this.rowNode.rowHeight,i=this.beans.environment.getDefaultRowHeight(),n=xs(this.gos)?xi(this.beans,this.rowNode).height:void 0,s=n?Math.min(i,n)-2+"px":void 0;this.forEachGui(e,r=>{r.element.style.height=`${t}px`,s&&r.element.style.setProperty("--ag-line-height",s)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&ji(this.gos)&&!t.sticky)if(null!=t.rowTop){const n=this.roundRowTopToBounds(t.rowTop);this.setRowTop(n)}else for(const n of this.allRowGuis)n.rowComp.toggleCss("ag-opacity-zero",!0);this.fullWidthGui?.element.contains(le(this.beans))&&this.beans.focusSvc.attemptToRecoverFocus(),t.setHovered(!1);const i=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(i),this.beans.eventSvc.dispatchEvent(i),super.destroy()}destroySecondPass(){this.allRowGuis.length=0;const e=t=>{for(const i of t.list)i.destroy();return{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.toggleCss("ag-row-focus",this.rowFocused),t.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e}=this.beans,t=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses())}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){return this.rowNode.isRowPinned()||this.rowNode.sticky?e:e+this.beans.pageBounds.getPixelOffset()*(t?1:-1)}setRowTop(e){if(!this.printLayout&&p(e)){const t=this.applyPaginationOffset(e),n=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(n)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let i;if(t.sticky)i=t.stickyRowTop;else{const o=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,n=this.applyPaginationOffset(o);i=t.isRowPinned()?n:this.beans.rowContainerHeight.getRealPixelPosition(n)}return i+"px"}setRowTopStyle(e){for(const t of this.allRowGuis)this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`)}getCellCtrl(e,t=!1){let i=null;for(const o of this.getAllCellCtrls())o.column==e&&(i=o);if(null!=i||t)return i;for(const o of this.getAllCellCtrls())o?.getColSpanningList().indexOf(e)>=0&&(i=o);return i}onRowIndexChanged(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){const t=this.rowNode.getRowIndexString();if(null===t)return;const i=(this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0)+(this.beans.filterManager?.getHeaderRowCount()??0),o=this.rowNode.rowIndex%2==0,n=i+this.rowNode.rowIndex+1;this.forEachGui(e,s=>{s.rowComp.setRowIndex(t),s.rowComp.toggleCss("ag-row-even",o),s.rowComp.toggleCss("ag-row-odd",!o),ye(s.element,n)})}};function vl(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var vy={moduleName:"KeyboardNavigation",version:ge,beans:[class extends Y{constructor(){super(),this.beanName="navigation",this.onPageDown=io(this.onPageDown,100),this.onPageUp=io(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const i=e.key,o=e.altKey,n=e.ctrlKey||e.metaKey,s=!!this.beans.rangeSvc&&e.shiftKey,r=function um(e,t){return Ta(e,t.target)?.getFocusedCellPosition()??null}(this.gos,e);let a=!1;switch(i){case"Home":case"End":!n&&!o&&(this.onHomeOrEndKey(i),a=!0);break;case N_LEFT:case N_RIGHT:case N_UP:case N_DOWN:if(!r)return!1;n&&!o&&!s&&(this.onCtrlUpDownLeftRight(i,r),a=!0);break;case"PageDown":case"PageUp":!n&&!o&&(a=this.handlePageUpDown(i,r,t))}return a&&e.preventDefault(),a}handlePageUpDown(e,t,i){return i&&(t=this.beans.focusSvc.getFocusedCell()),!!t&&("PageUp"===e?this.onPageUp(t):this.onPageDown(t),!0)}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:i,focusIndex:o,focusColumn:n,isAsync:s,rowPinned:r}){const{scrollFeature:a}=this.gridBodyCon;p(i)&&!i.isPinned()&&a.ensureColumnVisible(i),p(e)&&a.ensureIndexVisible(e,t),s||a.ensureIndexVisible(o);const{focusSvc:l,rangeSvc:d}=this.beans;l.setFocusedCell({rowIndex:o,column:n,rowPinned:r,forceBrowserFocus:!0}),d?.setRangeToCell({rowIndex:o,rowPinned:r,column:n})}onPageDown(e){const t=this.beans,i=vl(t),o=this.getViewportHeight(),{pageBounds:n,rowModel:s,rowAutoHeight:r}=t,a=n.getPixelOffset(),d=s.getRowIndexAtPixel(i.top+o+a);r?.active?this.navigateToNextPageWithAutoHeight(e,d):this.navigateToNextPage(e,d)}onPageUp(e){const t=this.beans,i=vl(t),{pageBounds:o,rowModel:n,rowAutoHeight:s}=t,r=o.getPixelOffset(),l=n.getRowIndexAtPixel(i.top+r);s?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,i=!1){const{pageBounds:o,rowModel:n}=this.beans,s=this.getViewportHeight(),r=o.getFirstRow(),a=o.getLastRow(),l=o.getPixelOffset(),d=n.getRow(e.rowIndex),c=i?d?.rowHeight-s-l:s-l;let m,g=n.getRowIndexAtPixel(d?.rowTop+c+l);g===e.rowIndex&&(t=g=e.rowIndex+(i?-1:1)),i?(m="bottom",g<r&&(g=r),t<r&&(t=r)):(m="top",g>a&&(g=a),t>a&&(t=a)),this.isRowTallerThanView(n.getRow(g))&&(t=g,m="top"),this.navigateTo({scrollIndex:t,scrollType:m,scrollColumn:null,focusIndex:g,focusColumn:e.column})}navigateToNextPageWithAutoHeight(e,t,i=!1){this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const o=this.getNextFocusIndexForAutoHeight(e,i);this.navigateTo({scrollIndex:t,scrollType:i?"bottom":"top",scrollColumn:null,focusIndex:o,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const i=t?-1:1,o=this.getViewportHeight(),{pageBounds:n,rowModel:s}=this.beans,r=n.getLastRow();let a=0,l=e.rowIndex;for(;l>=0&&l<=r;){const d=s.getRow(l);if(d){const c=d.rowHeight??0;if(a+c>o)break;a+=c}l+=i}return Math.max(0,Math.min(l,r))}getViewportHeight(){const e=this.beans,t=vl(e),i=this.beans.scrollVisibleSvc.getScrollbarWidth();let o=t.bottom-t.top;return e.ctrlsSvc.get("center").isHorizontalScrollShowing()&&(o-=i),o}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return"number"==typeof t&&t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const i=this.beans.cellNavigation.getNextCellToFocus(e,t,!0),o=this.getNormalisedPosition(i),{rowIndex:n,rowPinned:s,column:r}=o??i;this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:r,focusIndex:n,focusColumn:r,rowPinned:s})}onHomeOrEndKey(e){const t="Home"===e,{visibleCols:i,pageBounds:o,rowModel:n}=this.beans,s=i.allCols,r=t?o.getFirstRow():o.getLastRow(),a=n.getRow(r);if(!a)return;const l=(t?s:[...s].reverse()).find(d=>!d.isSuppressNavigable(a));l&&this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:l,focusIndex:r,focusColumn:l})}onTabKeyDown(e,t){const i=t.shiftKey,o=this.tabToNextCellCommon(e,i,t),n=this.beans,{ctrlsSvc:s,pageBounds:r,focusSvc:a,gos:l}=n;if(!1===o)if(i){const{rowIndex:d,rowPinned:c}=e.getRowPosition();(c?0===d:d===r.getFirstRow())&&(0===l.get("headerHeight")||Ho(n)?dn(n,!0,!0):(t.preventDefault(),a.focusPreviousFromFirstCell(t)))}else e instanceof pn&&e.focusCell(!0),(a.focusOverlay(!1)||dn(n,i))&&t.preventDefault();else o?t.preventDefault():null===o&&s.get("gridCtrl").allowFocusForNextCoreContainer(i)}tabToNextCell(e,t){const i=this.beans,{focusSvc:o,rowRenderer:n}=i,s=o.getFocusedCell();if(!s)return!1;let r=cn(i,s);return!(!r&&(r=n.getRowByPosition(s),!r?.isFullWidth())||!this.tabToNextCellCommon(r,e,t,"api"))}tabToNextCellCommon(e,t,i,o="ui"){const{editSvc:n,focusSvc:s}=this.beans;let r;const a=e instanceof pn?e:e.getAllCellCtrls()?.[0];return r=n?.isEditing()?n?.moveToNextCell(a,t,i,o):this.moveToNextCellNotEditing(e,t,i),null===r?r:r||!!s.focusedHeader}moveToNextCellNotEditing(e,t,i){const o=this.beans.visibleCols.allCols;let n;if(e instanceof fr){if(n={...e.getRowPosition(),column:t?o[0]:rt(o)},this.gos.get("embedFullWidthRows")&&i){const r=e.findFullWidthInfoForEvent(i);r&&(n.column=r.column)}}else n=e.getFocusedCellPosition();const s=this.findNextCellToFocusOn(n,{backwards:t,startEditing:!1});if(!1===s)return null;if(s instanceof pn)s.focusCell(!0);else if(s)return this.tryToFocusFullWidthRow(s,t);return p(s)}findNextCellToFocusOn(e,{backwards:t,startEditing:i,skipToNextEditableCell:o}){let n=e;const s=this.beans,{cellNavigation:r,gos:a,focusSvc:l,rowRenderer:d,rangeSvc:c}=s;for(;;){e!==n&&(e=n),t||(n=this.getLastCellOfColSpan(n)),n=r.getNextTabbedCell(n,t);const u=a.getCallback("tabToNextCell");if(p(u)){const b=u({backwards:t,editing:i,previousCellPosition:e,nextCellPosition:n||null});if(!0===b)n=e;else{if(!1===b)return!1;n={rowIndex:b.rowIndex,column:b.column,rowPinned:b.rowPinned}}}if(!n)return null;if(n.rowIndex<0){const w=Bi(s);return l.focusHeaderPosition({headerPosition:{headerRowIndex:w+n.rowIndex,column:n.column},fromCell:!0}),null}const g="fullRow"===a.get("editType");if(i&&(!g||o)&&!this.isCellEditable(n))continue;this.ensureCellVisible(n);const m=cn(s,n);if(!m){const w=d.getRowByPosition(n);if(!w||!w.isFullWidth()||i)continue;return{...w.getRowPosition(),column:n?.column}}if(!r.isSuppressNavigable(m.column,m.rowNode))return m.setFocusedCellPosition(n),c?.setRangeToCell(n),m}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:i,rowModel:o}=this.beans;return"top"===t?i?.getPinnedTopRow(e):"bottom"===t?i?.getPinnedBottomRow(e):o.getRow(e)}navigateToNextCell(e,t,i,o){let n=i,s=!1;const r=this.beans,{cellNavigation:a,focusSvc:l,gos:d}=r;for(;n&&(n===i||!this.isValidNavigateCell(n));)d.get("enableRtl")?t===N_LEFT&&(n=this.getLastCellOfColSpan(n)):t===N_RIGHT&&(n=this.getLastCellOfColSpan(n)),n=a.getNextCellToFocus(t,n),s=K(n);if(s&&e&&e.key===N_UP&&(n={rowIndex:-1,rowPinned:null,column:i.column}),o){const u=d.getCallback("navigateToNextCell");if(p(u)){const m=u({key:t,previousCellPosition:i,nextCellPosition:n||null,event:e});n=p(m)?{rowPinned:m.rowPinned,rowIndex:m.rowIndex,column:m.column}:null}}if(!n)return;if(n.rowIndex<0){const u=Bi(r);return void l.focusHeaderPosition({headerPosition:{headerRowIndex:u+n.rowIndex,column:i.column},event:e||void 0,fromCell:!0})}const c=this.getNormalisedPosition(n);c?this.focusPosition(c):this.tryToFocusFullWidthRow(n)}getNormalisedPosition(e){if(this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const i=cn(this.beans,e);return i?(e=i.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:i,rowRenderer:o,focusSvc:n,eventSvc:s}=this.beans,r=i.allCols;if(!o.getRowByPosition(e)?.isFullWidth())return!1;const l=n.getFocusedCell(),d={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?rt(r):r[0])};this.focusPosition(d);const c=t??(null!=l&&function ov(e,t){switch(e.rowPinned){case"top":if("top"!==t.rowPinned)return!0;break;case"bottom":if("bottom"!==t.rowPinned)return!1;break;default:if(p(t.rowPinned))return"top"!==t.rowPinned}return e.rowIndex<t.rowIndex}(d,l));return s.dispatchEvent({type:"fullWidthRowFocused",rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:d.column,isFullWidthCell:!0,fromBelow:c}),!0}focusPosition(e){const{focusSvc:t,rangeSvc:i}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),i?.setRangeToCell(e)}isValidNavigateCell(e){return!!Zi(this.beans,e)}getLastCellOfColSpan(e){const t=cn(this.beans,e);if(!t)return e;const i=t.getColSpanningList();return 1===i.length?e:{rowIndex:e.rowIndex,column:rt(i),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=Ps(this.gos),i=this.beans.rowModel.getRow(e.rowIndex),o=t&&i?.sticky,{scrollFeature:n}=this.gridBodyCon;!o&&K(e.rowPinned)&&n.ensureIndexVisible(e.rowIndex),e.column.isPinned()||n.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}},class extends Y{constructor(){super(...arguments),this.beanName="cellNavigation"}wireBeans(e){this.rowSpanSvc=e.rowSpanSvc}getNextCellToFocus(e,t,i=!1){return i?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const i=e===N_UP,o=e===N_DOWN,n=e===N_LEFT;let s,r;const{pageBounds:a,gos:l,visibleCols:d,pinnedRowModel:c}=this.beans,{rowPinned:u}=t;if(i||o)r=u&&c?i?0:"top"===u?c.getPinnedTopRowCount()-1:c.getPinnedBottomRowCount()-1:i?a.getFirstRow():a.getLastRow(),s=t.column;else{const g=l.get("enableRtl");r=t.rowIndex,s=(n!==g?d.allCols:[...d.allCols].reverse()).find(w=>this.isCellGoodToFocusOn({rowIndex:r,rowPinned:null,column:w}))}return s?{rowIndex:r,rowPinned:u,column:s}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let i=t,o=!1;for(;!o;){switch(e){case N_UP:i=this.getCellAbove(i);break;case N_DOWN:i=this.getCellBelow(i);break;case N_RIGHT:i=this.gos.get("enableRtl")?this.getCellToLeft(i):this.getCellToRight(i);break;case N_LEFT:i=this.gos.get("enableRtl")?this.getCellToRight(i):this.getCellToLeft(i);break;default:i=null,se(8,{key:e})}o=!i||this.isCellGoodToFocusOn(i)}return i}isCellGoodToFocusOn(e){const t=e.column;let i;const{pinnedRowModel:o,rowModel:n}=this.beans;switch(e.rowPinned){case"top":i=o?.getPinnedTopRow(e.rowIndex);break;case"bottom":i=o?.getPinnedBottomRow(e.rowIndex);break;default:i=n.getRow(e.rowIndex)}return!!i&&!this.isSuppressNavigable(t,i)}getCellToLeft(e){if(!e)return null;const t=this.beans.visibleCols.getColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellToRight(e){if(!e)return null;const t=this.beans.visibleCols.getColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null}getCellBelow(e){if(!e)return null;const t=this.rowSpanSvc?.getCellEnd(e)??e,i=Wc(this.beans,t,!0);return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null}getCellAbove(e){if(!e)return null;const t=this.rowSpanSvc?.getCellStart(e)??e,i=nr(this.beans,{rowIndex:t.rowIndex,rowPinned:t.rowPinned},!0);return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:i}=this.beans,o=t.allCols;let n=e.rowIndex,s=e.rowPinned,r=t.getColAfter(e.column);if(!r){r=o[0];const a=Wc(this.beans,e,!0);if(K(a)||!a.rowPinned&&!(i?.isRowInPage(a.rowIndex)??1))return null;n=a?a.rowIndex:null,s=a?a.rowPinned:null}return{rowIndex:n,column:r,rowPinned:s}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:i,pagination:o}=t,n=i.allCols;let s=e.rowIndex,r=e.rowPinned,a=i.getColBefore(e.column);if(!a){a=rt(n);const l=nr(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(K(l)||!l.rowPinned&&!(o?.isRowInPage(l.rowIndex)??1))return null;s=l?l.rowIndex:null,r=l?l.rowPinned:null}return{rowIndex:s,column:a,rowPinned:r}}isSuppressNavigable(e,t){const{suppressNavigable:i}=e.colDef;return"boolean"==typeof i?i:"function"==typeof i&&i(e.createColumnFunctionCallbackParams(t))}},class extends Y{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,i=>{this.gridBodyCon=i.gridBodyCtrl});const t=we(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}getHeaderPositionForColumn(e,t){let i;const{colModel:o,colGroupSvc:n,ctrlsSvc:s}=this.beans;if("string"==typeof e?(i=o.getCol(e),i||(i=n?.getColumnGroup(e)??null)):i=e,!i)return null;const a=s.getHeaderRowContainerCtrl()?.getAllCtrls(),l="filter"===rt(a||[]).type,d=Bi(this.beans)-1;let c=-1,u=i;for(;u;)c++,u=u.getParent();let g=c;return t&&l&&g===d-1&&g++,-1===g?null:{headerRowIndex:g,column:i}}navigateVertically(e,t){const{focusSvc:i,visibleCols:o}=this.beans,{focusedHeader:n}=i;if(!n)return!1;const{headerRowIndex:s}=n,r=n.column,a=Bi(this.beans),l=this.getHeaderRowType(s),d=o.headerGroupRowCount;let{headerRowIndex:c,column:u,headerRowIndexWithoutSpan:g}="UP"===e?function J0(e,t,i){const o=i-1;if("filter"!==e){const n=t instanceof uo&&t.isSpanHeaderHeight();let s=t.getParent();for(;s&&(s.getProvidedColumnGroup().getLevel()>o||n&&s.isPadding());)s=s.getParent();if(s)return n?{column:s,headerRowIndex:s.getProvidedColumnGroup().getLevel(),headerRowIndexWithoutSpan:o}:{column:s,headerRowIndex:o,headerRowIndexWithoutSpan:o}}return{column:t,headerRowIndex:o,headerRowIndexWithoutSpan:o}}(l,r,s):function eb(e,t,i){const o=t+1,n={column:e,headerRowIndex:o,headerRowIndexWithoutSpan:o};if(e instanceof $n){if(o>=i)return{column:e.getDisplayedLeafColumns()[0],headerRowIndex:i,headerRowIndexWithoutSpan:o};let r=e.getDisplayedChildren()[0];if(r instanceof $n&&r.isPadding()){const l=r.getDisplayedLeafColumns()[0];l.isSpanHeaderHeight()&&(r=l)}n.column=r,r instanceof uo&&r.isSpanHeaderHeight()&&(n.headerRowIndex=i,n.headerRowIndexWithoutSpan=o)}return n}(r,s,d),m=!1;return c<0&&(c=0,u=r,m=!0),c>=a?(c=-1,this.currentHeaderRowWithoutSpan=-1):void 0!==g&&(this.currentHeaderRowWithoutSpan=g),!(!m&&!u)&&i.focusHeaderPosition({headerPosition:{headerRowIndex:c,column:u},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,i){const{focusSvc:o,gos:n}=this.beans,s={...o.focusedHeader};let r,a;-1!==this.currentHeaderRowWithoutSpan?s.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=s.headerRowIndex,"LEFT"===e!==n.get("enableRtl")?(a="Before",r=this.findHeader(s,a)):(a="After",r=this.findHeader(s,a));const l=n.getCallback("tabToNextHeader");if(t&&l){const d=o.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:r,direction:a});if(d){const{headerRowIndex:c}=o.focusedHeader||{};null!=c&&c!=s.headerRowIndex&&(this.currentHeaderRowWithoutSpan=c)}return d}return r||!t?o.focusHeaderPosition({headerPosition:r,direction:a,fromTab:t,allowUserOverride:!0,event:i}):this.focusNextHeaderRow(s,a,i)}focusNextHeaderRow(e,t,i){const o=this.beans,n=e.headerRowIndex;let r,s=null;const a=Bi(o),l=this.beans.visibleCols.allCols;if("Before"===t){if(n<=0)return!1;s=rt(l),r=n-1,this.currentHeaderRowWithoutSpan-=1}else s=l[0],r=n+1,this.currentHeaderRowWithoutSpan<a?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:d,headerRowIndex:c}=fu(this.beans,s,r);return c>=a&&(c=-1),o.focusSvc.focusHeaderPosition({headerPosition:{column:d,headerRowIndex:c},direction:t,fromTab:!0,allowUserOverride:!0,event:i})}scrollToColumn(e,t="After"){if(e.getPinned())return;let i;if(Et(e)){const o=e.getDisplayedLeafColumns();i="Before"===t?rt(o):o[0]}else i=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(i)}findHeader(e,t){const{colGroupSvc:i,visibleCols:o}=this.beans;let n=e.column;if(n instanceof $n){const l=n.getDisplayedLeafColumns();n="Before"===t?l[0]:l[l.length-1]}const s="Before"===t?o.getColBefore(n):o.getColAfter(n);if(!s)return;if(e.headerRowIndex>=o.headerGroupRowCount)return{headerRowIndex:e.headerRowIndex,column:s};const a=i?.getColGroupAtLevel(s,e.headerRowIndex);return a?a.isPadding()&&s.isSpanHeaderHeight()?{headerRowIndex:o.headerGroupRowCount,column:s}:{headerRowIndex:e.headerRowIndex,column:a??s}:{headerRowIndex:s instanceof uo&&s.isSpanHeaderHeight()?o.headerGroupRowCount:e.headerRowIndex,column:s}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}}],apiFunctions:{getFocusedCell:function Nb(e){return e.focusSvc.getFocusedCell()},clearFocusedCell:function zb(e){return e.focusSvc.clearFocusedCell()},setFocusedCell:function Wb(e,t,i,o){e.focusSvc.setFocusedCell({rowIndex:t,column:i,rowPinned:o,forceBrowserFocus:!0})},setFocusedHeader:function jb(e,t,i=!1){const o=e.headerNavigation?.getHeaderPositionForColumn(t,i);o&&e.focusSvc.focusHeaderPosition({headerPosition:o})},tabToNextCell:function Ub(e,t){return e.navigation?.tabToNextCell(!1,t)??!1},tabToPreviousCell:function $b(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}}},Sy=class extends Y{constructor(e,t){super(),this.isLeft=e,this.elements=t,this.getWidth=e?()=>this.beans.pinnedCols.leftWidth:()=>this.beans.pinnedCols.rightWidth}postConstruct(){this.addManagedEventListeners({[(this.isLeft?"left":"right")+"PinnedWidthChanged"]:this.onPinnedWidthChanged.bind(this)})}onPinnedWidthChanged(){const e=this.getWidth(),t=e>0;for(const i of this.elements)i&&(it(i,t),Mt(i,e))}},Ey={moduleName:"PinnedColumn",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="pinnedCols"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl});const e=this.checkContainerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:i}=this.beans,o=Ft(e,"print"),n=o?0:t.getColsLeftWidth(),s=o?0:t.getDisplayedColumnsRightWidth();n!=this.leftWidth&&(this.leftWidth=n,i.dispatchEvent({type:"leftPinnedWidthChanged"})),s!=this.rightWidth&&(this.rightWidth=s,i.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){const t=Ni(this.gridBodyCtrl.eBodyViewport);if(t<=50)return;const i=this.getPinnedColumnsOverflowingViewport(t-50),o=this.gos.getCallback("processUnpinnedColumns"),{columns:n,hasLockedPinned:s}=i;let r=n;!r.length&&!s||(o&&(r=o({columns:r,viewportWidth:t})),r?.length&&(r=r.filter(a=>!Xi(a)),this.setColsPinned(r,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new Sy(e,t)}setColsPinned(e,t,i){const{colModel:o,colAnimation:n,visibleCols:s,gos:r}=this.beans;if(!o.cols||!e?.length)return;if(Ft(r,"print"))return void se(37);let a;n?.start(),a=!0===t||"left"===t?"left":"right"===t?"right":null;const l=[];for(const d of e){if(!d)continue;const c=o.getCol(d);c&&c.getPinned()!==a&&(this.setColPinned(c,a),l.push(c))}l.length&&(s.refresh(i),dd(this.eventSvc,l,i)),n?.finish()}initCol(e){const{pinned:t,initialPinned:i}=e.colDef;this.setColPinned(e,void 0!==t?t:i)}setColPinned(e,t){e.pinned=!0===t||"left"===t?"left":"right"===t?"right":null,e.dispatchStateUpdatedEvent("pinned")}setupHeaderPinnedWidth(e){const{scrollVisibleSvc:t}=this.beans;if(null==e.pinned)return;const i="left"===e.pinned,o="right"===e.pinned;e.hidden=!0;const n=()=>{const s=i?this.leftWidth:this.rightWidth;if(null==s)return;const r=0==s,a=e.hidden!==r,l=this.gos.get("enableRtl"),d=t.getScrollbarWidth();e.comp.setPinnedContainerWidth(`${t.verticalScrollShowing&&(l&&i||!l&&o)?s+d:s}px`),e.comp.setDisplayed(!r),a&&(e.hidden=r,e.refresh())};e.addManagedEventListeners({leftPinnedWidthChanged:n,rightPinnedWidthChanged:n,scrollVisibilityChanged:n,scrollbarWidthChanged:n})}getHeaderResizeDiff(e,t){if(t.getPinned()){const{leftWidth:o,rightWidth:n}=this,s=Ni(this.beans.ctrlsSvc.getGridBodyCtrl().eBodyViewport)-50;if(o+n+e>s){if(!(s>o+n))return 0;e=s-o-n}}return e}getPinnedColumnsOverflowingViewport(e){const o=(this.rightWidth??0)+(this.leftWidth??0);let n=!1;if(o<e)return{columns:[],hasLockedPinned:n};const{visibleCols:s}=this.beans,r=[...s.leftCols],a=[...s.rightCols];let l=0,d=0;const u=[];let g=o-0-e;for(;(d<r.length||l<a.length)&&g>0;){if(l<a.length){const m=a[l++];if(m.colDef.lockPinned){n=!0;continue}g-=m.getActualWidth(),u.push(m)}if(d<r.length&&g>0){const m=r[d++];if(m.colDef.lockPinned){n=!0;continue}g-=m.getActualWidth(),u.push(m)}}return{columns:u,hasLockedPinned:n}}}],css:[".ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top{min-width:0;overflow:hidden;position:relative}.ag-pinned-left-sticky-top,.ag-pinned-right-sticky-top{height:100%;overflow:hidden;position:relative}.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{height:100%;overflow:hidden;width:100%}.ag-pinned-left-header,.ag-pinned-right-header{display:inline-block;height:100%;overflow:hidden;position:relative}.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible){.ag-horizontal-left-spacer:not(.ag-scroller-corner){border-right:var(--ag-pinned-column-border)}.ag-horizontal-right-spacer:not(.ag-scroller-corner){border-left:var(--ag-pinned-column-border)}}.ag-pinned-right-header{border-left:var(--ag-pinned-column-border)}.ag-pinned-left-header{border-right:var(--ag-pinned-column-border)}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-left:var(--ag-pinned-column-border)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right,.ag-cell-range-single-cell,.ag-cell-focus:not(.ag-cell-range-selected):focus-within){border-right:var(--ag-pinned-column-border)}.ag-pinned-left-header .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-pinned-right-header .ag-header-cell-resize:after{left:50%}.ag-pinned-left-header .ag-header-cell-resize{right:-3px}.ag-pinned-right-header .ag-header-cell-resize{left:-3px}"]},Py={moduleName:"Aria",version:ge,beans:[class extends Y{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=St(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=we(e),i=this.descriptionContainer=t.createElement("div");i.classList.add("ag-aria-description-container"),Be(i,"polite"),function Ye(e,t){Pe(e,"relevant",t)}(i,"additions text"),function He(e,t){Pe(e,"atomic",t)}(i,!0),e.eGridDiv.appendChild(i)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;null!=t&&""!=t.replace(/[ .]/g,"")?(this.lastAnnouncement===t&&(t=`${t}\u200b`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t):this.lastAnnouncement=""}destroy(){super.destroy();const{descriptionContainer:e}=this;e&&(wt(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}}]},Au="ag-delay-render",My={moduleName:"ColumnDelayRender",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="colDelayRenderSvc",this.hideRequested=!1,this.alreadyRevealed=!1,this.timesRetried=0,this.requesters=new Set}hideColumns(e){this.alreadyRevealed||this.requesters.has(e)||(this.requesters.add(e),this.hideRequested||(this.beans.ctrlsSvc.whenReady(this,t=>{t.gridBodyCtrl.eGridBody.classList.add(Au)}),this.hideRequested=!0))}revealColumns(e){if(this.alreadyRevealed||!this.isAlive()||(this.requesters.delete(e),this.requesters.size>0))return;const{renderStatus:t,ctrlsSvc:i}=this.beans;if(t){if(!t.areHeaderCellsRendered()&&this.timesRetried<5)return this.timesRetried++,void setTimeout(()=>this.revealColumns(e));this.timesRetried=0}i.getGridBodyCtrl().eGridBody.classList.remove(Au),this.alreadyRevealed=!0}}],css:[":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}"]},Iy={tag:"div",cls:"ag-overlay",role:"presentation",children:[{tag:"div",cls:"ag-overlay-panel",role:"presentation",children:[{tag:"div",ref:"eOverlayWrapper",cls:"ag-overlay-wrapper",role:"presentation"}]}]},Iu=class extends ot{constructor(){super(Iy),this.eOverlayWrapper=fe,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeCssClass=null,this.elToFocusAfter=null,this.registerCSS(".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.ag-overlay-panel,.ag-overlay-wrapper{display:flex;height:100%;width:100%}.ag-overlay-wrapper{align-items:center;flex:none;justify-content:center;text-align:center}.ag-overlay-loading-wrapper{pointer-events:all}.ag-overlay-loading-center{background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);padding:var(--ag-spacing)}")}handleKeyDown(e){if("Tab"!==e.key||e.defaultPrevented||Qi(e))return;const t=this.beans;if(Io(t,this.eOverlayWrapper,!1,e.shiftKey))return;let o=!1;o=e.shiftKey?t.focusSvc.focusGridView({column:rt(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):dn(t,!1),o&&e.preventDefault()}updateLayoutClasses(e,t){const i=this.eOverlayWrapper.classList,{AUTO_HEIGHT:o,NORMAL:n,PRINT:s}=Fi;i.toggle(o,t.autoHeight),i.toggle(n,t.normal),i.toggle(s,t.print)}postConstruct(){this.createManagedBean(new Da(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper.classList;this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,i,o){if(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,e){if(this.setDisplayed(!0,{skipAriaHidden:!0}),i&&this.isGridFocused()){const n=le(this.beans);n&&!me(this.beans)&&(this.elToFocusAfter=n)}e.then(n=>{if(this.activePromise===e){if(this.activePromise=null,n){if(this.activeOverlay!==n&&(this.eOverlayWrapper.appendChild(n.getGui()),this.activeOverlay=n,o)){const s=n;this.updateListenerDestroyFunc=this.addManagedPropertyListener(o,({currentValue:r})=>{s.refresh?.(Ie(this.gos,{...r??{}}))})}i&&this.isGridFocused()&&Ao(this.eOverlayWrapper)}}else this.activeOverlay!==n&&(this.destroyBean(n),n=null)})}}updateOverlayWrapperPaddingTop(e){this.eOverlayWrapper.style.setProperty("padding-top",`${e}px`)}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e)return;let t=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,t&&!this.isGridFocused()&&(t=null);const i=this.updateListenerDestroyFunc;i&&(i(),this.updateListenerDestroyFunc=null),this.destroyBean(e),wt(this.eOverlayWrapper),t?.focus?.({preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=le(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setOverlayWrapperComp(void 0),super.destroy()}},Oy={selector:"AG-OVERLAY-WRAPPER",component:Iu},By={moduleName:"Overlay",version:ge,userComponents:{agLoadingOverlay:class extends Pc{init(){const e=E(this.gos.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(e??Gm),!e){const i=this.getLocaleTextFunc()("loadingOoo","Loading...");this.getGui().textContent=i,this.beans.ariaAnnounce.announceValue(i,"overlay")}}},agNoRowsOverlay:class extends Pc{init(){const e=E(this.gos.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(e??zm),!e){const i=this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=i,this.beans.ariaAnnounce.announceValue(i,"overlay")}}}},apiFunctions:{showLoadingOverlay:function _y(e){e.overlays?.showLoadingOverlay()},showNoRowsOverlay:function ky(e){e.overlays?.showNoRowsOverlay()},hideOverlay:function Ty(e){e.overlays?.hideOverlay()}},beans:[class extends Y{constructor(){super(...arguments),this.beanName="overlays",this.state=0,this.showInitialOverlay=!0,this.wrapperPadding=0}postConstruct(){this.isClientSide=ut(this.gos),this.isServerSide=!this.isClientSide&&lo(this.gos);const e=()=>this.updateOverlayVisibility();this.addManagedEventListeners({newColumnsLoaded:e,rowDataUpdated:e,gridSizeChanged:this.refreshWrapperPadding.bind(this),rowCountReady:()=>{this.showInitialOverlay=!1,this.updateOverlayVisibility()}}),this.addManagedPropertyListener("loading",e)}setOverlayWrapperComp(e){this.eWrapper=e,this.updateOverlayVisibility()}isVisible(){return 0!==this.state&&!!this.eWrapper}isExclusive(){return 1===this.state&&!!this.eWrapper}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos,t=e.get("loading");!t&&(void 0!==t||e.get("suppressLoadingOverlay"))||this.doShowLoadingOverlay()}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;e.get("loading")||e.get("suppressNoRowsOverlay")||this.doShowNoRowsOverlay()}hideOverlay(){this.showInitialOverlay=!1,this.gos.get("loading")?se(99):this.doHideOverlay()}getOverlayWrapperSelector(){return Oy}getOverlayWrapperCompClass(){return Iu}updateOverlayVisibility(){if(!this.eWrapper)return void(this.state=0);const{state:e,isClientSide:t,isServerSide:i,beans:{gos:o,colModel:n,rowModel:s}}=this;let r=this.gos.get("loading");void 0!==r&&(this.showInitialOverlay=!1),this.showInitialOverlay&&void 0===r&&!o.get("suppressLoadingOverlay")&&(r=!o.get("columnDefs")||!n.ready||!o.get("rowData")&&t),r?1!==e&&this.doShowLoadingOverlay():(this.showInitialOverlay=!1,t&&s.isEmpty()&&!o.get("suppressNoRowsOverlay")?2!==e&&this.doShowNoRowsOverlay():(1===e||!i&&0!==e)&&this.doHideOverlay())}doShowLoadingOverlay(){this.eWrapper&&(this.state=1,this.showOverlay(function $g(e,t){return e.getCompDetailsFromGridOptions(Pg,"agLoadingOverlay",t,!0)}(this.beans.userCompFactory,Ie(this.gos,{})),"ag-overlay-loading-wrapper","loadingOverlayComponentParams"),this.updateExclusive())}doShowNoRowsOverlay(){this.eWrapper&&(this.state=2,this.showOverlay(function jg(e,t){return e.getCompDetailsFromGridOptions(Fg,"agNoRowsOverlay",t,!0)}(this.beans.userCompFactory,Ie(this.gos,{})),"ag-overlay-no-rows-wrapper","noRowsOverlayComponentParams"),this.updateExclusive())}doHideOverlay(){this.eWrapper&&(this.state=0,this.eWrapper.hideOverlay(),this.updateExclusive())}showOverlay(e,t,i){const o=e?.newAgStackInstance()??null;this.eWrapper?.showOverlay(o,t,this.isExclusive(),i),this.refreshWrapperPadding()}updateExclusive(){const e=this.exclusive;this.exclusive=this.isExclusive(),this.exclusive!==e&&this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"})}refreshWrapperPadding(){const e=this.eWrapper;if(!e)return;let t=0;2===this.state&&(t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0),this.wrapperPadding!==t&&(this.wrapperPadding=t,e.updateOverlayWrapperPaddingTop(t))}}]},Ny=class{constructor(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap[e.rowNode.id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){const t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}}getRow(e){if(null==e?.id)return null;const t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.rowNode!=e?null:t):null}has(e){return null!=this.entriesMap[e.id]}removeRow(e){const t=e.id,i=this.entriesMap[t];delete this.entriesMap[t],gi(this.entriesList,i)}removeFromCache(e){delete this.entriesMap[e.rowNode.id],gi(this.entriesList,e)}getEntries(){return this.entriesList}};function wl(e){if(!e)return;const t={top:{},bottom:{},normal:{}};for(const i of e){const o=i.id;switch(i.rowPinned){case"top":t.top[o]=i;break;case"bottom":t.bottom[o]=i;break;default:t.normal[o]=i}}return t}function bl(e,t){const i=e.id;switch(e.rowPinned){case"top":return null!=t.top[i];case"bottom":return null!=t.bottom[i];default:return null!=t.normal[i]}}var Ou={moduleName:"Sort",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="sortSvc"}progressSort(e,t,i){const o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,i)}progressSortFromEvent(e,t){const o="ctrl"===this.gos.get("multiSortKey")?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,o,"uiColumnSorted")}setSortForColumn(e,t,i,o){"asc"!==t&&"desc"!==t&&(t=null);const{gos:n,showRowGroupCols:s}=this.beans;let a=[e];if(ti(n)&&e.getColDef().showRowGroup){const u=s?.getSourceColumnsForGroupColumn?.(e)?.filter(g=>g.isSortable());u&&(a=[e,...u])}for(const c of a)this.setColSort(c,t,o);const d=[];if(!i&&!n.get("alwaysMultiSort")||n.get("suppressMultiSort")){const c=this.clearSortBarTheseColumns(a,o);d.push(...c)}this.updateSortIndex(e),d.push(...a),this.dispatchSortChangedEvents(o,d)}updateSortIndex(e){const{gos:t,colModel:i,showRowGroupCols:o}=this.beans,n=ti(t),s=o?.getShowRowGroupCol(e.getId()),r=n&&s||e,a=this.getColumnsWithSortingOrdered();i.forAllCols(c=>this.setColSortIndex(c,null));const l=a.filter(c=>!(n&&c.getColDef().showRowGroup||c===r));(r.getSort()?[...l,r]:l).forEach((c,u)=>this.setColSortIndex(c,u))}onSortChanged(e,t){this.dispatchSortChangedEvents(e,t)}isSortActive(){let e=!1;return this.beans.colModel.forAllCols(t=>{t.getSort()&&(e=!0)}),e}dispatchSortChangedEvents(e,t){const i={type:"sortChanged",source:e};t&&(i.columns=t),this.eventSvc.dispatchEvent(i)}clearSortBarTheseColumns(e,t){const i=[];return this.beans.colModel.forAllCols(o=>{e.includes(o)||(o.getSort()&&i.push(o),this.setColSort(o,void 0,t))}),i}getNextSortDirection(e){const t=e.getColDef().sortingOrder??this.gos.get("sortingOrder")??os,i=t.indexOf(e.getSort());return i<0||i==t.length-1?t[0]:t[i+1]}getIndexedSortMap(){const{gos:e,colModel:t,showRowGroupCols:i,rowGroupColsSvc:o}=this.beans;let n=[];if(t.forAllCols(d=>{d.getSort()&&n.push(d)}),t.isPivotMode()){const d=ti(e);n=n.filter(c=>{const u=!!c.getAggFunc(),g=!c.isPrimary(),m=d?i?.getShowRowGroupCol(c.getId()):c.getColDef().showRowGroup;return u||g||m})}const s=o?.columns.filter(d=>!!d.getSort())??[],r={};n.forEach((d,c)=>r[d.getId()]=c),n.sort((d,c)=>{const u=d.getSortIndex(),g=c.getSortIndex();return null!=u&&null!=g?u-g:null==u&&null==g?r[d.getId()]>r[c.getId()]?1:-1:null==g?-1:1});const a=ti(e)&&!!s.length;a&&(n=[...new Set(n.map(d=>i?.getShowRowGroupCol(d.getId())??d))]);const l=new Map;if(n.forEach((d,c)=>l.set(d,c)),a)for(const d of s){const c=i.getShowRowGroupCol(d.getId());l.set(d,l.get(c))}return l}getColumnsWithSortingOrdered(){return[...this.getIndexedSortMap().entries()].sort(([,e],[,t])=>e-t).map(([e])=>e)}getSortModel(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),colId:e.getId()}))}getSortOptions(){return this.getColumnsWithSortingOrdered().filter(e=>e.getSort()).map(e=>({sort:e.getSort(),column:e}))}canColumnDisplayMixedSort(e){const t=ti(this.gos),i=!!e.getColDef().showRowGroup;return t&&i}getDisplaySortForColumn(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!t?.length)return e.getSort();const o=null!=e.getColDef().field||e.getColDef().valueGetter?[e,...t]:t,n=o[0].getSort();return o.every(r=>r.getSort()==n)?n:"mixed"}getDisplaySortIndexForColumn(e){return this.getIndexedSortMap().get(e)}setupHeader(e,t,i){let o=0;e.addManagedListeners(t,{movingChanged:()=>{o=Date.now()}}),i&&e.addManagedElementListeners(i,{click:s=>{const r=t.isMoving(),l=Date.now()-o<50;r||l||this.progressSortFromEvent(t,s)}});const n=()=>{const s=t.getSort();if(e.toggleCss("ag-header-cell-sorted-asc","asc"===s),e.toggleCss("ag-header-cell-sorted-desc","desc"===s),e.toggleCss("ag-header-cell-sorted-none",!s),t.getColDef().showRowGroup){const l=!this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(t)?.every(d=>t.getSort()==d.getSort());e.toggleCss("ag-header-cell-sorted-mixed",l)}};e.addManagedEventListeners({sortChanged:n,columnRowGroupChanged:n})}initCol(e){const{sort:t,initialSort:i,sortIndex:o,initialSortIndex:n}=e.colDef;void 0!==t?("asc"===t||"desc"===t)&&(e.sort=t):("asc"===i||"desc"===i)&&(e.sort=i),void 0!==o?null!==o&&(e.sortIndex=o):null!==n&&(e.sortIndex=n)}updateColSort(e,t,i){void 0!==t&&this.setColSort(e,"desc"===t||"asc"===t?t:void 0,i)}setColSort(e,t,i){e.sort!==t&&(e.sort=t,e.dispatchColEvent("sortChanged",i)),e.dispatchStateUpdatedEvent("sort")}setColSortIndex(e,t){e.sortIndex=t,e.dispatchStateUpdatedEvent("sortIndex")}createSortIndicator(e){return new hl(e)}getSortIndicatorSelector(){return rb}},class extends Y{constructor(){super(...arguments),this.beanName="rowNodeSorter"}postConstruct(){const{gos:e}=this;this.isAccentedSort=e.get("accentedSort"),this.primaryColumnsSortGroups=ti(e),this.addManagedPropertyListener("accentedSort",t=>this.isAccentedSort=t.currentValue),this.addManagedPropertyListener("autoGroupColumnDef",()=>this.primaryColumnsSortGroups=ti(e))}doFullSort(e,t){const i=e.map((o,n)=>({currentPos:n,rowNode:o}));return i.sort(this.compareRowNodes.bind(this,t)),i.map(o=>o.rowNode)}compareRowNodes(e,t,i){const o=t.rowNode,n=i.rowNode;for(let s=0,r=e.length;s<r;s++){const a=e[s],l="desc"===a.sort,d=this.getValue(o,a.column),c=this.getValue(n,a.column);let u;const g=this.getComparator(a,o);if(u=g?g(d,c,o,n,l):H(d,c,this.isAccentedSort),!isNaN(u)&&0!==u)return"asc"===a.sort?u:-1*u}return t.currentPos-i.currentPos}getComparator(e,t){const i=e.column,o=i.getColDef().comparator;if(null!=o)return o;if(!i.getColDef().showRowGroup)return;const n=!t.group&&i.getColDef().field;if(!n)return;const s=this.beans.colModel.getColDefCol(n);return s?s.getColDef().comparator:void 0}getValue(e,t){const{valueSvc:i,colModel:o,showRowGroupCols:n,gos:s}=this.beans;if(!this.primaryColumnsSortGroups)return i.getValue(t,e,!1);if(e.rowGroupColumn===t){if(Gr(s,o.isPivotActive())){const d=e.data?e:qd(e.childrenAfterGroup);return d&&i.getValue(t,d,!1)}const l=n?.getShowRowGroupCol(t.getId());return l?e.groupData?.[l.getId()]:void 0}return e.group&&t.getColDef().showRowGroup?void 0:i.getValue(t,e,!1)}}],apiFunctions:{onSortChanged:function Wy(e){e.sortSvc?.onSortChanged("api")}},userComponents:{agSortIndicator:hl},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"}},Qy={moduleName:"ValueCache",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0}postConstruct(){const e=this.gos;this.active=e.get("valueCache"),this.neverExpires=e.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,i){if(this.active){const o=this.cacheVersion;e.__cacheVersion!==o&&(e.__cacheVersion=o,e.__cacheData={}),e.__cacheData[t]=i}}getValue(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]}}],apiFunctions:{expireValueCache:function $y(e){e.valueCache?.expire()}}},Zy={moduleName:"Expression",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if("string"==typeof e)return this.evaluateExpression(e,t);tt(15,{expression:e})}evaluateExpression(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.getValue,t.column,t.columnGroup)}catch(i){return tt(16,{expression:e,params:t,e:i}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const i=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",i);return t[e]=o,o}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}}]},Jy={moduleName:"ChangeDetection",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.clientSideRowModel=null}postConstruct(){const{gos:e,rowModel:t}=this.beans;ut(e)&&(this.clientSideRowModel=t),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}onCellValueChanged(e){const{gos:t,rowRenderer:i}=this.beans;if("paste"===e.source||t.get("suppressChangeDetection"))return;const o=e.node,n=[o],s=this.clientSideRowModel,r=s?.rootNode;if(r&&!o.isRowPinned()){const a=t.get("aggregateOnlyChangedColumns"),l=new Zn(a,r);l.addParentNode(o.parent,[e.column]),s.doAggregate(l),l.forEachChangedNodeDepthFirst(d=>{n.push(d),d.sibling&&n.push(d.sibling)})}i.refreshCells({rowNodes:n})}}]},eS={moduleName:"CellApi",version:ge,apiFunctions:{getCellValue:function jy(e,t){const{colKey:i,rowNode:o,useFormatter:n}=t,s=e.colModel.getColDefCol(i)??e.colModel.getCol(i);if(K(s))return null;const r=e.valueSvc.getValueForDisplay(s,o,n);return n?r.valueFormatted??Z(r.value):r.value}}},iS={moduleName:"CommunityCore",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:i}=this.beans;this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}}),this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),i.destroy(),super.destroy()}},class extends Y{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new Hc,this.fns={...Xa,dispatchEvent:VC},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(Vc))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:i,beans:o}=this;i!==Xa&&(i[e]=o?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:i,fns:{[e]:o}}=this;return o?o(i,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:i,preDestroyLink:o}=this;if(t){const n=Vc[e];i.assertModuleRegistered(n,`api.${e}`)&&se(27,{fnName:e,module:n})}else se(26,{fnName:e,preDestroyLink:o})}destroy(){super.destroy(),this.fns=Xa,this.beans=null}},class extends Jp{constructor(){super(...arguments),this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){const e=this.gos.get("components");if(null!=e)for(const t of Object.keys(e))this.jsComps[t]=e[t]}registerModule(e){const{icons:t,userComponents:i,dynamicBeans:o,selectors:n}=e;if(i){const s=(r,a,l,d)=>{this.agGridDefaults[r]=a,(l||d)&&(this.agGridDefaultOverrides[r]={params:l,processParams:d})};for(const r of Object.keys(i)){let a=i[r];if(Xg(a)&&(a=a.getComp(this.beans)),"object"==typeof a){const{classImp:l,params:d,processParams:c}=a;s(r,l,d,c)}else s(r,a)}}this.registerDynamicBeans(o);for(const s of n??[])this.selectors[s.selector]=s;if(t)for(const s of Object.keys(t))this.icons[s]=t[s]}getUserComponent(e,t){const i=(a,l,d,c)=>({componentFromFramework:l,component:a,params:d,processParams:c}),{frameworkOverrides:o}=this.beans,n=o.frameworkComponent(t,this.gos.get("components"));if(null!=n)return i(n,!0);const s=this.jsComps[t];if(s)return i(s,o.isFrameworkComponent(s));const r=this.agGridDefaults[t];if(r){const a=this.agGridDefaultOverrides[t];return i(r,!1,a?.params,a?.processParams)}return this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),null}getSelector(e){return this.selectors[e]}getIcon(e){return this.icons[e]}getDynamicError(e,t){return t?ei(279,{name:e}):this.beans.validation?.missingDynamicBean(e)??ei(256)}},class extends Y{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,i,o=!1){return this.getCompDetails(this.gridOptions,e,t,i,o)}getCompDetails(e,t,i,o,n=!1){const{name:s,cellRenderer:r}=t;let m,w,{compName:a,jsComp:l,fwComp:d,paramsFromSelector:c,popupFromSelector:u,popupPositionFromSelector:g}=vd(this.beans.frameworkOverrides,e,t,o);const b=V=>{const te=this.registry.getUserComponent(s,V);te&&(l=te.componentFromFramework?void 0:te.component,d=te.componentFromFramework?te.component:void 0,m=te.params,w=te.processParams)};if(null!=a&&b(a),null==l&&null==d&&null!=i&&b(i),l&&r&&!function gg(e){return!!e&&e.prototype&&"getGui"in e.prototype}(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!d){const{validation:V}=this.beans;return void(!n||a===i&&i?i&&!V&&tt(146,{comp:i}):a?V?.isProvidedUserComp(a)||tt(50,{compName:a}):i?V||tt(260,{...this.gos.getModuleErrorParams(),propName:s,compName:i}):tt(216,{name:s}))}const x=this.mergeParams(e,t,o,c,m,w),A=null==l,O=l??d;return{componentFromFramework:A,componentClass:O,params:x,type:t,popupFromSelector:u,popupPositionFromSelector:g,newAgStackInstance:()=>this.newAgStackInstance(O,A,x,t)}}newAgStackInstance(e,t,i,o){let s;s=t?this.frameworkCompWrapper.wrap(e,o.mandatoryMethods,o.optionalMethods,o):new e,this.createBean(s);const r=s.init?.(i);return null==r?ft.resolve(s):r.then(()=>s)}mergeParams(e,t,i,o=null,n,s){const r={...i,...n},l=e?.[t.name+"Params"];return"function"==typeof l?It(r,l(i)):"object"==typeof l&&It(r,l),It(r,o),s?s(r):r}},class extends Y{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=function Yg(){if(void 0!==oa)return oa;if(!document.body)return-1;let e=1e6;const t=Rd()?6e6:1e9,i=document.createElement("div");for(document.body.appendChild(i);;){const o=2*e;if(i.style.height=o+"px",o>t||i.clientHeight!==o)break;e=o}return i.remove(),oa=e,e}(),Ti(this.gos,"RowContainerHeightService - maxDivHeight = "+this.maxDivHeight)}updateOffset(){if(!this.stretching)return;const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}calculateOffset(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;const e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;Ti(this.gos,`RowContainerHeightService - Div Stretch Offset = ${t} (${this.pixelsToShave} * ${e})`),this.setDivStretchOffset(t)}setUiContainerHeight(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}clearOffset(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)}setDivStretchOffset(e){const t="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getUiBodyHeight(){const e=this.beans.ctrlsSvc.getScrollFeature().getVScrollPosition();return e.bottom-e.top}getScrollPositionForPixel(e){if(this.pixelsToShave<=0)return e;const t=this.modelHeight-this.getUiBodyHeight();return this.maxScrollY*(e/t)}},class extends Y{constructor(){super(...arguments),this.beanName="visibleCols",this.colsAndGroupsMap={},this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.headerGroupRowCount=0,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.isBodyWidthDirty=!0}refresh(e,t=!1){const{colFlex:i,colModel:o,colGroupSvc:n,colViewport:s,selectionColSvc:r}=this.beans;t||this.buildTrees(o,n),n?.updateOpenClosedVisibility(),this.leftCols=el(this.treeLeft),this.centerCols=el(this.treeCenter),this.rightCols=el(this.treeRight),r?.refreshVisibility(this.leftCols,this.centerCols,this.rightCols),this.joinColsAriaOrder(o),this.joinCols(),this.headerGroupRowCount=this.getHeaderRowCount(),this.setLeftValues(e),this.autoHeightCols=this.allCols.filter(a=>a.isAutoHeight()),i?.refreshFlexedColumns(),this.updateBodyWidths(),this.setFirstRightAndLastLeftPinned(o,this.leftCols,this.rightCols,e),s.checkViewportColumns(!1),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e})}getHeaderRowCount(){if(!this.gos.get("hidePaddedHeaderRows"))return this.beans.colModel.cols.treeDepth;let e=0;for(const t of this.allCols){let i=t.getParent();for(;i;){if(!i.isPadding()){const o=i.getProvidedColumnGroup().getLevel()+1;o>e&&(e=o);break}i=i.getParent()}}return e}updateBodyWidths(){const e=Ki(this.centerCols),t=Ki(this.leftCols),i=Ki(this.rightCols);this.isBodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==i)&&(this.bodyWidth=e,this.leftWidth=t,this.rightWidth=i,this.eventSvc.dispatchEvent({type:"columnContainerWidthChanged"}),this.eventSvc.dispatchEvent({type:"displayedColumnsWidthChanged"}))}setLeftValues(e){this.setLeftValuesOfCols(e),this.setLeftValuesOfGroups()}setFirstRightAndLastLeftPinned(e,t,i,o){let n,s;this.gos.get("enableRtl")?(n=t?t[0]:null,s=i?rt(i):null):(n=t?rt(t):null,s=i?i[0]:null);for(const r of e.getCols())r.setLastLeftPinned(r===n,o),r.setFirstRightPinned(r===s,o)}buildTrees(e,t){const i=e.getColsToShow(),o=i.filter(l=>"left"==l.getPinned()),n=i.filter(l=>"right"==l.getPinned()),s=i.filter(l=>"left"!=l.getPinned()&&"right"!=l.getPinned()),r=new pd,a=l=>t?t.createColumnGroups(l):l.columns;this.treeLeft=a({columns:o,idCreator:r,pinned:"left",oldDisplayedGroups:this.treeLeft}),this.treeRight=a({columns:n,idCreator:r,pinned:"right",oldDisplayedGroups:this.treeRight}),this.treeCenter=a({columns:s,idCreator:r,pinned:null,oldDisplayedGroups:this.treeCenter}),this.updateColsAndGroupsMap()}clear(){this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.ariaOrderColumns=[]}joinColsAriaOrder(e){const t=e.getCols(),i=[],o=[],n=[];for(const s of t){const r=s.getPinned();r?!0===r||"left"===r?i.push(s):n.push(s):o.push(s)}this.ariaOrderColumns=i.concat(o).concat(n)}getAriaColIndex(e){let t;return t=Et(e)?e.getLeafColumns()[0]:e,this.ariaOrderColumns.indexOf(t)+1}setLeftValuesOfGroups(){for(const e of[this.treeLeft,this.treeRight,this.treeCenter])for(const t of e)Et(t)&&t.checkLeft()}setLeftValuesOfCols(e){const{colModel:t}=this.beans;if(!t.getColDefCols())return;const o=t.getCols().slice(0),n=this.gos.get("enableRtl");for(const s of[this.leftCols,this.rightCols,this.centerCols]){if(n){let r=Ki(s);for(const a of s)r-=a.getActualWidth(),a.setLeft(r,e)}else{let r=0;for(const a of s)a.setLeft(r,e),r+=a.getActualWidth()}lw(o,s)}for(const s of o)s.setLeft(null,e)}joinCols(){this.allCols=this.gos.get("enableRtl")?this.rightCols.concat(this.centerCols).concat(this.leftCols):this.leftCols.concat(this.centerCols).concat(this.rightCols)}getAllTrees(){return this.treeLeft&&this.treeRight&&this.treeCenter?this.treeLeft.concat(this.treeCenter).concat(this.treeRight):null}isColDisplayed(e){return this.allCols.indexOf(e)>=0}getLeftColsForRow(e){const{leftCols:t,beans:{colModel:i}}=this;return i.colSpanActive?this.getColsForRow(e,t):t}getRightColsForRow(e){const{rightCols:t,beans:{colModel:i}}=this;return i.colSpanActive?this.getColsForRow(e,t):t}getColsForRow(e,t,i,o){const n=[];let s=null;for(let r=0;r<t.length;r++){const a=t[r],l=t.length-r,d=Math.min(a.getColSpan(e),l),c=[a];if(d>1){const g=d-1;for(let m=1;m<=g;m++)c.push(t[r+m]);r+=g}let u;if(i){u=!1;for(const g of c)i(g)&&(u=!0)}else u=!0;u&&(0===n.length&&s&&o&&o(a)&&n.push(s),n.push(a)),s=a}return n}getContainerWidth(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}}getColBefore(e){const t=this.allCols,i=t.indexOf(e);return i>0?t[i-1]:null}isPinningLeft(){return this.leftCols.length>0}isPinningRight(){return this.rightCols.length>0}updateColsAndGroupsMap(){this.colsAndGroupsMap={};const e=t=>{this.colsAndGroupsMap[t.getUniqueId()]=t};No(this.treeCenter,!1,e),No(this.treeLeft,!1,e),No(this.treeRight,!1,e)}isVisible(e){return this.colsAndGroupsMap[e.getUniqueId()]===e}getFirstColumn(){const e=this.gos.get("enableRtl"),t=["leftCols","centerCols","rightCols"];e&&t.reverse();for(let i=0;i<t.length;i++){const o=this[t[i]];if(o.length)return e?rt(o):o[0]}return null}getColAfter(e){const t=this.allCols,i=t.indexOf(e);return i<t.length-1?t[i+1]:null}getColsLeftWidth(){return Ki(this.leftCols)}getDisplayedColumnsRightWidth(){return Ki(this.rightCols)}isColAtEdge(e,t){const i=this.allCols;if(!i.length)return!1;const o="first"===t;let n;if(Et(e)){const s=e.getDisplayedLeafColumns();if(!s.length)return!1;n=o?s[0]:rt(s)}else n=e;return(o?i[0]:rt(i))===n}},class extends ef{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}},class extends Y{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=xb++,this.gridReadyFired=!1,this.queueEvents=[],this.propEventSvc=new R,this.globalEventHandlerFactory=e=>(t,i)=>{if(!this.isAlive())return;const o=hr.has(t);if(o&&!e||!o&&e||!function Fb(e){return!!ul[e]}(t))return;const n=(s,r)=>{const l=this.gridOptions[ul[s]];"function"==typeof l&&this.beans.frameworkOverrides.wrapOutgoing(()=>l(r))};if(this.gridReadyFired)n(t,i);else if("gridReady"===t){n(t,i),this.gridReadyFired=!0;for(const s of this.queueEvents)n(s.eventName,s.event);this.queueEvents=[]}else this.queueEvents.push({eventName:t,event:i})}}wireBeans(e){this.gridOptions=e.gridOptions,this.validation=e.validation,this.api=e.gridApi,this.gridId=e.context.getId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){this.validateGridOptions(this.gridOptions),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory().bind(this),!0),this.eventSvc.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:e})=>{this.updateGridOptions({options:e,force:!0,source:"optionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??Dr[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return p(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(i=>e(this.addCommon(i)))}updateGridOptions({options:e,force:t,source:i="api"}){const o={id:Eb++,properties:[]},n=[],{gridOptions:s,validation:r}=this;for(const a of Object.keys(e)){const l=ki.applyGlobalGridOption(a,e[a]);r?.warnOnInitialPropertyUpdate(i,a);const c=s[a];(t||"object"==typeof l&&"api"===i||c!==l)&&(s[a]=l,n.push({type:a,currentValue:l,previousValue:c,changeSet:o,source:i}))}this.validateGridOptions(this.gridOptions),o.properties=n.map(a=>a.type);for(const a of n)Ti(this,`Updated property ${a.type} from`,a.previousValue," to ",a.currentValue),this.propEventSvc.dispatchEvent(a)}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}getDomDataKey(){return this.domDataKey}addCommon(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t){for(const i of Object.keys(e)){const o=e[i];if(null==o||!1===o)continue;let n=t[i];"function"==typeof n&&(n=n(e,this.gridOptions,this.beans)),n&&this.assertModuleRegistered(n,i)}}validateGridOptions(e){this.validateOptions(e,yb),this.validation?.processGridOptions(e)}validateColDef(e,t,i){(i||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,db),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const i=Array.isArray(e)?e.some(o=>this.isModuleRegistered(o)):this.isModuleRegistered(e);return i||tt(200,{...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),i}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:Fn(),rowModelType:this.get("rowModelType"),isUmd:!1}}isModuleRegistered(e){return Yo(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[yu]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){const i=t[yu];if(p(i))return i===this.instanceId;t=t.parentElement}return!1}},class extends Y{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","rowNumbers","hidePaddedHeaderRows"],e=>this.refreshAll(Jo(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Jo(e.source)))}createColsFromColDefs(e){const{beans:t}=this,{valueCache:i,colAutosize:o,rowGroupColsSvc:n,pivotColsSvc:s,valueColsSvc:r,visibleCols:a,eventSvc:l,groupHierarchyColSvc:d}=t,c=this.colDefs?ud(t,e):void 0;i?.expire();const u=this.colDefCols?.list,g=this.colDefCols?.tree,m=function eg(e,t=null,i,o,n){const s=new Xh,{existingCols:r,existingGroups:a,existingColKeys:l}=function td(e){const t=[],i=[],o=[];return e&&Ii(null,e,n=>{if(zt(n))i.push(n);else{const s=n;o.push(s.getId()),t.push(s)}}),{existingCols:t,existingGroups:i,existingColKeys:o}}(o);s.addExistingKeys(l);const d=id(e,t,0,i,r,s,a,n),{colGroupSvc:c}=e,u=c?.findMaxDepth(d,0)??0,g=c?c.balanceColumnTree(d,0,u,s):d;return Ii(null,g,ed),{columnTree:g,treeDepth:u}}(t,this.colDefs,!0,g,e);_s(t,this.colDefCols?.tree,m.columnTree);const w=m.columnTree,b=m.treeDepth,x=Jl(w),A={};for(const O of x)A[O.getId()]=O;this.colDefCols={tree:w,treeDepth:b,list:x,map:A},this.createColumnsForService([d],this.colDefCols,e),n?.extractCols(e,u),s?.extractCols(e,u),r?.extractCols(e,u),this.ready=!0,this.refreshCols(!0,e),a.refresh(e),l.dispatchEvent({type:"columnEverythingChanged",source:e}),c&&(this.changeEventsDispatching=!0,c(),this.changeEventsDispatching=!1),l.dispatchEvent({type:"newColumnsLoaded",source:e}),"gridInitializing"===e&&o?.applyAutosizeStrategy()}refreshCols(e,t){if(!this.colDefCols)return;const i=this.cols?.tree;this.saveColOrder();const{autoColSvc:o,selectionColSvc:n,rowNumbersSvc:s,quickFilter:r,pivotResultCols:a,showRowGroupCols:l,rowAutoHeight:d,visibleCols:c,colViewport:u,eventSvc:g}=this.beans,m=this.selectCols(a,this.colDefCols);this.createColumnsForService([o,n,s],m,t);const w=function An(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}(this.gos,this.showingPivotResult);(!e||w)&&this.restoreColOrder(m),this.positionLockedCols(m),l?.refresh(),r?.refreshCols(),this.setColSpanActive(),d?.setAutoHeightActive(m),c.clear(),u.clear(),!ho(i,this.cols.tree)&&g.dispatchEvent({type:"gridColumnsChanged"})}createColumnsForService(e,t,i){for(const o of e)o&&(o.createColumns(t,n=>{this.lastOrder=n(this.lastOrder),this.lastPivotOrder=n(this.lastPivotOrder)},i),o.addColumns(t))}selectCols(e,t){const i=e?.getPivotResultCols()??null;this.showingPivotResult=null!=i;const{map:o,list:n,tree:s,treeDepth:r}=i??t;return this.cols={list:n.slice(),map:{...o},tree:s.slice(),treeDepth:r},i&&(i.list.some(l=>void 0!==this.cols?.map[l.getColId()])||(this.lastPivotOrder=null)),this.cols}getColsToShow(){if(!this.cols)return[];const{valueColsSvc:e,selectionColSvc:t,gos:i}=this.beans,o=this.isPivotMode()&&!this.showingPivotResult,n=t?.isSelectionColumnEnabled(),s=i.get("rowNumbers"),r=e?.columns;return this.cols.list.filter(l=>{const d=Kr(l);if(o){const c=r?.includes(l);return d||c||n&&qi(l)||s&&Xi(l)}return d||l.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1,e),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,i){Pi(this.beans,{state:e.map(o=>({colId:"string"==typeof o?o:o.getColId(),hide:!t}))},i)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const i=t.filter(u=>null!=e.map[u.getId()]);if(0===i.length)return;if(i.length===e.list.length)return void(e.list=i);const o=u=>{const g=u.getOriginalParent();return!!g&&(g.getChildren().length>1||o(g))};if(!i.some(u=>o(u))){const u=new Set(i);for(const g of e.list)u.has(g)||i.push(g);return void(e.list=i)}const n=new Map;for(let u=0;u<i.length;u++)n.set(i[u],u);const s=e.list.filter(u=>!n.has(u));if(0===s.length)return void(e.list=i);const r=(u,g)=>{const m=g?g.getOriginalParent():u.getOriginalParent();if(!m)return null;let w=null,b=null;for(const x of m.getChildren())if(x!==g&&x!==u){if(x instanceof uo){const A=n.get(x);if(null==A)continue;(null==w||w<A)&&(w=A,b=x);continue}x.forEachLeafColumn(A=>{const O=n.get(A);null!=O&&(null==w||w<O)&&(w=O,b=A)})}return b??r(u,m)},a=[],l=new Map;for(const u of s){const g=r(u,null);if(null==g){a.push(u);continue}const m=l.get(g);void 0===m?l.set(g,u):Array.isArray(m)?m.push(u):l.set(g,[m,u])}const d=new Array(e.list.length);let c=d.length-1;for(let u=a.length-1;u>=0;u--)d[c--]=a[u];for(let u=i.length-1;u>=0;u--){const g=i[u],m=l.get(g);if(m)if(Array.isArray(m))for(let w=m.length-1;w>=0;w--)d[c--]=m[w];else d[c--]=m;d[c--]=g}e.list=d}positionLockedCols(e){e.list=rd(e.list,this.gos)}saveColOrder(){this.showingPivotResult?this.lastPivotOrder=this.cols?.list??null:this.lastOrder=this.cols?.list??null}getColumnDefs(e){return this.colDefCols&&this.beans.colDefFactory?.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,this.cols?.list??[],e)}setColSpanActive(){this.colSpanActive=!!this.cols?.list.some(e=>null!=e.getColDef().colSpan)}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1,t);const{visibleCols:i,eventSvc:o}=this.beans;i.refresh(t),o.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){const e=this.beans.pivotColsSvc?.columns;return this.pivotMode&&!!e?.length}recreateColumnDefs(e){if(!this.cols)return;this.beans.autoColSvc?.updateColumns(e);const t=Jo(e.source);this.createColsFromColDefs(t)}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){_s(this.beans,this.colDefCols?.tree),super.destroy()}getColTree(){return this.cols?.tree??[]}getColDefColTree(){return this.colDefCols?.tree??[]}getColDefCols(){return this.colDefCols?.list??null}getCols(){return this.cols?.list??[]}forAllCols(e){const{pivotResultCols:t,autoColSvc:i,selectionColSvc:o,groupHierarchyColSvc:n}=this.beans;Gn(this.colDefCols?.list,e),Gn(i?.columns?.list,e),Gn(o?.columns?.list,e),Gn(n?.columns?.list,e),Gn(t?.getPivotResultCols()?.list,e)}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>null!=t):[]}getColDefCol(e){return this.colDefCols?.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return null==e?null:this.getColFromCollection(e,this.cols)}getColById(e){return this.cols?.map[e]??null}getColFromCollection(e,t){if(null==t)return null;const{map:i,list:o}=t;if("string"==typeof e&&i[e])return i[e];for(let a=0;a<o.length;a++)if(Nn(o[a],e))return o[a];const{autoColSvc:n,selectionColSvc:s,groupHierarchyColSvc:r}=this.beans;return n?.getColumn(e)??s?.getColumn(e)??r?.getColumn(e)??null}},class extends Y{constructor(){super(...arguments),this.beanName="pageBounds",this.pixelOffset=0}getFirstRow(){return this.topRowBounds?.rowIndex??-1}getLastRow(){return this.bottomRowBounds?.rowIndex??-1}getCurrentPageHeight(){const{topRowBounds:e,bottomRowBounds:t}=this;return e&&t?Math.max(t.rowTop+t.rowHeight-e.rowTop,0):0}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this;return{pageFirstPixel:e?.rowTop??0,pageLastPixel:t?t.rowTop+t.rowHeight:0}}calculateBounds(e,t){const{rowModel:i}=this.beans,o=i.getRowBounds(e);o&&(o.rowIndex=e),this.topRowBounds=o;const n=i.getRowBounds(t);n&&(n.rowIndex=t),this.bottomRowBounds=n,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},class extends Y{constructor(){super(...arguments),this.beanName="pageBoundsListener"}postConstruct(){this.addManagedEventListeners({modelUpdated:this.onModelUpdated.bind(this),recalculateRowBounds:this.calculatePages.bind(this)}),this.onModelUpdated()}onModelUpdated(e){this.calculatePages(),this.eventSvc.dispatchEvent({type:"paginationChanged",animate:e?.animate??!1,newData:e?.newData??!1,newPage:e?.newPage??!1,newPageSize:e?.newPageSize??!1,keepRenderedRows:e?.keepRenderedRows??!1})}calculatePages(){const{pageBounds:e,pagination:t,rowModel:i}=this.beans;t?t.calculatePages():e.calculateBounds(0,i.getRowCount()-1)}},class extends Y{constructor(){super(...arguments),this.beanName="rowRenderer",this.destroyFuncsForColumnListeners=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.refreshInProgress=!1,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{for(const s of this.getAllCellCtrls())s.onCellSelectionChanged()},t=()=>{for(const s of this.getAllCellCtrls())s.updateRangeBordersIfRangeCount()},i=()=>{this.eventSvc.addListener("cellSelectionChanged",e),this.eventSvc.addListener("columnMoved",t),this.eventSvc.addListener("columnPinned",t),this.eventSvc.addListener("columnVisible",t)},o=()=>{this.eventSvc.removeListener("cellSelectionChanged",e),this.eventSvc.removeListener("columnMoved",t),this.eventSvc.removeListener("columnPinned",t),this.eventSvc.removeListener("columnVisible",t)};this.addDestroyFunc(()=>o()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{kt(this.gos)?i():o()}),kt(this.gos)&&i()}}wireBeans(e){this.pageBounds=e.pageBounds,this.colModel=e.colModel,this.pinnedRowModel=e.pinnedRowModel,this.rowModel=e.rowModel,this.focusSvc=e.focusSvc,this.rowContainerHeight=e.rowContainerHeight,this.ctrlsSvc=e.ctrlsSvc,this.editSvc=e.editSvc}postConstruct(){this.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.initialise()})}initialise(){this.addManagedEventListeners({paginationChanged:this.onPageLoaded.bind(this),pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),bodyScroll:this.onBodyScroll.bind(this),bodyHeightChanged:this.redraw.bind(this,{})}),this.addManagedPropertyListeners(["domLayout","embedFullWidthRows"],()=>this.onDomLayoutChanged()),this.addManagedPropertyListeners(["suppressMaxRenderedRowRestriction","rowBuffer"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",o=>this.onSuppressCellFocusChanged(o.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:o,previousValue:n})=>{(!n&&o||n&&!o)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:i}=this.beans;if(i&&this.addManagedPropertyListener("showOpenedGroup",()=>{const o=i.getShowRowGroupCols();o.length&&this.refreshCells({columns:o,force:!0})}),e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),this.destroyRowCtrls.bind(this));else{const o=this.gridBodyCtrl;o.setStickyTopHeight(0),o.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=Ft(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const e=this.getKeepDetailRowsCount();this.cachedRowCtrls=new Ny(e??3)}}getKeepDetailRowsCount(){return this.gos.get("keepDetailRowsCount")}getStickyTopRowCtrls(){return this.stickyRowFeature?.stickyTopRowCtrls??[]}getStickyBottomRowCtrls(){return this.stickyRowFeature?.stickyBottomRowCtrls??[]}updateAllRowCtrls(){const e=Object.values(this.rowCtrlsByRowIndex),t=Object.values(this.zombieRowCtrls),i=this.cachedRowCtrls?.getEntries()??[];this.allRowCtrls=t.length>0||i.length>0?[...e,...t,...i]:e}isCellBeingRendered(e,t){const i=this.rowCtrlsByRowIndex[e];return t&&i?!(!i.isFullWidth()&&!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:e,column:t,rowPinned:null})&&!i.getCellCtrl(t)&&i.isRowRendered()):!!i}updateCellFocus(e){for(const t of this.getAllCellCtrls())t.onCellFocused(e);for(const t of this.getFullWidthRowCtrls())t.onFullWidthRowFocused(e)}onCellFocusChanged(e){if(null!=e?.rowIndex&&!e.rowPinned){const t=this.beans.colModel.getCol(e.column)??void 0;this.isCellBeingRendered(e.rowIndex,t)||this.redraw()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){for(const t of this.getAllCellCtrls())t.onSuppressCellFocusChanged(e);for(const t of this.getFullWidthRowCtrls())t.onSuppressCellFocusChanged(e)}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;if(t)for(const i of this.getAllCellCtrls())t.onFlashCells(i,e)},columnHoverChanged:()=>{for(const e of this.getAllCellCtrls())e.onColumnHover()},displayedColumnsChanged:()=>{for(const e of this.getAllCellCtrls())e.onDisplayedColumnsChanged()},displayedColumnsWidthChanged:()=>{if(this.printLayout)for(const e of this.getAllCellCtrls())e.onLeftChanged()}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){for(const e of this.destroyFuncsForColumnListeners)e();this.destroyFuncsForColumnListeners.length=0}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();const e=this.colModel.getCols();for(const t of e){const i=l=>{for(const d of this.getAllCellCtrls())d.column===t&&l(d)},o=()=>{i(l=>l.onLeftChanged())},n=()=>{i(l=>l.onWidthChanged())},s=()=>{i(l=>l.onFirstRightPinnedChanged())},r=()=>{i(l=>l.onLastLeftPinnedChanged())},a=()=>{i(l=>l.onColDefChanged())};t.__addEventListener("leftChanged",o),t.__addEventListener("widthChanged",n),t.__addEventListener("firstRightPinnedChanged",s),t.__addEventListener("lastLeftPinnedChanged",r),t.__addEventListener("colDefChanged",a),this.destroyFuncsForColumnListeners.push(()=>{t.__removeEventListener("leftChanged",o),t.__removeEventListener("widthChanged",n),t.__removeEventListener("firstRightPinnedChanged",s),t.__removeEventListener("lastLeftPinnedChanged",r),t.__removeEventListener("colDefChanged",a)})}}onDomLayoutChanged(){const e=Ft(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),i=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,i&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){this.redrawAfterModelUpdate({recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0})}getAllCellsNotSpanningForColumn(e){const t=[];for(const i of this.getAllRowCtrls()){const o=i.getCellCtrl(e,!0)?.eGui;o&&t.push(o)}return t}refreshFloatingRowComps(e=!0){this.refreshFloatingRows(this.topRowCtrls,"top",e),this.refreshFloatingRows(this.bottomRowCtrls,"bottom",e)}refreshFloatingRows(e,t,i){const{pinnedRowModel:o,beans:n,printLayout:s}=this,r=Object.fromEntries(e.map(l=>[l.rowNode.id,l]));o?.forEachPinnedRow(t,(l,d)=>{const c=e[d];c&&void 0===o.getPinnedRowById(c.rowNode.id,t)&&(c.destroyFirstPass(),c.destroySecondPass()),l.id in r&&i?(e[d]=r[l.id],delete r[l.id]):e[d]=new fr(l,n,!1,!1,s)});const a=("top"===t?o?.getPinnedTopRowCount():o?.getPinnedBottomRowCount())??0;e.length=a}onPinnedRowDataChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else{if(this.cachedRowCtrls?.has(e))return void this.cachedRowCtrls.removeRow(e);{const i=o=>{const n=o[e.rowIndex];n&&n.rowNode===e&&(n.destroyFirstPass(),n.destroySecondPass(),o[e.rowIndex]=this.createRowCon(e,!1,!1))};switch(e.rowPinned){case"top":i(this.topRowCtrls);break;case"bottom":i(this.bottomRowCtrls);break;default:i(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){const{editSvc:t}=this.beans;if(t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"})),null==e)this.redrawAfterModelUpdate();else{for(const o of e??[])this.redrawRow(o,!0);this.dispatchDisplayedRowsChanged(!1)}}redrawAfterModelUpdate(e={}){this.getLockOnRefresh();const t=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const i=!e.domLayoutChanged&&!!e.recycleRows,o=e.animate&&ji(this.gos),n=i?this.getRowsToRecycle():null;i||this.removeAllRowComps(),this.workOutFirstAndLastRowsToRender();const{stickyRowFeature:s,gos:r}=this;if(s){s.checkStickyRows();const a=s.extraTopHeight+s.extraBottomHeight;a&&this.updateContainerHeights(a)}this.recycleRows(n,o),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(r.get("enableRowPinning")?i:void 0),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,i=this.gos.get("suppressScrollOnNewData");t&&!i&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout)return void t.setModelHeight(null);let i=this.pageBounds.getCurrentPageHeight();0===i&&(i=1),t.setModelHeight(i+e)}getLockOnRefresh(){if(this.refreshInProgress)throw new Error(ei(252));this.refreshInProgress=!0,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){this.refreshInProgress=!1,this.beans.frameworkOverrides.releaseLockOnRefresh?.()}isRefreshInProgress(){return this.refreshInProgress}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,i=this.findPositionToFocus(e);i?e.rowIndex===i.rowIndex&&e.rowPinned==i.rowPinned?t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(Ie(this.gos,{...i,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"})):t.setFocusedCell({...i,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0}):t.focusHeaderPosition({headerPosition:{headerRowIndex:Bi(this.beans)-1,column:e.column}})}findPositionToFocus(e){const{pagination:t,pageBounds:i}=this.beans;let o=e;for(null==o.rowPinned&&t&&i&&!t.isRowInPage(o.rowIndex)&&(o={rowPinned:null,rowIndex:i.getFirstRow()});o;){if(null==o.rowPinned&&i)if(o.rowIndex<i.getFirstRow()){if(o=nr(this.beans,{rowPinned:null,rowIndex:0}),!o)return null}else o.rowIndex>i.getLastRow()&&(o={rowPinned:null,rowIndex:i.getLastRow()});const n=this.getRowByPosition(o);if(n?.isAlive())return{...n.getRowPosition(),column:e.column};o=nr(this.beans,o)}return null}getAllCellCtrls(){const e=[],t=this.getAllRowCtrls(),i=t.length;for(let o=0;o<i;o++){const n=t[o].getAllCellCtrls(),s=n.length;for(let r=0;r<s;r++)e.push(n[r])}return e}getAllRowCtrls(){const{spannedRowRenderer:e}=this.beans,t=this.getStickyTopRowCtrls(),i=this.getStickyBottomRowCtrls();return[...this.topRowCtrls,...this.bottomRowCtrls,...t,...i,...e?.getCtrls("top")??[],...e?.getCtrls("bottom")??[],...e?.getCtrls("center")??[],...Object.values(this.rowCtrlsByRowIndex)]}addRenderedRowListener(e,t,i){const o=this.rowCtrlsByRowIndex[t];o&&o.addEventListener(e,i)}refreshCells({rowNodes:e,columns:t,force:i,suppressFlash:o}={}){const n={force:i,newData:!1,suppressFlash:o};for(const s of this.getCellCtrls(e,t))s.refreshOrDestroyCell(n);this.refreshFullWidth(e)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e);this.refreshFullWidth(e.rowNodes)}refreshFullWidth(e){if(!e)return;let t=!1;for(const i of this.getRowCtrls(e))i.isFullWidth()&&(i.refreshFullWidth()||(t=!0,this.redrawRow(i.rowNode,!0)));t&&this.dispatchDisplayedRowsChanged(!1)}getRowCtrls(e){const t=wl(e),i=this.getAllRowCtrls();return e&&t?i.filter(o=>bl(o.rowNode,t)):i}getCellCtrls(e,t){let i;p(t)&&(i={},t.forEach(n=>{const s=this.colModel.getCol(n);p(s)&&(i[s.getId()]=!0)}));const o=[];for(const n of this.getRowCtrls(e))for(const s of n.getAllCellCtrls()){const r=s.column.getId();i&&!i[r]||o.push(s)}return o}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e=!1){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const i of Object.keys(this.rowCtrlsByRowIndex))null==this.rowCtrlsByRowIndex[i].rowNode.id&&e.push(i);this.removeRowCtrls(e);const t={};for(const i of Object.values(this.rowCtrlsByRowIndex))t[i.rowNode.id]=i;return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const i of e){const o=this.rowCtrlsByRowIndex[i];o&&(o.destroyFirstPass(t),o.destroySecondPass()),delete this.rowCtrlsByRowIndex[i]}}onBodyScroll(e){"vertical"===e.direction&&this.redraw({afterScroll:!0})}redraw(e={}){const{focusSvc:t,animationFrameSvc:i}=this.beans,{afterScroll:o}=e;let n;const s=this.stickyRowFeature;s&&(n=t?.getFocusCellToUseAfterRefresh()||void 0);const r=this.firstRenderedRow,a=this.lastRenderedRow;this.workOutFirstAndLastRowsToRender();let l=!1;if(s){l=s.checkStickyRows();const c=s.extraTopHeight+s.extraBottomHeight;c&&this.updateContainerHeights(c)}if((!o||l||this.firstRenderedRow!==r||this.lastRenderedRow!==a)&&(this.getLockOnRefresh(),this.recycleRows(null,!1,o),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(o&&!l),null!=n)){const c=t?.getFocusCellToUseAfterRefresh();null!=n&&null==c&&(i?.flushAllFrames(),this.restoreFocusedCell(n))}}removeRowCompsNotToDraw(e,t){const i={};for(const s of e)i[s]=!0;const n=Object.keys(this.rowCtrlsByRowIndex).filter(s=>!i[s]);this.removeRowCtrls(n,t)}calculateIndexesToDraw(e){const t=[];for(let r=this.firstRenderedRow;r<=this.lastRenderedRow;r++)t.push(r);const i=this.beans.pagination,o=this.beans.focusSvc?.getFocusedCell()?.rowIndex;null!=o&&(o<this.firstRenderedRow||o>this.lastRenderedRow)&&(!i||i.isRowInPage(o))&&o<this.rowModel.getRowCount()&&t.push(o);const n=r=>{const a=r.rowNode.rowIndex;null==a||a===o||(a<this.firstRenderedRow||a>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(r)&&t.push(a)};for(const r of Object.values(this.rowCtrlsByRowIndex))n(r);if(e)for(const r of Object.values(e))n(r);t.sort((r,a)=>r-a);const s=[];for(let r=0;r<t.length;r++){const a=t[r],l=this.rowModel.getRow(a);l&&!l.sticky&&s.push(a)}return s}recycleRows(e,t=!1,i=!1){const o=this.calculateIndexesToDraw(e);(this.printLayout||i)&&(t=!1),this.removeRowCompsNotToDraw(o,!t);for(const n of o)this.createOrUpdateRowCtrl(n,e,t,i);if(e){const{animationFrameSvc:n}=this.beans;n?.active&&i&&!this.printLayout?n.addDestroyTask(()=>{this.destroyRowCtrls(e,t),this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}):this.destroyRowCtrls(e,t)}this.updateAllRowCtrls()}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const{visibleCols:e}=this.beans,t=e.isPinningLeft(),i=e.isPinningRight();(this.pinningLeft!==t||i!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=i,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls())e.push(t.rowNode.rowIndex.toString());this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0})}getFullWidthRowCtrls(e){const t=wl(e);return this.getAllRowCtrls().filter(i=>!!i.isFullWidth()&&!(null!=t&&!bl(i.rowNode,t)))}createOrUpdateRowCtrl(e,t,i,o){let n,s=this.rowCtrlsByRowIndex[e];if(s||(n=this.rowModel.getRow(e),p(n)&&p(t)&&t[n.id]&&n.alreadyRendered&&(s=t[n.id],t[n.id]=null)),!s){if(n||(n=this.rowModel.getRow(e)),!p(n))return;s=this.createRowCon(n,i,o)}n&&(n.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s}destroyRowCtrls(e,t){const i=[];if(e)for(const o of Object.values(e))if(o){if(this.cachedRowCtrls&&o.isCacheable()){this.cachedRowCtrls.addRow(o);continue}if(o.destroyFirstPass(!t),t){const n=o.instanceId;this.zombieRowCtrls[n]=o,i.push(()=>{o.destroySecondPass(),delete this.zombieRowCtrls[n]})}else o.destroySecondPass()}t&&(i.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const o of i)o()},400))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){return this.getRowBuffer()*Ai(this.beans)}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:i}=this;let o,n;if(e.updateOffset(),i.isRowsToRender())if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),o=t.getFirstRow(),n=t.getLastRow();else{const c=this.getRowBufferInPixels(),u=this.ctrlsSvc.getScrollFeature(),g=this.gos.get("suppressRowVirtualisation");let w,b,m=!1;do{const te=t.getPixelOffset(),{pageFirstPixel:oe,pageLastPixel:ce}=t.getCurrentPagePixelRange(),pe=e.divStretchOffset,Ne=u.getVScrollPosition(),$e=Ne.top,Ue=Ne.bottom;g?(w=oe+pe,b=ce+pe):(w=Math.max($e+te-c,oe)+pe,b=Math.min(Ue+te+c,ce)+pe),this.firstVisibleVPixel=Math.max($e+te,oe)+pe,this.lastVisibleVPixel=Math.min(Ue+te,ce)+pe,m=this.ensureAllRowsInRangeHaveHeightsCalculated(w,b)}while(m);let x=i.getRowIndexAtPixel(w),A=i.getRowIndexAtPixel(b);const O=t.getFirstRow(),V=t.getLastRow();x<O&&(x=O),A>V&&(A=V),o=x,n=A}else o=0,n=-1;const s=Ft(this.gos,"normal"),r=this.gos.get("suppressMaxRenderedRowRestriction"),a=Math.max(this.getRowBuffer(),500);s&&!r&&n-o>a&&(n=o+a),(o!==this.firstRenderedRow||n!==this.lastRenderedRow)&&(this.firstRenderedRow=o,this.lastRenderedRow=n,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:o,lastRow:n}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,_e(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const i=this.pinnedRowModel?.ensureRowHeightsValid(),o=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:n,rowModel:s}=this,r=s.ensureRowHeightsValid(e,t,n.getFirstRow(),n.getLastRow());return(r||o)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),!!(o||r||i)&&(this.updateContainerHeights(),!0)}doNotUnVirtualiseRow(e){const o=e.rowNode,n=this.focusSvc.isRowFocused(o.rowIndex,o.rowPinned),s=this.editSvc?.isEditing(e);return!!(n||s||o.detail)&&!!this.isRowPresent(o)}isRowPresent(e){return!!this.rowModel.isRowPresent(e)&&(this.beans.pagination?.isRowInPage(e.rowIndex)??!0)}createRowCon(e,t,i){const o=this.cachedRowCtrls?.getRow(e)??null;return o||new fr(e,this.beans,t,i&&!this.printLayout&&!!this.beans.animationFrameSvc?.active,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(o=>o.rowNode);return[...this.getStickyTopRowCtrls().map(o=>o.rowNode),...e,...this.getStickyBottomRowCtrls().map(o=>o.rowNode)]}getRowByPosition(e){let t;const{rowIndex:i}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[i];break;case"bottom":t=this.bottomRowCtrls[i];break;default:t=this.rowCtrlsByRowIndex[i],t||(t=this.getStickyTopRowCtrls().find(o=>o.rowNode.rowIndex===i)||null,t||(t=this.getStickyBottomRowCtrls().find(o=>o.rowNode.rowIndex===i)||null))}return t}isRangeInRenderedViewport(e,t){return null!=e&&null!=t&&!(t<this.firstRenderedRow||e>this.lastRenderedRow)}},class extends Y{constructor(){super(...arguments),this.beanName="valueSvc",this.hasEditSvc=!1,this.initialised=!1,this.isSsrm=!1}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.hasEditSvc=!!e.editSvc}postConstruct(){this.initialised||this.init()}init(){this.executeValueGetter=this.valueCache?this.executeValueGetterWithValueCache.bind(this):this.executeValueGetterWithoutValueCache.bind(this),this.isSsrm=lo(this.gos),this.cellExpressions=this.gos.get("enableCellExpressions"),this.isTreeData=this.gos.get("treeData"),this.initialised=!0;const e=t=>this.callColumnCellValueChangedHandler(t);this.eventSvc.addListener("cellValueChanged",e,!0),this.addDestroyFunc(()=>this.eventSvc.removeListener("cellValueChanged",e,!0)),this.addManagedPropertyListener("treeData",t=>this.isTreeData=t.currentValue)}getValueForDisplay(e,t,i=!1,o=!1,n="ui"){const{showRowGroupColValueSvc:s}=this.beans,r=!e&&t.group,a=e?.colDef.showRowGroup;if(s&&(!this.isTreeData||t.footer)&&(r||a)){const b=s.getGroupValue(t,e);if(null==b)return{value:null,valueFormatted:null};if(!i)return{value:b.value,valueFormatted:null};const x=s.formatAndPrefixGroupColValue(b,e,o);return{value:b.value,valueFormatted:x}}if(!e)return{value:t.key,valueFormatted:null};const d=t.leafGroup&&this.colModel.isPivotMode(),c=t.group&&t.expanded&&!t.footer&&!d,u=this.gos.get("groupSuppressBlankHeader")||!t.sibling,m=this.getValue(e,t,c&&!u,n);return{value:m,valueFormatted:!i||o&&!1===e.colDef.useValueFormatterForExport?null:this.formatValue(e,t,m)}}getValue(e,t,i=!1,o="ui"){if(this.initialised||this.init(),!t)return;const n=e.getColDef(),s=n.field,r=e.getColId(),a=t.data;if(this.hasEditSvc&&"ui"===o){const b=this.editSvc;if(b.isEditing()){const x=b.getCellDataValue({rowNode:t,column:e},!0);if(void 0!==x)return x}}let l;const d=n.showRowGroup;if("string"==typeof d&&(this.beans.rowGroupColsSvc?.getColumnIndex(d)??-1)>t.level)return null;const c="string"!=typeof d||!t.group,u=t.groupData&&r in t.groupData,g=!i&&t.aggData&&void 0!==t.aggData[r],m=this.isSsrm&&i&&!!n.aggFunc,w=this.isSsrm&&t.footer&&t.field&&(!0===n.showRowGroup||n.showRowGroup===t.field);if(this.isTreeData&&g)l=t.aggData[r];else if(this.isTreeData&&n.valueGetter)l=this.executeValueGetter(n.valueGetter,a,e,t);else if(this.isTreeData&&s&&a)l=Jn(a,s,e.isFieldContainsDots());else if(u)l=t.groupData[r];else if(g)l=t.aggData[r];else if(n.valueGetter&&!m){if(!c)return l;l=this.executeValueGetter(n.valueGetter,a,e,t)}else if(w)l=Jn(a,t.field,e.isFieldContainsDots());else if(s&&a&&!m){if(!c)return l;l=Jn(a,s,e.isFieldContainsDots())}if(this.cellExpressions&&"string"==typeof l&&0===l.indexOf("=")){const b=l.substring(1);l=this.executeValueGetter(b,a,e,t)}return l}parseValue(e,t,i,o){const n=e.getColDef(),s=n.valueParser;if(p(s)){const r=Ie(this.gos,{node:t,data:t?.data,oldValue:o,newValue:i,colDef:n,column:e});return"function"==typeof s?s(r):this.expressionSvc?.evaluate(s,r)}return i}getDeleteValue(e,t){return p(e.getColDef().valueParser)?this.parseValue(e,t,"",this.getValueForDisplay(e,t).value)??null:null}formatValue(e,t,i,o,n=!0){const{expressionSvc:s}=this.beans;let a,r=null;const l=e.getColDef();if(o?a=o:n&&(a=l.valueFormatter),a){const c=Ie(this.gos,{value:i,node:t,data:t?t.data:null,colDef:l,column:e});r="function"==typeof a?a(c):s?s.evaluate(a,c):null}else if(l.refData)return l.refData[i]||"";return null==r&&Array.isArray(i)&&(r=i.join(", ")),r}setValue(e,t,i,o){const n=this.colModel.getColDefCol(t);if(!e||!n)return!1;K(e.data)&&(e.data={});const{field:s,valueSetter:r}=n.getColDef();if(K(s)&&K(r))return se(17),!1;if(this.dataTypeSvc&&!this.dataTypeSvc.checkType(n,i))return se(135),!1;const a=Ie(this.gos,{node:e,data:e.data,oldValue:this.getValue(n,e,void 0,o),newValue:i,colDef:n.getColDef(),column:n});let l;if(a.newValue=i,l=p(r)?"function"==typeof r?r(a):this.expressionSvc?.evaluate(r,a):this.setValueUsingField(e.data,s,i,n.isFieldContainsDots()),void 0===l&&(l=!0),!l)return!1;e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const d=this.getValue(n,e);return this.dispatchCellValueChangedEvent(e,a,d,o),e.pinnedSibling&&this.dispatchCellValueChangedEvent(e.pinnedSibling,a,d,o),!0}dispatchCellValueChangedEvent(e,t,i,o){this.eventSvc.dispatchEvent({type:"cellValueChanged",event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:t.column,colDef:t.colDef,data:e.data,node:e,oldValue:t.oldValue,newValue:i,value:i,source:o})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;"function"==typeof t&&this.beans.frameworkOverrides.wrapOutgoing(()=>{t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,context:e.context})})}setValueUsingField(e,t,i,o){if(!t)return!1;let n=!1;if(o){const s=t.split(".");let r=e;for(;s.length>0&&r;){const a=s.shift();0===s.length?(n=r[a]===i,n||(r[a]=i)):r=r[a]}}else n=e[t]===i,n||(e[t]=i);return!n}executeValueGetterWithValueCache(e,t,i,o){const n=i.getColId(),s=this.valueCache.getValue(o,n);if(void 0!==s)return s;const r=this.executeValueGetterWithoutValueCache(e,t,i,o);return this.valueCache.setValue(o,n,r),r}executeValueGetterWithoutValueCache(e,t,i,o){const n=Ie(this.gos,{data:t,node:o,column:i,colDef:i.getColDef(),getValue:this.getValueCallback.bind(this,o)});let s;return s="function"==typeof e?e(n):this.expressionSvc?.evaluate(e,n),s}getValueCallback(e,t){const i=this.colModel.getColDefCol(t);return i?this.getValue(i,e):null}getKeyForNode(e,t){const i=this.getValue(e,t),o=e.getColDef().keyCreator;let n=i;return o&&(n=o(Ie(this.gos,{value:i,colDef:e.getColDef(),column:e,node:t,data:t.data}))),"string"==typeof n||null==n||(n=String(n),"[object Object]"===n&&se(121)),n}},class extends Y{constructor(){super(...arguments),this.beanName="focusSvc",this.focusFallbackTimeout=null,this.needsFocusRestored=!1}wireBeans(e){this.colModel=e.colModel,this.visibleCols=e.visibleCols,this.rowRenderer=e.rowRenderer,this.navigation=e.navigation,this.filterManager=e.filterManager,this.overlays=e.overlays}postConstruct(){const e=this.clearFocusedCell.bind(this);this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:this.onColumnEverythingChanged.bind(this),columnGroupOpened:e,columnRowGroupChanged:e}),this.addDestroyFunc(function np(e){const t=we(e);return function ip(e){Ls>0||(e.addEventListener("keydown",Bs),e.addEventListener("mousedown",Bs))}(t),Ls++,()=>{Ls--,function op(e){Ls>0||(e.removeEventListener("keydown",Bs),e.removeEventListener("mousedown",Bs))}(t)}}(this.beans))}attemptToRecoverFocus(){this.needsFocusRestored=!0,null!=this.focusFallbackTimeout&&clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=window.setTimeout(this.setFocusRecovered.bind(this),100)}setFocusRecovered(){this.needsFocusRestored=!1,null!=this.focusFallbackTimeout&&(clearTimeout(this.focusFallbackTimeout),this.focusFallbackTimeout=null)}shouldTakeFocus(){return this.gos.get("suppressFocusAfterRefresh")?(this.setFocusRecovered(),!1):this.needsFocusRestored?(this.setFocusRecovered(),!0):this.doesRowOrCellHaveBrowserFocus()}onColumnEverythingChanged(){if(!this.focusedCell)return;const e=this.focusedCell.column,t=this.colModel.getCol(e.getId());e!==t&&this.clearFocusedCell()}getFocusCellToUseAfterRefresh(){const{gos:e,focusedCell:t}=this;return e.get("suppressFocusAfterRefresh")||e.get("suppressCellFocus")||!t||!this.doesRowOrCellHaveBrowserFocus()?null:t}getFocusHeaderToUseAfterRefresh(){return!this.gos.get("suppressFocusAfterRefresh")&&this.focusedHeader&&this.isDomDataPresentInHierarchy(le(this.beans),Sc)?this.focusedHeader:null}doesRowOrCellHaveBrowserFocus(){const e=le(this.beans);return!!this.isDomDataPresentInHierarchy(e,js)||this.isDomDataPresentInHierarchy(e,Ks)}isDomDataPresentInHierarchy(e,t){let i=e;for(;i;){if(On(this.gos,i,t))return!0;i=i.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:i,column:o}=e,n={rowIndex:t,rowPinned:i,column:o,isFullWidthCell:!1},s=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:i});return s&&(n.isFullWidthCell=s.isFullWidth()),n}clearFocusedCell(){if(null==this.focusedCell)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCell(e){this.setFocusRecovered();const{column:t,rowIndex:i,rowPinned:o,forceBrowserFocus:n=!1,preventScrollOnBrowserFocus:s=!1,sourceEvent:r}=e,a=this.colModel.getCol(t);if(!a)return void(this.focusedCell=null);this.focusedCell={rowIndex:i,rowPinned:E(o),column:a};const l=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...l,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:n,preventScrollOnBrowserFocus:s,sourceEvent:r}),this.previousCellFocusParams=l}isCellFocused(e){return null!=this.focusedCell&&zc(e,this.focusedCell)}isHeaderWrapperFocused(e){if(null==this.focusedHeader)return!1;const{column:t,rowCtrl:{rowIndex:i,pinned:o}}=e,{column:n,headerRowIndex:s}=this.focusedHeader;return t===n&&i===s&&o==n.getPinned()}focusHeaderPosition(e){if(this.setFocusRecovered(),Ho(this.beans))return!1;const{direction:t,fromTab:i,allowUserOverride:o,event:n,fromCell:s,rowWithoutSpanValue:r,scroll:a=!0}=e;let{headerPosition:l}=e;if(s&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(l);if(o){const d=this.focusedHeader,c=Bi(this.beans);if(i){const u=this.gos.getCallback("tabToNextHeader");u&&(l=this.getHeaderPositionFromUserFunc({userFunc:u,direction:t,currentPosition:d,headerPosition:l,headerRowCount:c}))}else{const u=this.gos.getCallback("navigateToNextHeader");u&&n&&(l=u({key:n.key,previousHeaderPosition:d,nextHeaderPosition:l,headerRowCount:c,event:n}))}}return!!l&&this.focusProvidedHeaderPosition({headerPosition:l,direction:t,event:n,fromCell:s,rowWithoutSpanValue:r,scroll:a})}focusHeaderPositionFromUserFunc(e){if(Ho(this.beans))return!1;const{userFunc:t,headerPosition:i,direction:o,event:n}=e,s=this.focusedHeader,r=Bi(this.beans),a=this.getHeaderPositionFromUserFunc({userFunc:t,direction:o,currentPosition:s,headerPosition:i,headerRowCount:r});return!!a&&this.focusProvidedHeaderPosition({headerPosition:a,direction:o,event:n})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:i,currentPosition:o,headerPosition:n,headerRowCount:s}=e,a=t({backwards:"Before"===i,previousHeaderPosition:o,nextHeaderPosition:n,headerRowCount:s});return!0===a?o:!1===a?null:a}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:i,fromCell:o,rowWithoutSpanValue:n,event:s,scroll:r=!0}=e,{column:a,headerRowIndex:l}=t,{filterManager:d,ctrlsSvc:c,headerNavigation:u}=this.beans;if(this.focusedHeader&&function Pm(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}(e.headerPosition,this.focusedHeader))return!1;if(-1===l)return d?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:a,event:s});r&&u?.scrollToColumn(a,i);const m=c.getHeaderRowContainerCtrl(a.getPinned())?.focusHeader(t.headerRowIndex,a,s)||!1;return u&&m&&(null!=n||o)&&(u.currentHeaderRowWithoutSpan=n??-1),m}focusFirstHeader(){if(this.overlays?.isExclusive()&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=fu(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.isExclusive()&&this.focusOverlay(!0))return!0;const t=Bi(this.beans)-1,i=rt(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:i},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return null!=this.focusedCell&&this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===E(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&Ao(t,e)}focusGridView(e){const{backwards:t=!1,canFocusOverlay:i=!0,event:o}=e;if(this.overlays?.isExclusive())return i&&this.focusOverlay(t);if(er(this.beans))return t&&!Ho(this.beans)?this.focusLastHeader():!(!i||!this.focusOverlay(t))||!t&&dn(this.beans,t);const n=t?function rv(e){let t,i=null;const{pinnedRowModel:o,pageBounds:n}=e,s=o?.getPinnedBottomRowCount(),r=o?.getPinnedTopRowCount();return s?(i="bottom",t=s-1):e.rowModel.getRowCount()?t=n.getLastRow():r&&(i="top",t=r-1),void 0===t?null:{rowIndex:t,rowPinned:i}}(this.beans):function sv(e){let i,t=0;const{pinnedRowModel:o,rowModel:n,pageBounds:s}=e;return o?.getPinnedTopRowCount()?i="top":n.getRowCount()?(i=null,t=s.getFirstRow()):o?.getPinnedBottomRowCount()&&(i="bottom"),void 0===i?null:{rowIndex:t,rowPinned:i}}(this.beans);if(n){const s=e.column??this.focusedHeader?.column,{rowIndex:r,rowPinned:a}=n,l=Zi(this.beans,n);if(!s||!l||null==r)return!1;if(s.isSuppressNavigable(l)){const d=this.gos.get("enableRtl");let c;return c=o&&"Tab"!==o.key?o.key:d?N_LEFT:N_RIGHT,this.beans.navigation?.navigateToNextCell(null,c,{rowIndex:r,column:s,rowPinned:a||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:r,column:s,rowPinned:a}),t&&this.rowRenderer.getRowByPosition(n)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(n,t)||(this.setFocusedCell({rowIndex:r,column:s,rowPinned:E(a),forceBrowserFocus:!0}),this.beans.rangeSvc?.setRangeToCell({rowIndex:r,rowPinned:a,column:s})),!0}return!!(i&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const i=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:i,headerRowIndex:Bi(this.beans)-1}}):this.focusGridView({column:i})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}},class extends Zp{constructor(){super(...arguments),this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1}initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(uu),this.getSizeEl(hu),this.getSizeEl(gu),this.getSizeEl(dl),this.getSizeEl(pu),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(pu)}getRowBorderWidth(){return this.getCSSVariablePixelValue(dl)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(uu)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(hu)}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(j0)}getCellPaddingLeft(){const e=this.getDefaultCellHorizontalPadding(),t=this.getCSSVariablePixelValue(K0);return e-1+this.getCSSVariablePixelValue(q0)*t}getCellPadding(){const e=this.getDefaultCellHorizontalPadding()-1;return this.getCellPaddingLeft()+e}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(gu)}refreshRowHeightVariable(){const{eRootDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),i=this.gos.get("rowHeight");if(null==i||isNaN(i)||!isFinite(i))return null!==t&&e.style.setProperty("--ag-line-height",null),-1;const o=`${i}px`;return t!=o?(e.style.setProperty("--ag-line-height",o),i):""!=t?Number.parseFloat(t):-1}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(null!=t)return t;const i=this.measureSizeEl(e);return"detached"===i||"no-styles"===i?(e.cacheDefault&&this.lastKnownValues.set(e,e.defaultValue),e.defaultValue):(this.lastKnownValues.set(e,i),i)}measureSizeEl(e){const t=this.getSizeEl(e);if(null==t.offsetParent)return"detached";const i=t.offsetWidth;return 15538===i?"no-styles":(this.sizesMeasured=!0,i)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=xt({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e)),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const i=this.getMeasurementContainer();t=xt({tag:"div"});const{border:o,noWarn:n}=e;o?(t.className="ag-measurement-element-border",t.style.setProperty("--ag-internal-measurement-border",`var(${e.cssName}, solid 15538px)`)):t.style.width=`var(${e.cssName}, 15538px)`,i.appendChild(t),this.sizeEls.set(e,t);let s=this.measureSizeEl(e);"no-styles"===s&&!n&&se(9,{variable:e});const r=ae(this.beans,t,()=>{const a=this.measureSizeEl(e);"detached"===a||"no-styles"===a||(this.lastKnownValues.set(e,a),a!==s&&(s=a,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>r()),t}fireStylesChangedEvent(e){"rowBorderWidthChanged"===e&&this.refreshRowBorderWidthVariable(),this.eventSvc.dispatchEvent({type:"gridStylesChanged",[e]:!0})}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(dl);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")&&tt(t?106:239)}getAdditionalCss(){const e=new Map;return e.set("core",['.ag-aria-description-container{border:0;z-index:9999;clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ag-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-selectable{-webkit-user-select:text;-moz-user-select:text;user-select:text}.ag-tab-guard{display:block;height:0;position:absolute;width:0}:where(.ag-virtual-list-viewport) .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{0%{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport,.ag-virtual-list-viewport{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}.ag-viewport{position:relative}.ag-spanning-container{position:absolute;top:0;z-index:1}.ag-body-viewport,.ag-center-cols-viewport,.ag-floating-bottom-viewport,.ag-floating-top-viewport,.ag-header-viewport,.ag-sticky-bottom-viewport,.ag-sticky-top-viewport{overflow-x:auto;-ms-overflow-style:none!important;scrollbar-width:none!important;&::-webkit-scrollbar{display:none!important}}.ag-body-viewport{display:flex;overflow-x:hidden;&:where(.ag-layout-normal){overflow-y:auto;-webkit-overflow-scrolling:touch}}.ag-floating-bottom-container,.ag-floating-top-container,.ag-sticky-bottom-container,.ag-sticky-top-container{min-height:1px}.ag-center-cols-viewport{min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-body-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-center-cols-container,.ag-floating-bottom-container,.ag-floating-bottom-full-width-container,.ag-floating-top-container,.ag-full-width-container,.ag-header-container,.ag-pinned-left-cols-container,.ag-pinned-right-cols-container,.ag-sticky-bottom-container,.ag-sticky-top-container,.ag-virtual-list-container{position:relative}.ag-floating-bottom-container,.ag-floating-top-container,.ag-header-container,.ag-pinned-left-floating-bottom,.ag-pinned-left-floating-top,.ag-pinned-right-floating-bottom,.ag-pinned-right-floating-top,.ag-sticky-bottom-container,.ag-sticky-top-container{height:100%;white-space:nowrap}.ag-center-cols-container,.ag-pinned-right-cols-container{display:block}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container,.ag-full-width-container,.ag-sticky-bottom-full-width-container,.ag-sticky-top-full-width-container{pointer-events:none;position:absolute;top:0}:where(.ag-ltr) .ag-floating-bottom-full-width-container,:where(.ag-ltr) .ag-floating-top-full-width-container,:where(.ag-ltr) .ag-full-width-container,:where(.ag-ltr) .ag-sticky-bottom-full-width-container,:where(.ag-ltr) .ag-sticky-top-full-width-container{left:0}:where(.ag-rtl) .ag-floating-bottom-full-width-container,:where(.ag-rtl) .ag-floating-top-full-width-container,:where(.ag-rtl) .ag-full-width-container,:where(.ag-rtl) .ag-sticky-bottom-full-width-container,:where(.ag-rtl) .ag-sticky-top-full-width-container{right:0}.ag-full-width-container{width:100%}.ag-floating-bottom-full-width-container,.ag-floating-top-full-width-container{display:inline-block;height:100%;overflow:hidden;width:100%}.ag-virtual-list-container{overflow:hidden}.ag-body{display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0;position:relative}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:flex;min-height:0;min-width:0;position:relative;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-scrolling,.ag-scrollbar-active){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-vertical-scroll{height:100%;&:where(.ag-scrollbar-invisible){top:0;z-index:10}}:where(.ag-ltr) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){right:0}}:where(.ag-rtl) .ag-body-vertical-scroll{&:where(.ag-scrollbar-invisible){left:0}}.ag-force-vertical-scroll{overflow-y:scroll!important}.ag-horizontal-left-spacer,.ag-horizontal-right-spacer{height:100%;min-width:0;overflow-x:scroll;&:where(.ag-scroller-corner){overflow-x:hidden}}:where(.ag-row-animation) .ag-row{transition:transform .4s,top .4s,opacity .2s;&:where(.ag-after-created){transition:transform .4s,top .4s,height .4s,opacity .2s}}:where(.ag-row-animation.ag-prevent-animation) .ag-row{transition:none!important;&:where(.ag-row.ag-after-created){transition:none!important}}:where(.ag-row-no-animation) .ag-row{transition:none}.ag-row-loading{align-items:center;display:flex}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-full-width-row{overflow:hidden;pointer-events:all}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:2}.ag-stub-cell{align-items:center;display:flex}.ag-cell{display:inline-block;height:100%;position:absolute;white-space:nowrap;&:focus-visible{box-shadow:none}}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}.ag-cell-wrap-text{white-space:normal;word-break:break-word}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-floating-top{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-top:not(.ag-invisible)){border-bottom:var(--ag-pinned-row-border)}.ag-floating-bottom{display:flex;overflow:hidden;position:relative;white-space:nowrap;width:100%}:where(.ag-floating-bottom:not(.ag-invisible)){border-top:var(--ag-pinned-row-border)}.ag-sticky-bottom,.ag-sticky-top{background-color:var(--ag-data-background-color);display:flex;height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.ag-opacity-zero{opacity:0!important}.ag-cell-label-container{align-items:center;display:flex;flex-direction:row-reverse;height:100%;justify-content:space-between;width:100%}:where(.ag-right-aligned-header){.ag-cell-label-container{flex-direction:row}.ag-header-cell-text{text-align:end}}.ag-column-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-body,.ag-body-horizontal-scroll,.ag-body-viewport,.ag-floating-bottom,.ag-floating-top,.ag-header,.ag-sticky-bottom,.ag-sticky-top{flex-direction:row-reverse}.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{display:block}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(180deg)}}:where(.ag-rtl){.ag-icon-contracted,.ag-icon-expanded,.ag-icon-tree-closed{transform:rotate(-180deg)}}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block;&:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}}.ag-group{position:relative;width:100%}.ag-group-title-bar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-title{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-group-title-bar) .ag-group-title{cursor:default}.ag-group-toolbar{align-items:center;display:flex;padding:var(--ag-spacing)}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-disabled-group-container,.ag-disabled-group-title-bar{opacity:.5}.ag-group-container-horizontal{flex-flow:row wrap}.ag-group-container-vertical{flex-direction:column}.ag-group-title-bar-icon{cursor:pointer;flex:none}:where(.ag-ltr) .ag-group-title-bar-icon{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-group-title-bar-icon{margin-left:var(--ag-spacing)}:where(.ag-group-item-alignment-stretch) .ag-group-item{align-items:stretch}:where(.ag-group-item-alignment-start) .ag-group-item{align-items:flex-start}:where(.ag-group-item-alignment-end) .ag-group-item{align-items:flex-end}:where(.ag-ltr) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}:where(.ag-rtl) .ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-right:var(--ag-row-group-indent-size)}:where(.ag-ltr) .ag-row-group-leaf-indent{margin-left:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}:where(.ag-rtl) .ag-row-group-leaf-indent{margin-right:calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size))}.ag-value-change-delta{padding:0 2px}.ag-value-change-delta-up{color:var(--ag-value-change-delta-up-color)}.ag-value-change-delta-down{color:var(--ag-value-change-delta-down-color)}.ag-value-change-value{background-color:transparent;border-radius:1px;padding-left:1px;padding-right:1px;transition:background-color 1s}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s}.ag-cell-data-changed{background-color:var(--ag-value-change-value-highlight-background-color)!important}.ag-cell-data-changed-animation{background-color:transparent}.ag-cell-highlight{background-color:var(--ag-range-selection-highlight-color)!important}.ag-row,.ag-spanned-row{color:var(--ag-cell-text-color);font-family:var(--ag-cell-font-family);font-size:var(--ag-data-font-size);white-space:nowrap;--ag-internal-content-line-height:calc(min(var(--ag-row-height), var(--ag-line-height, 1000px)) - var(--ag-internal-row-border-width, 1px) - 2px)}.ag-row{background-color:var(--ag-data-background-color);border-bottom:var(--ag-row-border);height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}:where(.ag-body-vertical-content-no-gap>div>div>div,.ag-body-vertical-content-no-gap>div>div>div>div)>.ag-row-last{border-bottom-color:transparent}.ag-sticky-bottom{border-top:var(--ag-row-border);box-sizing:content-box!important}.ag-group-contracted,.ag-group-expanded{cursor:pointer}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{border:1px solid transparent;line-height:var(--ag-internal-content-line-height);-webkit-font-smoothing:subpixel-antialiased}:where(.ag-ltr) .ag-cell{border-right:var(--ag-column-border)}:where(.ag-rtl) .ag-cell{border-left:var(--ag-column-border)}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-right-color:transparent}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap) .ag-column-last{border-left-color:transparent}.ag-cell-wrapper{align-items:center;display:flex;>:where(:not(.ag-cell-value,.ag-group-value)){align-items:center;display:flex;height:var(--ag-internal-content-line-height)}&:where(.ag-row-group){align-items:flex-start}:where(.ag-full-width-row) &:where(.ag-row-group){align-items:center;height:100%}}:where(.ag-ltr) .ag-cell-wrapper{padding-left:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-rtl) .ag-cell-wrapper{padding-right:calc(var(--ag-indentation-level)*var(--ag-row-group-indent-size))}:where(.ag-cell-wrap-text:not(.ag-cell-auto-height)) .ag-cell-wrapper{align-items:normal;height:100%;:where(.ag-cell-value){height:100%}}:where(.ag-ltr) .ag-row>.ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}:where(.ag-rtl) .ag-row>.ag-cell-wrapper.ag-row-group{padding-right:calc(var(--ag-cell-horizontal-padding) + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-cell-range-single-cell,.ag-cell-range-single-cell.ag-cell-range-handle,.ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group,.ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-full-width-row.ag-row-focus:focus{box-shadow:none}:where(.ag-ltr) .ag-group-contracted,:where(.ag-ltr) .ag-group-expanded,:where(.ag-ltr) .ag-row-drag,:where(.ag-ltr) .ag-selection-checkbox{margin-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-group-contracted,:where(.ag-rtl) .ag-group-expanded,:where(.ag-rtl) .ag-row-drag,:where(.ag-rtl) .ag-selection-checkbox{margin-left:var(--ag-cell-widget-spacing)}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-row-highlight-above:after,.ag-row-highlight-below:after,.ag-row-highlight-inside:after{background-color:var(--ag-range-selection-border-color);content:"";height:1px;pointer-events:none;position:absolute;width:calc(100% - 1px)}:where(.ag-ltr) .ag-row-highlight-above:after,:where(.ag-ltr) .ag-row-highlight-below:after,:where(.ag-ltr) .ag-row-highlight-inside:after{left:1px}:where(.ag-rtl) .ag-row-highlight-above:after,:where(.ag-rtl) .ag-row-highlight-below:after,:where(.ag-rtl) .ag-row-highlight-inside:after{right:1px}.ag-row-highlight-above:after{top:0}.ag-row-highlight-below:after{bottom:0}.ag-row-highlight-indent:after{display:block;width:auto}:where(.ag-ltr) .ag-row-highlight-indent:after{left:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size));right:1px}:where(.ag-rtl) .ag-row-highlight-indent:after{left:1px;right:calc((var(--ag-cell-widget-spacing) + var(--ag-icon-size))*2 + var(--ag-cell-horizontal-padding) + var(--ag-row-highlight-level)*var(--ag-row-group-indent-size))}.ag-row-highlight-inside:after{background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);display:block;height:auto;inset:0;width:auto}.ag-body,.ag-floating-bottom,.ag-floating-top{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected:before{background-color:var(--ag-selected-row-background-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-hover:not(.ag-full-width-row):before{background-color:var(--ag-row-hover-color);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row-hover.ag-row-selected:before{background-color:var(--ag-row-hover-color);background-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}.ag-row.ag-full-width-row.ag-row-group>*{position:relative}.ag-column-hover{background-color:var(--ag-column-hover-color)}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-right-aligned-cell{font-variant-numeric:tabular-nums}:where(.ag-ltr) .ag-right-aligned-cell{text-align:right}:where(.ag-rtl) .ag-right-aligned-cell{text-align:left}.ag-right-aligned-cell .ag-cell-value,.ag-right-aligned-cell .ag-group-value{margin-left:auto}:where(.ag-ltr) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-ltr) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level));padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}:where(.ag-rtl) .ag-cell:not(.ag-cell-inline-editing),:where(.ag-rtl) .ag-full-width-row .ag-cell-wrapper.ag-row-group{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px + var(--ag-row-group-indent-size)*var(--ag-indentation-level))}.ag-row>.ag-cell-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) - 1px);padding-right:calc(var(--ag-cell-horizontal-padding) - 1px)}.ag-row-dragging{cursor:move;opacity:.5}.ag-details-row{background-color:var(--ag-data-background-color);padding:calc(var(--ag-spacing)*3.75)}.ag-layout-auto-height,.ag-layout-print{.ag-center-cols-container,.ag-center-cols-viewport{min-height:150px}}.ag-overlay-loading-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite;background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%}:where(.ag-ltr) .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}:where(.ag-rtl) .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}@keyframes ag-skeleton-loading{0%{background-color:var(--ag-row-loading-skeleton-effect-color)}50%{background-color:color-mix(in srgb,transparent,var(--ag-row-loading-skeleton-effect-color) 40%)}to{background-color:var(--ag-row-loading-skeleton-effect-color)}}.ag-loading{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-ltr) .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}:where(.ag-rtl) .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-duration:1s;animation-iteration-count:infinite;animation-name:spin;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ag-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-header-row-border);color:var(--ag-header-text-color);display:flex;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight);overflow:hidden;white-space:nowrap;width:100%}.ag-header-row{height:var(--ag-header-height);position:absolute}.ag-floating-filter-button-button,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,:where(.ag-header-cell-sortable) .ag-header-cell-label{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}.ag-header-row:where(:not(:first-child)){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-group-cell.ag-header-group-cell-with-group){border-top:var(--ag-header-row-border)}}.ag-header-row:where(:not(.ag-header-row-column-group)){overflow:hidden}:where(.ag-header.ag-header-allow-overflow) .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;overflow:hidden}.ag-header-group-cell{contain:paint;display:flex}.ag-header-cell,.ag-header-group-cell{align-items:center;gap:var(--ag-cell-widget-spacing);height:100%;padding:0 var(--ag-cell-horizontal-padding);position:absolute}@property --ag-internal-moving-color{syntax:"<color>";inherits:false;initial-value:transparent}@property --ag-internal-hover-color{syntax:"<color>";inherits:false;initial-value:transparent}.ag-header-cell:where(:not(.ag-floating-filter)),.ag-header-group-cell{&:before{background-image:linear-gradient(var(--ag-internal-hover-color),var(--ag-internal-hover-color)),linear-gradient(var(--ag-internal-moving-color),var(--ag-internal-moving-color));content:"";inset:0;position:absolute;--ag-internal-moving-color:transparent;--ag-internal-hover-color:transparent;transition:--ag-internal-moving-color var(--ag-header-cell-background-transition-duration),--ag-internal-hover-color var(--ag-header-cell-background-transition-duration)}&:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}&:where(.ag-header-cell-moving):before{--ag-internal-moving-color:var(--ag-header-cell-moving-background-color);--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}}:where(.ag-header-cell:not(.ag-floating-filter) *,.ag-header-group-cell *){position:relative;z-index:1}.ag-header-cell-menu-button:where(:not(.ag-header-menu-always-show)){opacity:0;transition:opacity .2s}.ag-header-cell-filter-button,:where(.ag-header-cell.ag-header-active) .ag-header-cell-menu-button{opacity:1}.ag-header-cell-label,.ag-header-group-cell-label{align-items:center;align-self:stretch;display:flex;flex:1 1 auto;overflow:hidden;padding:5px 0}:where(.ag-ltr) .ag-sort-indicator-icon{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-sort-indicator-icon{padding-right:var(--ag-spacing)}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{flex:none;max-width:100%;overflow:visible;position:sticky}:where(.ag-ltr) .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell-text,.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{word-break:break-word}.ag-header-cell-comp-wrapper{width:100%}:where(.ag-header-group-cell) .ag-header-cell-comp-wrapper{display:flex}:where(.ag-header-cell:not(.ag-header-cell-auto-height)) .ag-header-cell-comp-wrapper{align-items:center;display:flex;height:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>*{overflow:hidden}:where(.ag-right-aligned-header) .ag-header-cell-label{flex-direction:row-reverse}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-header-cell:after,.ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-right:var(--ag-header-column-border);right:0}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:where(:not(.ag-header-span-height.ag-header-group-cell-no-group)):after{border-left:var(--ag-header-column-border);left:0}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-accent-color);content:"";height:100%;position:absolute;width:1px}:where(.ag-ltr) .ag-header-highlight-before:after{left:0}:where(.ag-rtl) .ag-header-highlight-before:after{right:0}:where(.ag-ltr) .ag-header-highlight-after:after{right:0;:where(.ag-pinned-left-header) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-pinned-left-header) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:ew-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2;&:after{background-color:var(--ag-header-column-resize-handle-color);content:"";height:var(--ag-header-column-resize-handle-height);position:absolute;top:calc(50% - var(--ag-header-column-resize-handle-height)*.5);width:var(--ag-header-column-resize-handle-width);z-index:1}}:where(.ag-ltr) .ag-header-cell-resize{right:-3px;&:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-rtl) .ag-header-cell-resize{left:-3px;&:after{right:calc(50% - var(--ag-header-column-resize-handle-width))}}:where(.ag-header-cell.ag-header-span-height) .ag-header-cell-resize:after{height:calc(100% - var(--ag-spacing)*4);top:calc(var(--ag-spacing)*2)}.ag-header-group-cell-no-group:where(.ag-header-span-height){display:none}.ag-sort-indicator-container{display:flex;gap:var(--ag-spacing)}.ag-layout-print{&.ag-body{display:block;height:unset}&.ag-root-wrapper{display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}&.ag-force-vertical-scroll{overflow-y:visible!important}}@media print{.ag-root-wrapper.ag-layout-print{display:table;.ag-body-horizontal-scroll-viewport,.ag-body-viewport,.ag-center-cols-container,.ag-center-cols-viewport,.ag-root,.ag-root-wrapper-body,.ag-virtual-list-viewport{display:block!important;height:auto!important;overflow:hidden!important}.ag-cell,.ag-row{-moz-column-break-inside:avoid;break-inside:avoid}}}ag-grid,ag-grid-angular{display:block}.ag-root-wrapper{border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);display:flex;flex-direction:column;overflow:hidden;position:relative;&.ag-layout-normal{height:100%}}.ag-root-wrapper-body{display:flex;flex-direction:row;&.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}}.ag-root{display:flex;flex-direction:column;position:relative;&.ag-layout-auto-height,&.ag-layout-normal{flex:1 1 auto;overflow:hidden;width:0}&.ag-layout-normal{height:100%}}.ag-virtual-list-item{height:var(--ag-list-item-height);position:absolute;width:100%}.ag-list-item-hovered:after{background-color:var(--ag-accent-color);content:"";height:1px;left:0;position:absolute;right:0}.ag-item-highlight-top:after{top:0}.ag-item-highlight-bottom:after{bottom:0}.ag-drag-handle{color:var(--ag-drag-handle-color);cursor:grab;:where(.ag-icon){color:var(--ag-drag-handle-color)}}.ag-chart-menu-icon,.ag-chart-settings-next,.ag-chart-settings-prev,.ag-column-group-icons,.ag-column-select-header-icon,.ag-filter-toolpanel-expand,.ag-floating-filter-button-button,.ag-group-title-bar-icon,.ag-header-cell-filter-button,.ag-header-cell-menu-button,.ag-header-expand-icon,.ag-panel-title-bar-button,.ag-panel-title-bar-button-icon,.ag-set-filter-group-icons,:where(.ag-group-contracted) .ag-icon,:where(.ag-group-expanded) .ag-icon{background-color:var(--ag-icon-button-background-color);border-radius:var(--ag-icon-button-border-radius);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-background-color);color:var(--ag-icon-button-color);&:hover{background-color:var(--ag-icon-button-hover-background-color);box-shadow:0 0 0 var(--ag-icon-button-background-spread) var(--ag-icon-button-hover-background-color);color:var(--ag-icon-button-hover-color)}}.ag-filter-active{background-image:linear-gradient(var(--ag-icon-button-active-background-color),var(--ag-icon-button-active-background-color));border-radius:1px;outline:solid var(--ag-icon-button-background-spread) var(--ag-icon-button-active-background-color);position:relative;&:after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px}:where(.ag-icon-filter){clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z");color:var(--ag-icon-button-active-color)}}:where(.ag-ltr) .ag-filter-active{&:after{right:-1px}}:where(.ag-rtl) .ag-filter-active{&:after{left:-1px}}.ag-menu{background-color:var(--ag-menu-background-color);border:var(--ag-menu-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-menu-shadow);color:var(--ag-menu-text-color);max-height:100%;overflow-y:auto;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}']),function X0(e,t){for(const i of t.sort((o,n)=>o.moduleName.localeCompare(n.moduleName))){const o=i.css;o&&e.set(`module-${i.moduleName}`,o)}}(e,Array.from(function Ul(){return new Set(xn)}())),e}getDefaultTheme(){return z0}themeError(e){tt(240,{theme:e})}},class extends Y{constructor(){super(...arguments),this.beanName="scrollVisibleSvc"}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}postConstruct(){this.horizontalScrollShowing=!0===this.gos.get("alwaysShowHorizontalScroll"),this.verticalScrollShowing=!0===this.gos.get("alwaysShowVerticalScroll"),this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.updateScrollVisible.bind(this),displayedColumnsWidthChanged:this.updateScrollVisible.bind(this)})}updateScrollVisible(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsSvc.get("center");if(!e||this.colAnimation?.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.verticalScrollShowing};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsSvc.get("center"),t=e.hasHorizontalScrollGap(),i=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==i)&&(this.horizontalScrollGap=t,this.verticalScrollGap=i,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){if(null==this.scrollbarWidth){const e=this.gos.get("scrollbarWidth"),i="number"==typeof e&&e>=0?e:function Qg(){return null==ia&&xd(),ia}();null!=i&&(this.scrollbarWidth=i,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}return this.scrollbarWidth}},class extends Y{constructor(){super(...arguments),this.beanName="ctrlsSvc",this.params={},this.ready=!1,this.readyCallbacks=[]}postConstruct(){this.addEventListener("ready",()=>{if(this.updateReady(),this.ready){for(const e of this.readyCallbacks)e(this.params);this.readyCallbacks.length=0}},this.beans.frameworkOverrides.runWhenReadyAsync?.()??!1)}updateReady(){const e=Object.values(this.params);this.ready=23===e.length&&e.every(t=>t?.isAlive()??!1)}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const i=this.readyCallbacks.indexOf(t);i>=0&&this.readyCallbacks.splice(i,1)})}register(e,t){this.params[e]=t,this.updateReady(),this.ready&&this.dispatchLocalEvent({type:"ready"}),t.addDestroyFunc(()=>{this.updateReady()})}get(e){return this.params[e]}getGridBodyCtrl(){return this.params.gridBodyCtrl}getHeaderRowContainerCtrls(){const{leftHeader:e,centerHeader:t,rightHeader:i}=this.params;return[e,i,t]}getHeaderRowContainerCtrl(e){const t=this.params;switch(e){case"left":return t.leftHeader;case"right":return t.rightHeader;default:return t.centerHeader}}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},class extends Y{constructor(){super(...arguments),this.beanName="syncSvc",this.waitingForColumns=!1}postConstruct(){this.addManagedPropertyListener("columnDefs",e=>this.setColumnDefs(e))}start(){this.beans.ctrlsSvc.whenReady(this,()=>{const e=this.gos.get("columnDefs");e?this.setColumnsAndData(e):this.waitingForColumns=!0,this.gridReady()})}setColumnsAndData(e){const{colModel:t,rowModel:i}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),i.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),Ti(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns)return this.waitingForColumns=!1,void this.setColumnsAndData(t);this.beans.colModel.setColumnDefs(t,Jo(e.source))}}},class extends Y{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,i=!1){if(!e)return null;const o=this.getHeaderName(e.getColDef(),e,null,null,t),{aggColNameSvc:n}=this.beans;return i&&n?n.getHeaderName(e,o):o}getDisplayNameForProvidedColumnGroup(e,t,i){const o=t?.getColGroupDef();return o?this.getHeaderName(o,null,e,t,i):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)}getHeaderName(e,t,i,o,n){const s=e.headerValueGetter;if(s){const r=Ie(this.gos,{colDef:e,column:t,columnGroup:i,providedColumnGroup:o,location:n});return"function"==typeof s?s(r):"string"==typeof s?this.beans.expressionSvc?.evaluate(s,r)??null:""}return null!=e.headerName?e.headerName:e.field?function $w(e){return e&&null!=e?e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map(n=>n.substring(0,1).toUpperCase()+(n.length>1?n.substring(1,n.length):"")).join(" "):null}(e.field):""}},class extends Y{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.colsWithinViewportHash="",this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[]}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}setScrollPosition(e,t,i=!1){const{visibleCols:o}=this;if(e!==this.scrollWidth||t!==this.scrollPosition||o.isBodyWidthDirty){if(this.scrollWidth=e,this.scrollPosition=t,o.isBodyWidthDirty=!0,this.gos.get("enableRtl")){const r=o.bodyWidth;this.viewportLeft=r-t-e,this.viewportRight=r-t}else this.viewportLeft=t,this.viewportRight=e+t;this.colModel.ready&&this.checkViewportColumns(i)}}getColumnHeadersToRender(e){switch(e){case"left":return this.columnsToRenderLeft;case"right":return this.columnsToRenderRight;default:return this.columnsToRenderCenter}}getHeadersToRender(e,t){let i;switch(e){case"left":i=this.rowsOfHeadersToRenderLeft[t];break;case"right":i=this.rowsOfHeadersToRenderRight[t];break;default:i=this.rowsOfHeadersToRenderCenter[t]}return i??[]}extractViewportColumns(){const e=this.visibleCols.centerCols;this.isColumnVirtualisationSuppressed()?(this.colsWithinViewport=e,this.headerColsWithinViewport=e):(this.colsWithinViewport=e.filter(this.isColumnInRowViewport.bind(this)),this.headerColsWithinViewport=e.filter(this.isColumnInHeaderViewport.bind(this)))}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||0===this.viewportRight}clear(){this.rowsOfHeadersToRenderLeft={},this.rowsOfHeadersToRenderRight={},this.rowsOfHeadersToRenderCenter={},this.colsWithinViewportHash=""}isColumnInHeaderViewport(e){return!(!e.isAutoHeaderHeight()&&!function qw(e){for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.getParent()}return!1}(e))||this.isColumnInRowViewport(e)}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0,i=t+e.getActualWidth(),o=this.viewportLeft-200,n=this.viewportRight+200;return!(t<o&&i<o||t>n&&i>n)}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e).concat(t)}getColsWithinViewport(e){if(!this.colModel.colSpanActive)return this.colsWithinViewport;const i=this.isColumnVirtualisationSuppressed()?void 0:this.isColumnInRowViewport.bind(this),{visibleCols:o}=this;return o.getColsForRow(e,o.centerCols,i,s=>{const r=s.getLeft();return p(r)&&r>this.viewportLeft})}checkViewportColumns(e=!1){this.extractViewport()&&this.eventSvc.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}calculateHeaderRows(){const{leftCols:e,rightCols:t}=this.visibleCols;this.columnsToRenderLeft=e,this.columnsToRenderRight=t,this.columnsToRenderCenter=this.colsWithinViewport;const i=o=>{const n=new Set,s={};for(const r of o){let a=r.getParent();const l=r.isSpanHeaderHeight();for(;a&&!n.has(a);){if(l&&a.isPadding()){a=a.getParent();continue}const c=a.getProvidedColumnGroup().getLevel();s[c]??(s[c]=[]),s[c].push(a),n.add(a),a=a.getParent()}}return s};this.rowsOfHeadersToRenderLeft=i(e),this.rowsOfHeadersToRenderRight=i(t),this.rowsOfHeadersToRenderCenter=i(this.headerColsWithinViewport)}extractViewport(){this.extractViewportColumns();const t=this.getViewportColumns().map(o=>`${o.getId()}-${o.getPinned()||"normal"}`).join("#"),i=this.colsWithinViewportHash!==t;return i&&(this.colsWithinViewportHash=t,this.calculateHeaderRows()),i}},class extends Y{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return pi(e,this.beans,t?.column)}}],icons:{selectOpen:"small-down",smallDown:"small-down",colorPicker:"color-picker",smallUp:"small-up",checkboxChecked:"small-up",checkboxIndeterminate:"checkbox-indeterminate",checkboxUnchecked:"checkbox-unchecked",radioButtonOn:"radio-button-on",radioButtonOff:"radio-button-off",smallLeft:"small-left",smallRight:"small-right"},apiFunctions:{getGridId:function Gc(e){return e.context.getId()},destroy:function GC(e){e.gridDestroySvc.destroy()},isDestroyed:function NC(e){return e.gridDestroySvc.destroyCalled},getGridOption:function zC(e,t){return e.gos.get(t)},setGridOption:function WC(e,t,i){Nc(e,{[t]:i})},updateGridOptions:Nc,isModuleRegistered:function UC(e,t){const i=t.replace(/Module$/,"");return e.gos.isModuleRegistered(i)}},dependsOn:[Ww,Nv,qv,Ou,Ab,uw,Ib,By,Jy,Lb,vy,Ey,Py,Hb,Yw,Uw,Zy,fw,My]},Lu={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CellSelection:1,Clipboard:1,ColumnMenu:1,ColumnsToolPanel:1,ContextMenu:1,ExcelExport:1,FiltersToolPanel:1,Find:1,GridCharts:1,IntegratedCharts:1,GroupFilter:1,MasterDetail:1,Menu:1,MultiFilter:1,NewFiltersToolPanel:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,SideBar:1,Sparklines:1,StatusBar:1,TreeData:1,ViewportRowModel:1},yl=["TextFilter","NumberFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],oS={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],ClientSideRowModelHierarchy:["RowGrouping","Pivot","TreeData"],ColumnFilter:yl,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...yl,"QuickFilter","ExternalFilter","AdvancedFilter"],GroupCellRenderer:["RowGrouping","Pivot","TreeData","MasterDetail","ServerSideRowModel"],KeyboardNavigation:["AllCommunity"],LoadingCellRenderer:["ServerSideRowModel"],MenuCore:["ColumnMenu","ContextMenu"],MenuItem:["ColumnMenu","ContextMenu","MultiFilter","IntegratedCharts","ColumnsToolPanel"],Overlay:["AllCommunity"],PinnedColumn:["AllCommunity"],SharedAggregation:["RowGrouping","Pivot","TreeData","ServerSideRowModel"],SharedDragAndDrop:["AllCommunity"],SharedMasterDetail:["MasterDetail","ServerSideRowModel"],SharedMenu:[...yl,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},nS={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function ns(e,t=!1){return!t||"IntegratedCharts"!==e&&"Sparklines"!==e?`${e}Module`:`${e}Module.with(AgChartsEnterpriseModule)`}function Vu({moduleName:e,rowModelType:t}){return`To use the ${e}Module you must set the gridOption "rowModelType='${t}'"`}var Hu=({reasonOrId:e,moduleName:t,gridScoped:i,gridId:o,rowModelType:n,additionalText:s,isUmd:r})=>{const a=function sS(e,t){const i=[];for(const o of Array.isArray(e)?e:[e]){const n=oS[o];if(n)for(const s of n){const r=nS[s];(!r||r===t)&&i.push(s)}else i.push(o)}return i}(t,n),l="string"==typeof e?e:uS[e];if(r)return function aS(e,t){const i=t.filter(s=>"IntegratedCharts"===s||"Sparklines"===s);let o="";return!globalThis?.agCharts&&i.length>0?o=`Unable to use ${e} as either the ag-charts-community or ag-charts-enterprise script needs to be included alongside ag-grid-enterprise.\n`:t.some(s=>Lu[s])&&(o+=`Unable to use ${e} as that requires the ag-grid-enterprise script to be included.\n`),o}(l,a);const d=a.filter(g=>"IntegratedCharts"===g||"Sparklines"===g),c=d.length>0?`${d.map(g=>ns(g)).join()} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.`:"";return`Unable to use ${l} as ${a.length>1?"one of "+a.map(g=>ns(g)).join(", "):ns(a[0])} is not registered${i?" for gridId: "+o:""}. ${c} Check if you have registered the module:\n\n${(e=>{const t=e.map(o=>`import { ${ns(o)} } from '${Lu[o]?"ag-grid-enterprise":"ag-grid-community"}';`);return e.some(o=>"IntegratedCharts"===o||"Sparklines"===o)&&t.push("import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';"),`import { ModuleRegistry } from 'ag-grid-community'; \n${t.join(" \n")} \n\nModuleRegistry.registerModules([ ${e.map(o=>ns(o,!0)).join(", ")} ]); \n\nFor more info see: ${zi}/modules/`})(a)}`+(s?` \n\n${s}`:"")},Gu=e=>`${e} must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.\n\nimport { AgChartsEnterpriseModule } from 'ag-charts-enterprise';\nimport { ModuleRegistry } from 'ag-grid-community';\nimport { ${e} } from 'ag-grid-enterprise';\n \nModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);\n `,dS={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id '${e}' detected from getRowId callback, this could cause issues in your grid.`,3:()=>"Calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.",4:({id:e})=>`Could not find row id=${e}, data item was not found for this id`,5:({data:e})=>["Could not find data item as object was not found.",e," Consider using getRowId to help the Grid find matching row data"],6:()=>"'groupHideOpenParents' only works when specifying specific columns for 'colDef.showRowGroup'",7:()=>"Pivoting is not supported with aligned grids as it may produce different columns in each grid.",8:({key:e})=>`Unknown key for navigation ${e}`,9:({variable:e})=>`No value for ${e?.cssName}. This usually means that the grid has been initialised before styles have been loaded. The default value of ${e?.defaultValue} will be used and updated when styles load.`,10:({eventType:e})=>`As of v33, the '${e}' event is deprecated. Use the global 'modelUpdated' event to determine when row children have changed.`,11:()=>"No gridOptions provided to createGrid",12:({colKey:e})=>["column ",e," not found"],13:()=>"Could not find rowIndex, this means tasks are being executed on a rowNode that has been removed from the grid.",14:({groupPrefix:e})=>`Row IDs cannot start with ${e}, this is a reserved prefix for AG Grid's row grouping feature.`,15:({expression:e})=>["value should be either a string or a function",e],16:({expression:e,params:t,e:i})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",i],17:()=>"you need either field or valueSetter set on colDef for editing to work",18:()=>"alignedGrids contains an undefined option.",19:()=>"alignedGrids - No api found on the linked grid.",20:()=>'You may want to configure via a callback to avoid setup race conditions:\n "alignedGrids: () => [linkedGrid]"',21:()=>"pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.",22:({key:e})=>`${e} is an initial property and cannot be updated.`,23:()=>"The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.",24:()=>"row height must be a number if not using standard row model",25:({id:e})=>["The getRowId callback must return a string. The ID ",e," is being cast to a string."],26:({fnName:e,preDestroyLink:t})=>`Grid API function ${e}() cannot be called as the grid has been destroyed.\n Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.\n To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${t}`,27:({fnName:e,module:t})=>`API function '${e}' not registered to module '${t}'`,28:()=>"setRowCount cannot be used while using row grouping.",29:()=>"tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?",30:({toIndex:e})=>["tried to insert columns in invalid location, toIndex = ",e,"remember that you should not count the moving columns when calculating the new index"],31:()=>"infinite loop in resizeColumnSets",32:()=>"applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.",33:()=>"stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON.",34:({key:e})=>`the column type '${e}' is a default column type and cannot be overridden.`,35:()=>"Column type definitions 'columnTypes' with a 'type' attribute are not supported because a column type cannot refer to another column type. Only column definitions 'columnDefs' can use the 'type' attribute to refer to a column type.",36:({t:e})=>"colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes",37:()=>"Changing the column pinning status is not allowed with domLayout='print'",38:({iconName:e})=>`provided icon '${e}' needs to be a string or a function`,39:()=>"Applying column order broke a group where columns should be married together. Applying new order has been discarded.",40:({e,method:t})=>`${e}\n${(e=>`AG Grid: Unable to use the Clipboard API (navigator.clipboard.${e}()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.`)(t)}`,41:()=>"Browser did not allow document.execCommand('copy'). Ensure 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons.",42:()=>"Browser does not support document.execCommand('copy') for clipboard operations",43:({iconName:e})=>`As of v33, icon '${e}' is deprecated. Use the icon CSS name instead.`,44:()=>'Data type definition hierarchies (via the "extendsDataType" property) cannot contain circular references.',45:({parentCellDataType:e})=>`The data type definition ${e} does not exist.`,46:()=>'The "baseDataType" property of a data type definition must match that of its parent.',47:({cellDataType:e})=>`Missing data type definition - "${e}"`,48:({property:e})=>`Cell data type is "object" but no Value ${e} has been provided. Please either provide an object data type definition with a Value ${e}, or set "colDef.value${e}"`,49:({methodName:e})=>`Framework component is missing the method ${e}()`,50:({compName:e})=>`Could not find component ${e}, did you forget to configure this component?`,51:()=>"Export cancelled. Export is not allowed as per your configuration.",52:()=>"There is no `window` associated with the current `document`",53:()=>"unknown value type during csv conversion",54:()=>"Could not find document body, it is needed for drag and drop and context menu.",55:()=>"addRowDropZone - A container target needs to be provided",56:()=>"addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.",57:()=>"unable to show popup filter, filter instantiation failed",58:()=>"no values found for select cellEditor",59:()=>"cannot select pinned rows",60:()=>"cannot select node until it has finished loading",61:()=>"since version v32.2.0, rowNode.isFullWidthCell() has been deprecated. Instead check `rowNode.detail` followed by the user provided `isFullWidthRow` grid option.",62:({colId:e})=>`setFilterModel() - no column found for colId: ${e}`,63:({colId:e})=>`setFilterModel() - unable to fully apply model, filtering disabled for colId: ${e}`,64:({colId:e})=>`setFilterModel() - unable to fully apply model, unable to create filter for colId: ${e}`,65:()=>"filter missing setModel method, which is needed for setFilterModel",66:()=>"filter API missing getModel method, which is needed for getFilterModel",67:()=>"Filter is missing isFilterActive() method",68:()=>"Column Filter API methods have been disabled as Advanced Filters are enabled.",69:({guiFromFilter:e})=>`getGui method from filter returned ${e}; it should be a DOM element.`,70:({newFilter:e})=>"Grid option quickFilterText only supports string inputs, received: "+typeof e,71:()=>"debounceMs is ignored when apply button is present",72:({keys:e})=>["ignoring FilterOptionDef as it doesn't contain one of ",e],73:()=>"invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'",74:()=>"no filter options for filter",75:()=>"Unknown button type specified",76:({filterModelType:e})=>['Unexpected type of filter "',e,'", it looks like the filter was configured with incorrect Filter Options'],77:()=>"Filter model is missing 'conditions'",78:()=>'Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.',79:()=>'"filterParams.maxNumConditions" must be greater than or equal to zero.',80:()=>'"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.',81:()=>'"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".',82:({param:e})=>`DateFilter ${e} is not a number`,83:()=>"DateFilter minValidYear should be <= maxValidYear",84:()=>"DateFilter minValidDate should be <= maxValidDate",85:()=>"DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.",86:()=>"DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.",87:()=>"DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.",88:({index:e})=>`Invalid row index for ensureIndexVisible: ${e}`,89:()=>"A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)",90:()=>"datasource is missing getRows method",91:()=>"Filter is missing method doesFilterPass",92:()=>"AnimationFrameService called but animation frames are off",93:()=>"cannot add multiple ranges when `cellSelection.suppressMultiRanges = true`",94:({paginationPageSizeOption:e,pageSizeSet:t,pageSizesSet:i,pageSizeOptions:o})=>`'paginationPageSize=${e}'${t?"":" (default value)"}, but ${e} is not included in${i?"":" the default"} paginationPageSizeSelector=[${o?.join(", ")}].`,95:({paginationPageSizeOption:e,paginationPageSizeSelector:t})=>`Either set '${t}' to an array that includes ${e} or to 'false' to disable the page size selector.`,96:({id:e,data:t})=>["Duplicate ID",e,"found for pinned row with data",t,"When `getRowId` is defined, it must return unique IDs for all pinned rows. Use the `rowPinned` parameter."],97:({colId:e})=>`cellEditor for column ${e} is missing getGui() method`,98:()=>"popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.",99:()=>"Since v32, `api.hideOverlay()` does not hide the loading overlay when `loading=true`. Set `loading=false` instead.",101:({propertyName:e,componentName:t,agGridDefaults:i,jsComps:o})=>{const n=[],r=da({inputValue:t,allSuggestions:[...Object.keys(i??[]).filter(a=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(a)),...Object.keys(o??[]).filter(a=>!!o[a])],hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return n.push(`Could not find '${t}' component. It was configured as "${e}: '${t}'" but it wasn't found in the list of registered components.\n`),r.length>0&&n.push(` Did you mean: [${r.slice(0,3)}]?\n`),n.push("If using a custom component check it has been registered correctly."),n},102:()=>"selectAll: 'filtered' only works when gridOptions.rowModelType='clientSide'",103:()=>"Invalid selection state. When using client-side row model, the state must conform to `string[]`.",104:({value:e,param:t})=>`Numeric value ${e} passed to ${t} param will be interpreted as ${e} seconds. If this is intentional use "${e}s" to silence this warning.`,105:({e})=>["chart rendering failed",e],106:()=>`Theming API and Legacy Themes are both used in the same page. A Theming API theme has been provided to the 'theme' grid option, but the file (ag-grid.css) is also included and will cause styling issues. Remove ag-grid.css from the page. See the migration guide: ${zi}/theming-migration/`,107:({key:e,value:t})=>`Invalid value for theme param ${e} - ${t}`,108:({e})=>["chart update failed",e],109:({inputValue:e,allSuggestions:t})=>{const i=da({inputValue:e,allSuggestions:t,hideIrrelevant:!0,filterByPercentageOfBestMatch:.8}).values;return[`Could not find '${e}' aggregate function. It was configured as "aggFunc: '${e}'" but it wasn't found in the list of registered aggregations.`,i.length>0?` Did you mean: [${i.slice(0,3)}]?`:"","If using a custom aggregation function check it has been registered correctly."].join("\n")},110:()=>"groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup",111:()=>"Invalid selection state. When `groupSelects` is enabled, the state must conform to `IServerSideGroupSelectionState`.",113:()=>"Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values",114:({component:e})=>`Could not find component with name of ${e}. Is it in Vue.components?`,116:()=>"Invalid selection state. The state must conform to `IServerSideSelectionState`.",117:()=>"selectAll must be of boolean type.",118:()=>"Infinite scrolling must be enabled in order to set the row count.",119:()=>"Unable to instantiate filter",120:()=>"MultiFloatingFilterComp expects MultiFilter as its parent",121:()=>"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 (see AG Grid docs) or b) to toString() on the object to return a key",122:()=>"could not find the document, document is empty",123:()=>"Advanced Filter is only supported with the Client-Side Row Model or Server-Side Row Model.",124:()=>"No active charts to update.",125:({chartId:e})=>`Unable to update chart. No active chart found with ID: ${e}.`,126:()=>"unable to restore chart as no chart model is provided",127:({allRange:e})=>`unable to create chart as ${e?"there are no columns in the grid":"no range is selected"}.`,128:({feature:e})=>`${e} is only available if using 'multiRow' selection mode.`,129:({feature:e,rowModel:t})=>`${e} is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ${t}.`,130:()=>'cannot multi select unless selection mode is "multiRow"',132:()=>"Row selection features are not available unless `rowSelection` is enabled.",133:({iconName:e})=>`icon '${e}' function should return back a string or a dom object`,134:({iconName:e})=>`Did not find icon '${e}'`,135:()=>"Data type of the new value does not match the cell data type of the column",136:()=>"Unable to update chart as the 'type' is missing. It must be either 'rangeChartUpdate', 'pivotChartUpdate', or 'crossFilterChartUpdate'.",137:({type:e,currentChartType:t})=>`Unable to update chart as a '${e}' update type is not permitted on a ${t}.`,138:({chartType:e})=>`invalid chart type supplied: ${e}`,139:({customThemeName:e})=>`a custom chart theme with the name ${e} has been supplied but not added to the 'chartThemes' list`,140:({name:e})=>`no stock theme exists with the name '${e}' and no custom chart theme with that name was supplied to 'customChartThemes'`,141:()=>"cross filtering with row grouping is not supported.",142:()=>"cross filtering is only supported in the client side row model.",143:({panel:e})=>`'${e}' is not a valid Chart Tool Panel name`,144:({type:e})=>`Invalid charts data panel group name supplied: '${e}'`,145:({group:e})=>`As of v32, only one charts customize panel group can be expanded at a time. '${e}' will not be expanded.`,146:({comp:e})=>`Unable to instantiate component '${e}' as its module hasn't been loaded. Add 'ValidationModule' to see which module is required.`,147:({group:e})=>`Invalid charts customize panel group name supplied: '${e}'`,148:({group:e})=>`invalid chartGroupsDef config '${e}'`,149:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,150:()=>"'seriesChartTypes' are required when the 'customCombo' chart type is specified.",151:({chartType:e})=>`invalid chartType '${e}' supplied in 'seriesChartTypes', converting to 'line' instead.`,152:({colId:e})=>`no 'seriesChartType' found for colId = '${e}', defaulting to 'line'.`,153:({chartDataType:e})=>`unexpected chartDataType value '${e}' supplied, instead use 'category', 'series' or 'excluded'`,154:({colId:e})=>`cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' to be defined on the column with id: ${e}`,155:({option:e})=>`'${e}' is not a valid Chart Toolbar Option`,156:({panel:e})=>`Invalid panel in chartToolPanelsDef.panels: '${e}'`,157:({unrecognisedGroupIds:e})=>["unable to find group(s) for supplied groupIds:",e],158:()=>"can not expand a column item that does not represent a column group header",159:()=>"Invalid params supplied to createExcelFileForExcel() - `ExcelExportParams.data` is empty.",160:()=>"Export cancelled. Export is not allowed as per your configuration.",161:()=>"The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'",162:({id:e,dataType:t})=>`Unrecognized data type for excel export [${e}.dataType=${t}]`,163:({featureName:e})=>`Excel table export does not work with ${e}. The exported Excel file will not contain any Excel tables.\n Please turn off ${e} to enable Excel table exports.`,164:()=>"Unable to add data table to Excel sheet: A table already exists.",165:()=>"Unable to add data table to Excel sheet: Missing required parameters.",166:({unrecognisedGroupIds:e})=>["unable to find groups for these supplied groupIds:",e],167:({unrecognisedColIds:e})=>["unable to find columns for these supplied colIds:",e],168:()=>"detailCellRendererParams.template should be function or string",169:()=>'Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.',170:({providedStrategy:e})=>`invalid cellRendererParams.refreshStrategy = ${e} supplied, defaulting to refreshStrategy = 'rows'.`,171:()=>"could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions",172:()=>"could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData",173:({group:e})=>`invalid chartGroupsDef config '${e}'`,174:({group:e,chartType:t})=>`invalid chartGroupsDef config '${e}.${t}'`,175:({menuTabName:e,itemsToConsider:t})=>[`Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of `,t],176:({key:e})=>`unknown menu item type ${e}`,177:()=>"valid values for cellSelection.handle.direction are 'x', 'y' and 'xy'. Default to 'xy'.",178:({colId:e})=>`column ${e} is not visible`,179:()=>"totalValueGetter should be either a function or a string (expression)",180:()=>"agRichSelectCellEditor requires cellEditorParams.values to be set",181:()=>"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.",182:()=>'you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data',183:()=>"Group Column Filter only works on group columns. Please use a different filter.",184:({parentGroupData:e,childNodeData:t})=>["duplicate group keys for row data, keys should be unique",[e,t]],185:({data:e})=>["getDataPath() should not return an empty path",[e]],186:({rowId:e,rowData:t,duplicateRowsData:i})=>["duplicate group keys for row data, keys should be unique",e,t,...i??[]],187:({rowId:e,firstData:t,secondData:i})=>[`Duplicate node id ${e}. Row IDs are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.`,"first instance",t,"second instance",i],188:e=>`getRowId callback must be provided for Server Side Row Model ${e?.feature||"selection"} to work correctly.`,189:({startRow:e})=>`invalid value ${e} for startRow, the value should be >= 0`,190:({rowGroupId:e,data:t})=>["null and undefined values are not allowed for server side row model keys",e?`column = ${e}`:"","data is ",t],194:({method:e})=>`calling gridApi.${e}() is only possible when using rowModelType=\`clientSide\`.`,195:({justCurrentPage:e})=>`selecting just ${e?"current page":"filtered"} only works when gridOptions.rowModelType='clientSide'`,196:({key:e})=>`Provided ids must be of string type. Invalid id provided: ${e}`,197:()=>"`toggledNodes` must be an array of string ids.",199:()=>"getSelectedNodes and getSelectedRows functions cannot be used with select all functionality with the server-side row model. Use `api.getServerSideSelectionState()` instead.",200:Hu,201:({rowModelType:e})=>`Could not find row model for rowModelType = ${e}`,202:()=>"`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model. Use `api.getServerSideSelectionState()` instead.",203:()=>"Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.",204:()=>"Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.",205:({duplicateIdText:e})=>`Unable to display rows as duplicate row ids (${e}) were returned by the getRowId callback. Please modify the getRowId callback to provide unique ids.`,206:()=>"getRowId callback must be implemented for transactions to work. Transaction was ignored.",207:()=>'The Set Filter Parameter "defaultToNothingSelected" value was ignored because it does not work when "excelMode" is used.',208:()=>"Set Filter Value Formatter must return string values. Please ensure the Set Filter Value Formatter returns string values for complex objects.",209:()=>`Set Filter Key Creator is returning null for provided values and provided values are primitives. Please provide complex objects. See ${zi}/filter-set-filter-list/#filter-value-types`,210:()=>"Set Filter has a Key Creator, but provided values are primitives. Did you mean to provide complex objects?",211:()=>"property treeList=true for Set Filter params, but you did not provide a treeListPathGetter or values of type Date.",212:()=>"please review all your toolPanel components, it seems like at least one of them doesn't have an id",213:()=>"Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled.",214:({key:e})=>`unable to lookup Tool Panel as invalid key supplied: ${e}`,215:({key:e,defaultByKey:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(t??{}).join(",")}`,216:({name:e})=>`Missing component for '${e}'`,217:({invalidColIds:e})=>["unable to find grid columns for the supplied colDef(s):",e],218:({property:e,defaultOffset:t})=>`${e} must be a number, the value you provided is not a valid number. Using the default of ${t}px.`,219:({property:e})=>`Property ${e} does not exist on the target object.`,220:({lineDash:e})=>`'${e}' is not a valid 'lineDash' option.`,221:()=>"agAggregationComponent should only be used with the client and server side row model.",222:()=>"agFilteredRowCountComponent should only be used with the client side row model.",223:()=>"agSelectedRowCountComponent should only be used with the client and server side row model.",224:()=>"agTotalAndFilteredRowCountComponent should only be used with the client side row model.",225:()=>"agTotalRowCountComponent should only be used with the client side row model.",226:()=>"viewport is missing init method.",227:()=>"menu item icon must be DOM node or string",228:({menuItemOrString:e})=>`unrecognised menu item ${e}`,229:({index:e})=>["invalid row index for ensureIndexVisible: ",e],230:()=>"detailCellRendererParams.template is not supported by AG Grid React. To change the template, provide a Custom Detail Cell Renderer. See https://www.ag-grid.com/react-data-grid/master-detail-custom-detail/",231:()=>"As of v32, using custom components with `reactiveCustomComponents = false` is deprecated.",232:()=>"Using both rowData and v-model. rowData will be ignored.",233:({methodName:e})=>`Framework component is missing the method ${e}()`,234:()=>'Group Column Filter does not work with the colDef property "field". This property will be ignored.',235:()=>'Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.',236:()=>'Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.',237:()=>"Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter.",238:()=>"setRowCount can only accept a positive row count.",239:()=>'Theming API and CSS File Themes are both used in the same page. In v33 we released the Theming API as the new default method of styling the grid. See the migration docs https://www.ag-grid.com/react-data-grid/theming-migration/. Because no value was provided to the `theme` grid option it defaulted to themeQuartz. But the file (ag-grid.css) is also included and will cause styling issues. Either pass the string "legacy" to the theme grid option to use v32 style themes, or remove ag-grid.css from the page to use Theming API.',240:({theme:e})=>`theme grid option must be a Theming API theme object or the string "legacy", received: ${e}`,243:()=>"Failed to deserialize state - each provided state object must be an object.",244:()=>"Failed to deserialize state - `selectAllChildren` must be a boolean value or undefined.",245:()=>"Failed to deserialize state - `toggledNodes` must be an array.",246:()=>"Failed to deserialize state - Every `toggledNode` requires an associated string id.",247:()=>"Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule. \nPlease rebuild the selection state and reapply it.",248:()=>"SetFloatingFilter expects SetFilter as its parent",249:()=>"Must supply a Value Formatter in Set Filter params when using a Key Creator",250:()=>"Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data or Row Grouping is enabled.",251:({chartType:e})=>`AG Grid: Unable to create chart as an invalid chartType = '${e}' was supplied.`,252:()=>"cannot get grid to draw rows when it is in the middle of drawing rows. \nYour code probably called a grid API method while the grid was in the render stage. \nTo overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). \nTo see what part of your code that caused the refresh check this stacktrace.",253:({version:e})=>["Illegal version string: ",e],254:()=>"Cannot create chart: no chart themes available.",255:({point:e})=>`Lone surrogate U+${e?.toString(16).toUpperCase()} is not a scalar value`,256:()=>"Unable to initialise. See validation error, or load ValidationModule if missing.",257:()=>Gu("IntegratedChartsModule"),258:()=>Gu("SparklinesModule"),259:({part:e})=>`the argument to theme.withPart must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:i,gridId:o,rowModelType:n})=>Hu({reasonOrId:`AG Grid '${e}' component: ${t}`,moduleName:un[t],gridId:o,gridScoped:i,rowModelType:n}),261:()=>"As of v33, `column.isHovered()` is deprecated. Use `api.isColumnHovered(column)` instead.",262:()=>'As of v33, icon key "smallDown" is deprecated. Use "advancedFilterBuilderSelect" for Advanced Filter Builder dropdown, "selectOpen" for Select cell editor and dropdowns (e.g. Integrated Charts menu), "richSelectOpen" for Rich Select cell editor.',263:()=>'As of v33, icon key "smallLeft" is deprecated. Use "panelDelimiterRtl" for Row Group Panel / Pivot Panel, "subMenuOpenRtl" for sub-menus.',264:()=>'As of v33, icon key "smallRight" is deprecated. Use "panelDelimiter" for Row Group Panel / Pivot Panel, "subMenuOpen" for sub-menus.',265:({colId:e})=>`Unable to infer chart data type for column '${e}' if first data entry is null. Please specify "chartDataType", or a "cellDataType" in the column definition. For more information, see ${zi}/integrated-charts-range-chart#coldefchartdatatype .`,266:()=>'As of v33.1, using "keyCreator" with the Rich Select Editor has been deprecated. It now requires the "formatValue" callback to convert complex data to strings.',267:()=>"Detail grids can not use a different theme to the master grid, the `theme` detail grid option will be ignored.",268:()=>"Transactions aren't supported with tree data when using treeDataChildrenField",269:()=>"When `masterSelects: 'detail'`, detail grids must be configured with multi-row selection",270:({id:e,parentId:t})=>`Cycle detected for row with id='${e}' and parent id='${t}'. Resetting the parent for row with id='${e}' and showing it as a root-level node.`,271:({id:e,parentId:t})=>`Parent row not found for row with id='${e}' and parent id='${t}'. Showing row with id='${e}' as a root-level node.`,272:()=>"No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:\n \n import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';\n \n ModuleRegistry.registerModules([ AllCommunityModule ]);\n ",273:({providedId:e,usedId:t})=>`Provided column id '${e}' was already in use, ensure all column and group ids are unique. Using '${t}' instead.`,274:({prop:e})=>{let t=`Since v33, ${e} has been deprecated.`;switch(e){case"maxComponentCreationTimeMs":t+=" This property is no longer required and so will be removed in a future version.";break;case"setGridApi":t+=" This method is not called by AG Grid. To access the GridApi see: https://ag-grid.com/react-data-grid/grid-interface/#grid-api ";break;case"children":t+=" For multiple versions AgGridReact does not support children."}return t},275:Vu,276:()=>"Row Numbers Row Resizer cannot be used when Grid Columns have `autoHeight` enabled.",277:({colId:e})=>`'enableFilterHandlers' is set to true, but column '${e}' does not have 'filter.doesFilterPass' or 'filter.handler' set.`,278:({colId:e})=>`Unable to create filter handler for column '${e}'`,279:e=>{},280:({colId:e})=>`'name' must be provided for custom filter components for column '${e}`,281:({colId:e})=>`Filter for column '${e}' does not have 'filterParams.buttons', but the new Filters Tool Panel has buttons configured. Either configure buttons for the filter, or disable buttons on the Filters Tool Panel.`,282:()=>"New filter tool panel requires `enableFilterHandlers: true`.",283:()=>"As of v34, use the same method on the filter handler (`api.getColumnFilterHandler(colKey)`) instead.",284:()=>"As of v34, filters are active when they have a model. Use `api.getColumnFilterModel()` instead.",285:()=>"As of v34, use (`api.getColumnFilterModel()`) instead.",286:()=>"As of v34, use (`api.setColumnFilterModel()`) instead.",287:()=>"`api.doFilterAction()` requires `enableFilterHandlers = true",288:()=>"`api.getColumnFilterModel(key, true)` requires `enableFilterHandlers = true",289:({rowModelType:e})=>`Row Model '${e}' is not supported with Batch Editing`,290:({rowIndex:e,rowPinned:t})=>`Row with index '${e}' and pinned state '${t}' not found`,291:()=>"License Key being set multiple times with different values. This can result in an incorrect license key being used,",292:({colId:e})=>`The Multi Filter for column '${e}' has buttons configured against the child filters. When 'enableFilterHandlers=true', buttons must instead be provided against the parent Multi Filter params. The child filter buttons will be ignored.`};function cS(e,t){const i=dS[e];if(!i)return[`Missing error text for error id ${e}!`];const o=i(t),s=`\nSee ${Rs(e,t)}`;return Array.isArray(o)?o.concat(s):[o,s]}var uS={1:"Charting Aggregation",2:"pivotResultFields",3:"setTooltip"},Sl=new WeakMap,Rl=new WeakMap;function hS(e,t,i){if(!t)return tt(11),{};const o=i;let n;if(!o?.setThemeOnGridDiv){const r=xt({tag:"div"});r.style.height="100%",e.appendChild(r),e=r,n=()=>e.remove()}return(new pS).create(e,t,r=>{const a=new BC(e);r.createBean(a)},void 0,i,n)}var gS=1,pS=class{create(e,t,i,o,n,s){const r=ki.applyGlobalGridOptions(t),a=r.gridId??String(gS++),l=this.getRegisteredModules(n,a,r.rowModelType),d=this.createBeansList(r.rowModelType,l,a),c=this.createProvidedBeans(e,r,n);if(!d)return;const g={providedBeanInstances:c,beanClasses:d,id:a,beanInitComparator:bC,beanDestroyComparator:yC,derivedBeans:[vC],destroyCallback:()=>{Rl.delete(w),Sl.delete(e),function kr(e){delete no[e]}(a),s?.()}},m=new Yp(g);this.registerModuleFeatures(m,l),i(m),m.getBean("syncSvc").start(),o?.(m);const w=m.getBean("gridApi");return Sl.set(e,w),Rl.set(w,e),w}getRegisteredModules(e,t,i){return so(iS,void 0,!0),e?.modules?.forEach(o=>so(o,t)),function Wl(e,t){const i=no[e]??{};return[...Object.values(Do.all??{}),...Object.values(i.all??{}),...Object.values(Do[t]??{}),...Object.values(i[t]??{})]}(t,Nu(i))}registerModuleFeatures(e,t){const i=e.getBean("registry"),o=e.getBean("apiFunctionSvc");for(const n of t){i.registerModule(n);const s=n.apiFunctions;if(s){const r=Object.keys(s);for(const a of r)o?.addFunction(a,s[a])}}}createProvidedBeans(e,t,i){let o=i?i.frameworkOverrides:null;K(o)&&(o=new Lc);const n={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:i?i.globalListener:null,globalSyncListener:i?i.globalSyncListener:null,frameworkOverrides:o};return i?.providedBeanInstances&&Object.assign(n,i.providedBeanInstances),n}createBeansList(e,t,i){const o={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},n=Nu(e),s=o[n];if(!s)return void Wi(201,{rowModelType:n},`Unknown rowModelType ${n}.`);if(!function Tr(){return ms}())return void Wi(272,void 0,"No AG Grid modules are registered! It is recommended to start with all Community features via the AllCommunityModule:\n \n import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';\n \n ModuleRegistry.registerModules([ AllCommunityModule ]);\n ");if(!e){const a=Object.entries(o).filter(([l,d])=>Yo(d,i,l));if(1==a.length){const[l,d]=a[0];if(l!==n){const c={moduleName:d,rowModelType:l};return void Wi(275,c,Vu(c))}}}if(!Yo(s,i,n))return void Wi(200,{reasonOrId:`rowModelType = '${n}'`,moduleName:s,gridScoped:Fn(),gridId:i,rowModelType:n},`Missing module ${s}Module for rowModelType ${n}.`);const r=new Set;for(const a of t)for(const l of a.beans??[])r.add(l);return Array.from(r)}};function Nu(e){return e??"clientSide"}function yo(e){const t=e.rowModel;return"clientSide"===t.getType()?t:void 0}function mr(e){const t=e.rowModel;return"infinite"===t.getType()?t:void 0}function El(e){return e.filter(t=>null!=t)}var vS=class{wrap(e,t,i,o){const n=this.createWrapper(e,o);for(const s of t??[])this.createMethod(n,s,!0);for(const s of i??[])this.createMethod(n,s,!1);return n}createMethod(e,t,i){e.addMethod(t,this.createMethodProxy(e,t,i))}createMethodProxy(e,t,i){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(i&&se(49,{methodName:t}),null)}}};function Cr(e){return"whenTruncated"===e.get("tooltipShowMode")}var bS=class extends Y{getFileName(e){const t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(".")?e:`${e}.${t}`}getData(e){const t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},yS=class{constructor(e){const{colModel:t,rowGroupColsSvc:i,colNames:o,valueSvc:n,gos:s,processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:d}=e;this.colModel=t,this.rowGroupColsSvc=i,this.colNames=o,this.valueSvc=n,this.gos=s,this.processCellCallback=r,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=d}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractRowCellValue(e,t,i,o,n){const s=0===t&&Nr(this.gos,n,this.colModel.isPivotMode());if(this.processRowGroupCallback&&(this.gos.get("treeData")||n.group)&&(e.isRowGroupDisplayed(n.rowGroupColumn?.getColId()??"")||s))return{value:this.processRowGroupCallback(Ie(this.gos,{column:e,node:n}))??""};if(this.processCellCallback)return{value:this.processCellCallback(Ie(this.gos,{accumulatedRowIndex:i,column:e,node:n,value:this.valueSvc.getValueForDisplay(e,n,void 0,void 0).value,type:o,parseValue:g=>this.valueSvc.parseValue(e,n,g,this.valueSvc.getValue(e,n,void 0)),formatValue:g=>this.valueSvc.formatValue(e,n,g)??g}))??""};const r=this.gos.get("treeData"),a=this.valueSvc;if((-1!==n.level||!n.footer)&&(s||!0===e.colDef.showRowGroup&&(n.group||r))){let g="",m=n;for(;m&&-1!==m.level;){const{value:w,valueFormatted:b}=a.getValueForDisplay(s?void 0:e,m,!0,!0);g=` -> ${b??w??""}${g}`,m=m.parent}return{value:g,valueFormatted:g}}const{value:c,valueFormatted:u}=a.getValueForDisplay(e,n,!0,!0);return{value:c??"",valueFormatted:u}}getHeaderName(e,t){return e?e(Ie(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}},RS={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},Xt="clientSide",Wt="serverSide",fn="infinite",ES={onGroupExpandedOrCollapsed:[Xt],refreshClientSideRowModel:[Xt],isRowDataEmpty:[Xt],forEachLeafNode:[Xt],forEachNodeAfterFilter:[Xt],forEachNodeAfterFilterAndSort:[Xt],resetRowHeights:[Xt,Wt],applyTransaction:[Xt],applyTransactionAsync:[Xt],flushAsyncTransactions:[Xt],getBestCostNodeSelection:[Xt],getServerSideSelectionState:[Wt],setServerSideSelectionState:[Wt],applyServerSideTransaction:[Wt],applyServerSideTransactionAsync:[Wt],applyServerSideRowData:[Wt],retryServerSideLoads:[Wt],flushServerSideAsyncTransactions:[Wt],refreshServerSide:[Wt],getServerSideGroupLevelState:[Wt],refreshInfiniteCache:[fn],purgeInfiniteCache:[fn],getInfiniteRowCount:[fn],isLastRowIndexKnown:[fn,Wt],expandAll:[Xt,Wt],collapseAll:[Xt,Wt],onRowHeightChanged:[Xt,Wt],setRowCount:[fn,Wt],getCacheBlockState:[fn,Wt]},xS={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}},FS={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},DS={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1},MS={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},_S=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),AS=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),IS={moduleName:"Validation",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,function Ir(e){Mo=e}(cS)}warnOnInitialPropertyUpdate(e,t){"api"===e&&RS[t]&&se(22,{key:t})}processGridOptions(e){this.processOptions(e,{objectName:"gridOptions",allProperties:[...mb,...fb,...pb,...vu,...vb,...bu,...wu,...Cb,...Object.values(ul)],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:{suppressLoadingOverlay:{version:"32",message:"Use `loading`=false instead."},enableFillHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeHandle:{version:"32.2",message:"Use `cellSelection.handle` instead."},enableRangeSelection:{version:"32.2",message:"Use `cellSelection = true` instead."},suppressMultiRangeSelection:{version:"32.2",message:"Use `cellSelection.suppressMultiRanges` instead."},suppressClearOnFillReduction:{version:"32.2",message:"Use `cellSelection.handle.suppressClearOnFillReduction` instead."},fillHandleDirection:{version:"32.2",message:"Use `cellSelection.handle.direction` instead."},fillOperation:{version:"32.2",message:"Use `cellSelection.handle.setFillValue` instead."},suppressRowClickSelection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},suppressRowDeselection:{version:"32.2",message:"Use `rowSelection.enableClickSelection` instead."},rowMultiSelectWithClick:{version:"32.2",message:"Use `rowSelection.enableSelectionWithoutKeys` instead."},groupSelectsChildren:{version:"32.2",message:'Use `rowSelection.groupSelects = "descendants"` instead.'},groupSelectsFiltered:{version:"32.2",message:'Use `rowSelection.groupSelects = "filteredDescendants"` instead.'},isRowSelectable:{version:"32.2",message:"Use `selectionOptions.isRowSelectable` instead."},suppressCopySingleCellRanges:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},suppressCopyRowsToClipboard:{version:"32.2",message:"Use `rowSelection.copySelectedRows` instead."},onRangeSelectionChanged:{version:"32.2",message:"Use `onCellSelectionChanged` instead."},onRangeDeleteStart:{version:"32.2",message:"Use `onCellSelectionDeleteStart` instead."},onRangeDeleteEnd:{version:"32.2",message:"Use `onCellSelectionDeleteEnd` instead."},suppressBrowserResizeObserver:{version:"32.2",message:"The grid always uses the browser's ResizeObserver, this grid option has no effect."},onColumnEverythingChanged:{version:"32.2",message:"Either use `onDisplayedColumnsChanged` which is fired at the same time, or use one of the more specific column events."},groupRemoveSingleChildren:{version:"33",message:"Use `groupHideParentOfSingleChild` instead."},groupRemoveLowestSingleChildren:{version:"33",message:'Use `groupHideParentOfSingleChild: "leafGroupsOnly"` instead.'},suppressRowGroupHidesColumns:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressHideOnGroup"` instead.'},suppressMakeColumnVisibleAfterUnGroup:{version:"33",message:'Use `suppressGroupChangesColumnVisibility: "suppressShowOnUngroup"` instead.'},unSortIcon:{version:"33",message:"Use `defaultColDef.unSortIcon` instead."},sortingOrder:{version:"33",message:"Use `defaultColDef.sortingOrder` instead."},suppressPropertyNamesCheck:{version:"33",message:"`gridOptions` and `columnDefs` both have a `context` property that should be used for arbitrary user data. This means that column definitions and gridOptions should only contain valid properties making this property redundant."},suppressAdvancedFilterEval:{version:"34",message:"Advanced filter no longer uses function evaluation, so this option has no effect."}},validations:Sb()})}validateApiFunction(e,t){return function PS(e,t,i){const o=xS[e];if(o){const{version:s,new:r,old:a,message:l}=o,d=a??e;return(...c)=>(Ei(`Since ${s} api.${d} is deprecated. ${r?`Please use ${r} instead. `:""}${l??""}`),t.apply(t,c))}const n=ES[e];return n?(...s)=>{const r=i.rowModel.getType();if(n.includes(r))return t.apply(t,s);oo(`api.${e} can only be called when gridOptions.rowModelType is ${n.join(" or ")}`)}:t}(e,t,this.beans)}missingUserComponent(e,t,i,o){const n=un[t];n?this.gos.assertModuleRegistered(n,`AG Grid '${e}' component: ${t}`):se(101,{propertyName:e,componentName:t,agGridDefaults:i,jsComps:o})}missingDynamicBean(e){const t=FS[e];return t?ei(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){AS.has(e)&&se(10,{eventType:e})}validateIcon(e){if(_S.has(e)&&se(43,{iconName:e}),DS[e])return;const t=MS[e];t?tt(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:Fn(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."}):se(134,{iconName:e})}isProvidedUserComp(e){return!!un[e]}validateColDef(e){this.processOptions(e,{objectName:"colDef",allProperties:Object.keys(ub),docsUrl:"column-properties/",deprecations:{checkboxSelection:{version:"32.2",message:"Use `rowSelection.checkboxes` in `GridOptions` instead."},headerCheckboxSelection:{version:"32.2",message:"Use `rowSelection.headerCheckbox = true` in `GridOptions` instead."},headerCheckboxSelectionFilteredOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "filtered"` in `GridOptions` instead.'},headerCheckboxSelectionCurrentPageOnly:{version:"32.2",message:'Use `rowSelection.selectAll = "currentPage"` in `GridOptions` instead.'},showDisabledCheckboxes:{version:"32.2",message:"Use `rowSelection.hideDisabledCheckboxes = true` in `GridOptions` instead."},rowGroupingHierarchy:{version:"34.3",message:"Use `colDef.groupHierarchy` instead."}},validations:{autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:i})=>i?"colDef.autoHeight is not supported with paginationAutoPageSize.":null},cellRendererParams:{validate:t=>null==t.rowGroup&&null==t.rowGroupIndex&&"agGroupCellRenderer"!==t.cellRenderer||!("checkbox"in t.cellRendererParams)?null:'Since v33.0, `cellRendererParams.checkbox` has been deprecated. Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.'},flex:{validate:(t,i)=>i.autoSizeStrategy?"colDef.flex is not supported with gridOptions.autoSizeStrategy":null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:i})=>"multiple"===i?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:i})=>"multiple"===i?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:i})=>"multiple"===i?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const i=t.headerValueGetter;return"function"==typeof i||"string"==typeof i?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return ei(262);if(t.smallLeft)return ei(263);if(t.smallRight)return ei(264)}return null}},sortingOrder:{validate:t=>{const i=t.sortingOrder;if(Array.isArray(i)&&i.length>0){const o=i.filter(n=>!os.includes(n));if(o.length>0)return`sortingOrder must be an array with elements from [${os.map(_o).join()}], currently it includes [${o.map(_o).join()}]`}else if(!Array.isArray(i)||i.length<=0)return`sortingOrder must be an array with at least one element, currently it's ${i}`;return null}},type:{validate:t=>{const i=t.type;return i instanceof Array?i.some(n=>"string"!=typeof n)?"if colDef.type is supplied an array it should be of type 'string[]'":null:"string"==typeof i?null:"colDef.type should be of type 'string' | 'string[]'"}},rowSpan:{validate:(t,{suppressRowTransform:i})=>i?null:"colDef.rowSpan requires suppressRowTransform to be enabled."},spanRows:{dependencies:{editable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:i,cellSelection:o,suppressRowTransform:n,enableCellSpan:s,rowDragEntireRow:r,enableCellTextSelection:a})=>"object"==typeof i&&"singleRow"===i?.mode&&i?.enableClickSelection?"colDef.spanRows is not supported with rowSelection.clickSelection":o?"colDef.spanRows is not supported with cellSelection.":n?"colDef.spanRows is not supported with suppressRowTransform.":s?r?"colDef.spanRows is not supported with rowDragEntireRow.":a?"colDef.spanRows is not supported with enableCellTextSelection.":null:"colDef.spanRows requires enableCellSpan to be enabled."},groupHierarchy:{validate(t,{groupHierarchyConfig:i={}},o){const n=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),s=[];for(const r of t.groupHierarchy??[])"object"!=typeof r?!n.has(r)&&!(r in i)&&s.push(Cu(r)):o.validation?.validateColDef(r);return s.length>0?`The following parts of colDef.groupHierarchy are not recognised: ${s.join(", ")}.\nChoose one of ${[...n].map(Cu).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`:null}}}})}processOptions(e,t){const{validations:i,deprecations:o,allProperties:n,propertyExceptions:s,objectName:r,docsUrl:a}=t;n&&!0!==this.gridOptions.suppressPropertyNamesCheck&&this.checkProperties(e,[...s??[],...Object.keys(o)],n,r,a);const l=new Set;if(Object.keys(e).forEach(c=>{const u=o[c];if(u){const{message:O,version:V}=u;l.add(`As of v${V}, ${String(c)} is deprecated. ${O??""}`)}const g=e[c];if(null==g||!1===g)return;const m=i[c];if(!m)return;const{dependencies:w,validate:b,supportedRowModels:x,expectedType:A}=m;if(A){const O=typeof g;if(O!==A)return void l.add(`${String(c)} should be of type '${A}' but received '${O}' (${g}).`)}if(x){const O=this.gridOptions.rowModelType??"clientSide";if(!x.includes(O))return void l.add(`${String(c)} is not supported with the '${O}' row model. It is only valid with: ${x.join(", ")}.`)}if(w){const O=this.checkForRequiredDependencies(c,w,e);if(O)return void l.add(O)}if(b){const O=b(e,this.gridOptions,this.beans);if(O)return void l.add(O)}}),l.size>0)for(const c of l)Ei(c)}checkForRequiredDependencies(e,t,i){const n=Object.entries(t).filter(([s,r])=>!r.required.includes(i[s]));return 0===n.length?null:n.map(([s,r])=>`'${String(e)}' requires '${s}' to be one of [${r.required.map(a=>null===a?"null":void 0===a?"undefined":a).join(", ")}]. ${r.reason??""}`).join("\n ")}checkProperties(e,t,i,o,n){const r=function TS(e,t,i){const o={},n=e.filter(s=>!t.some(r=>r===s));if(n.length>0)for(const s of n)o[s]=da({inputValue:s,allSuggestions:i}).values;return o}(Object.getOwnPropertyNames(e),["__ob__","__v_skip","__metadata__",...t,...i],i),a=Object.keys(r);for(const l of a){let c=`invalid ${o} property '${l}' did you mean any of these: ${r[l].slice(0,8).join(", ")}.`;i.includes("context")&&(c+=`\nIf you are trying to annotate ${o} with application data, use the '${o}.context' property instead.`),Ei(c)}a.length>0&&n&&Ei(`to see all the valid ${o} properties please check: ${this.beans.frameworkOverrides.getDocLink(n)}`)}}]};function Wu(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter)}var HS={moduleName:"SharedMenu",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){this.showColumnMenuCommon(xc(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,i){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,i)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){xc(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(ii(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&co(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&"new"===this.gos.get("columnMenu")}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(To()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!ii(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!(!this.beans.filterManager?.isFilterAllowed(e)||ii(this.gos)||this.isFilterMenuInHeaderEnabled(e)||this.isFloatingFilterButtonDisplayed(e))}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return ii(e)?!!e.exists("suppressMenuHide")&&t:t}showColumnMenuCommon(e,t,i,o){const{positionBy:n,onClosedCallback:s}=t,r=t.column;if("button"===n){const{buttonElement:a}=t;e?.showMenuAfterButtonClick(r,a,i,s,o)}else if("mouse"===n){const{mouseEvent:a}=t;e?.showMenuAfterMouseEvent(r,a,i,s,o)}else if(r){const a=this.beans,l=a.ctrlsSvc;l.getScrollFeature().ensureColumnVisible(r,"auto"),_e(a,()=>{const d=l.getHeaderRowContainerCtrl(r.getPinned())?.getHeaderCtrlForColumn(r);d&&e?.showMenuAfterButtonClick(r,d.getAnchorElementForMenu(o),i,s,o)})}}}],apiFunctions:{showColumnMenu:function BS(e,t){const i=e.colModel.getCol(t);i?e.menuSvc?.showColumnMenu({column:i,positionBy:"auto"}):tt(12,{colKey:t})},hidePopupMenu:function VS(e){e.menuSvc?.hidePopupMenu()}}},vr={moduleName:"Popup",version:ge,beans:[class extends af{postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridCtrl=e.gridCtrl}),this.addManagedEventListeners({gridStylesChanged:this.handleThemeChange.bind(this)})}getDefaultPopupParent(){return this.gridCtrl.getGui()}positionPopupForMenu(e){const{eventSource:t,ePopup:i,event:o}=e,n=t.getBoundingClientRect(),s=this.getParentRect();this.setAlignedTo(t,i);let r=!1;this.positionPopup({ePopup:i,keepWithinBounds:!0,updatePosition:()=>{const l=this.keepXYWithinBounds(i,n.top-s.top,0),d=i.clientWidth>0?i.clientWidth:200;r||(i.style.minWidth=`${d}px`,r=!0);const u=s.right-s.left-d;let g;return this.gos.get("enableRtl")?(g=w(),g<0&&(g=m(),this.setAlignedStyles(i,"left")),g>u&&(g=0,this.setAlignedStyles(i,"right"))):(g=m(),g>u&&(g=w(),this.setAlignedStyles(i,"right")),g<0&&(g=0,this.setAlignedStyles(i,"left"))),{x:g,y:l};function m(){return n.right-s.left-2}function w(){return n.left-s.left-d}},postProcessCallback:()=>this.callPostProcessPopup(e,"subMenu",i,t,o instanceof MouseEvent?o:void 0)})}callPostProcessPopup(e,t,i,o,n){const s=this.gos.getCallback("postProcessPopup");if(s){const{column:r,rowNode:a}=e;s({column:r,rowNode:a,ePopup:i,type:t,eventSource:o,mouseEvent:n})}}getActivePopups(){return this.popupList.map(e=>e.element)}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const i of this.popupList)t.applyThemeClasses(i.wrapper)}}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return Qi(e)}}]},JS={filterHandler:()=>({doesFilterPass:()=>!0})},r1={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},xl=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const i=e.filterOptions??t;this.filterOptions!==i&&(this.filterOptions=i,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e)"string"!=typeof t&&([["displayKey"],["displayName"],["predicate","test"]].every(n=>!!n.some(s=>null!=t[s])||(se(72,{keys:n}),!1))?this.customFilterOptions[t.displayKey]=t:this.filterOptions=e.filter(n=>n===t)||[])}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const i=t[0];if("string"==typeof i)return i;if(i.displayKey)return i.displayKey;se(73)}else se(74)}getCustomOption(e){return this.customFilterOptions[e]}};function ss(e,t,i){return null==i?e.splice(t):e.splice(t,i)}function wr(e){return null==e||"string"==typeof e&&0===e.trim().length}function rs(e,t){const i=t.getCustomOption(e);if(i){const{numberOfInputs:n}=i;return n??1}return e&&["empty","notBlank","blank"].indexOf(e)>=0?0:"inRange"===e?2:1}var Pl=class extends Of{constructor(e,t,i){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=i,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new xl;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=function l1(e){return"AND"===e||"OR"===e?e:"AND"}(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions();const t=this.getGui();this.isReadOnly()?t.setAttribute("tabindex","-1"):t.removeAttribute("tabindex")}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,i)=>{t.setValue(0===i?e:this.optionsFactory.defaultOption,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return 0===e.length?t:!0===e[0].getValue()?"OR":"AND"}areNonNullModelsEqual(e,t){const i=!e.operator,o=!t.operator;if(!i&&o||i&&!o)return!1;let s;return s=i?this.areSimpleModelsEqual(e,t):e.operator===t.operator&&ho(e.conditions,t.conditions,(l,d)=>this.areSimpleModelsEqual(l,d)),s}setModelIntoUi(e,t){if(null==e)return this.resetUiToDefaults(t),ft.resolve();if(e.operator){const o=e;let n=o.conditions;null==n&&(n=[],se(77));const s=function c1(e,t){let i=e.length;return i>t&&(e.splice(t),se(78),i=t),i}(n,this.maxNumConditions),r=this.getNumConditions();if(s<r)this.removeConditionsAndOperators(s);else if(s>r)for(let l=r;l<s;l++)this.createJoinOperatorPanel(),this.createOption();const a="OR"===o.operator;this.eJoinAnds.forEach(l=>l.setValue(!a,!0)),this.eJoinOrs.forEach(l=>l.setValue(a,!0)),n.forEach((l,d)=>{this.eTypes[d].setValue(l.type,!0),this.setConditionIntoUi(l,d)})}else{const o=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(o.type,!0),this.setConditionIntoUi(o,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),ft.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(se(79),t=1),this.maxNumConditions=t;let i=e.numAlwaysVisibleConditions??1;i<1&&(se(80),i=1),i>t&&(se(81),i=t),this.numAlwaysVisibleConditions=i}createOption(){const e=this.getGui(),t=this.createManagedBean(new ga);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const i=this.createEValue();this.eConditionBodies.push(i),e.appendChild(i),this.putOptionsIntoDropdown(t),this.resetType(t);const o=this.getNumConditions()-1;this.forEachPositionInput(o,n=>this.resetInput(n)),this.addChangedListeners(t,o)}createJoinOperatorPanel(){const e=xt({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),i=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const o=this.eJoinPanels.length-1,n=this.joinOperatorId++;this.resetJoinOperatorAnd(t,o,n),this.resetJoinOperatorOr(i,o,n),this.isReadOnly()||(t.onValueChange(this.listener),i.onValueChange(this.listener))}createJoinOperator(e,t,i){const o=this.createManagedBean(new dp);e.push(o);const n="ag-filter-condition-operator";return o.addCss(n),o.addCss(`${n}-${i}`),t.appendChild(o.getGui()),o}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>"string"==typeof e?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const i of t)e.addOption(i);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,i=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:i?this.getLocaleTextFunc()(i.displayKey,i.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let i=0;i<this.getNumConditions();i++)this.isConditionUiComplete(i)?e=i:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const i=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<i){this.removeConditionsAndOperators(i+1);const o=e+1,n=i-o;n>0&&this.removeConditionsAndOperators(o,n),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((o,n)=>{const s=this.isConditionDisabled(n,e);o.setDisabled(s||this.filterListOptions.length<=1),1===n&&(Di(this.eJoinPanels[0],s),this.eJoinAnds[0].setDisabled(s),this.eJoinOrs[0].setDisabled(s))}),this.eConditionBodies.forEach((o,n)=>{it(o,this.isConditionBodyVisible(n))});const i="OR"===(t??this.getJoinOperator());for(const o of this.eJoinAnds)o.setValue(!i,!0);for(const o of this.eJoinOrs)o.setValue(i,!0);this.forEachInput((o,n,s,r)=>{this.setElementDisplayed(o,n<r),this.setElementDisabled(o,this.isConditionDisabled(s,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:i,eConditionBodies:o,eJoinPanels:n,eJoinAnds:s,eJoinOrs:r}=this;this.removeComponents(i,e,t),this.removeElements(o,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(n,a,t),this.removeComponents(s,a,t),this.removeComponents(r,a,t)}removeElements(e,t,i){const o=ss(e,t,i);for(const n of o)Tt(n)}removeComponents(e,t,i){const o=ss(e,t,i);for(const n of o)Tt(n.getGui()),this.destroyBean(n)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const i=this.getInputs(0)[0];t=i instanceof Oo&&this.isConditionBodyVisible(0)?i.getInputElement():this.eTypes[0]?.getFocusableElement()}(t??this.getGui()).focus({preventScroll:!0})}}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column))return;e.onStateChange({model:e.model});let t=-1,i=-1,o=!1;const n=this.getJoinOperator();for(let r=this.getNumConditions()-1;r>=0;r--)if(this.isConditionUiComplete(r))-1===t&&(t=r,i=r);else{const l=r<t;(r>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(r-1)||l)&&(this.removeConditionsAndOperators(r,1),o=!0,l&&i--)}let s=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),s=!0),this.shouldAddNewConditionAtEnd(i===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),s=!0),s&&this.updateConditionStatusesAndValues(i,n),o&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=i}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}getPlaceholderText(e,t){let i=this.translate(e);if("function"==typeof this.filterPlaceholder){const o=this.eTypes[t].getValue(),n=this.translate(o);i=this.filterPlaceholder({filterOptionKey:o,filterOption:n,placeholder:i})}else"string"==typeof this.filterPlaceholder&&(i=this.filterPlaceholder);return i}resetPlaceholder(){const e=this.getLocaleTextFunc();this.forEachInput((t,i,o,n)=>{if(!(t instanceof Oo))return;const s=0===i&&n>1?"inRangeStart":0===i?"filterOoo":"inRangeEnd",r=0===i&&n>1?e("ariaFilterFromValue","Filter from value"):0===i?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");t.setInputPlaceholder(this.getPlaceholderText(s,o)),t.setInputAriaLabel(r)})}setElementValue(e,t,i){e instanceof Oo&&e.setValue(null!=t?String(t):null,!0)}setElementDisplayed(e,t){fd(e)&&it(e.getGui(),t)}setElementDisabled(e,t){fd(e)&&Di(e.getGui(),t)}attachElementOnChange(e,t){e instanceof Oo&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,i)=>{this.forEachPositionTypeInput(i,t,e)})}forEachPositionInput(e,t){const i=this.getConditionType(e);this.forEachPositionTypeInput(e,i,t)}forEachPositionTypeInput(e,t,i){const o=rs(t,this.optionsFactory),n=this.getInputs(e);for(let s=0;s<n.length;s++){const r=n[s];null!=r&&i(r,s,e,o)}}isConditionDisabled(e,t){return!!this.isReadOnly()||0!==e&&e>t+1}isConditionBodyVisible(e){return rs(this.getConditionType(e),this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||"empty"===this.getConditionType(e)||this.getValues(e).some(i=>null==i))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinAnds.forEach((t,i)=>this.resetJoinOperatorAnd(t,i,this.joinOperatorId+i)),this.eJoinOrs.forEach((t,i)=>this.resetJoinOperatorOr(t,i,this.joinOperatorId+i)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const i=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(i).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,i){this.resetJoinOperator(e,t,"AND"===this.defaultJoinOperator,this.translate("andCondition"),i)}resetJoinOperatorOr(e,t,i){this.resetJoinOperator(e,t,"OR"===this.defaultJoinOperator,this.translate("orCondition"),i)}resetJoinOperator(e,t,i,o,n){this.updateJoinOperatorDisabled(e.setValue(i,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${n}`).setLabel(o),t)}updateJoinOperatorsDisabled(){const e=(t,i)=>this.updateJoinOperatorDisabled(t,i);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const i=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((o,n,s)=>{s===t&&this.setElementValue(o,null!=i[n]?i[n]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,i,o)=>{this.setElementValue(t,0===i&&0===o?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,i=>{this.attachElementOnChange(i,this.listener)}))}hasInvalidInputs(){return!1}isReadOnly(){return!!this.params.readOnly}},Uu=class{constructor(e,t,i,o,n,s){this.alive=!0,this.context=e,this.eParent=n;const r=function Ug(e,t,i){return e.getCompDetails(t,fg,"agDateInput",i,!0)}(t,i,o);r&&r.newAgStackInstance().then(a=>{if(!this.alive)return void e.destroyBean(a);if(this.dateComp=a,!a)return;n.appendChild(a.getGui()),a?.afterGuiAttached?.();const{tempValue:l,disabled:d}=this;l&&a.setDate(l),null!=d&&a.setDisabled?.(d),s?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){it(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}},Fl=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function $u(e,t){const{dateFrom:i,dateTo:o,type:n}=e||{};return[i&&qt(i,void 0,!0)||null,o&&qt(o,void 0,!0)||null].slice(0,rs(n,t))}var Ku=1/0,qu=class extends Y{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,i=new xl;this.optionsFactory=i,i.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(i,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if("colDef"===e.source){const t=e.filterParams,i=this.optionsFactory;i.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:i,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(null==t)return!0;const{operator:i}=t,o=[];i?o.push(...t.conditions??[]):o.push(t);const n=i&&"OR"===i?"some":"every",s=this.params.getValue(e.node);return o[n](r=>this.individualConditionPasses(e,r,s))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:i,maxNumConditions:o}}=e;if(null==t)return;let s=sc(t)?t.conditions:[t];const r=i?.map(c=>"string"==typeof c?c:c.displayKey)??this.defaultOptions;if(s&&!s.every(c=>void 0!==r.find(u=>u===c.type)))return this.params={...e,model:null},void e.onModelChange(null);let l=!1;const d=this.filterType;if((s&&!s.every(c=>c.filterType===d)||t.filterType!==d)&&(s=s.map(c=>({...c,filterType:d})),l=!0),"number"==typeof o&&s&&s.length>o&&(s=s.slice(0,o),l=!0),l){const c=s.length>1?{...t,filterType:d,conditions:s}:{...s[0],filterType:d};this.params={...e,model:c},e.onModelChange(c)}}individualConditionPasses(e,t,i){const o=this.optionsFactory,n=this.mapValuesFromModel(t,o),r=function d1(e,t,i){if(null==e)return;const{predicate:o}=e;return null==o||t.some(n=>null==n)?void 0:o(t,i)}(o.getCustomOption(t.type),n,i);return r??(null==i?this.evaluateNullValue(t.type):this.evaluateNonNullValue(n,i,t,e))}},Xu=class extends qu{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:i,includeBlanksInGreaterThan:o,includeBlanksInLessThan:n,includeBlanksInRange:s}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(i)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(o)return!0;break;case"lessThan":case"lessThanOrEqual":if(n)return!0;break;case"inRange":if(s)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,i){const o=i.type;if(!this.isValid(t))return"notEqual"===o||"notBlank"===o;const n=this.comparator(),s=null!=e[0]?n(e[0],t):0;switch(o){case"equals":return 0===s;case"notEqual":return 0!==s;case"greaterThan":return s>0;case"greaterThanOrEqual":return s>=0;case"lessThan":return s<0;case"lessThanOrEqual":return s<=0;case"inRange":{const r=n(e[1],t);return this.params.filterParams.inRangeInclusive?s>=0&&r<=0:s>0&&r<0}case"blank":return wr(t);case"notBlank":return!wr(t);default:return se(76,{filterModelType:o}),!0}}},Yu={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},h1={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},Dl=class extends Y{constructor(e,t,i){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=i}getModelAsString(e,t){const i=this.getLocaleTextFunc(),o="filterToolPanel"===t;if(!e)return o?vo(this,"filterSummaryInactive"):null;if(null!=e.operator){const s=e;return(s.conditions??[]).map(d=>this.getModelAsString(d,t)).join(` ${vo(this,"AND"===s.operator?"andCondition":"orCondition")} `)}if("blank"===e.type||"notBlank"===e.type)return o?vo(this,"blank"===e.type?"filterSummaryBlank":"filterSummaryNotBlank"):i(e.type,e.type);{const s=e,r=this.optionsFactory.getCustomOption(s.type),{displayKey:a,displayName:l,numberOfInputs:d}=r||{};return a&&l&&0===d?i(a,l):this.conditionToString(s,o,"inRange"===s.type||2===d,a,l)}}updateParams(e){const{optionsFactory:t,filterParams:i}=e;this.optionsFactory=t,this.filterParams=i}conditionForToolPanel(e,t,i,o,n,s){let r;const a=this.getTypeKey(e);return a&&(r=vo(this,a)),n&&s&&(r=this.getLocaleTextFunc()(n,s)),null!=r?t?`${r} ${vo(this,"filterSummaryInRangeValues",[i(),o()])}`:`${r} ${i()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},Qu=class extends Dl{constructor(e,t){super(e,t,i=>{const{dataTypeSvc:o,valueSvc:n}=this.beans,s=t.column,r=o?.getDateFormatterFunction(s),a=r?r(i??void 0):i;return n.formatValue(s,null,a)}),this.filterTypeKeys=Yu}conditionToString(e,t,i,o,n){const{type:s}=e,r=qt(e.dateFrom),a=qt(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,d=t?this.formatValue.bind(this):g=>la(g,l),c=()=>null!==r?d(r):"null",u=()=>null!==a?d(a):"null";if(t){const g=this.conditionForToolPanel(s,i,c,u,o,n);if(null!=g)return g}return i?`${c()}-${u()}`:null!=r?d(r):`${s}`}};function g1(e,t){return t<e?-1:t>e?1:0}var Zu=class extends ot{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e)return void(this.lastType=this.optionsFactory.defaultOption);let i;i=e.operator?e.conditions[0]:e,this.lastType=i.type}canWeEditAfterModelFromParentFilter(e){return e?!e.operator&&this.isTypeEditable(e.type):this.isTypeEditable(this.lastType)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");this.reactive=t,this.setParams(e),t&&this.onModelUpdated(e.model)}setParams(e){const t=new xl;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const i=this.optionsFactory.defaultOption;t||(this.lastType=i),this.readOnly=!!e.filterParams.readOnly;const o=this.isTypeEditable(i);this.setEditable(o)}refresh(e){this.params=e;const t=e,i=this.reactive;if((!i||"colDef"===t.source)&&this.updateParams(e),i){const{source:o,model:n}=t;if("dataChanged"===o||"ui"===o)return;this.onModelUpdated(n)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}hasSingleInput(e){const t=this.optionsFactory.getCustomOption(e)?.numberOfInputs;return null==t||1==t}isTypeEditable(e){return!!e&&!this.readOnly&&this.hasSingleInput(e)&&["inRange","empty","blank","notBlank"].indexOf(e)<0}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},f1={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},C1={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},Ml=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function _l(e){const{allowedCharPattern:t}=e??{};return t??null}function kl(e){return null==e||isNaN(e)?null:e}function Ju(e,t){const{filter:i,filterTo:o,type:n}=e||{};return[kl(i),kl(o)].slice(0,rs(n,t))}var eh=class extends Dl{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=Yu}conditionToString(e,t,i,o,n){const{filter:s,filterTo:r,type:a}=e,l=this.formatValue.bind(this);if(t){const d=this.conditionForToolPanel(a,i,()=>l(s),()=>l(r),o,n);if(null!=d)return d}return i?`${l(s)}-${l(r)}`:null!=s?l(s):`${a}`}},th=class extends Y{constructor(e){super(),this.params=e,this.eInput=fe,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new Lo(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const i=o=>this.onValueChanged(o);this.addManagedListeners(t,{input:i,keydown:i})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t}){const{eInput:i}=this;i.setInputAriaLabel(e),void 0!==t&&i.setAutoComplete(t)}};function Tl(e){const t=e?.trim();return""===t?e:t}function ih(e,t){const{filter:i,filterTo:o,type:n}=e||{};return[i||null,o||null].slice(0,rs(n,t))}var y1={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},oh=class extends Zu{constructor(){super(...arguments),this.eFloatingFilterInputContainer=fe,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(y1)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const t=e.browserAutoComplete??!1,{inputSvc:i,defaultDebounceMs:o,readOnly:n}=this;if(i.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:t}),this.applyActive=Us(e.filterParams),!n){const s=xa(e.filterParams,o),r=St(this,this.syncUpWithParentFilter.bind(this),s);i.setValueChangedListener(r)}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,i=t.getValue();wt(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(i,!0)}syncUpWithParentFilter(e){const t="Enter"===e.key,i=this.reactive;if(i&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:o,params:n,lastType:s}=this;let r=o.getValue();if(n.filterParams.trimInput&&(r=Tl(r),o.setValue(r,!0)),i){const a=n,l=a.model,d=this.convertValue(r),c=null==d?null:{...l??{filterType:this.filterType,type:s??this.optionsFactory.defaultOption},filter:d};a.onModelChange(c,{afterFloatingFilter:!0})}else n.parentFilterInstance(a=>{a?.onFloatingFilterChanged(s||null,r||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},S1=class extends Y{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new ha),this.eTextInput=this.createManagedBean(new Lo),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),i=this.eTextInput.getGui();e.appendChild(t),e.appendChild(i),this.setupListeners(t,o=>this.onValueChanged(o)),this.setupListeners(i,o=>this.onValueChanged(o))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},Al=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],nh=class extends Dl{constructor(){super(...arguments),this.filterTypeKeys=h1}conditionToString(e,t,i,o,n){const{filter:s,filterTo:r,type:a}=e;if(t){const l=c=>()=>vo(this,"filterSummaryTextQuote",[c]),d=this.conditionForToolPanel(a,i,l(s),l(r),o,n);if(null!=d)return d}return i?`${s}-${r}`:null!=s?`${s}`:`${a}`}},x1=({filterOption:e,value:t,filterText:i})=>{if(null==i)return!1;switch(e){case"contains":return t.includes(i);case"notContains":return!t.includes(i);case"equals":return t===i;case"notEqual":return t!=i;case"startsWith":return 0===t.indexOf(i);case"endsWith":{const o=t.lastIndexOf(i);return o>=0&&o===t.length-i.length}default:return!1}},P1=e=>e,F1=e=>null==e?null:e.toString().toLowerCase(),I1={moduleName:"ClientSideRowModelFilter",version:ge,rowModels:["clientSide"],beans:[class extends Y{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=["excludeChildrenWhenTreeDataFiltering"]}wireBeans(e){this.filterManager=e.filterManager}execute(e){const{changedPath:t}=e;this.filter(t)}filter(e){const t=!!this.filterManager?.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const i=(o,n)=>{o.childrenAfterFilter=o.hasChildren()&&e&&!n?o.childrenAfterGroup.filter(s=>{const r=s.childrenAfterFilter&&s.childrenAfterFilter.length>0,a=s.data&&this.filterManager.doesRowPassFilter({rowNode:s});return r||a}):o.childrenAfterGroup,Wu(o)};if(this.doingTreeDataFiltering()){const o=(s,r)=>{if(s.childrenAfterGroup)for(let a=0;a<s.childrenAfterGroup.length;a++){const l=s.childrenAfterGroup[a],d=r||this.filterManager.doesRowPassFilter({rowNode:l});l.childrenAfterGroup?o(s.childrenAfterGroup[a],d):i(l,d)}i(s,r)};t.executeFromRootNode(s=>o(s,!1))}else t.forEachChangedNodeDepthFirst(n=>i(n,!1),!0)}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}}]},Il={moduleName:"FilterCore",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:o})=>this.onAdvFilterEnabledChanged(o),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:i}=this;this.alwaysPassFilter=i.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=i.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return"function"==typeof e&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return"function"==typeof t&&t(e)}setFilterState(e,t,i="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,i)}setFilterModel(e,t="api",i){this.isAdvFilterEnabled()?i||this.warnAdvFilters():this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){Fs(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:i,columns:o=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):ft.resolve()).then(()=>{const n={source:t,type:"filterChanged",columns:o};i&&It(n,i),this.eventSvc.dispatchEvent(n),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!Fs(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return!!this.alwaysPassFilter?.(t)||!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){const{rowNode:t}=e;return!!this.alwaysPassFilter?.(t)||!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterAllowed(e){return!this.isAdvFilterEnabled()&&!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference)return void this.advFilterModelUpdateQueue.push(e);this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return!this.isAdvFilterEnabled()&&!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){se(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}}],apiFunctions:{isAnyFilterPresent:function t1(e){return!!e.filterManager?.isAnyFilterPresent()},onFilterChanged:function i1(e,t="api"){e.filterManager?.onFilterChanged({source:t})}},css:[".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;>*{cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper,:where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}:where(.ag-floating-filter-full-body)>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>*{flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));&>*{margin-bottom:var(--ag-widget-vertical-spacing)}:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}"],dependsOn:[I1]},sh={moduleName:"FilterValue",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,i){if(!t)return;const o=e.getColDef(),{selectableFilter:n,valueSvc:s}=this.beans,r=i??n?.getFilterValueGetter(e.getColId())??o.filterValueGetter;return r?this.executeFilterValueGetter(r,t.data,e,t,o):s.getValue(e,t)}executeFilterValueGetter(e,t,i,o,n){const{expressionSvc:s,valueSvc:r}=this.beans,a=Ie(this.gos,{data:t,node:o,column:i,colDef:n,getValue:r.getValueCallback.bind(r,o)});return"function"==typeof e?e(a):s?.evaluate(e,a)}}]},br={moduleName:"ColumnFilter",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...Xd},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)});const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",i){const{colModel:o,dataTypeSvc:n,filterManager:s}=this.beans;if(n?.isPendingInference)return void this.modelUpdates.push({model:e,source:t});const r=[],a=this.getModel(!0);if(e){const l=new Set(Object.keys(e));this.allColumnFilters.forEach((d,c)=>{r.push(this.setModelOnFilterWrapper(d,e[c])),l.delete(c)}),l.forEach(d=>{const c=o.getColDefCol(d)||o.getCol(d);if(!c)return void se(62,{colId:d});if(!c.isFilterAllowed())return void se(63,{colId:d});const u=this.getOrCreateFilterWrapper(c,!0);u?r.push(this.setModelOnFilterWrapper(u,e[d],!0)):se(64,{colId:d})})}else this.model={},this.allColumnFilters.forEach(l=>{r.push(this.setModelOnFilterWrapper(l,null))});ft.all(r).then(()=>{const l=this.getModel(!0),d=[];this.allColumnFilters.forEach((c,u)=>{T(a?a[u]:null,l?l[u]:null)||d.push(c.column)}),d.length>0?s?.onFilterChanged({columns:d,source:t}):i&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:i,initialModel:o,beans:{colModel:n}}=this;if(i.forEach((s,r)=>{const a=this.getModelFromFilterWrapper(s);p(a)&&(t[r]=a)}),!e)for(const s of Object.keys(o)){const r=o[s];p(r)&&!i.has(s)&&n.getCol(s)?.isFilterAllowed()&&(t[s]=r)}return t}setState(e,t,i="api"){if(this.state.clear(),t)for(const o of Object.keys(t)){const n=t[o];this.state.set(o,{model:Ot(this.model,o),state:n})}this.setModel(e,i,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let i=!1;return e.forEach((o,n)=>{const s=o.state;null!=s&&(i=!0,t[n]=s)}),i?t:void 0}getModelFromFilterWrapper(e){const i=e.column.getColId();if(e.isHandler)return Ot(this.model,i);const o=e.filter;return o?"function"!=typeof o.getModel?(se(66),null):o.getModel():Ot(this.initialModel,i)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return!!e.size&&(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0)}updateActiveFilters(){const{colModel:t,gos:i}=this.beans,o=!!Fs(i),s=[],r=[],a=(d,c,u)=>{c&&((d=>{if(!d.isPrimary())return!0;const u=!t.isPivotActive();return!(!d.isValueActive()||!u)&&(!!t.isPivotMode()||o)})(d)?s.push(u):r.push(u))},l=[];return this.allColumnFilters.forEach(d=>{const c=d.column,u=c.getColId();if(d.isHandler)l.push(ft.resolve().then(()=>{a(c,this.isHandlerActive(c),{colId:u,isHandler:!0,handler:d.handler,handlerParams:d.handlerParams})}));else{const g=Co(d);g&&l.push(g.then(m=>{a(c,(d=>!!d&&(d.isFilterActive?d.isFilterActive():(se(67),!1)))(m),{colId:u,isHandler:!1,comp:m})}))}}),ft.all(l).then(()=>{this.activeAggregateFilters=s,this.activeColumnFilters=r})}updateFilterFlagInColumns(e,t){const i=[];return this.allColumnFilters.forEach(o=>{const n=o.column;if(o.isHandler)i.push(ft.resolve().then(()=>{this.setColFilterActive(n,this.isHandlerActive(n),e,t)}));else{const s=Co(o);s&&i.push(s.then(r=>{this.setColFilterActive(n,r.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),ft.all(i)}doFiltersPass(e,t,i){const{data:o,aggData:n}=e,s=i?this.activeAggregateFilters:this.activeColumnFilters,r=i?n:o,a=this.model;for(let l=0;l<s.length;l++){const d=s[l],{colId:c,isHandler:u}=d;if(c!==t)if(u){const{handler:g,handlerParams:m}=d;if(!g.doesFilterPass({node:e,data:r,model:Ot(a,c),handlerParams:m}))return!1}else{const g=d.comp;if("function"!=typeof g.doesFilterPass){tt(91);continue}if(!g.doesFilterPass({node:e,data:r}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:i}=this.beans,o=()=>{this.isAlive()&&i?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(o,0):o()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:i}=e,o=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",i).then(()=>{this.allColumnFilters.forEach(n=>{const{column:s,isHandler:r}=n;o!==s.getColId()&&(r&&n.handler.onAnyFilterChanged?.(),Co(n,r)?.then(a=>{"function"==typeof a?.onAnyFilterChanged&&a.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!this.gos.get("allowShowChangeAfterFilter")&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(i=>{const o=i.isHandler;o&&i.handler.onNewRowsLoaded?.();const n=Co(i,o);n&&t.push(n.then(s=>{s.onNewRowsLoaded?.()}))}),ft.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:i,colModel:o}=this.beans;return(n,s)=>{const r=s?o.getCol(s):e;return r?i.getValue(r,n,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const i=t?.filter;return i?i.isFilterActive():null!=Ot(this.initialModel,e.getColId())}isHandlerActive(e){const t=p(Ot(this.model,e.getColId()));if(t)return t;const i=this.beans.groupFilter;return!!i?.isGroupFilter(e)&&i.isFilterActive(e)}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?Co(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const i=Co(t);return i?i.then(o=>({comp:o,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const i=this.getOrCreateFilterWrapper(e,t);return i?.isHandler?i.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let i=this.cachedFilter(e);return!i&&t&&(i=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,i)),i}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return function Nh(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":function kf(e,t=!1){return(t?_f:Mf)[e??"text"]}(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,i,o,n,s){const r=()=>{const d=this.createFilterCompParams(e,n,s),c=o(d,n);return function Wg(e,t,i,o){const n=t.filter;return Cd(n)&&(t={filter:n.component,filterParams:t.filterParams}),e.getCompDetails(t,qr,o,i,!0)}(this.beans.userCompFactory,t,c,i)},a=r();return a?{compDetails:a,createFilterUi:d=>(d?r():a).newAgStackInstance()}:null}createFilterInstance(e,t,i,o){const n=this.beans.selectableFilter;n?.isSelectable(t)&&(t=n.getFilterDef(e,t));const{handler:s,handlerParams:r,handlerGenerator:a}=this.createHandler(e,t,i)??{},l=this.createFilterComp(e,t,i,o,!!s,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:s,handlerGenerator:a,handlerParams:r};const{compDetails:d,createFilterUi:c}=l;return this.isGlobalButtons&&(d.params?.buttons?.length||se(281,{colId:e.getColId()})),{compDetails:d,handler:s,handlerGenerator:a,handlerParams:r,createFilterUi:c}}createBaseFilterParams(e,t){const{filterManager:i,rowModel:o}=this.beans;return Ie(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:n=>i?.doesRowPassOtherFilters(e.getColId(),n)??!0,rowModel:o})}createFilterCompParams(e,t,i,o){const n=this.filterChangedCallbackFactory(e),s=this.createBaseFilterParams(e,o);if(s.filterChangedCallback=n,s.filterModifiedCallback=o?()=>{}:r=>this.filterModified(e,r),t){const r=s,a=e.getColId(),l=Ot(this.model,a);r.model=l,r.state=this.state.get(a)??{model:l},r.onModelChange=(d,c)=>{this.updateStoredModel(a,d),this.refreshHandlerAndUi(e,d,"ui",!1,c).then(()=>{n({...c,source:"columnFilter"})})},r.onStateChange=d=>{this.updateState(e,d),this.updateOrRefreshFilterUi(e)},r.onAction=(d,c,u)=>{this.updateModel(e,d,c),this.dispatchLocalEvent({type:"filterAction",column:e,action:d,event:u})},r.getHandler=()=>this.getHandler(e,!0),r.onUiChange=d=>this.filterUiChanged(e,d),r.source=i}return s}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,i){const o=t(),n={created:!0,create:t,filterParams:e.params,compDetails:e,promise:o};return o.then(i),n}createFilterWrapper(e){const{compDetails:t,handler:i,handlerGenerator:o,handlerParams:n,createFilterUi:s}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),a=>a),r=e.getColId();if(i)return delete this.initialModel[r],i.init?.({...n,source:"init",model:Ot(this.model,r)}),{column:e,isHandler:!0,handler:i,handlerGenerator:o,handlerParams:n,filterUi:this.createFilterUiForHandler(t,s)};if(s){const a={column:e,filterUi:null,isHandler:!1};return a.filterUi=this.createFilterUiLegacy(t,s,l=>{a.filter=l??void 0}),a}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,i){const{gos:o,frameworkOverrides:n,registry:s}=this.beans;let r;const l=o.get("enableFilterHandlers"),d=l?(m=>{const w=m.filter;return Cd(w)?w.handler||(r=w.doesFilterPass,r?()=>({doesFilterPass:r}):void 0):"string"==typeof w?w:void 0})(t):void 0,c=m=>()=>this.createBean(s.createDynamicBean(m,!0));let u,g;if("string"==typeof d){const m=o.get("filterHandlers")?.[d];null!=m?u=m:bf.has(d)&&(u=c(d),g=d)}else u=d;if(!u){let m;const{compName:w,jsComp:b,fwComp:x}=Sd(n,t);w?m=w:null==b&&null==x&&!0===t.filter&&(m=i),g=this.handlerMap[m],g&&(u=c(g))}return u?{filterHandler:u,handlerNameOrCallback:r??g}:l?(ut(o)&&se(277,{colId:e.getColId()}),JS):void 0}createHandler(e,t,i){const o=this.createHandlerFunc(e,t,i);if(!o)return;const n=Xr(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:s,filterHandler:r}=o,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,r,n);return{handler:a,handlerParams:l,handlerGenerator:s??r}}createHandlerFromFunc(e,t,i){const o=e.getColDef();return{handler:t(Ie(this.gos,{column:e,colDef:o})),handlerParams:this.createHandlerParams(e,i)}}createHandlerParams(e,t){const i=e.getColDef(),o=e.getColId(),n=this.filterChangedCallbackFactory(e);return Ie(this.gos,{colDef:i,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:s=>this.beans.filterManager?.doesRowPassOtherFilters(o,s)??!0,onModelChange:(s,r)=>{this.updateStoredModel(o,s),this.refreshHandlerAndUi(e,s,"handler",!1,r).then(()=>{n({...r,source:"columnFilter"})})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:i,groupFilter:o}=this.beans;this.allColumnFilters.forEach((s,r)=>{let a;a=s.column.isPrimary()?t.getColDefCol(r):t.getCol(r),(!a||a!==s.column)&&(e.push(s.column),this.disposeFilterWrapper(s,"columnChanged"),this.disposeColumnListener(r))});const n=o&&e.every(s=>o.isGroupFilter(s));e.length>0&&!n&&i?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const i=this.beans.groupFilter;return!i?.isGroupFilter(e)||i.isFilterAllowed(e)}getFloatingFilterCompDetails(e,t){const{userCompFactory:i,frameworkOverrides:o,selectableFilter:n}=this.beans,r=e.getColDef(),a=n?.isSelectable(r)?n.getFilterDef(e,r):r,l=function Lf(e,t,i){if(null==t)return null;let o=null;const{compName:n,jsComp:s,fwComp:r}=Sd(e,t);return n?o={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[n]:null==s&&null==r&&!0===t.filter&&(o=i()),o}(o,a,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",d=this.gos.get("enableFilterHandlers"),c=Xr(i,a,this.createFilterCompParams(e,d,"init",!0)),u=Ie(this.gos,{column:e,filterParams:c,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:g=>{const m=this.getOrCreateFilterUi(e);m?.then(w=>{g(Un(w))})},showParentFilter:t});if(d){const g=u,m=e.getColId(),w=this.filterChangedCallbackFactory(e);g.onUiChange=b=>this.floatingFilterUiChanged(e,b),g.model=Ot(this.model,m),g.onModelChange=(b,x)=>{this.updateStoredModel(m,b),this.refreshHandlerAndUi(e,b,"floating",!0,x).then(()=>{w({...x,source:"columnFilter"})})},g.getHandler=()=>this.getHandler(e,!0),g.source="init"}return function qg(e,t,i,o){return e.getCompDetails(t,Mg,o,i)}(i,r,u,l)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,i,o){const n="paramsUpdated";if(e.isHandler){const s=t.getColId();delete this.initialModel[s],this.state.delete(s);const r=e.filterUi,a=this.createFilterUiForHandler(i,o);e.filterUi=a;const l=this.eventSvc;r?.created?r.promise.then(d=>{this.destroyBean(d),l.dispatchEvent({type:"filterDestroyed",source:n,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:n,column:t})}else this.destroyFilter(t,n)}destroyFilter(e,t="api"){const i=e.getColId(),o=this.allColumnFilters.get(i);this.disposeColumnListener(i),delete this.initialModel[i],o&&this.disposeFilterWrapper(o,t).then(n=>{n&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let i=!1;const{column:o,isHandler:n,filterUi:s}=e,r=o.getColId();n&&(i=this.isHandlerActive(o),this.destroyBean(e.handler),delete this.model[r],this.state.delete(r));const a=()=>{this.setColFilterActive(o,!1,"filterDestroyed"),this.allColumnFilters.delete(r),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:o})};if(s){if(s.created)return s.promise.then(l=>(i=n?i:!!l?.isFilterActive(),this.destroyBean(l),a(),i));a()}return ft.resolve(i)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const i=this.allColumnFilters.get(e);if(!i)return;const o=this.beans,n=i.column,s=n.getColDef(),r=n.isFilterAllowed(),a=this.getDefaultFilter(n),l=o.selectableFilter,d=l?.isSelectable(s)?l.getFilterDef(n,s):s,c=r?this.createHandlerFunc(n,d,this.getDefaultFilter(n)):void 0,u=!!c,g=i.isHandler;if(g!=u)return void this.destroyFilter(n,"paramsUpdated");const{compDetails:m,createFilterUi:w}=(r?this.createFilterComp(n,d,a,x=>x,u,"colDef"):null)??{compDetails:null,createFilterUi:null},b=m?.params??Xr(o.userCompFactory,d,this.createFilterCompParams(n,u,"colDef"));if(g){const x=c?.handlerNameOrCallback??c?.filterHandler,A=Ot(this.model,e);if(i.handlerGenerator!=x){const O=i.handler,{handler:V,handlerParams:te}=this.createHandlerFromFunc(n,c.filterHandler,b);i.handler=V,i.handlerParams=te,i.handlerGenerator=x,delete this.model[e],V.init?.({...te,source:"init",model:null}),this.destroyBean(O),null!=A&&this.beans.filterManager?.onFilterChanged({columns:[n],source:t})}else{const O=this.createHandlerParams(n,m?.params);i.handlerParams=O,i.handler.refresh?.({...O,source:"colDef",model:A})}}!this.areFilterCompsDifferent(i.filterUi?.compDetails??null,m)&&i.filterUi&&m?(i.filterUi.filterParams=b,Co(i,g)?.then(x=>{!1===(!x?.refresh||x.refresh(b))?this.destroyFilterUi(i,n,m,w):this.dispatchLocalEvent({type:"filterParamsChanged",column:n,params:b})})):this.destroyFilterUi(i,n,m,w)}refreshHandlerAndUi(e,t,i,o,n){const s=this.cachedFilter(e);if(!s)return o&&this.getOrCreateFilterWrapper(e,!0),ft.resolve();if(!s.isHandler)return ft.resolve();const{filterUi:r,handler:a,handlerParams:l}=s;return function yf(e,t,i,o,n,s,r){return t.refresh?.({...i,model:o,source:s,additionalEventAttributes:r}),e().then(a=>{if(a){const{filter:l,filterParams:d}=a;Yd(l,d,o,n,s,r)}})}(()=>{if(r){const{created:d,filterParams:c}=r;if(d)return r.promise.then(u=>u?{filter:u,filterParams:c}:void 0);r.refreshed=!0}return ft.resolve(void 0)},a,l,t,this.state.get(e.getColId())??{model:t},i,n)}setColumnFilterWrapper(e,t){const i=e.getColId();this.allColumnFilters.set(i,t),this.allColumnListeners.set(i,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(i)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:i}=e,{componentClass:o}=t;return!(i===o||i?.render&&o?.render&&i.render===o.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);const i=this.getOrCreateFilterUi(t);return i?new Promise(o=>{i.then(n=>{o(Un(n))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:i})=>{this.setModelForColumn(e,t).then(()=>i())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:o,model:n}=this,s=e.getColId(),r=o.get(s);return r?r.model??null:Ot(n,s)}const i=this.cachedFilter(e);return i?this.getModelFromFilterWrapper(i):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let i=()=>{};const o=new Promise(n=>{i=n});return this.columnModelUpdates.push({key:e,model:t,resolve:i}),o}return new Promise(i=>{this.setModelForColumnLegacy(e,t).then(o=>i(o))})}getStateForColumn(e){return this.state.get(e)??{model:Ot(this.model,e)}}setModelForColumnLegacy(e,t){const i=this.beans.colModel.getColDefCol(e),o=i?this.getOrCreateFilterWrapper(i,!0):null;return o?this.setModelOnFilterWrapper(o,t):ft.resolve()}setColDefPropsForDataType(e,t,i){const o=e.filter,n=!0===o?this.getDefaultFilterFromDataType(()=>t.baseDataType):o;if("string"!=typeof n)return;let s,r;const a=this.beans,{filterParams:l,filterValueGetter:d}=e;({filterParams:s,filterValueGetter:r}="agMultiColumnFilter"===n?a.multiFilter?.getParamsForDataType(l,d,t,i)??{}:function Df(e,t,i,o,n,s,r){let a=t,l=i;const d="agSetColumnFilter"===e;!l&&"object"===o.baseDataType&&!d&&(l=({column:m,node:w})=>n({column:m,node:w,value:s.valueSvc.getValue(m,w)}));const g=(0,(d?Fa:Pa)[o.baseDataType])({dataTypeDefinition:o,formatValue:n,t:r});return a="object"==typeof t?{...g,...t}:g,{filterParams:a,filterValueGetter:l}}(n,l,d,t,i,a,this.getLocaleTextFunc())),e.filterParams=s,r&&(e.filterValueGetter=r)}setColFilterActive(e,t,i,o){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",i)),e.dispatchColEvent("filterChanged",i,o)}setModelOnFilterWrapper(e,t,i){return new ft(o=>{if(e.isHandler){const s=e.column,r=s.getColId(),a=this.model[r];return this.updateStoredModel(r,t),i&&t===a?void o():void this.refreshHandlerAndUi(s,t,"api").then(()=>o())}const n=Co(e);n?n.then(s=>{if("function"!=typeof s?.setModel)return se(65),void o();(s.setModel(t)||ft.resolve()).then(()=>o())}):o()})}updateStoredModel(e,t){p(t)?this.model[e]=t:delete this.model[e];const i=this.state.get(e);this.state.set(e,{model:t,state:i?.state})}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(i=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:i,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,i){const o=e.getColId(),n=this.cachedFilter(e),s=()=>n?.filterUi;Zd(t,s,()=>Ot(this.model,o),()=>this.state.get(o),r=>this.updateState(e,r),r=>s()?.filterParams?.onModelChange(r,i),n?.isHandler?n.handler.processModelToApply?.bind(n.handler):void 0)}updateAllModels(e,t){const i=[];this.allColumnFilters.forEach((o,n)=>{const s=this.beans.colModel.getColDefCol(n);s&&Zd(e,()=>o.filterUi,()=>Ot(this.model,n),()=>this.state.get(n),r=>this.updateState(s,r),r=>{this.updateStoredModel(n,r),this.dispatchLocalEvent({type:"filterAction",column:s,action:e}),i.push(this.refreshHandlerAndUi(s,r,"ui"))},o?.isHandler?o.handler.processModelToApply?.bind(o.handler):void 0)}),i.length&&ft.all(i).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();Qd(()=>this.cachedFilter(e)?.filterUi,()=>Ot(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:i}=this;for(const n of i)if("COLUMN_MENU"===n.source)return!1;let o=!1;for(const n of e.keys()){const s=e.get(n);if(!1===s.valid)return!1;(s.model??null)!==Ot(t,n)&&(o=!0)}return o}hasUnappliedModel(e){const{model:t,state:i}=this;return(i.get(e)?.model??null)!==Ot(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if("newFiltersToolPanel"===t)return!0;const i=this.beans.filterPanelSvc;return!!i?.isActive&&!!i.getState(e.getColId())}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}},class extends Y{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,i,o){e&&!e.isColumn||this.showPopup(e,n=>{this.popupSvc?.positionPopupUnderMouseEvent({column:e,type:i,mouseEvent:t,ePopup:n})},i,t.target,ii(this.gos),o)}showMenuAfterButtonClick(e,t,i,o){if(e&&!e.isColumn)return;let n=-1,s="left";const r=ii(this.gos);!r&&this.gos.get("enableRtl")&&(n=1,s="right");const a=r?void 0:4*n,l=r?void 0:4;this.showPopup(e,d=>{this.popupSvc?.positionPopupByComponent({type:i,eventSource:t,ePopup:d,nudgeX:a,nudgeY:l,alignSide:s,keepWithinBounds:!0,position:"under",column:e})},i,t,r,o)}showPopup(e,t,i,o,n,s){const r=e?this.createBean(new Pf(e,"COLUMN_MENU")):void 0;if(this.activeMenu=r,!r?.hasFilter()||!e)return void tt(57);const a=xt({tag:"div",cls:"ag-menu"+(n?"":" ag-filter-menu"),role:"presentation"});let l;[this.tabListener]=this.addManagedElementListeners(a,{keydown:b=>this.trapFocusWithin(b,a)}),a.appendChild(r?.getGui());const c=function zh(e){return!ii(e)}(this.gos)?o??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,g=this.getLocaleTextFunc(),m=n&&"columnFilter"!==i?g("ariaLabelColumnMenu","Column Menu"):g("ariaLabelColumnFilter","Column Filter"),w=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:b=>{Ec(e,!1,"contextMenu");const x=b instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),x&&o&&Dt(o)&&Md(o)?.focus({preventScroll:!0}),r?.afterGuiDetached(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,i,e),s?.()},positionCallback:()=>t(a),anchorToElement:c,ariaLabel:m});w&&(this.hidePopup=l=w.hideFunc),r.afterInit().then(()=>{t(a),r.afterGuiAttached({container:i,hidePopup:l})}),Ec(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,i,e)}trapFocusWithin(e,t){"Tab"!==e.key||e.defaultPrevented||Io(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),Ao(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,i){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:i??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}}],dynamicBeans:{headerFilterCellCtrl:class extends Na{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,i,o,n){this.comp=e;const s=zn(this,this.beans.context,n);this.eButtonShowMainFilter=i,this.eFloatingFilterBody=o,this.setGui(t,s),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(s),this.setupLeft(s),this.setupHover(s),this.setupFocus(s),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(s),this.setupUi(),s.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(s);const r=()=>this.onColDefChanged(s);s.addManagedListeners(this.column,{colDefChanged:r}),s.addManagedEventListeners({filterSwitched:({column:a})=>{a===this.column&&r()}}),s.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this;return Ie(t.gos,{colDef:e.colDef,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef();this.active=!!e.filter&&!!e.floatingFilter}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=pi("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new ln(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();ee(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(le(t)===this.eGui)return;const n=Io(t,this.eGui,null,e.shiftKey);if(n)return t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),void n.focus();const s=this.findNextColumnWithFloatingFilter(e.shiftKey);s&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:s},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let i=this.column;do{if(i=e?t.getColBefore(i):t.getColAfter(i),!i)break}while(!i.getColDef().filter||!i.getColDef().floatingFilter);return i}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case N_UP:case N_DOWN:case N_LEFT:case N_RIGHT:if(t)return;Vo(e);case"Enter":t&&Ao(this.eGui)&&e.preventDefault();break;case"Escape":t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const i=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),o=!!e.relatedTarget&&ai(e.relatedTarget,"ag-floating-filter");if(i&&o&&e.target===this.eGui){const n=this.lastFocusEvent;n&&n&&"Tab"===n.key&&Ao(this.eGui,n.shiftKey)}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new Ga(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!ii(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:i,gos:o}=this,n=s=>{if(!("filterDestroyed"!==s?.source||this.isAlive()&&t?.isAlive()))return;const r=this.comp.getFloatingFilterComp();r&&r.then(a=>{if(a){if(o.get("enableFilterHandlers")){const c=s;let u="filter";return c?.afterFloatingFilter?u="ui":c?.afterDataChange?u="dataChanged":"api"===s?.source&&(u="api"),void this.updateFloatingFilterParams(this.userCompDetails,u)}const l=t?.getCurrentFloatingFilterParentModel(i),d=s?{...s,columns:s.columns??[],source:"api"===s.source?"api":"columnFilter"}:null;a.onParentModelChanged(l,d)}})};[this.destroySyncListener]=e.addManagedListeners(i,{filterChanged:n}),t?.isFilterActive(i)&&n(null)}setupWidth(e){const t=()=>{const i=`${this.column.getActualWidth()}px`;this.comp.setWidth(i)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const i=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const o=this.beans.colFilter,n=this.active?o?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,s=this.comp.getFloatingFilterComp();s&&n?s.then(r=>{!r||o?.areFilterCompsDifferent(this.userCompDetails??null,n)?this.updateCompDetails(e,n,i):this.updateFloatingFilterParams(n,"colDef")}):this.updateCompDetails(e,n,i)}updateCompDetails(e,t,i){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),i&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let i=e.params;this.comp.getFloatingFilterComp()?.then(o=>{"function"==typeof o?.refresh&&(this.gos.get("enableFilterHandlers")&&(i={...i,model:Ot(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),o.refresh(i))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}}},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:function zS(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()},getColumnFilterInstance:function WS(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)},destroyFilter:function US(e,t){const i=e.colModel.getColDefCol(t);if(i)return e.colFilter?.destroyFilter(i,"api")},setFilterModel:function $S(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))},getFilterModel:function jS(e){return e.filterManager?.getFilterModel()??{}},getColumnFilterModel:function KS(e,t,i){const{gos:o,colModel:n,colFilter:s}=e;i&&!o.get("enableFilterHandlers")&&(se(288),i=!1);const r=n.getColDefCol(t);return r?s?.getModelForColumn(r,i)??null:null},setColumnFilterModel:function qS(e,t,i){return e.filterManager?.setColumnFilterModel(t,i)??Promise.resolve()},showColumnFilter:function XS(e,t){const i=e.colModel.getCol(t);i?e.menuSvc?.showFilterMenu({column:i,containerType:"columnFilter",positionBy:"auto"}):tt(12,{colKey:t})},hideColumnFilter:function YS(e){e.menuSvc?.hideFilterMenu()},getColumnFilterHandler:function QS(e,t){const i=e.colModel.getCol(t);if(i)return e.colFilter?.getHandler(i,!0);tt(12,{colKey:t})},doFilterAction:function ZS(e,t){const{colModel:i,colFilter:o,gos:n}=e;if(!n.get("enableFilterHandlers"))return void se(287);const{colId:s,action:r}=t;if(s){const a=i.getColById(s);a&&o?.updateModel(a,r)}else o?.updateAllModels(r)}},dependsOn:[Il,vr,sh,HS]},O1={moduleName:"CustomFilter",version:ge,userComponents:{agReadOnlyFloatingFilter:class extends ot{constructor(){super(r1,[Hs]),this.eFloatingFilterText=fe}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){const i=e,o=i.getHandler();if(o.getModelAsString){const n=o.getModelAsString(i.model);this.eFloatingFilterText.setValue(n)}}}onParentModelChanged(e){null!=e?this.params.parentFilterInstance(t=>{if(t.getModelAsString){const i=t.getModelAsString(e);this.eFloatingFilterText.setValue(i)}}):this.eFloatingFilterText.setValue("")}refresh(e){this.init(e)}}},dependsOn:[br]},L1={moduleName:"TextFilter",version:ge,dependsOn:[br],userComponents:{agTextColumnFilter:{classImp:class extends Pl{constructor(){super("textFilter",ih,Al),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),i={filterType:this.filterType,type:t},o=this.getValues(e);return o.length>0&&(i.filter=o[0]),o.length>1&&(i.filterTo=o[1]),i}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(i,o,n,s)=>{o<s&&t.push(E(i.getValue()))}),t}createEValue(){const e=xt({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:i}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,i,"to"),e}createFromToElement(e,t,i){const o=this.createManagedBean(new Lo);o.addCss(`ag-filter-${i}`),o.addCss("ag-filter-filter"),t.push(o),e.appendChild(o.getGui())}removeEValues(e,t){const i=s=>this.removeComponents(s,e,t),{eValuesFrom:o,eValuesTo:n}=this;i(o),i(n)}},params:{useForm:!0}},agTextColumnFloatingFilter:class extends oh{constructor(){super(...arguments),this.FilterModelFormatterClass=nh,this.filterType="text",this.defaultOptions=Al}createFloatingFilterInputService(){return this.createManagedBean(new th)}}},dynamicBeans:{agTextColumnFilterHandler:class extends qu{constructor(){super(ih,Al),this.filterType="text",this.FilterModelFormatterClass=nh}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??x1,this.formatter=t.textFormatter??(t.caseSensitive?P1:F1)}evaluateNullValue(e){return!!e&&["notEqual","notContains","blank"].indexOf(e)>=0}evaluateNonNullValue(e,t,i,o){const n=e.map(g=>this.formatter(g))||[],s=this.formatter(t),{api:r,colDef:a,column:l,context:d,filterParams:{textFormatter:c}}=this.params;if("blank"===i.type)return wr(t);if("notBlank"===i.type)return!wr(t);const u={api:r,colDef:a,column:l,context:d,node:o.node,data:o.data,filterOption:i.type,value:s,textFormatter:c};return n.some(g=>this.matcher({...u,filterText:g}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=i=>{const o={...i},{filter:n,filterTo:s}=i;return n&&(o.filter=Tl(n)??null),s&&(o.filterTo=Tl(s)??null),o};return sc(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}}}},B1={moduleName:"NumberFilter",version:ge,dependsOn:[br],userComponents:{agNumberColumnFilter:{classImp:class extends Pl{constructor(){super("numberFilter",Ju,Ml),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}setElementValue(e,t,i){const{numberFormatter:o}=this.params,n=!i&&o?o(t??null):t;super.setElementValue(e,n)}createEValue(){const e=_l(this.params),t=xt({tag:"div",cls:"ag-filter-body",role:"presentation"});return this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t}createFromToElement(e,t,i,o){const n=this.createManagedBean(o?new Lo({allowedCharPattern:o}):new ha);n.addCss(`ag-filter-${i}`),n.addCss("ag-filter-filter"),t.push(n),e.appendChild(n.getGui())}removeEValues(e,t){const i=o=>this.removeComponents(o,e,t);i(this.eValuesFrom),i(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(i,o,n,s)=>{o<s&&t.push(kl(this.stringToFloat(i.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}stringToFloat(e){if("number"==typeof e)return e;let t=E(e);null!=t&&""===t.trim()&&(t=null);const i=this.params.numberParser;return i?i(t):null==t||"-"===t.trim()?null:Number.parseFloat(t)}createCondition(e){const t=this.getConditionType(e),i={filterType:this.filterType,type:t},o=this.getValues(e);return o.length>0&&(i.filter=o[0]),o.length>1&&(i.filterTo=o[1]),i}getInputs(e){const{eValuesFrom:t,eValuesTo:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>{t.getInputElement().validity.valid||(e=!0)}),e}},params:{useForm:!0}},agNumberColumnFloatingFilter:class extends oh{constructor(){super(...arguments),this.FilterModelFormatterClass=eh,this.filterType="number",this.defaultOptions=Ml}updateParams(e){_l(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=_l(e.filterParams),this.createManagedBean(this.allowedCharPattern?new th({config:{allowedCharPattern:this.allowedCharPattern}}):new S1)}convertValue(e){return e?Number(e):null}}},dynamicBeans:{agNumberColumnFilterHandler:class extends Xu{constructor(){super(Ju,Ml),this.filterType="number",this.FilterModelFormatterClass=eh}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}}}},V1={moduleName:"DateFilter",version:ge,dependsOn:[br],userComponents:{agDateColumnFilter:{classImp:class extends Pl{constructor(){super("dateFilter",$u,Fl),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=1e3,this.maxValidYear=Ku,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e)}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(l,d)=>{const c=e[l];if(null!=c){if(!isNaN(c))return null==c?d:Number(c);se(82,{param:l})}return d},i=t("minValidYear",1e3),o=t("maxValidYear",Ku);this.minValidYear=i,this.maxValidYear=o,i>o&&se(83);const{minValidDate:n,maxValidDate:s}=e,r=n instanceof Date?n:qt(n);this.minValidDate=r;const a=s instanceof Date?s:qt(s);this.maxValidDate=a,r&&a&&r>a&&se(84)}createDateCompWrapper(e){const{beans:{userCompFactory:t,context:i,gos:o},params:n}=this,s=new Uu(i,t,n.colDef,Ie(o,{onDateChanged:()=>this.onUiChanged(),filterParams:n,location:"filter"}),e);return this.addDestroyFunc(()=>s.destroy()),s}setElementValue(e,t){e.setDate(t)}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=xt({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,i,o){const n=xt({tag:"div",cls:`ag-filter-${o} ag-filter-date-${o}`});t.push(n),e.appendChild(n),i.push(this.createDateCompWrapper(n))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),ss(this.eConditionPanelsFrom,e,t),ss(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,i){const o=ss(e,t,i);for(const n of o)n.destroy()}isValidDateValue(e){if(null===e)return!1;const{minValidDate:t,maxValidDate:i,minValidYear:o,maxValidYear:n}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<o)return!1;if(i){if(e>i)return!1}else if(e.getUTCFullYear()>n)return!1;return!0}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachInput((i,o,n,s)=>{n!==e||!t||o>=s||(t=t&&this.isValidDateValue(i.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),i={},o=this.getValues(e),n=this.params.useIsoSeparator?"T":" ";return o.length>0&&(i.dateFrom=oi(o[0],!0,n)),o.length>1&&(i.dateTo=oi(o[1],!0,n)),{dateFrom:null,dateTo:null,filterType:this.filterType,type:t,...i}}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),i=e("ariaFilterValue","Filter Value");this.forEachInput(o=>{o.setInputPlaceholder(t),o.setInputAriaLabel(i)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:i}=this;return e>=t.length?[null,null]:[t[e],i[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(i,o,n,s)=>{o<s&&t.push(i.getDate())}),t}translate(e){return super.translate("lessThan"===e?"before":"greaterThan"===e?"after":e)}},params:{useForm:!0}},agDateInput:class extends ot{constructor(){super(C1,[Hs]),this.eDateInput=fe,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply)return this.applyOnFocusOut=!e,void(e&&this.params.onDateChanged());e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}setParams(e){const t=this.eDateInput.getInputElement(),i=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=i&&po();const{minValidYear:o,maxValidYear:n,minValidDate:s,maxValidDate:r,buttons:a,includeTime:l,colDef:d}=e.filterParams||{},c=this.beans.dataTypeSvc,u=l??c?.getDateIncludesTimeFlag?.(d.cellDataType)??!1;if(i?u?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text",s&&o&&se(85),r&&n&&se(86),s&&r){const[g,m]=[s,r].map(w=>w instanceof Date?w:qt(w));g&&m&&g.getTime()>m.getTime()&&se(87)}s?t.min=s instanceof Date?la(s):s:o&&(t.min=`${o}-01-01`),r?t.max=r instanceof Date?la(r):r:n&&(t.max=`${n}-12-31`),this.isApply="floatingFilter"===e.location&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return qt(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,i=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(oi(e,i))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}},agDateColumnFloatingFilter:class extends Zu{constructor(){super(f1,[Hs]),this.eReadOnlyText=fe,this.eDateWrapper=fe,this.FilterModelFormatterClass=Qu,this.filterType="date",this.defaultOptions=Fl}setParams(e){super.setParams(e),this.createDateComponent();const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const i=e?qt(e.dateFrom):null;this.dateComp.setDate(i),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){it(this.eDateWrapper,e),it(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){const e=this.dateComp.getDate();if(this.reactive){const t=this.params;t.onUiChange();const i=t.model,o=oi(e),n=null==o?null:{...i??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:o};t.onModelChange(n,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=xa(e,this.defaultDebounceMs);return Ie(this.gos,{onDateChanged:St(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:i,params:o}=this;this.dateComp=new Uu(e,t,o.column.getColDef(),this.getDateComponentParams(),i,n=>{n.setInputAriaLabel(this.getAriaLabel(o))}),this.addDestroyFunc(()=>this.dateComp.destroy())}}},dynamicBeans:{agDateColumnFilterHandler:class extends Xu{constructor(){super($u,Fl),this.filterType="date",this.FilterModelFormatterClass=Qu}comparator(){return this.params.filterParams.comparator??g1}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}}}},H1={moduleName:"QuickFilterCore",version:ge,rowModels:["clientSide"],beans:[class extends Y{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",i=>this.setFilter(i.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:i,pivotResultCols:o}=this.beans,n=t.isPivotMode(),s=e?.getColumns(),r=t.getColDefCols();let a=(n&&!i.get("applyQuickFilterBeforePivotOrAgg")?o?.getPivotResultCols()?.list:r)??[];s&&(a=a.concat(s)),this.colsToUse=i.get("includeHiddenColumnsInQuickFilter")?a:a.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return null!==this.quickFilter}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(i=>t?this.doesRowPassCache(e,i):this.doesRowPassNoCache(e,i))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;this.quickFilterParts=e?t?t(e):e.split(" "):null}parseFilter(e){return p(e)?e.toUpperCase():null}setFilter(e){if(null!=e&&"string"!=typeof e)return void se(70,{newFilter:e});const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),i=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,i&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(i=>{const o=this.getTextForColumn(i,e);return p(o)&&o.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let i;e?(this.checkGenerateAggText(t),i=t.quickFilterAggregateText):i=this.getAggText(t);const{quickFilterParts:o,matcher:n}=this;return n(o,i)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let i=this.beans.filterValueSvc.getValue(e,t);const o=e.getColDef();if(o.getQuickFilterText){const n=Ie(this.gos,{value:i,node:t,data:t.data,column:e,colDef:o});i=o.getQuickFilterText(n)}return p(i)?i.toString().toUpperCase():null}getAggText(e){const t=[];for(const i of this.colsToUse){const o=this.getTextForColumn(i,e);p(o)&&t.push(o)}return t.join("\n")}}],dependsOn:[Il,sh]},G1={moduleName:"QuickFilter",version:ge,apiFunctions:{isQuickFilterPresent:function _1(e){return!!e.quickFilter?.isFilterPresent()},getQuickFilter:function k1(e){return e.quickFilter?.getText()},resetQuickFilter:function T1(e){e.quickFilter?.resetCache()}},dependsOn:[H1]},N1={moduleName:"ExternalFilter",version:ge,dependsOn:[Il]},Ol=(e,t,i)=>{const{editModelSvc:o}=e,n=o?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,s=o?.getRowValidationModel().getRowValidation(t)?.errorMessages,r=n||s;return r?.length?r.join(i("tooltipValidationErrorSeparator",". ")):void 0},rh={moduleName:"Tooltip",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,i,o){e&&t.destroyBean(e);const n=this.gos,s=Cr(n),{column:r,eGui:a}=t,l=r.getColDef();!o&&s&&!l.headerComponent&&(o=ci(()=>a.querySelector(".ag-header-cell-text")));const d="header",u=this.beans.colNames.getDisplayNameForColumn(r,"header",!0),g=i??u;let w=this.createTooltipFeature({getGui:()=>a,getLocation:()=>d,getTooltipValue:()=>i??l?.headerTooltipValueGetter?.(Ie(n,{location:d,colDef:l,column:r,value:g,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:o,getAdditionalParams:()=>({column:r,colDef:r.getColDef()})});return w&&(w=t.createBean(w),t.setRefreshFunction("tooltip",()=>w.refreshTooltip())),w}setupHeaderGroupTooltip(e,t,i,o){e&&t.destroyBean(e);const n=this.gos,s=Cr(n),{column:r,eGui:a}=t,l=r.getColGroupDef();!o&&s&&!l?.headerGroupComponent&&(o=ci(()=>a.querySelector(".ag-header-group-text")));const d="headerGroup",u=this.beans.colNames.getDisplayNameForColumnGroup(r,"header"),g=i??u,w=this.createTooltipFeature({getGui:()=>a,getLocation:()=>d,getTooltipValue:()=>i??l?.headerTooltipValueGetter?.(Ie(n,{location:d,colDef:l,column:r,value:g,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:o,getAdditionalParams:()=>{const b={column:r};return l&&(b.colDef=l),b}});return w&&t.createBean(w)}enableCellTooltipFeature(e,t,i){const{beans:o}=this,{gos:n,editSvc:s}=o,{column:r,rowNode:a}=e;let l="cell";const c=Cr(n);return i||(i=c&&!e.isCellRenderer()?()=>{const g=!!s?.isEditing(e);if(!g&&Ol(o,e,this.getLocaleTextFunc()))return!0;if(!r.isTooltipEnabled())return!1;const b=ci(()=>{const x=e.eGui;return 0===x.children.length?x:x.querySelector(".ag-cell-value")});return!g&&b()}:()=>!s?.isEditing(e)),this.createTooltipFeature({getGui:()=>e.eGui,getLocation:()=>l,getTooltipValue:null!=t?()=>t:()=>{const m=!s?.isEditing(e)&&Ol(o,e,this.getLocaleTextFunc());if(m)return l="cellEditor",m;l="cell";const w=r.getColDef(),b=a.data;if(w.tooltipField&&p(b))return Jn(b,w.tooltipField,r.isTooltipFieldContainsDots());const x=w.tooltipValueGetter;return x?x(Ie(n,{location:"cell",colDef:r.getColDef(),column:r,rowIndex:e.cellPosition.rowIndex,node:a,data:a.data,value:e.value,valueFormatted:e.valueFormatted})):null},shouldDisplayTooltip:i,getAdditionalParams:()=>({column:r,colDef:r.getColDef(),rowIndex:e.cellPosition.rowIndex,node:a,data:a.data,valueFormatted:e.valueFormatted})},o)}setupFullWidthRowTooltip(e,t,i,o){const n={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>i,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:o},s=this.beans,r=s.context;e&&t.destroyBean(e,r);const a=this.createTooltipFeature(n,s);if(a)return t.createBean(a,r)}setupCellEditorTooltip(e,t){const{beans:i}=this,{context:o}=i,n=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!n)return;const r=this.createTooltipFeature({getGui:()=>n,getTooltipValue:()=>Ol(i,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:a}=i,l=a?.getRowValidationModel()?.getRowValidationMap(),d=a?.getCellValidationModel()?.getCellValidationMap();return!!l&&l.size>0||!!d&&d.size>0}},i);return r?e.createBean(r,o):void 0}initCol(e){const{colDef:t}=e;e.tooltipEnabled=p(t.tooltipField)||p(t.tooltipValueGetter)||p(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}}],dynamicBeans:{tooltipFeature:Nd,highlightTooltipFeature:class extends Nd{constructor(e,t,i){super(e,i),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){1===this.tooltipMode&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode="focus"===e?1:0}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},tooltipStateManager:class extends nf{createTooltipComp(e,t){(function Kg(e,t){return e.getCompDetails(t.colDef,Dg,"agTooltipComponent",t,!0)})(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}}},userComponents:{agTooltipComponent:class extends Yr{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,i=this.getGui();i.textContent=Z(t);const o=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();i.classList.add(`ag-${o}-tooltip`)}}},dependsOn:[vr],css:[".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}"]},mn=class{constructor(e){this.cellValueChanges=e}},Ll=class extends mn{constructor(e,t,i,o){super(e),this.initialRange=t,this.finalRange=i,this.ranges=o}},ah=class{constructor(e){this.actionStack=[],this.maxStackSize=e||10,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},q1={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},yr=class extends tr{constructor(e){super(),this.cellEditorInput=e,this.eEditor=fe}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:i}=this,{cellStartedEdit:o,eventKey:n,suppressPreventDefault:s}=e;i.getInputElement().setAttribute("title",""),t.init(i,e);let r,a=!0;o?(this.focusAfterAttached=!0,"Backspace"===n||"Delete"===n?r="":n&&1===n.length?s?a=!1:r=n:(r=t.getStartValue(),"F2"!==n&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=t.getStartValue()),a&&null!=r&&i.setStartValue(r),this.addGuiEventListener("keydown",l=>{const{key:d}=l;("PageUp"===d||"PageDown"===d)&&l.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;po()||t.getFocusableElement().focus();const i=t.getInputElement();this.highlightAllOnFocus?i.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),i=e.getInputElement();t.focus(),i.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},Y1={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},Q1=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return Y1}getAgComponents(){return[kd]}init(e,t){this.eEditor=e,this.params=t;const{min:i,max:o,step:n,colDef:s}=t;null!=i&&e.setMin(i),null!=o&&e.setMax(o),null!=n&&e.setStep(n),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(s.cellDataType),null!=this.includeTime&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const t=this.eEditor.getInputElement().valueAsDate,{params:i}=this,{min:o,max:n,getValidationErrors:s}=i;let r=[];const a=this.getLocaleTextFunc();if(t instanceof Date&&!isNaN(t.getTime())){if(o){const l=o instanceof Date?o:new Date(o);if(t<l){const d=l.toLocaleDateString();r.push(a("minDateValidation",`Date must be after ${d}`,[d]))}}if(n){const l=n instanceof Date?n:new Date(n);if(t>l){const d=l.toLocaleDateString();r.push(a("maxDateValidation",`Date must be before ${d}`,[d]))}}}return r.length||(r=null),s?s({value:t,cellEditorParams:i,internalErrors:r}):r}getValue(){const{eEditor:e,params:t}=this,i=e.getDate();return p(i)||p(t.value)?i??null:t.value}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return oi(e,this.includeTime??!1)}},J1={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},eR=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return J1}getAgComponents(){return[kd]}init(e,t){this.eEditor=e,this.params=t;const{min:i,max:o,step:n,colDef:s}=t;null!=i&&e.setMin(i),null!=o&&e.setMax(o),null!=n&&e.setStep(n),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(s.cellDataType),null!=this.includeTime&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,i=e.getInputElement().value,o=this.formatDate(this.parseDate(i??void 0)),{min:n,max:s,getValidationErrors:r}=t;let a=[];if(o){const l=new Date(o),d=this.getLocaleTextFunc();if(n){const c=new Date(n);if(l<c){const u=c.toLocaleDateString();a.push(d("minDateValidation",`Date must be after ${u}`,[u]))}}if(s){const c=new Date(s);if(l>c){const u=c.toLocaleDateString();a.push(d("maxDateValidation",`Date must be before ${u}`,[u]))}}}return a.length||(a=null),r?r({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,i=this.formatDate(t.getDate());return p(i)||p(e.value)?e.parseValue(i??""):e.value}getStartValue(){return oi(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):qt(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):oi(e??null,this.includeTime??!1)??void 0}},iR={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},nR={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},sR=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return nR}getAgComponents(){return[pp]}init(e,t){this.eEditor=e,this.params=t;const{max:i,min:o,precision:n,step:s}=t;null!=i&&e.setMax(i),null!=o&&e.setMin(o),null!=n&&e.setPrecision(n),null!=s&&e.setStep(s);const r=e.getInputElement();t.preventStepping?e.addManagedElementListeners(r,{keydown:this.preventStepping}):t.showStepperButtons&&r.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:i,getValidationErrors:o}=e,s=this.eEditor.getInputElement().valueAsNumber,r=this.getLocaleTextFunc();let a=[];return"number"==typeof s&&(null!=t&&s<t&&a.push(r("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),null!=i&&s>i&&a.push(r("maxValueValidation",`Must be less than or equal to ${i}.`,[String(i)]))),a.length||(a=null),o?o({value:s,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){(e.key===N_UP||e.key===N_DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,i=e.getValue();if(!p(i)&&!p(t.value))return t.value;let o=t.parseValue(i);if(null==o)return o;if("string"==typeof o){if(""===o)return null;o=Number(o)}return isNaN(o)?null:o}getStartValue(){return this.params.value}setCaret(){po()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},aR={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},dR={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},cR=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return dR}getAgComponents(){return[Hs]}init(e,t){this.eEditor=e,this.params=t;const i=t.maxLength;null!=i&&e.setMaxLength(i)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:i}=e,o=this.getValue(),n=this.getLocaleTextFunc();let s=[];return null!=t&&"string"==typeof o&&o.length>t&&s.push(n("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),s.length||(s=null),i?i({value:o,cellEditorParams:e,internalErrors:s}):s}getValue(){const{eEditor:e,params:t}=this,i=e.getValue();return p(i)||p(t.value)?t.parseValue(i):t.value}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){po()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),i=p(t)&&t.length||0;i&&e.getInputElement().setSelectionRange(i,i)}},lh=class extends yr{constructor(){super(new cR(()=>this.getLocaleTextFunc()))}};function dh(e,t,i="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,i),"ensureVisible")}function ch(e,t,i){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,i),"ensureVisible")}var ER={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},xR=class extends Yr{constructor(e){super(ER),this.params=e}postConstruct(){$i(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params;this.addManagedElementListeners(e,{keydown:o=>{Aa(this.gos,o,t.node,t.column,!0)||t.onKeyDown(o)}})}};function Bl(e,{rowNode:t,column:i},o="ui"){const n=i.getColDef().editable,s=e.editModelSvc;return i.isColumnFunc(t,n)||!!s&&s.hasEdits({rowNode:t,column:i},{withOpenEditor:!0})}var Sr=(e,t=!1)=>{if(void 0!==e)return Ji(e)||t&&"editing"===e.state};function uh(e,t,i=!1){return Sr(e.editModelSvc?.getEdit(t),i)}var hh=(e,t,i)=>{if(e)for(let o=0,n=e.length;o<n;++o){const s=e[o];if(s.data&&(Sr(t?.getEdit({rowNode:s,column:i}))||Sr(t?.getEdit({rowNode:s.pinnedSibling,column:i})))||hh(s.childrenAfterGroup,t,i))return!0}};function gh(e,t){const{column:i,rowNode:o}=t;return!(e.gos.get("groupTotalRow")&&!o?.footer)&&hh(o?.childrenAfterGroup,e.editModelSvc,i)}function ph(e,{rowNode:t,column:i}){if(t=t.pinnedSibling)return Sr(e.editModelSvc?.getEdit({rowNode:t,column:i}))}var MR=class extends Y{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:i}=this;if(t?.isBatchEditing()&&t.isEditing()){const n=uh(i,e)||gh(i,e)||ph(i,e);this.applyBatchingStyle(n)}else this.applyBatchingStyle(!1);const o=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",o)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},_R=class extends Y{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:i}=this;let o=e.rowNode,n=t?.getEditRow(o);const s=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:o});if(!n&&o.pinnedSibling&&(o=o.pinnedSibling,n=t?.getEditRow(o)),n){const r=Array.from(n.keys()).some(a=>{const l={rowNode:o,column:a};return uh(i,l,!0)||gh(i,l)||ph(i,l)});return void this.applyStyle(s,r)}this.applyStyle(s)}applyStyle(e=!1,t=!1){const i=this.editSvc?.isBatchEditing()??!1,o="fullRow"===this.gos.get("editType");this.rowCtrl?.forEachGui(void 0,({rowComp:n})=>{n.toggleCss("ag-row-editing",o&&t),n.toggleCss("ag-row-batch-edit",o&&t&&i),n.toggleCss("ag-row-inline-editing",t),n.toggleCss("ag-row-not-inline-editing",!t),n.toggleCss("ag-row-editing-invalid",o&&t&&e)})}},IR=new Set(["undo","redo","paste","bulk","rangeSvc"]),OR=new Set(["ui","api"]),fh={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},LR=new Set(Object.keys(fh)),BR=new Set(["paste","rangeSvc","renderer","cellClear","redo","undo"]),Rr={cancel:!0,source:"api"},VR={cancel:!1,source:"api"},Cn={checkSiblings:!0},as={force:!0,suppressFlash:!0};function GR(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(t=>Array.from(t.keys())))]:void 0}}function mh(e,t){return t??e.get("editType")??"singleCell"}var Ch=class extends Y{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const i=e.previousParams,{editSvc:o,beans:n}=this,s="cellFocused"===e.type?e.sourceEvent:null;i&&(t=gt(n,i));const{gos:r,editModelSvc:a}=n,l="cellFocusCleared"===e.type;if(o.isEditing(void 0,{withOpenEditor:!0})){const{column:d,rowIndex:c,rowPinned:u}=e,g={column:d,rowNode:Zi(n,{rowIndex:c,rowPinned:u})},m="block"===r.get("invalidEditValueMode");if(m)return;const w=!m,b=!!a?.getCellValidationModel().hasCellValidation(g);!i&&!l||o.stopEditing(void 0,{cancel:w&&b,source:l&&w?"api":void 0,event:s})||(o.isBatchEditing()?o.cleanupEditors():o.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stop(e,t){const i=this.model.getEditPositions(),o={all:[],pass:[],fail:[]};for(const n of i)o.all.push(n),(this.model.getCellValidationModel().getCellValidation(n)?.errorMessages?.length??0)>0?o.fail.push(n):o.pass.push(n);if(e)for(const n of i)pr(this.beans,n,{cancel:e}),this.model.stop(n);else{const n=this.processValidationResults(o);if(n.destroy.length>0)for(const s of n.destroy)pr(this.beans,s,{event:t,cancel:e}),this.model.stop(s);if(n.keep.length>0)for(const s of n.keep){const r=gt(this.beans,s);this.editSvc?.cellEditingInvalidCommitBlocks()||r&&this.editSvc.revertSingleCellEdit(r)}}return!0}cleanupEditors({rowNode:e}={},t){zo(this.beans,{persist:!1});const i=this.model.getEditPositions(),o=[];if(e)for(const n of i)n.rowNode!==e&&o.push(n);else for(const n of i)o.push(n);gn(this.beans,o),fl(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,i=t?.getCellEditor();if(i?.focusIn)i.focusIn();else{const o="fullRow"===this.beans.gos.get("editType");e.focusCell(o),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:i=!1,startedEdit:o,position:n,cells:s=this.model.getEditPositions()}=e,r=t instanceof KeyboardEvent&&!i&&t.key||void 0;!function Yb(e,t,i,o,n,s){0===t.length&&i?.rowNode&&i?.column&&hn(e,i,{key:o,event:n,cellStartedEdit:s});const{valueSvc:r,editSvc:a,editModelSvc:l}=e,{rowNode:d,column:c}=i??{};for(const u of t){const{rowNode:g,column:m}=u,w=gt(e,u);if(!w){if(g&&m){const x=r.getValue(m,g,void 0,"api"),V=(i?.rowNode===g&&i?.column===m&&o||void 0)??a?.getCellDataValue(u,!1)??r.getValueForDisplay(m,g)?.value??x??mi;l?.setEdit(u,{pendingValue:V,sourceValue:x,state:"editing"})}continue}const b=s&&d===w.rowNode&&w.column===c;hn(e,{rowNode:d,column:w.column},{key:b?o:null,event:b?n:null,cellStartedEdit:b&&s})}}(this.beans,s,n,r,t,o)}dispatchCellEvent(e,t,i,o){const n=gt(this.beans,e);n&&this.eventSvc.dispatchEvent({...n.createEvent(t??null,i),...o})}dispatchRowEvent(e,t,i){if(i)return;const o=gl(this.beans,e);o&&this.eventSvc.dispatchEvent(o.createRowEvent(t))}shouldStop(e,t,i="ui"){const o=this.editSvc.isBatchEditing();return!(!o||"api"!==i)||(!o||"ui"!==i&&"edit"!==i)&&("api"===i||(t instanceof KeyboardEvent&&!o?"Enter"===t.key:null))}shouldCancel(e,t,i="ui"){const o=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!o&&"Escape"===t.key||o&&"api"===i||"api"===i)}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const i=[];if(e.forEach((o,n)=>{o.forEach((s,r)=>{"editing"===s.state&&i.push({...s,rowNode:n,column:r})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),i.length>0){const o=i.at(-1);this.start({position:o,event:new KeyboardEvent("keydown",{key:o.pendingValue===mi?void 0:o.pendingValue}),source:"api"});const s=gt(this.beans,o);s&&this.setFocusInOnEditor(s)}}destroy(){this.cleanupEditors(),super.destroy()}},So={moduleName:"EditCore",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.cellValidations=new Ru,this.rowValidations=new Eu,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const i=this.getEditRow(e);t?i.delete(t):i.clear(),0===i.size&&this.edits.delete(e)}getEditRow(e,t={}){if(this.suspendEdits||0===this.edits.size)return;const i=e&&this.edits.get(e);if(i)return i;if(t.checkSiblings){const o=e.pinnedSibling;if(o)return this.getEditRow(o)}}getEditRowDataValue(e,{checkSiblings:t}={}){if(!e||0===this.edits.size)return;const i=this.getEditRow(e),o=e.pinnedSibling,n=t&&o&&this.getEditRow(o);if(!i&&!n)return;const s=Object.assign({},e.data),r=(a,l)=>a.forEach(({pendingValue:d},c)=>{d!==mi&&(l[c.getColId()]=d)});return i&&r(i,s),n&&r(n,s),s}getEdit(e,t){const i=this._getEdit(e);return t&&i?{...i}:i}_getEdit(e){if(!this.suspendEdits&&0!==this.edits.size)return e.rowNode&&e.column&&this.getEditRow(e.rowNode)?.get(e.column)}getEditMap(e=!0){if(this.suspendEdits||0===this.edits.size)return new Map;if(!e)return this.edits;const t=new Map;return this.edits.forEach((i,o)=>{const n=new Map;i.forEach(({editorState:s,...r},a)=>n.set(a,{...r})),t.set(o,n)}),t}setEditMap(e){this.edits.clear(),e.forEach((t,i)=>{const o=new Map;t.forEach((n,s)=>o.set(s,{...n})),this.edits.set(i,o)})}setEdit(e,t){(0===this.edits.size||!this.edits.has(e.rowNode))&&this.edits.set(e.rowNode,new Map);const i=this._getEdit(e),o=Object.assign({editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...i,...t});return this.getEditRow(e.rowNode).set(e.column,o),o}clearEditValue(e){const{rowNode:t,column:i}=e;if(t)if(i){const o=this._getEdit(e);o&&(o.editorValue=void 0,o.pendingValue=o.sourceValue,o.state="changed")}else this.getEditRow(t)?.forEach(o=>{o.editorValue=void 0,o.pendingValue=o.sourceValue,o.state="changed"})}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||0===(e??this.edits).size)return[];const t=[];return(e??this.edits).forEach((i,o)=>{for(const n of i.keys()){const{editorState:s,...r}=i.get(n);t.push({rowNode:o,column:n,...r})}}),t}hasRowEdits(e,t){return!this.suspendEdits&&0!==this.edits.size&&!!this.getEditRow(e,t)}hasEdits(e={},t={}){if(this.suspendEdits||0===this.edits.size)return!1;const{rowNode:i,column:o}=e,{withOpenEditor:n}=t;if(i){const s=this.getEditRow(i,t);return!!s&&(o?n?"editing"===this.getEdit(e)?.state:s.has(o)??!1:0!==s.size&&(!n||Array.from(s.values()).some(({state:r})=>"editing"===r)))}return n?this.getEditPositions().some(({state:s})=>"editing"===s):this.edits.size>0}start(e){const t=this.getEditRow(e.rowNode)??new Map,{rowNode:i,column:o}=e;o&&!t.has(o)&&t.set(o,{editorValue:void 0,pendingValue:mi,sourceValue:this.beans.valueSvc.getValue(o,i,!1,"api"),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.edits.set(i,t)}stop(e){this.hasEdits(e)&&(e?this.removeEdits(e):this.clear())}clear(){for(const e of this.edits.values())e.clear();this.edits.clear()}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},class extends Y{constructor(){super(...arguments),this.beanName="editSvc",this.batch=!1,this.stopping=!1,this.committing=!1}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:o})=>{this.stopEditing(void 0,Rr),this.createStrategy(o)});const t=(e=>()=>{const t=new Set(e.colModel.getCols()),i=e.editModelSvc.getEditMap(!0),o=new Set(i.keys());(({editModelSvc:e},t,i)=>{for(const o of t)e?.getEditRow(o)?.forEach((n,s)=>!i.has(s)&&e.removeEdits({rowNode:o,column:s}))})(e,(({rowModel:e,pinnedRowModel:t,editModelSvc:i},o)=>{const n=new Set;e.forEachNode(s=>o.has(s)&&n.add(s)),t?.forEachPinnedRow("top",s=>o.has(s)&&n.add(s)),t?.forEachPinnedRow("bottom",s=>o.has(s)&&n.add(s));for(const s of o)n.has(s)||i.removeEdits({rowNode:s});return n})(e,o),t)})(e),i=()=>{const o=this.model.getCellValidationModel().getCellValidationMap().size>0,n=this.model.getRowValidationModel().getRowValidationMap().size>0;return o||n?this.stopEditing(void 0,Rr):this.isEditing()&&(this.isBatchEditing()?gn(e,this.model.getEditPositions()):this.stopEditing(void 0,VR)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:i,filterChanged:i,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}setBatchEditing(e){e?(this.batch=!0,this.stopEditing(void 0,Rr)):(this.stopEditing(void 0,Rr),this.batch=!1)}createStrategy(e){const{beans:t,gos:i,strategy:o}=this,n=mh(i,e);if(o){if(o.beanName===n)return o;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(n,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,i,o="ui"){const n=function PR(e,{column:t},i,o,n="ui"){if(i instanceof KeyboardEvent&&("Tab"===i.key||"Enter"===i.key||"F2"===i.key||"Backspace"===i.key&&o))return!0;if(i?.shiftKey&&0!=e.rangeSvc?.getCellRanges().length)return!1;const r=t?.getColDef(),a=function FR(e,t){return!0===e.get("suppressClickEdit")?0:!0===e.get("singleClickEdit")||t?.singleClickEdit?1:2}(e.gos,r),l=i?.type;return"click"===l&&1===i?.detail&&1===a||"dblclick"===l&&2===i?.detail&&2===a||"api"===n&&(o??!1)}(this.beans,e,t,i,o);return n&&(this.strategy??(this.strategy=this.createStrategy())),n}shouldStopEditing(e,t,i="ui"){return this.strategy?.shouldStop(e,t,i)??null}shouldCancelEditing(e,t,i="ui"){return this.strategy?.shouldCancel(e,t,i)??null}validateEdit(){return function ey(e){Wo(e,!0);const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const i=[];return t.forEach((o,n)=>{o.forEach(({errorMessages:s},r)=>{i.push({column:r,rowIndex:n.rowIndex,rowPinned:n.rowPinned,messages:s??null})})}),i}(this.beans)}isEditing(e,t){return this.model.hasEdits(e,t??Cn)}isRowEditing(e,t){return(e&&this.model.hasRowEdits(e,t))??!1}startEditing(e,t){const{startedEdit:i=!0,event:o=null,source:n="ui",ignoreEventKey:s=!1,silent:r}=t;if(this.strategy??(this.strategy=this.createStrategy()),!this.isCellEditable(e,"api"))return;const a=gt(this.beans,e);if(a&&!a.comp)return void a.onCompAttachedFuncs.push(()=>this.startEditing(e,t));const l=this.shouldStartEditing(e,o,i,n);!1!==l||"api"===n?(!this.batch&&this.shouldStopEditing(e,void 0,n)&&!t.continueEditing&&this.stopEditing(void 0,{source:n}),l&&this.isBatchEditing()&&this.dispatchBatchEvent("batchEditingStarted",new Map),this.strategy.start({position:e,event:o,source:n,ignoreEventKey:s,startedEdit:i,silent:r})):this.isEditing(e)&&this.stopEditing()}stopEditing(e,t){const{event:i,cancel:o,source:n="ui",forceCancel:s,forceStop:r}=t||{},{beans:a,model:l}=this;if(LR.has(n)&&this.isBatchEditing())return this.bulkRefresh(e),!1;const d=this.committing?fh[n]:n;if(!(this.committing||this.isEditing(e)||this.isBatchEditing()&&l.hasEdits(e,Cn))||!this.strategy||this.stopping)return!1;this.stopping=!0;const u=gt(a,e);u&&(u.onEditorAttachedFuncs=[]);let g=l.getEditMap(!0),m=!1;const w=!o&&(!!this.shouldStopEditing(e,i,d)||this.committing&&!this.batch)||(r??!1),b=o&&!!this.shouldCancelEditing(e,i,d)||(s??!1);if(w||b){zo(a,{persist:!0,isCancelling:b||o,isStopping:w});const x=l.getEditMap(),A=this.processEdits(x,o,n);this.strategy?.stop(o,i);for(const O of A)l.clearEditValue(O);this.bulkRefresh(void 0,g);for(const O of l.getEditPositions(x)){const V=gt(a,O),te=Ji(O);V?.refreshCell({force:!0,suppressFlash:!te})}g=x,m||(m=w)}else if(i instanceof KeyboardEvent&&this.batch&&this.strategy?.midBatchInputsAllowed(e)&&this.isEditing(e,{withOpenEditor:!0})){const{key:x}=i,A="Enter"===x,O="Escape"===x,V="Tab"===x;(A||V||O)&&(A||V?zo(a,{persist:!0}):O&&this.revertSingleCellEdit(u),this.isBatchEditing()?this.strategy?.cleanupEditors():gn(a,l.getEditPositions(),{event:i,cancel:O}),i.preventDefault(),this.bulkRefresh(e,g,{suppressFlash:!0}),g=l.getEditMap())}else zo(a,{persist:!0}),g=l.getEditMap();return m&&e&&this.model.removeEdits(e),this.navigateAfterEdit(t,u?.cellPosition),fl(a),this.model.hasEdits()||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap()),this.bulkRefresh(),b&&this.beans.rowRenderer.refreshRows({rowNodes:Array.from(g.keys())}),this.isBatchEditing()&&(this.beans.rowRenderer.refreshRows({suppressFlash:!0,force:!0}),m&&w&&this.dispatchBatchEvent("batchEditingStopped",g)),this.stopping=!1,m}navigateAfterEdit(e,t){if(!e||!t)return;const{event:i,suppressNavigateAfterEdit:o}=e;if(!(i instanceof KeyboardEvent)||o)return;const{key:s,shiftKey:r}=i,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if("Enter"!==s||!a)return;const l=r?N_UP:N_DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t=!1,i){const o=Array.from(e.keys()),n=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,s=[];for(const r of o){const a=e.get(r);for(const l of a.keys()){const d=a.get(l),c={rowNode:r,column:l},u=Ji(d);!t&&u&&!n&&(this.setNodeDataValue(r,l,d.pendingValue,void 0,i)||s.push(c))}}return s}setNodeDataValue(e,t,i,o,n="edit"){const{beans:s}=this,r=gt(s,{rowNode:e,column:t}),a=OR.has(n)?"edit":n;r&&(r.suppressRefreshCell=!0),this.commitNextEdit();const l=e.setDataValue(t,i,a);return r&&(r.suppressRefreshCell=!1),o&&r?.refreshCell(as),l}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefresh();let i=as;t?.forceRefreshOfEditCellsOnly&&(i={...GR(e),...as}),this.beans.rowRenderer.refreshCells(i)}dispatchEditValuesChanged({rowNode:e,column:t},i={}){if(!e||!t||!i)return;const{pendingValue:o,sourceValue:n}=i,{rowIndex:s,rowPinned:r,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:s,rowPinned:r,column:t,source:"api",data:a,newValue:o,oldValue:n,value:o,colDef:t.getColDef()})}bulkRefresh(e={},t,i={}){const{beans:o,gos:n}=this,{editModelSvc:s}=o;ut(n)&&(e.rowNode&&e.column?this.refCell(e,this.model.getEdit(e),i):t&&s?.getEditMap(!1)?.forEach((a,l)=>{for(const d of a.keys())this.refCell({rowNode:l,column:d},a.get(d),i)}))}refCell({rowNode:e,column:t},i,o={}){const{beans:n,gos:s}=this,r=new Set([e]),a=new Set,l=e.pinnedSibling;l&&r.add(l);const d=e.sibling;d&&a.add(d);let c=e.parent;for(;c;)c.sibling?.footer&&s.get("groupTotalRow")||!c.parent&&c.sibling&&s.get("grandTotalRow")?a.add(c.sibling):a.add(c),c=c.parent;for(const u of r)this.dispatchEditValuesChanged({rowNode:u,column:t},i);for(const u of r)gt(n,{rowNode:u,column:t})?.refreshCell(o);for(const u of a)gt(n,{rowNode:u,column:t})?.refreshCell(o)}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{rowNode:i}=e,{gos:o,beans:n}=this;if(i.group)if(o.get("treeData")){if(!i.data&&!o.get("enableGroupEdit"))return!1}else if(!o.get("enableGroupEdit"))return!1;const s="fullRow"===mh(o)?function DR(e,t,i="ui"){const o=Bl(e,t,i);return!0===o||"ui"===i?o:e.colModel.getCols().some(s=>Bl(e,{rowNode:t.rowNode,column:s},i))}(n,e,t):Bl(n,e,t);return s&&(this.strategy??(this.strategy=this.createStrategy())),s}cellEditingInvalidCommitBlocks(){return"block"===this.gos.get("invalidEditValueMode")}checkNavWithValidation(e,t,i=!0){if(this.hasValidationErrors(e)){const o=gt(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),i&&(!o?.hasBrowserFocus()&&o?.focusCell(),o?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(o&&this.revertSingleCellEdit(o),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const i=gt(this.beans,e);i?.comp?.getCellEditor()&&(gn(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),hn(this.beans,e,{silent:!0}),Wo(this.beans),i?.refreshCell(as),t&&(i?.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){Wo(this.beans);const t=gt(this.beans,e);t&&(t.refreshCell(as),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let i=!1;return e?.rowNode?(i||(i=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(i||(i=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(i||(i=this.model.getCellValidationModel().getCellValidationMap().size>0),i||(i=this.model.getRowValidationModel().getRowValidationMap().size>0)),i}moveToNextCell(e,t,i,o="ui"){let n;const s=this.isEditing(),r=s&&"block-stop"===this.checkNavWithValidation(void 0,i);return e instanceof pn&&s&&(n=this.strategy?.moveToNextEditingCell(e,t,i,o,r)),null===n||(n=n||!!this.beans.focusSvc.focusedHeader,!1===n&&!r&&this.stopEditing()),n}getCellDataValue({rowNode:e,column:t},i=!0){if(!e||!t)return;let o=this.model.getEdit({rowNode:e,column:t});const n=e.pinnedSibling;if(n){const r=this.model.getEdit({rowNode:n,column:t});r&&(o=r)}const s=i?o?.editorValue??o?.pendingValue:o?.pendingValue;return s!==mi&&o?s:o?.sourceValue??this.valueSvc.getValue(t,e,!1,"api")}addStopEditingWhenGridLosesFocus(e){!function qb(e,t,i){const{gos:o,popupSvc:n}=t;if(!o.get("stopEditingWhenCellsLoseFocus"))return;const s=r=>{const a=r.relatedTarget;if(null===na(a))return void xu(t);let l=i.some(d=>d.contains(a))&&o.isElementInThisInstance(a);l||(l=!!n&&(n.getActivePopups().some(d=>d.contains(a))||n.isElementWithinCustomPopup(a))),l||xu(t)};for(const r of i)e.addManagedElementListeners(r,{focusout:s})}(this,this.beans,e)}createPopupEditorWrapper(e){return new xR(e)}commitNextEdit(){this.committing=!0}setDataValue(e,t,i){try{if((!this.isEditing()||this.committing)&&!BR.has(i))return;const{beans:o}=this;this.strategy??(this.strategy=this.createStrategy());const n=this.isBatchEditing()?"ui":this.committing?i??"api":"api";if(!i||IR.has(i))return gr(o,e,t,0,void 0,{persist:!0}),this.setNodeDataValue(e.rowNode,e.column,t,!0,i);const s=this.model.getEdit(e);if(s){if(s.pendingValue===t)return!1;if(s.sourceValue!==t)return gr(o,e,t,0,void 0,{persist:!0}),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0;if(s.sourceValue===t)return o.editModelSvc?.removeEdits(e),this.dispatchEditValuesChanged(e,{...s,pendingValue:t}),!0}return gr(o,e,t,0,void 0,{persist:!0}),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0}finally{this.committing=!1}}handleColDefChanged(e){!function Qb(e,t){const i=t.comp?.getCellEditor();if(!i?.refresh)return;const{eventKey:o,cellStartedEdit:n}=t.editCompDetails.params,{column:s}=t,r=Du(e,t,o,n),a=s.getColDef(),l=yd(e.userCompFactory,a,r);i.refresh(Mu(l.params,o))}(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){if(!this.batch||!this.model.hasRowEdits(e.rowNode,Cn))return;const{rowNode:o,column:n}=e,{compDetails:s,valueToDisplay:r}=t;if(s){const{params:l}=s;return l.data=this.model.getEditRowDataValue(o,Cn),{compDetails:s}}const a=this.model.getEditRow(e.rowNode,Cn);return void 0!==r&&a?.has(n)?{valueToDisplay:this.valueSvc.getValue(n,o)}:void 0}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,i,o){this.strategy?.dispatchCellEvent(e,t,i,o)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return Ie(this.gos,{type:e,..."batchEditingStopped"===e?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(t=>({rowIndex:t.rowNode.rowIndex,rowPinned:t.rowNode.rowPinned,columnId:t.column.getColId(),newValue:t.pendingValue,oldValue:t.sourceValue}))}applyBulkEdit({rowNode:e,column:t},i){if(!i||0===i.length)return;const{beans:o,rangeSvc:n,valueSvc:s}=this;zo(o,{persist:!0});const r=this.model.getEditMap(!0),a=r.get(e)?.get(t)?.pendingValue;this.batch||this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),i.forEach(d=>{if(n?.forEachRowInRange(d,c=>{const u=Zi(o,c);if(void 0===u)return;const g=r.get(u)??new Map;for(const m of d.columns)if(m&&this.isCellEditable({rowNode:u,column:m},"api")){const w=s.getValue(m,u,!0,"api");let b=s.parseValue(m,u??null,a,w);Number.isNaN(b)&&(b=null),g.set(m,{editorValue:void 0,pendingValue:b,sourceValue:w,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}g.size>0&&r.set(u,g)}),this.setEditMap(r),this.batch)return this.cleanupEditors(),fl(o),void this.bulkRefresh();this.commitNextEdit(),this.stopEditing(void 0,{source:"bulk"}),this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(r)})}),this.bulkRefresh();const l=gt(o,{rowNode:e,column:t});l&&l.focusCell(!0)}createCellStyleFeature(e,t){return new MR(e,t)}createRowStyleFeature(e,t){return new _R(e,t)}setEditingCells(e,t){const{beans:i}=this,{colModel:o,valueSvc:n}=i,s=new Map;for(let{colId:r,column:a,colKey:l,rowIndex:d,rowPinned:c,newValue:u,state:g}of e){const m=r?o.getCol(r):l?o.getCol(l):a;if(!m)continue;const w=Zi(i,{rowIndex:d,rowPinned:c});if(!w)continue;const b=n.getValue(m,w,!0,"api");if(!t?.forceRefreshOfEditCellsOnly&&!Ji({pendingValue:u,sourceValue:b})&&"editing"!==g)continue;let x=s.get(w);x||(x=new Map,s.set(w,x)),void 0===u&&(u=mi),x.set(m,{editorValue:void 0,pendingValue:u,sourceValue:b,state:g??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(s,t)}onCellFocused(e){const t=gt(this.beans,e);if(!t||!this.isEditing(t,Cn))return;const i=this.model.getEdit(t);if(!i||!Ji(i))return;const n=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(n,"pendingChange")}allowedFocusTargetOnValidation(e){return gt(this.beans,e)}}],apiFunctions:{getEditingCells:function CR(e){const t=e.editModelSvc?.getEditMap(),i=[];return t?.forEach((o,n)=>{const{rowIndex:s,rowPinned:r}=n;o.forEach((a,l)=>{const{editorValue:d,pendingValue:c,sourceValue:u,state:g}=a,m=Ji(a);let w=d??c;w===mi&&(w=void 0);const b={newValue:w,oldValue:u,state:g,column:l,colId:l.getColId(),colKey:l.getColId(),rowIndex:s,rowPinned:r};("editing"===g||"changed"===g&&m)&&i.push(b)})}),i},getEditRowValues:function mR(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})},getCellEditorInstances:(e,t={})=>Pu(e,t).map(i=>i.editor),startEditingCell:function bR(e,t){const{key:i,colKey:o,rowIndex:n,rowPinned:s}=t,{editSvc:r,colModel:a}=e,l=a.getCol(o);if(!l)return void se(12,{colKey:o});const c=Zi(e,{rowIndex:n,rowPinned:s||null,column:l});c?l.isCellEditable(c)&&(null==s&&ch(e,n),dh(e,o),r?.startEditing({rowNode:c,column:l},{event:i?new KeyboardEvent("keydown",{key:i}):void 0,source:"api"})):se(290,{rowIndex:n,rowPinned:s})},stopEditing:function vR(e,t=!1){const{editSvc:i}=e;if(i?.isBatchEditing()){if(t)for(const o of e.editModelSvc?.getEditPositions()??[])"editing"===o.state&&i.revertSingleCellEdit(o);else zo(e,{persist:!0});gn(e,void 0,{cancel:t})}else i?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})},isEditing:function wR(e,t){const i=gt(e,t);return e.editSvc?.isEditing(i)??!1},validateEdit:function yR(e){return e.editSvc?.validateEdit()||null}},dynamicBeans:{singleCell:class extends Ch{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,i="ui"){const o=super.shouldStop(e,t,i);if(null!==o)return o;const{rowNode:n,column:s}=e||{};return this.rowNode&&this.column||!n||!s?this.rowNode!==n||this.column!==s:null}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:i,event:o,ignoreEventKey:n}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:i,event:o,ignoreEventKey:n})}dispatchRowEvent(e,t,i){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){return super.stop(e,t),this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:i}=this.beans,{rowIndex:o,column:n,rowPinned:s}=e,r=Zi(this.beans,{rowIndex:o,rowPinned:s}),a=pl(n),l=t.getCol(a),d=e.previousParams;if(d){const c=pl(d.column);if(d?.rowIndex===o&&c===a&&d?.rowPinned===s)return}i?.isEditing({rowNode:r,column:l},{withOpenEditor:!0})&&"cellFocused"===e.type||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,i,o="ui",n=!1){const s=this.beans.focusSvc.getFocusedCell();s&&(e=cn(this.beans,s)??e);const r=e.cellPosition;let a;const l="fullRow"===this.beans.gos.get("editType");l&&this.model.suspend(!0),n||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:i}));try{a=this.beans.navigation?.findNextCellToFocusOn(r,{backwards:t,startEditing:!0})}finally{l&&this.model.suspend(!1)}if(!1===a)return null;if(null==a)return!1;const d=a.cellPosition,c=e.isCellEditable(),u=a.isCellEditable(),g=d&&r.rowIndex===d.rowIndex&&r.rowPinned===d.rowPinned;c&&!n&&this.setFocusOutOnEditor(e);const m=this.gos.get("suppressStartEditOnTab");if(!g&&!n&&(super.cleanupEditors(a,!0),m?a.focusCell(!0,i):this.editSvc.startEditing(a,{startedEdit:!0,event:i,source:o,ignoreEventKey:!0})),u&&!n){if(a.focusCell(!1,i),m)a.focusCell(!0,i);else if(!a.comp?.getCellEditor()){const w=this.editSvc?.isEditing(a,{withOpenEditor:!0});hn(this.beans,a,{event:i,cellStartedEdit:!0,silent:w}),this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else u&&n&&this.setFocusInOnEditor(a),a.focusCell(!0,i);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},fullRow:class extends Ch{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=[]}shouldStop(e,t,i="ui"){const{rowNode:o}=e||{};if(!gl(this.beans,{rowNode:this.rowNode}))return!0;const s=super.shouldStop({rowNode:this.rowNode},t,i);return null!==s?s:!!this.rowNode&&o!==this.rowNode}midBatchInputsAllowed({rowNode:e}){return!!e&&this.model.hasEdits({rowNode:e})}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:i,startedEdit:o,event:n,ignoreEventKey:s}=e,{rowNode:r}=t;this.rowNode!==r&&super.cleanupEditors(t);const a=this.beans.visibleCols.allCols,l=[],d=[];for(const c of a)c.isCellEditable(r)&&d.push(c);if(0!=d.length){this.dispatchRowEvent({rowNode:r},"rowEditingStarted",i),this.startedRows.push(r);for(const c of d){const u={rowNode:r,column:c};l.push(u),this.model.hasEdits(u)||this.model.start(u)}this.rowNode=r,this.setupEditors({cells:l,position:t,startedEdit:o,event:n,ignoreEventKey:s})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stop(e,t){const{rowNode:i}=this;if(i&&!this.model.hasRowEdits(i))return!1;const o=[];if(e||this.model.getEditMap().forEach((n,s)=>{if(n&&0!==n.size)for(const r of n.values())if(Ji(r)){o.push(s);break}}),Wo(this.beans),!e&&"block-stop"===this.editSvc?.checkNavWithValidation({rowNode:i}))return!1;super.stop(e,t);for(const n of o)this.dispatchRowEvent({rowNode:n},"rowValueChanged");return this.cleanupEditors({rowNode:i},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,i=e.previousParams;if(i?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const o=gt(this.beans,i);"block"===this.gos.get("invalidEditValueMode")&&o&&(this.model.getCellValidationModel().getCellValidation(o)||this.model.getRowValidationModel().getRowValidation(o))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);for(const i of this.startedRows)this.dispatchRowEvent({rowNode:i},"rowEditingStopped");this.startedRows.length=0}moveToNextEditingCell(e,t,i,o="ui",n=!1){const s=e.cellPosition;let r;this.model.suspend(!0);try{r=this.beans.navigation?.findNextCellToFocusOn(s,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{this.model.suspend(!1)}if(!1===r)return null;if(null==r)return!1;const a=r.cellPosition,l=e.isCellEditable(),d=r.isCellEditable(),c=a&&s.rowIndex===a.rowIndex&&s.rowPinned===a.rowPinned;l&&this.setFocusOutOnEditor(e),this.restoreEditors();const u=this.gos.get("suppressStartEditOnTab");return d&&!n?u?r.focusCell(!0,i):(r.comp?.getCellEditor()||hn(this.beans,r,{event:i,cellStartedEdit:!0}),this.setFocusInOnEditor(r),r.focusCell(!1,i)):(d&&n&&this.setFocusInOnEditor(r),r.focusCell(!0,i)),!c&&!n&&(this.editSvc?.stopEditing({rowNode:e.rowNode},{event:i}),this.cleanupEditors(r,!0),u?r.focusCell(!0,i):this.editSvc.startEditing(r,{startedEdit:!0,event:i,source:o,ignoreEventKey:!0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){this.model.getEditMap().forEach((e,t)=>e.forEach(({state:i},o)=>{if("editing"!==i)return;const n=gt(this.beans,{rowNode:t,column:o});n&&!n.comp?.getCellEditor()&&hn(this.beans,n,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.length=0}}},dependsOn:[vr,rh],css:[".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) textarea{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}"]},WR={moduleName:"UndoRedoEdit",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},i=null!==this.activeCellEdit&&zc(this.activeCellEdit,t),o=null!==this.activeRowEdit&&function nv(e,t){return!e&&!t||!(e&&!t||!e&&t)&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}(this.activeRowEdit,t);if(!(i||o||this.isPasting||this.isRangeInAction))return;const{rowPinned:s,rowIndex:r,column:a,oldValue:l,value:d}=e,c={rowPinned:s,rowIndex:r,columnId:a.getColId(),newValue:d,oldValue:l};this.cellValueChanges.push(c)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const i=e.get("undoRedoCellEditingLimit");if(i<=0)return;this.undoStack=new ah(i),this.redoStack=new ah(i),this.addListeners();const o=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:n=>{n.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:o,newColumnsLoaded:o,columnGroupOpened:o,columnRowGroupChanged:o,columnMoved:o,columnPinned:o,columnVisible:o,rowDragEnd:o}),t.whenReady(this,n=>{this.gridBodyCtrl=n.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:i,redoStack:o}=this;t.dispatchEvent({type:"undoStarted",source:e});const n=this.undoRedo(i,o,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:n})}redo(e){const{eventSvc:t,undoStack:i,redoStack:o}=this;t.dispatchEvent({type:"redoStarted",source:e});const n=this.undoRedo(o,i,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:n})}undoRedo(e,t,i,o,n){if(!e)return!1;const s=e.pop();return!!s?.cellValueChanges&&(this.processAction(s,r=>r[o],n),s instanceof Ll?this.processRange(s.ranges||[s[i]]):this.processCell(s.cellValueChanges),t.push(s),!0)}processAction(e,t,i){for(const o of e.cellValueChanges){const{rowIndex:n,rowPinned:s,columnId:r}=o,l=Zi(this.beans,{rowIndex:n,rowPinned:s});l.displayed&&l.setDataValue(r,t(o),i)}}processRange(e){let t;const i=this.beans.rangeSvc;i.removeAllCellRanges(!0),e.forEach((o,n)=>{if(!o)return;const s=o.startRow,r=o.endRow;n===e.length-1&&(t={rowPinned:s.rowPinned,rowIndex:s.rowIndex,columnId:o.startColumn.getColId()},this.setLastFocusedCell(t)),i.addCellRange({rowStartIndex:s.rowIndex,rowStartPinned:s.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:o.startColumn,columns:o.columns})})}processCell(e){const t=e[0],{rowIndex:i,rowPinned:o}=t,s=Zi(this.beans,{rowIndex:i,rowPinned:o});this.setLastFocusedCell({rowPinned:t.rowPinned,rowIndex:s.rowIndex,columnId:t.columnId})}setLastFocusedCell(e){const{rowIndex:t,columnId:i,rowPinned:o}=e,{colModel:n,focusSvc:s,rangeSvc:r}=this.beans,a=n.getCol(i);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const d={rowIndex:t,column:a,rowPinned:o};s.setFocusedCell({...d,forceBrowserFocus:!0}),r?.setRangeToCell(d)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new mn(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const i=new mn(this.cellValueChanges);this.pushActionsToUndoStack(i)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new mn(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new Ll(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:i}=this.beans;e=t&&kt(i)?new Ll(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):new mn(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){"bulkEditing"===e?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if("bulkEditing"===e&&!this.bulkEditing||"batchEditing"===e&&!this.batchEditing||(this.updateBigChange(e,!1),0===t?.length))return;const i=new mn(t??[]);this.pushActionsToUndoStack(i),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}}],apiFunctions:{undoCellEditing:function pR(e){e.undoRedo?.undo("api")},redoCellEditing:function fR(e){e.undoRedo?.redo("api")},getCurrentUndoSize:function SR(e){return e.undoRedo?.getCurrentUndoStackSize()??0},getCurrentRedoSize:function RR(e){return e.undoRedo?.getCurrentRedoStackSize()??0}},dependsOn:[So]},UR={moduleName:"TextEditor",version:ge,userComponents:{agCellEditor:lh,agTextCellEditor:lh},dependsOn:[So]},$R={moduleName:"NumberEditor",version:ge,userComponents:{agNumberCellEditor:{classImp:class extends yr{constructor(){super(new sR(()=>this.getLocaleTextFunc()))}}}},dependsOn:[So]},jR={moduleName:"DateEditor",version:ge,userComponents:{agDateCellEditor:class extends yr{constructor(){super(new Q1(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},agDateStringCellEditor:class extends yr{constructor(){super(new eR(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}}},dependsOn:[So]},KR={moduleName:"CheckboxEditor",version:ge,userComponents:{agCheckboxCellEditor:class extends tr{constructor(){super(q1,[ua]),this.eEditor=fe}initialiseEditor(e){const t=e.value??void 0,i=this.eEditor;i.setValue(t),i.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(i,{fieldValueChanged:n=>this.setAriaLabel(n.selected)})}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),i=Hi(t,e),o=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${o} (${i})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,i=this.getValue();return t?t({value:i,internalErrors:null,cellEditorParams:e}):null}}},dependsOn:[So]},qR={moduleName:"SelectEditor",version:ge,userComponents:{agSelectCellEditor:class extends tr{constructor(){super(aR,[xp]),this.eEditor=fe,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:i,gos:o}=this,{values:n,value:s,eventKey:r}=e;if(K(n))return void se(58);this.startedByEnter=null!=r&&"Enter"===r;let a=!1;n.forEach(u=>{const g={value:u},m=i.formatValue(e.column,null,u);g.text=null!=m?m:u,t.addOption(g),a=a||s===u}),a?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:d,valueListMaxHeight:c}=e;null!=l&&t.setPickerGap(l),null!=c&&t.setPickerMaxHeight(c),null!=d&&t.setPickerMaxWidth(d),"fullRow"!==o.get("editType")&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:i}=e,o=this.getValue();let n=[];if(t&&!t.includes(o)){const s=this.getLocaleTextFunc();n.push(s("invalidSelectionValidation","Invalid selection."))}else n=null;return i?i({value:o,internalErrors:n,cellEditorParams:e}):n}}},dependsOn:[So]},XR={moduleName:"LargeTextEditor",version:ge,userComponents:{agLargeTextCellEditor:class extends tr{constructor(){super(iR,[gp]),this.eEditor=fe}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:i,eventKey:o,maxLength:n,cols:s,rows:r}=e;let a;this.focusAfterAttached=i,t.getInputElement().setAttribute("title",""),t.setMaxLength(n||200).setCols(s||60).setRows(r||10),i?(this.focusAfterAttached=!0,"Backspace"===o||"Delete"===o?a="":o&&1===o.length?a=o:(a=this.getStartValue(e),"F2"!==o&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,a=this.getStartValue(e)),null!=a&&t.setValue(a,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}onKeyDown(e){const t=e.key;(t===N_LEFT||t===N_UP||t===N_RIGHT||t===N_DOWN||e.shiftKey&&"Enter"===t)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:i}=this,o=this.getLocaleTextFunc();e.setInputAriaLabel(o("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),i&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:i}=t,o=e.getValue();return p(o)||p(i)?t.parseValue(o):i}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:i}=e,o=this.getLocaleTextFunc(),n=this.getValue();let s=[];return"string"==typeof n&&null!=t&&n.length>t&&s.push(o("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),s.length||(s=null),i?i({value:n,internalErrors:s,cellEditorParams:e}):s}}},dependsOn:[So]},YR={moduleName:"CustomEditor",version:ge,dependsOn:[So]};function vn(e){return Yn(e)?e.pinnedSibling:e.footer?e.sibling:e}function vh(e,t){return(0!==e||0!==t)&&(e>0&&t>0?void 0:e>0)}function wh(e){const t=!1===e.isSelected(),i=e.childrenAfterFilter?.some(wh)??!1;return t||i}var cE={moduleName:"SharedRowSelection",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,Jo(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;null!=t&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),function Zh(e){e.map={};for(const t of e.list)e.map[t.getId()]=t}(e))}createColumns(e,t){const o=e.treeDepth,s=(this.columns?.treeDepth??-1)==o,r=this.generateSelectionCols();if(function Qh(e,t){return ho(e,t,(i,o)=>i.getColId()===o.getColId())}(r,this.columns?.list??[])&&s)return;(()=>{_s(this.beans,this.columns?.tree),this.columns=null})();const{colGroupSvc:l}=this.beans,d=l?.findDepth(e.tree)??0,c=l?.balanceTreeForAutoCols(r,d)??[];this.columns={list:r,tree:c,treeDepth:d,map:{}},t(g=>{if(!g)return null;const m=g.filter(w=>!qi(w));return[...r,...m]})}updateColumns(e){const t=Jo(e.source);for(const i of this.columns?.list??[]){const o=this.createSelectionColDef(e.currentValue);i.setColDef(o,null,t),Pi(this.beans,{state:[{...o,colId:i.getColId()}]},t)}}getColumn(e){return this.columns?.list.find(t=>Nn(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,i=e.get("rowSelection");if("object"!=typeof i||!Ui(e))return!1;const o=(t.autoColSvc?.getColumns()?.length??0)>0;if("autoGroupColumn"===i.checkboxLocation&&o)return!1;const n=!!f(i),s=C(i);return n||s}createSelectionColDef(e){const{gos:t}=this,i=e??t.get("selectionColumnDef"),o=t.get("enableRtl"),{rowSpan:n,spanRows:s,...r}=i??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:o?"right":"left",comparator(a,l,d,c){const u=d.isSelected();return u===c.isSelected()?0:u?1:-1},editable:!1,suppressFillHandle:!0,pinned:null,...r,colId:$r,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const i=new uo(e,null,t,!1);return this.createBean(i),[i]}onSelectionOptionsChanged(e,t,i){const s=(t&&"string"!=typeof t?f(t):void 0)!==(e&&"string"!=typeof e?f(e):void 0),l=(t&&"string"!=typeof t?C(t):void 0)!==(e&&"string"!=typeof e?C(e):void 0),d=h(e),c=h(t);(s||l||d!==c)&&this.beans.colModel.refreshAll(i)}destroy(){_s(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,i){if(!this.columns?.list.length)return;const o=e.length+t.length+i.length;if(0===o)return;const n=this.columns.list[0];n.isVisible()&&(this.beans.rowNumbersSvc?.getColumn(jr)?2:1)===o&&(()=>{let l;switch(n.pinned){case"left":case!0:l=e;break;case"right":l=i;break;default:l=t}l&&gi(l,n)})()}}],apiFunctions:{setNodesSelected:function ZR(e,t){if(!t.nodes.every(r=>r.rowPinned&&!Yn(r)?(se(59),!1):void 0!==r.id||(se(60),!1)))return;const{nodes:o,source:n,newValue:s}=t;e.selectionSvc?.setNodesSelected({nodes:o,source:n??"api",newValue:s})},selectAll:function JR(e,t,i="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:i,selectAll:t})},deselectAll:function eE(e,t,i="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:i,selectAll:t})},selectAllFiltered:function tE(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})},deselectAllFiltered:function iE(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})},selectAllOnCurrentPage:function oE(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})},deselectAllOnCurrentPage:function nE(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})},getSelectedNodes:function sE(e){return e.selectionSvc?.getSelectedNodes()??[]},getSelectedRows:function rE(e){return e.selectionSvc?.getSelectedRows()??[]}}},uE={moduleName:"RowSelection",version:ge,rowModels:["clientSide","infinite","viewport"],beans:[class extends cC{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=Ds(e),this.groupSelectsDescendants=Vn(e),this.groupSelectsFiltered="filteredDescendants"===Ms(e),this.masterSelectsDetail="detail"===Xl(e),this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=Vn(e),i=Ds(e),o="filteredDescendants"===Ms(e);this.masterSelectsDetail="detail"===Xl(e),(t!==this.groupSelectsDescendants||o!==this.groupSelectsFiltered||i!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=o,this.mode=i)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,i){if(this.isRowSelectionBlocked(t))return 0;const o=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,i);if(null==o)return 0;if(this.selectionCtx.selectAll=!1,"select"in o)return o.reset?this.resetNodes():this.selectRange(o.deselect,!1,i),this.selectRange(o.select,!0,i);{const n=o.checkFilteredNodes?wh(o.node):o.newValue;return this.setNodesSelected({nodes:[o.node],newValue:n,clearSelection:o.clearSelection,keepDescendants:o.keepDescendants,event:e,source:i})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:i,nodes:o,event:n,source:s,keepDescendants:r=!1}){if(0===o.length)return 0;const{gos:a}=this;if(!Ui(a)&&e)return se(132),0;if(o.length>1&&!this.isMultiSelect())return se(130),0;let l=0;for(let d=0;d<o.length;d++){const u=vn(o[d]);!u.rowPinned||Yn(u)?void 0!==u.id?(this.groupSelectsFiltered&&u.group&&!a.get("treeData")||this.selectRowNode(u,e,n,s)&&(this.detailSelection.delete(u.id),l++),this.groupSelectsDescendants&&u.childrenAfterGroup?.length&&(l+=this.selectChildren(u,e,s))):se(60):se(59)}return i||(1===o.length&&"api"===s&&this.selectionCtx.setRoot(vn(o[0])),e&&(t||!this.isMultiSelect())&&(l+=this.clearOtherNodes(vn(o[0]),r,s)),l>0&&(this.updateGroupsFromChildrenSelections(s),this.dispatchSelectionChanged(s))),l}selectRange(e,t,i){let o=0;return e.forEach(n=>{const s=vn(n);s.group&&this.groupSelectsDescendants||this.selectRowNode(s,t,void 0,i)&&o++}),o>0&&(this.updateGroupsFromChildrenSelections(i),this.dispatchSelectionChanged(i)),o}selectChildren(e,t,i){const o=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return o?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:i,nodes:o}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((i,o)=>{e(i)&&t.set(o,i)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:i,rowModel:o}=this.beans;if(!ut(i))return!1;const n=o.rootNode;if(!n)return!1;t||((t=new Zn(!0,n)).active=!1);let s=!1;return t.forEachChangedNodeDepthFirst(r=>{if(r!==n){const a=this.calculateSelectedFromChildren(r);s=this.selectRowNode(r,null!==a&&a,void 0,e)||s}}),s}clearOtherNodes(e,t,i){const o=new Map;let n=0;return this.selectedNodes.forEach(s=>{const r=s.id==e.id;if(!(t&&function dE(e,t){let i=t.parent;for(;i;){if(i===e)return!0;i=i.parent}return!1}(e,s)||r)){const l=this.selectedNodes.get(s.id);n+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:i}),this.groupSelectsDescendants&&s.parent&&o.set(s.parent.id,s.parent)}}),o.forEach(s=>{const r=this.calculateSelectedFromChildren(s);this.selectRowNode(s,null!==r&&r,void 0,i)}),n}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new mo(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!ut(e))return;const i=t.getTopLevelNodes();if(null===i)return;const o=[];return function n(s){for(let r=0,a=s.length;r<a;r++){const l=s[r];l.isSelected()?o.push(l):l.group&&l.childrenAfterGroup&&n(l.childrenAfterGroup)}}(i),o}isEmpty(){return 0===this.getSelectionCount()}deselectAllRowNodes({source:e,selectAll:t}){const i=ut(this.gos);let o=!1;const n=s=>{const r=this.selectRowNode(vn(s),!1,void 0,e);o||(o=r)};if("currentPage"===t||"filtered"===t){if(!i)return void tt(102);this.getNodesToSelect(t).forEach(n)}else this.selectedNodes.forEach(n),this.reset(e);if(this.selectionCtx.selectAll=!1,i&&this.groupSelectsDescendants){const s=this.updateGroupsFromChildrenSelections(e);o||(o=s)}o&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,i=0;return this.getNodesToSelect(e).forEach(o=>{this.groupSelectsDescendants&&o.group||(o.isSelected()?t++:o.selectable&&i++)}),{selectedCount:t,notSelectedCount:i}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:i}=this.getSelectedCounts(e);return vh(t,i)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],i=n=>t.push(n);if("currentPage"===e)return this.forEachNodeOnPage(n=>{if(n.group){if(!n.expanded&&!n.footer){const s=r=>{i(r),r.childrenAfterFilter?.forEach(s)};return void s(n)}this.groupSelectsDescendants||i(n)}else i(n)}),t;const o=this.beans.rowModel;return"filtered"===e?(o.forEachNodeAfterFilter(i),t):(o.forEachNode(i),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:i}=this.beans,o=t.getFirstRow(),n=t.getLastRow();for(let s=o;s<=n;s++){const r=i.getRow(s);r&&e(r)}}selectAllRowNodes(e){const{gos:t,selectionCtx:i}=this;if(!Ui(t))return void se(132);if(function _(e){return"string"!=typeof e.get("rowSelection")}(t)&&!Bn(t))return void se(130);if(!this.canSelectAll())return;const{source:o,selectAll:n}=e;let s=!1;if(this.getNodesToSelect(n).forEach(r=>{const a=this.selectRowNode(vn(r),!0,void 0,o);s||(s=a)}),i.selectAll=!0,ut(t)&&this.groupSelectsDescendants){const r=this.updateGroupsFromChildrenSelections(o);s||(s=r)}s&&this.dispatchSelectionChanged(o)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,i){if(e||(e=[]),!Array.isArray(e))return void tt(103);const o=new Set(e),n=[];this.beans.rowModel.forEachNode(s=>{o.has(s.id)&&n.push(s)}),i&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:n,source:t})}canSelectAll(){return ut(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:i}=this.beans;if(!Ui(t))return;const o="selectableChanged",n=void 0!==e,s=ut(t)&&this.groupSelectsDescendants,r=[],a=l=>{if(!n||l.group){if(s&&l.group){const c=l.childrenAfterGroup?.some(u=>u.selectable)??!1;return void this.setRowSelectable(l,c,!0)}!this.updateRowSelectable(l,!0)&&l.isSelected()&&r.push(l)}};if(s){if(void 0===e){const l=i.rootNode;e=l?new Zn(!1,l):void 0}e?.forEachChangedNodeDepthFirst(a,!n,!n)}else i.forEachNode(a);r.length&&this.setNodesSelected({nodes:r,newValue:!1,source:o}),!n&&s&&this.updateGroupsFromChildrenSelections?.(o)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const i=e.detailNode?.detailGridInfo?.api;if(!i)return;const o=function lE(e){let t=0,i=0;return e.forEachNode(o=>{o.isSelected()?t++:o.selectable&&i++}),vh(t,i)}(i);if(e.isSelected()!==o&&this.selectRowNode(e,o,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),!o){const s=this.detailSelection.get(e.id)??new Set;for(const r of i.getSelectedNodes())s.add(r.id);this.detailSelection.set(e.id,s)}}setDetailSelectionState(e,t,i){if(this.masterSelectsDetail){if(!Bn(t))return void se(269);switch(e.isSelected()){case!0:i.selectAll();break;case!1:i.deselectAll();break;case void 0:{const o=this.detailSelection.get(e.id);if(o){const n=[];for(const s of o){const r=i.getRowNode(s);r&&n.push(r)}i.setNodesSelected({nodes:n,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}}],dependsOn:[cE]};function bh(e){e.rowModel?.onRowHeightChanged()}function yh(e){e.rowAutoHeight?.active?se(3):e.rowModel?.resetRowHeights()}var CE={moduleName:"CsrmSsrmSharedApi",version:ge,apiFunctions:{expandAll:function hE(e){e.expansionSvc?.expandAll(!0)},collapseAll:function gE(e){e.expansionSvc?.expandAll(!1)}}},vE={moduleName:"RowModelSharedApi",version:ge,apiFunctions:{onRowHeightChanged:bh,resetRowHeights:yh}},wE={moduleName:"SsrmInfiniteSharedApi",version:ge,apiFunctions:{setRowCount:function pE(e,t,i){const o=function fS(e){const t=e.rowModel;return"serverSide"===t.getType()?t:void 0}(e);if(o)return 0===e.rowGroupColsSvc?.columns.length?t<0?void tt(238):void o.setRowCount(t,i):void tt(28);mr(e)?.setRowCount(t,i)},getCacheBlockState:function fE(e){return lo(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}},isLastRowIndexKnown:function mE(e){return e.rowModel.isLastRowIndexKnown()}}},yE={moduleName:"AlignedGrids",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t="function"==typeof e;return"function"==typeof e&&(e=e()),e.map(o=>{if(!o)return tt(18),void(t||tt(20));if(this.isGridApi(o))return o;const n=o;return"current"in n?n.current?.api:(n.api||tt(19),n.api)}).filter(o=>!!o&&!o.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){if(!this.consuming)for(const t of this.getAlignedGridApis())t.isDestroyed()||t.dispatchEvent(e)}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){"horizontal"===e.direction&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const i=[];return e.columns?e.columns.forEach(o=>{i.push(t(o))}):e.column&&i.push(t(e.column)),i}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":this.processColumnEvent(e);break;case"columnGroupOpened":this.processGroupOpenedEvent(e);break;case"columnPivotChanged":se(21)}})}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;if(t)for(const i of e.columnGroups){let o=null;i&&(o=t.getProvidedColGroup(i.getGroupId())),(!i||o)&&t.setColumnGroupOpened(o,i.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){const t=e.column;let i=null;const o=this.beans,{colResize:n,ctrlsSvc:s,colModel:r}=o;if(t&&(i=r.getColDefCol(t.getColId())),t&&!i)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":Pi(o,{state:e.api.getColumnState().map(g=>({colId:g.colId})),applyOrder:!0},"alignedGridChanged");break;case"columnVisible":Pi(o,{state:e.api.getColumnState().map(g=>({colId:g.colId,hide:g.hide}))},"alignedGridChanged");break;case"columnPinned":Pi(o,{state:e.api.getColumnState().map(g=>({colId:g.colId,pinned:g.pinned}))},"alignedGridChanged");break;case"columnResized":{const c=e,u={};for(const g of a)u[g.getId()]={key:g.getColId(),newWidth:g.getActualWidth()};for(const g of c.flexColumns??[])u[g.getId()]&&delete u[g.getId()];n?.setColumnWidths(Object.values(u),!1,c.finished,"alignedGridChanged");break}}const d=s.getGridBodyCtrl().isVerticalScrollShowing();for(const c of this.getAlignedGridApis())c.setGridOption("alwaysShowVerticalScroll",d)}}],dependsOn:[nu]},SE=class extends Y{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},Sh(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){const{selectionSvc:t,pinnedRowModel:i,groupStage:o}=this.beans;t?.reset("rowDataChanged"),i?.isManual()&&i.reset(),this.dispatchRowDataUpdateStarted(e),this.allNodesMap=Object.create(null),this.nextId=0;const n=Sh(this.rootNode),s=new Array(e.length);n._leafs=s;let r=0;const a=o?.getNestedDataGetter(),l=a?new Set:null,d=(c,u)=>{const g=c.level+1;for(let m=0,w=u.length;m<w;++m){const b=u[m];if(!b)continue;const x=this.createRowNode(b,g);if(x.sourceRowIndex=r,s[r++]=x,l&&!l.has(b)){l.add(b),x.treeParent=c;const A=a(b);A&&d(x,A)}}};d(n,e),s.length=r}setImmutableRowData(e,t){const{rootNode:i,gos:o}=this;this.dispatchRowDataUpdateStarted(t);const n=ko(o),s=e.changedRowNodes,{adds:r,updates:a}=s,l=new Set,d=[],c=this.beans.groupStage?.getNestedDataGetter();let u=!!o.get("suppressMaintainUnsortedOrder")&&void 0,g=-1,m=!1;const w=(A,O)=>{if(!u&&void 0!==u){const V=A.sourceRowIndex;u=V<=g,g=V}A.data!==O&&(A.updateData(O),r.has(A)||a.add(A),!A.selectable&&A.isSelected()&&d.push(A))},b=(A,O,V)=>{for(let te=0,oe=O.length;te<oe;++te){const ce=O[te];if(!ce)continue;let pe=this.getRowNode(n({data:ce,level:V}));if(pe?(w(pe,ce),m||(m=!!c&&pe.treeParent!==A)):(pe=this.createRowNode(ce,V),r.add(pe)),!c||l.has(pe)){l.add(pe);continue}l.add(pe),pe.treeParent=A;const Ne=c(ce);Ne&&b(pe,Ne,V+1)}};b(i,t,0);const x=this.deleteUnusedNodes(l,s,d)||u||r.size>0;if(x){const A=i._leafs??(i._leafs=[]);void 0===u?FE(A,l,s):PE(A,l)&&(s.reordered=!0)}(x||m||a.size)&&(e.rowDataUpdated=!0,this.deselect(d))}deleteUnusedNodes(e,{removals:t},i){const o=this.rootNode._leafs;for(let n=0,s=o.length;n<s;n++){const r=o[n];e.has(r)||(t.add(r),r.isSelected()&&i.push(r),this.deleteNode(r))}return t.size>0}updateRowData(e,t){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return se(268),{remove:[],update:[],add:[]};const i=[],o=ko(this.gos),n=this.executeRemove(o,e,t,i),s=this.executeUpdate(o,e,t,i),r=this.executeAdd(e,t);return this.deselect(i),{remove:n,update:s,add:r}}executeRemove(e,{remove:t},{adds:i,updates:o,removals:n},s){const r=this.rootNode._leafs,a=r?.length,l=t?.length;if(!l||!a)return[];let g,d=0,c=a,u=0;const m=new Array(l);for(let w=0;w<l;++w){const b=this.lookupNode(e,t[w]);if(!b)continue;const x=b.sourceRowIndex;x<c&&(c=x),x>u&&(u=x),b.isSelected()&&s.push(b),this.deleteNode(b),i.delete(b)?(g??(g=new Set),g.add(b)):(o.delete(b),n.add(b)),m[d++]=b}return m.length=d,d&&xE(r,c,u,n,g),m}executeUpdate(e,{update:t},{adds:i,updates:o},n){const s=t?.length;if(!s)return[];const r=new Array(s);let a=0;for(let l=0;l<s;l++){const d=t[l],c=this.lookupNode(e,d);c&&(c.updateData(d),!c.selectable&&c.isSelected()&&n.push(c),r[a++]=c,i.has(c)||o.add(c))}return r.length=a,r}executeAdd(e,t){var i;const o=(i=this.rootNode)._leafs??(i._leafs=[]),n=o.length,s=e.add,r=s?.length;if(!r)return[];const a=n+r;let l=this.sanitizeAddIndex(o,e.addIndex);if(l<n){for(let u=n-1,g=a-1;u>=l;--u){const m=o[u];m.sourceRowIndex=g,o[g--]=m}t.reordered=!0}o.length=a;const d=new Array(r),c=t.adds;for(let u=0;u<r;u++){const g=this.createRowNode(s[u],0);c.add(g),g.sourceRowIndex=l,o[l]=g,d[u]=g,l++}return d}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselect(e){const t="rowDataChanged",i=this.beans.selectionSvc;e.length&&i?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),i?.updateGroupsFromChildrenSelections?.(t),e.length&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:i?.getSelectedNodes()??null,serverSideState:null})}createRowNode(e,t){const i=new mo(this.beans);i.parent=this.rootNode,i.level=t,i.group=!1,i.expanded=!1,i.setDataAndId(e,String(this.nextId++));const o=i.id,n=this.allNodesMap;return n[o]&&se(2,{nodeId:o}),n[o]=i,i}deleteNode(e){e.clearRowTopAndRowIndex();const t=e.id,i=this.allNodesMap;i[t]===e&&delete i[t];const o=e.pinnedSibling;o&&this.beans.pinnedRowModel?.pinRow(o,null)}lookupNode(e,t){if(!e)return EE(this.rootNode._leafs,t);const i=e({data:t,level:0});return this.allNodesMap[i]||(tt(4,{id:i}),null)}sanitizeAddIndex(e,t){const i=e.length;if("number"!=typeof t||t<0||t>=i||Number.isNaN(t))return i;t=Math.ceil(t);const o=this.gos;return t>0&&o.get("treeData")&&o.get("getDataPath")&&(t=RE(e,t)),t}},RE=(e,t)=>{for(let i=0,o=e.length;i<o;i++)if(e[i]?.rowIndex==t-1)return i+1;return t},Sh=e=>{e.group=!0,e.level=-1,e.id="ROOT_NODE_ID",0!==e._leafs?.length&&(e._leafs=[]);const t=[],i=[],o=[],n=[];e.childrenAfterGroup=t,e.childrenAfterSort=i,e.childrenAfterAggFilter=o,e.childrenAfterFilter=n;const s=e.sibling;return s&&(s.childrenAfterGroup=t,s.childrenAfterSort=i,s.childrenAfterAggFilter=o,s.childrenAfterFilter=n,s.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},EE=(e,t)=>{if(e)for(let i=0,o=e.length;i<o;i++){const n=e[i];if(n.data===t)return n}return tt(5,{data:t}),null},xE=(e,t,i,o,n)=>{for(let s=t=Math.max(0,t),r=e.length;s<r;++s){const a=e[s];s<=i&&(o.has(a)||n?.has(a))||(a.sourceRowIndex=t,e[t++]=a)}e.length=t},PE=(e,t)=>{e.length=t.size;let o=0,n=!1,s=!1;for(const r of t){const a=r.sourceRowIndex;a===o?s||(s=n):(a>=0?s=!0:n=!0,r.sourceRowIndex=o,e[o]=r),++o}return s},FE=(e,t,{removals:i,adds:o})=>{const n=e.length;e.length=t.size;let s=0;for(let r=0;r<n;++r){const a=e[r];i.has(a)||(s!==r&&(a.sourceRowIndex=s,e[s]=a),++s)}for(const r of o)r.sourceRowIndex<0&&(r.sourceRowIndex=s,e[s++]=r);e.length=s},Rh=e=>{const t=e.childrenAfterSort,i=e.sibling;if(i&&(i.childrenAfterSort=t),t)for(let o=0,n=t.length-1;o<=n;o++){const s=t[o],r=0===o,a=o===n;s.firstChild!==r&&(s.firstChild=r,s.dispatchRowEvent("firstChildChanged")),s.lastChild!==a&&(s.lastChild=a,s.dispatchRowEvent("lastChildChanged")),s.childIndex!==o&&(s.childIndex=o,s.dispatchRowEvent("childIndexChanged"))}},_E=(e,t,i,o)=>{let n=0,s=0;const r=i.length,a=o.length,l=new Array(r+a);let d=0;for(;n<r&&s<a;){const c=i[n],u=o[s];e.compareRowNodes(t,c,u)<0?(l[d++]=c.rowNode,++n):(l[d++]=u.rowNode,++s)}for(;n<r;)l[d++]=i[n++].rowNode;for(;s<a;)l[d++]=o[s++].rowNode;return l},Eh=(e,t)=>{const i=t.childrenAfterGroup;if(i)for(let o=0,n=i.length;o<n;++o){const s=i[o];s.data&&e.push(s),s.group&&Eh(e,s)}},WE={moduleName:"ClientSideRowModel",version:ge,rowModels:["clientSide"],beans:[class extends Y{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.rowDataUpdatedPending=!1,this.asyncTransactions=null,this.asyncTransactionsTimer=0,this.started=!1,this.refreshingModel=!1,this.rowNodesCountReady=!1,this.stages=[],this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=St(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const t=new mo(this.beans);this.rootNode=t,this.nodeManager=this.createBean(new SE(t));const i=this.refreshModel.bind(this,{step:"group"}),o=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:i,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:i,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){const{beans:e,stagesRefreshProps:t}=this,i=[e.groupStage,e.filterStage,e.pivotStage,e.aggStage,e.sortStage,e.filterAggStage,e.flattenStage].filter(o=>!!o);this.stages=i;for(let o=i.length-1;o>=0;--o)for(const n of i[o].refreshProps)t.set(n,o);this.addManagedPropertyListeners([...t.keys()],o=>{const n=o.changeSet?.properties;n&&this.onPropChange(n)}),this.addManagedPropertyListener("rowData",()=>this.onPropChange(["rowData"])),this.addManagedPropertyListener("rowHeight",()=>this.resetRowHeights())}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,i,o){let n,s=!1;do{n=!1;const r=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(r,i),d=Math.min(a,o);for(let c=l;c<=d;c++){const u=this.getRow(c);if(u.rowHeightEstimated){const g=xi(this.beans,u);u.setRowHeight(g.height),n=!0,s=!0}}n&&this.setRowTopAndRowIndex()}while(n);return s}onPropChange(e){const{nodeManager:t,gos:i,beans:o}=this,n=o.groupStage;if(!t)return;const s=new Set(e),r=n?.onPropChange(s);let a;s.has("rowData")?a=i.get("rowData"):r&&(a=n?.extractData()),a&&!Array.isArray(a)&&(a=null,se(1));const l={step:"nothing",changedProps:s};a&&(!r&&!this.isEmpty()&&a.length>0&&i.exists("getRowId")&&!i.get("resetRowDataOnUpdate")?(l.keepRenderedRows=!0,l.animate=!i.get("suppressAnimationFrame"),l.changedRowNodes=new or,t.setImmutableRowData(l,a)):(l.rowDataUpdated=!0,l.newData=!0,t.setNewRowData(a),this.rowNodesCountReady=!0));const d=l.rowDataUpdated?"group":this.getRefreshedStage(e);d&&(l.step=d,this.refreshModel(l))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:i}=this,o=t.length;let n=o;for(let s=0,r=e.length;s<r&&n;++s)n=Math.min(n,i.get(e[s])??n);return n<o?t[n].step:null}setRowTopAndRowIndex(e){const{beans:t,rowsToDisplay:i}=this,o=t.environment.getDefaultRowHeight();let n=0;const s=Ft(this.gos,"normal");for(let r=0,a=i.length;r<a;++r){const l=i[r],d=l.id;if(null!=d&&e?.add(d),null==l.rowHeight){const c=xi(t,l,s,o);l.setRowHeight(c.height,c.estimated)}l.setRowTop(n),l.setRowIndex(r),n+=l.rowHeight}}clearRowTopAndRowIndex(e,t){const i=e.active,o=r=>{null!=r?.id&&!t.has(r.id)&&r.clearRowTopAndRowIndex()},n=r=>{o(r),o(r.detailNode),o(r.sibling);const a=r.childrenAfterGroup;if(r.hasChildren()&&a&&(!i||-1==r.level||r.expanded))for(let c=0,u=a.length;c<u;++c)n(a[c])},s=this.rootNode;s&&n(s)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay.length}getTopLevelRowCount(){const{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;if(t[0]===e)return 1;const o=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+o}getTopLevelRowDisplayedIndex(e){const{beans:t,rootNode:i,rowsToDisplay:o}=this;if(!i||!o.length||o[0]===i)return e;const s=i.childrenAfterSort,r=l=>{let d=s[l];if(this.gos.get("groupHideOpenParents"))for(;d.expanded&&d.childrenAfterSort&&d.childrenAfterSort.length>0;)d=d.childrenAfterSort[0];return d.rowIndex},a=t.footerSvc;return a?a?.getTopDisplayIndex(o,e,s,r):r(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:i}=this;if(!t||!i.length||i[0]===t)return e;let n=this.getRow(e);n.footer&&(n=n.sibling);let s=n.parent;for(;s&&s!==t;)n=s,s=n.parent;const r=t.childrenAfterSort?.indexOf(n)??-1;return r>=0?r:e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:!0,animate:ji(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const o=0===t.length||t.some(n=>n.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:o,keepRenderedRows:!0,animate:ji(this.gos)})}}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:ji(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new Zn(!1,this.rootNode);return t.active=e,t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:i,rowDataUpdated:o}=e;return!(!t||i||!o||t.removals.size||t.adds.size)}refreshModel(e){const{nodeManager:t,beans:i,eventSvc:o,started:n,refreshingModel:s}=this;if(!t)return;const r=!!e.rowDataUpdated,a=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&r));if(n&&r&&o.dispatchEvent({type:"rowDataUpdated"}),!n||s||i.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e))return void(this.rowDataUpdatedPending||(this.rowDataUpdatedPending=r));switch(this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.refreshingModel=!0,i.masterDetailSvc?.refreshModel(e),r&&"group"!==e.step&&i.colFilter?.refreshModel(),e.step){case"group":this.doGrouping(e);case"filter":this.doFilter(a);case"pivot":this.doPivot(a);case"aggregate":this.doAggregate(a);case"filter_aggregates":this.doFilterAggregates(a);case"sort":this.doSort(e.changedRowNodes,a);case"map":this.doRowsToDisplay()}const l=new Set;this.setRowTopAndRowIndex(l),this.clearRowTopAndRowIndex(a,l),this.refreshingModel=!1,o.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?._leafs?.length||!this.beans.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let i=!1,o=!1;const n=[],s=Vn(this.gos);return this.forEachNodeAfterFilterAndSort(r=>{if(!o)if(i&&(r===t||r===e)&&(o=!0,s&&r.group))Eh(n,r);else{if(!i){if(r!==t&&r!==e)return;i=!0,t===e&&(o=!0)}(!r.group||!s)&&n.push(r)}}),n}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay,i=t.length;if(this.isEmpty()||0===i)return-1;let o=0,n=i-1;if(e<=0)return 0;if(t[n].rowTop<=e)return n;let r=-1,a=-1;for(;;){const l=Math.floor((o+n)/2),d=t[l];if(this.isRowInPixel(d,e)||(d.rowTop<e?o=l+1:d.rowTop>e&&(n=l-1),r===o&&a===n))return l;r=o,a=n}}isRowInPixel(e,t){const i=e.rowTop;return i<=t&&i+e.rowHeight>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let i=0,o=t.length;i<o;++i)e(t[i],i)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToDisplay;for(let i=0,o=t.length;i<o;++i)e(t[i],i)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,i=>i.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,i=>i.childrenAfterSort)}forEachPivotNode(e,t,i){const{colModel:o,rowGroupColsSvc:n}=this.beans;if(!o.isPivotMode())return;if(!n?.columns.length)return void e(this.rootNode,0);const s=i?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,r=>r.leafGroup?null:r[s])}depthFirstSearchRowNodes(e,t=!1,i=s=>s.childrenAfterGroup,o=this.rootNode,n=0){let s=n;if(!o)return s;const r=o===this.rootNode;if(r||e(o,s++),o.hasChildren()&&!o.footer){const a=i(o);if(a){const l=this.beans.footerSvc;s=l?.addTotalRows(s,o,e,t,r,"top")??s;for(const d of a)s=this.depthFirstSearchRowNodes(e,t,i,d,s);return l?.addTotalRows(s,o,e,t,r,"bottom")??s}}return s}doAggregate(e){const t=this.rootNode;t&&this.beans.aggStage?.execute({rowNode:t,changedPath:e})}doFilterAggregates(e){const t=this.rootNode,i=this.beans.filterAggStage;i?i.execute({rowNode:t,changedPath:e}):t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){const i=this.beans.sortStage;i?i.execute({rowNode:this.rootNode,changedRowNodes:e,changedPath:t}):t.forEachChangedNodeDepthFirst(o=>{o.childrenAfterSort=o.childrenAfterAggFilter.slice(0),Rh(o)})}doGrouping(e){const t=this.rootNode,o=this.beans.groupStage?.execute({rowNode:t,changedRowNodes:e.changedRowNodes,changedPath:e.changedPath,afterColumnsChanged:!!e.afterColumnsChanged});if(void 0===o){const n=t._leafs;t.childrenAfterGroup=n,t.updateHasChildren();const s=t.sibling;s&&(s.childrenAfterGroup=n)}(o||e.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}))}doFilter(e){const t=this.beans.filterStage;t?t.execute({rowNode:this.rootNode,changedPath:e}):e.forEachChangedNodeDepthFirst(i=>{i.childrenAfterFilter=i.childrenAfterGroup,Wu(i)},!0)}doPivot(e){this.beans.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getRowNode(e){const t=this.nodeManager?.getRowNode(e);return"object"==typeof t?t:"string"==typeof e&&0===e.indexOf(Sa)?this.beans.groupStage?.getNode(e):void 0}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const i=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),i)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:i,asyncTransactions:o}=this;if(!e)return;t.valueCache?.onDataChanged();const n=[],s=[],r=new or;for(const{rowDataTransaction:a,callback:l}of o??[]){this.rowNodesCountReady=!0;const d=e.updateRowData(a,r);n.push(d),l&&s.push(l.bind(null,d))}this.commitTransactions(r),s.length>0&&setTimeout(()=>{for(let a=0,l=s.length;a<l;a++)s[a]()},0),n.length>0&&i.dispatchEvent({type:"asyncTransactionsFlushed",results:n}),this.asyncTransactionsTimer=0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const i=new or,o=t.updateRowData(e,i);return this.commitTransactions(i),o}commitTransactions(e){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:e,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{beans:e,rootNode:t}=this,i=e.flattenStage;if(i)return void(this.rowsToDisplay=i.execute({rowNode:t}));const o=this.rootNode.childrenAfterSort??[];for(const n of o)n.setUiLevel(0);this.rowsToDisplay=o}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0);const i=e.sibling;i?.setRowHeight(i.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const i=t.detailNode;i?.setRowHeight(i.rowHeight,!0);const o=t.sibling;o?.setRowHeight(o.rowHeight,!0),e=!0}),e}onGridStylesChanges(e){e.rowHeightChanged&&!this.beans.rowAutoHeight?.active&&this.resetRowHeights()}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy(),this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.asyncTransactions=null,clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},class extends Y{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","groupDisplayType","accentedSort"]}execute(e){const t=this.beans.sortSvc.getSortOptions(),i=t.length>0&&!!e.changedRowNodes&&this.gos.get("deltaSort");this.sort(t,i,e.changedRowNodes,e.changedPath)}sort(e,t,i,o){const{gos:n,colModel:s,rowGroupColsSvc:r,rowNodeSorter:a,rowRenderer:l,showRowGroupCols:d}=this.beans,c=n.get("groupMaintainOrder"),u=s.getCols().some(O=>O.isRowGroupActive()),g=r?.columns,m=s.isPivotMode(),w=n.getCallback("postSortRows");let x,b=!1;if(o?.forEachChangedNodeDepthFirst(O=>{const V=m&&O.leafGroup;let te=c&&u&&!O.leafGroup;te&&(x??(x=this.shouldSortContainsGroupCols(e)),te&&(te=!x));let oe=null;if(te){let ce=!1;if(g){const pe=O.level+1;pe<g.length&&(ce=null===g[pe].getSort())}ce||(oe=(e=>{const t=e.childrenAfterSort,i=e.childrenAfterAggFilter,o=t?.length,n=i?.length;if(!o||!n)return null;const s=new Array(n),r=new Set;for(let l=0;l<n;++l)r.add(i[l]);let a=0;for(let l=0;l<o;++l){const d=t[l];r.delete(d)&&(s[a++]=d)}if(0===r.size&&a===o)return t;for(const l of r)s[a++]=l;return s.length=a,s})(O))}else!e.length||V||(oe=t&&i?((e,t,i,o,n)=>{const s=t.childrenAfterAggFilter,r=t.childrenAfterSort;if(!r)return e.doFullSort(s,n);const a=new Set,l=[],{updates:d,adds:c}=i;for(let g=0,m=s.length;g<m;++g){const w=s[g];d.has(w)||c.has(w)||o&&!o.canSkip(w)?l.push({currentPos:l.length,rowNode:w}):a.add(w)}const u=r.filter(g=>a.has(g)).map((g,m)=>({currentPos:m,rowNode:g}));return l.sort((g,m)=>e.compareRowNodes(n,g,m)),_E(e,n,l,u)})(a,O,i,o,e):a.doFullSort(O.childrenAfterAggFilter,e));oe||(oe=O.childrenAfterAggFilter?.slice(0)??[]),b||(b=O.childrenAfterSort?.[0]!==oe[0]),O.childrenAfterSort=oe,Rh(O),w&&w({nodes:O.childrenAfterSort})}),b&&n.get("groupHideOpenParents")){const O=d?.getShowRowGroupCols();O?.length&&l.refreshCells({columns:O,force:!0})}}shouldSortContainsGroupCols(e){const t=e.length;if(!t)return!1;if(ti(this.gos)){for(let i=0;i<t;++i){const o=e[i].column;if(o.isPrimary()&&o.isRowGroupActive())return!0}return!1}for(let i=0;i<t;++i)if(e[i].column.getColDef().showRowGroup)return!0;return!1}}],dependsOn:[Ou]},UE={moduleName:"ClientSideRowModelApi",version:ge,apiFunctions:{onGroupExpandedOrCollapsed:function AE(e){e.expansionSvc?.onGroupExpandedOrCollapsed()},refreshClientSideRowModel:function IE(e,t){const i=yo(e);i&&((!t||"everything"===t)&&(t="group"),i.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))},isRowDataEmpty:function OE(e){return yo(e)?.isEmpty()??!0},forEachLeafNode:function LE(e,t){yo(e)?.forEachLeafNode(t)},forEachNodeAfterFilter:function BE(e,t){yo(e)?.forEachNodeAfterFilter(t)},forEachNodeAfterFilterAndSort:function VE(e,t){yo(e)?.forEachNodeAfterFilterAndSort(t)},applyTransaction:function HE(e,t){return e.frameworkOverrides.wrapIncoming(()=>yo(e)?.updateRowData(t))},applyTransactionAsync:function GE(e,t,i){e.frameworkOverrides.wrapIncoming(()=>yo(e)?.batchUpdateRowData(t,i))},flushAsyncTransactions:function NE(e){e.frameworkOverrides.wrapIncoming(()=>yo(e)?.flushAsyncTransactions())},getBestCostNodeSelection:function zE(e){return e.selectionSvc?.getBestCostNodeSelection()},resetRowHeights:yh,onRowHeightChanged:bh},dependsOn:[CE,vE]},jE={moduleName:"SharedExport",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel}serialize(e,t={}){const{allColumns:i,columnKeys:o,skipRowGroups:n,exportRowNumbers:s}=t,r=this.getColumnsToExport({allColumns:i,skipRowGroups:n,columnKeys:o,exportRowNumbers:s});return[this.prepareSession(r),this.prependContent(t),this.exportColumnGroups(t,r),this.exportHeaders(t,r),this.processPinnedTopRows(t,r),this.processRows(t,r),this.processPinnedBottomRows(t,r),this.appendContent(t)].reduce((a,l)=>l(a),e).parse()}processRow(e,t,i,o){const n=t.shouldRowBeSkipped||(()=>!1),r=null!=t.rowPositions||!!t.onlySelected,a=this.gos.get("groupHideOpenParents")&&!r,l=this.colModel.isPivotMode()?o.leafGroup:!o.group,d=!!o.footer,c=1===o.allChildrenCount&&1===o.childrenAfterGroup?.length&&function Kl(e,t){const i=e.get("groupHideParentOfSingleChild");return!!(!0===i||"leafGroupsOnly"===i&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}(this.gos,o);if(!l&&!d&&(t.skipRowGroups||c||a)||t.onlySelected&&!o.isSelected()||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned||o.stub||-1===o.level&&!l&&!d||n(Ie(this.gos,{node:o})))return;const m=e.onNewBodyRow(o);if(i.forEach((w,b)=>{m.onColumn(w,b,o)}),t.getCustomContentBelowRow){const w=t.getCustomContentBelowRow(Ie(this.gos,{node:o}));w&&e.addCustomContent(w)}}appendContent(e){return t=>{const i=e.appendContent;return i&&t.addCustomContent(i),t}}prependContent(e){return t=>{const i=e.prependContent;return i&&t.addCustomContent(i),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportColumnGroups(e,t){return i=>{if(!e.skipColumnGroupHeaders){const o=new pd,{colGroupSvc:n}=this.beans,s=n?n.createColumnGroups({columns:t,idCreator:o,pinned:null,isStandaloneStructure:!0}):t;this.recursivelyAddHeaderGroups(s,i,e.processGroupHeaderCallback)}return i}}exportHeaders(e,t){return i=>{if(!e.skipColumnHeaders){const o=i.onNewHeaderRow();t.forEach((n,s)=>{o.onColumn(n,s,void 0)})}return i}}processPinnedTopRows(e,t){return i=>{const o=this.processRow.bind(this,i,e,t);return e.rowPositions?e.rowPositions.filter(n=>"top"===n.rowPinned).sort((n,s)=>n.rowIndex-s.rowIndex).map(n=>this.pinnedRowModel?.getPinnedTopRow(n.rowIndex)).forEach(o):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("top",o),i}}processRows(e,t){return i=>{const o=this.rowModel,n=ut(this.gos),s=lo(this.gos),r=!n&&e.onlySelected,a=this.processRow.bind(this,i,e,t),{exportedRows:l="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(d=>null==d.rowPinned).sort((d,c)=>d.rowIndex-c.rowIndex).map(d=>o.getRow(d.rowIndex)).forEach(a);else if(this.colModel.isPivotMode())n?o.forEachPivotNode(a,!0,"filteredAndSorted"===l):s?o.forEachNodeAfterFilterAndSort(a,!0):o.forEachNode(a);else if(e.onlySelectedAllPages||r){const d=this.beans.selectionSvc?.getSelectedNodes()??[];this.replicateSortedOrder(d),d.forEach(a)}else"all"===l?o.forEachNode(a):n||s?o.forEachNodeAfterFilterAndSort(a,!0):o.forEachNode(a);return i}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:i}=this.beans;if(!t||!i)return;const o=t.getSortOptions(),n=(s,r)=>null!=s.rowIndex&&null!=r.rowIndex?s.rowIndex-r.rowIndex:s.level===r.level?s.parent?.id===r.parent?.id?i.compareRowNodes(o,{rowNode:s,currentPos:s.rowIndex??-1},{rowNode:r,currentPos:r.rowIndex??-1}):n(s.parent,r.parent):s.level>r.level?n(s.parent,r):n(s,r.parent);e.sort(n)}processPinnedBottomRows(e,t){return i=>{const o=this.processRow.bind(this,i,e,t);return e.rowPositions?e.rowPositions.filter(n=>"bottom"===n.rowPinned).sort((n,s)=>n.rowIndex-s.rowIndex).map(n=>this.pinnedRowModel?.getPinnedBottomRow(n.rowIndex)).forEach(o):this.pinnedRowModel?.isManual()||this.pinnedRowModel?.forEachPinnedRow("bottom",o),i}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:i=!1,exportRowNumbers:o=!1,columnKeys:n}=e,{colModel:s,gos:r,visibleCols:a}=this,l=s.isPivotMode(),d=g=>!qi(g)&&(!Xi(g)||o);if(n?.length)return s.getColsForKeys(n).filter(d);const c=r.get("treeData");let u=[];return u=t&&!l?s.getCols():a.allCols,u=u.filter(g=>d(g)&&(!(i&&!c)||!Kr(g))),u}recursivelyAddHeaderGroups(e,t,i){const o=[];for(const n of e){const s=n;if(s.getChildren)for(const r of s.getChildren()??[])o.push(r)}e.length>0&&Et(e[0])&&this.doAddHeaderHeader(t,e,i),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,i)}doAddHeaderHeader(e,t,i){const o=e.onNewHeaderGroupingRow();let n=0;for(const s of t){const r=s;let a;a=i?i(Ie(this.gos,{columnGroup:r})):this.beans.colNames.getDisplayNameForColumnGroup(r,"header");const d=(r.isExpandable()?r.getLeafColumns():[]).reduce((c,u,g,m)=>{let w=rt(c);return"open"===u.getColumnGroupShow()?(!w||null!=w[1])&&(w=[g],c.push(w)):w&&null==w[1]&&(w[1]=g-1),g===m.length-1&&w&&null==w[1]&&(w[1]=g),c},[]);o.onColumn(r,a||"",n++,r.getLeafColumns().length-1,d)}}}]},KE=class extends yS{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:i}=e;this.suppressQuotes=t,this.columnSeparator=i}addCustomContent(e){e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((i,o)=>{0!==o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(i.data.value||""),i.mergeAcross&&this.appendEmptyCells(i.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,i,o){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(o)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,i){0!=t&&(this.result+=this.columnSeparator);const o=this.extractRowCellValue(e,t,t,"csv",i);this.result+=this.putInQuotes(o.valueFormatted??o.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(null==e)return'""';let t;return"string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(se(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1}},QE={moduleName:"CsvExport",version:ge,beans:[class extends bS{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.colModel=e.colModel,this.colNames=e.colNames,this.rowGroupColsSvc=e.rowGroupColsSvc,this.valueSvc=e.valueSvc}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed())return void se(51);const t=this.getMergedParams(e),i=this.getData(t),o=new Blob(["\ufeff",i],{type:"text/plain"}),n="function"==typeof t.fileName?t.fileName(Ie(this.gos,{})):t.fileName;!function SS(e,t){const i=document.defaultView||window;if(!i)return void se(52);const o=document.createElement("a"),n=i.URL.createObjectURL(t);o.setAttribute("href",n),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:i})),o.remove(),i.setTimeout(()=>{i.URL.revokeObjectURL(n)},0)}(this.getFileName(n),o)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const i=t?Object.assign({},e):this.getMergedParams(e);return this.getData(i)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:i,rowGroupColsSvc:o,valueSvc:n,gos:s}=this,{processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:d,suppressQuotes:c,columnSeparator:u}=e;return new KE({colModel:t,colNames:i,valueSvc:n,gos:s,processCellCallback:r||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:d||void 0,suppressQuotes:c||!1,columnSeparator:u||",",rowGroupColsSvc:o})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}}],apiFunctions:{getDataAsCsv:function XE(e,t){return e.csvCreator?.getDataAsCsv(t)},exportDataAsCsv:function YE(e,t){e.csvCreator?.exportDataAsCsv(t)}},dependsOn:[jE]},ZE=class extends Y{constructor(e,t,i){super(),this.id=e,this.parentCache=t,this.params=i,this.state="needsLoading",this.version=0,this.startRow=e*i.blockSize,this.endRow=this.startRow+i.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,i){this.successCommon(e,{rowData:t,rowCount:i})}isRequestMostRecentAndLive(e){const t=e===this.version,i=this.isAlive();return t&&i}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:i,beans:o,rowNodes:n}=this;for(let s=0;s<e;s++){const r=i+s,a=new mo(o);a.setRowHeight(t),a.uiLevel=0,a.setRowIndex(r),a.setRowTop(t*r),n.push(a)}}getBlockStateJson(){const{id:e,startRow:t,endRow:i,state:o}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:i,pageStatus:o}}}setDataAndId(e,t,i){p(t)?e.setDataAndId(t,i.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();K(this.params.datasource.getRows)?se(90):window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:i,params:{sortModel:o,filterModel:n},gos:s}=this;return{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,i),failCallback:this.pageLoadFailed.bind(this,i),sortModel:o,filterModel:n,context:Ie(s,{}).context}}forEachNode(e,t,i){this.rowNodes.forEach((o,n)=>{this.startRow+n<i&&e(o,t.value++)})}getRow(e,t=!1){return t||(this.lastAccessed=this.params.lastAccessedSequence.value++),this.rowNodes[e-this.startRow]}processServerResult(e){const{rowNodes:t,beans:i}=this;t.forEach((n,s)=>{const r=e.rowData?e.rowData[s]:void 0;!n.id&&n.alreadyRendered&&r&&(t[s]=new mo(i),t[s].setRowIndex(n.rowIndex),t[s].setRowTop(n.rowTop),t[s].setRowHeight(n.rowHeight),n.clearRowTopAndRowIndex()),this.setDataAndId(t[s],r,this.startRow+s)}),this.parentCache.pageLoaded(this,null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0)}destroy(){for(const e of this.rowNodes)e.clearRowTopAndRowIndex();super.destroy()}},ex=class extends Y{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const i=Math.floor(e/this.params.blockSize);let o=this.blocks[i];if(!o){if(t)return;o=this.createBlock(i)}return o.getRow(e)}createBlock(e){const t=this.params,i=this.createBean(new ZE(e,this,t));return this.blocks[i.id]=i,this.blockCount++,this.purgeBlocksIfNeeded(i),t.rowNodeBlockLoader.addBlock(i),i}refreshCache(){if(0!=this.blockCount){for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}else this.purgeCache()}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Ti(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(r=>r!=e);t.sort((r,a)=>a.lastAccessed-r.lastAccessed);const o=this.params.maxBlocksInCache>0,n=o?this.params.maxBlocksInCache-1:null;t.forEach((r,a)=>{if("needsLoading"===r.state&&a>=1||o&&a>=n){if(this.isBlockCurrentlyDisplayed(r)||this.isBlockFocused(r))return;this.removeBlockFromCache(r)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||null!=t.rowPinned)return!1;const{startRow:i,endRow:o}=e;return t.rowIndex>=i&&t.rowIndex<o}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:i}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,i-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if("number"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:i,overflowSize:o}=this.params,s=(e.id+1)*i+o;this.rowCount<s&&(this.rowCount=s)}}setRowCount(e,t){this.rowCount=e,p(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const i of this.getBlocksInOrder())i.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){return Object.values(this.blocks).sort((i,o)=>i.id-o.id)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const i=[];let o=-1,n=!1;const s={value:0};let r=!1;for(const l of this.getBlocksInOrder())if(!r){if(n&&o+1!==l.id){r=!0;continue}o=l.id,l.forEachNode(d=>{const c=d===e||d===t;(n||c)&&i.push(d),c&&(n=!n)},s,this.rowCount)}return r||n?[]:i}},rx={moduleName:"InfiniteRowModelCore",version:ge,rowModels:["infinite"],beans:[class extends Y{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if("infinite"!==this.gos.get("rowModelType"))return;const e=this.beans,t=new mo(e);this.rootNode=t,t.level=-1,this.rowHeight=Ai(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=Ai(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;e=!this.cacheParams||!T(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]),e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){this.datasource&&(null!=ko(this.gos)||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache())}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:i,rowNodeBlockLoader:o,eventSvc:n,gos:s}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:i?.getSortModel()??[],rowNodeBlockLoader:o,initialRowCount:s.get("infiniteInitialRowCount"),maxBlocksInCache:s.get("maxBlocksInCache"),rowHeight:Ai(e),overflowSize:s.get("cacheOverflowSize"),blockSize:s.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new ex(this.cacheParams)),n.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(i=>{i.id===e&&(t=i)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(0!==this.rowHeight){const t=Math.floor(e/this.rowHeight),i=this.getRowCount()-1;return t>i?i:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}},class extends Y{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=function zr(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=St(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){gi(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void Ti(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");const e=null!=this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(i=>"needsLoading"===i.state).slice(0,e);this.activeBlockLoadsCount+=t.length;for(const i of t)i.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:i,state:o}=t.getBlockStateJson();e[i]=o}),e}printCacheStatus(){Ti(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}}]},ax={moduleName:"InfiniteRowModel",version:ge,apiFunctions:{refreshInfiniteCache:function ix(e){mr(e)?.refreshCache()},purgeInfiniteCache:function ox(e){mr(e)?.purgeCache()},getInfiniteRowCount:function nx(e){return mr(e)?.getRowCount()}},dependsOn:[rx,wE]},cx={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},gx={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},Cx={moduleName:"HighlightChanges",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,i=this.beans.gos.get("cellFlashDuration"),o=this.beans.gos.get("cellFadeDuration")){const n=this.animations[t];n.delete(e);const s=Date.now(),r=s+i;n.set(e,{phase:"flash",flashEndTime:r,fadeEndTime:s+i+o});const d=`ag-cell-${t}`,c=`${d}-animation`,{comp:u,eGui:{style:g}}=e;u.toggleCss(d,!0),u.toggleCss(c,!1),g.removeProperty("transition"),g.removeProperty("transition-delay"),this.nextAnimationTime&&r+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),i)}),this.nextAnimationTime=r)}advanceAnimations(){const e=Date.now();let t=null;for(const i of Object.keys(this.animations)){const o=this.animations[i],n=`ag-cell-${i}`,s=`${n}-animation`;for(const[r,a]of o){if(!r.isAlive()||!r.comp){o.delete(r);continue}const{phase:l,flashEndTime:d,fadeEndTime:c}=a,u="flash"===l?d:c;if(!(e+15>=u)){t=Math.min(u,t??1/0);continue}const{comp:m,eGui:{style:w}}=r;switch(l){case"flash":m.toggleCss(n,!1),m.toggleCss(s,!0),w.transition=`background-color ${c-d}ms`,w.transitionDelay=d-e+"ms",t=Math.min(c,t??1/0),a.phase="fade";break;case"fade":m.toggleCss(n,!1),m.toggleCss(s,!1),w.removeProperty("transition"),w.removeProperty("transition-delay"),o.delete(r)}}}null==t?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const i=function iv(e){const{rowIndex:t,rowPinned:i,column:o}=e;return`${t}.${i??"null"}.${o.getId()}`}(e.cellPosition);t.cells[i]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}}],userComponents:{agAnimateShowChangeCellRenderer:class extends ot{constructor(){super(cx),this.eValue=fe,this.eDelta=fe,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const i=Math.abs(t),o=e.formatValue(i),n=p(o)?o:i,s=t>=0,r=this.eDelta;r.textContent=s?"\u2191"+n:"\u2193"+n,r.classList.toggle("ag-value-change-delta-up",s),r.classList.toggle("ag-value-change-delta-down",!s)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),wt(this.eDelta)}refresh(e,t=!1){const{value:i,valueFormatted:o}=e,{eValue:n,lastValue:s,beans:r}=this;if(i===s||(p(o)?n.textContent=o:p(i)?n.textContent=i:wt(n),r.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const a=i&&"object"==typeof i&&"toNumber"in i?i.toNumber():i,l=s&&"object"==typeof s&&"toNumber"in s?s.toNumber():s;return a!==l&&("number"==typeof a&&"number"==typeof l&&this.showDelta(e,a-l),s&&n.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=i,!0)}},agAnimateSlideCellRenderer:class extends ot{constructor(){super(gx),this.eCurrent=fe,this.refreshCount=0,this.registerCSS(".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}")}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:i}=this,o=xt({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=o,o.textContent=i.textContent,this.getGui().insertBefore(o,i),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let i=e.value;if(K(i)&&(i=""),i===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=i;const o=this.eCurrent;return p(e.valueFormatted)?o.textContent=e.valueFormatted:p(e.value)?o.textContent=i:wt(o),!0}}},apiFunctions:{flashCells:function mx(e,t={}){const{cellFlashSvc:i}=e;i&&e.frameworkOverrides.wrapIncoming(()=>{for(const o of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))i.flashCell(o,t)})}}};function Ph(e){return(e={...e}).version||(e.version="32.1.0"),"32.1.0"===e.version&&(e=function bx(e){return e.cellSelection=function yx(e,t){if(e&&"object"==typeof e)return e[t]}(e,"rangeSelection"),e}(e)),e.version=ge,e}var Rx={moduleName:"GridState",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=St(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=St(this,()=>{this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(this.updateCachedState("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("rowGroupExpansion",void 0)):(this.updateCachedState("rowGroupExpansion",this.getRowGroupExpansionState()),this.updateCachedState("ssrmRowGroupExpansion",void 0))},0),this.onRowSelectedDebounced=St(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:i}=this.beans;this.isClientSideRowModel=ut(e);const o=Ph(e.get("initialState")??{}),n=o.partialColumnState;delete o.partialColumnState,this.cachedState=o;const s=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>s(()=>this.setupStateOnGridReady(o))),(o.columnOrder||o.columnVisibility||o.columnSizing||o.columnPinning||o.columnGroup)&&i?.hideColumns("columnState");const[r,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:d})=>{"gridInitializing"===d&&(r(),s(()=>{this.setupStateOnColumnsInitialised(o,!!n),i?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),s(()=>this.setupStateOnRowCountReady(o))},firstDataRendered:()=>{l?.(),s(()=>this.setupStateOnFirstDataRendered(o))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const i=Ph(e);delete i.partialColumnState,this.cachedState=i,this.startSuppressEvents();const o="api",n=t?new Set(t):void 0;this.setGridReadyState(i,o,n),this.setColumnsInitialisedState(i,o,!!n,n),this.setRowCountState(i,o,n),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(i,o,n),this.stopSuppressEvents(o)})}setGridReadyState(e,t,i){"api"===t&&!i?.has("sideBar")&&this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,i,o){this.setColumnState(e,t,i,o),this.setColumnGroupState(e,t,o),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const i=o=>()=>this.updateColumnState([o]);this.addManagedEventListeners({columnValueChanged:i("aggregation"),columnMoved:i("columnOrder"),columnPinned:i("columnPinning"),columnResized:i("columnSizing"),columnVisible:i("columnVisibility"),columnPivotChanged:i("pivot"),columnPivotModeChanged:i("pivot"),columnRowGroupChanged:i("rowGroup"),sortChanged:i("sort"),newColumnsLoaded:this.updateColumnAndGroupState.bind(this),columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,i){const{filter:o,rowGroupExpansion:n,ssrmRowGroupExpansion:s,rowSelection:r,pagination:a}=e,l=(c,u)=>!i?.has(c)&&(u||"api"===t);l("filter",o)&&this.setFilterState(o),l("rowGroupExpansion",n)&&this.setRowGroupExpansionState(s,n,t),l("rowSelection",r)&&this.setRowSelectionState(r,t),l("pagination",a)&&this.setPaginationState(a,t);const d=this.updateCachedState.bind(this);d("filter",this.getFilterState()),this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(d("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),d("rowGroupExpansion",void 0)):(d("rowGroupExpansion",this.getRowGroupExpansionState()),d("ssrmRowGroupExpansion",void 0)),d("rowSelection",this.getRowSelectionState()),d("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),i=()=>{this.updateRowGroupExpansionStateTimer=0,this.beans.gos.get("ssrmExpandAllAffectsAllRows")?(t("ssrmRowGroupExpansion",this.getRowGroupExpansionState()),t("rowGroupExpansion",void 0)):(t("rowGroupExpansion",this.getRowGroupExpansionState()),t("ssrmRowGroupExpansion",void 0))},o=()=>t("filter",this.getFilterState()),{gos:n,colFilter:s}=this.beans;this.addManagedEventListeners({filterChanged:o,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:i,columnRowGroupChanged:i,rowDataUpdated:()=>{(0!==n.get("groupDefaultExpanded")||n.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(i)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:r=>{(r.newPage||r.newPageSize)&&t("pagination",this.getPaginationState())}}),s&&this.addManagedListeners(s,{filterStateChanged:o})}setFirstDataRenderedState(e,t,i){const{scroll:o,cellSelection:n,focusedCell:s,columnOrder:r,rowPinning:a}=e,l=(u,g)=>!i?.has(u)&&(g||"api"===t);l("focusedCell",s)&&this.setFocusedCellState(s),l("cellSelection",n)&&this.setCellSelectionState(n),l("scroll",o)&&this.setScrollState(o),l("rowPinning",a)&&this.setRowPinningState(a),this.setColumnPivotState(!!r?.orderedColIds,t);const d=this.updateCachedState.bind(this);d("sideBar",this.getSideBarState()),d("focusedCell",this.getFocusedCellState());const c=this.getRangeSelectionState();d("rangeSelection",c),d("cellSelection",c),d("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),i=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:i,cellFocusCleared:i,cellSelectionChanged:o=>{if(o.finished){const n=this.getRangeSelectionState();t("rangeSelection",n),t("cellSelection",n)}},bodyScrollEnd:()=>t("scroll",this.getScrollState()),pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())})}getColumnState(){const e=this.beans;return function CS(e,t=!1){const i=[],o=[],n=[],s=[],r=[],a=[],l=[],d=[],c=[];let u=0;for(let g=0;g<e.length;g++){const{colId:m,sort:w,sortIndex:b,rowGroup:x,rowGroupIndex:A,aggFunc:O,pivot:V,pivotIndex:te,pinned:oe,hide:ce,width:pe,flex:Ne}=e[g];c.push(m),w&&(i[b??u++]={colId:m,sort:w}),x&&(o[A??0]=m),"string"==typeof O&&n.push({colId:m,aggFunc:O}),V&&(s[te??0]=m),oe&&("right"===oe?a:r).push(m),ce&&l.push(m),(null!=Ne||pe)&&d.push({colId:m,flex:Ne??void 0,width:pe})}return{sort:i.length?{sortModel:El(i)}:void 0,rowGroup:o.length?{groupColIds:El(o)}:void 0,aggregation:n.length?{aggregationModel:n}:void 0,pivot:s.length||t?{pivotMode:t,pivotColIds:El(s)}:void 0,columnPinning:r.length||a.length?{leftColIds:r,rightColIds:a}:void 0,columnVisibility:l.length?{hiddenColIds:l}:void 0,columnSizing:d.length?{columnSizingModel:d}:void 0,columnOrder:c.length?{orderedColIds:c}:void 0}}(As(e),e.colModel.isPivotMode())}setColumnState(e,t,i,o){const{sort:n,rowGroup:s,aggregation:r,pivot:a,columnPinning:l,columnVisibility:d,columnSizing:c,columnOrder:u}=e;let g=!1;const m=(je,lt)=>{const pt=!(o?.has(je)||!lt&&"api"!==t);return g||(g=pt),pt},w={},b=je=>{let lt=w[je];return lt||(lt={colId:je},w[je]=lt,lt)},x={},A=m("sort",n);A&&n?.sortModel.forEach(({colId:je,sort:lt},pt)=>{const Ut=b(je);Ut.sort=lt,Ut.sortIndex=pt}),(A||!i)&&(x.sort=null,x.sortIndex=null);const O=m("rowGroup",s);O&&s?.groupColIds.forEach((je,lt)=>{const pt=b(je);pt.rowGroup=!0,pt.rowGroupIndex=lt}),(O||!i)&&(x.rowGroup=null,x.rowGroupIndex=null);const V=m("aggregation",r);V&&r?.aggregationModel.forEach(({colId:je,aggFunc:lt})=>{b(je).aggFunc=lt}),(V||!i)&&(x.aggFunc=null);const te=m("pivot",a);te&&(a?.pivotColIds.forEach((je,lt)=>{const pt=b(je);pt.pivot=!0,pt.pivotIndex=lt}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),(te||!i)&&(x.pivot=null,x.pivotIndex=null);const oe=m("columnPinning",l);if(oe){for(const je of l?.leftColIds??[])b(je).pinned="left";for(const je of l?.rightColIds??[])b(je).pinned="right"}(oe||!i)&&(x.pinned=null);const ce=m("columnVisibility",d);if(ce)for(const je of d?.hiddenColIds??[])b(je).hide=!0;(ce||!i)&&(x.hide=null);const pe=m("columnSizing",c);if(pe)for(const{colId:je,flex:lt,width:pt}of c?.columnSizingModel??[]){const Ut=b(je);Ut.flex=lt??null,Ut.width=pt}(pe||!i)&&(x.flex=null);const Ne=u?.orderedColIds,$e=!!Ne?.length&&!o?.has("columnOrder"),Ue=$e?Ne.map(je=>b(je)):Object.values(w);(Ue.length||g)&&(this.columnStates=Ue,Pi(this.beans,{state:Ue,applyOrder:$e,defaultState:x},t))}setColumnPivotState(e,t){const i=this.columnStates;this.columnStates=void 0;const o=this.columnGroupStates;this.columnGroupStates=void 0;const n=this.beans,{pivotResultCols:s,colGroupSvc:r}=n;if(s?.isPivotResultColsPresent()){if(i){const a=[];for(const l of i)s.getPivotResultCol(l.colId)&&a.push(l);Pi(n,{state:a,applyOrder:e},t)}o&&r?.setColumnGroupState(o,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(e)return function zu(e){const t=[];for(const{groupId:i,open:o}of e)o&&t.push(i);return t.length?{openColumnGroupIds:t}:void 0}(e.getColumnGroupState())}setColumnGroupState(e,t,i){const o=this.beans.colGroupSvc;if(!o||i?.has("columnGroup")||"api"!==t&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const n=new Set(e.columnGroup?.openColumnGroupIds),r=o.getColumnGroupState().map(({groupId:a})=>{const l=n.has(a);return l&&n.delete(a),{groupId:a,open:l}});for(const a of n)r.push({groupId:a,open:!0});r.length&&(this.columnGroupStates=r),o.setColumnGroupState(r,t)}getFilterState(){const e=this.beans.filterManager;let t=e?.getFilterModel();t&&0===Object.keys(t).length&&(t=void 0);const i=e?.getFilterState(),o=e?.getAdvFilterModel()??void 0;return t||o||i?{filterModel:t,columnFilterState:i,advancedFilterModel:o}:void 0}setFilterState(e){const t=this.beans.filterManager,{filterModel:i,columnFilterState:o,advancedFilterModel:n}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};(void 0!==i||void 0!==o)&&t?.setFilterState(i??null,o??null,"columnFilter"),void 0!==n&&t?.setAdvFilterModel(n??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:i,type:o,startRow:n,endRow:s,columns:r,startColumn:a}=t;return{id:i,type:o,startRow:n,endRow:s,colIds:r.map(l=>l.getColId()),startColId:a.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:i,colModel:o,visibleCols:n}=this.beans;if(!kt(t)||!i)return;const s=[];for(const r of e?.cellRanges??[]){const a=[];for(const d of r.colIds){const c=o.getCol(d);c&&a.push(c)}if(!a.length)continue;let l=o.getCol(r.startColId);if(!l){const d=n.allCols,c=new Set(a);l=d.find(u=>c.has(u))}s.push({...r,columns:a,startColumn:l})}i.setCellRanges(s)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:i}=e?.getVScrollPosition()??{top:0};return i||t?{top:i,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:i}=e??{top:0,left:0},{frameworkOverrides:o,rowRenderer:n,animationFrameSvc:s,ctrlsSvc:r}=this.beans;o.wrapIncoming(()=>{r.get("center").setCenterViewportScrollLeft(i),r.getScrollFeature()?.setVerticalScrollPosition(t),n.redraw({afterScroll:!0}),s?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:i,rowPinned:o}=e;return{colId:t.getColId(),rowIndex:i,rowPinned:o}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:i}=this.beans;if(!e)return void t.clearFocusedCell();const{colId:o,rowIndex:n,rowPinned:s}=e;t.setFocusedCell({column:i.getCol(o),rowIndex:n,rowPinned:s,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const i=e.getCurrentPage(),o=t.get("paginationAutoPageSize")?void 0:e.getPageSize();return i||o?{page:i,pageSize:o}:void 0}setPaginationState(e,t){const{pagination:i,gos:o}=this.beans;if(!i)return;const{pageSize:n,page:s}=e??{page:0,pageSize:o.get("paginationPageSize")},r="gridInitializing"===t;n&&!o.get("paginationAutoPageSize")&&i.setPageSize(n,r?"initialState":"pageSizeSelector"),"number"==typeof s&&(r?i.setPage(s):i.goToPage(s))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return t&&(Array.isArray(t)||!1!==t.selectAll&&!1!==t.selectAllChildren||t?.toggledNodes?.length)?t:void 0}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,"api"===t)}getRowGroupExpansionState(){const{expansionSvc:e}=this.beans;if(e)return e.getExpansionState()}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,i){const o=this.beans.expansionSvc;o&&o.setExpansionState(t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]},i)}updateColumnState(e){const t=this.getColumnState();let i=!1;const o=this.cachedState;for(const n of Object.keys(t))T(t[n],o[n])||(i=!0);this.cachedState={...o,...t},i&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const i=this.cachedState[e];this.setCachedStateValue(e,t),T(t,i)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)"rowSelection"===t&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}}],apiFunctions:{getState:function vx(e){return e.stateSvc?.getState()??{}},setState:function wx(e,t,i){return e.stateSvc?.setState(t,i)}}},ls="paginationPageSizeSelector",Ox={tag:"span",cls:"ag-paging-page-size"},Bx={selector:"AG-PAGE-SIZE-SELECTOR",component:class extends ot{constructor(){super(Ox),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(ls,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&this.reloadPageSizesSelector()}reset(){wt(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&!1!==this.gos.get(ls)}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),i=!t||!e.includes(t);if(i){const n=this.gos.exists("paginationPageSize"),s=!0!==this.gos.get(ls);se(94,{pageSizeSet:n,pageSizesSet:s,pageSizeOptions:e,paginationPageSizeOption:t}),s||se(95,{paginationPageSizeOption:t,paginationPageSizeSelector:ls}),e.unshift("")}const o=String(i?"":t);this.selectPageSizeComp?(ho(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(o,!0)):this.createPageSizeSelectorComp(e,o),this.hasEmptyOption=i}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const i=this.getLocaleTextFunc(),o=i("pageSizeSelectorLabel","Page Size:"),n=i("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new ga).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(n).setLabel(o).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const t=this.gos.get(ls);return Array.isArray(t)&&t?.length?[...t].sort((i,o)=>i-o):[20,50,100]}destroy(){this.toggleSelectDisplay(!1),super.destroy()}}},Gx={selector:"AG-PAGINATION",component:class extends Oc{constructor(){super(),this.btFirst=fe,this.btPrevious=fe,this.btNext=fe,this.btLast=fe,this.lbRecordCount=fe,this.lbFirstRowOnPage=fe,this.lbLastRowOnPage=fe,this.lbCurrent=fe,this.lbTotal=fe,this.pageSizeComp=fe,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;gap:calc(var(--ag-spacing)*4);height:var(--ag-pagination-panel-height);justify-content:flex-end;padding:0 var(--ag-cell-horizontal-padding)}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}")}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[Bx]);const{btFirst:t,btPrevious:i,btNext:o,btLast:n}=this;this.activateTabIndex([t,i,o,n]),t.insertAdjacentElement("afterbegin",pi(e?"last":"first",this.beans)),i.insertAdjacentElement("afterbegin",pi(e?"next":"previous",this.beans)),o.insertAdjacentElement("afterbegin",pi(e?"previous":"next",this.beans)),n.insertAdjacentElement("afterbegin",pi(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:s=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(s):function Sm(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}(this.beans,s),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const e of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){const{el:t,fn:i}=e;this.addManagedListeners(t,{click:i,keydown:o=>{("Enter"===o.key||" "===o.key)&&(o.preventDefault(),i())}})}(function ym(e,t,i){t.addManagedElementListeners(i,{keydown:o=>{if(!o.defaultPrevented&&"Tab"===o.key){const n=o.shiftKey;Io(e,i,!1,n)||dn(e,n)&&o.preventDefault()}}})})(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):function wS(e,t){if("number"!=typeof e)return"";const i=t(),o=i("thousandSeparator",","),n=i("decimalSeparator",".");return e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${o}`)}(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),i=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const o=this.isZeroPagesToDisplay();this.nextButtonDisabled=e===i-1||o,this.lastButtonDisabled=!t||o||e===i-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){(function dt(e,t){Pe(e,"disabled",t)})(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&0===t}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),i=this.pagination.getMasterRowCount(),o=e?i:null,n=this.pagination.getCurrentPage(),s=this.pagination.getPageSize();let r,a;this.isZeroPagesToDisplay()?r=a=0:(r=s*n+1,a=r+s-1,e&&a>o&&(a=o));const d=!e&&i<r+s-1,c=this.formatNumber(r);let u;this.lbFirstRowOnPage.textContent=c;const g=this.getLocaleTextFunc();u=d?g("pageLastRowUnknown","?"):this.formatNumber(a),this.lbLastRowOnPage.textContent=u;const b=this.formatNumber(t>0?n+1:0);let x,A;if(this.lbCurrent.textContent=b,e)x=this.formatNumber(t),A=this.formatNumber(o);else{const O=g("more","more");x=O,A=O}this.lbTotal.textContent=x,this.lbRecordCount.textContent=A,this.announceAriaStatus(c,u,A,b,x)}announceAriaStatus(e,t,i,o,n){const s=this.getLocaleTextFunc(),r=s("page","Page"),a=s("to","to"),l=s("of","of"),d=`${e} ${a} ${t} ${l} ${i}`,c=`${r} ${o} ${l} ${n}`;d!==this.ariaRowStatus&&(this.ariaRowStatus=d,this.ariaAnnounce?.announceValue(d,"paginationRow")),c!==this.ariaPageStatus&&(this.ariaPageStatus=c,this.ariaAnnounce?.announceValue(c,"paginationPage"))}}},zx={moduleName:"Pagination",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return Gx}isPaginateChildRows(){const e=this.gos;return!!(e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren"))||e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||"number"!=typeof t)return;const{editSvc:i}=this.beans;i?.isEditing()&&(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return!this.active||e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return p(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:p(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:p(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:p(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:this.defaultPageSize}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(void 0===this.pageSizeAutoCalculated)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const i=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,0!==this.currentPage&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,0!==this.currentPage&&this.goToFirstPage()}i!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0)return void this.setZeroRows();const i=this.pageSize,o=t-1;this.totalPages=Math.floor(o/i)+1,this.adjustCurrentPageIfInvalid();const n=this.currentPage;let r=i*(n+1)-1;if(r>o&&(r=o),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(i*n),r===o)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const a=e.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=a-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,0===e)return void this.setZeroRows();const{pageSize:t,currentPage:i}=this,o=e-1;this.totalPages=Math.floor(o/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*i,this.bottomDisplayedRowIndex=t*(i+1)-1,this.bottomDisplayedRowIndex>o&&(this.bottomDisplayedRowIndex=o)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:i=!1,newPageSize:o=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:i,newPageSize:o,keepRenderedRows:t})}},class extends Y{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||null==this.centerRowsCtrl}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,i=()=>{const o=Math.max(Ai(t),1),n=Math.floor(e/o);t.pagination.setPageSize(n,"autoCalculated")};this.isBodyRendered?St(this,i,50)():(i(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}}],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:function Ex(e){return e.rowModel.isLastRowIndexKnown()},paginationGetPageSize:function xx(e){return e.pagination?.getPageSize()??100},paginationGetCurrentPage:function Px(e){return e.pagination?.getCurrentPage()??0},paginationGetTotalPages:function Fx(e){return e.pagination?.getTotalPages()??1},paginationGetRowCount:function Dx(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()},paginationGoToNextPage:function Mx(e){e.pagination?.goToNextPage()},paginationGoToPreviousPage:function _x(e){e.pagination?.goToPreviousPage()},paginationGoToFirstPage:function kx(e){e.pagination?.goToFirstPage()},paginationGoToLastPage:function Tx(e){e.pagination?.goToLastPage()},paginationGoToPage:function Ax(e,t){e.pagination?.goToPage(t)}},dependsOn:[vr]},Zx={moduleName:"RowApi",version:ge,apiFunctions:{redrawRows:function Wx(e,t={}){const i=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(i))},setRowNodeExpanded:function Fh(e,t,i,o,n){t&&(o&&t.parent&&-1!==t.parent.level&&Fh(e,t.parent,i,o,n),t.setExpanded(i,void 0,n))},getRowNode:function Ux(e,t){return e.rowModel.getRowNode(t)},addRenderedRowListener:function $x(e,t,i,o){e.rowRenderer.addRenderedRowListener(t,i,o)},getRenderedNodes:function jx(e){return e.rowRenderer.getRenderedNodes()},forEachNode:function Kx(e,t,i){e.rowModel.forEachNode(t,i)},getFirstDisplayedRowIndex:function qx(e){return e.rowRenderer.firstRenderedRow},getLastDisplayedRowIndex:function Xx(e){return e.rowRenderer.lastRenderedRow},getDisplayedRowAtIndex:function Yx(e,t){return e.rowModel.getRow(t)},getDisplayedRowCount:function Qx(e){return e.rowModel.getRowCount()}}},Jx={moduleName:"ScrollApi",version:ge,apiFunctions:{getVerticalPixelRange:function uR(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()},getHorizontalPixelRange:function hR(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()},ensureColumnVisible:dh,ensureIndexVisible:ch,ensureNodeVisible:function gR(e,t,i=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,i),"ensureVisible")}}},a3={moduleName:"RenderApi",version:ge,apiFunctions:{setGridAriaProperty:function e3(e,t,i){if(!t)return;const o=e.ctrlsSvc.getGridBodyCtrl().eGridBody,n=`aria-${t}`;null===i?o.removeAttribute(n):o.setAttribute(n,i)},refreshCells:function t3(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))},refreshHeader:function i3(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})},isAnimationFrameQueueEmpty:function o3(e){return e.animationFrameSvc?.isQueueEmpty()??!0},flushAllAnimationFrames:function n3(e){e.animationFrameSvc?.flushAllFrames()},getSizesForCurrentTheme:function s3(e){return{rowHeight:Ai(e),headerHeight:Kn(e)}},getCellRendererInstances:function r3(e,t={}){const i=[];for(const s of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const r=s.getCellRenderer();null!=r&&i.push(Un(r))}if(t.columns?.length)return i;const o=[],n=wl(t.rowNodes);for(const s of e.rowRenderer.getAllRowCtrls()){if(n&&!bl(s.rowNode,n)||!s.isFullWidth())continue;const r=s.getFullWidthCellRenderers();for(let a=0;a<r.length;a++){const l=r[a];null!=l&&o.push(Un(l))}}return[...o,...i]}}};function Dh({colAutosize:e,visibleCols:t},i,o){Array.isArray(i)?e?.autoSizeCols({colKeys:i,skipHeader:o,source:"api"}):e?.autoSizeCols({...i,colKeys:i.colIds??t.allCols,source:"api"})}function u3(e,t,i={}){const o=i.minWidth??e.getMinWidth();t<o&&(t=o);const n=i.maxWidth??e.getMaxWidth();return t>n&&(t=n),t}function Mh({ctrlsSvc:e,scrollVisibleSvc:t}){const i=e.getGridBodyCtrl(),n=i.isVerticalScrollShowing()?t.getScrollbarWidth():0;return Ni(i.eGridBody)-n}var h3={moduleName:"ColumnAutoSize",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){const{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let i=!1;const o=t.type;if("fitGridWidth"===o||"fitProvidedWidth"===o)i=!0;else if("fitCellContents"===o){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const n=e.get("rowData");i=null!=n&&n.length>0&&ut(e)}i&&this.beans.colDelayRenderSvc?.hideColumns(o)}}autoSizeCols(e){const{eventSvc:t,visibleCols:i}=this.beans;this.innerAutoSizeCols(e).then(o=>{const n=d=>en(t,Array.from(d),!0,"autosizeColumns");if(!e.scaleUpToFitGridWidth)return n(o);const s=Mh(this.beans),l=e.colKeys.filter(d=>!(qi(d)||Xi(d)||(d=>i.leftCols.some(c=>Nn(c,d)))(d)||(d=>i.rightCols.some(c=>Nn(c,d)))(d)));this.sizeColumnsToFit(s,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(d=>({...d,key:d.colId})),colKeys:l,onlyScaleUp:!0}),n(o)})}innerAutoSizeCols(e){return new Promise((t,i)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,i));const{colKeys:o,skipHeader:n,skipHeaderGroups:s,stopAtGroup:r,defaultMaxWidth:a,defaultMinWidth:l,columnLimits:d=[],source:c="api"}=e,{animationFrameSvc:u,renderStatus:g,colModel:m,autoWidthCalc:w,visibleCols:b}=this.beans;if(u?.flushAllFrames(),this.timesDelayed<5&&g&&(!g.areHeaderCellsRendered()||!g.areCellsRendered()))return this.timesDelayed++,void setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,i)});this.timesDelayed=0;const x=new Set;let A=-1;const O=Object.fromEntries(d.map(({colId:oe,...ce})=>[oe,ce])),V=n??this.gos.get("skipHeaderOnAutoSize"),te=s??V;for(;0!==A;){A=0;const oe=[];for(const ce of o){if(!ce||Yh(ce))continue;const pe=m.getCol(ce);if(!pe||x.has(pe))continue;const Ne=w.getPreferredWidthForColumn(pe,V);if(Ne>0){const $e=O[pe.colId]??{};$e.minWidth??($e.minWidth=l),$e.maxWidth??($e.maxWidth=a);const Ue=u3(pe,Ne,$e);pe.setActualWidth(Ue,c),x.add(pe),A++}oe.push(pe)}oe.length&&b.refresh(c)}te||this.autoSizeColumnGroupsByColumns(o,c,r),t(x)})}autoSizeColumn(e,t,i){this.autoSizeCols({colKeys:[e],skipHeader:i,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,i){const{colModel:o,ctrlsSvc:n}=this.beans,s=new Set,r=o.getColsForKeys(e);for(const l of r){let d=l.getParent();for(;d&&d!=i;)d.isPadding()||s.add(d),d=d.getParent()}let a;for(const l of s){for(const d of n.getHeaderRowContainerCtrls())if(a=d.getHeaderCtrlForColumn(l),a)break;a?.resizeLeafColumnsToFit(t)}}autoSizeAllColumns(e){this.shouldQueueResizeOperations?this.pushResizeOperation(()=>this.autoSizeAllColumns(e)):this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const i=this.gos.get("skipHeaderOnAutoSize"),o=()=>{this.autoSizeColumn(t,"uiColumnResized",i)};e.addEventListener("dblclick",o);const n=new Go(e);return n.addEventListener("doubleTap",o),()=>{e.removeEventListener("dblclick",o),n.destroy()}}addColumnGroupResize(e,t,i){const o=this.gos.get("skipHeaderOnAutoSize"),n=()=>{const s=[],r=t.getDisplayedLeafColumns();for(const a of r)a.getColDef().suppressAutoSize||s.push(a.getColId());s.length>0&&this.autoSizeCols({colKeys:s,skipHeader:o,stopAtGroup:t,source:"uiColumnResized"}),i()};return e.addEventListener("dblclick",n),()=>e.removeEventListener("dblclick",n)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;const i=Mh(this.beans);i>0?this.sizeColumnsToFit(i,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):100===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):500===t?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):se(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",i,o){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,i,o));const n={};for(const{key:w,...b}of o?.columnLimits??[])n["string"==typeof w?w:w.getColId()]=b;const s=this.beans.visibleCols.allCols;if(e<=0||!s.length)return;const r=Ki(s);if(o?.onlyScaleUp&&r>e||e===r&&s.every(b=>{if(b.colDef.suppressSizeToFit)return!0;const x=n?.[b.getId()],A=x?.minWidth??o?.defaultMinWidth,O=x?.maxWidth??o?.defaultMaxWidth,V=b.getActualWidth();return(null==A||V>=A)&&(null==O||V<=O)}))return;const l=[],d=[];for(const w of s){const b=o?.colKeys?.some(x=>Nn(w,x))??!0;w.getColDef().suppressSizeToFit||!b?d.push(w):l.push(w)}const c=l.slice(0);let u=!1;const g=w=>{gi(l,w),d.push(w)};for(const w of l){w.resetActualWidth(t);const b=n?.[w.getId()],x=b?.minWidth??o?.defaultMinWidth,A=b?.maxWidth??o?.defaultMaxWidth,O=w.getActualWidth();"number"==typeof x&&O<x?w.setActualWidth(x,t,!0):"number"==typeof A&&O>A&&w.setActualWidth(A,t,!0)}for(;!u;){u=!0;const w=e-Ki(d);if(w<=0)for(const b of l){const x=n?.[b.getId()]?.minWidth??o?.defaultMinWidth??b.minWidth;b.setActualWidth(x,t,!0)}else{const b=w/Ki(l);let x=w;for(let A=l.length-1;A>=0;A--){const O=l[A],V=n?.[O.getId()],te=V?.minWidth??o?.defaultMinWidth,oe=V?.maxWidth??o?.defaultMaxWidth,ce=O.getMinWidth(),pe=O.getMaxWidth(),Ne="number"==typeof te&&te>ce?te:ce,$e="number"==typeof oe&&oe<pe?oe:pe;let Ue=Math.round(O.getActualWidth()*b);Ue<Ne?(Ue=Ne,g(O),u=!1):Ue>$e?(Ue=$e,g(O),u=!1):0===A&&(Ue=x),O.setActualWidth(Ue,t,!0),x-=Ue}}}for(const w of c)w.fireColumnWidthChangedEvent(t);const m=this.beans.visibleCols;m.setLeftValues(t),m.updateBodyWidths(),!i&&en(this.eventSvc,c,!0,t)}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,i=e.get("autoSizeStrategy");"fitGridWidth"!==i?.type&&"fitProvidedWidth"!==i?.type||setTimeout(()=>{if(!this.isAlive())return;const o=i.type;if("fitGridWidth"===o){const{columnLimits:n,defaultMinWidth:s,defaultMaxWidth:r}=i,a=n?.map(({colId:l,minWidth:d,maxWidth:c})=>({key:l,minWidth:d,maxWidth:c}));this.sizeColumnsToFitGridBody({defaultMinWidth:s,defaultMaxWidth:r,columnLimits:a})}else"fitProvidedWidth"===o&&this.sizeColumnsToFit(i.width,"sizeColumnsToFit");t?.revealColumns(o)})}onFirstDataRendered({colIds:e,...t}){setTimeout(()=>{if(!this.isAlive())return;const i="autosizeColumns";e?this.autoSizeCols({...t,source:i,colKeys:e}):this.autoSizeAllColumns({...t,source:i}),this.beans.colDelayRenderSvc?.revealColumns(t.type)})}processResizeOperations(){this.shouldQueueResizeOperations=!1;for(const e of this.resizeOperationQueue)e();this.resizeOperationQueue=[]}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.resizeOperationQueue.length=0,super.destroy()}}],apiFunctions:{sizeColumnsToFit:function l3(e,t){"number"==typeof t?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)},autoSizeColumns:Dh,autoSizeAllColumns:function d3(e,t){t&&"object"==typeof t?Dh(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}},dependsOn:[eu]},w3={moduleName:"PinnedRow",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const{gos:e}=this,t=()=>{const i=e.get("enableRowPinning"),o=Hr(e),s=!!i||"pinnedBottom"===o||"pinnedTop"===o,r=s?this.inner instanceof Tc:this.inner instanceof Mc;this.inner&&r&&this.destroyBean(this.inner),(r||!this.inner)&&(this.inner=this.createManagedBean(s?new Mc:new Tc))};this.addManagedPropertyListeners(["enableRowPinning","grandTotalRow"],t),t()}reset(){return this.inner.reset()}isEmpty(e){return this.inner.isEmpty(e)}isManual(){return this.inner.isManual()}isRowsToRender(e){return this.inner.isRowsToRender(e)}pinRow(e,t,i){return this.inner.pinRow(e,t,i)}ensureRowHeightsValid(){return this.inner.ensureRowHeightsValid()}getPinnedRowById(e,t){return this.inner.getPinnedRowById(e,t)}getPinnedTopTotalHeight(){return this.inner.getPinnedTopTotalHeight()}getPinnedBottomTotalHeight(){return this.inner.getPinnedBottomTotalHeight()}getPinnedTopRowCount(){return this.inner.getPinnedTopRowCount()}getPinnedBottomRowCount(){return this.inner.getPinnedBottomRowCount()}getPinnedTopRow(e){return this.inner.getPinnedTopRow(e)}getPinnedBottomRow(e){return this.inner.getPinnedBottomRow(e)}forEachPinnedRow(e,t){return this.inner.forEachPinnedRow(e,t)}getPinnedState(){return this.inner.getPinnedState()}setPinnedState(e){return this.inner.setPinnedState(e)}setGrandTotalPinned(e){return this.inner.setGrandTotalPinned(e)}getGrandTotalPinned(){return this.inner.getGrandTotalPinned()}}],css:[".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}"],apiFunctions:{getPinnedTopRowCount:function p3(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0},getPinnedBottomRowCount:function f3(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0},getPinnedTopRow:function m3(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)},getPinnedBottomRow:function C3(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)},forEachPinnedRow:function v3(e,t,i){return e.pinnedRowModel?.forEachPinnedRow(t,i)}},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},b3=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column===this.col&&e.rowPinned==this.firstNode.rowPinned&&this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(null==e)return;let t=0;for(const i of this.spannedNodes)i!==this.lastNode&&(t+=i.rowHeight);return e-t}},y3=class extends Y{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:i,pinnedRowModel:o,rowModel:n,valueSvc:s,pagination:r}}=this,{colDef:a}=t,l=this.getNodeMap(e),d=new Map,c=i.getCallback("isFullWidthRow"),u=a.equals,g=a.spanRows,m="function"==typeof g;let x,w=null,b=null;const A=(V,te)=>{w=V,b=null,x=te},O=V=>{const te=!(V.isExpandable()||V.group||V.detail||c&&c({rowNode:V}));if(null==V.rowIndex||!te)return void A(null,null);if(null==w||V.level!==w.level||V.footer||b&&V.rowIndex-1!==b?.getLastNode().rowIndex)return void A(V,s.getValue(t,V));const oe=s.getValue(t,V);if(m){const ce=Ie(i,{valueA:x,nodeA:w,valueB:oe,nodeB:V,column:t,colDef:a});if(!g(ce))return void A(V,oe)}else if(u?!u(x,oe):x!==oe)return void A(V,oe);if(!b){const ce=l?.get(w);ce?.firstNode===w?(ce.reset(),b=ce):b=new b3(t,w),d.set(w,b)}b.addSpannedNode(V),d.set(V,b)};switch(e){case"center":n.forEachDisplayedNode?.(V=>{(!r||r.isRowInPage(V.rowIndex))&&O(V)}),this.centerValueNodeMap=d;break;case"top":o?.forEachPinnedRow("top",O),this.topValueNodeMap=d;break;case"bottom":o?.forEachPinnedRow("bottom",O),this.bottomValueNodeMap=d}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},R3=class extends pn{constructor(e,t,i){super(e.col,e.firstNode,i,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,i,o,n,s,r){this.eWrapper=i,super.setComp(e,t,i,o,n,s,r),this.setAriaRowSpan(),this.refreshAriaRowIndex()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;!e||null==t.rowIndex||ye(e,t.rowIndex)}setAriaRowSpan(){!function We(e,t){j(e,"rowspan",t)}(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(er(t))return void(this.focusedCellPosition=void 0);const i=this.isCellFocused();i||(this.focusedCellPosition=void 0),e&&i&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},E3=class extends fr{onRowIndexChanged(){super.onRowIndexChanged();for(const e of this.getAllCellCtrls())e.refreshAriaRowIndex()}getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(t&&t.firstNode===this.rowNode)return new R3(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!(!t||t.firstNode!==this.rowNode)&&e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},P3={moduleName:"CellSpan",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=St(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=St(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const i=this.createManagedBean(new y3(e));this.spanningColumns.set(e,i),i.buildCache("top"),i.buildCache("bottom"),i.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(null!=this.pinnedTimeout)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0)}else null==this.modelTimeout&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){null!=this.modelTimeout&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){null!=this.pinnedTimeout&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const i=this.spanningColumns.get(e);return!!i&&i.isCellSpanning(t)}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:i}=this.beans,n=e.rowIndex,s=this.spanningColumns.get(e.column);if(!s)return;let r;switch(e.rowPinned){case"top":r=t?.getPinnedTopRow(n);break;case"bottom":r=t?.getPinnedBottomRow(n);break;default:r=i.getRow(n)}return r?s.getCellSpan(r):void 0}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const i=this.spanningColumns.get(e);if(i)return i.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[i,o]of this.spanningColumns)o.isCellSpanning(e)&&t(i,o.getCellSpan(e))}destroy(){super.destroy(),this.spanningColumns.clear()}},class extends Y{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,i=this.getCtrlsMap(e),o=i.size,n=this.getAllRelevantRowControls(e),s=new Map;let r=!1;for(const l of n)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(d,c)=>{if(s.has(c.firstNode))return;const u=i.get(c.firstNode);if(u)return s.set(c.firstNode,u),void i.delete(c.firstNode);r=!0;const g=new E3(c.firstNode,this.beans,!1,!1,!1);s.set(c.firstNode,g)});if(this.setCtrlsMap(e,s),r||s.size!==o){for(const l of i.values())l.destroyFirstPass(!0),l.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,i=t?.getCellSpanByPosition(e);if(!i)return;const o=this.getCtrlsMap(e.rowPinned).get(i.firstNode);return o?o.getAllCellCtrls().find(n=>n.column===e.column):void 0}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}}]},F3=class extends Y{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,i=e.colDef,o=i.cellClassRules,n=this.getCellClassParams(e,i);Cl(this.beans.expressionSvc,o===this.cellClassRules?void 0:this.cellClassRules,o,n,s=>t.toggleCss(s,!0),s=>t.toggleCss(s,!1)),this.cellClassRules=o}applyUserStyles(){const e=this.column,t=e.colDef,i=t.cellStyle;if(!i)return;let o;o="function"==typeof i?i(this.getCellClassParams(e,t)):i,o&&this.cellComp.setUserStyles(o)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,i=e.colDef,o=this.getCellClassParams(e,i);for(const s of this.staticClasses)t.toggleCss(s,!1);const n=this.beans.cellStyles.getStaticCellClasses(i,o);this.staticClasses=n;for(const s of n)t.toggleCss(s,!0)}getCellClassParams(e,t){const{value:i,rowNode:o}=this.cellCtrl;return Ie(this.beans.gos,{value:i,data:o.data,node:o,colDef:t,column:e,rowIndex:o.rowIndex})}},M3={moduleName:"CellStyle",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,i,o){Cl(this.beans.expressionSvc,void 0,e.cellClassRules,t,i,o),this.processStaticCellClasses(e,t,i)}getStaticCellClasses(e,t){const{cellClass:i}=e;if(!i)return[];let o;return o="function"==typeof i?i(t):i,"string"==typeof o&&(o=[o]),o||[]}createCellCustomStyleFeature(e,t){return new F3(e,t)}processStaticCellClasses(e,t,i){this.getStaticCellClasses(e,t).forEach(n=>{i(n)})}}]},_3={moduleName:"RowStyle",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const i=this.gos,o=r=>{if("string"==typeof r)e.push(r);else if(Array.isArray(r))for(const a of r)e.push(a)},n=i.get("rowClass");n&&o(n);const s=i.getCallback("getRowClass");s&&o(s({data:t.data,node:t,rowIndex:t.rowIndex}))}preProcessRowClassRules(e,t){this.processRowClassRules(t,i=>{e.push(i)},()=>{})}processRowClassRules(e,t,i){const{gos:o,expressionSvc:n}=this.beans,s=Ie(o,{data:e.data,node:e,rowIndex:e.rowIndex});Cl(n,void 0,o.get("rowClassRules"),s,t,i)}processStylesFromGridOptions(e){const t=this.gos,i=t.get("rowStyle"),o=t.getCallback("getRowStyle");let n;if(o&&(n=o({data:e.data,node:e,rowIndex:e.rowIndex})),n||i)return Object.assign({},i,n)}}]},T3=class extends Y{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=i=>{const{beans:o,gos:n,element:s,columns:r}=this,a=o.colHover;if(i??n.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(s,{mouseover:a.setMouseOver.bind(a,r),mouseout:a.clearMouseOver.bind(a)});else{for(const d of this.destroyManagedListeners)d();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},O3={moduleName:"ColumnHover",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e)}clearMouseOver(){this.updateState(null)}isHovered(e){if(!this.gos.get("columnHoverHighlight"))return!1;const t=this.selectedColumns;return!!t&&t.indexOf(e)>=0}addHeaderColumnHoverListener(e,t,i){const o=()=>{const n=this.isHovered(i);t.toggleCss("ag-column-hover",n)};e.addManagedEventListeners({columnHoverChanged:o}),o()}onCellColumnHover(e,t){if(!t)return;const i=this.isHovered(e);t.toggleCss("ag-column-hover",i)}addHeaderFilterColumnHoverListener(e,t,i,o){this.createHoverFeature(e,[i],o);const n=()=>{const s=this.isHovered(i);t.toggleCss("ag-column-hover",s)};e.addManagedEventListeners({columnHoverChanged:n}),n()}createHoverFeature(e,t,i){e.createManagedBean(new T3(t,i))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}}],apiFunctions:{isColumnHovered:function k3(e,t){return!!e.colHover?.isHovered(t)}}},N3={moduleName:"EventApi",version:ge,apiFunctions:{addEventListener:function B3(e,t,i){e.apiEventSvc?.addListener(t,i)},addGlobalListener:function H3(e,t){e.apiEventSvc?.addGlobalListener(t)},removeEventListener:function V3(e,t,i){e.apiEventSvc?.removeListener(t,i)},removeGlobalListener:function G3(e,t){e.apiEventSvc?.removeGlobalListener(t)}},beans:[class extends Y{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){const i=this.wrapSvc?.wrap(e,t)??t,o=!hr.has(e),n=o?this.asyncListeners:this.syncListeners;n.has(e)||n.set(e,new Set),n.get(e).add(i),this.eventSvc.addListener(e,i,o)}removeListener(e,t){const i=this.wrapSvc?.unwrap(e,t)??t,n=!!this.asyncListeners.get(e)?.delete(i);n||this.syncListeners.get(e)?.delete(i),this.eventSvc.removeListener(e,i,n)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,i=(s,r)=>{hr.has(s)&&t(s,r)},o=(s,r)=>{hr.has(s)||t(s,r)};this.globalListenerPairs.set(e,{syncListener:i,asyncListener:o});const n=this.eventSvc;n.addGlobalListener(i,!1),n.addGlobalListener(o,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:i,globalListenerPairs:o}=this,n=i?.unwrapGlobal(e)??e;if(o.has(n)){const{syncListener:r,asyncListener:a}=o.get(n);t.removeGlobalListener(r,!1),t.removeGlobalListener(a,!0),o.delete(e)}else this.syncGlobalListeners.delete(n),t.removeGlobalListener(n,!1)}destroyEventListeners(e,t){e.forEach((i,o)=>{i.forEach(n=>this.eventSvc.removeListener(o,n,t)),i.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const i of e)this.eventSvc.removeGlobalListener(i,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:i,asyncListener:o})=>{t.removeGlobalListener(i,!1),t.removeGlobalListener(o,!0)}),e.clear()}}]},z3={moduleName:"Locale",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");return t?function Nt(e){return(t,i,o)=>e({key:t,defaultValue:i,variableValues:o})}(t):function Kt(e){return(t,i,o)=>{let n=e?.[t];if(n&&o?.length){let s=0;for(;!(s>=o.length||-1===n.indexOf("${variable}"));)n=n.replace("${variable}",o[s++])}return n??i}}(e.get("localeText"))}}]},U3={moduleName:"RowAutoHeight",version:ge,beans:[class extends Y{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=St(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:i,pinnedRowModel:o}=this.beans,n=e.autoHeightCols;let s=!1;const r=a=>{const l=a.__autoHeights;let d=xi(this.beans,a).height;for(const c of n){let u=l?.[c.getColId()];const g=i?.getCellSpan(c,a);if(g){if(g.getLastNode()!==a)continue;if(u=i?.getCellSpan(c,a)?.getLastNodeAutoHeight(),!u)return}if(null==u){if(this.colSpanSkipCell(c,a))continue;return}d=Math.max(u,d)}d!==a.rowHeight&&(a.setRowHeight(d),s=!0)};o?.forEachPinnedRow?.("top",r),o?.forEachPinnedRow?.("bottom",r),t.forEachDisplayedNode?.(r),s&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,i){if(e.__autoHeights??(e.__autoHeights={}),null==t)return void delete e.__autoHeights[i.getId()];const o=e.__autoHeights[i.getId()];e.__autoHeights[i.getId()]=t,o!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:i,colViewport:o,visibleCols:n}=this.beans;if(!i.colSpanActive)return!1;let s=[];switch(e.getPinned()){case"left":s=n.getLeftColsForRow(t);break;case"right":s=n.getRightColsForRow(t);break;case null:s=o.getColsWithinViewport(t)}return!s.includes(e)}setupCellAutoHeight(e,t,i){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const o=t.parentElement,{rowNode:n,column:s}=e,r=this.beans,a=c=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!i.isAlive())return;const{paddingTop:u,paddingBottom:g,borderBottomWidth:m,borderTopWidth:w}=vi(o),A=t.offsetHeight+(u+g+m+w);!(c<5)||we(r)?.contains(t)&&0!=A?this.setRowAutoHeight(n,A,s):window.setTimeout(()=>a(c+1),0)},l=()=>a(0);l();const d=ae(r,t,l);return i.addDestroyFunc(()=>{d(),this.setRowAutoHeight(n,void 0,s)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:i}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(i).filter(n=>n.isAutoHeight())),0!==t.length){if(!i.__autoHeights)return!1;for(const o of t){const n=i.__autoHeights[o.getColId()];if(!n||i.rowHeight<n)return!1}}return!0}}]},$3={moduleName:"AllCommunity",version:ge,dependsOn:[WE,QE,ax,IS,UR,$R,jR,KR,qR,XR,YR,WR,L1,B1,V1,O1,G1,N1,Rx,yE,zx,nu,Zx,Jx,a3,h3,vv,w3,uE,Qy,M3,O3,_3,N3,eS,Cx,rh,z3,U3,Cv,UE,P3]}}}]);
|