UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

139 lines • 1.88 MB
(function(Ho,Cr){typeof exports=="object"&&typeof module<"u"?module.exports=Cr():typeof define=="function"&&define.amd?define("agGrid",Cr):Ho.agGrid=Cr()})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:this,function(){var Ho={},Cr=Ho,Ln={exports:Ho};if(typeof oz>"u")var oz=function(t){throw new Error("Unknown module: "+t)};var On=Object.defineProperty,q0=Object.getOwnPropertyDescriptor,U0=Object.getOwnPropertyNames,_0=Object.prototype.hasOwnProperty,j0=(e,t)=>{for(var o in t)On(e,o,{get:t[o],enumerable:!0})},K0=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of U0(t))!_0.call(e,i)&&i!==o&&On(e,i,{get:()=>t[i],enumerable:!(r=q0(t,i))||r.enumerable});return e},Y0=e=>K0(On({},"__esModule",{value:!0}),e),Mg={};j0(Mg,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>dr,AgAbstractCellEditor:()=>oi,AgAbstractInputField:()=>It,AgAbstractLabel:()=>Ic,AgCheckbox:()=>wi,AgCheckboxSelector:()=>qa,AgColumn:()=>ko,AgColumnGroup:()=>ir,AgFieldSet:()=>H0,AgFieldSetSelector:()=>X7,AgFilterButtonSelector:()=>t5,AgInputDateField:()=>Ow,AgInputDateFieldSelector:()=>vd,AgInputNumberField:()=>pn,AgInputNumberFieldSelector:()=>bd,AgInputTextArea:()=>Bw,AgInputTextAreaSelector:()=>Hw,AgInputTextField:()=>Lt,AgInputTextFieldSelector:()=>Fi,AgPickerField:()=>Nw,AgPromise:()=>oe,AgProvidedColumnGroup:()=>qr,AgRadioButton:()=>tg,AgRadioButtonSelector:()=>c5,AgSelect:()=>fn,AgSelectSelector:()=>Gw,AgToggleButton:()=>N0,AgToggleButtonSelector:()=>ez,AlignedGridsModule:()=>dw,AllCommunityModule:()=>C0,AutoGenerateColumnsModule:()=>ww,BaseComponentWrapper:()=>K7,BaseCreator:()=>kw,BaseGridSerializingSession:()=>Ew,BaseSelectionService:()=>c0,BeanStub:()=>x,BigIntFilterModule:()=>BC,CellApiModule:()=>Xv,CellRangeType:()=>Sp,CellSpanModule:()=>a0,CellStyleModule:()=>w0,CheckboxEditorModule:()=>Rb,ClientSideRowModelApiModule:()=>fm,ClientSideRowModelModule:()=>xc,ColumnApiModule:()=>Oc,ColumnAutoSizeModule:()=>Cw,ColumnHoverModule:()=>yw,Component:()=>X,ComponentInstanceGuard:()=>Ea,CsvExportModule:()=>Fw,CustomEditorModule:()=>Db,CustomFilterModule:()=>LC,DETAIL_ROW_ID_PREFIX:()=>pl,DateEditorModule:()=>Eb,DateFilterModule:()=>HC,DragAndDropModule:()=>bm,DragSourceType:()=>Yh,EventApiModule:()=>qC,ExternalFilterModule:()=>GC,FakeHScrollComp:()=>of,FakeVScrollComp:()=>rf,FileInputOverlayModule:()=>mw,FilterButtonComp:()=>Xd,FilterComp:()=>uC,FilterWrapperComp:()=>gC,GRAND_TOTAL_ROW_ID:()=>ti,GROUP_AUTO_COLUMN_ID:()=>Ro,GROUP_HIERARCHY_COLUMN_ID_PREFIX:()=>YS,GROUP_TOTAL_ROW_ID_PREFIX:()=>fa,GridBodyCtrl:()=>pf,GridCoreCreator:()=>aw,GridCtrl:()=>Ff,GridHeaderCtrl:()=>Hp,GridStateModule:()=>QC,HeaderRowContainerCtrl:()=>$p,HighlightChangesModule:()=>$C,InfiniteRowModelModule:()=>WC,KeyCode:()=>y,LargeTextEditorModule:()=>Mb,LocaleModule:()=>_C,LocaleService:()=>UC,ManagedFocusFeature:()=>ni,ModuleRegistry:()=>rc,NumberEditorModule:()=>kb,NumberFilterModule:()=>VC,PaginationModule:()=>mg,PaginationPageNumbersModule:()=>JC,PinnedRowModel:()=>bp,PinnedRowModule:()=>XC,PositionableFeature:()=>Qh,ProvidedFilter:()=>tp,QuickFilterModule:()=>NC,ROOT_NODE_ID:()=>ei,ROW_NUMBERS_COLUMN_ID:()=>Oh,RenderApiModule:()=>e0,RowApiModule:()=>pw,RowAutoHeightModule:()=>r0,RowContainerCtrl:()=>hf,RowDragModule:()=>Cm,RowNode:()=>vt,RowSelectionModule:()=>p0,RowStyleModule:()=>b0,SELECTION_COLUMN_ID:()=>ha,STRUCTURED_SCHEMA_FEATURES:()=>M2,ScrollApiModule:()=>fw,SelectEditorModule:()=>Fb,ServerSideTransactionResultStatus:()=>Cp,TabGuardComp:()=>tc,TabGuardCtrl:()=>Y7,TabGuardFeature:()=>Q7,TextEditorModule:()=>xb,TextFilterModule:()=>OC,TooltipModule:()=>fd,TouchListener:()=>eo,UndoRedoEditModule:()=>Sb,ValidationModule:()=>Eg,ValueCacheModule:()=>Jv,VanillaFrameworkOverrides:()=>iw,_ADVANCED_FILTER_ONLY_OPTIONS:()=>_b,_BOOLEAN_MIXED_GRID_OPTIONS:()=>Zc,_BaseSingleColService:()=>n0,_ChangedRowNodes:()=>vi,_ColumnFilterModule:()=>wr,_ColumnGroupModule:()=>Nm,_ColumnMoveModule:()=>Tm,_CsrmSsrmSharedApiModule:()=>om,_DATA_TYPE_DERIVED_COL_DEF_PROPERTIES:()=>LR,_DragModule:()=>Ec,_EditCoreModule:()=>Ot,_EmptyBean:()=>o3,_FilterCoreModule:()=>Mn,_FilterValueModule:()=>hg,_GET_ALL_EVENTS:()=>E6,_GET_ALL_GRID_OPTIONS:()=>Lv,_GET_SHALLOW_GRID_OPTIONS:()=>B6,_HeaderComp:()=>Bv,_HorizontalResizeModule:()=>ym,_KeyboardNavigationModule:()=>Uv,_PRESET_DATE_FILTER_RANGES:()=>Ud,_PRESET_DATE_FILTER_TYPES:()=>Wb,_PUBLIC_EVENTS:()=>Qa,_PUBLIC_EVENT_HANDLERS_MAP:()=>Kc,_PopupModule:()=>Ri,_ROW_ID_PREFIX_BOTTOM_PINNED:()=>wa,_ROW_ID_PREFIX_ROW_GROUP:()=>wl,_ROW_ID_PREFIX_TOP_PINNED:()=>va,_RelativeDateRangeCache:()=>qb,_RowModelSharedApiModule:()=>rm,_STOP_PROPAGATION_CALLBACKS:()=>sr,_SharedDragAndDropModule:()=>Rc,_SharedExportModule:()=>xw,_SharedMenuModule:()=>Ib,_SharedRowSelectionModule:()=>h0,_SortModule:()=>Sc,_SsrmInfiniteSharedApiModule:()=>im,_TEXT_COMPARISONS:()=>lg,_UserColumnService:()=>jC,_addAdditionalCss:()=>Rv,_addColumnDefaultAndTypes:()=>ca,_addFocusableContainerListener:()=>Mp,_addGridCommonParams:()=>W,_addRowHeightChangedListener:()=>Or,_applyColumnState:()=>Pt,_applyHeaderWrapperHidden:()=>Qp,_applyHeaderWrapperMaxHeight:()=>Zp,_areCellsEqual:()=>Sa,_attemptToRestoreCellFocus:()=>Pp,_bindFilterCallback:()=>Ti,_buildColumnTree:()=>Gm,_canScrollVertically:()=>na,_canSkipShowingRowGroup:()=>Ls,_clamp:()=>bo,_classifyFilterOptions:()=>jb,_combineAttributesAndGridOptions:()=>ES,_consoleError:()=>xf,_convertColumnEventSourceType:()=>Fo,_coreThemeDefaults:()=>$m,_createCellId:()=>kp,_createElement:()=>G,_createGlobalRowEvent:()=>bl,_createIcon:()=>sm,_createIconNoSpan:()=>ue,_createInternalFeatureFlagsModule:()=>tz,_createRowNodeSibling:()=>op,_createUserColumn:()=>Vs,_createValidationWarning:()=>q,_csrmFirstLeaf:()=>mi,_csrmReorderAllLeafs:()=>am,_defaultLowercaseFormatter:()=>wC,_defaultPivotSort:()=>ll,_destroyColumnTreeAll:()=>Bh,_destroyColumnTreeUnused:()=>Hh,_dispatchColumnChangedEvent:()=>da,_dispatchGroupHeaderNameChangedEvent:()=>Hs,_doDeltaSort:()=>hm,_emitValidationWarning:()=>Dv,_errMsg:()=>ao,_errorForGrid:()=>Zf,_errorToThrowForGrid:()=>Ha,_errorToThrowWithoutAttribution:()=>Vx,_errorWithoutAttribution:()=>hc,_filterCallbackParams:()=>vr,_findEnterpriseCoreModule:()=>Lf,_focusGridInnerElement:()=>Dp,_focusNextGridCoreContainer:()=>Po,_forEachChangedGroupDepthFirst:()=>Pn,_formatNumberCommas:()=>_u,_getAbsoluteRowIndex:()=>kl,_getCallbackForEvent:()=>nh,_getCellByPosition:()=>Do,_getCellCtrlForEventTarget:()=>Fa,_getCellPositionForEvent:()=>mm,_getCellRendererDetails:()=>fl,_getCellTooltipComponentDefinition:()=>ud,_getCheckboxLocation:()=>Hr,_getCheckboxes:()=>xo,_getClientSideRowModel:()=>st,_getColumnStateFromColDef:()=>Vh,_getCustomOptionDisplayName:()=>Kb,_getCustomOptionNumberOfInputs:()=>jd,_getDefaultFilter:()=>oC,_getDefaultFloatingFilterType:()=>nC,_getDefaultSimpleFilter:()=>tC,_getDisplayHandler:()=>Od,_getDisplaySortForColumn:()=>Ih,_getDomData:()=>Ps,_getDrawnColSpan:()=>ql,_getEditorRendererDetails:()=>k2,_getEnableColumnSelection:()=>Qt,_getFillHandle:()=>SS,_getFilterDetails:()=>jh,_getFilterKey:()=>aC,_getFilterModel:()=>we,_getFilterParamsForDataType:()=>eC,_getFilterValueSource:()=>a5,_getFirstRow:()=>Sl,_getFloatingFilterAriaLabel:()=>$d,_getFloatingFilterCompDetails:()=>Kh,_getFloatingFiltersHeight:()=>Dl,_getGlobalGridOption:()=>Fs,_getGrandTotalPinnedFloat:()=>As,_getGrandTotalRow:()=>tr,_getGridOption:()=>FS,_getGridRegisteredModules:()=>wx,_getGroupAggFiltering:()=>Vr,_getGroupSelection:()=>Gr,_getGroupSelectsDescendants:()=>rr,_getGroupTotalRowCallback:()=>wS,_getHeaderCheckbox:()=>Br,_getHeaderClassesFromColDef:()=>Il,_getHeaderRowCount:()=>zp,_getHeaderTooltipComponentDefinition:()=>Mw,_getInnerCellRendererDetails:()=>f2,_getIsRowSelectable:()=>la,_getLastRow:()=>xl,_getLayoutCssClass:()=>ef,_getLegacyTooltipFieldValue:()=>hd,_getMaxConcurrentDatasourceRequests:()=>Ju,_getNormalisedMousePosition:()=>kc,_getPinnedSectionWidths:()=>Pl,_getRowAbove:()=>ii,_getRowBelow:()=>El,_getRowContainerClass:()=>gf,_getRowContainerOptions:()=>ci,_getRowCtrlForEventTarget:()=>cf,_getRowHandler:()=>zb,_getRowHeightAsNumber:()=>pt,_getRowHeightForNode:()=>Yt,_getRowIdCallback:()=>So,_getRowNode:()=>We,_getRowSelectionMode:()=>Nr,_getRowSpanContainerClass:()=>uf,_getServerSideRowModel:()=>tm,_getShouldDisplayTooltip:()=>$D,_getSortModel:()=>yc,_getSuppressMultiRanges:()=>yS,_getToolPanelClassesFromColDef:()=>l3,_getValueUsingDotPath:()=>Kr,_getViewportRowModel:()=>Zx,_hasValue:()=>Ub,_interpretAsRightClick:()=>sh,_isAnimateRows:()=>yo,_isBlank:()=>Ii,_isCalculatedColumnsEnabled:()=>Fv,_isCellSelectionEnabled:()=>ft,_isCellTooltipConfigured:()=>dn,_isClientSideRowModel:()=>ve,_isColumnMenuAnchoringEnabled:()=>ah,_isColumnsSortingCoupledToGroup:()=>Mt,_isDomLayout:()=>ke,_isFilterCompActive:()=>Di,_isFiniteNumber:()=>aa,_isFullWidthGroupRow:()=>zs,_isGetRowHeightFunction:()=>Ds,_isGridSuppliedFilterOptions:()=>HA,_isGridSuppliedFilterParam:()=>BA,_isGroupHideColumnsUntilExpanded:()=>Qu,_isGroupMultiAutoColumn:()=>Yu,_isGroupRowsSticky:()=>Ts,_isGroupUseEntireRow:()=>Is,_isHeaderFocusSuppressed:()=>Ve,_isHeaderNameChangeForGroup:()=>QS,_isHiddenSingleChildGroup:()=>Zu,_isLegacyMenuEnabled:()=>Ie,_isMultiRowSelection:()=>or,_isProtoPollutionKey:()=>oa,_isRangeOutOfOrder:()=>Yb,_isRowBefore:()=>Ep,_isRowNumbers:()=>Ku,_isRowSelection:()=>Ft,_isSameRow:()=>Rp,_isServerSideRowModel:()=>Kt,_isSetFilterByDefault:()=>ih,_isShowTooltipWhenTruncated:()=>ln,_isSortTypeAvailable:()=>jS,_isStopPropagationForAgGrid:()=>rt,_isUseApplyButton:()=>nr,_isUsingNewCellSelectionAPI:()=>CS,_isUsingNewRowSelectionAPI:()=>Xu,_logPreInitWarn:()=>Bx,_mergeDeep:()=>Ae,_mergeFilterParamsWithApplicationProvidedParams:()=>ma,_mergedEqual:()=>wo,_normaliseCalculatedExpression:()=>F6,_normalizeSortType:()=>mt,_prevOrNextDisplayedRow:()=>ba,_processOnChange:()=>RS,_refreshFilterUi:()=>Pd,_refreshHandlerAndUi:()=>Tb,_registerModule:()=>Ao,_resetColumnState:()=>Ch,_resetMissingModuleReports:()=>Px,_resolveCellTooltipValue:()=>Dw,_resolveFilter:()=>Sn,_resolveGroupTooltipValue:()=>Pw,_resolveHeaderTooltipValue:()=>Tw,_resolvePivotColumnForRow:()=>Jt,_resolvePivotSort:()=>KS,_resolveSortOptions:()=>cm,_selectAllCells:()=>df,_setAgPackageInfo:()=>YM,_setColGroupHeaderNameOverride:()=>qs,_setColMenuVisible:()=>Id,_setColsVisible:()=>jr,_setUmd:()=>zf,_shouldUpdateColVisibilityAfterGroup:()=>bS,_skipFocusableContainerListenerForAgGrid:()=>K2,_stopPropagationForAgGrid:()=>to,_suppressCellMouseEvent:()=>li,_themeAlpineParams:()=>bv,_themeBalhamParams:()=>Cv,_themeMaterialParams:()=>Sv,_themeQuartzParams:()=>vv,_toFiniteNumber:()=>Uu,_translateForFilter:()=>ot,_trimInputForFilter:()=>En,_unwrapUserComp:()=>yt,_updateFilterModel:()=>Td,_updatePinnedSectionWidths:()=>Vp,_updateRowNodeAfterSort:()=>pm,_warnForGrid:()=>pc,_warnOnce:()=>di,_warnWithoutAttribution:()=>uc,agTestIdFor:()=>M,buttonStyleAlpine:()=>ov,buttonStyleBalham:()=>rv,buttonStyleBase:()=>ev,buttonStyleQuartz:()=>tv,checkboxStyleDefault:()=>yi,colorSchemeDark:()=>yF,colorSchemeDarkBlue:()=>EF,colorSchemeDarkWarm:()=>xF,colorSchemeLight:()=>fF,colorSchemeLightCold:()=>bF,colorSchemeLightWarm:()=>vF,colorSchemeVariable:()=>Si,columnDropStyleBordered:()=>Gc,columnDropStylePlain:()=>Wc,convertColumnGroupState:()=>$M,convertColumnState:()=>lw,createGrid:()=>QM,createPart:()=>$,createTheme:()=>Ci,dispatchColumnVisibleEvent:()=>Bs,enableDevValidations:()=>B7,forEachColDef:()=>hl,getGridApi:()=>JM,getGridElement:()=>sw,iconOverrides:()=>zF,iconSetAlpine:()=>nv,iconSetBalham:()=>av,iconSetMaterial:()=>sv,iconSetQuartz:()=>Ka,iconSetQuartzBold:()=>BF,iconSetQuartzLight:()=>VF,iconSetQuartzRegular:()=>gv,inputStyleBase:()=>WF,inputStyleBordered:()=>Ya,inputStyleUnderlined:()=>uv,isColumn:()=>Ys,isColumnGroup:()=>tt,isColumnGroupAutoCol:()=>gl,isColumnSelectionCol:()=>$r,isCombinedFilterModel:()=>ml,isProvidedColumnGroup:()=>Wr,isRowNumberCol:()=>Le,isSpecialCol:()=>ul,onRowHeightChanged:()=>vc,provideGlobalGridOptions:()=>pS,resetRowHeights:()=>wc,setupAgTestIds:()=>j7,styleMaterial:()=>yv,tabStyleAlpine:()=>fv,tabStyleBase:()=>KF,tabStyleMaterial:()=>pv,tabStyleQuartz:()=>hv,tabStyleRolodex:()=>mv,themeAlpine:()=>i6,themeBalham:()=>n6,themeMaterial:()=>c6,themeQuartz:()=>wv,wrapAgTestIdFor:()=>H7}),Ln.exports=Y0(Mg),(function(){if(typeof document<"u"){var e=document.createElement("style");e.setAttribute("data-ag-scope","legacy"),e.textContent=`@charset "UTF-8";.ag-filter-panel-buttons{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding) 0;flex-wrap:wrap;gap:var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing)}.ag-filter-panel-buttons-button{line-height:1.5}.ag-filter-panel .ag-standard-button.ag-filter-panel-buttons-apply-button{color:var(--ag-filter-panel-apply-button-color);background-color:var(--ag-filter-panel-apply-button-background-color)}.ag-filter-panel>*:where(:last-child){padding-bottom:var(--ag-widget-container-vertical-padding)}.ag-row.ag-row-pinned-source{color:var(--ag-pinned-source-row-text-color);background-color:var(--ag-pinned-source-row-background-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row.ag-row-pinned{color:var(--ag-pinned-row-text-color);background-color:var(--ag-pinned-row-background-color);font-weight:var(--ag-pinned-row-font-weight)}.ag-measurement-container{--ag-legacy-styles-loaded: "true"}.ag-icon{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size);position:relative}.ag-icon::before{content:"";font-family:inherit}.ag-icon::after{print-color-adjust:exact;background:transparent var(--ag-icon-image, none) center/contain no-repeat;display:var(--ag-icon-image-display);opacity:var(--ag-icon-image-opacity, 0.9);position:absolute;inset:0;content:""}.ag-icon-aggregation{font-family:var(--ag-icon-font-family-aggregation, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-aggregation, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-aggregation, var(--ag-icon-font-color))}.ag-icon-aggregation::before{content:var(--ag-icon-font-code-aggregation, "\\f101");display:var(--ag-icon-font-display-aggregation, var(--ag-icon-font-display))}.ag-icon-aggregation::after{background-image:var(--ag-icon-image-aggregation, var(--ag-icon-image));display:var(--ag-icon-image-display-aggregation, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-aggregation, var(--ag-icon-image-opacity, 0.9))}.ag-icon-arrows{font-family:var(--ag-icon-font-family-arrows, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-arrows, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-arrows, var(--ag-icon-font-color))}.ag-icon-arrows::before{content:var(--ag-icon-font-code-arrows, "\\f102");display:var(--ag-icon-font-display-arrows, var(--ag-icon-font-display))}.ag-icon-arrows::after{background-image:var(--ag-icon-image-arrows, var(--ag-icon-image));display:var(--ag-icon-image-display-arrows, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-arrows, var(--ag-icon-image-opacity, 0.9))}.ag-icon-asc{font-family:var(--ag-icon-font-family-asc, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-asc, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-asc, var(--ag-icon-font-color))}.ag-icon-asc::before{content:var(--ag-icon-font-code-asc, "\\f103");display:var(--ag-icon-font-display-asc, var(--ag-icon-font-display))}.ag-icon-asc::after{background-image:var(--ag-icon-image-asc, var(--ag-icon-image));display:var(--ag-icon-image-display-asc, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-asc, var(--ag-icon-image-opacity, 0.9))}.ag-icon-aasc{font-family:var(--ag-icon-font-family-aasc, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-aasc, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-aasc, var(--ag-icon-font-color))}.ag-icon-aasc::before{content:var(--ag-icon-font-code-aasc, "\\f13c");display:var(--ag-icon-font-display-aasc, var(--ag-icon-font-display))}.ag-icon-aasc::after{background-image:var(--ag-icon-image-aasc, var(--ag-icon-image));display:var(--ag-icon-image-display-aasc, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-aasc, var(--ag-icon-image-opacity, 0.9))}.ag-icon-adesc{font-family:var(--ag-icon-font-family-adesc, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-adesc, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-adesc, var(--ag-icon-font-color))}.ag-icon-adesc::before{content:var(--ag-icon-font-code-adesc, "\\f13d");display:var(--ag-icon-font-display-adesc, var(--ag-icon-font-display))}.ag-icon-adesc::after{background-image:var(--ag-icon-image-adesc, var(--ag-icon-image));display:var(--ag-icon-image-display-adesc, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-adesc, var(--ag-icon-image-opacity, 0.9))}.ag-icon-cancel{font-family:var(--ag-icon-font-family-cancel, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cancel, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cancel, var(--ag-icon-font-color))}.ag-icon-cancel::before{content:var(--ag-icon-font-code-cancel, "\\f104");display:var(--ag-icon-font-display-cancel, var(--ag-icon-font-display))}.ag-icon-cancel::after{background-image:var(--ag-icon-image-cancel, var(--ag-icon-image));display:var(--ag-icon-image-display-cancel, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cancel, var(--ag-icon-image-opacity, 0.9))}.ag-icon-chart{font-family:var(--ag-icon-font-family-chart, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-chart, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-chart, var(--ag-icon-font-color))}.ag-icon-chart::before{content:var(--ag-icon-font-code-chart, "\\f105");display:var(--ag-icon-font-display-chart, var(--ag-icon-font-display))}.ag-icon-chart::after{background-image:var(--ag-icon-image-chart, var(--ag-icon-image));display:var(--ag-icon-image-display-chart, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-chart, var(--ag-icon-image-opacity, 0.9))}.ag-icon-checkbox-checked{font-family:var(--ag-icon-font-family-checkbox-checked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-checked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-checked, var(--ag-icon-font-color))}.ag-icon-checkbox-checked::before{content:var(--ag-icon-font-code-checkbox-checked, "\\f106");display:var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display))}.ag-icon-checkbox-checked::after{background-image:var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9))}.ag-icon-checkbox-indeterminate{font-family:var(--ag-icon-font-family-checkbox-indeterminate, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-indeterminate, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-indeterminate, var(--ag-icon-font-color))}.ag-icon-checkbox-indeterminate::before{content:var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");display:var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display))}.ag-icon-checkbox-indeterminate::after{background-image:var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9))}.ag-icon-checkbox-unchecked{font-family:var(--ag-icon-font-family-checkbox-unchecked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-checkbox-unchecked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-checkbox-unchecked, var(--ag-icon-font-color))}.ag-icon-checkbox-unchecked::before{content:var(--ag-icon-font-code-checkbox-unchecked, "\\f108");display:var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display))}.ag-icon-checkbox-unchecked::after{background-image:var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9))}.ag-icon-color-picker{font-family:var(--ag-icon-font-family-color-picker, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-color-picker, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-color-picker, var(--ag-icon-font-color))}.ag-icon-color-picker::before{content:var(--ag-icon-font-code-color-picker, "\\f109");display:var(--ag-icon-font-display-color-picker, var(--ag-icon-font-display))}.ag-icon-color-picker::after{background-image:var(--ag-icon-image-color-picker, var(--ag-icon-image));display:var(--ag-icon-image-display-color-picker, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-color-picker, var(--ag-icon-image-opacity, 0.9))}.ag-icon-columns{font-family:var(--ag-icon-font-family-columns, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-columns, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-columns, var(--ag-icon-font-color))}.ag-icon-columns::before{content:var(--ag-icon-font-code-columns, "\\f10a");display:var(--ag-icon-font-display-columns, var(--ag-icon-font-display))}.ag-icon-columns::after{background-image:var(--ag-icon-image-columns, var(--ag-icon-image));display:var(--ag-icon-image-display-columns, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-columns, var(--ag-icon-image-opacity, 0.9))}.ag-icon-contracted{font-family:var(--ag-icon-font-family-contracted, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-contracted, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-contracted, var(--ag-icon-font-color))}.ag-icon-contracted::before{content:var(--ag-icon-font-code-contracted, "\\f10b");display:var(--ag-icon-font-display-contracted, var(--ag-icon-font-display))}.ag-icon-contracted::after{background-image:var(--ag-icon-image-contracted, var(--ag-icon-image));display:var(--ag-icon-image-display-contracted, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-contracted, var(--ag-icon-image-opacity, 0.9))}.ag-icon-copy{font-family:var(--ag-icon-font-family-copy, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-copy, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-copy, var(--ag-icon-font-color))}.ag-icon-copy::before{content:var(--ag-icon-font-code-copy, "\\f10c");display:var(--ag-icon-font-display-copy, var(--ag-icon-font-display))}.ag-icon-copy::after{background-image:var(--ag-icon-image-copy, var(--ag-icon-image));display:var(--ag-icon-image-display-copy, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-copy, var(--ag-icon-image-opacity, 0.9))}.ag-icon-cross{font-family:var(--ag-icon-font-family-cross, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cross, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cross, var(--ag-icon-font-color))}.ag-icon-cross::before{content:var(--ag-icon-font-code-cross, "\\f10d");display:var(--ag-icon-font-display-cross, var(--ag-icon-font-display))}.ag-icon-cross::after{background-image:var(--ag-icon-image-cross, var(--ag-icon-image));display:var(--ag-icon-image-display-cross, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cross, var(--ag-icon-image-opacity, 0.9))}.ag-icon-csv{font-family:var(--ag-icon-font-family-csv, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-csv, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-csv, var(--ag-icon-font-color))}.ag-icon-csv::before{content:var(--ag-icon-font-code-csv, "\\f10e");display:var(--ag-icon-font-display-csv, var(--ag-icon-font-display))}.ag-icon-csv::after{background-image:var(--ag-icon-image-csv, var(--ag-icon-image));display:var(--ag-icon-image-display-csv, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-csv, var(--ag-icon-image-opacity, 0.9))}.ag-icon-cut{font-family:var(--ag-icon-font-family-cut, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-cut, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-cut, var(--ag-icon-font-color))}.ag-icon-cut::before{content:var(--ag-icon-font-code-cut, "\\f10f");display:var(--ag-icon-font-display-cut, var(--ag-icon-font-display))}.ag-icon-cut::after{background-image:var(--ag-icon-image-cut, var(--ag-icon-image));display:var(--ag-icon-image-display-cut, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-cut, var(--ag-icon-image-opacity, 0.9))}.ag-icon-desc{font-family:var(--ag-icon-font-family-desc, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-desc, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-desc, var(--ag-icon-font-color))}.ag-icon-desc::before{content:var(--ag-icon-font-code-desc, "\\f110");display:var(--ag-icon-font-display-desc, var(--ag-icon-font-display))}.ag-icon-desc::after{background-image:var(--ag-icon-image-desc, var(--ag-icon-image));display:var(--ag-icon-image-display-desc, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-desc, var(--ag-icon-image-opacity, 0.9))}.ag-icon-excel{font-family:var(--ag-icon-font-family-excel, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-excel, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-excel, var(--ag-icon-font-color))}.ag-icon-excel::before{content:var(--ag-icon-font-code-excel, "\\f111");display:var(--ag-icon-font-display-excel, var(--ag-icon-font-display))}.ag-icon-excel::after{background-image:var(--ag-icon-image-excel, var(--ag-icon-image));display:var(--ag-icon-image-display-excel, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-excel, var(--ag-icon-image-opacity, 0.9))}.ag-icon-expanded{font-family:var(--ag-icon-font-family-expanded, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-expanded, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-expanded, var(--ag-icon-font-color))}.ag-icon-expanded::before{content:var(--ag-icon-font-code-expanded, "\\f112");display:var(--ag-icon-font-display-expanded, var(--ag-icon-font-display))}.ag-icon-expanded::after{background-image:var(--ag-icon-image-expanded, var(--ag-icon-image));display:var(--ag-icon-image-display-expanded, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-expanded, var(--ag-icon-image-opacity, 0.9))}.ag-icon-eye-slash{font-family:var(--ag-icon-font-family-eye-slash, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-eye-slash, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-eye-slash, var(--ag-icon-font-color))}.ag-icon-eye-slash::before{content:var(--ag-icon-font-code-eye-slash, "\\f113");display:var(--ag-icon-font-display-eye-slash, var(--ag-icon-font-display))}.ag-icon-eye-slash::after{background-image:var(--ag-icon-image-eye-slash, var(--ag-icon-image));display:var(--ag-icon-image-display-eye-slash, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-eye-slash, var(--ag-icon-image-opacity, 0.9))}.ag-icon-eye{font-family:var(--ag-icon-font-family-eye, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-eye, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-eye, var(--ag-icon-font-color))}.ag-icon-eye::before{content:var(--ag-icon-font-code-eye, "\\f114");display:var(--ag-icon-font-display-eye, var(--ag-icon-font-display))}.ag-icon-eye::after{background-image:var(--ag-icon-image-eye, var(--ag-icon-image));display:var(--ag-icon-image-display-eye, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-eye, var(--ag-icon-image-opacity, 0.9))}.ag-icon-filter{font-family:var(--ag-icon-font-family-filter, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-filter, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-filter, var(--ag-icon-font-color))}.ag-icon-filter::before{content:var(--ag-icon-font-code-filter, "\\f115");display:var(--ag-icon-font-display-filter, var(--ag-icon-font-display))}.ag-icon-filter::after{background-image:var(--ag-icon-image-filter, var(--ag-icon-image));display:var(--ag-icon-image-display-filter, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-filter, var(--ag-icon-image-opacity, 0.9))}.ag-icon-first{font-family:var(--ag-icon-font-family-first, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-first, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-first, var(--ag-icon-font-color))}.ag-icon-first::before{content:var(--ag-icon-font-code-first, "\\f116");display:var(--ag-icon-font-display-first, var(--ag-icon-font-display))}.ag-icon-first::after{background-image:var(--ag-icon-image-first, var(--ag-icon-image));display:var(--ag-icon-image-display-first, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-first, var(--ag-icon-image-opacity, 0.9))}.ag-icon-grip{font-family:var(--ag-icon-font-family-grip, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-grip, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-grip, var(--ag-icon-font-color))}.ag-icon-grip::before{content:var(--ag-icon-font-code-grip, "\\f117");display:var(--ag-icon-font-display-grip, var(--ag-icon-font-display))}.ag-icon-grip::after{background-image:var(--ag-icon-image-grip, var(--ag-icon-image));display:var(--ag-icon-image-display-grip, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-grip, var(--ag-icon-image-opacity, 0.9))}.ag-icon-group{font-family:var(--ag-icon-font-family-group, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-group, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-group, var(--ag-icon-font-color))}.ag-icon-group::before{content:var(--ag-icon-font-code-group, "\\f118");display:var(--ag-icon-font-display-group, var(--ag-icon-font-display))}.ag-icon-group::after{background-image:var(--ag-icon-image-group, var(--ag-icon-image));display:var(--ag-icon-image-display-group, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-group, var(--ag-icon-image-opacity, 0.9))}.ag-icon-last{font-family:var(--ag-icon-font-family-last, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-last, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-last, var(--ag-icon-font-color))}.ag-icon-last::before{content:var(--ag-icon-font-code-last, "\\f119");display:var(--ag-icon-font-display-last, var(--ag-icon-font-display))}.ag-icon-last::after{background-image:var(--ag-icon-image-last, var(--ag-icon-image));display:var(--ag-icon-image-display-last, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-last, var(--ag-icon-image-opacity, 0.9))}.ag-icon-left{font-family:var(--ag-icon-font-family-left, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-left, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-left, var(--ag-icon-font-color))}.ag-icon-left::before{content:var(--ag-icon-font-code-left, "\\f11a");display:var(--ag-icon-font-display-left, var(--ag-icon-font-display))}.ag-icon-left::after{background-image:var(--ag-icon-image-left, var(--ag-icon-image));display:var(--ag-icon-image-display-left, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-left, var(--ag-icon-image-opacity, 0.9))}.ag-icon-linked{font-family:var(--ag-icon-font-family-linked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-linked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-linked, var(--ag-icon-font-color))}.ag-icon-linked::before{content:var(--ag-icon-font-code-linked, "\\f11b");display:var(--ag-icon-font-display-linked, var(--ag-icon-font-display))}.ag-icon-linked::after{background-image:var(--ag-icon-image-linked, var(--ag-icon-image));display:var(--ag-icon-image-display-linked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-linked, var(--ag-icon-image-opacity, 0.9))}.ag-icon-loading{font-family:var(--ag-icon-font-family-loading, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-loading, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-loading, var(--ag-icon-font-color))}.ag-icon-loading::before{content:var(--ag-icon-font-code-loading, "\\f11c");display:var(--ag-icon-font-display-loading, var(--ag-icon-font-display))}.ag-icon-loading::after{background-image:var(--ag-icon-image-loading, var(--ag-icon-image));display:var(--ag-icon-image-display-loading, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-loading, var(--ag-icon-image-opacity, 0.9))}.ag-icon-maximize{font-family:var(--ag-icon-font-family-maximize, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-maximize, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-maximize, var(--ag-icon-font-color))}.ag-icon-maximize::before{content:var(--ag-icon-font-code-maximize, "\\f11d");display:var(--ag-icon-font-display-maximize, var(--ag-icon-font-display))}.ag-icon-maximize::after{background-image:var(--ag-icon-image-maximize, var(--ag-icon-image));display:var(--ag-icon-image-display-maximize, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-maximize, var(--ag-icon-image-opacity, 0.9))}.ag-icon-menu{font-family:var(--ag-icon-font-family-menu, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-menu, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-menu, var(--ag-icon-font-color))}.ag-icon-menu::before{content:var(--ag-icon-font-code-menu, "\\f11e");display:var(--ag-icon-font-display-menu, var(--ag-icon-font-display))}.ag-icon-menu::after{background-image:var(--ag-icon-image-menu, var(--ag-icon-image));display:var(--ag-icon-image-display-menu, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-menu, var(--ag-icon-image-opacity, 0.9))}.ag-icon-minimize{font-family:var(--ag-icon-font-family-minimize, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-minimize, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-minimize, var(--ag-icon-font-color))}.ag-icon-minimize::before{content:var(--ag-icon-font-code-minimize, "\\f11f");display:var(--ag-icon-font-display-minimize, var(--ag-icon-font-display))}.ag-icon-minimize::after{background-image:var(--ag-icon-image-minimize, var(--ag-icon-image));display:var(--ag-icon-image-display-minimize, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-minimize, var(--ag-icon-image-opacity, 0.9))}.ag-icon-next{font-family:var(--ag-icon-font-family-next, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-next, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-next, var(--ag-icon-font-color))}.ag-icon-next::before{content:var(--ag-icon-font-code-next, "\\f120");display:var(--ag-icon-font-display-next, var(--ag-icon-font-display))}.ag-icon-next::after{background-image:var(--ag-icon-image-next, var(--ag-icon-image));display:var(--ag-icon-image-display-next, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-next, var(--ag-icon-image-opacity, 0.9))}.ag-icon-none{font-family:var(--ag-icon-font-family-none, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-none, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-none, var(--ag-icon-font-color))}.ag-icon-none::before{content:var(--ag-icon-font-code-none, "\\f121");display:var(--ag-icon-font-display-none, var(--ag-icon-font-display))}.ag-icon-none::after{background-image:var(--ag-icon-image-none, var(--ag-icon-image));display:var(--ag-icon-image-display-none, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-none, var(--ag-icon-image-opacity, 0.9))}.ag-icon-not-allowed{font-family:var(--ag-icon-font-family-not-allowed, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-not-allowed, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-not-allowed, var(--ag-icon-font-color))}.ag-icon-not-allowed::before{content:var(--ag-icon-font-code-not-allowed, "\\f122");display:var(--ag-icon-font-display-not-allowed, var(--ag-icon-font-display))}.ag-icon-not-allowed::after{background-image:var(--ag-icon-image-not-allowed, var(--ag-icon-image));display:var(--ag-icon-image-display-not-allowed, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-not-allowed, var(--ag-icon-image-opacity, 0.9))}.ag-icon-paste{font-family:var(--ag-icon-font-family-paste, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-paste, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-paste, var(--ag-icon-font-color))}.ag-icon-paste::before{content:var(--ag-icon-font-code-paste, "\\f123");display:var(--ag-icon-font-display-paste, var(--ag-icon-font-display))}.ag-icon-paste::after{background-image:var(--ag-icon-image-paste, var(--ag-icon-image));display:var(--ag-icon-image-display-paste, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-paste, var(--ag-icon-image-opacity, 0.9))}.ag-icon-pin{font-family:var(--ag-icon-font-family-pin, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pin, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pin, var(--ag-icon-font-color))}.ag-icon-pin::before{content:var(--ag-icon-font-code-pin, "\\f124");display:var(--ag-icon-font-display-pin, var(--ag-icon-font-display))}.ag-icon-pin::after{background-image:var(--ag-icon-image-pin, var(--ag-icon-image));display:var(--ag-icon-image-display-pin, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pin, var(--ag-icon-image-opacity, 0.9))}.ag-icon-pivot{font-family:var(--ag-icon-font-family-pivot, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pivot, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pivot, var(--ag-icon-font-color))}.ag-icon-pivot::before{content:var(--ag-icon-font-code-pivot, "\\f125");display:var(--ag-icon-font-display-pivot, var(--ag-icon-font-display))}.ag-icon-pivot::after{background-image:var(--ag-icon-image-pivot, var(--ag-icon-image));display:var(--ag-icon-image-display-pivot, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pivot, var(--ag-icon-image-opacity, 0.9))}.ag-icon-previous{font-family:var(--ag-icon-font-family-previous, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-previous, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-previous, var(--ag-icon-font-color))}.ag-icon-previous::before{content:var(--ag-icon-font-code-previous, "\\f126");display:var(--ag-icon-font-display-previous, var(--ag-icon-font-display))}.ag-icon-previous::after{background-image:var(--ag-icon-image-previous, var(--ag-icon-image));display:var(--ag-icon-image-display-previous, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-previous, var(--ag-icon-image-opacity, 0.9))}.ag-icon-radio-button-off{font-family:var(--ag-icon-font-family-radio-button-off, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-radio-button-off, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-radio-button-off, var(--ag-icon-font-color))}.ag-icon-radio-button-off::before{content:var(--ag-icon-font-code-radio-button-off, "\\f127");display:var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display))}.ag-icon-radio-button-off::after{background-image:var(--ag-icon-image-radio-button-off, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9))}.ag-icon-radio-button-on{font-family:var(--ag-icon-font-family-radio-button-on, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-radio-button-on, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-radio-button-on, var(--ag-icon-font-color))}.ag-icon-radio-button-on::before{content:var(--ag-icon-font-code-radio-button-on, "\\f128");display:var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display))}.ag-icon-radio-button-on::after{background-image:var(--ag-icon-image-radio-button-on, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9))}.ag-icon-right{font-family:var(--ag-icon-font-family-right, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-right, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-right, var(--ag-icon-font-color))}.ag-icon-right::before{content:var(--ag-icon-font-code-right, "\\f129");display:var(--ag-icon-font-display-right, var(--ag-icon-font-display))}.ag-icon-right::after{background-image:var(--ag-icon-image-right, var(--ag-icon-image));display:var(--ag-icon-image-display-right, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-right, var(--ag-icon-image-opacity, 0.9))}.ag-icon-save{font-family:var(--ag-icon-font-family-save, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-save, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-save, var(--ag-icon-font-color))}.ag-icon-save::before{content:var(--ag-icon-font-code-save, "\\f12a");display:var(--ag-icon-font-display-save, var(--ag-icon-font-display))}.ag-icon-save::after{background-image:var(--ag-icon-image-save, var(--ag-icon-image));display:var(--ag-icon-image-display-save, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-save, var(--ag-icon-image-opacity, 0.9))}.ag-icon-small-down{font-family:var(--ag-icon-font-family-small-down, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-down, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-down, var(--ag-icon-font-color))}.ag-icon-small-down::before{content:var(--ag-icon-font-code-small-down, "\\f12b");display:var(--ag-icon-font-display-small-down, var(--ag-icon-font-display))}.ag-icon-small-down::after{background-image:var(--ag-icon-image-small-down, var(--ag-icon-image));display:var(--ag-icon-image-display-small-down, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-down, var(--ag-icon-image-opacity, 0.9))}.ag-icon-small-left{font-family:var(--ag-icon-font-family-small-left, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-left, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-left, var(--ag-icon-font-color))}.ag-icon-small-left::before{content:var(--ag-icon-font-code-small-left, "\\f12c");display:var(--ag-icon-font-display-small-left, var(--ag-icon-font-display))}.ag-icon-small-left::after{background-image:var(--ag-icon-image-small-left, var(--ag-icon-image));display:var(--ag-icon-image-display-small-left, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-left, var(--ag-icon-image-opacity, 0.9))}.ag-icon-small-right{font-family:var(--ag-icon-font-family-small-right, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-right, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-right, var(--ag-icon-font-color))}.ag-icon-small-right::before{content:var(--ag-icon-font-code-small-right, "\\f12d");display:var(--ag-icon-font-display-small-right, var(--ag-icon-font-display))}.ag-icon-small-right::after{background-image:var(--ag-icon-image-small-right, var(--ag-icon-image));display:var(--ag-icon-image-display-small-right, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-right, var(--ag-icon-image-opacity, 0.9))}.ag-icon-small-up{font-family:var(--ag-icon-font-family-small-up, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-small-up, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-small-up, var(--ag-icon-font-color))}.ag-icon-small-up::before{content:var(--ag-icon-font-code-small-up, "\\f12e");display:var(--ag-icon-font-display-small-up, var(--ag-icon-font-display))}.ag-icon-small-up::after{background-image:var(--ag-icon-image-small-up, var(--ag-icon-image));display:var(--ag-icon-image-display-small-up, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-small-up, var(--ag-icon-image-opacity, 0.9))}.ag-icon-tick{font-family:var(--ag-icon-font-family-tick, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tick, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tick, var(--ag-icon-font-color))}.ag-icon-tick::before{content:var(--ag-icon-font-code-tick, "\\f12f");display:var(--ag-icon-font-display-tick, var(--ag-icon-font-display))}.ag-icon-tick::after{background-image:var(--ag-icon-image-tick, var(--ag-icon-image));display:var(--ag-icon-image-display-tick, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tick, var(--ag-icon-image-opacity, 0.9))}.ag-icon-tree-closed{font-family:var(--ag-icon-font-family-tree-closed, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-closed, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-closed, var(--ag-icon-font-color))}.ag-icon-tree-closed::before{content:var(--ag-icon-font-code-tree-closed, "\\f130");display:var(--ag-icon-font-display-tree-closed, var(--ag-icon-font-display))}.ag-icon-tree-closed::after{background-image:var(--ag-icon-image-tree-closed, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-closed, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-closed, var(--ag-icon-image-opacity, 0.9))}.ag-icon-tree-indeterminate{font-family:var(--ag-icon-font-family-tree-indeterminate, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-indeterminate, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-indeterminate, var(--ag-icon-font-color))}.ag-icon-tree-indeterminate::before{content:var(--ag-icon-font-code-tree-indeterminate, "\\f131");display:var(--ag-icon-font-display-tree-indeterminate, var(--ag-icon-font-display))}.ag-icon-tree-indeterminate::after{background-image:var(--ag-icon-image-tree-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-indeterminate, var(--ag-icon-image-opacity, 0.9))}.ag-icon-tree-open{font-family:var(--ag-icon-font-family-tree-open, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-tree-open, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-tree-open, var(--ag-icon-font-color))}.ag-icon-tree-open::before{content:var(--ag-icon-font-code-tree-open, "\\f132");display:var(--ag-icon-font-display-tree-open, var(--ag-icon-font-display))}.ag-icon-tree-open::after{background-image:var(--ag-icon-image-tree-open, var(--ag-icon-image));display:var(--ag-icon-image-display-tree-open, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-tree-open, var(--ag-icon-image-opacity, 0.9))}.ag-icon-unlinked{font-family:var(--ag-icon-font-family-unlinked, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-unlinked, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-unlinked, var(--ag-icon-font-color))}.ag-icon-unlinked::before{content:var(--ag-icon-font-code-unlinked, "\\f133");display:var(--ag-icon-font-display-unlinked, var(--ag-icon-font-display))}.ag-icon-unlinked::after{background-image:var(--ag-icon-image-unlinked, var(--ag-icon-image));display:var(--ag-icon-image-display-unlinked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-unlinked, var(--ag-icon-image-opacity, 0.9))}.ag-icon-up{font-family:var(--ag-icon-font-family-up, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-up, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-up, var(--ag-icon-font-color))}.ag-icon-up::before{content:var(--ag-icon-font-code-up, "\\f134");display:var(--ag-icon-font-display-up, var(--ag-icon-font-display))}.ag-icon-up::after{background-image:var(--ag-icon-image-up, var(--ag-icon-image));display:var(--ag-icon-image-display-up, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-up, var(--ag-icon-image-opacity, 0.9))}.ag-icon-down{font-family:var(--ag-icon-font-family-down, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-down, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-down, var(--ag-icon-font-color))}.ag-icon-down::before{content:var(--ag-icon-font-code-down, "\\f135");display:var(--ag-icon-font-display-down, var(--ag-icon-font-display))}.ag-icon-down::after{background-image:var(--ag-icon-image-down, var(--ag-icon-image));display:var(--ag-icon-image-display-down, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-down, var(--ag-icon-image-opacity, 0.9))}.ag-icon-plus{font-family:var(--ag-icon-font-family-plus, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-plus, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-plus, var(--ag-icon-font-color))}.ag-icon-plus::before{content:var(--ag-icon-font-code-plus, "\\f136");display:var(--ag-icon-font-display-plus, var(--ag-icon-font-display))}.ag-icon-plus::after{background-image:var(--ag-icon-image-plus, var(--ag-icon-image));display:var(--ag-icon-image-display-plus, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-plus, var(--ag-icon-image-opacity, 0.9))}.ag-icon-minus{font-family:var(--ag-icon-font-family-minus, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-minus, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-minus, var(--ag-icon-font-color))}.ag-icon-minus::before{content:var(--ag-icon-font-code-minus, "\\f137");display:var(--ag-icon-font-display-minus, var(--ag-icon-font-display))}.ag-icon-minus::after{background-image:var(--ag-icon-image-minus, var(--ag-icon-image));display:var(--ag-icon-image-display-minus, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-minus, var(--ag-icon-image-opacity, 0.9))}.ag-icon-menu-alt{font-family:var(--ag-icon-font-family-menu-alt, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-menu-alt, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-menu-alt, var(--ag-icon-font-color))}.ag-icon-menu-alt::before{content:var(--ag-icon-font-code-menu-alt, "\\f138");display:var(--ag-icon-font-display-menu-alt, var(--ag-icon-font-display))}.ag-icon-menu-alt::after{background-image:var(--ag-icon-image-menu-alt, var(--ag-icon-image));display:var(--ag-icon-image-display-menu-alt, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-menu-alt, var(--ag-icon-image-opacity, 0.9))}.ag-icon-settings{font-family:var(--ag-icon-font-family-settings, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-settings, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-settings, var(--ag-icon-font-color))}.ag-icon-settings::before{content:var(--ag-icon-font-code-settings, "\\f139");display:var(--ag-icon-font-display-settings, var(--ag-icon-font-display))}.ag-icon-settings::after{background-image:var(--ag-icon-image-settings, var(--ag-icon-image));display:var(--ag-icon-image-display-settings, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-settings, var(--ag-icon-image-opacity, 0.9))}.ag-icon-column-arrow{font-family:var(--ag-icon-font-family-column-arrow, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-column-arrow, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-column-arrow, var(--ag-icon-font-color))}.ag-icon-column-arrow::before{content:var(--ag-icon-font-code-column-arrow, "\\f13a");display:var(--ag-icon-font-display-column-arrow, var(--ag-icon-font-display))}.ag-icon-column-arrow::after{background-image:var(--ag-icon-image-column-arrow, var(--ag-icon-image));display:var(--ag-icon-image-display-column-arrow, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-column-arrow, var(--ag-icon-image-opacity, 0.9))}.ag-icon-un-pin{font-family:var(--ag-icon-font-family-un-pin, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-un-pin, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-un-pin, var(--ag-icon-font-color))}.ag-icon-un-pin::before{content:var(--ag-icon-font-code-un-pin, "\\f13b");display:var(--ag-icon-font-display-un-pin, var(--ag-icon-font-display))}.ag-icon-un-pin::after{background-image:var(--ag-icon-image-un-pin, var(--ag-icon-image));display:var(--ag-icon-image-display-un-pin, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-un-pin, var(--ag-icon-image-opacity, 0.9))}.ag-icon-pinned-bottom{font-family:var(--ag-icon-font-family-pinned-bottom, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pinned-bottom, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pinned-bottom, var(--ag-icon-font-color))}.ag-icon-pinned-bottom::before{content:var(--ag-icon-font-code-pinned-bottom, "\\f13e");display:var(--ag-icon-font-display-pinned-bottom, var(--ag-icon-font-display))}.ag-icon-pinned-bottom::after{background-image:var(--ag-icon-image-pinned-bottom, var(--ag-icon-image));display:var(--ag-icon-image-display-pinned-bottom, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pinned-bottom, var(--ag-icon-image-opacity, 0.9))}.ag-icon-pinned-top{font-family:var(--ag-icon-font-family-pinned-top, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pinned-top, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pinned-top, var(--ag-icon-font-color))}.ag-icon-pinned-top::before{content:var(--ag-icon-font-code-pinned-top, "\\f13f");display:var(--ag-icon-font-display-pinned-top, var(--ag-icon-font-display))}.ag-icon-pinned-top::after{background-image:var(--ag-icon-image-pinned-top, var(--ag-icon-image));display:var(--ag-icon-image-display-pinned-top, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pinned-top, var(--ag-icon-image-opacity, 0.9))}.ag-icon-chevron-up{font-family:var(--ag-icon-font-family-chevron-up, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-chevron-up, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-chevron-up, var(--ag-icon-font-color))}.ag-icon-chevron-up::before{content:var(--ag-icon-font-code-chevron-up, "\\f140");display:var(--ag-icon-font-display-chevron-up, var(--ag-icon-font-display))}.ag-icon-chevron-up::after{background-image:var(--ag-icon-image-chevron-up, var(--ag-icon-image));display:var(--ag-icon-image-display-chevron-up, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-chevron-up, var(--ag-icon-image-opacity, 0.9))}.ag-icon-chevron-down{font-family:var(--ag-icon-font-family-chevron-down, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-chevron-down, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-chevron-down, var(--ag-icon-font-color))}.ag-icon-chevron-down::before{content:var(--ag-icon-font-code-chevron-down, "\\f141");display:var(--ag-icon-font-display-chevron-down, var(--ag-icon-font-display))}.ag-icon-chevron-down::after{background-image:var(--ag-icon-image-chevron-down, var(--ag-icon-image));display:var(--ag-icon-image-display-chevron-down, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-chevron-down, var(--ag-icon-image-opacity, 0.9))}.ag-icon-chevron-left{font-family:var(--ag-icon-font-family-chevron-left, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-chevron-left, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-chevron-left, var(--ag-icon-font-color))}.ag-icon-chevron-left::before{content:var(--ag-icon-font-code-chevron-left, "\\f142");display:var(--ag-icon-font-display-chevron-left, var(--ag-icon-font-display))}.ag-icon-chevron-left::after{background-image:var(--ag-icon-image-chevron-left, var(--ag-icon-image));display:var(--ag-icon-image-display-chevron-left, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-chevron-left, var(--ag-icon-image-opacity, 0.9))}.ag-icon-chevron-right{font-family:var(--ag-icon-font-family-chevron-right, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-chevron-right, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-chevron-right, var(--ag-icon-font-color))}.ag-icon-chevron-right::before{content:var(--ag-icon-font-code-chevron-right, "\\f143");display:var(--ag-icon-font-display-chevron-right, var(--ag-icon-font-display))}.ag-icon-chevron-right::after{background-image:var(--ag-icon-image-chevron-right, var(--ag-icon-image));display:var(--ag-icon-image-display-chevron-right, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-chevron-right, var(--ag-icon-image-opacity, 0.9))}.ag-icon-filter-add{font-family:var(--ag-icon-font-family-filter-add, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-filter-add, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-filter-add, var(--ag-icon-font-color))}.ag-icon-filter-add::before{content:var(--ag-icon-font-code-filter-add, "\\f144");display:var(--ag-icon-font-display-filter-add, var(--ag-icon-font-display))}.ag-icon-filter-add::after{background-image:var(--ag-icon-image-filter-add, var(--ag-icon-image));display:var(--ag-icon-image-display-filter-add, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-filter-add, var(--ag-icon-image-opacity, 0.9))}.ag-icon-edit{font-family:var(--ag-icon-font-family-edit, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-edit, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-edit, var(--ag-icon-font-color))}.ag-icon-edit::before{content:var(--ag-icon-font-code-edit, "\\f145");display:var(--ag-icon-font-display-edit, var(--ag-icon-font-display))}.ag-icon-edit::after{background-image:var(--ag-icon-image-edit, var(--ag-icon-image));display:var(--ag-icon-image-display-edit, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-edit, var(--ag-icon-image-opacity, 0.9))}.ag-icon-search{font-family:var(--ag-icon-font-family-search, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-search, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-search, var(--ag-icon-font-color))}.ag-icon-search::before{content:var(--ag-icon-font-code-search, "\\f146");display:var(--ag-icon-font-display-search, var(--ag-icon-font-display))}.ag-icon-search::after{background-image:var(--ag-icon-image-search, var(--ag-icon-image));display:var(--ag-icon-image-display-search, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-search, var(--ag-icon-image-opacity, 0.9))}.ag-icon-document{font-family:var(--ag-icon-font-family-document, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-document, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-document, var(--ag-icon-font-color))}.ag-icon-document::before{content:var(--ag-icon-font-code-document, "\\f147");display:var(--ag-icon-font-display-document, var(--ag-icon-font-display))}.ag-icon-document::after{background-image:var(--ag-icon-image-document, var(--ag-icon-image));display:var(--ag-icon-image-display-document, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-document, var(--ag-icon-image-opacity, 0.9))}.ag-icon-fx{font-family:var(--ag-icon-font-family-fx, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-fx, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-fx, var(--ag-icon-font-color))}.ag-icon-fx::before{content:var(--ag-icon-font-code-fx, "\\f148");display:var(--ag-icon-font-display-fx, var(--ag-icon-font-display))}.ag-icon-fx::after{background-image:var(--ag-icon-image-fx, var(--ag-icon-image));display:var(--ag-icon-image-display-fx, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-fx, var(--ag-icon-image-opacity, 0.9))}.ag-icon-values-as{font-family:var(--ag-icon-font-family-values-as, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-values-as, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-values-as, var(--ag-icon-font-color))}.ag-icon-values-as::before{content:var(--ag-icon-font-code-values-as, "\\f149");display:var(--ag-icon-font-display-values-as, var(--ag-icon-font-display))}.ag-icon-values-as::after{background-image:var(--ag-icon-image-values-as, var(--ag-icon-image));display:var(--ag-icon-image-display-values-as, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-values-as, var(--ag-icon-image-opacity, 0.9))}.ag-icon-pdf{font-family:var(--ag-icon-font-family-pdf, var(--ag-icon-font-family));font-weight:var(--ag-icon-font-weight-pdf, var(--ag-icon-font-weight));color:var(--ag-icon-font-color-pdf, var(--ag-icon-font-color))}.ag-icon-pdf::before{content:var(--ag-icon-font-code-pdf, "\\f14a");display:var(--ag-icon-font-display-pdf, var(--ag-icon-font-display))}.ag-icon-pdf::after{background-image:var(--ag-icon-image-pdf, var(--ag-icon-image));display:var(--ag-icon-image-display-pdf, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-pdf, var(--ag-icon-image-opacity, 0.9))}.ag-icon-row-drag::before{content:var(--ag-icon-font-code-grip)}.ag-left-arrow::before{content:var(--ag-icon-font-code-left)}.ag-right-arrow::before{content:var(--ag-icon-font-code-right)}[class*=ag-theme-]{--ag-foreground-color: #000;--ag-data-color: var(--ag-foreground-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-header-foreground-color: var(--ag-secondary-foreground-color);--ag-disabled-foreground-color: rgba(0, 0, 0, 0.5);--ag-background-color: #fff;--ag-wrapper-background-color: var(--ag-background-color);--ag-header-background-color: transparent;--ag-toolbar-background-color: var(--ag-header-background-color);--ag-toolbar-text-color: var(--ag-foreground-color);--ag-toolbar-separator-color: var(--ag-border-color);--ag-toolbar-separator-width: 1px;--ag-tooltip-background-color: transparent;--ag-tooltip-error-background-color: color-mix( in srgb, var(--ag-background-color), var(--ag-invalid-color) 10% );--ag-tooltip-error-text-color: var(--ag-invalid-color);--ag-tooltip-error-border-color: color-mix(in srgb, var(--ag-background-color), var(--ag-invalid-color) 25%);--ag-subheader-background-color: transparent;--ag-subheader-toolbar-background-color: transparent;--ag-control-panel-background-color: transparent;--ag-side-button-selected-background-color: var(--ag-control-panel-background-color);--ag-selected-row-background-color: #bbb;--ag-data-background-color: var(--ag-background-color);--ag-odd-row-background-color: var(--ag-data-background-color);--ag-modal-overlay-background-color: rgba(255, 255, 255, 0.66);--ag-menu-background-color: var(--ag-background-color);--ag-menu-border-color: var(--ag-border-color);--ag-panel-background-color: var(--ag-background-color);--ag-panel-border-color: var(--ag-border-color);--ag-row-hover-color: transparent;--ag-row-header-hover-color: var(--ag-row-hover-color);--ag-column-hover-color: transparent;--ag-column-header-hover-color: var(--ag-column-hover-color);--ag-range-selection-border-color: var(--ag-foreground-color);--ag-row-drag-indicator-color: var(--ag-range-selection-border-color);--ag-row-drag-indicator-width: 2px;--ag-column-drag-indicator-color: var(--ag-range-selection-border-color);--ag-column-drag-indicator-width: 2px;--ag-range-selection-border-style: solid;--ag-range-selection-background-color: rgba(0, 0, 0, 0.2);--ag-range-selection-background-color-2: var(--ag-range-selection-background-color);--ag-range-selection-background-color-3: var(--ag-range-selection-background-color);--ag-range-selection-background-color-4: var(--ag-range-selection-background-color);--ag-range-selection-highlight-color: var(--ag-range-selection-border-color);--ag-range-header-highlight-color: color-mix( in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 8% );--ag-selected-tab-underline-color: var(--ag-range-selection-border-color);--ag-selected-tab-underline-width: 0;--ag-selected-tab-underline-transition-speed: 0s;--ag-range-selection-chart-category-background-color: rgba(0, 255, 132, 0.1);--ag-range-selection-chart-background-color: rgba(0, 88, 255, 0.1);--ag-header-cell-hover-background-color: transparent;--ag-header-cell-moving-background-color: var(--ag-background-color);--ag-value-change-value-highlight-background-color: rgba(22, 160, 133, 0.5);--ag-internal-accessible-color-transition-mode: ease;--ag-value-change-delta-up-color: #43a047;--ag-value-change-delta-down-color: #e53935;--ag-row-loading-skeleton-effect-color: rgba(66, 66, 66, 0.2);--ag-chip-background-color: transparent;--ag-chip-border-color: var(--ag-chip-background-color);--ag-borders: solid 1px;--ag-border-color: rgba(0, 0, 0, 0.25);--ag-borders-critical: var(--ag-borders);--ag-borders-secondary: var(--ag-borders);--ag-secondary-border-color: var(--ag-border-color);--ag-row-border-style: solid;--ag-row-border-color: var(--ag-secondary-border-color);--ag-row-border-width: 1px;--ag-cell-horizontal-border: solid transparent;--ag-borders-input: var(--ag-borders-secondary);--ag-input-border-color: var(--ag-secondary-border-color);--ag-borders-input-invalid: solid 2px;--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-full-row-invalid-background-color: color-mix( in srgb, var(--ag-background-color), var(--ag-invalid-color) 25% );--ag-borders-side-button: var(--ag-borders);--ag-border-radius: 0px;--ag-wrapper-border-radius: var(--ag-border-radius);--ag-row-border-color: var(--ag-secondary-border-color);--ag-header-column-separator-display: none;--ag-header-column-separator-height: 100%;--ag-header-column-separator-width: 1px;--ag-header-column-separator-color: var(--ag-secondary-border-color);--ag-header-column-resize-handle-display: none;--ag-header-column-resize-handle-height: 50%;--ag-header-column-resize-handle-width: 1px;--ag-header-column-resize-handle-color: var(--ag-secondary-border-color);--ag-invalid-color: red;--ag-input-disabled-border-color: var(--ag-input-border-color);--ag-input-disabled-background-color: transparent;--ag-checkbox-background-color: transparent;--ag-checkbox-border-radius: var(--ag-border-radius);--ag-checkbox-checked-color: var(--ag-foreground-color);--ag-checkbox-unchecked-color: var(--ag-foreground-color);--ag-checkbox-indeterminate-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-off-border-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-off-background-color: var(--ag-checkbox-unchecked-color);--ag-toggle-button-on-border-color: var(--ag-checkbox-checked-color);--ag-toggle-button-on-background-color: var(--ag-checkbox-checked-color);--ag-toggle-button-switch-background-color: var(--ag-background-color);--ag-toggle-button-switch-border-color: var(--ag-toggle-button-off-border-color);--ag-toggle-button-border-width: 1px;--ag-toggle-button-height: var(--ag-icon-size);--ag-toggle-button-width: calc(var(--ag-toggle-button-height) * 2);--ag-input-focus-box-shadow: none;--ag-input-error-focus-box-shadow: none;--ag-input-focus-border-color: none;--ag-minichart-selected-chart-color: var(--ag-checkbox-checked-color);--ag-minichart-selected-page-color: var(--ag-checkbox-checked-color);--ag-grid-size: 4px;--ag-icon-size: 12px;--ag-icon-font-weight: normal;--ag-icon-font-color: var(--ag-foreground-color);--ag-icon-image-display: block;--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: var(--ag-grid-size);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: var(--ag-cell-horizontal-padding);--ag-row-height: calc(var(--ag-grid-size) * 6 + 1px);--ag-auto-height-min-body-height: 50px;--ag-header-height: var(--ag-row-height);--ag-pagination-panel-height: var(--ag-header-height);--ag-list-item-height: calc(var(--ag-grid-size) * 5);--ag-column-select-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));--ag-set-filter-indent-size: calc(var(--ag-grid-size) + var(--ag-icon-size));--ag-advanced-filter-builder-indent-size: calc(var(--ag-grid-size) * 2 + var(--ag-icon-size));--ag-row-group-indent-size: calc(var(--ag-cell-widget-spacing) + var(--ag-icon-size));--ag-row-numbers-selected-color: #bbb;--ag-filter-tool-panel-group-indent: 16px;--ag-tab-min-width: 220px;--ag-chart-menu-panel-width: var(--ag-tab-min-width);--ag-menu-min-width: 181px;--ag-side-bar-panel-width: 200px;--ag-side-bar-panel-animation-duration: 0s;--ag-font-family: "Helvetica Neue", sans-serif;--ag-font-size: 14px;--ag-card-radius: var(--ag-border-radius);--ag-card-shadow: none;--ag-popup-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-find-match-color: var(--ag-foreground-color);--ag-find-active-match-color: var(--ag-foreground-color);--ag-find-match-background-color: #ffff00;--ag-find-active-match-background-color: #ffa500;--ag-cell-batch-edit-background-color: rgb(220 181 139 / 16%);--ag-cell-batch-edit-text-color: #422f00;--ag-row-batch-edit-background-color: var(--ag-cell-batch-edit-background-color);--ag-row-batch-edit-text-color: var(--ag-cell-batch-edit-text-color);--ag-filter-panel-apply-button-color: var(--ag-foreground-color);--ag-filter-panel-apply-button-background-color: var(--ag-background-color);--ag-column-panel-apply-button-color: var(--ag-foreground-color);--ag-column-panel-apply-button-background-color: var(--ag-background-color);--ag-filter-panel-card-subtle-color: var(--ag-foreground-color);--ag-filter-panel-card-subtle-hover-color: var(--ag-foreground-color);--ag-formula-token-1-color: #3269c6;--ag-formula-token-1-background-color: rgb(50 105 198 / 16%);--ag-formula-token-1-border-color: var(--ag-formula-token-1-color);--ag-formula-token-2-color: #c0343f;--ag-formula-token-2-background-color: rgb(192 52 63 / 16%);--ag-formula-token-2-border-color: var(--ag-formula-token-2-color);--ag-formula-token-3-color: #8156b8;--ag-formula-token-3-background-color: rgb(129 86 184 / 16%);--ag-formula-token-3-border-color: var(--ag-formula-token-3-color);--ag-formula-token-4-color: #007c1f;--ag-formula-token-4-background-color: rgb(0 124 31 / 16%);--ag-formula-token-4-border-color: var(--ag-formula-token-4-color);--ag-formula-token-5-color: #b03e85;--ag-formula-token-5-background-color: rgb(176 62 133 / 16%);--ag-formula-token-5-border-color: var(--ag-formula-token-5-color);--ag-formula-token-6-color: #b74900;--ag-formula-token-6-background-color: rgb(183 73 0 / 16%);--ag-formula-token-6-border-color: var(--ag-formula-token-6-color);--ag-formula-token-7-color: #247492;--ag-formula-token-7-background-color: rgb(36 116 146 / 16%);--ag-formula-token-7-border-color: var(--ag-formula-token-7-color);--ag-note-indicator-size: 8px;--ag-note-popup-background-color: var(--ag-menu-background-color);--ag-note-popup-text-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 75%);--ag-note-popup-input-text-color: var(--ag-input-text-color);--ag-note-popup-input-background-color: var(--ag-background-color);--ag-note-popup-border: var(--ag-dialog-border);--ag-note-popup-padding: calc(var(--ag-grid-size) / 2);--ag-calculated-column-highlight-color: #bbb;--ag-column-header-edit-highlight-color: #bbb;--ag-calculated-column-parent-suggestion-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);--ag-calculated-column-suggestion-list-width: 200px;--ag-calculated-column-reference-color: #3269c6;--ag-calculated-column-function-color: #007c1f;--ag-calculated-column-operator-color: var(--ag-foreground-color);--ag-calculated-column-error-underline-color: var(--ag-invalid-color)}.ag-root-wrapper,.ag-dnd-ghost{background-color:var(--ag-wrapper-background-color)}.ag-root-wrapper,.ag-popup{--ag-indentation-level: 0}.ag-styled-root{display:contents}.ag-toolbar .ag-react-container:not(.ag-react-wrapper-block){display:contents}[class*=ag-theme-]{-webkit-font-smoothing:antialiased;font-family:var(--ag-font-family);font-size:var(--ag-font-size);line-height:normal;color:var(--ag-foreground-color)}ag-grid,ag-grid-angular,ag-grid-ng2,ag-grid-polymer,ag-grid-aurelia{display:block}.ag-aria-description-container{z-index:9999;border:0px;clip:rect(1px,1px,1px,1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-drag-handle{cursor:grab}.ag-column-drop-wrapper{display:flex}.ag-column-drop-horizontal-half-width{display:inline-block;width:50%!important}.ag-unselectable{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}.ag-tab{position:relative}.ag-tab-guard{position:absolute;width:0;height:0;pointer-events:none;display:block}.ag-virtual-list-viewport .ag-tab-guard{position:sticky}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-select-agg-func-popup{position:absolute}.ag-input-wrapper,.ag-picker-field-wrapper{display:flex;flex:1 1 auto;align-items:center;line-height:normal;position:relative}.ag-shake-left-to-right{animation-direction:alternate;animation-duration:0.2s;animation-iteration-count:infinite;animation-name:ag-shake-left-to-right}@keyframes ag-shake-left-to-right{from{padding-left:6px;padding-right:2px}to{padding-left:2px;padding-right:6px}}.ag-root-wrapper{cursor:default;position:relative;display:flex;flex-direction:column;overflow:hidden;white-space:normal}.ag-root-wrapper.ag-layout-normal{height:100%}.ag-watermark{position:absolute;bottom:20px;right:25px;opacity:0.7;transition:opacity 1s ease-out 3s;color:#9b9b9b}.ag-watermark::before{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA5IiBoZWlnaHQ9IjM2IiB2aWV3Qm94PSIwIDAgMjA5IDM2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTkyLjk5MyAyMy42NTgyVjE1LjcxMTdIMTc5LjQ1MkwxNzEuNTA1IDIzLjY1ODJIMTkyLjk5M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTIwOC4yNSAzLjk1MDgxSDE5MS4yNzZMMTgzLjI2NiAxMS44OTczSDIwOC4yNVYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTYzLjYyMiAzMS42MDQ4TDE2Ny42OTEgMjcuNTM2MUgxODEuNDIzVjM1LjQ4MjdIMTYzLjYyMlYzMS42MDQ4WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTY2LjYxIDE5Ljc4MDNIMTc1LjM4M0wxODMuMzkzIDExLjgzMzdIMTY2LjYxVjE5Ljc4MDNaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNTcuMDExIDMxLjYwNDdIMTYzLjYyMkwxNzEuNTA1IDIzLjY1ODJIMTU3LjAxMVYzMS42MDQ3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTkxLjI3NiAzLjk1MDgxTDE4Ny4yMDggOC4wMTk0MUgxNjEuMjdWMC4wNzI4NzZIMTkxLjI3NlYzLjk1MDgxWiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMjAuODM5MSAzMC4yMDYxSDguMzc4OTJMNi4yMTc0NSAzNS41NDYySDAuNzUwMjQ0TDEyLjI1NjggOC41OTE1NUgxNy4wMjQ3TDI4LjUzMTMgMzUuNTQ2MkgyMy4wMDA1TDIwLjgzOTEgMzAuMjA2MVpNMTkuMTIyNyAyNS45NDY4TDE0LjYwOSAxNC45NDg4TDEwLjA5NTQgMjUuOTQ2OEgxOS4xMjI3WiIgZmlsbD0iIzlCOUI5QiIvPgo8cGF0aCBkPSJNMTA0LjQzNyAxOC41MDg5QzEwNi4wMjYgMTYuMTU2NyAxMTAuMDMxIDE1LjkwMjQgMTExLjY4NCAxNS45MDI0VjIwLjQ3OTZDMTA5LjY1IDIwLjQ3OTYgMTA3LjYxNSAyMC41NDMyIDEwNi40MDcgMjEuNDMzMkMxMDUuMiAyMi4zMjMyIDEwNC41NjQgMjMuNTMxMSAxMDQuNTY0IDI0Ljk5MzJWMzUuNTQ2Mkg5OS42MDUxVjE1LjkwMjRIMTA0LjM3M0wxMDQuNDM3IDE4LjUwODlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xMTkuMzc2IDE1LjkwMjRIMTE0LjQxOFYzNS41NDYySDExOS4zNzZWMTUuOTAyNFoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTExOS4zNzYgNy4xMjkzOUgxMTQuNDE4VjEyLjk3OEgxMTkuMzc2VjcuMTI5MzlaIiBmaWxsPSIjOUI5QjlCIi8+CjxwYXRoIGQ9Ik0xNDMuOTc5IDcuMTI5MzlWMzUuNTQ2MkgxMzkuMjExTDEzOS4wODQgMzIuNTU4M0MxMzguMzg0IDMzLjU3NTUgMTM3LjQ5NCAzNC40MDE5IDEzNi40MTQgMzUuMDM3NkMxMzUuMzMzIDM1LjYwOTggMTMzLjk5OCAzNS45Mjc2IDEzMi40NzIgMzUuOTI3NkMxMzEuMTM3IDM1LjkyNzYgMTI5Ljg2NiAzNS42NzMzIDEyOC43ODUgMzUuMjI4M0MxMjcuNjQxIDM0LjcxOTcgMTI2LjYyMyAzNC4wODQgMTI1Ljc5NyAzMy4xOTRDMTI0Ljk3MSAzMi4zMDQgMTI0LjI3MSAzMS4yMjMzIDEyMy44MjYgMzAuMDE1NEMxMjMuMzE4IDI4LjgwNzUgMTIzLjEyNyAyNy40MDkgMTIzLjEyNyAyNS44ODMyQzEyMy4xMjcgMjQuMzU3NSAxMjMuMzgxIDIyLjk1ODkgMTIzLjgyNiAyMS42ODc0QzEyNC4zMzUgMjAuNDE2IDEyNC45NzEgMTkuMzM1MyAxMjUuNzk3IDE4LjQ0NTNDMTI2LjYyMyAxNy41NTUyIDEyNy42NDEgMTYuODU2IDEyOC43ODUgMTYuMzQ3NEMxMjkuOTI5IDE1LjgzODggMTMxLjEzNyAxNS41ODQ1IDEzMi40NzIgMTUuNTg0NUMxMzMuOTk4IDE1LjU4NDUgMTM1LjI2OSAxNS44Mzg4IDEzNi4zNSAxNi40MTA5QzEzNy40MzEgMTYuOTgzMSAxMzguMzIxIDE3Ljc0NTkgMTM5LjAyIDE4LjgyNjdWNy4xOTI5NUgxNDMuOTc5VjcuMTI5MzlaTTEzMy41NTMgMzEuNjY4M0MxMzUuMjA2IDMxLjY2ODMgMTM2LjQ3NyAzMS4wOTYyIDEzNy40OTQgMzAuMDE1NEMxMzguNTExIDI4LjkzNDcgMTM5LjAyIDI3LjQ3MjUgMTM5LjAyIDI1LjY5MjVDMTM5LjAyIDIzLjkxMjUgMTM4LjUxMSAyMi41MTM5IDEzNy40OTQgMjEuMzY5NkMxMzYuNDc3IDIwLjI4ODggMTM1LjIwNiAxOS43MTY3IDEzMy41NTMgMTkuNzE2N0MxMzEuOTYzIDE5LjcxNjcgMTMwLjYyOCAyMC4yODg4IDEyOS42NzUgMjEuMzY5NkMxMjguNjU4IDIyLjQ1MDMgMTI4LjE0OSAyMy45MTI1IDEyOC4xNDkgMjUuNjkyNUMxMjguMTQ5IDI3LjQ3MjUgMTI4LjY1OCAyOC44NzExIDEyOS42NzUgMjkuOTUxOEMxMzAuNjkyIDMxLjA5NjEgMTMxLjk2MyAzMS42NjgzIDEzMy41NTMgMzEuNjY4M1oiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTU3LjIwMjQgMjAuMzUyNUg0NC45MzNWMjQuNjExOEg1MS45MjU5QzUxLjczNTIgMjYuNzczMyA1MC45MDg4IDI4LjQyNjEgNDkuNTEwMiAyOS43NjExQzQ4LjExMTYgMzEuMDMyNiA0Ni4zMzE1IDMxLjY2ODMgNDQuMDQyOSAzMS42NjgzQzQyLjc3MTUgMzEuNjY4MyA0MS41NjM2IDMxLjQxNCA0MC41NDY1IDMwLjk2OUMzOS40NjU3IDMwLjUyNCAzOC41NzU3IDI5Ljg4ODMgMzcuODEyOSAyOC45OTgzQzM3LjA1IDI4LjE3MTggMzYuNDc3OCAyNy4xNTQ3IDM2LjAzMjggMjUuOTQ2OEMzNS41ODc4IDI0LjczODkgMzUuMzk3MSAyMy40Njc1IDM1LjM5NzEgMjIuMDA1M0MzNS4zOTcxIDIwLjU0MzIgMzUuNTg3OCAxOS4yNzE3IDM2LjAzMjggMTguMDYzOEMzNi40MTQzIDE2Ljg1NiAzNy4wNSAxNS45MDI0IDM3LjgxMjkgMTUuMDEyNEMzOC41NzU3IDE0LjE4NTkgMzkuNDY1NyAxMy41NTAyIDQwLjU0NjUgMTMuMDQxNkM0MS42MjcyIDEyLjU5NjYgNDIuNzcxNSAxMi4zNDIzIDQ0LjEwNjUgMTIuMzQyM0M0Ni43NzY2IDEyLjM0MjMgNDguODEwOSAxMi45NzggNTAuMjA5NSAxNC4yNDk1TDUzLjUxNTIgMTAuOTQzOEM1MS4wMzU5IDkuMDM2NTkgNDcuODU3MyA4LjAxOTQxIDQ0LjEwNjUgOC4wMTk0MUM0Mi4wMDg2IDguMDE5NDEgNDAuMTAxNSA4LjMzNzI5IDM4LjM4NSA5LjAzNjU5QzM2LjY2ODYgOS43MzU4OCAzNS4yMDY0IDEwLjYyNTkgMzMuOTk4NSAxMS44MzM3QzMyLjc5MDYgMTMuMDQxNiAzMS44MzcxIDE0LjUwMzggMzEuMjAxNCAxNi4yMjAzQzMwLjU2NTYgMTcuOTM2NyAzMC4yNDc4IDE5Ljg0MzggMzAuMjQ3OCAyMS44NzgyQzMwLjI0NzggMjMuOTEyNSAzMC41NjU2IDI1LjgxOTcgMzEuMjY0OSAyNy41MzYxQzMxLjk2NDIgMjkuMjUyNiAzMi44NTQyIDMwLjcxNDcgMzQuMDYyMSAzMS45MjI2QzM1LjI3IDMzLjEzMDUgMzYuNzMyMSAzNC4wODQxIDM4LjQ0ODYgMzQuNzE5OEM0MC4xNjUgMzUuNDE5MSA0Mi4wNzIyIDM1LjczNyA0NC4xMDY1IDM1LjczN0M0Ni4xNDA4IDM1LjczNyA0Ny45ODQ0IDM1LjQxOTEgNDkuNjM3MyAzNC43MTk4QzUxLjI5MDIgMzQuMDIwNSA1Mi42ODg4IDMzLjEzMDUgNTMuODMzMSAzMS45MjI2QzU0Ljk3NzQgMzAuNzE0NyA1NS44Njc0IDI5LjI1MjYgNTYuNTAzMSAyNy41MzYxQzU3LjEzODggMjUuODE5NyA1Ny40NTY3IDIzLjkxMjUgNTcuNDU2NyAyMS44NzgyVjIxLjA1MTdDNTcuMjY2IDIwLjkyNDYgNTcuMjAyNCAyMC42MDY3IDU3LjIwMjQgMjAuMzUyNVoiIGZpbGw9IiM5QjlCOUIiLz4KPHBhdGggZD0iTTk1Ljk4MTUgMjAuMzUyNUg4My43MTIxVjI0LjYxMThIOTAuNzA1QzkwLjUxNDMgMjYuNzczMyA4OS42ODc5IDI4LjQyNjEgODguMjg5MyAyOS43NjExQzg2Ljg5MDcgMzEuMDMyNiA4NS4xMTA2IDMxLjY2ODMgODIuODIyIDMxLjY2ODNDODEuNTUwNiAzMS42NjgzIDgwLjM0MjcgMzEuNDE0IDc5LjMyNTYgMzAuOTY5Qzc4LjI0NDggMzAuNTI0IDc3LjM1NDggMjkuODg4MyA3Ni41OTIgMjguOTk4M0M3NS44MjkxIDI4LjE3MTggNzUuMjU3IDI3LjE1NDcgNzQuODExOSAyNS45NDY4Qzc0LjM2NjkgMjQuNzM4OSA3NC4xNzYyIDIzLjQ2NzUgNzQuMTc2MiAyMi4wMDUzQzc0LjE3NjIgMjAuNTQzMiA3NC4zNjY5IDE5LjI3MTcgNzQuODExOSAxOC4wNjM4Qzc1LjE5MzQgMTYuODU2IDc1LjgyOTEgMTUuOTAyNCA3Ni41OTIgMTUuMDEyNEM3Ny4zNTQ4IDE0LjE4NTkgNzguMjQ0OCAxMy41NTAyIDc5LjMyNTYgMTMuMDQxNkM4MC40MDYzIDEyLjU5NjYgODEuNTUwNiAxMi4zNDIzIDgyLjg4NTYgMTIuMzQyM0M4NS41NTU3IDEyLjM0MjMgODcuNTkgMTIuOTc4IDg4Ljk4ODYgMTQuMjQ5NUw5Mi4yOTQzIDEwLjk0MzhDODkuODE1IDkuMDM2NTkgODYuNjM2NCA4LjAxOTQxIDgyLjg4NTYgOC4wMTk0MUM4MC43ODc4IDguMDE5NDEgNzguODgwNiA4LjMzNzI5IDc3LjE2NDEgOS4wMzY1OUM3NS40NDc3IDkuNzM1ODggNzMuOTg1NSAxMC42MjU5IDcyLjc3NzYgMTEuODMzN0M3MS41Njk4IDEzLjA0MTYgNzAuNjE2MiAxNC41MDM4IDY5Ljk4MDUgMTYuMjIwM0M2OS4zNDQ3IDE3LjkzNjcgNjkuMDI2OSAxOS44NDM4IDY5LjAyNjkgMjEuODc4MkM2OS4wMjY5IDIzLjkxMjUgNjkuMzQ0NyAyNS44MTk3IDcwLjA0NCAyNy41MzYxQzcwLjc0MzMgMjkuMjUyNiA3MS42MzM0IDMwLjcxNDcgNzIuODQxMiAzMS45MjI2Qzc0LjA0OTEgMzMuMTMwNSA3NS41MTEyIDM0LjA4NDEgNzcuMjI3NyAzNC43MTk4Qzc4Ljk0NDEgMzUuNDE5MSA4MC44NTEzIDM1LjczNyA4Mi44ODU2IDM1LjczN0M4NC45MiAzNS43MzcgODYuNzYzNiAzNS40MTkxIDg4LjQxNjQgMzQuNzE5OEM5MC4wNjkzIDM0LjAyMDUgOTEuNDY3OSAzMy4xMzA1IDkyLjYxMjIgMzEuOTIyNkM5My43NTY1IDMwLjcxNDcgOTQuNjQ2NSAyOS4yNTI2IDk1LjI4MjIgMjcuNTM2MUM5NS45MTggMjUuODE5NyA5Ni4yMzU4IDIzLjkxMjUgOTYuMjM1OCAyMS44NzgyVjIxLjA1MTdDOTYuMDQ1MSAyMC45MjQ2IDk1Ljk4MTUgMjAuNjA2NyA5NS45ODE1IDIwLjM1MjVaIiBmaWxsPSIjOUI5QjlCIi8+Cjwvc3ZnPgo=);background-repeat:no-repeat;background-size:170px 40px;display:block;height:40px;width:170px}.ag-watermark-text{opacity:0.5;font-weight:bold;font-family:Impact,sans-serif;font-size:19px;padding-left:0.7rem}.ag-root-wrapper-body{display:flex;flex-direction:row}.ag-root-wrapper-body.ag-layout-normal{flex:1 1 auto;height:0;min-height:0}.ag-root{position:relative;display:flex;flex-direction:column}.ag-root.ag-layout-normal,.ag-root.ag-layout-auto-height{overflow:hidden;flex:1 1 auto;width:0}.ag-root.ag-layout-normal{height:100%}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport,.ag-virtual-list-viewport{position:relative;height:100%;min-width:0px;overflow:hidden;flex:1 1 auto}.ag-viewport{position:relative}.ag-grid-viewport{position:relative;overflow:auto;min-width:0;min-height:0;flex:1 1 auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-grid-viewport::-webkit-scrollbar{display:none!important}.ag-grid-viewport:where(.ag-pinned-columns-overflow){overflow-x:hidden}.ag-grid-scrollable-area{position:relative;min-width:100%;min-height:100%;display:flex;flex-direction:column}.ag-spanning-container{position:absolute;top:0;height:100%;pointer-events:none}.ag-grid-scrolling-container{display:block;min-height:100%;width:100%;isolation:isolate}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll;pointer-events:all}.ag-virtual-list-viewport{overflow:auto;width:100%}.ag-grid-scrolling-container,.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-virtual-list-container{position:relative}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-full-width-anchor{position:sticky;left:0;width:var(--ag-internal-grid-viewport-width, 100%);height:100%}.ag-virtual-list-container{overflow:hidden}.ag-grid-scrolling-rows{position:relative;display:flex;flex:1 1 auto;flex-direction:row!important;min-height:0}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{min-height:0;min-width:0;display:flex}.ag-body-horizontal-scroll.ag-scrollbar-invisible,.ag-body-vertical-scroll.ag-scrollbar-invisible{position:absolute;bottom:0;z-index:2}.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar{opacity:0;transition:opacity 400ms;visibility:hidden}.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,.ag-body-horizontal-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-scrolling,.ag-body-vertical-scroll.ag-scrollbar-invisible.ag-apple-scrollbar.ag-scrollbar-active{visibility:visible;opacity:1}.ag-body-horizontal-scroll{width:100%;flex:none}.ag-body-horizontal-scroll.ag-scrollbar-invisible{left:0;right:0}.ag-body-horizontal-scroll-end-spacer{flex:0 0 auto;min-width:0;overflow:scroll}.ag-body-vertical-scroll{position:absolute;z-index:2;flex-direction:column;top:0;pointer-events:none}.ag-ltr .ag-body-vertical-scroll{right:0}.ag-rtl .ag-body-vertical-scroll{left:0}.ag-body-vertical-scroll-start-spacer{border-bottom:var(--ag-header-row-border);opacity:0;flex:none}.ag-ltr .ag-has-right-pinned-cols .ag-body-vertical-scroll-start-spacer,.ag-rtl .ag-has-left-pinned-cols .ag-body-vertical-scroll-start-spacer{pointer-events:all;opacity:1;background-color:var(--ag-background-color);background-image:linear-gradient(0deg,var(--ag-header-background-color),var(--ag-header-background-color))}.ag-header-cell-sortable .ag-header-cell-label,.ag-header-group-cell-selectable .ag-header-cell-comp-wrapper{cursor:pointer}.ag-header-row{position:absolute}.ag-header-row:not(.ag-header-row-column-group){overflow:visible}.ag-grid-pinned-top-rows-container.ag-header-allow-overflow .ag-header-row{overflow:visible}.ag-header-cell{display:inline-flex;align-items:center;position:absolute;height:100%;overflow:hidden}.ag-header-cell.ag-header-active .ag-header-cell-menu-button,.ag-header-cell-filter-button{opacity:1}.ag-header-cell-menu-button:not(.ag-header-menu-always-show){transition:opacity 0.2s;opacity:0}.ag-header-group-cell-label,.ag-header-cell-label{display:flex;flex:1 1 auto;align-self:stretch;align-items:center;overflow:hidden}.ag-header-cell-label{text-overflow:ellipsis}.ag-header-group-cell-label.ag-sticky-label{position:sticky;flex:none;max-width:100%;overflow:visible}.ag-header-group-text{overflow:hidden;text-overflow:ellipsis}.ag-header-cell-text{overflow:hidden;text-overflow:ellipsis;word-break:break-word}.ag-header-group-cell .ag-header-cell-comp-wrapper{display:flex}.ag-header-cell:not(.ag-header-cell-auto-height) .ag-header-cell-comp-wrapper{height:100%;display:flex;align-items:center}.ag-header-cell-comp-wrapper{width:100%}.ag-header-cell-wrap-text .ag-header-cell-comp-wrapper{white-space:normal}.ag-header-cell-comp-wrapper-limited-height>div{overflow:hidden}.ag-right-aligned-header .ag-header-cell-label{flex-direction:row-reverse}.ag-header-cell-resize{position:absolute;z-index:2;height:100%;width:8px;top:0;cursor:col-resize}.ag-ltr .ag-header-cell-resize{right:-3px}.ag-rtl .ag-header-cell-resize{left:-3px}.ag-grid-pinned-left-cells .ag-header-cell-resize{right:-3px}.ag-grid-pinned-right-cells .ag-header-cell-resize{left:-3px}.ag-header-select-all{display:flex}.ag-header-cell-menu-button,.ag-header-cell-filter-button,.ag-side-button-button,.ag-panel-title-bar-button,.ag-floating-filter-button-button{cursor:pointer}.ag-column-moving .ag-cell{transition:left 0.2s,right 0.2s}.ag-column-moving .ag-header-cell{transition:left 0.2s,right 0.2s}.ag-column-moving .ag-spanned-cell-wrapper{transition:left 0.2s,right 0.2s}.ag-column-moving .ag-header-group-cell{transition:left 0.2s,right 0.2s,width 0.2s}.ag-delay-render .ag-cell{visibility:hidden}.ag-delay-render .ag-row{visibility:hidden}.ag-delay-render .ag-spanned-cell-wrapper{visibility:hidden}.ag-delay-render .ag-header-cell{visibility:hidden}.ag-delay-render .ag-header-group-cell{visibility:hidden}.ag-column-panel{display:flex;flex-direction:column;overflow:hidden;flex:1 1 auto}.ag-column-select{position:relative;display:flex;flex-direction:column;overflow:hidden;flex:3 1 0px}.ag-column-select-header{position:relative;display:flex;flex:none}.ag-column-select-header-icon{position:relative}.ag-column-select-header-filter-wrapper{flex:1 1 auto}.ag-column-select-header-filter{width:100%}.ag-column-select-list{flex:1 1 0px;overflow:hidden}.ag-column-drop{position:relative;display:inline-flex;align-items:center;overflow:auto;width:100%}.ag-column-drop-list{display:flex;align-items:center}.ag-column-drop-cell{position:relative;display:flex;align-items:center}.ag-column-drop-cell-text{overflow:hidden;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap}.ag-column-drop-vertical{display:flex;flex-direction:column;overflow:hidden;align-items:stretch;flex:1 1 0px}.ag-column-drop-vertical-title-bar{display:flex;align-items:center;flex:none}.ag-column-drop-vertical-list{position:relative;align-items:stretch;flex-grow:1;flex-direction:column;overflow-x:auto}.ag-column-drop-vertical-list>*{flex:none}.ag-column-drop-empty .ag-column-drop-vertical-list{overflow:hidden}.ag-column-drop-vertical-empty-message{display:block}.ag-column-drop.ag-column-drop-horizontal{white-space:nowrap;overflow:auto hidden;scrollbar-width:thin}.ag-column-drop-cell-button{cursor:pointer}.ag-filter-toolpanel{flex:1 1 0px;min-width:0}.ag-filter-toolpanel-header{position:relative}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{display:flex;align-items:center}.ag-filter-toolpanel-header>*,.ag-filter-toolpanel-search>*{display:flex;align-items:center}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden}.ag-row-animation .ag-row{transition:transform 0.4s,top 0.4s,opacity 0.2s}.ag-row-animation .ag-row.ag-after-created{transition:transform 0.4s,top 0.4s,height 0.4s,opacity 0.2s}.ag-row-animation.ag-prevent-animation .ag-row,.ag-row-animation.ag-prevent-animation .ag-row.ag-after-created{transition:none!important}.ag-row-no-animation .ag-row{transition:none}.ag-row{white-space:nowrap;width:100%}.ag-row-loading{display:flex;align-items:center}.ag-row:not(.ag-full-width-row),.ag-row.ag-embedded-full-width-row,.ag-header-row,.ag-spanned-row{display:flex;width:100%}.ag-row:not(.ag-full-width-row)::after,.ag-header-row::after,.ag-row.ag-embedded-full-width-row::after,.ag-spanned-row::after{content:"";flex:1 0 0px;align-self:stretch}.ag-row:not(.ag-header-row,.ag-full-width-row)::after,.ag-row.ag-embedded-full-width-row::after{background-color:var(--ag-data-background-color)}.ag-header-row::after{background-color:var(--ag-header-background-color)}.ag-header{position:absolute;top:0;left:0;right:0;border-bottom:var(--ag-borders-critical) var(--ag-border-color);color:var(--ag-header-foreground-color);z-index:1}.ag-grid-pinned-left-cells,.ag-grid-scrolling-cells,.ag-grid-pinned-right-cells{position:relative;height:100%;white-space:nowrap}.ag-grid-scrolling-cells{flex:0 0 auto;z-index:0}.ag-row.ag-embedded-full-width-row>.ag-grid-scrolling-cells{flex:1 0 auto;margin-right:var(--ag-internal-pinned-right-sticky-offset, 0px)}.ag-grid-pinned-left-cells,.ag-grid-pinned-right-cells{position:sticky;z-index:2;overflow:hidden;flex:0 0 auto}.ag-grid-pinned-left-cells{left:var(--ag-internal-pinned-left-sticky-offset, 0px)}.ag-grid-pinned-right-cells{right:var(--ag-internal-pinned-right-sticky-offset, 0px)}.ag-row:not(.ag-full-width-row)>.ag-grid-pinned-right-cells,.ag-header-row>.ag-grid-pinned-right-cells,.ag-row.ag-embedded-full-width-row>.ag-grid-pinned-right-cells,.ag-spanned-row>.ag-grid-pinned-right-cells{order:1}.ag-rtl .ag-row:not(.ag-full-width-row)>.ag-grid-scrolling-cells,.ag-rtl .ag-header-row>.ag-grid-scrolling-cells,.ag-rtl .ag-row.ag-embedded-full-width-row>.ag-grid-scrolling-cells,.ag-rtl .ag-spanned-row>.ag-grid-scrolling-cells{order:1}.ag-rtl .ag-row .ag-grid-scrolling-cells,.ag-rtl .ag-spanned-row .ag-grid-scrolling-cells{margin-left:var(--ag-internal-pinned-left-sticky-offset, 0px)}.ag-spanning-container .ag-grid-scrolling-cells{z-index:1}.ag-spanning-container .ag-grid-pinned-left-cells,.ag-spanning-container .ag-grid-pinned-right-cells{z-index:3;overflow:visible}.ag-spanning-container .ag-cell{pointer-events:auto}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:4}.ag-stub-cell{display:flex;align-items:center}.ag-cell{display:inline-block;position:absolute;white-space:nowrap;height:100%}.ag-cell-value{flex:1 1 auto}.ag-cell-value:not(.ag-allow-overflow),.ag-group-value{overflow:hidden;text-overflow:ellipsis}:where(.ag-selectable) .ag-cell-value:not(.ag-allow-overflow),:where(.ag-selectable) .ag-group-value{overflow:clip;min-width:0}.ag-cell-wrapper{display:flex;align-items:center}.ag-cell-wrapper.ag-row-group{align-items:flex-start}.ag-cell-wrap-text{white-space:normal;word-break:break-word}.ag-cell-wrap-text:not(.ag-cell-auto-height) .ag-cell-wrapper{align-items:normal;height:100%}.ag-cell-wrap-text:not(.ag-cell-auto-height) .ag-cell-wrapper .ag-cell-value{height:100%}.ag-sparkline-wrapper{position:absolute;top:0;height:100%;line-height:initial;inset-inline-start:var(--ag-internal-sparkline-inset, 0)}.ag-full-width-row .ag-cell-wrapper.ag-row-group{height:100%;align-items:center}.ag-cell-inline-editing{z-index:1}.ag-cell-inline-editing .ag-cell-wrapper,.ag-cell-inline-editing .ag-cell-edit-wrapper,.ag-cell-inline-editing .ag-cell-editor,.ag-cell-inline-editing .ag-cell-editor .ag-wrapper,.ag-cell-inline-editing .ag-cell-editor.ag-cell-editor.ag-cell-editor input{height:100%;min-height:100%;width:100%;line-height:normal}.ag-row.ag-row-editing-invalid .ag-cell-inline-editing{opacity:0.8}.ag-cell .ag-icon{display:inline-block;vertical-align:middle}.ag-set-filter-item{display:flex;align-items:center;height:100%}.ag-set-filter-item-checkbox{display:flex;width:100%;height:100%}.ag-set-filter-group-icons{display:block}.ag-set-filter-group-icons>*{cursor:pointer}.ag-filter-body-wrapper{display:flex;flex-direction:column}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{position:relative;display:flex;flex:1 1 auto;height:100%}.ag-floating-filter-full-body{display:flex;flex:1 1 auto;height:100%;width:100%;align-items:center;overflow:hidden}.ag-floating-filter-full-body>div{flex:1 1 auto}.ag-floating-filter-input{align-items:center;display:flex;width:100%}.ag-floating-filter-input>*{flex:1 1 auto}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input input[disabled]{pointer-events:none}.ag-dnd-ghost{display:inline-flex;align-items:center;cursor:move;white-space:nowrap}.ag-overlay{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}.ag-overlay-panel{display:flex;height:100%;width:100%}.ag-overlay-wrapper{display:flex;flex:none;width:100%;height:100%;align-items:center;justify-content:center;text-align:center}.ag-overlay-no-rows-wrapper,.ag-overlay-no-matching-rows-wrapper{align-items:safe center}.ag-overlay-loading-wrapper,.ag-overlay-exporting-wrapper,.ag-overlay-modal-wrapper,.ag-overlay-file-input-wrapper{pointer-events:all}.ag-overlay-error-panel{--ag-internal-overlay-mono: ui-monospace, sfmono-regular, menlo, consolas, "Liberation Mono", monospace;pointer-events:all;display:flex;flex-direction:column;text-align:start;max-width:640px;max-height:calc(100% - var(--ag-grid-size) * 4);margin:calc(var(--ag-grid-size) * 2);overflow:hidden;color:var(--ag-foreground-color);background:var(--ag-background-color);border:solid 2px color-mix(in srgb,var(--ag-invalid-color) 60%,var(--ag-border-color));border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow)}.ag-overlay-error-header{display:flex;flex:none;align-items:center;gap:calc(var(--ag-grid-size) * 0.5);padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 1.5);color:var(--ag-invalid-color);border-bottom:solid 1px var(--ag-border-color)}.ag-overlay-error-title{flex:1;font-weight:700}.ag-overlay-error-button{cursor:pointer;border:solid 1px var(--ag-border-color);background:var(--ag-background-color);color:var(--ag-foreground-color);border-radius:var(--ag-border-radius);padding:0 calc(var(--ag-grid-size) * 0.75);font:inherit;display:flex;align-items:center;justify-content:center;height:calc(var(--ag-grid-size) * 3.5)}.ag-overlay-error-button:hover{background:var(--ag-row-hover-color)}.ag-overlay-error-dismiss{border:none;background:transparent;padding:0;width:calc(var(--ag-grid-size) * 3.5)}.ag-overlay-error-body{display:flex;flex-direction:column;gap:calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 1.5);flex:1 1 auto;min-height:0;overflow:auto}.ag-overlay-error-section{display:flex;flex-direction:column;gap:calc(var(--ag-grid-size) * 2)}.ag-overlay-error-section-header{margin:0;font-weight:700}.ag-overlay-error-divider{margin:0;border:none;border-top:solid 1px var(--ag-border-color)}.ag-overlay-error-item{display:flex;flex-direction:column;gap:var(--ag-grid-size);border-inline-start:solid 3px var(--ag-border-color);padding-inline-start:var(--ag-grid-size)}.ag-overlay-error-item-error{border-inline-start-color:var(--ag-invalid-color)}.ag-overlay-error-item-warning{border-inline-start-color:#d98300}.ag-overlay-error-item-deprecation{border-inline-start-color:var(--ag-subtle-text-color)}.ag-overlay-error-message,.ag-overlay-error-code{margin:0;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.ag-overlay-error-unattributed{align-self:start;border-radius:500px;padding:calc(var(--ag-grid-size) * 0.25) var(--ag-grid-size);font-size:0.85em;font-weight:600;background:color-mix(in srgb,var(--ag-border-color) 35%,transparent);color:var(--ag-subtle-text-color)}.ag-overlay-error-inline-code{font-family:var(--ag-internal-overlay-mono);background:color-mix(in srgb,var(--ag-border-color) 35%,transparent);border-radius:var(--ag-border-radius);padding:0 0.3em}.ag-overlay-error-code{font-family:var(--ag-internal-overlay-mono);font-size:0.85em;background:var(--ag-header-background-color);border:solid 1px var(--ag-border-color);border-radius:var(--ag-border-radius);padding:var(--ag-grid-size);max-height:50vh;overflow:auto}.ag-overlay-error-links{display:flex;flex-wrap:wrap;gap:calc(var(--ag-grid-size) * 1.5)}.ag-overlay-error-versions{flex:none;padding:calc(var(--ag-grid-size) * 0.75) calc(var(--ag-grid-size) * 1.5);border-top:solid 1px var(--ag-border-color);font-size:0.85em;opacity:0.7}.ag-overlay-file-input-center{border:solid 1px var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);display:flex;flex-direction:column;align-items:center;gap:calc(var(--ag-grid-size) * 2);max-width:420px;padding:calc(var(--ag-grid-size) * 2)}.ag-file-input-error-banner{background:color-mix(in srgb,var(--ag-invalid-color) 10%,var(--ag-background-color));color:var(--ag-invalid-color);border-radius:var(--ag-border-radius);padding:calc(var(--ag-grid-size) * 0.75) calc(var(--ag-grid-size) * 2);width:100%;text-align:center;font-size:0.9em}.ag-file-input-drop-zone{border:dashed 2px var(--ag-border-color);border-radius:var(--ag-border-radius);padding:calc(var(--ag-grid-size) * 4);display:flex;flex-direction:column;align-items:center;gap:var(--ag-grid-size);width:100%}.ag-file-input-drop-zone-active{border-color:var(--ag-input-focus-border-color);background:color-mix(in srgb,var(--ag-input-focus-border-color) 10%,var(--ag-background-color))}.ag-file-input-processing{display:flex;align-items:center;gap:calc(var(--ag-grid-size) * 0.75);padding:calc(var(--ag-grid-size) * 4)}.ag-ltr .ag-file-input-processing .ag-loading-icon{padding-right:0}.ag-rtl .ag-file-input-processing .ag-loading-icon{padding-left:0}.ag-file-input-text-row{display:flex;align-items:center;gap:calc(var(--ag-grid-size) * 0.75)}.ag-file-input-text{font-weight:600}.ag-file-input-browse{cursor:pointer;border:solid 1px var(--ag-border-color);background:transparent;color:var(--ag-text-color);border-radius:var(--ag-border-radius);padding:calc(var(--ag-grid-size) * 0.5) calc(var(--ag-grid-size) * 2);font:inherit}.ag-popup-child{z-index:5;top:0;max-width:min(100%,100vw - 30px)}.ag-popup-editor{position:absolute;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-large-text-input{display:block}.ag-virtual-list-item{position:absolute;width:100%}:where(.ag-virtual-list-grow-to-content) .ag-virtual-list-item{min-width:100%;width:max-content}.ag-grid-pinned-top-rows,.ag-grid-pinned-bottom-rows{width:100%;position:sticky;z-index:2;background-color:var(--ag-data-background-color);border-bottom:var(--ag-borders-critical) var(--ag-border-color)}.ag-grid-pinned-top-rows{top:0;white-space:nowrap}.ag-grid-pinned-bottom-rows{bottom:0;border-bottom:none;white-space:nowrap;box-sizing:content-box!important}.ag-grid-pinned-bottom-rows .ag-grid-pinned-left-cells,.ag-grid-pinned-bottom-rows .ag-grid-scrolling-cells,.ag-grid-pinned-bottom-rows .ag-grid-pinned-right-cells{box-sizing:border-box}.ag-grid-pinned-top-rows-container,.ag-grid-pinned-bottom-rows-container,.ag-grid-sticky-top-rows-container,.ag-grid-sticky-bottom-rows-container{background-color:var(--ag-data-background-color);position:absolute;width:100%;white-space:nowrap;overflow:visible}.ag-grid-pinned-top-rows-container{display:flex;z-index:1}.ag-grid-pinned-bottom-rows-container{display:flex}.ag-extra-rows-container{position:absolute;width:100%}.ag-dialog,.ag-panel{display:flex;flex-direction:column;position:relative;overflow:hidden}.ag-panel-title-bar{display:flex;flex:none;align-items:center;cursor:default}.ag-panel-title-bar-title{flex:1 1 auto}.ag-panel-title-bar-buttons{display:flex}.ag-panel-title-bar-button{cursor:pointer}.ag-panel-content-wrapper{display:flex;flex:1 1 auto;position:relative;overflow:hidden}.ag-dialog{position:absolute}.ag-resizer{position:absolute;pointer-events:none;z-index:1;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-resizer.ag-resizer-topLeft{top:0;left:0;height:5px;width:5px;cursor:nwse-resize}.ag-resizer.ag-resizer-top{top:0;left:5px;right:5px;height:5px;cursor:ns-resize}.ag-resizer.ag-resizer-topRight{top:0;right:0;height:5px;width:5px;cursor:nesw-resize}.ag-resizer.ag-resizer-right{top:5px;right:0;bottom:5px;width:5px;cursor:ew-resize}.ag-resizer.ag-resizer-bottomRight{bottom:0;right:0;height:5px;width:5px;cursor:nwse-resize}.ag-resizer.ag-resizer-bottom{bottom:0;left:5px;right:5px;height:5px;cursor:ns-resize}.ag-resizer.ag-resizer-bottomLeft{bottom:0;left:0;height:5px;width:5px;cursor:nesw-resize}.ag-resizer.ag-resizer-left{left:0;top:5px;bottom:5px;width:5px;cursor:ew-resize}.ag-tooltip{position:absolute;z-index:99999;overflow-wrap:break-word}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip:not(.ag-tooltip-interactive),.ag-tooltip-custom:not(.ag-tooltip-interactive){pointer-events:none}.ag-value-slide-out{margin-right:5px;opacity:1;transition:opacity 3s,margin-right 3s;transition-timing-function:linear}.ag-value-slide-out-end{margin-right:10px;opacity:0}.ag-opacity-zero{opacity:0!important}.ag-menu{max-height:100%;overflow-y:auto;position:absolute;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-menu-column-select-wrapper{height:265px;overflow:auto}.ag-menu-column-select-wrapper .ag-column-select{height:100%}.ag-dialog .ag-panel-content-wrapper .ag-column-select{user-select:none}.ag-menu-list{display:table;width:100%}.ag-menu-option,.ag-menu-separator{display:table-row}.ag-menu-option-part,.ag-menu-separator-part{display:table-cell;vertical-align:middle}.ag-menu-option-text{white-space:nowrap}.ag-menu-option-custom{display:contents}.ag-compact-menu-option{width:100%;display:flex;flex-wrap:nowrap}.ag-compact-menu-option-text{white-space:nowrap;flex:1 1 auto}.ag-context-menu-loading-icon{position:absolute;pointer-events:none}.ag-pill-container{display:flex;gap:0.25rem;flex-wrap:nowrap}.ag-pill{display:flex;white-space:nowrap;padding:0 0.25rem;align-items:center}.ag-pill .ag-pill-button{border:none;padding:0}.ag-rich-select{cursor:default;outline:none;height:100%}.ag-rich-select-value{display:flex;align-items:center;height:100%}.ag-rich-select-value .ag-picker-field-display{overflow:hidden;text-overflow:ellipsis}.ag-rich-select-value .ag-picker-field-display.ag-display-as-placeholder{opacity:0.5}.ag-rich-select-list{position:relative}.ag-rich-select-list .ag-rich-select-loading{display:flex;min-height:2rem}.ag-rich-select-list .ag-rich-select-loading .ag-loading-text{overflow:hidden;text-overflow:ellipsis}.ag-rich-select-no-matches{justify-content:center}.ag-rich-select-row{display:flex;flex:1 1 auto;align-items:center;white-space:nowrap;overflow:hidden;height:100%}.ag-rich-select-field-input{flex:1 1 auto}.ag-rich-select-field-input .ag-input-field-input{padding-block:0!important;padding-inline-end:0!important;border:none!important;box-shadow:none!important;text-overflow:ellipsis}.ag-rich-select-field-input .ag-input-field-input::placeholder{opacity:0.8}.ag-rich-select-field-input:not(.ag-input-field-search) .ag-input-field-input{padding-inline-start:0!important}.ag-rich-select-typing-multi .ag-picker-field-display{flex:0 1 auto;min-width:0;max-width:100%}.ag-rich-select-typing-multi .ag-rich-select-pill-display{display:flex;flex:0 1 auto;min-width:0;max-width:100%;align-items:center;overflow:hidden}.ag-rich-select-typing-multi .ag-rich-select-pill-display .ag-pill-container{flex:0 1 auto;min-width:0;max-width:100%;overflow:hidden}.ag-rich-select-typing-multi .ag-rich-select-field-input{flex:0 0 auto;min-width:0;max-width:100%}.ag-rich-select-typing-multi .ag-rich-select-field-input .ag-input-wrapper{flex:0 0 auto;max-width:100%}.ag-rich-select-typing-multi .ag-rich-select-field-input .ag-input-field-input{width:auto;min-width:1ch;max-width:100%}.ag-autocomplete{align-items:center;display:flex}.ag-autocomplete>*{flex:1 1 auto}.ag-autocomplete-list-popup{position:absolute;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-autocomplete-list{position:relative}.ag-autocomplete-virtual-list-item{display:flex}.ag-autocomplete-row{display:flex;flex:1 1 auto;align-items:center;overflow:hidden}.ag-autocomplete-row-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-paging-panel{display:flex;align-items:center}.ag-paging-panel-content{display:flex;flex:0 0 auto;min-width:100%;align-items:center;justify-content:flex-end}.ag-paging-page-summary-panel{display:flex;align-items:center}.ag-paging-button{position:relative}.ag-disabled .ag-paging-page-summary-panel{pointer-events:none}.ag-tool-panel-wrapper{overflow:hidden;cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-column-select-column,.ag-column-select-column-group,.ag-select-agg-func-item{position:relative;align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;height:100%}.ag-column-select-column>*,.ag-column-select-column-group>*,.ag-select-agg-func-item>*{flex:none}.ag-select-agg-func-item,.ag-column-select-column-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-column-select-checkbox{display:flex}.ag-tool-panel-horizontal-resize{cursor:ew-resize;height:100%;position:absolute;top:0;width:5px;z-index:1}.ag-ltr .ag-side-bar-left .ag-tool-panel-horizontal-resize{right:-3px}.ag-rtl .ag-side-bar-left .ag-tool-panel-horizontal-resize{left:-3px}.ag-ltr .ag-side-bar-right .ag-tool-panel-horizontal-resize{left:-3px}.ag-rtl .ag-side-bar-right .ag-tool-panel-horizontal-resize{right:-3px}.ag-details-row{width:100%}.ag-details-row-fixed-height{height:100%}.ag-details-grid{width:100%}.ag-details-grid-fixed-height{height:100%}.ag-header-group-cell{display:flex;align-items:center;height:100%;position:absolute;contain:paint}.ag-header-group-cell-no-group.ag-header-span-height{display:none}.ag-cell-label-container{display:flex;justify-content:space-between;flex-direction:row-reverse;align-items:center;height:100%;width:100%}.ag-header-group-cell-label,.ag-cell-label-container{padding:5px 0px}.ag-right-aligned-header .ag-cell-label-container{flex-direction:row}.ag-right-aligned-header .ag-header-cell-text{text-align:end}.ag-side-bar{display:flex;flex-direction:row-reverse}.ag-side-bar-left{order:-1;flex-direction:row}.ag-side-button-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;white-space:nowrap;outline:none;cursor:pointer}.ag-side-button-label{writing-mode:vertical-lr}.ag-status-bar{display:flex;justify-content:space-between;overflow:hidden}.ag-status-panel,.ag-status-panel.ag-status-panel-aggregations .ag-status-name-value{display:inline-flex}.ag-status-name-value{white-space:nowrap}.ag-status-bar-left{display:inline-flex}.ag-status-bar-center{display:inline-flex}.ag-status-bar-right{display:inline-flex}.ag-row-number-cell{width:100%;white-space:nowrap;overflow:hidden;user-select:none}.ag-ltr .ag-row-number-cell{text-align:right}.ag-rtl .ag-row-number-cell{text-align:left}.ag-row-numbers-resizer{position:absolute;bottom:-2px;left:0;height:4px;width:100%;cursor:row-resize}.ag-grid-pinned-bottom-rows .ag-row-numbers-resizer{bottom:unset;top:-2px}.ag-icon{display:block;speak:never}.ag-group{position:relative;width:100%}.ag-group-title-bar{display:flex;align-items:center}.ag-group-title{display:inline;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ag-group-title-bar .ag-group-title{cursor:default}.ag-group-toolbar{display:flex;align-items:center}.ag-group-container{display:flex}.ag-disabled .ag-group-container{pointer-events:none}.ag-group-container-horizontal{flex-direction:row;flex-wrap:wrap}.ag-group-container-vertical{flex-direction:column}.ag-column-group-icons{display:block}.ag-column-group-icons>*{cursor:pointer}.ag-group-item-alignment-stretch .ag-group-item{align-items:stretch}.ag-group-item-alignment-start .ag-group-item{align-items:flex-start}.ag-group-item-alignment-end .ag-group-item{align-items:flex-end}.ag-field-set{display:flex;align-items:center}.ag-field-set-wrapper{display:flex}.ag-field-set-wrapper-horizontal{flex-direction:row}.ag-field-set-wrapper-vertical{flex-direction:column}.ag-toggle-button-icon{transition:right 0.3s;position:absolute;top:-1px}.ag-input-field,.ag-select{display:flex;flex-direction:row;align-items:center}.ag-input-field-input{flex:1 1 auto}.ag-floating-filter-input .ag-input-field-input[type=date],.ag-floating-filter-input .ag-input-field-input[type=datetime-local]{width:1px}.ag-range-field{display:flex;align-items:center}.ag-angle-select{display:flex;align-items:center}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{display:block;position:relative}.ag-angle-select-child-circle{position:absolute}.ag-slider-wrapper{display:flex}.ag-slider-wrapper .ag-input-field{flex:1 1 auto}.ag-picker-field-display{flex:1 1 auto}.ag-picker-field{display:flex;align-items:center}.ag-picker-field-icon{display:flex;border:0;padding:0;margin:0;cursor:pointer}.ag-picker-field-wrapper{overflow:hidden}.ag-label-align-right .ag-label{order:1}.ag-label-align-right>*{flex:none}.ag-label-align-top{flex-direction:column;align-items:flex-start}.ag-label-align-top>*{align-self:stretch}.ag-label-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.ag-color-panel{width:100%;display:flex;flex-direction:column;text-align:center}.ag-spectrum-color{flex:1 1 auto;position:relative;overflow:visible;cursor:default}.ag-spectrum-fill{position:absolute;top:0;left:0;right:0;bottom:0}.ag-spectrum-val{cursor:pointer}.ag-spectrum-dragger{position:absolute;pointer-events:none;cursor:pointer}.ag-spectrum-hue,.ag-spectrum-alpha{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(to left,#ff0000 3%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%);width:100%;height:100%}.ag-spectrum-alpha{--ag-spectrum-alpha-background-checked: url("data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%224%22 height=%224%22><rect x=%220%22 y=%220%22 width=%224%22 height=%224%22 fill=%22%23fff%22/><path d=%22M0 0H2V4H4V2H0Z%22 fill=%22%23b2b2b2%22/></svg>")}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),var(--ag-spectrum-alpha-background-checked) top left/4px 4px;width:100%;height:100%}.ag-spectrum-tool{cursor:pointer;position:relative}.ag-spectrum-slider{position:absolute;pointer-events:none}.ag-spectrum-alpha .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) white}.ag-recent-colors{display:flex}.ag-recent-color{cursor:pointer}.ag-pill-select{display:flex;flex-direction:column}.ag-pill-select .ag-column-drop{flex:unset}.ag-ltr{direction:ltr}.ag-ltr .ag-grid-scrolling-rows,.ag-ltr .ag-grid-pinned-top-rows,.ag-ltr .ag-grid-pinned-bottom-rows,.ag-ltr .ag-grid-pinned-top-rows-container,.ag-ltr .ag-grid-pinned-bottom-rows-container,.ag-ltr .ag-grid-sticky-top-rows-container,.ag-ltr .ag-grid-sticky-bottom-rows-container{flex-direction:row}.ag-ltr .ag-row:where(:not(.ag-full-width-row)),.ag-ltr .ag-row:where(.ag-embedded-full-width-row),.ag-ltr .ag-header-row,.ag-ltr .ag-spanned-row{flex-direction:row}.ag-rtl{direction:rtl}.ag-rtl .ag-grid-scrolling-rows,.ag-rtl .ag-grid-pinned-top-rows,.ag-rtl .ag-grid-pinned-bottom-rows,.ag-rtl .ag-grid-pinned-top-rows-container,.ag-rtl .ag-grid-pinned-bottom-rows-container,.ag-rtl .ag-grid-sticky-top-rows-container,.ag-rtl .ag-grid-sticky-bottom-rows-container{flex-direction:row-reverse}.ag-rtl .ag-row:not(.ag-full-width-row),.ag-rtl .ag-row.ag-embedded-full-width-row,.ag-rtl .ag-header-row,.ag-rtl .ag-spanned-row{flex-direction:row-reverse}.ag-rtl .ag-icon-contracted,.ag-rtl .ag-icon-expanded,.ag-rtl .ag-icon-tree-closed{display:block;transform:rotate(180deg)}.ag-measurement-container{width:0;overflow:hidden;visibility:hidden;--ag-header-row-border: var(--ag-borders-critical) var(--ag-border-color);--ag-pinned-row-border: var(--ag-borders-critical) var(--ag-border-color);--ag-row-border: var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-measurement-container div{position:absolute}.ag-measurement-element-border::before{content:"";display:block;border-left:var(--ag-internal-measurement-border)}.ag-layout-print.ag-grid-scrolling-rows{display:block;height:unset}.ag-layout-print.ag-root-wrapper{display:inline-block}.ag-layout-print .ag-body-vertical-scroll{display:none}.ag-layout-print .ag-body-horizontal-scroll{display:none}.ag-layout-print .ag-header-row .ag-grid-pinned-left-cells,.ag-layout-print .ag-header-row .ag-grid-pinned-right-cells{display:none}.ag-layout-print .ag-grid-scrollable-area,.ag-layout-print .ag-grid-scrolling-container,.ag-layout-print .ag-header-row,.ag-layout-print .ag-full-width-anchor{width:auto!important}@media print{.ag-root-wrapper.ag-layout-print{display:table;container-type:normal}.ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,.ag-root-wrapper.ag-layout-print .ag-root,.ag-root-wrapper.ag-layout-print .ag-grid-scrolling-container,.ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,.ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport{height:auto!important;overflow:hidden!important;display:block!important}.ag-root-wrapper.ag-layout-print .ag-row,.ag-root-wrapper.ag-layout-print .ag-cell{break-inside:avoid}}[class^=ag-],[class^=ag-]:focus,[class^=ag-]:after,[class^=ag-]:before{box-sizing:border-box;outline:none}[class^=ag-]::-ms-clear{display:none}.ag-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);text-align:center}.ag-checkbox .ag-input-wrapper,.ag-radio-button .ag-input-wrapper{overflow:visible}.ag-range-field .ag-input-wrapper{height:100%}.ag-toggle-button{flex:none;width:unset;min-width:unset}.ag-button{border-radius:0px;color:var(--ag-foreground-color)}.ag-button:hover{background-color:transparent}.ag-ltr .ag-label-align-right .ag-label{margin-left:var(--ag-grid-size)}.ag-rtl .ag-label-align-right .ag-label{margin-right:var(--ag-grid-size)}input[class^=ag-]{margin:0;background-color:var(--ag-background-color)}textarea[class^=ag-],select[class^=ag-]{background-color:var(--ag-background-color)}input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]{font-size:inherit;line-height:inherit;color:inherit;font-family:inherit;border:var(--ag-borders-input) var(--ag-input-border-color)}input[class^=ag-]:not([type]):disabled,input[class^=ag-][type=text]:disabled,input[class^=ag-][type=number]:disabled,input[class^=ag-][type=tel]:disabled,input[class^=ag-][type=date]:disabled,input[class^=ag-][type=datetime-local]:disabled,textarea[class^=ag-]:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}input[class^=ag-]:not([type]):focus,input[class^=ag-][type=text]:focus,input[class^=ag-][type=number]:focus,input[class^=ag-][type=tel]:focus,input[class^=ag-][type=date]:focus,input[class^=ag-][type=datetime-local]:focus,textarea[class^=ag-]:focus{outline:none;box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}input[class^=ag-]:not([type]):focus.invalid,input[class^=ag-]:not([type]):focus:invalid,input[class^=ag-][type=text]:focus.invalid,input[class^=ag-][type=text]:focus:invalid,input[class^=ag-][type=number]:focus.invalid,input[class^=ag-][type=number]:focus:invalid,input[class^=ag-][type=tel]:focus.invalid,input[class^=ag-][type=tel]:focus:invalid,input[class^=ag-][type=date]:focus.invalid,input[class^=ag-][type=date]:focus:invalid,input[class^=ag-][type=datetime-local]:focus.invalid,input[class^=ag-][type=datetime-local]:focus:invalid,textarea[class^=ag-]:focus.invalid,textarea[class^=ag-]:focus:invalid{box-shadow:var(--ag-input-error-focus-box-shadow);border-color:var(--ag-invalid-color)}input[class^=ag-]:not([type]):invalid,input[class^=ag-][type=text]:invalid,input[class^=ag-][type=number]:invalid,input[class^=ag-][type=tel]:invalid,input[class^=ag-][type=date]:invalid,input[class^=ag-][type=datetime-local]:invalid,textarea[class^=ag-]:invalid{border:var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid)}.ag-input-field-clear-button{position:absolute;display:flex;align-items:center;justify-content:center;width:var(--ag-icon-size);height:var(--ag-icon-size);padding:0;border:0;border-radius:var(--ag-border-radius);color:inherit;background:transparent;cursor:pointer}.ag-ltr .ag-input-field-clear-button{right:var(--ag-grid-size)}.ag-rtl .ag-input-field-clear-button{left:var(--ag-grid-size)}.ag-ltr input[class^=ag-][type=text].ag-input-field-input-with-clear-button,.ag-ltr input[class^=ag-][type=number].ag-input-field-input-with-clear-button{padding-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl input[class^=ag-][type=text].ag-input-field-input-with-clear-button,.ag-rtl input[class^=ag-][type=number].ag-input-field-input-with-clear-button{padding-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-input-field-search-icon{position:absolute;display:inline-flex;align-items:center;opacity:0.5;pointer-events:none;inset-inline-start:var(--ag-grid-size)}.ag-ltr .ag-input-field-search input.ag-input-field-input[class^=ag-][type=text],.ag-ltr .ag-input-field-search input.ag-input-field-input[class^=ag-][type=number],.ag-ltr .ag-input-field-search input.ag-input-field-input[class^=ag-][type=date],.ag-ltr .ag-input-field-search input.ag-input-field-input[class^=ag-][type=datetime-local]{padding-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl .ag-input-field-search input.ag-input-field-input[class^=ag-][type=text],.ag-rtl .ag-input-field-search input.ag-input-field-input[class^=ag-][type=number],.ag-rtl .ag-input-field-search input.ag-input-field-input[class^=ag-][type=date],.ag-rtl .ag-input-field-search input.ag-input-field-input[class^=ag-][type=datetime-local]{padding-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}input[class^=ag-][type=number]:not(.ag-number-field-input-stepper){-moz-appearance:textfield}input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-outer-spin-button,input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[class^=ag-][type=range]{padding:0}input[class^=ag-][type=button]:focus,button[class^=ag-]:focus{box-shadow:var(--ag-input-focus-box-shadow)}input[class^=ag-][type=button]:focus:invalid,input[class^=ag-][type=button]:focus.invalid,button[class^=ag-]:focus:invalid,button[class^=ag-]:focus.invalid{box-shadow:var(--ag-input-error-focus-box-shadow)}.ag-drag-handle{color:var(--ag-secondary-foreground-color)}.ag-list-item,.ag-virtual-list-item{height:var(--ag-list-item-height)}.ag-virtual-list-item:focus-visible{outline:none}.ag-virtual-list-item:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-select-list{background-color:var(--ag-background-color);overflow-y:auto;overflow-x:hidden;border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-list-item{display:flex;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-list-item.ag-active-item{background-color:var(--ag-row-hover-color)}.ag-ltr .ag-select-list-item{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-select-list-item{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-select-list-item{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ag-select-list-item span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ag-ltr .ag-row-drag,.ag-ltr .ag-selection-checkbox,.ag-ltr .ag-group-expanded,.ag-ltr .ag-group-contracted{margin-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-row-drag,.ag-rtl .ag-selection-checkbox,.ag-rtl .ag-group-expanded,.ag-rtl .ag-group-contracted{margin-left:var(--ag-cell-widget-spacing)}.ag-row-drag,.ag-selection-checkbox,.ag-group-expanded,.ag-group-contracted{color:var(--ag-secondary-foreground-color)}.ag-drag-handle-disabled{opacity:0.35;pointer-events:none}.ag-cell-wrapper>*:not(.ag-cell-value):not(.ag-group-value){--ag-internal-calculated-line-height: var( --ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)) );--ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width) - 2px);height:min(var(--ag-internal-calculated-line-height),var(--ag-internal-padded-row-height));display:flex;align-items:center;flex:none}.ag-group-expanded,.ag-group-contracted{cursor:pointer}.ag-group-title-bar-icon{cursor:pointer;flex:none;color:var(--ag-secondary-foreground-color)}.ag-ltr .ag-group-child-count{margin-left:2px}.ag-rtl .ag-group-child-count{margin-right:2px}.ag-group-title-bar{background-color:var(--ag-subheader-background-color);padding:var(--ag-grid-size)}.ag-group-toolbar{padding:var(--ag-grid-size);background-color:var(--ag-subheader-toolbar-background-color)}.ag-disabled-group-title-bar,.ag-disabled-group-container{opacity:0.5}.group-item{margin:calc(var(--ag-grid-size) * 0.5) 0}.ag-label{white-space:nowrap}.ag-ltr .ag-label{margin-right:var(--ag-grid-size)}.ag-rtl .ag-label{margin-left:var(--ag-grid-size)}.ag-label-align-top .ag-label{margin-bottom:calc(var(--ag-grid-size) * 0.5)}.ag-angle-select[disabled]{color:var(--ag-disabled-foreground-color);pointer-events:none}.ag-angle-select[disabled] .ag-angle-select-field{opacity:0.4}.ag-ltr .ag-slider-field,.ag-ltr .ag-angle-select-field{margin-right:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-slider-field,.ag-rtl .ag-angle-select-field{margin-left:calc(var(--ag-grid-size) * 2)}.ag-angle-select-parent-circle{width:24px;height:24px;border-radius:12px;border:solid 1px;border-color:var(--ag-border-color);background-color:var(--ag-background-color)}.ag-angle-select-child-circle{top:4px;left:12px;width:6px;height:6px;margin-left:-3px;margin-top:-4px;border-radius:3px;background-color:var(--ag-secondary-foreground-color)}.ag-picker-field-wrapper{border:var(--ag-borders);border-color:var(--ag-border-color);border-radius:5px;background-color:var(--ag-background-color)}.ag-picker-field-wrapper:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-picker-field-wrapper.ag-picker-has-focus,.ag-picker-field-wrapper:focus-within{outline:none;box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}.ag-picker-field-wrapper.ag-picker-has-focus.invalid,.ag-picker-field-wrapper:focus-within.invalid{box-shadow:var(--ag-input-error-focus-box-shadow)}.ag-picker-field-wrapper.invalid{border:var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid)}.ag-picker-field-button{background-color:var(--ag-background-color);color:var(--ag-secondary-foreground-color)}.ag-dialog.ag-color-dialog{border-radius:5px}.ag-color-picker .ag-picker-field-wrapper{padding-left:var(--ag-grid-size);padding-right:var(--ag-grid-size)}.ag-color-picker .ag-picker-field-display{display:flex;flex-direction:row;align-items:center;min-height:var(--ag-list-item-height)}.ag-ltr .ag-color-picker-color,.ag-ltr .ag-color-picker-value{margin-right:var(--ag-grid-size)}.ag-rtl .ag-color-picker-color,.ag-rtl .ag-color-picker-value{margin-left:var(--ag-grid-size)}.ag-color-panel{padding:var(--ag-grid-size)}.ag-spectrum-color{background-color:rgb(255,0,0);border-radius:2px}.ag-spectrum-tools{padding:10px}.ag-spectrum-sat{background-image:linear-gradient(to right,white,rgba(204,154,129,0))}.ag-spectrum-val{background-image:linear-gradient(to top,black,rgba(204,154,129,0))}.ag-spectrum-dragger{border-radius:12px;height:12px;width:12px;border:2px solid white;background:black;box-shadow:0 0 2px 0px rgba(0,0,0,0.24)}.ag-spectrum-hue-background{border-radius:2px}.ag-spectrum-alpha-background{border-radius:2px}.ag-spectrum-tool{margin-bottom:10px;height:11px;border-radius:2px}.ag-spectrum-slider{margin-top:-12px;width:13px;height:13px;border-radius:13px;border:2px solid white;box-shadow:0 1px 4px 0 rgba(0,0,0,0.37)}.ag-recent-colors{margin-top:10px}.ag-recent-color{margin:0 3px}.ag-recent-color:first-child{margin-left:0}.ag-recent-color:last-child{margin-right:0}.ag-spectrum-color:focus-visible:not(:disabled):not([readonly]),.ag-spectrum-slider:focus-visible:not(:disabled):not([readonly]),.ag-recent-color:focus-visible:not(:disabled):not([readonly]){box-shadow:var(--ag-input-focus-box-shadow)}.ag-ltr .ag-color-input input[class^=ag-][type=text].ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl .ag-color-input input[class^=ag-][type=text].ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-color-input .ag-color-input-color{position:absolute}.ag-ltr .ag-color-input .ag-color-input-color{margin-left:var(--ag-grid-size)}.ag-rtl .ag-color-input .ag-color-input-color{margin-right:var(--ag-grid-size)}.ag-color-picker-color,.ag-color-input-color{width:var(--ag-icon-size);height:var(--ag-icon-size);border:var(--ag-borders-secondary) var(--ag-secondary-border-color);border-radius:2px}.ag-dnd-ghost{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);overflow:hidden;text-overflow:ellipsis;border:var(--ag-borders-secondary) var(--ag-secondary-border-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height);line-height:var(--ag-header-height);margin:0;padding:0 calc(var(--ag-grid-size) * 2);transform:translateY(calc(var(--ag-grid-size) * 2))}.ag-dnd-ghost-not-allowed{border-color:color-mix(in srgb,var(--ag-background-color),var(--ag-invalid-color) 50%)}.ag-dnd-ghost-icon{margin-right:var(--ag-grid-size);color:var(--ag-foreground-color)}.ag-popup-child:not(.ag-tooltip-custom){box-shadow:var(--ag-popup-shadow)}.ag-select .ag-picker-field-wrapper{min-height:var(--ag-list-item-height)}.ag-ltr .ag-select .ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-select .ag-picker-field-wrapper{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-ltr .ag-select .ag-picker-field-wrapper{padding-right:var(--ag-grid-size)}.ag-rtl .ag-select .ag-picker-field-wrapper{padding-left:var(--ag-grid-size)}.ag-select .ag-picker-field-wrapper{cursor:default}.ag-select.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-select.ag-select-readonly .ag-picker-field-wrapper{--ag-background-color: var(--ag-input-disabled-background-color);--ag-border-color: var(--ag-input-disabled-border-color);color:var(--ag-disabled-foreground-color)}.ag-select.ag-select-readonly .ag-picker-field-display{user-select:text;cursor:text}.ag-select:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-select .ag-picker-field-display{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-select .ag-picker-field-icon{display:flex;align-items:center}.ag-select.ag-disabled{opacity:0.5}.ag-rich-select-value,.ag-rich-select-list{background-color:var(--ag-background-color)}.ag-rich-select-list{width:100%;height:auto;border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color)}.ag-rich-select-list .ag-rich-select-loading{padding:var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing)}.ag-rich-select-value{border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color);padding-top:0;padding-bottom:0}.ag-ltr .ag-rich-select-value{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-rich-select-value{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-ltr .ag-rich-select-value{padding-right:var(--ag-grid-size)}.ag-rtl .ag-rich-select-value{padding-left:var(--ag-grid-size)}.ag-ltr .ag-rich-select-field-input{left:calc(var(--ag-cell-horizontal-padding))}.ag-rtl .ag-rich-select-field-input{right:calc(var(--ag-cell-horizontal-padding))}.ag-ltr .ag-rich-select-typing-multi .ag-rich-select-field-input{margin-left:0.25rem}.ag-rtl .ag-rich-select-typing-multi .ag-rich-select-field-input{margin-right:0.25rem}.ag-ltr .ag-rich-select-typing-multi .ag-rich-select-deselect-button{margin-left:auto}.ag-rtl .ag-rich-select-typing-multi .ag-rich-select-deselect-button{margin-right:auto}.ag-ltr .ag-rich-select-typing-multi .ag-rich-select-deselect-button.ag-hidden+.ag-picker-field-icon{margin-left:auto}.ag-rtl .ag-rich-select-typing-multi .ag-rich-select-deselect-button.ag-hidden+.ag-picker-field-icon{margin-right:auto}.ag-popup-editor .ag-rich-select-value{height:var(--ag-row-height);min-width:200px}.ag-rich-select-virtual-list-item{cursor:default;height:var(--ag-list-item-height)}.ag-rich-select-virtual-list-item:focus-visible::after{content:none}.ag-ltr .ag-rich-select-row{padding-left:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rtl .ag-rich-select-row{padding-right:calc(var(--ag-cell-horizontal-padding) / 2)}.ag-rich-select-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-rich-select-row:hover,.ag-rich-select-row-highlighted{background-image:linear-gradient(var(--ag-row-hover-color),var(--ag-row-hover-color))}.ag-rich-select-row-text-highlight{font-weight:bold}.ag-autocomplete{width:100%}.ag-autocomplete-list-popup{position:absolute;user-select:none;border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);background-color:var(--ag-background-color);padding:0}.ag-autocomplete-list{width:100%;min-width:200px;height:calc(var(--ag-row-height) * 6.5)}.ag-autocomplete-loading{min-width:200px;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing)}.ag-autocomplete-loading .ag-loading-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-autocomplete-virtual-list-item{display:flex;cursor:default;height:var(--ag-list-item-height)}.ag-autocomplete-virtual-list-item:focus-visible::after{content:none}.ag-autocomplete-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-autocomplete-row{display:flex;flex:1 1 auto;align-items:center;overflow:hidden}.ag-autocomplete-row-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0px var(--ag-widget-container-horizontal-padding)}.ag-autocomplete-row-selected{background-color:var(--ag-selected-row-background-color)}.ag-autocomplete-row-path-parent{opacity:0.5}.ag-pill{border:1px solid var(--ag-chip-border-color);border-radius:var(--ag-border-radius);background-color:var(--ag-chip-background-color)}.ag-ltr .ag-pill .ag-pill-button{margin-left:var(--ag-grid-size)}.ag-rtl .ag-pill .ag-pill-button{margin-right:var(--ag-grid-size)}.ag-pill:focus-visible{border-color:var(--ag-input-focus-border-color)}.ag-pill .ag-pill-button:hover{cursor:pointer}.ag-text-area-mirror-wrapper{position:relative}.ag-text-area-mirror-input{-webkit-text-fill-color:transparent;caret-color:currentcolor}:where(.ag-text-area-mirror-input)::placeholder{-webkit-text-fill-color:currentcolor}:where(.ag-text-area-mirror-input)::selection{background-color:var(--ag-range-selection-background-color)}.ag-text-area-mirror{position:absolute;overflow:hidden;pointer-events:none;user-select:none;z-index:1}.ag-text-area-mirror-text{box-sizing:border-box;min-height:100%;width:100%;margin:0}:where(.ag-text-area-mirror-text)::after{content:"\\200b"}:where(.ag-text-area-mirror-composing) .ag-text-area-mirror-input{-webkit-text-fill-color:currentcolor}:where(.ag-text-area-mirror-composing) .ag-text-area-mirror{visibility:hidden}@media(forced-colors:active){.ag-text-area-mirror-input{-webkit-text-fill-color:currentcolor}:where(.ag-text-area-mirror){display:none}}.ag-formula-input-field-input{background-color:var(--ag-background-color);border:var(--ag-borders-input) var(--ag-input-border-color);border-radius:var(--ag-border-radius);color:var(--ag-foreground-color);outline:none;padding:0 var(--ag-grid-size);white-space:pre;resize:none;overflow:auto;scrollbar-width:none}.ag-cell-inline-editing .ag-formula-input-field-input{line-height:min(var(--ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width))),var(--ag-row-height) - var(--ag-row-border-width) - 2px)}.ag-formula-input-field-input:focus{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-input-focus-border-color)}.ag-formula-input-field-input:disabled{background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color);color:var(--ag-disabled-foreground-color)}.ag-formula-input-field-input.invalid{border-color:var(--ag-invalid-color)}.ag-formula-operator{position:relative;-webkit-text-fill-color:transparent}:where(.ag-formula-operator)::after{content:attr(data-symbol);position:absolute;left:50%;transform:translateX(-50%);-webkit-text-fill-color:currentcolor}.ag-formula-token-color-1{color:var(--ag-formula-token-1-color)}.ag-formula-token-color-2{color:var(--ag-formula-token-2-color)}.ag-formula-token-color-3{color:var(--ag-formula-token-3-color)}.ag-formula-token-color-4{color:var(--ag-formula-token-4-color)}.ag-formula-token-color-5{color:var(--ag-formula-token-5-color)}.ag-formula-token-color-6{color:var(--ag-formula-token-6-color)}.ag-formula-token-color-7{color:var(--ag-formula-token-7-color)}.ag-formula-range-color-1{--ag-range-selection-border-color: var(--ag-formula-token-1-color);--ag-range-selection-background-color: var(--ag-formula-token-1-background-color)}.ag-formula-range-color-2{--ag-range-selection-border-color: var(--ag-formula-token-2-color);--ag-range-selection-background-color: var(--ag-formula-token-2-background-color)}.ag-formula-range-color-3{--ag-range-selection-border-color: var(--ag-formula-token-3-color);--ag-range-selection-background-color: var(--ag-formula-token-3-background-color)}.ag-formula-range-color-4{--ag-range-selection-border-color: var(--ag-formula-token-4-color);--ag-range-selection-background-color: var(--ag-formula-token-4-background-color)}.ag-formula-range-color-5{--ag-range-selection-border-color: var(--ag-formula-token-5-color);--ag-range-selection-background-color: var(--ag-formula-token-5-background-color)}.ag-formula-range-color-6{--ag-range-selection-border-color: var(--ag-formula-token-6-color);--ag-range-selection-background-color: var(--ag-formula-token-6-background-color)}.ag-formula-range-color-7{--ag-range-selection-border-color: var(--ag-formula-token-7-color);--ag-range-selection-background-color: var(--ag-formula-token-7-background-color)}.ag-range-handle.ag-formula-range-color-1,.ag-fill-handle.ag-formula-range-color-1{background-color:var(--ag-formula-token-1-color)}.ag-range-handle.ag-formula-range-color-2,.ag-fill-handle.ag-formula-range-color-2{background-color:var(--ag-formula-token-2-color)}.ag-range-handle.ag-formula-range-color-3,.ag-fill-handle.ag-formula-range-color-3{background-color:var(--ag-formula-token-3-color)}.ag-range-handle.ag-formula-range-color-4,.ag-fill-handle.ag-formula-range-color-4{background-color:var(--ag-formula-token-4-color)}.ag-range-handle.ag-formula-range-color-5,.ag-fill-handle.ag-formula-range-color-5{background-color:var(--ag-formula-token-5-color)}.ag-range-handle.ag-formula-range-color-6,.ag-fill-handle.ag-formula-range-color-6{background-color:var(--ag-formula-token-6-color)}.ag-dragging-range-handle .ag-dialog,.ag-dragging-fill-handle .ag-dialog{opacity:0.7;pointer-events:none}.ag-dragging-range-handle .ag-dialog .ag-charts-canvas-center,.ag-dragging-range-handle .ag-dialog .ag-charts-series-area,.ag-dragging-range-handle .ag-dialog .ag-charts-proxy-elem,.ag-dragging-range-handle .ag-dialog .ag-charts-proxy-legend-toolbar,.ag-dragging-range-handle .ag-dialog .ag-charts-toolbar,.ag-dragging-range-handle .ag-dialog .ag-charts-canvas-overlay>*,.ag-dragging-fill-handle .ag-dialog .ag-charts-canvas-center,.ag-dragging-fill-handle .ag-dialog .ag-charts-series-area,.ag-dragging-fill-handle .ag-dialog .ag-charts-proxy-elem,.ag-dragging-fill-handle .ag-dialog .ag-charts-proxy-legend-toolbar,.ag-dragging-fill-handle .ag-dialog .ag-charts-toolbar,.ag-dragging-fill-handle .ag-dialog .ag-charts-canvas-overlay>*{pointer-events:none}.ag-dialog{border-radius:var(--ag-border-radius);border:var(--ag-borders) var(--ag-border-color);box-shadow:var(--ag-popup-shadow)}.ag-panel{background-color:var(--ag-panel-background-color);border-color:var(--ag-panel-border-color)}.ag-panel-title-bar{color:var(--ag-header-foreground-color);height:var(--ag-header-height);padding:var(--ag-grid-size) var(--ag-cell-horizontal-padding);border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-panel-title-bar-button{border:0;background-color:unset;padding:0}.ag-ltr .ag-panel-title-bar-button{margin-left:var(--ag-grid-size)}.ag-rtl .ag-panel-title-bar-button{margin-right:var(--ag-grid-size)}.ag-has-cell-notes::after{content:"";position:absolute;top:0;right:0;inset-inline-start:auto;border-radius:0;background-color:transparent;border-style:solid;border-width:0 var(--ag-note-indicator-size) var(--ag-note-indicator-size) 0;border-color:transparent var(--ag-note-indicator-color) transparent transparent;pointer-events:none}.ag-notes-panel.ag-panel{width:100%;border:var(--ag-note-popup-border);background-color:var(--ag-note-popup-background-color)}.ag-notes-panel-content-wrapper{min-height:0;min-width:0}.ag-notes-popup-content{display:flex;width:100%;height:100%;flex-direction:column;min-height:0;min-width:0;gap:calc(var(--ag-grid-size) / 2);padding:var(--ag-note-popup-padding)}.ag-notes-popup-meta{color:var(--ag-note-popup-text-color);font-size:calc(var(--ag-font-size) - 1px)}.ag-ltr .ag-notes-popup-meta{padding-left:calc(var(--ag-grid-size) / 2)}.ag-rtl .ag-notes-popup-meta{padding-right:calc(var(--ag-grid-size) / 2)}.ag-notes-popup-body{display:flex;flex:1 1 auto;min-height:0;min-width:0}.ag-notes-popup-editor{display:flex;flex:1 1 auto;width:100%;height:100%;min-width:0}.ag-notes-popup-editor .ag-text-area-input-wrapper{flex:1 1 auto;width:100%;height:100%;min-width:0;align-items:stretch}.ag-notes-popup-editor .ag-text-area-input{flex:1 1 auto;width:100%;height:100%;min-width:0;resize:none;color:var(--ag-note-popup-input-text-color);background-color:var(--ag-note-popup-input-background-color);padding:calc(var(--ag-grid-size) / 2)}.ag-notes-popup-editor .ag-text-area-input[readonly]{background-color:var(--ag-note-popup-background-color);border:none}.ag-notes-popup-read-only .ag-text-area-input-wrapper{background-color:var(--ag-input-disabled-background-color)}.ag-tooltip{background-color:var(--ag-tooltip-background-color);color:var(--ag-foreground-color);padding:var(--ag-grid-size);border:var(--ag-borders) var(--ag-border-color);border-radius:var(--ag-card-radius);white-space:normal}.ag-tooltip.ag-cell-editor-tooltip,.ag-tooltip.ag-cell-formula-tooltip,.ag-tooltip.ag-calculated-column-expression-tooltip{background-color:var(--ag-tooltip-error-background-color);color:var(--ag-tooltip-error-text-color);border:var(--ag-borders) var(--ag-tooltip-error-border-color);font-weight:500}.ag-tooltip.ag-calculated-column-expression-tooltip{white-space:pre-line}.ag-tooltip.ag-tooltip-animate,.ag-tooltip-custom.ag-tooltip-animate{transition:opacity 1s}.ag-tooltip.ag-tooltip-animate.ag-tooltip-hiding,.ag-tooltip-custom.ag-tooltip-animate.ag-tooltip-hiding{opacity:0}.ag-ltr .ag-column-select-column,.ag-ltr .ag-column-select-column-group{padding-left:calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size))}.ag-rtl .ag-column-select-column,.ag-rtl .ag-column-select-column-group{padding-right:calc(var(--ag-indentation-level) * var(--ag-column-select-indent-size))}.ag-column-select-header-icon{cursor:pointer}.ag-column-select-header-icon:focus-visible{outline:none}.ag-column-select-header-icon:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0px;left:0px;display:block;width:calc(100% - 0px);height:calc(100% - 0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-ltr .ag-column-group-icons:not(:last-child),.ag-ltr .ag-column-select-header-icon:not(:last-child),.ag-ltr .ag-column-select-header-checkbox:not(:last-child),.ag-ltr .ag-column-select-header-filter-wrapper:not(:last-child),.ag-ltr .ag-column-select-checkbox:not(:last-child),.ag-ltr .ag-column-select-column-drag-handle:not(:last-child),.ag-ltr .ag-column-select-column-group-drag-handle:not(:last-child),.ag-ltr .ag-column-select-column-label:not(:last-child){margin-right:var(--ag-widget-horizontal-spacing)}.ag-rtl .ag-column-group-icons:not(:last-child),.ag-rtl .ag-column-select-header-icon:not(:last-child),.ag-rtl .ag-column-select-header-checkbox:not(:last-child),.ag-rtl .ag-column-select-header-filter-wrapper:not(:last-child),.ag-rtl .ag-column-select-checkbox:not(:last-child),.ag-rtl .ag-column-select-column-drag-handle:not(:last-child),.ag-rtl .ag-column-select-column-group-drag-handle:not(:last-child),.ag-rtl .ag-column-select-column-label:not(:last-child){margin-left:var(--ag-widget-horizontal-spacing)}.ag-column-select-virtual-list-item:focus-visible{outline:none}.ag-column-select-virtual-list-item:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-select-column-group:not(:last-child),.ag-column-select-column:not(:last-child){margin-bottom:var(--ag-widget-vertical-spacing)}.ag-column-select-column-readonly,.ag-column-select-column-group-readonly{color:var(--ag-disabled-foreground-color);pointer-events:none}.ag-ltr .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-column-select-virtual-list-viewport{padding:calc(var(--ag-widget-container-vertical-padding) * 0.5) 0px}.ag-column-select-virtual-list-item{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-pill-select .ag-column-drop{border-bottom:0;min-height:unset}.ag-pill-select .ag-column-drop-list{padding:0}.ag-pill-select .ag-select{padding-top:var(--ag-grid-size)}.ag-pill-select .ag-picker-field-wrapper{background-color:transparent;border:0}.ag-pill-select .ag-picker-field-display{cursor:pointer}.ag-rtl{text-align:right}.ag-root-wrapper{border-radius:var(--ag-wrapper-border-radius);border:var(--ag-borders) var(--ag-border-color);--ag-internal-row-highlight-content: initial;--ag-internal-row-highlight-anchor: initial;anchor-scope:--ag-internal-row-highlight-label}.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))}.ag-cell-wrapper.ag-row-group,.ag-cell-wrapper.ag-row-group-leaf-indent,.ag-cell-wrapper.ag-pivot-leaf-group{padding-left:calc(var(--ag-indentation-level) * var(--ag-row-group-indent-size))}.ag-cell-wrapper>.ag-group-checkbox-spacing{width:var(--ag-icon-size);margin-right:var(--ag-cell-widget-spacing)}.ag-ltr .ag-row-group-leaf-indent{margin-left:var(--ag-row-group-indent-size)}.ag-rtl .ag-row-group-leaf-indent{margin-right:var(--ag-row-group-indent-size)}.ag-row:not(.ag-row-level-0) .ag-pivot-leaf-group{margin-left:var(--ag-row-group-indent-size)}.ag-value-change-delta{padding-right: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 0.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-data-color)}.ag-row{height:var(--ag-row-height)}.ag-row.ag-row-editing-invalid{background-color:var(--ag-full-row-invalid-background-color)}.ag-row.ag-full-width-row:not(.ag-embedded-full-width-row){border-bottom:var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-row:not(.ag-header-row,.ag-full-width-row)>.ag-grid-pinned-left-cells,.ag-row:not(.ag-header-row,.ag-full-width-row)>.ag-grid-scrolling-cells,.ag-row:not(.ag-header-row,.ag-full-width-row)>.ag-grid-pinned-right-cells,.ag-row.ag-embedded-full-width-row>.ag-grid-pinned-left-cells,.ag-row.ag-embedded-full-width-row>.ag-grid-scrolling-cells,.ag-row.ag-embedded-full-width-row>.ag-grid-pinned-right-cells{border-bottom:var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-grid-pinned-bottom-rows-container .ag-row-last:not(.ag-header-row,.ag-full-width-row)>.ag-grid-pinned-left-cells,.ag-grid-pinned-bottom-rows-container .ag-row-last:not(.ag-header-row,.ag-full-width-row)>.ag-grid-scrolling-cells,.ag-grid-pinned-bottom-rows-container .ag-row-last:not(.ag-header-row,.ag-full-width-row)>.ag-grid-pinned-right-cells,.ag-grid-pinned-bottom-rows-container .ag-row-last.ag-embedded-full-width-row>.ag-grid-pinned-left-cells,.ag-grid-pinned-bottom-rows-container .ag-row-last.ag-embedded-full-width-row>.ag-grid-scrolling-cells,.ag-grid-pinned-bottom-rows-container .ag-row-last.ag-embedded-full-width-row>.ag-grid-pinned-right-cells{border-bottom:none}:where(.ag-grid-sticky-bottom-rows-container) .ag-row:where(:not(.ag-header-row,.ag-full-width-row))>.ag-grid-pinned-left-cells,:where(.ag-grid-sticky-bottom-rows-container) .ag-row:where(:not(.ag-header-row,.ag-full-width-row))>.ag-grid-scrolling-cells,:where(.ag-grid-sticky-bottom-rows-container) .ag-row:where(:not(.ag-header-row,.ag-full-width-row))>.ag-grid-pinned-right-cells,:where(.ag-grid-sticky-bottom-rows-container) .ag-row:where(.ag-embedded-full-width-row)>.ag-grid-pinned-left-cells,:where(.ag-grid-sticky-bottom-rows-container) .ag-row:where(.ag-embedded-full-width-row)>.ag-grid-scrolling-cells,:where(.ag-grid-sticky-bottom-rows-container) .ag-row:where(.ag-embedded-full-width-row)>.ag-grid-pinned-right-cells{border-bottom:none;border-top:var(--ag-row-border)}:where(.ag-row:not(.ag-header-row)){background-color:var(--ag-data-background-color);--ag-internal-row-overlay-color: transparent;--ag-internal-row-overlay-image: none}.ag-grid-container-wrapper{width:100%;height:100%}.ag-row:not(.ag-header-row)>.ag-grid-pinned-left-cells,.ag-row:not(.ag-header-row)>.ag-grid-pinned-right-cells{background-color:inherit;background-image:linear-gradient(var(--ag-data-background-color),var(--ag-data-background-color))}.ag-row:not(.ag-header-row)>.ag-grid-pinned-left-cells>.ag-grid-container-wrapper,.ag-row:not(.ag-header-row)>.ag-grid-pinned-right-cells>.ag-grid-container-wrapper{background-color:inherit}.ag-spanned-cell-wrapper{background-color:var(--ag-data-background-color);position:absolute}.ag-spanned-cell-wrapper>.ag-spanned-cell{display:block;position:relative}.ag-grid-pinned-left-cells::after,.ag-grid-scrolling-cells::after,.ag-grid-pinned-right-cells::after,.ag-full-width-row:not(.ag-embedded-full-width-row)::after{content:var(--ag-internal-row-highlight-content, none);position:absolute;inset:var(--ag-internal-row-highlight-inset, auto);inset-inline-start:anchor(--ag-internal-row-highlight-label start,0);height:var(--ag-row-drag-indicator-width);background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width) / 2);pointer-events:none}.ag-row-highlight-above{--ag-internal-row-highlight-content: "";--ag-internal-row-highlight-inset: 0 0 auto}.ag-row-highlight-below{--ag-internal-row-highlight-content: "";--ag-internal-row-highlight-inset: auto 0 0}.ag-row-highlight-indent{--ag-internal-row-highlight-anchor: --ag-internal-row-highlight-label}:where(.ag-group-cell-all-levels)>.ag-group-value{anchor-name:var(--ag-internal-row-highlight-anchor, none)}.ag-row-highlight-inside>.ag-grid-pinned-left-cells::after,.ag-row-highlight-inside>.ag-grid-scrolling-cells::after,.ag-row-highlight-inside>.ag-grid-pinned-right-cells::after,.ag-row-highlight-inside.ag-full-width-row:not(.ag-embedded-full-width-row)::after{--ag-internal-row-highlight-content: "";inset:0;height:auto;border-radius:0;background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color)}.ag-grid-scrolling-rows,.ag-grid-pinned-bottom-rows-container{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-selected{--ag-internal-row-overlay-color: var(--ag-selected-row-background-color)}.ag-row-hover:not(.ag-full-width-row),.ag-row-hover.ag-full-width-row.ag-row-group{--ag-internal-row-overlay-color: var(--ag-row-hover-color)}.ag-row-selected .ag-grid-pinned-left-cells::before,.ag-row-selected .ag-grid-pinned-right-cells::before,.ag-row-selected .ag-grid-scrolling-cells::before,.ag-row-hover:not(.ag-full-width-row) .ag-grid-pinned-left-cells::before,.ag-row-hover:not(.ag-full-width-row) .ag-grid-pinned-right-cells::before,.ag-row-hover:not(.ag-full-width-row) .ag-grid-scrolling-cells::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;background-color:var(--ag-internal-row-overlay-color);background-image:var(--ag-internal-row-overlay-image)}.ag-row-selected.ag-full-width-row::before,.ag-row-hover.ag-full-width-row.ag-row-group::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;background-color:var(--ag-internal-row-overlay-color);background-image:var(--ag-internal-row-overlay-image)}.ag-row-hover.ag-row-selected{--ag-internal-row-overlay-color: var(--ag-row-hover-color);--ag-internal-row-overlay-image: linear-gradient( var(--ag-selected-row-background-color), var(--ag-selected-row-background-color) )}:where(.ag-cell).ag-column-hover{background-color:var(--ag-column-hover-color)}:where(.ag-header-cell).ag-column-hover{background-image:linear-gradient(var(--ag-column-header-hover-color),var(--ag-column-header-hover-color))}.ag-header-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-ltr .ag-right-aligned-cell{text-align:right}.ag-rtl .ag-right-aligned-cell{text-align:left}.ag-ltr .ag-right-aligned-cell .ag-cell-value,.ag-ltr .ag-right-aligned-cell .ag-group-value{margin-left:auto}.ag-rtl .ag-right-aligned-cell .ag-cell-value,.ag-rtl .ag-right-aligned-cell .ag-group-value{margin-right:auto}.ag-ltr .ag-right-aligned-cell .ag-skeleton-effect{margin-left:auto}.ag-rtl .ag-right-aligned-cell .ag-skeleton-effect{margin-right:auto}.ag-cell,.ag-full-width-row .ag-cell-wrapper.ag-row-group{--ag-internal-calculated-line-height: var( --ag-line-height, calc(var(--ag-row-height) - var(--ag-row-border-width)) );--ag-internal-padded-row-height: calc(var(--ag-row-height) - var(--ag-row-border-width) - 2px);border:1px solid transparent;line-height:min(var(--ag-internal-calculated-line-height),var(--ag-internal-padded-row-height));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);-webkit-font-smoothing:subpixel-antialiased}.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:0.5}.ag-cell-inline-editing{border:1px solid var(--ag-border-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:0;background-color:var(--ag-control-panel-background-color)}.ag-popup-editor .ag-large-text,.ag-autocomplete-list-popup{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background-color:var(--ag-control-panel-background-color);padding:0}.ag-large-text-input{height:auto;padding:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-large-text-input textarea{resize:none}.ag-details-row{padding:calc(var(--ag-grid-size) * 5);background-color:var(--ag-data-background-color)}.ag-layout-auto-height .ag-grid-scrolling-rows,.ag-layout-print .ag-grid-scrolling-rows{min-height:var(--ag-auto-height-min-body-height)}.ag-overlay-loading-wrapper,.ag-overlay-exporting-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-overlay-loading-center,.ag-overlay-exporting-center{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);display:flex}.ag-skeleton-container{width:100%;height:100%;align-content:center}.ag-skeleton-effect{background-color:var(--ag-row-loading-skeleton-effect-color);width:100%;height:1em;border-radius:0.25rem}@media(prefers-reduced-motion:no-preference){.ag-skeleton-effect{animation:ag-skeleton-loading 1.5s ease-in-out 0.5s infinite}}@keyframes ag-skeleton-loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.ag-ltr .ag-loading{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-loading{padding-right:var(--ag-cell-horizontal-padding)}.ag-loading{display:flex;height:100%;align-items:center}.ag-ltr .ag-loading-icon{padding-right:var(--ag-cell-widget-spacing)}.ag-rtl .ag-loading-icon{padding-left:var(--ag-cell-widget-spacing)}.ag-icon-loading{animation-name:spin;animation-duration:1000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.ag-body-vertical-content-no-gap .ag-has-bottom-pinned-rows .ag-grid-scrolling-container .ag-row-last>.ag-grid-pinned-left-cells,.ag-body-vertical-content-no-gap .ag-has-bottom-pinned-rows .ag-grid-scrolling-container .ag-row-last>.ag-grid-scrolling-cells,.ag-body-vertical-content-no-gap .ag-has-bottom-pinned-rows .ag-grid-scrolling-container .ag-row-last>.ag-grid-pinned-right-cells,.ag-body-vertical-content-no-gap .ag-has-bottom-pinned-rows .ag-grid-pinned-bottom-rows .ag-grid-sticky-bottom-rows-container .ag-row-last>.ag-grid-pinned-left-cells,.ag-body-vertical-content-no-gap .ag-has-bottom-pinned-rows .ag-grid-pinned-bottom-rows .ag-grid-sticky-bottom-rows-container .ag-row-last>.ag-grid-scrolling-cells,.ag-body-vertical-content-no-gap .ag-has-bottom-pinned-rows .ag-grid-pinned-bottom-rows .ag-grid-sticky-bottom-rows-container .ag-row-last>.ag-grid-pinned-right-cells{border-bottom:none}.ag-grid-pinned-bottom-rows>.ag-grid-pinned-bottom-rows-container>.ag-row:first-child:not(.ag-row-pinned)>.ag-grid-pinned-left-cells,.ag-grid-pinned-bottom-rows>.ag-grid-pinned-bottom-rows-container>.ag-row:first-child:not(.ag-row-pinned)>.ag-grid-scrolling-cells,.ag-grid-pinned-bottom-rows>.ag-grid-pinned-bottom-rows-container>.ag-row:first-child:not(.ag-row-pinned)>.ag-grid-pinned-right-cells{border-top:var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-grid-pinned-bottom-rows>.ag-grid-pinned-bottom-rows-container>.ag-row:first-child:not(.ag-row-pinned)>.ag-full-width-anchor{border-top:var(--ag-row-border-style) var(--ag-row-border-color) var(--ag-row-border-width)}.ag-body-horizontal-scroll-viewport,.ag-body-vertical-scroll-viewport{background-color:var(--ag-background-color)}.ag-grid-scrollable-area.ag-has-bottom-pinned-rows .ag-grid-pinned-bottom-rows-container::before{content:"";position:absolute;left:0;right:0;top:0;border-top:var(--ag-borders-critical) var(--ag-border-color);pointer-events:none;z-index:3}.ag-find-cell{display:block;overflow:hidden;text-overflow:ellipsis}.ag-find-match{color:var(--ag-find-match-color);background-color:var(--ag-find-match-background-color)}.ag-find-active-match{color:var(--ag-find-active-match-color);background-color:var(--ag-find-active-match-background-color)}.ag-ltr .ag-cell{border-right:var(--ag-cell-horizontal-border)}.ag-rtl .ag-cell{border-left:var(--ag-cell-horizontal-border)}.ag-ltr .ag-cell{border-right-width:1px}.ag-rtl .ag-cell{border-left-width:1px}.ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell){border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell){border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-layout-print .ag-header-cell-last-left-pinned{border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-layout-print .ag-header-cell-first-right-pinned{border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-cell-range-selected:not(.ag-cell-focus),.ag-cell-range-selected.ag-cell-range-chart,.ag-grid-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart,.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart,.ag-grid-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart{background-color:var(--ag-range-selection-chart-background-color)!important}.ag-cell-range-selected:not(.ag-cell-focus).ag-cell-range-chart.ag-cell-range-chart-category,.ag-cell-range-selected.ag-cell-range-chart.ag-cell-range-chart.ag-cell-range-chart-category,.ag-grid-viewport:not(.ag-has-focus) .ag-cell-range-single-cell:not(.ag-cell-inline-editing).ag-cell-range-chart.ag-cell-range-chart-category{background-color:var(--ag-range-selection-chart-category-background-color)!important}.ag-cell-range-selected-1:not(.ag-cell-focus),.ag-cell-range-selected-1.ag-cell-range-chart,.ag-cell-range-selected-1.ag-formula-range,.ag-root:not(.ag-context-menu-open) .ag-grid-viewport:not(.ag-has-focus) .ag-cell-range-selected-1:not(.ag-cell-inline-editing){background-color:var(--ag-range-selection-background-color)}.ag-cell-range-selected-2:not(.ag-cell-focus),.ag-cell-range-selected-2.ag-cell-range-chart,.ag-cell-range-selected-2.ag-formula-range,.ag-grid-viewport:not(.ag-has-focus) .ag-cell-range-selected-2{background-color:var(--ag-range-selection-background-color-2)}.ag-cell-range-selected-3:not(.ag-cell-focus),.ag-cell-range-selected-3.ag-cell-range-chart,.ag-cell-range-selected-3.ag-formula-range,.ag-grid-viewport:not(.ag-has-focus) .ag-cell-range-selected-3{background-color:var(--ag-range-selection-background-color-3)}.ag-cell-range-selected-4:not(.ag-cell-focus),.ag-cell-range-selected-4.ag-cell-range-chart,.ag-cell-range-selected-4.ag-formula-range,.ag-grid-viewport:not(.ag-has-focus) .ag-cell-range-selected-4{background-color:var(--ag-range-selection-background-color-4)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-top{border-top-color:var(--ag-range-selection-border-color);border-top-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-right{border-right-color:var(--ag-range-selection-border-color);border-right-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-bottom{border-bottom-color:var(--ag-range-selection-border-color);border-bottom-style:var(--ag-range-selection-border-style)}.ag-cell.ag-cell-range-selected:not(.ag-cell-range-single-cell).ag-cell-range-left{border-left-color:var(--ag-range-selection-border-color);border-left-style:var(--ag-range-selection-border-style)}.ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-ltr .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-ltr .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,.ag-ltr .ag-cell-range-single-cell,.ag-ltr .ag-cell-range-single-cell.ag-cell-range-handle,.ag-rtl .ag-cell-focus:not(.ag-cell-range-selected):focus-within,.ag-rtl .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected),.ag-rtl .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group,.ag-rtl .ag-cell-range-single-cell,.ag-rtl .ag-cell-range-single-cell.ag-cell-range-handle{border:1px solid;border-color:var(--ag-range-selection-border-color);border-style:var(--ag-range-selection-border-style);outline:initial}.ag-cell.ag-selection-fill-top,.ag-cell.ag-selection-fill-top.ag-cell-range-selected{border-top:1px dashed;border-top-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-right,.ag-ltr .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-right,.ag-rtl .ag-cell.ag-selection-fill-right.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-cell.ag-selection-fill-bottom,.ag-cell.ag-selection-fill-bottom.ag-cell-range-selected{border-bottom:1px dashed;border-bottom-color:var(--ag-range-selection-border-color)}.ag-ltr .ag-cell.ag-selection-fill-left,.ag-ltr .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-left:1px dashed var(--ag-range-selection-border-color)!important}.ag-rtl .ag-cell.ag-selection-fill-left,.ag-rtl .ag-cell.ag-selection-fill-left.ag-cell-range-selected{border-right:1px dashed var(--ag-range-selection-border-color)!important}.ag-fill-handle,.ag-range-handle{position:absolute;width:6px;height:6px;bottom:-1px}.ag-ltr .ag-fill-handle,.ag-ltr .ag-range-handle{right:-1px}.ag-rtl .ag-fill-handle,.ag-rtl .ag-range-handle{left:-1px}.ag-fill-handle,.ag-range-handle{background-color:var(--ag-range-selection-border-color)}.ag-fill-handle{cursor:crosshair}.ag-range-handle{cursor:nwse-resize}.ag-cell-inline-editing{border-color:var(--ag-input-focus-border-color)!important}.ag-cell-inline-editing.ag-cell-editing-error,.ag-cell-inline-editing.ag-cell-editor-input-invalid{border-color:var(--ag-invalid-color)!important}.ag-menu{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background-color:var(--ag-menu-background-color);border-color:var(--ag-menu-border-color);padding:0}.ag-menu.ag-tabs{min-width:var(--ag-tab-min-width)}.ag-menu-list{cursor:default;padding:var(--ag-grid-size) 0}.ag-menu-separator{height:calc(var(--ag-grid-size) * 2 + 1px)}.ag-menu-separator-part::after{content:"";display:block;border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-menu-option{position:relative}.ag-menu-option:focus-visible{outline:none}.ag-menu-option:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-menu-list-no-focus-ring .ag-menu-option:focus-visible::after{content:none}.ag-menu-option-active,.ag-compact-menu-option-active{background-color:var(--ag-row-hover-color)}.ag-menu-option-part,.ag-compact-menu-option-part{line-height:var(--ag-icon-size);padding:calc(var(--ag-grid-size) + 2px) 0}.ag-menu-option-disabled,.ag-compact-menu-option-disabled{opacity:0.5}.ag-show-values-as-inapplicable{opacity:0.5}.ag-ltr .ag-menu-option-icon,.ag-ltr .ag-compact-menu-option-icon{padding-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-menu-option-icon,.ag-rtl .ag-compact-menu-option-icon{padding-right:calc(var(--ag-grid-size) * 2)}.ag-menu-option-icon,.ag-compact-menu-option-icon{width:var(--ag-icon-size)}.ag-menu-option-text,.ag-compact-menu-option-text{padding-left:calc(var(--ag-grid-size) * 2);padding-right:calc(var(--ag-grid-size) * 2)}.ag-ltr .ag-menu-option-shortcut,.ag-ltr .ag-compact-menu-option-shortcut{padding-right:var(--ag-grid-size)}.ag-rtl .ag-menu-option-shortcut,.ag-rtl .ag-compact-menu-option-shortcut{padding-left:var(--ag-grid-size)}.ag-ltr .ag-menu-option-popup-pointer,.ag-ltr .ag-compact-menu-option-popup-pointer{padding-right:var(--ag-grid-size)}.ag-rtl .ag-menu-option-popup-pointer,.ag-rtl .ag-compact-menu-option-popup-pointer{padding-left:var(--ag-grid-size)}.ag-tabs-header{display:flex}.ag-tabs-header-wrapper{display:flex}.ag-tabs-header-wrapper .ag-tabs-header{flex:1}.ag-tabs-close-button-wrapper{border:0;border-right:var(--ag-borders) var(--ag-border-color);padding:var(--ag-grid-size)}.ag-tabs-close-button{border:0;background-color:unset;cursor:pointer;padding:0}.ag-tab{border-bottom:var(--ag-selected-tab-underline-width) solid transparent;transition:border-bottom var(--ag-selected-tab-underline-transition-speed);display:flex;flex:none;align-items:center;justify-content:center;cursor:pointer}.ag-tab:focus-visible{outline:none}.ag-tab:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-tab-selected{border-bottom-color:var(--ag-selected-tab-underline-color)}.ag-menu-header{color:var(--ag-secondary-foreground-color)}.ag-filter-separator{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-filter-select .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}.ag-ltr .ag-filter-condition-operator-or{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-filter-condition-operator-or{margin-right:calc(var(--ag-grid-size) * 2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-set-filter-list,.ag-filter-no-matches{height:calc(var(--ag-list-item-height) * 6)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height) * 10)}.ag-set-filter-filter{margin-top:var(--ag-widget-container-vertical-padding);margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-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)}.ag-set-filter{--ag-indentation-level: 0}.ag-set-filter-item-missing-content{display:flex;column-gap:var(--ag-grid-size)}.ag-set-filter-item-missing-value{min-width:0;overflow:hidden;text-overflow:ellipsis}.ag-set-filter-item-missing-label{flex:none}.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))}.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-ltr .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-rtl .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}.ag-ltr .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-menu .ag-set-filter-list{min-width:max(200px,100%)}.ag-filter-virtual-list-item:focus-visible{outline:none}.ag-filter-virtual-list-item:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-filter-apply-panel{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-filter-apply-panel-button{line-height:1.5}.ag-ltr .ag-filter-apply-panel-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-filter-apply-panel-button{margin-right:calc(var(--ag-grid-size) * 2)}.ag-simple-filter-body-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);padding-bottom:var(--ag-widget-container-vertical-padding);overflow-y:auto;min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing))}.ag-simple-filter-body-wrapper .ag-resizer-wrapper{margin:0}.ag-menu:not(.ag-tabs) .ag-filter .ag-filter-body-wrapper,.ag-menu:not(.ag-tabs) .ag-filter>*:not(.ag-filter-wrapper){min-width:calc(var(--ag-menu-min-width) - 2px)}.ag-multi-filter-menu-item{margin:var(--ag-grid-size) 0}.ag-multi-filter-group-title-bar{padding:calc(var(--ag-grid-size) * 2) var(--ag-grid-size);background-color:transparent}.ag-group-filter-field-select-wrapper{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))}.ag-group-filter-field-select-wrapper>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-multi-filter-group-title-bar:focus-visible{outline:none}.ag-multi-filter-group-title-bar:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-side-bar{position:relative}.ag-tool-panel-wrapper{width:var(--ag-horizontal-size, var(--ag-side-bar-panel-width));background-color:var(--ag-control-panel-background-color)}.ag-tool-panel-content{display:flex;height:100%;overflow:hidden auto}.ag-tool-panel-wrapper.ag-tool-panel-animating{display:block!important;transition:width var(--ag-side-bar-panel-animation-duration) ease-in-out}@media(prefers-reduced-motion:reduce){.ag-tool-panel-wrapper.ag-tool-panel-animating{transition:none}}.ag-tool-panel-external{width:100%;display:flex;flex-direction:row}:where(.ag-tool-panel-external) .ag-tool-panel-wrapper{flex-grow:1}.ag-side-buttons{padding-top:calc(var(--ag-grid-size) * 4);width:calc(var(--ag-icon-size) + 4px);position:relative;overflow:hidden auto;scrollbar-width:thin}button.ag-side-button-button{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;background:transparent;padding:calc(var(--ag-grid-size) * 2) 0 calc(var(--ag-grid-size) * 2) 0;width:100%;margin:0;min-height:calc(var(--ag-grid-size) * 18);background-position-y:center;background-position-x:center;background-repeat:no-repeat;border:none;border-top:var(--ag-borders-side-button) var(--ag-border-color);border-bottom:var(--ag-borders-side-button) var(--ag-border-color)}button.ag-side-button-button:focus{box-shadow:none}.ag-side-button-button:focus-visible{outline:none}.ag-side-button-button:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-selected button.ag-side-button-button{background-color:var(--ag-side-button-selected-background-color)}.ag-side-button-icon-wrapper{margin-bottom:3px}.ag-ltr .ag-side-bar-left,.ag-rtl .ag-side-bar-right{border-right:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-side-bar-left .ag-tool-panel-wrapper,.ag-rtl .ag-side-bar-right .ag-tool-panel-wrapper{border-left:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-side-bar-left .ag-side-button-button,.ag-rtl .ag-side-bar-right .ag-side-button-button{border-right:var(--ag-selected-tab-underline-width) solid transparent;transition:border-right var(--ag-selected-tab-underline-transition-speed)}.ag-ltr .ag-side-bar-left .ag-selected .ag-side-button-button,.ag-rtl .ag-side-bar-right .ag-selected .ag-side-button-button{border-right-color:var(--ag-selected-tab-underline-color)}.ag-rtl .ag-side-bar-left,.ag-ltr .ag-side-bar-right{border-left:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-side-bar-left .ag-tool-panel-wrapper,.ag-ltr .ag-side-bar-right .ag-tool-panel-wrapper{border-right:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-side-bar-left .ag-side-button-button,.ag-ltr .ag-side-bar-right .ag-side-button-button{border-left:var(--ag-selected-tab-underline-width) solid transparent;transition:border-left var(--ag-selected-tab-underline-transition-speed)}.ag-rtl .ag-side-bar-left .ag-selected .ag-side-button-button,.ag-ltr .ag-side-bar-right .ag-selected .ag-side-button-button{border-left-color:var(--ag-selected-tab-underline-color)}.ag-filter-toolpanel-header{height:calc(var(--ag-grid-size) * 6)}.ag-filter-toolpanel-header,.ag-filter-toolpanel-search{padding:0 var(--ag-grid-size)}.ag-filter-toolpanel-header:focus-visible{outline:none}.ag-filter-toolpanel-header:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-filter-toolpanel-group:not(.ag-has-filter)>.ag-group-title-bar .ag-filter-toolpanel-group-instance-header-icon{display:none}.ag-filter-toolpanel-group-level-0-header{height:calc(var(--ag-grid-size) * 8)}.ag-filter-toolpanel-group-item{margin-top:calc(var(--ag-grid-size) * 0.5);margin-bottom:calc(var(--ag-grid-size) * 0.5)}.ag-filter-toolpanel-search{height:var(--ag-header-height)}.ag-filter-toolpanel-search-input{flex-grow:1;height:calc(var(--ag-grid-size) * 4)}.ag-ltr .ag-filter-toolpanel-search-input{margin-right:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-search-input{margin-left:var(--ag-grid-size)}.ag-filter-toolpanel-group-level-0{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-ltr .ag-filter-toolpanel-expand,.ag-ltr .ag-filter-toolpanel-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-expand,.ag-rtl .ag-filter-toolpanel-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-filter-toolpanel-group-title-bar{background-color:transparent}.ag-ltr .ag-filter-toolpanel-header{padding-left:calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size))}.ag-rtl .ag-filter-toolpanel-header{padding-right:calc(var(--ag-filter-tool-panel-group-indent) * var(--ag-indentation-level, 0) + var(--ag-grid-size))}.ag-filter-toolpanel-instance-filter{border-bottom:var(--ag-borders) var(--ag-border-color);border-top:var(--ag-borders) var(--ag-border-color);margin-top:var(--ag-grid-size)}.ag-ltr .ag-filter-toolpanel-group-instance-header-icon,.ag-ltr .ag-filter-toolpanel-instance-header-icon{margin-left:var(--ag-grid-size)}.ag-rtl .ag-filter-toolpanel-group-instance-header-icon,.ag-rtl .ag-filter-toolpanel-instance-header-icon{margin-right:var(--ag-grid-size)}.ag-set-filter-group-icons{color:var(--ag-secondary-foreground-color)}.ag-filter-panel{display:flex;flex-direction:column;width:100%}.ag-filter-panel .ag-simple-filter-body-wrapper{padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) 0}.ag-filter-panel .ag-mini-filter{margin-top:var(--ag-widget-vertical-spacing);margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding)}.ag-filter-panel .ag-standard-button{transition:background-color 0.25s ease-in-out,color 0.25s ease-in-out}.ag-filter-panel .ag-simple-filter-body-wrapper>*:last-child,.ag-filter-panel .ag-set-filter-body-wrapper{margin-bottom:var(--ag-widget-container-vertical-padding)}.ag-filter-panel-container{flex:1;overflow:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding) 0}.ag-filter-panel-container>*:not(:last-child){margin-bottom:var(--ag-widget-container-vertical-padding)}.ag-filter-card{border:1px solid var(--ag-border-color);border-radius:var(--ag-border-radius);background-color:var(--ag-background-color)}.ag-ltr .ag-filter-card .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level) * var(--ag-set-filter-indent-size));padding-right:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-filter-card .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level) * var(--ag-set-filter-indent-size));padding-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-card-header{display:flex;flex-direction:row;align-items:center;padding-top:var(--ag-widget-vertical-spacing)}.ag-ltr .ag-filter-card-header>*:not(:last-child){padding-right:var(--ag-grid-size)}.ag-rtl .ag-filter-card-header>*:not(:last-child){padding-left:var(--ag-grid-size)}.ag-filter-card-heading{flex:1;min-width:0;padding-top:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing));padding-bottom:calc(var(--ag-widget-container-vertical-padding) - var(--ag-widget-vertical-spacing))}.ag-ltr .ag-filter-card-heading{padding-left:var(--ag-widget-horizontal-spacing)}.ag-rtl .ag-filter-card-heading{padding-right:var(--ag-widget-horizontal-spacing)}.ag-filter-card-expand{display:flex;flex-direction:row;width:100%;justify-content:space-between;align-items:center}.ag-filter-card-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-filter-card-expand-icon{display:flex;flex:1;justify-content:end}.ag-filter-card-editing-icon{margin:0 var(--ag-grid-size)}.ag-filter-card-summary,.ag-filter-card-expand-icon .ag-icon,.ag-filter-card-delete-icon .ag-icon,.ag-filter-card-editing-icon .ag-icon{color:var(--ag-filter-panel-card-subtle-color)}.ag-filter-card-expand-icon .ag-icon,.ag-filter-card-delete-icon .ag-icon{transition:color 0.25s ease-in-out}.ag-filter-card-expand-icon:hover .ag-icon,.ag-filter-card-delete-icon:hover .ag-icon{color:var(--ag-filter-panel-card-subtle-hover-color)}.ag-filter-card-heading:hover .ag-filter-card-expand-icon .ag-icon{color:var(--ag-filter-panel-card-subtle-hover-color)}.ag-filter-card-expand,.ag-filter-card-delete{border-radius:var(--ag-button-border-radius);background:none;border:none;cursor:pointer;padding:0}.ag-filter-panel .ag-standard-button{cursor:pointer}.ag-filter-card-summary,.ag-filter-type-select{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding)}.ag-ltr .ag-filter-card-delete{margin-right:var(--ag-widget-horizontal-spacing)}.ag-rtl .ag-filter-card-delete{margin-left:var(--ag-widget-horizontal-spacing)}.ag-filter-card-summary{margin-bottom:var(--ag-widget-container-vertical-padding)}.ag-filter-type-select{padding-top:var(--ag-widget-vertical-spacing)}.ag-filter-card-add{padding:0;border:0;margin-bottom:var(--ag-grid-size)}.ag-filter-add-button{display:flex;flex-direction:row;width:100%;align-items:center;line-height:1.5}.ag-ltr .ag-filter-add-button-label{margin-left:var(--ag-grid-size)}.ag-rtl .ag-filter-add-button-label{margin-right:var(--ag-grid-size)}.ag-filter-add-select{border:0}.ag-filter-add-select .ag-rich-select-value{padding:calc((1.5 * var(--ag-font-size) + 4 * var(--ag-grid-size) - var(--ag-input-height)) / 2) var(--ag-grid-size);border:0}.ag-pivot-mode-panel{min-height:var(--ag-header-height);height:var(--ag-header-height);display:flex}.ag-pivot-mode-select{display:flex;align-items:center}.ag-ltr .ag-pivot-mode-select{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-rtl .ag-pivot-mode-select{margin-right:var(--ag-widget-container-horizontal-padding)}.ag-column-select-header:focus-visible{outline:none}.ag-column-select-header:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-select-header{height:var(--ag-header-height);align-items:center;padding:0 var(--ag-widget-container-horizontal-padding);border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-panel-column-select{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-panel-column-select:not(.ag-last-visible-child){border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-panel-buttons{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding) 0;flex-wrap:wrap;gap:var(--ag-widget-vertical-spacing) var(--ag-widget-horizontal-spacing)}.ag-column-panel-buttons .ag-standard-button{transition:background-color 0.25s ease-in-out,color 0.25s ease-in-out}.ag-column-panel-buttons:last-child{padding-bottom:var(--ag-widget-container-vertical-padding)}.ag-column-panel-buttons-button{line-height:1.5}.ag-column-panel .ag-standard-button.ag-column-panel-buttons-apply-button:not(:disabled){color:var(--ag-column-panel-apply-button-color);background-color:var(--ag-column-panel-apply-button-background-color)}.ag-column-group-icons,.ag-column-select-header-icon{color:var(--ag-secondary-foreground-color)}.ag-column-select-list .ag-list-item-hovered::after{content:"";position:absolute;left:0;right:0;height:1px}.ag-column-select-list .ag-item-highlight-top::after{top:0}.ag-column-select-list .ag-item-highlight-bottom::after{bottom:0}.ag-advanced-filter-header{background-color:var(--ag-header-background-color);border-bottom:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-row{border-bottom:none;height:var(--ag-header-height)}.ag-header-row .ag-grid-scrolling-cells{background-color:var(--ag-header-background-color)}.ag-header-row>.ag-grid-pinned-left-cells,.ag-header-row>.ag-grid-pinned-right-cells{background-image:linear-gradient(var(--ag-background-color),var(--ag-background-color))}.ag-header-row .ag-grid-container-wrapper{background-color:var(--ag-header-background-color);width:100%;height:100%}.ag-header-row .ag-grid-pinned-right-cells{overflow:visible}.ag-header-row .ag-grid-pinned-right-cells .ag-grid-container-wrapper{border-left:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-row .ag-grid-pinned-left-cells{overflow:visible}.ag-header-row .ag-grid-pinned-left-cells .ag-grid-container-wrapper{border-right:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-cell:not(.ag-right-aligned-header) .ag-calculated-column-icon,.ag-header-cell:not(.ag-right-aligned-header) .ag-header-col-ref{margin-right:var(--ag-grid-size)}.ag-header-cell:not(.ag-right-aligned-header) .ag-header-col-ref{color:var(--ag-subtle-text-color)}.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,.ag-ltr .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon{margin-left:var(--ag-grid-size)}.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-label-icon,.ag-rtl .ag-header-cell:not(.ag-right-aligned-header) .ag-header-menu-icon{margin-right:var(--ag-grid-size)}.ag-header-cell.ag-right-aligned-header .ag-header-col-ref{margin-left:var(--ag-grid-size);color:var(--ag-subtle-text-color)}.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,.ag-ltr .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon{margin-right:var(--ag-grid-size)}.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-label-icon,.ag-rtl .ag-header-cell.ag-right-aligned-header .ag-header-menu-icon{margin-left:var(--ag-grid-size)}.ag-show-values-as-dormant{opacity:0.35}.ag-header-cell,.ag-header-group-cell{padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding)}.ag-header-cell.ag-header-cell-moving,.ag-header-group-cell.ag-header-cell-moving{background-color:var(--ag-header-cell-moving-background-color)}.ag-ltr .ag-header-group-cell-label.ag-sticky-label{left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-group-cell-label.ag-sticky-label{right:var(--ag-cell-horizontal-padding)}.ag-header-cell:focus-visible{outline:none}.ag-header-cell:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-header-group-cell:focus-visible{outline:none}.ag-header-group-cell:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-header-cell:focus-visible{outline:none}.ag-advanced-filter-header-cell:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-header-icon{color:var(--ag-secondary-foreground-color)}.ag-header-expand-icon{cursor:pointer}.ag-ltr .ag-header-expand-icon{margin-left:4px}.ag-rtl .ag-header-expand-icon{margin-right:4px}.ag-header-row.ag-header-row-not-first .ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden),.ag-header-row.ag-header-row-not-first .ag-header-group-cell.ag-header-group-cell-with-group{border-top:var(--ag-borders-critical) var(--ag-border-color)}.ag-header-group-cell:not(.ag-column-resizing)+.ag-header-group-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,.ag-header-group-cell:not(.ag-column-resizing)+.ag-header-group-cell:not(.ag-column-hover).ag-column-resizing,.ag-header-cell:not(.ag-column-resizing)+.ag-header-cell:not(.ag-column-hover):not(.ag-header-cell-moving):hover,.ag-header-cell:not(.ag-column-resizing)+.ag-header-cell:not(.ag-column-hover).ag-column-resizing,.ag-header-group-cell:first-of-type:not(.ag-header-cell-moving):hover,.ag-header-group-cell:first-of-type.ag-column-resizing,.ag-header-cell:not(.ag-column-hover):first-of-type:not(.ag-header-cell-moving):hover,.ag-header-cell:not(.ag-column-hover):first-of-type.ag-column-resizing{background-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell::before,.ag-header-group-cell::before{content:"";position:absolute;z-index:1;display:var(--ag-header-column-separator-display);width:var(--ag-header-column-separator-width);height:var(--ag-header-column-separator-height);top:calc(50% - var(--ag-header-column-separator-height) * 0.5);background-color:var(--ag-header-column-separator-color)}.ag-ltr .ag-header-cell::before,.ag-ltr .ag-header-group-cell::before{right:0}.ag-rtl .ag-header-cell::before,.ag-rtl .ag-header-group-cell::before{left:0}.ag-header-highlight-before::after,.ag-header-highlight-after::after{content:"";position:absolute;height:100%;width:var(--ag-column-drag-indicator-width);border-radius:calc(var(--ag-column-drag-indicator-width) / 2);background-color:var(--ag-column-drag-indicator-color)}.ag-header-highlight-before::after{left:0px}.ag-header-highlight-after::after{right:0px}.ag-grid-pinned-left-cells .ag-header-highlight-after::after{right:1px}.ag-header-cell-resize{display:flex;align-items:center}.ag-header-cell-resize::after{content:"";position:absolute;z-index:1;display:var(--ag-header-column-resize-handle-display);width:var(--ag-header-column-resize-handle-width);height:var(--ag-header-column-resize-handle-height);top:calc(50% - var(--ag-header-column-resize-handle-height) * 0.5);background-color:var(--ag-header-column-resize-handle-color)}.ag-ltr .ag-header-cell-resize::after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-rtl .ag-header-cell-resize::after{right:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-header-cell.ag-header-span-height .ag-header-cell-resize::after{height:calc(100% - var(--ag-grid-size) * 4);top:calc(var(--ag-grid-size) * 2)}.ag-grid-pinned-left-cells .ag-header-cell-resize::after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-grid-pinned-right-cells .ag-header-cell-resize::after{left:50%}.ag-ltr .ag-header-select-all{margin-right:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-header-select-all{margin-left:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-floating-filter-button{margin-left:var(--ag-cell-widget-spacing)}.ag-rtl .ag-floating-filter-button{margin-right:var(--ag-cell-widget-spacing)}.ag-floating-filter-button-button{color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;appearance:none;background:transparent;border:none;height:var(--ag-icon-size);padding:0;width:var(--ag-icon-size)}.ag-filter-loading{background-color:var(--ag-control-panel-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;align-items:unset}.ag-paging-panel{border-top:1px solid;border-top-color:var(--ag-border-color);color:var(--ag-secondary-foreground-color);height:var(--ag-pagination-panel-height);overflow:auto hidden;scrollbar-width:thin}.ag-paging-panel-content>*{margin:0 var(--ag-cell-horizontal-padding)}.ag-paging-panel-content>.ag-paging-page-size .ag-wrapper{min-width:calc(var(--ag-grid-size) * 10)}.ag-paging-button{cursor:pointer}.ag-paging-button.ag-disabled{cursor:default;color:var(--ag-disabled-foreground-color)}.ag-number-field.ag-paging-number{display:inline-block}.ag-number-field.ag-paging-number .ag-input-field-input{text-align:end;padding-inline:var(--ag-grid-size)}.ag-paging-button:focus-visible{outline:none}.ag-paging-button:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0px;left:0px;display:block;width:calc(100% - 0px);height:calc(100% - 0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-paging-page-number:focus-visible{outline:none}.ag-paging-page-number:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:0px;left:0px;display:block;width:calc(100% - 0px);height:calc(100% - 0px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-paging-button,.ag-paging-description{margin:0 var(--ag-grid-size);line-height:0}.ag-paging-page-numbers-panel{display:flex;align-items:center;gap:calc(var(--ag-grid-size) * 1.5)}.ag-paging-page-numbers-panel .ag-paging-button{margin:0}.ag-paging-page-numbers{display:flex;align-items:center}.ag-paging-page-number{position:relative;display:flex;align-items:center;justify-content:center;padding:var(--ag-grid-size);margin:0 calc(var(--ag-grid-size) * 0.25);border-radius:var(--ag-border-radius);cursor:pointer;font-variant-numeric:tabular-nums}.ag-paging-page-number:hover{background-color:var(--ag-row-hover-color)}.ag-paging-page-number-current{cursor:default;font-weight:600;background-color:color-mix(in srgb,var(--ag-background-color),var(--ag-foreground-color) 5%)}.ag-paging-page-number-ellipsis{margin:0 calc(var(--ag-grid-size) * 0.25);pointer-events:none;font-variant-numeric:tabular-nums}.ag-paging-row-summary-panel{display:inline-grid}.ag-paging-row-summary-panel::before{content:var(--ag-internal-pagination-width-string);grid-area:1/1;visibility:hidden;font-weight:500;font-variant-numeric:tabular-nums}.ag-paging-row-summary-content{grid-area:1/1;justify-self:center}.ag-status-bar{border-top:var(--ag-borders) var(--ag-border-color);color:var(--ag-disabled-foreground-color);padding-right:calc(var(--ag-grid-size) * 4);padding-left:calc(var(--ag-grid-size) * 4);line-height:1.5;overflow:auto hidden;scrollbar-width:thin}.ag-status-name-value-value{color:var(--ag-foreground-color)}.ag-status-bar-center{text-align:center}.ag-status-name-value{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size);padding-top:calc(var(--ag-grid-size) * 2);padding-bottom:calc(var(--ag-grid-size) * 2)}.ag-column-drop-cell{background:var(--ag-chip-background-color);border-radius:calc(var(--ag-grid-size) * 4);height:calc(var(--ag-grid-size) * 4);padding:0 calc(var(--ag-grid-size) * 0.5);border:1px solid var(--ag-chip-border-color);font-weight:normal}.ag-column-drop-cell:focus-visible{outline:none}.ag-column-drop-cell:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:2px;left:2px;display:block;width:calc(100% - 4px);height:calc(100% - 4px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-column-drop-cell-text{margin:0 var(--ag-grid-size)}.ag-column-drop-cell-button{min-width:calc(var(--ag-grid-size) * 4);margin:0 calc(var(--ag-grid-size) * 0.5);color:var(--ag-secondary-foreground-color)}.ag-column-drop-cell-drag-handle{margin-left:calc(var(--ag-grid-size) * 2)}.ag-column-drop-cell-ghost{opacity:0.5}.ag-column-drop-horizontal{background-color:var(--ag-header-background-color);color:var(--ag-secondary-foreground-color);height:var(--ag-header-height);border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-ltr .ag-column-drop-horizontal{padding-left:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal{padding-right:var(--ag-cell-horizontal-padding)}.ag-ltr .ag-column-drop-horizontal-half-width:not(:last-child){border-right:var(--ag-borders) var(--ag-border-color)}.ag-rtl .ag-column-drop-horizontal-half-width:not(:last-child){border-left:var(--ag-borders) var(--ag-border-color)}.ag-column-drop-horizontal-cell-separator{margin:0 var(--ag-grid-size);color:var(--ag-secondary-foreground-color)}.ag-column-drop-horizontal-empty-message{color:var(--ag-disabled-foreground-color)}.ag-ltr .ag-column-drop-horizontal-icon{margin-right:var(--ag-cell-horizontal-padding)}.ag-rtl .ag-column-drop-horizontal-icon{margin-left:var(--ag-cell-horizontal-padding)}.ag-column-drop-vertical-list{padding-bottom:var(--ag-grid-size);padding-right:var(--ag-grid-size);padding-left:var(--ag-grid-size)}.ag-column-drop-vertical-cell{margin-top:var(--ag-grid-size)}.ag-column-drop-vertical{min-height:50px;border-bottom:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-column-drop-vertical.ag-last-column-drop{border-bottom:none}.ag-column-drop-vertical-icon{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size)}.ag-column-drop-vertical-empty-message{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden;color:var(--ag-disabled-foreground-color);margin-top:var(--ag-grid-size)}.ag-select-agg-func-popup{border:var(--ag-borders) var(--ag-border-color);background:var(--ag-background-color);border-radius:var(--ag-card-radius);box-shadow:var(--ag-card-shadow);padding:var(--ag-grid-size);background:var(--ag-background-color);height:calc(var(--ag-grid-size) * 5 * 3.5);padding:0}.ag-select-agg-func-virtual-list-item{cursor:default}.ag-ltr .ag-select-agg-func-virtual-list-item{padding-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-select-agg-func-virtual-list-item{padding-right:calc(var(--ag-grid-size) * 2)}.ag-select-agg-func-virtual-list-item:hover{background-color:var(--ag-selected-row-background-color)}.ag-select-agg-func-virtual-list-item:focus-visible{outline:none}.ag-select-agg-func-virtual-list-item:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:1px;left:1px;display:block;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-sort-indicator-container{display:flex}.ag-ltr .ag-sort-indicator-icon{padding-left:var(--ag-grid-size)}.ag-rtl .ag-sort-indicator-icon{padding-right:var(--ag-grid-size)}.ag-chart{position:relative;display:flex;width:100%;height:100%}.ag-chart-components-wrapper{position:relative;display:flex;flex:1 1 auto}.ag-chart-canvas-wrapper{position:relative;flex:1 1 auto}.ag-chart-menu{position:absolute;top:16px;display:flex;flex-direction:column}.ag-ltr .ag-chart-menu{right:20px}.ag-rtl .ag-chart-menu{left:20px}.ag-chart-docked-container{position:relative;min-width:var(--ag-chart-menu-panel-width)}.ag-chart-menu-hidden~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.ag-chart-tabbed-menu-header{flex:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ag-chart-tabbed-menu-body{display:flex;flex:1 1 auto;align-items:stretch;overflow:hidden}.ag-chart-tab{width:100%;overflow:hidden;overflow-y:auto}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{position:relative;flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}.ag-chart-settings-nav-bar{display:flex;align-items:center;width:100%;height:30px;padding:0 10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ag-chart-settings-card-selector{display:flex;align-items:center;justify-content:space-around;flex:1 1 auto;height:100%;padding:0 10px}.ag-chart-settings-card-item{cursor:pointer;width:10px;height:10px;background-color:#000;position:relative}.ag-chart-settings-card-item.ag-not-selected{opacity:0.2}.ag-chart-settings-card-item::before{content:" ";display:block;position:absolute;background-color:transparent;left:50%;top:50%;margin-left:-10px;margin-top:-10px;width:20px;height:20px}.ag-chart-settings-prev,.ag-chart-settings-next{position:relative;flex:none}.ag-chart-settings-prev:focus-within,.ag-chart-settings-next:focus-within{box-shadow:var(--ag-input-focus-box-shadow);border-radius:1px}.ag-chart-settings-prev-button,.ag-chart-settings-next-button{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0}.ag-chart-settings-mini-charts-container{position:relative;flex:1 1 auto;overflow-x:hidden;overflow-y:auto}.ag-chart-settings-mini-wrapper{position:absolute;top:0;left:0;display:flex;flex-direction:column;width:100%;min-height:100%;overflow:hidden}.ag-chart-settings-mini-wrapper.ag-animating{transition:left 0.3s;transition-timing-function:ease-in-out}.ag-chart-mini-thumbnail{cursor:pointer}.ag-chart-mini-thumbnail-svg{display:block}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-chart-advanced-settings-wrapper{display:flex;flex-direction:column;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;padding-bottom:16px}.ag-chart-data-wrapper,.ag-chart-advanced-settings-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-control-panel-background-color)}.ag-chart-advanced-settings-wrapper,.ag-chart-advanced-settings{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-data-section,.ag-chart-format-section,.ag-chart-advanced-settings-section{display:flex;margin:0}.ag-chart-advanced-settings-section{padding-top:var(--ag-grid-size);padding-bottom:var(--ag-grid-size)}.ag-chart-advanced-settings-section:not(:last-child){border-bottom:1px solid var(--ag-secondary-border-color)}.ag-chart-empty-text{display:flex;top:0;width:100%;height:100%;align-items:center;justify-content:center;background-color:var(--ag-background-color)}.ag-chart .ag-chart-menu-wrapper .ag-chart-menu{display:flex;flex-direction:row;top:8px;gap:20px;width:auto}.ag-ltr .ag-chart .ag-chart-menu-wrapper .ag-chart-menu{right:calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);justify-content:right}.ag-rtl .ag-chart .ag-chart-menu-wrapper .ag-chart-menu{left:calc(var(--ag-cell-horizontal-padding) + var(--ag-grid-size) - 4px);justify-content:left}.ag-charts-font-size-color{display:flex;align-self:stretch;justify-content:space-between}.ag-charts-data-group-item{position:relative}.ag-charts-data-group-item:not(:last-child){margin-bottom:var(--ag-grid-size)}.ag-chart-menu{border-radius:var(--ag-card-radius);background:var(--ag-background-color)}.ag-chart-menu-icon{opacity:0.5;margin:2px 0;cursor:pointer;border-radius:var(--ag-card-radius);color:var(--ag-secondary-foreground-color)}.ag-chart-menu-icon:hover{opacity:1}.ag-chart-menu-toolbar-button{border:0;background-color:unset;padding:0 2px;border-radius:1px}.ag-chart-mini-thumbnail{border:1px solid var(--ag-secondary-border-color);border-radius:5px;padding:1px}.ag-chart-mini-thumbnail.ag-selected{border-color:var(--ag-minichart-selected-chart-color);border-width:2px;padding:unset}.ag-chart-mini-thumbnail:focus-visible{outline:none;border-color:var(--ag-minichart-selected-chart-color);box-shadow:var(--ag-input-focus-box-shadow)}.ag-chart-settings-card-item{background:var(--ag-foreground-color);width:8px;height:8px;border-radius:4px}.ag-chart-settings-card-item.ag-selected{background-color:var(--ag-minichart-selected-page-color)}.ag-chart-data-column-drag-handle{margin-left:var(--ag-grid-size)}.ag-charts-settings-group-title-bar,.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color);position:relative}.ag-charts-advanced-settings-top-level-group-title-bar{position:relative;background-color:unset}.ag-charts-data-group-title-bar:focus-visible{outline:none}.ag-charts-data-group-title-bar:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-charts-format-top-level-group-title-bar:focus-visible{outline:none}.ag-charts-format-top-level-group-title-bar:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:4px;left:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-charts-data-group-title-bar .ag-charts-data-group-title,.ag-charts-format-top-level-group-title-bar .ag-charts-format-top-level-group-title{cursor:pointer}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding) * 0.5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-container .ag-charts-data-group-item:not(.ag-charts-format-sub-level-group):not(.ag-pill-select):not(.ag-select){height:var(--ag-list-item-height)}.ag-charts-data-group-container .ag-charts-data-group-item.ag-picker-field{margin-top:var(--ag-grid-size)}.ag-charts-data-group-container .ag-list-item-hovered::after{content:"";position:absolute;left:0;right:0;height:1px}.ag-charts-data-group-container .ag-item-highlight-top::after{top:0}.ag-charts-data-group-container .ag-item-highlight-bottom::after{bottom:0}.ag-ltr .ag-charts-format-top-level-group-container,.ag-ltr .ag-charts-advanced-settings-top-level-group-container{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-charts-format-top-level-group-container,.ag-rtl .ag-charts-advanced-settings-top-level-group-container{margin-right:calc(var(--ag-grid-size) * 2)}.ag-charts-format-top-level-group-container,.ag-charts-advanced-settings-top-level-group-container{padding:var(--ag-grid-size)}.ag-charts-format-top-level-group-item,.ag-charts-advanced-settings-top-level-group-item{margin:var(--ag-grid-size) 0}.ag-charts-format-sub-level-group-container{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))}.ag-charts-format-sub-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-format-sub-level-no-header-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-format-sub-level-group-container .ag-charts-format-sub-level-group-item.ag-font-panel-no-header{margin:0}.ag-charts-settings-group-container{padding:var(--ag-grid-size);row-gap:8px;display:grid;grid-template-columns:60px 1fr 60px 1fr 60px}.ag-charts-settings-group-container .ag-charts-settings-group-item:nth-child(3n+1){grid-column:1}.ag-charts-settings-group-container .ag-charts-settings-group-item:nth-child(3n+2){grid-column:3}.ag-charts-settings-group-container .ag-charts-settings-group-item:nth-child(3n+3){grid-column:5}.ag-ltr .ag-chart-menu-panel{border-left:solid 1px var(--ag-border-color)}.ag-rtl .ag-chart-menu-panel{border-right:solid 1px var(--ag-border-color)}.ag-chart-menu-panel{background-color:var(--ag-control-panel-background-color)}.ag-date-time-list-page-title-bar{display:flex}.ag-date-time-list-page-title{flex-grow:1;text-align:center}.ag-date-time-list-page-column-labels-row,.ag-date-time-list-page-entries-row{display:flex}.ag-date-time-list-page-column-label,.ag-date-time-list-page-entry{flex-basis:0;flex-grow:1}.ag-date-time-list-page-entry{cursor:pointer;text-align:center}.ag-date-time-list-page-column-label{text-align:center}.ag-advanced-filter-header{position:relative;display:flex;align-items:center;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);z-index:1}.ag-advanced-filter{display:flex;align-items:center;width:100%}.ag-advanced-filter-buttons{display:contents}.ag-advanced-filter-builder-button{display:flex;align-items:center;border:0;background-color:unset;color:var(--ag-foreground-color);font-size:var(--ag-font-size);font-weight:600;line-height:normal}.ag-ltr .ag-advanced-filter-builder-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-rtl .ag-advanced-filter-builder-button{margin-right:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-button{white-space:nowrap}.ag-advanced-filter-builder-button:hover:not(:disabled){background-color:var(--ag-row-hover-color)}.ag-advanced-filter-builder-button:not(:disabled){cursor:pointer}.ag-advanced-filter-builder-button:disabled{color:var(--ag-disabled-foreground-color)}.ag-advanced-filter-builder-button-label{margin-left:var(--ag-grid-size)}.ag-advanced-filter-builder{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;background-color:var(--ag-control-panel-background-color);display:flex;flex-direction:column}.ag-advanced-filter-builder-list .ag-list-item-hovered::after{content:"";position:absolute;left:0;right:0;height:1px}.ag-advanced-filter-builder-list .ag-item-highlight-top::after{top:0}.ag-advanced-filter-builder-list .ag-item-highlight-bottom::after{bottom:0}.ag-advanced-filter-builder-list{flex:1;overflow:auto}.ag-advanced-filter-builder-button-panel{display:flex;justify-content:flex-end;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-apply-button,.ag-advanced-filter-builder .ag-advanced-filter-builder-button-panel .ag-advanced-filter-builder-cancel-button{margin-left:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-item-wrapper{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;overflow:hidden;padding-left:calc(var(--ag-icon-size) / 2);padding-right:var(--ag-icon-size)}.ag-virtual-list-viewport .ag-advanced-filter-builder-item-wrapper .ag-tab-guard{position:absolute}.ag-advanced-filter-builder-item-tree-lines>*{width:var(--ag-advanced-filter-builder-indent-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root{width:var(--ag-icon-size)}.ag-advanced-filter-builder-item-tree-lines .ag-advanced-filter-builder-item-tree-line-root::before{top:50%;height:50%}.ag-advanced-filter-builder-item-tree-line-horizontal,.ag-advanced-filter-builder-item-tree-line-vertical,.ag-advanced-filter-builder-item-tree-line-vertical-top,.ag-advanced-filter-builder-item-tree-line-vertical-bottom{position:relative;height:100%;display:flex;align-items:center}.ag-advanced-filter-builder-item-tree-line-horizontal::before,.ag-advanced-filter-builder-item-tree-line-horizontal::after,.ag-advanced-filter-builder-item-tree-line-vertical::before,.ag-advanced-filter-builder-item-tree-line-vertical::after,.ag-advanced-filter-builder-item-tree-line-vertical-top::before,.ag-advanced-filter-builder-item-tree-line-vertical-top::after,.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before,.ag-advanced-filter-builder-item-tree-line-vertical-bottom::after{content:"";position:absolute;height:100%}.ag-advanced-filter-builder-item-tree-line-horizontal::after{height:50%;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size));top:0;left:calc(var(--ag-icon-size) / 2);border-bottom:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical::before{width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);top:0;left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical-top::before{height:50%;width:calc(var(--ag-advanced-filter-builder-indent-size) - var(--ag-icon-size) / 2);top:0;left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-tree-line-vertical-bottom::before{height:calc((100% - 1.5 * var(--ag-icon-size)) / 2);width:calc(var(--ag-icon-size) / 2);top:calc((100% + 1.5 * var(--ag-icon-size)) / 2);left:calc(var(--ag-icon-size) / 2);border-left:1px solid;border-color:var(--ag-border-color)}.ag-advanced-filter-builder-item-condition{padding-top:var(--ag-grid-size);padding-bottom:var(--ag-grid-size)}.ag-advanced-filter-builder-item,.ag-advanced-filter-builder-item-condition,.ag-advanced-filter-builder-pill-wrapper,.ag-advanced-filter-builder-pill,.ag-advanced-filter-builder-item-buttons,.ag-advanced-filter-builder-item-tree-lines{display:flex;align-items:center;height:100%}.ag-advanced-filter-builder-pill-wrapper{margin:0px var(--ag-grid-size)}.ag-advanced-filter-builder-pill{position:relative;border-radius:var(--ag-border-radius);padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);min-height:calc(100% - var(--ag-grid-size) * 3);min-width:calc(var(--ag-grid-size) * 2)}.ag-advanced-filter-builder-pill .ag-picker-field-display{margin-right:var(--ag-grid-size)}.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-number{font-family:monospace;font-weight:700}.ag-advanced-filter-builder-pill .ag-advanced-filter-builder-value-empty{color:var(--ag-disabled-foreground-color)}.ag-advanced-filter-builder-pill:focus-visible{outline:none}.ag-advanced-filter-builder-pill:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:-4px;left:-4px;display:block;width:calc(100% - -8px);height:calc(100% - -8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-builder-item-button:focus-visible{outline:none}.ag-advanced-filter-builder-item-button:focus-visible::after{content:"";position:absolute;background-color:transparent;pointer-events:none;top:-4px;left:-4px;display:block;width:calc(100% - -8px);height:calc(100% - -8px);border:1px solid;border-color:var(--ag-input-focus-border-color)}.ag-advanced-filter-builder-pill-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ag-advanced-filter-builder-join-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-join-pill-color);cursor:pointer}.ag-advanced-filter-builder-column-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-column-pill-color);cursor:pointer}.ag-advanced-filter-builder-option-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-option-pill-color);cursor:pointer}.ag-advanced-filter-builder-value-pill{color:var(--ag-foreground-color);background-color:var(--ag-advanced-filter-value-pill-color);cursor:text;max-width:140px}.ag-advanced-filter-builder-value-pill .ag-advanced-filter-builder-pill-display{display:block}.ag-advanced-filter-builder-set-values-pill-wrapper{flex:1 1 152px;width:152px;min-width:152px;max-width:100%}.ag-advanced-filter-builder-set-values-pill{width:max-content;min-width:152px;max-width:100%;cursor:pointer}.ag-advanced-filter-builder-set-values-pill .ag-advanced-filter-builder-pill-display{min-width:0}.ag-advanced-filter-builder-set-values-pill-empty{width:152px}.ag-advanced-filter-builder-item-buttons>*{margin:0 calc(var(--ag-grid-size) * 0.5)}.ag-advanced-filter-builder-item-button{position:relative;cursor:pointer;color:var(--ag-secondary-foreground-color);opacity:50%}.ag-advanced-filter-builder-item-button-disabled{color:var(--ag-disabled-foreground-color);cursor:default}.ag-advanced-filter-builder-virtual-list-viewport{scrollbar-width:thin}.ag-advanced-filter-builder-virtual-list-container{top:var(--ag-grid-size);overflow:visible}.ag-advanced-filter-builder-virtual-list-item{display:flex;cursor:default;height:var(--ag-list-item-height);min-width:max-content}.ag-advanced-filter-builder-virtual-list-item:hover{background-color:var(--ag-row-hover-color)}.ag-advanced-filter-builder-virtual-list-item:hover .ag-advanced-filter-builder-item-button{opacity:100%}.ag-advanced-filter-builder-set-value-list .ag-advanced-filter-builder-item{flex:1 1 auto;min-width:0}.ag-advanced-filter-builder-set-value-list .ag-advanced-filter-builder-item-condition{flex:1 1 auto;min-width:0}.ag-advanced-filter-builder-set-value-list .ag-advanced-filter-builder-item-wrapper{column-gap:max(0px,24px - var(--ag-grid-size) * 1.5)}.ag-advanced-filter-builder-set-value-list .ag-advanced-filter-builder-invalid.ag-invisible{display:none}.ag-advanced-filter-builder-virtual-list-item-highlight .ag-advanced-filter-builder-item-button:focus-visible,.ag-advanced-filter-builder-validation .ag-advanced-filter-builder-invalid{opacity:100%}.ag-advanced-filter-builder-invalid{margin:0 var(--ag-grid-size);color:var(--ag-invalid-color);cursor:default}.ag-advanced-filter-builder-set-picker{position:absolute;width:auto;min-width:240px;background-color:var(--ag-menu-background-color);border:var(--ag-borders) var(--ag-menu-border-color);border-radius:var(--ag-card-radius)}.ag-row-number-cell{background-color:var(--ag-header-background-color);color:var(--ag-header-foreground-color);font-size:var(--ag-font-size);font-family:var(--ag-font-family);font-variant-numeric:tabular-nums}:where(.ag-row-hover:not(.ag-full-width-row)) .ag-row-number-cell{background-image:linear-gradient(var(--ag-row-header-hover-color),var(--ag-row-header-hover-color))}.ag-row-number-header.ag-row-number-selection-enabled{cursor:cell}.ag-row-number-range-highlight{background-color:var(--ag-range-header-highlight-color)}.ag-row-number-range-selected{background-color:var(--ag-row-numbers-selected-color)}.ag-ltr .ag-row-number-header:not(.ag-header-cell-last-left-pinned),.ag-ltr .ag-row-number-floating-filter,.ag-ltr .ag-cell.ag-row-number-cell:not(.ag-cell-last-left-pinned){border-right:var(--ag-pinned-column-border)}.ag-ltr .ag-cell.ag-row-number-cell.ag-row-number-selection-enabled{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxLjU7Ij4KICAgIDxnIHRyYW5zZm9ybT0ibWF0cml4KDEuNTc4NCwwLDAsMS44NjQyOSwtNC40MTM0OSwtNy4yMTIxMikiPgogICAgICAgIDxwYXRoIGQ9Ik0zLjQ0NSw4LjkxMUwzLjQ0NSw3LjQwOUw5Ljc1LDcuNDA5TDkuNzUsNi4wMTRMMTIuMjg1LDguMTZMOS43NSwxMC4zMDZMOS43NSw4LjkxMUwzLjQ0NSw4LjkxMVoiIHN0eWxlPSJzdHJva2U6d2hpdGU7c3Ryb2tlLXdpZHRoOjAuNDFweDsiLz4KICAgIDwvZz4KPC9zdmc+Cg==),auto}.ag-rtl .ag-row-number-header:not(.ag-header-cell-first-right-pinned),.ag-rtl .ag-row-number-floating-filter,.ag-rtl .ag-cell.ag-row-number-cell:not(.ag-cell-first-right-pinned){border-left:var(--ag-pinned-column-border)}.ag-rtl .ag-cell.ag-row-number-cell.ag-row-number-selection-enabled{cursor:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxLjU7Ij4KICAgIDxnIHRyYW5zZm9ybT0ibWF0cml4KDEuNTc4NCwwLDAsMS44NjQyOSwtNC40MTM0OSwtNy4yMTIxMikiPgogICAgICAgIDxwYXRoIGQ9Ik01Ljk3OSw4LjkxMUw1Ljk3OSwxMC4zMDZMMy40NDUsOC4xNkw1Ljk3OSw2LjAxNEw1Ljk3OSw3LjQwOUwxMi4yODUsNy40MDlMMTIuMjg1LDguOTExTDUuOTc5LDguOTExWiIgc3R5bGU9InN0cm9rZTp3aGl0ZTtzdHJva2Utd2lkdGg6MC40MXB4OyIvPgogICAgPC9nPgo8L3N2Zz4K),auto}.ag-cell-batch-edit{background-color:var(--ag-cell-batch-edit-background-color);color:var(--ag-cell-batch-edit-text-color)}.ag-cell.ag-cell-inline-editing{background-color:var(--ag-background-color);background-image:linear-gradient(0deg,var(--ag-background-color),var(--ag-background-color))}.ag-row-batch-edit{background-color:var(--ag-row-batch-edit-background-color);color:var(--ag-row-batch-edit-text-color)}.ag-toolbar{display:flex;align-items:center;overflow:auto hidden;scrollbar-width:thin;border-bottom:var(--ag-borders) var(--ag-border-color);min-height:var(--ag-header-height);background-color:var(--ag-toolbar-background-color);color:var(--ag-toolbar-text-color);font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);white-space:nowrap}.ag-toolbar-right-start{margin-inline-start:auto}.ag-toolbar-item{display:inline-flex;margin:0 calc(var(--ag-grid-size, 8px) * 2)}.ag-toolbar-item:where(:not(.ag-toolbar-panel)){font-weight:var(--ag-header-font-weight)}.ag-toolbar-button-wrapper{display:inline-flex;padding:calc(var(--ag-grid-size) * 0.25);height:100%}.ag-toolbar-button{display:inline-flex;align-items:center;gap:var(--ag-grid-size);padding:calc(var(--ag-grid-size));border:0;background:transparent;color:var(--ag-toolbar-text-color);cursor:pointer;line-height:1;white-space:nowrap;outline:none;font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight)}.ag-toolbar-button-wrapper:hover{background-color:var(--ag-icon-button-hover-background-color, transparent);color:var(--ag-icon-button-hover-color, var(--ag-foreground-color))}.ag-toolbar-button-wrapper:hover .ag-toolbar-button,.ag-toolbar-button-wrapper:hover .ag-toolbar-button .ag-icon{color:var(--ag-icon-button-hover-color, var(--ag-foreground-color))}.ag-toolbar>.ag-toolbar-button-wrapper:first-child>.ag-toolbar-button{border-start-start-radius:calc(var(--ag-border-radius) + 1px)}.ag-toolbar>.ag-toolbar-button-wrapper:last-child>.ag-toolbar-button{border-start-end-radius:calc(var(--ag-border-radius) + 1px)}.ag-toolbar-button:focus-visible{box-shadow:var(--ag-input-focus-box-shadow)}.ag-toolbar-button:focus:not(:focus-visible){box-shadow:none}.ag-toolbar-button:disabled{opacity:0.5;cursor:default;pointer-events:none}.ag-toolbar-panel{display:inline-flex;flex:1 0 0}.ag-toolbar-input{position:relative;display:inline-flex;align-items:center;min-width:200px;max-width:none;margin:0 calc(var(--ag-grid-size) * 2)}.ag-toolbar-input+.ag-toolbar-input{margin-inline-start:0}.ag-toolbar>.ag-toolbar-input:first-child,.ag-toolbar-right-start+.ag-toolbar-input{margin-inline-start:var(--ag-grid-size)}.ag-toolbar>.ag-toolbar-input:last-child{margin-inline-end:var(--ag-grid-size)}.ag-toolbar-input-icon{position:absolute;display:inline-flex;align-items:center;color:var(--ag-toolbar-text-color);opacity:0.5;pointer-events:none;inset-inline-start:var(--ag-grid-size);z-index:1}.ag-toolbar-input-field{color:var(--ag-foreground-color);font-size:var(--ag-font-size);font-family:var(--ag-header-font-family);font-weight:var(--ag-header-font-weight);line-height:1.5;outline:none;border:var(--ag-borders-input) var(--ag-input-border-color);border-radius:var(--ag-border-radius);width:100%;padding-block:calc(var(--ag-grid-size) * 0.5);padding-inline:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2) var(--ag-grid-size)}.ag-ltr .ag-toolbar-input input[class^=ag-][type=text].ag-toolbar-input-field{padding-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-rtl .ag-toolbar-input input[class^=ag-][type=text].ag-toolbar-input-field{padding-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-toolbar-input-field:focus{box-shadow:var(--ag-input-focus-box-shadow);border:var(--ag-borders-input) var(--ag-input-focus-border-color)}.ag-toolbar-input-field::placeholder{color:var(--ag-disabled-foreground-color)}.ag-toolbar-input-widget{flex:1;min-width:0}.ag-toolbar-panel .ag-column-drop-horizontal{background-color:transparent;border-bottom:none;padding:0;font-size:var(--ag-font-size);font-family:var(--ag-font-family)}.ag-toolbar .ag-column-drop-horizontal{border-bottom:none;background-color:transparent;overflow:visible}.ag-toolbar-button-chevron{display:inline-flex;align-items:center}.ag-toolbar-separator{align-self:stretch;width:0;margin:calc(var(--ag-grid-size) * 1.75) 0;border-inline-start:solid var(--ag-toolbar-separator-width) var(--ag-toolbar-separator-color)}.ag-toolbar-find{gap:calc(var(--ag-grid-size) * 0.5);width:280px;max-width:none;min-width:220px;border:var(--ag-borders-input) var(--ag-input-border-color);border-radius:var(--ag-border-radius);background-color:var(--ag-background-color)}.ag-toolbar-find:focus-within{box-shadow:var(--ag-input-focus-box-shadow);border:var(--ag-borders-input) var(--ag-input-focus-border-color)}.ag-toolbar-find .ag-toolbar-input-field{border:none;background-color:transparent;flex:1;min-width:0}.ag-toolbar .ag-toolbar-find input[class^=ag-][type=text].ag-toolbar-input-field{border:none;box-shadow:none}.ag-toolbar .ag-toolbar-find input[class^=ag-][type=text].ag-toolbar-input-field:focus{border:none;box-shadow:none}.ag-toolbar-find-match-count{white-space:nowrap;font-size:var(--ag-font-size);color:inherit;opacity:0.7;user-select:none;font-variant-numeric:tabular-nums;flex-shrink:0;text-align:end}.ag-toolbar-find-button{flex-shrink:0;padding:calc(var(--ag-grid-size) * 0.5)}.ag-calculated-column-panel .ag-panel-content-wrapper{padding:var(--ag-grid-size) var(--ag-cell-horizontal-padding)}.ag-calculated-column-form{display:flex;flex-direction:column;gap:calc(var(--ag-grid-size) * 2);min-width:260px;flex:1 1 auto;min-height:0}.ag-calculated-column-panel .ag-calculated-column-form .ag-input-field-input[readonly]{--ag-background-color: var(--ag-input-disabled-background-color);--ag-input-border-color: var(--ag-input-disabled-border-color);color:var(--ag-disabled-foreground-color)}.ag-calculated-column-panel .ag-calculated-column-form .ag-input-field-input[readonly].invalid:not(:focus){border:var(--ag-borders-input-invalid) var(--ag-input-border-color-invalid)}.ag-calculated-column-panel .ag-calculated-column-form .ag-input-field-input[readonly].invalid:focus{border-color:var(--ag-invalid-color)}.ag-calculated-column-expression-wrap{display:flex;flex-direction:column;flex:1 1 auto;gap:var(--ag-grid-size)}.ag-calculated-column-expression-wrap .ag-text-area{flex:1 1 auto}.ag-calculated-column-expression-wrap .ag-text-area-input-wrapper{height:100%}.ag-calculated-column-expression-wrap .ag-text-area-input{height:100%;resize:none;padding-top:calc(var(--ag-grid-size) / 2);padding-bottom:calc(var(--ag-grid-size) / 2)}.ag-rtl .ag-calculated-column-expression-wrap .ag-text-area-input{padding-left:var(--ag-input-padding-start);direction:ltr}.ag-calculated-column-expression-tools{display:flex}.ag-ltr .ag-calculated-column-expression-tools .ag-label{text-align:right}.ag-rtl .ag-calculated-column-expression-tools .ag-label{text-align:left}.ag-calculated-column-expression-tools .ag-field-set-wrapper{gap:var(--ag-grid-size);flex-wrap:nowrap;align-items:center}.ag-calculated-column-token-reference{color:var(--ag-calculated-column-reference-color)}.ag-calculated-column-token-function{color:var(--ag-calculated-column-function-color)}.ag-calculated-column-token-operator{color:var(--ag-calculated-column-operator-color)}.ag-calculated-column-expression-error{text-decoration:underline wavy var(--ag-calculated-column-error-underline-color);text-underline-offset:0.15em;text-decoration-skip-ink:none}@media(forced-colors:active){.ag-calculated-column-expression-error{text-decoration-color:CanvasText}}@media(forced-colors:active){.ag-calculated-column-expression-mirror{display:block;forced-color-adjust:none;-webkit-text-fill-color:transparent}}.ag-standard-button.ag-calculated-column-expression-tool{padding:calc(var(--ag-grid-size) / 2)}.ag-calculated-column-suggestion-path{display:flex;align-items:center;gap:calc(var(--ag-grid-size) / 2)}.ag-calculated-column-suggestion-parent{min-width:0;overflow:hidden;text-overflow:ellipsis}.ag-calculated-column-suggestion-parent,.ag-calculated-column-suggestion-separator{color:var(--ag-calculated-column-parent-suggestion-color)}.ag-calculated-column-suggestion-separator{flex:none}.ag-calculated-column-suggestion-leaf{overflow:hidden;flex:none}.ag-calculated-column-picker-list{width:var(--ag-calculated-column-suggestion-list-width)}.ag-calculated-column-empty-picker{display:grid}:where(.ag-calculated-column-empty-picker)>.ag-autocomplete-list{grid-area:1/1}.ag-calculated-column-empty-message{opacity:0.5;grid-area:1/1;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);overflow-wrap:anywhere;align-self:center}.ag-calculated-column-actions{display:flex;justify-content:flex-end;gap:calc(var(--ag-grid-size) / 2)}.ag-calculated-column-action{min-width:72px}.ag-calculated-column-highlighted{background-color:var(--ag-calculated-column-highlight-color)}.ag-column-header-edit-popup-content{display:flex;flex-direction:column;gap:calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 2);box-sizing:border-box;flex:1 1 auto;min-width:0}.ag-column-header-edit-popup-editor{flex:1 1 auto}.ag-column-header-edit-popup-actions{display:flex;justify-content:flex-end;gap:var(--ag-widget-horizontal-spacing)}.ag-column-header-edit-highlighted{background-color:var(--ag-column-header-edit-highlight-color)}.ag-input-field-input{width:100%;min-width:0}.ag-checkbox-input-wrapper{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size)}.ag-checkbox-input-wrapper input,.ag-checkbox-input-wrapper input{-webkit-appearance:none;opacity:0;width:100%;height:100%}.ag-checkbox-input-wrapper{print-color-adjust:exact;background-color:var(--ag-checkbox-background-color);border-radius:var(--ag-checkbox-border-radius);display:inline-block;vertical-align:middle;flex:none}.ag-checkbox-input-wrapper:focus-within,.ag-checkbox-input-wrapper:active{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-cell-editing-error .ag-checkbox-input-wrapper:focus-within,.ag-cell-editing-error .ag-checkbox-input-wrapper:active{box-shadow:var(--ag-input-error-focus-box-shadow)}.ag-checkbox-input-wrapper.ag-disabled{opacity:0.5}.ag-checkbox-input-wrapper::after{content:var(--ag-icon-font-code-checkbox-unchecked, "\\f108");font-family:inherit;color:var(--ag-checkbox-unchecked-color);display:var(--ag-icon-font-display-checkbox-unchecked, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper.ag-checked::after{content:var(--ag-icon-font-code-checkbox-checked, "\\f106");color:var(--ag-checkbox-checked-color);display:var(--ag-icon-font-display-checkbox-checked, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper.ag-indeterminate::after{content:var(--ag-icon-font-code-checkbox-indeterminate, "\\f107");color:var(--ag-checkbox-indeterminate-color);display:var(--ag-icon-font-display-checkbox-indeterminate, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-checkbox-input-wrapper::before{content:"";background:transparent center/contain no-repeat;position:absolute;inset:0;background-image:var(--ag-icon-image-checkbox-unchecked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-unchecked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-unchecked, var(--ag-icon-image-opacity, 0.9))}.ag-checkbox-input-wrapper.ag-checked::before{background-image:var(--ag-icon-image-checkbox-checked, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-checked, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-checked, var(--ag-icon-image-opacity, 0.9))}.ag-checkbox-input-wrapper.ag-indeterminate::before{background-image:var(--ag-icon-image-checkbox-indeterminate, var(--ag-icon-image));display:var(--ag-icon-image-display-checkbox-indeterminate, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-checkbox-indeterminate, var(--ag-icon-image-opacity, 0.9))}.ag-toggle-button-input-wrapper{box-sizing:border-box;width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);max-width:var(--ag-toggle-button-width);height:var(--ag-toggle-button-height);background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height) * 0.5);position:relative;flex:none;border:var(--ag-toggle-button-border-width) solid;border-color:var(--ag-toggle-button-off-border-color)}.ag-toggle-button-input-wrapper input{opacity:0;height:100%;width:100%}.ag-toggle-button-input-wrapper:focus-within{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-toggle-button-input-wrapper.ag-disabled{opacity:0.5}.ag-toggle-button-input-wrapper.ag-checked{background-color:var(--ag-toggle-button-on-background-color);border-color:var(--ag-toggle-button-on-border-color)}.ag-toggle-button-input-wrapper::before{content:" ";position:absolute;top:calc(0px - var(--ag-toggle-button-border-width));left:calc(0px - var(--ag-toggle-button-border-width));display:block;box-sizing:border-box;height:var(--ag-toggle-button-height);width:var(--ag-toggle-button-height);background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;transition:left 100ms;border:var(--ag-toggle-button-border-width) solid;border-color:var(--ag-toggle-button-switch-border-color)}.ag-toggle-button-input-wrapper.ag-checked::before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-border-width));border-color:var(--ag-toggle-button-on-border-color)}.ag-radio-button-input-wrapper{font-family:var(--ag-icon-font-family);font-weight:var(--ag-icon-font-weight);color:var(--ag-icon-font-color);font-size:var(--ag-icon-size);line-height:var(--ag-icon-size);font-style:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:var(--ag-icon-size);height:var(--ag-icon-size)}.ag-radio-button-input-wrapper input,.ag-radio-button-input-wrapper input{-webkit-appearance:none;opacity:0;width:100%;height:100%}.ag-radio-button-input-wrapper{print-color-adjust:exact;background-color:var(--ag-checkbox-background-color);border-radius:var(--ag-checkbox-border-radius);display:inline-block;vertical-align:middle;flex:none}.ag-radio-button-input-wrapper:focus-within,.ag-radio-button-input-wrapper:active{outline:none;box-shadow:var(--ag-input-focus-box-shadow)}.ag-cell-editing-error .ag-radio-button-input-wrapper:focus-within,.ag-cell-editing-error .ag-radio-button-input-wrapper:active{box-shadow:var(--ag-input-error-focus-box-shadow)}.ag-radio-button-input-wrapper.ag-disabled{opacity:0.5}.ag-radio-button-input-wrapper{border-radius:var(--ag-icon-size)}.ag-radio-button-input-wrapper::after{content:var(--ag-icon-font-code-radio-button-off, "\\f127");color:var(--ag-checkbox-unchecked-color);display:var(--ag-icon-font-display-radio-button-off, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-radio-button-input-wrapper.ag-checked::after{content:var(--ag-icon-font-code-radio-button-on, "\\f128");color:var(--ag-checkbox-checked-color);display:var(--ag-icon-font-display-radio-button-on, var(--ag-icon-font-display));position:absolute;top:0;left:0;pointer-events:none}.ag-radio-button-input-wrapper::before{content:"";background:transparent center/contain no-repeat;position:absolute;inset:0;background-image:var(--ag-icon-image-radio-button-off, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-off, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-off, var(--ag-icon-image-opacity, 0.9))}.ag-radio-button-input-wrapper.ag-checked::before{background-image:var(--ag-icon-image-radio-button-on, var(--ag-icon-image));display:var(--ag-icon-image-display-radio-button-on, var(--ag-icon-image-display));opacity:var(--ag-icon-image-opacity-radio-button-on, var(--ag-icon-image-opacity, 0.9))}.ag-range-field-input{-webkit-appearance:none;width:100%;height:100%;background:none;overflow:visible}.ag-range-field-input::-webkit-slider-runnable-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius)}.ag-range-field-input::-moz-range-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius)}.ag-range-field-input::-ms-track{margin:0;padding:0;width:100%;height:3px;background-color:var(--ag-border-color);border-radius:var(--ag-border-radius);border-radius:var(--ag-checkbox-border-radius);color:transparent;width:calc(100% - 2px)}.ag-range-field-input::-webkit-slider-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size);transform:translateY(calc(var(--ag-icon-size) * -0.5 + 1.5px))}.ag-range-field-input::-ms-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size)}.ag-range-field-input::-moz-ag-range-thumb{margin:0;padding:0;-webkit-appearance:none;width:var(--ag-icon-size);height:var(--ag-icon-size);background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-checkbox-unchecked-color);border-radius:var(--ag-icon-size)}.ag-range-field-input:focus{outline:none}.ag-range-field-input:focus::-webkit-slider-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}.ag-range-field-input:focus::-ms-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}.ag-range-field-input:focus::-moz-ag-range-thumb{box-shadow:var(--ag-input-focus-box-shadow);border-color:var(--ag-checkbox-checked-color)}.ag-range-field-input:active::-webkit-slider-runnable-track{background-color:var(--ag-input-focus-border-color)}.ag-range-field-input:active::-moz-ag-range-track{background-color:var(--ag-input-focus-border-color)}.ag-range-field-input:active::-ms-track{background-color:var(--ag-input-focus-border-color)}.ag-range-field-input:disabled{opacity:0.5}
`,document.head.appendChild(e)}})(),(function(){if(typeof document<"u"){var e=document.createElement("style");e.setAttribute("data-ag-scope","legacy"),e.textContent=`@font-face{font-family:"agGridAlpine";src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABngAAsAAAAANfQAABmQAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIw2BmAAjWwKviiybwE2AiQDgwQLgUQABCAFhEYHhn8bsy5lQcDGwRjE+5qiKJebRvb/X5IbY8QLkjt0uBG7bR8WjcjFNY3oCHmWr84qeinaU1Ahi0hkoOBnH8wWzVr1Zi7biktu6aGizQcqMpSS54Gx3DuTifnd0BKGTxxRCZmaCJWUvpG6cm3Jd3okli2Z6OzDAECVKnXqTLoiPOTf3tUOEgusLWrLWoYfKMAs8hYlEGDU0rQf+G329BuNMdpmI7SJUom+iTEFY8MOjDpYt4mr0EW6+qsKlsF2EQBEkynHd8ykVtdYwwC75cFAfsLgfO9mzWAtMwlUSIAVdcqpAB3ZLq0jd29N2vfyk/wmf1eXxVbcA3l3XxoB+1PzG3ZqmT0sXMqYLfltr7sMApNgiSeEr/y8znS1QgjDFt6Tbfr/6xuev/75ZId0OiKdQ4pDsoMM0inksC7hAtDUTkRTtwx7l4WGpePYwvf/96/CAc/YJg7CzctvzsTyv1h8Lb0VLxW4oBUu4IeKFSyWhOpUN0r8gdmqRn0Ya74PO7Zbv21khgZKxpCQITp3nP/FKICmTefU+V4GaC/1z28xjErWLEAxZqG8eFYHW4fQmioF7D3Js8CY9dmfJ/aVf8pltUZ+ukgf05O+0T5qK1KrWdvOcYoWeurMIOg4yWSxqQqMqG2Lw6VF+gSXp4fxXCUIJXLhbsM0WatMbghlMOObEcwyw5JOnK84NhXLSFKLlrJU0/Vd1lFrb1uhMelC0viSk/Z9mpQJKVdglH2oF5PIcbbJN/f10CQ8QuAa1RGW+pF2jDo+kstt63bDUCFltoyUBEOJZXyVNq1FItITsLga0nY08W5uyQm2LZTJE7kBJtf2s1pYpBQXtCzu2E+jhIQ0g9rrRCjqtOhc4Knvfnc3vNSGpe6lzlh9TTOP+erWtK3ffN2AUCVtYlFkJneI2cikffejc90oEDiDJ7Tq7ze6Qugyy/Pd3+PypuaA8+AW+APcB3+DJ6AKdfiHiUWjX0jYu/8xS+LGtTfrlhSygMc5esHHdEpMpbb6pTZWCcA5bceEW7SynDzUkMp9MVQwHHHVTEk+wAMezjEVVR6Hzv2C63Gq2qa50oVk4DxHJ/jONMsePpNrVdSquAop4zbHCoEiTWhIitQxqdpwudqBtVLLOideuKILmSY3I5hhs24xFk8lE2aw7pBSXV5Ozbejmg1btG3cBDrpNJtuDCSnDuUjE12VRhXw6sS7+bhN1ywTGC5h+lOrEaZuVjfZFeFAEDwLdlXan8ZLjXTXpMpWDMbPFu2+tgUG9GMFl1Ve/Q6hyjHd1t2KNLz13a9RW13Z8pWGyDB/vC051cxvnDG3iE3Vqsw49xnXHM3WLiwYWBUFfQ/10+iaR5TMHpCqzrz9XpNVlbm40tbvUc0mrTt2pXcfhH2rGX2+ARevOTWopwyt0zuqhDIXDrNyyeCYenyBUuB8rqKKVveVP0goLuoJ/tK/L9yIDRVQpNWQfGn3xd1j/Bf5GXkBzssTtLeRZ+ijwHksgc5bz6E41D8UepB87CCaeT9DwwmgjVFRa15472f+GV11r3wMZp1cC1rT6ah5++CQiq3rQnXCdlNkadleGpyyy7Bzbj9SVqNQEQVFTJPm6f3727Tr0KlLtx69+vQbMGjIsBGjxoybMGnKtBmz5sxbsGjJshWr1qzbsGnLtG07dhHd9uw7cOjIMUpz4tSZcxcuXbl249adew/ggBdLFnzmP3/nxPNFVQ9NRIcl28ph7Mms4iTlGqL7NlDe8fQUdDOdgcfaAU/2JzIN2gfPdACe6wZ4oYfgpa6BVzoCr3ULvNUxeKdD8F7n4IPugI+6DT7pHvii6+Cr9sA33QTfdRf80APwU7vgl07Bb90Hf+aPIKDRQDAEhiEIoApBoQbBoA5ZQQOyhiZkAy3IFtqQHfRA9tALOUAf5Aj9kBMMQM4wCMFhCELAMISEEQgFoxAaxiAMjENYmIBwMAnhYQoiwDREhBmIBLMQGeYgCsxDVFiAaLAI0WEJYsAyxIQViAWrEBvWIA6sQ1zYgHiwCfFhCxJABxJCFxLBNiSGC5AELkJSuATJlqYnh1yGyBWIXIVACVIu/ZYKVk0NQxoY0sKQDob0MGQAlCEjVCCTyWWGIQsMucGQOwx5wJAnDHnBkDcM+cCQLwz5wZA/fAjgnpFuyj/gP2gkoL0hqVFsoS/QKIopUz+AEIQJ6kuBb4XMlVOG1tCYgJdLF4cEHBW03RQpBbO/zdDCw6UxWe9cJ/CAJF1wuRwZH20od1QjVFVFB0uCo5J8Lt9GsVc4ENflrnQIlXa0esfc5aK7HO2Ma1xzqr3eKrG89TTJGC6HW3ZITMjt3vhcNa4kirK7fMnsAMyCTqe7zOV0BSUxgE4B9hiboqt2zKsUKpvK7opUFj0nyl8UrHQ7AFVJnJWC02sXJYdXcM4SxAgchkz+pK+NIgBKgAgFzsQmQvcwfjBMSQ1vpYTtpTxEWFMNP/QZj0e5DdtpbSqhGC8ezEUDN5E+1ad2d09LS6dvZIeBev+5Xno4D/dnp43Tg9rAzLJtV99C7dGrBGKIoDgmmKE248UZoGYyS8D0jTNq4TlC9jps5GHTDIQgPuo1hFoOocbeaYl2D2cuy4x06TnNz4/3GlnVR3xdMzLrGclfk+j+LvQw2MfO9FYhXdGJ6SoqLVYxuFVFY6U/wIYIIzHOaimPEgU7EMMApbENKRX68/PApV54gSuNV5dgmXbxZUeK0zTlnmO9B3oVV0XZ+jU4norQRHIfp7TLlwkUgPrB+AS1dQOrFI/T24xsOJ7psR3ZlGTCCBtF0N8DB3aKdJuhfsCirIVT+4gaBKe4P63GmqQSLJ3iSg8ryc034GogeJ++EcGOMpH2Sf0YN7SqfZkM0mdyAwMjUJs8dwsbNxz0VF16jzyQQ/p5oA5njfzs3l6jm6qF60hf1nOPmZT+/u6eG1GeyZ3VzuWhTmf7j9J6BvQM8AxeFCJ1Z/s55b1+2FrfrQIf6eqq13pkJsunMPbvT/WM5q9Iv+u8ZbGomqZeKkHtS0ayFwBTRM2ysLG1Rb9eUM/cMG6d087ePKC/d8x1tI9pGu8dyV32KTFiXzvCIsn0mcqcGWbUTmMjG6TcbxHusA6oKwjtNjppSp8JOnTdEOk5qB1OpaOE7o+FqdWte6aS77y5J7QnZiKzVGKy/5JFr5sbisrABo+5hJicGWbRW+eQv4ZavMRs/bhhbRXTJFKJrVbR0zDzvBQmtwiZtnCpz1chgNgZ9B6goBby44zHCE1hG+IIYpotyCG2awUIsA14YJ0AgQGOVoEQEOnITZREORMD11rgsUSylolx7dE73JB2QsyL8PYhpCIU2hDAxpsHxfuvUSR2tQB5kR1PBePBCKttE6B4IANewMEqNPMRFDsGw0+HFdGG4KWMlKDnMAvED3ibQKQ73326nZEQp5SwMOUjMJjQdjfERjGUuFtK6qWa9J0iUBtNoKCRt/rrOWgclPBqgpFVMy8i1vnfPU4MRIjTzN+bfhXOfXvtaz6yPr/7tD+5orDi+jYidQfH1xR2LGGkZv+Ur08KkqdbHi8m/fn5g4tmcakbd/tPz2bKlWJx7p/JkGlu+btxtVSa91c2alnb/6t7HEV+7dN867UqDX/YuhSmfTOnXw7eD2QLkvYwHvI9OXi2kp9/SF2IITMXYMh1/f0cgiFuA3jeyMdtrVNoC8D8KQK43R/EerqkS7rEy2CH7gZx4TdcI569tN9r1DcLjx2He14RgHgZSh2/MR7xAs9+7EBNEyleItmWTsXTyXSankjxJm6wnYwxqT0gosCwuSX6yoKr0xNE8TH63ASDp6l26d1yCvRfZu0p5X33yJIso0q6mQQIoOBcF8RAkCTA9AgnIz2Bb0vVKQqaaAALjIbxI+wX42b9o/bJ+KC+P4JLeNiKwiBqO0AEBYqRBY5QwMMiMZ9IEHuHhowOlQqJex2eJofobGFvgAVNNMzyw+Nms3pm9y73h8JsSWZFJtA3IN671b5AF6iTOF1+a/25RQOyzK/szq9fzWprEntIqJ32LemSdVkmwfHA0AofO54KUzu28dCRYV+nPbmH3Zed1Bz3AG+8R/PzXkOi3UMZ/c0uQ+lWfY+yzGZD/DqHBewwQ2Rir2SHfYR2q4o0gXY1N+Lnguu1C6qUjRZX3pkLfoWDq/0c8uEwWPF+sQsAwq1FPXIuVlp1F0IR476Ow3E6liCwvfe0MS1FX/iO1Oc7sX9VVAmg2cjwmGzIOD7JIlRJOtTbyKPfhWXaPSw268Cl9mQ8aBfsFEOGFKTfDhBNVfaOmRnGrdlxfc74pIVxHceEIkYQZ1i5UTSTqqWS9RtvnHn+3jTHb7z6ZFkTSa5g7cC+7zt+mN0LjmEbip8lzorzqbDdxnXrXvZnkd/EtiRT9E3URbUueDOzC2XRo6GE8EcD2tW1NDMzKxODxM6CSuEJ1rD2a5/V+kf355V1UIt3EVgLPjLOAfxYZ7Jf31XsXJt6+49m450v+BDvN9kSksI50Z72ln72K+nyPnb73RRGSPDbNcY0UtrkfL7SzdVFeQ9yImYi+jSGesAfizlOQWKUpfwL7Yz+Gm2kOOQ0FvOy30/KFmJmPcP47SHFuVFOf953ed99XH/B/c1LLJYHtA3UCygK00l51IN9aPHpz2cv1ZUZ9S4qcT0D9cGMHNYt+yu4Ob9V2382Gc/Y40OjpkqnRDt6vW/Ey2i/6SEhrhmFpNMzB8lYOEZxiEqdF04VX9Jk5nOvYbuvA0HyTmM+P5fLzeXnPyWavedy8/lPK2gP7u1cbOhFQmf+BEAu8jQzzajN/Nvc0mJuNQNvkdUtMPJq4Jl2NTIQ358QihsWm5R06uSaNUnJ9drs8Ij6CH5iu5vWFbO8rtYc3hxZvryvsNDePiH+lJ/u1MlTWxI2bpzzRk8MBSWEEnVv5wDz8m8jyzhkMiOItmxcrfmAb4zkqyrvgc0hrEYOfqNAqFqn/mZKOxcKFHUohNL0UDUFbNp3Tn0OvnKysmWybOIlBikQfFlwBNyrr8pKmusmKLbZ0cposbRSGjf7b1VO33GZ/KylbYbddRe6xPuuXd3ymx5zA64O8y6L/b1MgQ093oz44eOovq5LPdvjm1gY/A5m8L6S4MxM4livJVu9iAQsLsDr7Ddf9zleHeX1bz18Mny9luO/c1dC1LCnOF+TQyt2mWeFMPlJoK+n6+j1Mhxu9Unf/rg5YfsYKCEMsO3uLVo3RwL7GqG2G7Mnh8C8EOXitszXCJs8OGMPcm+lX7wmlTBY+limvjRV9MzSa8fqWSJJQVtOI21MMKvqK8VT6GNZ1IDliaQz/RzLGc5eC6d/L2JHa01pTY51jmVxI3+zlR1F0UFg+3ybTDOlZ969q6ey2kZWzqkeiRNjfEJ/xmWLs5de0R13wUR7+GiTqtPbDi72nUMYRuBkjs1o50xzdMEEY3yhHuUpxP/w/H12/KvOo2q1np6XYZE3dvinMMK4csPRC2iJgVmVARZFYzs5RShITCrOdzkvT4slSvILx3M1ozSUgaWccA2DoQrnuDnntbLSC0u1jqVWJwkpowmSAon8OYAQ1INe9KVr37xk5xcSJe0nFD4npzR2WOSbdC7G8N+PIKcIplrClKGgCehzBbjbu5zevw/N6nzxllGiuxr3ff+du/CDfeig/YPWPMLZr7pvOrDZRGYRahKbxftM+bKYompPEvATXMco4ot4qJgpNg2ZxWZliMw201a/uUXMF5ts+zAkTINP2zX6Wxcjs30D/1itA96DgefyujDxlULaTlmbslaQx+PlNgQNCJjLUbaTKAOMZF1yy5ooDZRhTcrnGU2ApGVrp4/48aOU/rBNV6XZ8Wwte0di0NDIht5wBTLrciMzGBK1tmY9sLOTSvd4D5yv+bW2Zt9nrO4D84rAKDKajWLsLjKCaEiwOnfrzaN0gE+PHPw3aXuAz4PnAZ/KoscHhU/ZzZTZ7XEPLB8ToQ1PTAzXRowRlFFWXL1KopRp/RAQiOJB7KSqzdf/Tf33+JZQCLVkkobqVD7TKNNC8elnv9dYdOblZh2kmhcscCEJk2ed6rNWFubPXx8vCrwdEJA49FSlKit2dCAMF6acrOzsfPYMfT43et5283eLJafB141IbC7COTf6LO5sXOT++Cb+87VrEOs3UK9gMBTOiL91zgyFglG/nQdSfQ3b/wh4Hxzfu4SwfF3e/zzvg/FlhXz6e69XD6rTpevQ6fV0hkoZZmyaju6/Rjq09xMbt/CGKzdA5Wwa23EA/nIwjxP9Yic2O0Bjh1i8/29Th13rGwfYbxXMN407aKpXjx0Hmz4PzqjKwL//9q65tdRAzRoxc+aILKrhfNCgd99ZIwzU8xxzp6LJNQZuNpudzTXcJeLes9kG7t3KuPD1vaJBJmuYXqgC0/N/ndymJytILh14KXOPhDR4bh081/PP2ireyn8vYorgeZ9XkjOAsQN5rO8FPz0P/a/lFK2C9POnTCYUBAZKpYBKjblG+LwpLOU+npNS4NixUWTjzlX0nReKCuIFU+aX0NcY0tNd1FUTxneryyWC8fYEIbdkX/X6IF1Dbo5Gs3Yta89e8LhG7hP3rE2TpqYe8Vo0UzDDrFzdtWtkBuVifuvgayetNDkdRLXlpb4+EQhXfpiwRq+q16mG9oj27NIp6/XKtROIIroyFS59SlvLeFEbe8V7h3Qqo2rNeEICXZ+qw7h6wE6q8vTx3LoZ6UF2JzDCwy+5r+cD8AzxhADzAzNhi3GX0educzO6csXKlSgcxJSUnNUmudlPzLFYvpu3z4v2Pn8uNTWhwHfm7vfthfmV1r5Th5VhLj4VsGHD4sWVJ1OEwwkOjmXFKtXTocT2Nh/0yGH9tm1onDAt7TP+5mP3RY2LO30anXFFzU1N4MrGYJ7TwRNEE85oNPaUn9gPXBeV04+NF41HEuq7Hia39RdoF2y2+7T7GPGC4yD13q3bQr8tIebLooMVU+9nLLjzgPrhwv/gqoP7qb2OF24nY4swhGy8QL/XDKreN/i0tadK42fPc5j4MN09yvZ/sbshPy2/vc2jEZ0FOjAS3crahJZz5g1Xbj1iEBvKxeUPKK8SHDnCunjR99JFRetilXJ6L3nGgN3ADFJvj1LZGzHDF/xXdRZvKl6uM1U2FZ3xFT1y0aaSWXqqnCqljpDS5MsKTb50hJy2DAj4gCJfRuVj6oTquWZo5+DOIaCyTjg4ZIV8DNFkAmGE6dOS7e0JcWm+qE+T+Emv/189feoPwfIoReC1qqC25uSZOSVHR4k4yaSxZZlptcmThs++kSXnK2ZNGd/WeGb/2AsGQ/fK7sa396o2GwCPLGyhjnatiSvNFhe4pUZRs91qhIXZBNKMS8xMgt6gaGNEFkFneNgj1VxYOlqc7yaa+0RS+yOU0eUkJkjuHxm8LmnOh9yAVazcjyGm6j5sMHZYkDZYm6XtMbkt2FZsc1e52JNO/sc+wRbCOFm8IB6MC/pfsCybDTBCf0Ai///jMnnfBkBVZCKteRK5W5zu64RblnmxahtSDF8kRZ60ldbPeOSQb37FAMw/qUXekdWWIfdUTwZvGz5LpYfyKlT/2R94JKbK85iqdNqfiMP/I68RK3yDnrKN7zJE8M1t13iBeNs0INUmqybkb/g2ewpZrw5Vi1ShGmJvQb0EglAPLydrED/dXE74Zl1zVul0k5xOQ7Qm0zq+lHhMkcixl/QVYL+iYS9HAlkAL2UGMtMmXsVSXWoFcgXVJyPmtBXIoC/cv24+0vDgeB4m/ruLO2IFMNr12cHxdPIwSTnA9tsLB+6WrDVT+38F9+83/WOtpfQfZPbnTxkv8KW/T2kNoC6SBmqQ8sFJv6UAQVqraihj6AqS82oIS8n5LVfAsLrlBgJsg4vDZbj9DdVQAwhAB1eAEIDxUUsbeKAP7Lcl14IDJQ+2dIIMN8GFku9aImB2Dr8bzpuPEsRfkvx7LonwN8aWQcpTkG/yH6UmpuFl9XzoyX4hoYCiH8btUJf4qhqGIDwPP5nWQ+XMQxH+RKerSbW8PT2F+KlXjuc9iL8k+fdcEuFvXB+/lkEkposo/3EFFd83psGLlWdJ4RehRAco9H4wbh+MdYmvNFXCkMUKz4OfSokk5Bj4hhW+9okuVlemFlp585TOLciqK04JnQ+2A2hObl6PUcVitdkdzh8L1cf73f3//YcTJEUzLMcLoiQrqqYbpmU7rucHYRQnaZYXl2tZ1U3b9cM4zcvV9c3t3f0D1w0hTct2XM8PwihO0lKWlyvVWn36cQ9DjIIRNDH1IMLregjVGdjcUwceq+sdkMPcuQlEr49IdF8jb+w2Df1j6S6JPCrKnAgUbw8NaCRlPHecWWxJe2Xl6PVoM9VTx6QCTtEbx2XbOeFaD11dDl1To1vpcLPwHbdcQLmlP8Et2pqhTod5Rh9SfkJfN/GkqomSSheFWzFCCzUZg/Y5kWanR5nBJ4rHM2zSnHZoZqR2bChlnBJu1BATnhGrhZx5jb4rChziYUnUlbSwHhfBJXGr13Kib4ft2FSZLIdwVYpHnaQ4qamw4Gmdb4daz2vakS5JZxCbSMfX2GDQntnLrQqiI9lJeVQuSMeNbNGZklvtRKj9x1bg7mIVCqra17+eO5ZZXyp9ox6X6SK7EqG3I6vyfMoYlcupm3ARg1NbOd+RjnpvyW3CBcRb6dThzix4b9An7SuCuOnYs2sd+ZzoQdicLJAbVgv1sPjQAyKBVMLIWuV42eTLaMPOmmJrEewK);font-weight:normal;font-style:normal}.ag-theme-alpine,.ag-theme-alpine-dark,.ag-theme-alpine-auto-dark{--ag-alpine-active-color: #2196f3;--ag-selected-row-background-color: rgba(33, 150, 243, 0.3);--ag-row-hover-color: rgba(33, 150, 243, 0.1);--ag-column-hover-color: rgba(33, 150, 243, 0.1);--ag-input-focus-border-color: rgba(33, 150, 243, 0.4);--ag-range-selection-background-color: rgba(33, 150, 243, 0.2);--ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);--ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);--ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);--ag-row-numbers-selected-color: color-mix(in srgb, transparent, var(--ag-alpine-active-color) 50%);--ag-calculated-column-highlight-color: color-mix(in srgb, transparent, var(--ag-alpine-active-color) 12%);--ag-column-header-edit-highlight-color: color-mix(in srgb, transparent, var(--ag-alpine-active-color) 12%);--ag-icon-button-hover-color: var(--ag-alpine-active-color);--ag-background-color: #fff;--ag-foreground-color: #181d1f;--ag-border-color: #babfc7;--ag-secondary-border-color: #dde2eb;--ag-header-background-color: #f8f8f8;--ag-tooltip-background-color: #f8f8f8;--ag-odd-row-background-color: #fcfcfc;--ag-control-panel-background-color: #f8f8f8;--ag-subheader-background-color: #fff;--ag-invalid-color: #e02525;--ag-checkbox-unchecked-color: #999;--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-find-match-color: var(--ag-foreground-color);--ag-find-match-background-color: #ffff00;--ag-find-active-match-color: var(--ag-foreground-color);--ag-find-active-match-background-color: #ffa500;--ag-checkbox-background-color: var(--ag-background-color);--ag-checkbox-checked-color: var(--ag-alpine-active-color);--ag-range-selection-border-color: var(--ag-alpine-active-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-input-border-color: var(--ag-border-color);--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);--ag-input-error-focus-box-shadow: 0 0 2px 0.1rem var(--ag-invalid-color);--ag-panel-background-color: var(--ag-header-background-color);--ag-menu-background-color: var(--ag-header-background-color);--ag-filter-panel-apply-button-color: var(--ag-background-color);--ag-filter-panel-apply-button-background-color: var(--ag-alpine-active-color);--ag-column-panel-apply-button-color: var(--ag-background-color);--ag-column-panel-apply-button-background-color: var(--ag-alpine-active-color);--ag-column-drag-indicator-color: var(--ag-alpine-active-color);--ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);--ag-chip-background-color: rgba(24, 29, 31, 0.07);--ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);--ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);--ag-borders: solid 1px;--ag-border-radius: 3px;--ag-borders-side-button: none;--ag-side-button-selected-background-color: transparent;--ag-header-column-resize-handle-display: block;--ag-header-column-resize-handle-width: 2px;--ag-header-column-resize-handle-height: 30%;--ag-grid-size: 6px;--ag-icon-size: 16px;--ag-row-height: calc(var(--ag-grid-size) * 7);--ag-auto-height-min-body-height: 150px;--ag-header-height: calc(var(--ag-grid-size) * 8);--ag-list-item-height: calc(var(--ag-grid-size) * 4);--ag-column-select-indent-size: var(--ag-icon-size);--ag-set-filter-indent-size: var(--ag-icon-size);--ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);--ag-toggle-button-height: 18px;--ag-toggle-button-width: 28px;--ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 13px;--ag-icon-font-family: agGridAlpine;--ag-selected-tab-underline-color: var(--ag-alpine-active-color);--ag-selected-tab-underline-width: 2px;--ag-selected-tab-underline-transition-speed: 0.3s;--ag-tab-min-width: 240px;--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);--ag-popup-shadow: var(--ag-card-shadow);--ag-side-bar-panel-width: 250px;--ag-note-indicator-color: var(--ag-alpine-active-color)}.ag-theme-alpine-dark{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, 0.5);--ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-input-error-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px color-mix(in srgb, var(--ag-background-color), var(--ag-invalid-color) 0.5%);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);--ag-chip-background-color: rgba(255, 255, 255, 0.07);--ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);--ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;--ag-find-match-color: var(--ag-background-color);--ag-find-active-match-color: var(--ag-background-color);--ag-filter-panel-apply-button-color: var(--ag-foreground-color);--ag-column-panel-apply-button-color: var(--ag-foreground-color);--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);--ag-cell-batch-edit-text-color: #f3d0b3;--ag-formula-token-1-color: #4da3e5;--ag-formula-token-1-background-color: rgb(77 163 229 / 16%);--ag-formula-token-2-color: #f55864;--ag-formula-token-2-background-color: rgb(245 88 100 / 16%);--ag-formula-token-3-color: #b688f2;--ag-formula-token-3-background-color: rgb(182 136 242 / 16%);--ag-formula-token-4-color: #24bb4a;--ag-formula-token-4-background-color: rgb(36 187 74 / 16%);--ag-formula-token-5-color: #e772ba;--ag-formula-token-5-background-color: rgb(231 114 186 / 16%);--ag-formula-token-6-color: #f69b5f;--ag-formula-token-6-background-color: rgb(246 155 95 / 16%);--ag-formula-token-7-color: #a3e6ff;--ag-formula-token-7-background-color: rgb(163 230 255 / 16%);--ag-calculated-column-reference-color: #4da3e5;--ag-calculated-column-function-color: #24bb4a;color-scheme:dark}@media(prefers-color-scheme:dark){.ag-theme-alpine-auto-dark{--ag-background-color: #181d1f;--ag-foreground-color: #fff;--ag-border-color: #68686e;--ag-secondary-border-color: rgba(88, 86, 82, 0.5);--ag-modal-overlay-background-color: rgba(24, 29, 31, 0.66);--ag-header-background-color: #222628;--ag-tooltip-background-color: #222628;--ag-odd-row-background-color: #222628;--ag-control-panel-background-color: #222628;--ag-subheader-background-color: #000;--ag-input-disabled-background-color: #282c2f;--ag-input-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px var(--ag-input-focus-border-color);--ag-input-error-focus-box-shadow: 0 0 2px 0.5px rgba(255, 255, 255, 0.5), 0 0 4px 3px color-mix(in srgb, var(--ag-background-color), var(--ag-invalid-color) 0.5%);--ag-card-shadow: 0 1px 20px 1px black;--ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);--ag-chip-background-color: rgba(255, 255, 255, 0.07);--ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);--ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;--ag-find-match-color: var(--ag-background-color);--ag-find-active-match-color: var(--ag-background-color);--ag-filter-panel-apply-button-color: var(--ag-foreground-color);--ag-column-panel-apply-button-color: var(--ag-foreground-color);--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);--ag-cell-batch-edit-text-color: #f3d0b3;--ag-formula-token-1-color: #4da3e5;--ag-formula-token-1-background-color: rgb(77 163 229 / 16%);--ag-formula-token-2-color: #f55864;--ag-formula-token-2-background-color: rgb(245 88 100 / 16%);--ag-formula-token-3-color: #b688f2;--ag-formula-token-3-background-color: rgb(182 136 242 / 16%);--ag-formula-token-4-color: #24bb4a;--ag-formula-token-4-background-color: rgb(36 187 74 / 16%);--ag-formula-token-5-color: #e772ba;--ag-formula-token-5-background-color: rgb(231 114 186 / 16%);--ag-formula-token-6-color: #f69b5f;--ag-formula-token-6-background-color: rgb(246 155 95 / 16%);--ag-formula-token-7-color: #a3e6ff;--ag-formula-token-7-background-color: rgb(163 230 255 / 16%);--ag-calculated-column-reference-color: #4da3e5;--ag-calculated-column-function-color: #24bb4a;color-scheme:dark}}.ag-theme-alpine .ag-filter-toolpanel-header,.ag-theme-alpine .ag-filter-toolpanel-search,.ag-theme-alpine .ag-status-bar,.ag-theme-alpine .ag-header-row,.ag-theme-alpine .ag-row-number-cell,.ag-theme-alpine .ag-panel-title-bar-title,.ag-theme-alpine .ag-multi-filter-group-title-bar,.ag-theme-alpine .ag-filter-card-title,.ag-theme-alpine-dark .ag-filter-toolpanel-header,.ag-theme-alpine-dark .ag-filter-toolpanel-search,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-dark .ag-header-row,.ag-theme-alpine-dark .ag-row-number-cell,.ag-theme-alpine-dark .ag-panel-title-bar-title,.ag-theme-alpine-dark .ag-multi-filter-group-title-bar,.ag-theme-alpine-dark .ag-filter-card-title,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-header,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-search,.ag-theme-alpine-auto-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-header-row,.ag-theme-alpine-auto-dark .ag-row-number-cell,.ag-theme-alpine-auto-dark .ag-panel-title-bar-title,.ag-theme-alpine-auto-dark .ag-multi-filter-group-title-bar,.ag-theme-alpine-auto-dark .ag-filter-card-title{font-weight:700;color:var(--ag-header-foreground-color)}.ag-theme-alpine .ag-toolbar-item:where(:not(.ag-toolbar-panel)),.ag-theme-alpine-dark .ag-toolbar-item:where(:not(.ag-toolbar-panel)),.ag-theme-alpine-auto-dark .ag-toolbar-item:where(:not(.ag-toolbar-panel)){font-weight:700}.ag-theme-alpine .ag-row,.ag-theme-alpine-dark .ag-row,.ag-theme-alpine-auto-dark .ag-row{font-size:calc(var(--ag-font-size) + 1px)}.ag-theme-alpine input[class^=ag-]:not([type]),.ag-theme-alpine input[class^=ag-][type=text],.ag-theme-alpine input[class^=ag-][type=number],.ag-theme-alpine input[class^=ag-][type=tel],.ag-theme-alpine input[class^=ag-][type=date],.ag-theme-alpine input[class^=ag-][type=datetime-local],.ag-theme-alpine textarea[class^=ag-],.ag-theme-alpine-dark input[class^=ag-]:not([type]),.ag-theme-alpine-dark input[class^=ag-][type=text],.ag-theme-alpine-dark input[class^=ag-][type=number],.ag-theme-alpine-dark input[class^=ag-][type=tel],.ag-theme-alpine-dark input[class^=ag-][type=date],.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark textarea[class^=ag-],.ag-theme-alpine-auto-dark input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark input[class^=ag-][type=text],.ag-theme-alpine-auto-dark input[class^=ag-][type=number],.ag-theme-alpine-auto-dark input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark input[class^=ag-][type=date],.ag-theme-alpine-auto-dark input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark textarea[class^=ag-]{min-height:calc(var(--ag-grid-size) * 4);border-radius:var(--ag-border-radius)}.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-ltr textarea[class^=ag-],.ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-ltr textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-ltr textarea[class^=ag-]{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine .ag-rtl textarea[class^=ag-],.ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-dark .ag-rtl textarea[class^=ag-],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-alpine-auto-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-alpine-auto-dark .ag-rtl textarea[class^=ag-]{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-tab,.ag-theme-alpine-dark .ag-tab,.ag-theme-alpine-auto-dark .ag-tab{padding:calc(var(--ag-grid-size) * 1.5);transition:color 0.4s;flex:1 1 auto}.ag-theme-alpine .ag-tab-selected,.ag-theme-alpine-dark .ag-tab-selected,.ag-theme-alpine-auto-dark .ag-tab-selected{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-menu,.ag-theme-alpine-dark .ag-menu,.ag-theme-alpine-auto-dark .ag-menu{background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-toolbar .ag-toolbar-panel,.ag-theme-alpine-dark .ag-toolbar .ag-toolbar-panel,.ag-theme-alpine-auto-dark .ag-toolbar .ag-toolbar-panel{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-dark .ag-panel-content-wrapper .ag-column-select,.ag-theme-alpine-auto-dark .ag-panel-content-wrapper .ag-column-select{background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-menu-header,.ag-theme-alpine-dark .ag-menu-header,.ag-theme-alpine-auto-dark .ag-menu-header{background-color:var(--ag-control-panel-background-color);padding-top:1px}.ag-theme-alpine .ag-tabs-header,.ag-theme-alpine-dark .ag-tabs-header,.ag-theme-alpine-auto-dark .ag-tabs-header{border-bottom:var(--ag-borders) var(--ag-border-color)}.ag-theme-alpine .ag-charts-settings-group-title-bar,.ag-theme-alpine .ag-charts-data-group-title-bar,.ag-theme-alpine .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-settings-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-data-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar{padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);line-height:calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px)}.ag-theme-alpine .ag-chart-mini-thumbnail,.ag-theme-alpine-dark .ag-chart-mini-thumbnail,.ag-theme-alpine-auto-dark .ag-chart-mini-thumbnail{background-color:var(--ag-background-color)}.ag-theme-alpine .ag-chart-settings-nav-bar,.ag-theme-alpine-dark .ag-chart-settings-nav-bar,.ag-theme-alpine-auto-dark .ag-chart-settings-nav-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon,.ag-theme-alpine-auto-dark .ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-theme-alpine .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-charts-advanced-settings-top-level-group-toolbar{margin-top:var(--ag-grid-size)}.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-ltr .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-ltr .ag-charts-advanced-settings-top-level-group-toolbar{padding-left:calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-rtl .ag-charts-format-top-level-group-toolbar,.ag-theme-alpine-auto-dark .ag-rtl .ag-charts-advanced-settings-top-level-group-toolbar{padding-right:calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group,.ag-theme-alpine-dark .ag-charts-format-sub-level-group,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group{border-left:dashed 1px;border-left-color:var(--ag-border-color);padding-left:var(--ag-grid-size);margin-bottom:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-title-bar{padding-top:0;padding-bottom:0;background:none;font-weight:700}.ag-theme-alpine .ag-charts-format-sub-level-group-container,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-container,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-container{padding-bottom:0}.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child,.ag-theme-alpine-auto-dark .ag-charts-format-sub-level-group-item:last-child{margin-bottom:0}.ag-theme-alpine .ag-dnd-ghost,.ag-theme-alpine-dark .ag-dnd-ghost,.ag-theme-alpine-auto-dark .ag-dnd-ghost{font-size:calc(var(--ag-font-size) - 1px);font-weight:700}.ag-theme-alpine .ag-side-buttons,.ag-theme-alpine-dark .ag-side-buttons,.ag-theme-alpine-auto-dark .ag-side-buttons{width:calc(var(--ag-grid-size) * 5)}.ag-theme-alpine .ag-standard-button,.ag-theme-alpine-dark .ag-standard-button,.ag-theme-alpine-auto-dark .ag-standard-button{font-family:inherit;appearance:none;-webkit-appearance:none;border-radius:var(--ag-border-radius);border:1px solid;border-color:var(--ag-alpine-active-color);color:var(--ag-alpine-active-color);background-color:var(--ag-background-color);font-weight:600;padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-standard-button:not(:disabled):hover,.ag-theme-alpine-dark .ag-standard-button:not(:disabled):hover,.ag-theme-alpine-auto-dark .ag-standard-button:not(:disabled):hover{border-color:var(--ag-alpine-active-color);background-color:var(--ag-row-hover-color)}.ag-theme-alpine .ag-standard-button:not(:disabled):active,.ag-theme-alpine-dark .ag-standard-button:not(:disabled):active,.ag-theme-alpine-auto-dark .ag-standard-button:not(:disabled):active{border-color:var(--ag-alpine-active-color);background-color:var(--ag-alpine-active-color);color:var(--ag-background-color)}.ag-theme-alpine .ag-standard-button:disabled,.ag-theme-alpine-dark .ag-standard-button:disabled,.ag-theme-alpine-auto-dark .ag-standard-button:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-theme-alpine .ag-column-drop-vertical,.ag-theme-alpine-dark .ag-column-drop-vertical,.ag-theme-alpine-auto-dark .ag-column-drop-vertical{min-height:75px}.ag-theme-alpine .ag-column-drop-vertical-title-bar,.ag-theme-alpine-dark .ag-column-drop-vertical-title-bar,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-title-bar{padding:calc(var(--ag-grid-size) * 2);padding-bottom:0px}.ag-theme-alpine .ag-column-drop-vertical-empty-message,.ag-theme-alpine-dark .ag-column-drop-vertical-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-vertical-empty-message{display:flex;align-items:center;border:dashed 1px;border-color:var(--ag-border-color);margin:calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 2)}.ag-theme-alpine .ag-column-drop-empty-message,.ag-theme-alpine-dark .ag-column-drop-empty-message,.ag-theme-alpine-auto-dark .ag-column-drop-empty-message{color:var(--ag-foreground-color);opacity:0.75}.ag-theme-alpine .ag-pill-select .ag-column-drop,.ag-theme-alpine-dark .ag-pill-select .ag-column-drop,.ag-theme-alpine-auto-dark .ag-pill-select .ag-column-drop{min-height:unset}.ag-theme-alpine .ag-status-bar,.ag-theme-alpine-dark .ag-status-bar,.ag-theme-alpine-auto-dark .ag-status-bar{font-weight:normal}.ag-theme-alpine .ag-status-name-value-value,.ag-theme-alpine-dark .ag-status-name-value-value,.ag-theme-alpine-auto-dark .ag-status-name-value-value{font-weight:700}.ag-theme-alpine .ag-paging-number,.ag-theme-alpine .ag-paging-row-summary-panel-number,.ag-theme-alpine-dark .ag-paging-number,.ag-theme-alpine-dark .ag-paging-row-summary-panel-number,.ag-theme-alpine-auto-dark .ag-paging-number,.ag-theme-alpine-auto-dark .ag-paging-row-summary-panel-number{font-weight:700;font-variant-numeric:tabular-nums}.ag-theme-alpine .ag-column-drop-cell-button,.ag-theme-alpine-dark .ag-column-drop-cell-button,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button{opacity:0.5}.ag-theme-alpine .ag-column-drop-cell-button:hover,.ag-theme-alpine-dark .ag-column-drop-cell-button:hover,.ag-theme-alpine-auto-dark .ag-column-drop-cell-button:hover{opacity:0.75}.ag-theme-alpine .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-dark .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-alpine-auto-dark .ag-column-select-column-readonly .ag-icon-grip{opacity:0.35}.ag-theme-alpine .ag-header-cell-menu-button:hover,.ag-theme-alpine .ag-header-cell-menu-button.ag-has-menu-open,.ag-theme-alpine .ag-header-cell-filter-button:hover,.ag-theme-alpine .ag-header-cell-filter-button.ag-has-menu-open,.ag-theme-alpine .ag-side-button-button:hover,.ag-theme-alpine .ag-side-button-button.ag-has-menu-open,.ag-theme-alpine .ag-tab:hover,.ag-theme-alpine .ag-tab.ag-has-menu-open,.ag-theme-alpine .ag-panel-title-bar-button:hover,.ag-theme-alpine .ag-panel-title-bar-button.ag-has-menu-open,.ag-theme-alpine .ag-header-expand-icon:hover,.ag-theme-alpine .ag-header-expand-icon.ag-has-menu-open,.ag-theme-alpine .ag-column-group-icons:hover,.ag-theme-alpine .ag-column-group-icons.ag-has-menu-open,.ag-theme-alpine .ag-set-filter-group-icons:hover,.ag-theme-alpine .ag-set-filter-group-icons.ag-has-menu-open,.ag-theme-alpine .ag-group-expanded .ag-icon:hover,.ag-theme-alpine .ag-group-expanded .ag-icon.ag-has-menu-open,.ag-theme-alpine .ag-group-contracted .ag-icon:hover,.ag-theme-alpine .ag-group-contracted .ag-icon.ag-has-menu-open,.ag-theme-alpine .ag-chart-settings-prev:hover,.ag-theme-alpine .ag-chart-settings-prev.ag-has-menu-open,.ag-theme-alpine .ag-chart-settings-next:hover,.ag-theme-alpine .ag-chart-settings-next.ag-has-menu-open,.ag-theme-alpine .ag-group-title-bar-icon:hover,.ag-theme-alpine .ag-group-title-bar-icon.ag-has-menu-open,.ag-theme-alpine .ag-column-select-header-icon:hover,.ag-theme-alpine .ag-column-select-header-icon.ag-has-menu-open,.ag-theme-alpine .ag-floating-filter-button-button:hover,.ag-theme-alpine .ag-floating-filter-button-button.ag-has-menu-open,.ag-theme-alpine .ag-filter-toolpanel-expand:hover,.ag-theme-alpine .ag-filter-toolpanel-expand.ag-has-menu-open,.ag-theme-alpine .ag-chart-menu-icon:hover,.ag-theme-alpine .ag-chart-menu-icon.ag-has-menu-open,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-dark .ag-header-cell-menu-button.ag-has-menu-open,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-dark .ag-header-cell-filter-button.ag-has-menu-open,.ag-theme-alpine-dark .ag-side-button-button:hover,.ag-theme-alpine-dark .ag-side-button-button.ag-has-menu-open,.ag-theme-alpine-dark .ag-tab:hover,.ag-theme-alpine-dark .ag-tab.ag-has-menu-open,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-dark .ag-panel-title-bar-button.ag-has-menu-open,.ag-theme-alpine-dark .ag-header-expand-icon:hover,.ag-theme-alpine-dark .ag-header-expand-icon.ag-has-menu-open,.ag-theme-alpine-dark .ag-column-group-icons:hover,.ag-theme-alpine-dark .ag-column-group-icons.ag-has-menu-open,.ag-theme-alpine-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-dark .ag-set-filter-group-icons.ag-has-menu-open,.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-dark .ag-group-expanded .ag-icon.ag-has-menu-open,.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-dark .ag-group-contracted .ag-icon.ag-has-menu-open,.ag-theme-alpine-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-dark .ag-chart-settings-prev.ag-has-menu-open,.ag-theme-alpine-dark .ag-chart-settings-next:hover,.ag-theme-alpine-dark .ag-chart-settings-next.ag-has-menu-open,.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-dark .ag-group-title-bar-icon.ag-has-menu-open,.ag-theme-alpine-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-dark .ag-column-select-header-icon.ag-has-menu-open,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-dark .ag-floating-filter-button-button.ag-has-menu-open,.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-dark .ag-filter-toolpanel-expand.ag-has-menu-open,.ag-theme-alpine-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-dark .ag-chart-menu-icon.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-side-button-button:hover,.ag-theme-alpine-auto-dark .ag-side-button-button.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-tab:hover,.ag-theme-alpine-auto-dark .ag-tab.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-header-expand-icon:hover,.ag-theme-alpine-auto-dark .ag-header-expand-icon.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-column-group-icons:hover,.ag-theme-alpine-auto-dark .ag-column-group-icons.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-set-filter-group-icons:hover,.ag-theme-alpine-auto-dark .ag-set-filter-group-icons.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-group-expanded .ag-icon.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon:hover,.ag-theme-alpine-auto-dark .ag-group-contracted .ag-icon.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-chart-settings-prev:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-prev.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-chart-settings-next:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-next.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-group-title-bar-icon:hover,.ag-theme-alpine-auto-dark .ag-group-title-bar-icon.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-column-select-header-icon:hover,.ag-theme-alpine-auto-dark .ag-column-select-header-icon.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand:hover,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-expand.ag-has-menu-open,.ag-theme-alpine-auto-dark .ag-chart-menu-icon:hover,.ag-theme-alpine-auto-dark .ag-chart-menu-icon.ag-has-menu-open{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine .ag-header-cell-menu-button.ag-has-menu-open .ag-icon,.ag-theme-alpine .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine .ag-header-cell-filter-button.ag-has-menu-open .ag-icon,.ag-theme-alpine .ag-side-button-button:hover .ag-icon,.ag-theme-alpine .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine .ag-floating-filter-button-button.ag-has-menu-open .ag-icon,.ag-theme-alpine-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-menu-button.ag-has-menu-open .ag-icon,.ag-theme-alpine-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-dark .ag-header-cell-filter-button.ag-has-menu-open .ag-icon,.ag-theme-alpine-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-dark .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-dark .ag-floating-filter-button-button.ag-has-menu-open .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-menu-button.ag-has-menu-open .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-header-cell-filter-button.ag-has-menu-open .ag-icon,.ag-theme-alpine-auto-dark .ag-side-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-panel-title-bar-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button:hover .ag-icon,.ag-theme-alpine-auto-dark .ag-floating-filter-button-button.ag-has-menu-open .ag-icon{color:inherit}.ag-theme-alpine .ag-filter-active .ag-icon-filter,.ag-theme-alpine-dark .ag-filter-active .ag-icon-filter,.ag-theme-alpine-auto-dark .ag-filter-active .ag-icon-filter{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-alpine-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover{opacity:0.35}.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-grid-size) * 1.5)}.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button,.ag-theme-alpine-auto-dark .ag-rtl .ag-panel-title-bar-button{margin-right:calc(var(--ag-grid-size) * 1.5)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-group-container{padding-left:var(--ag-grid-size)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-group-container,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-group-container{padding-right:var(--ag-grid-size)}.ag-theme-alpine .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-filter-toolpanel-instance-filter{border:none;background-color:var(--ag-control-panel-background-color)}.ag-theme-alpine .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter{border-left:dashed 1px;border-left-color:var(--ag-border-color);margin-left:calc(var(--ag-icon-size) * 0.5)}.ag-theme-alpine .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-dark .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-alpine-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter{border-right:dashed 1px;border-right-color:var(--ag-border-color);margin-right:calc(var(--ag-icon-size) * 0.5)}.ag-theme-alpine .ag-set-filter-list,.ag-theme-alpine-dark .ag-set-filter-list,.ag-theme-alpine-auto-dark .ag-set-filter-list{padding-top:calc(var(--ag-grid-size) * 0.5);padding-bottom:calc(var(--ag-grid-size) * 0.5)}.ag-theme-alpine .ag-filter-add-button .ag-icon,.ag-theme-alpine-dark .ag-filter-add-button .ag-icon,.ag-theme-alpine-auto-dark .ag-filter-add-button .ag-icon{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current,.ag-theme-alpine-auto-dark .ag-date-time-list-page-entry-is-current{background-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-advanced-filter-builder-button,.ag-theme-alpine-dark .ag-advanced-filter-builder-button,.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-button{padding:var(--ag-grid-size);font-weight:600}.ag-theme-alpine .ag-list-item-hovered::after,.ag-theme-alpine-dark .ag-list-item-hovered::after,.ag-theme-alpine-auto-dark .ag-list-item-hovered::after{background-color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-pill .ag-pill-button:hover,.ag-theme-alpine-dark .ag-pill .ag-pill-button:hover,.ag-theme-alpine-auto-dark .ag-pill .ag-pill-button:hover{color:var(--ag-alpine-active-color)}.ag-theme-alpine .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-alpine .ag-disabled .ag-icon,.ag-theme-alpine .ag-column-select-column-group-readonly .ag-icon,.ag-theme-alpine [disabled] .ag-icon,.ag-theme-alpine-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-alpine-dark .ag-disabled .ag-icon,.ag-theme-alpine-dark .ag-column-select-column-group-readonly .ag-icon,.ag-theme-alpine-dark [disabled] .ag-icon,.ag-theme-alpine-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-alpine-auto-dark .ag-disabled .ag-icon,.ag-theme-alpine-auto-dark .ag-column-select-column-group-readonly .ag-icon,.ag-theme-alpine-auto-dark [disabled] .ag-icon{color:var(--ag-disabled-foreground-color)}
`,document.head.appendChild(e)}})(),(function(){if(typeof document<"u"){var e=document.createElement("style");e.setAttribute("data-ag-scope","legacy"),e.textContent=`@font-face{font-family:"agGridBalham";src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABzAAAsAAAAAO3gAABxwAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIw2BmAAjWwKygC8ZwE2AiQDgnALgToABCAFhEYHhkYbXjNFpNmsVtSMRAgbB5GZ8fAopFl7kSX7/5Yg1xjs9BmGVRBl1RCO0k10YoWPH93C+3s6kQAE+/VkGLIhkLCsKESjz5VnXov7laq/djkkqTxNImAMdxPXtJVkrkDIxEBqlPwWU/UED5J7LavH7PGf6f49X1UTLgn6hMA3qfvUqXPnblN5+H6/du59/+8iNt0iySyLhkijaSSRqNAyQ9qKSYgkbVQfnt/m/4GLhYGUAg4DE0zCAOEiAoKNCorRuBALm00WjZurUBeV17fXJq6avSh75f6+rkxsE0lDD3Hdc0PvWZ/cebJ4CJbIbY/u0Ts4oTjy9Sd9n8lv6xWqpc+YZJ6wOKZJYZAUnJlSyBLo52FsqqfuLv32db79AqSWmek2kzJmS79S064PwpaBxEh+tswvg+eAV/nIFD74IwDBTc1xnQXLFDYLykC/fr9X/RJ2JDNxOYF2C0qRc+19kH//vi3wnU1YvQ/qFoDGh2SJhQMi1agKDSxMpetUuwojS/3HTeUD2KNuFgMLDPu/udImeyWWVWRZuPLzrTPzJ9l3meXJEWZLm8PMcfZKzAooOU5xt0iKSLWOwfZV6cqzsq7H2Ez2VcaKn4AxjIIbnicLePjhlp9ZhYXF3rgdThZ2Q20ierGFwgB8TczSsXdRACpVjbGlFeXQuL/15R16kXB0AZzWLtjfeX6P6relqKShgPZB6hu9kv799RJR0R13s6R8UbbSVa1qrK6vT9SMkurGtkoYLOXjMSQW4RIpoZS0ynVNSUqFf0YU3Q8vuJbhB6NXtPMTupfzgh5kJfHuVkaTtzfFasG0vKlT4HG8l8xJXciJTrOUXl2YIWzFcvjoq6NX76DzRRzFjurqOe00D0FEjPnuRhvhQSPWAeqjyHXi9bgceH/ryiI7DGXiJDV9jjCZyNFrfwODhq9ZKdVD/xxd3t1TAREWkC0tD4ONlq6eYLDDORFbs1JevQFZK+JGkbl3J1WsssaenvnhT6/yqsMO3giMkXP0eWzaGy20f3+rRS5w87TA94I1monMzXuamHJIWoswWs6suyf7HGmRdPfDP2eefAQmBoMXSbEZ23EQR9EeW7RzuyJzz7wgVYRx7Fp2zcAv1DmXToxqVo2dlDbvMfE5Ag8UwBTrGO1ALjNOcEWZMOu56mX6CyPE2x120lYC6MF3cxNQtYFemYljItqlEWObXvfCXlBP7dUplZIXJm9KrCrCdSS9XBOpOilKI7sr6plm4hXPteA0uVsZjV/ShGZHt8k0Dm7FlCqaR+O/Wjk9v6y68Bgi0mVCbADDI0Clj+jK9bcgF8S7e1jVnDFEs1CUuDO7REbqI7eEEqwGa/FoV26FxmajynCb5hSNvjGrMnLPjkA3SMg4qG9ThvmoZle25D1454ffZpnKWOizw0jkP07ObNHnmxwOPoJXTqlLZJ4yTmSqkskR8nkLuozcVFQm8FYaT5XxhefVmRqj2EPMrvbVyulFlfUN+xWLe1NSNIwuiJMc7u6HWa/+sVIPJb4w8srM0eFrhpUhZ8NzF8rzPjaJzVF4mC38Pfz8gmcTgYZCogifY/WaPcF/I5+ivGG/eOHWsQO7disoAUVg7NazrHC+fLhgEufFMZw+b3IoGqCahiElfz74lT3//xj389qn8EISugJG6QeltQEQLhin5IKwmsgbysJJESjWY2Xjac5cKsFwkkqjo6f3x29iZmFlY+fg5OLm4eXjFxAUEhYRFWMSl5CUkuaUkZWTV+BkUlRiUlZQwdlV1dQ1NLUQoa2jq6dvYGhkbGLqxCkAsNfCWbzpf/7EujZ0EecS5FcykQawRe7PZfHsEsGa1UDxaTDlCzDexSY4wwQ4l3UbA5bAJZbBFabBNfbBDSbBLVbBHWbBA9bAI1bAE7bAM+bBC+bAK3bAO6bABxbBJ2bAF7bBN/bADxbAL2yA39gFf9oOIEqeShl5pJw8UoIohQiiDCKJcohKVEA0ohKiI6ogeqIaYiBqIEaiFmIi6iBmoh5iIRogVqIRYiOaIHaiGeIgWiBOohXiItogbqId4iE6IF6iE+IjuiB+ohsSIHogQaIXEiL6IGGiHxIhBiDRcLnTGDAIgSEIDENgBAKjkJJbVhmiZAlyBHmCAkGRuVBi2VImYSoEVRauRuzUmTsNEkWTowjS2nbTJq50CLoEPYI+wYBgyFEMGR0lkHGSMCGYEswI5gQLgiXBimBNsCHYEuwI9jz4cNj/+Yf/VA1B3bH2W9ildsUDnEKV1dwyoUQxshyZrhNICLsWGs8o5rBkoV4XRSbOxiLCuJAl8wsQ89asXTEoL98eP0mRaYahSk8Sm4iPY07cT9B9EpYc+44d6Ob1b3bHkRh/yM1zlgB15ARlykR0XlKECbgeQ5Rh9EIHssSWNnrEc5VDFkLAYFEkgnnFu+BQKMnLNKCEqBS+pI47p8BYBCBI2LY47BKWk5DridJ2coRSM2Lsty5jzgOmmf/r0RpKl/9zftCyCn47Uc/Yqv/P6p/zIOUeqPbLin8vDH0r/P143deVFlB6DiDBc57f+LgUzw5T1acOizFO4BmC7M2ttwWZklSiiarJqkQBnz5C6zHZANNteyMZt50Wu3ZE00wAEDN93Xo86Wy8eZIPIqNAW0Ka398qlbeOxGs57fFr3XpaIITjrUZ71Btpq1g5+JGXZ+8coAvaYCS0hS5YGW86OC0WK+NaRzq01GtAdiCUJP9fBRDyTDeQlwSgabBVQv7aWL+MoU9PeBVyJ2jENRGKvjYZB+qSQxK6koYeZvexjt5KpZ91SNVCQ2YLg7AWXmzJ0NAdmtFh4WCQYw8tBJaBbw22nxEM1YU66glA32folsV7YUzIxTQ5p1H6U4a+7ua0541K3/WVHCS9b6EDVyO3Zs7RDMznvwlAhclt9a7wjusQcjiPE4R8YiwrxWlfjG+8LIxUXQCeJwn/Lr85Bi7fAC3ZrINb541yGujnI/mikG/ZSV8doKeECOF3wrXRqieALRmLlKucyefbPgX4PTt2QlJY4Ml5LRSLAW1LRCJ1vDR3jQllpIPTfHpAjiSAdnNabdxI5gaDhh9pqWGgFQEdEFLCYf+F0cptiU5vV5Kk1ni4khqI6DHO8fBchuSPhwkiQYWvzfo1ToQ+X7kakLEsN1FG+IorEE22Ss72ScErnuQQ0mfDMN7DpbFBH1TKoT6c0jpGjLEub+do+vfQxzefCEYSLeKd5TA1PFlK8OiIty81no2IYhQMmuE0FSL/yBNb9DZko80ATfDywIJal/sKI8IrFJSVUqM8qw+vx5TiS8WRhblRZvbs4BE7GqaLRRMFeUh7ZdV78FtSmM05xpYpVmRSuCHJLts5Pqh6PsVppimUdfYuXiwL6GpP0zNT2GyAMVJM3Q0ZpHFLXmgnv5cxVN+vU8o1WMJgjD+H1Jiuw/r3qo/jHGElATlxxKqa5DFvNCl+2Jw3kc8d5P9sViBp/2YL8hPc/dlpZHsAuZNMzU4cxysfd2qXeJGGcXkQ5/izdglY/jqUDuEwdLmPomqcjqF35IFPlEbMvBoVxujKwa8Fdcxm4+sKeHU8K0XzGzdMmHuHbGSKLe1ce0KnKhynSzrW2IKKPGotitpIkq0YMPO0blWVavN521RuFytostYOgn2/mBzqufXYfuFENgnpMXJNJZBZjRDCBMMLGCOIiIfYbkzssr3Q48YcDF30xIrHRGaMVyLsSPmrxVA4kIjSgUqwEo8tC4p6/sLbR/HLPWvdjhfMPlXatxSbu9c4nta4fQc/keLn+94v7l5C2jzenEhFQldbskIc0N8/5oz25IMQy6dnvJWnH0HbiGsxPeFNXkrTyW/9lMAQeS4TZ6njbqwEI9OunUPbSd2i5Lp2xTnTzIZXQsmf3Tg/tbrMCr+jKy1iSMqGL5c/V51KsjBakkMkv/BU2nPxRVbPZbgXcS1hqAI3+8t5tzh5h0zaxOVAum6djPhi1StbsvC6VizwXVok8D0dGayAvOKEgjlR1vkW0OAE8hIAe3XxRXwRX0bxYtNt3nGoOSnnbUEoJ57VHZB37CaBKA0iPEywZ1qyZHxGXjsnhyGuXk/yOFx2RDzelLgr3Gg7cp/JhOTRxfU+TTKdyG8o9qBXtlw4cCxGzQUdpsns1RsPjdO1bZM5aEU/M7dO1UMbqpNjlUNlIsvPrIW9FpjNCDu1xa9CkMJvhCEIXoQMkOJ5BnHE8eOqBgyzDLcx1TT5fLxxghx5vc4xfcOEB/xbOi2a/JEbTYOVCmf1r95vxhft801BggUoFMrgQgYuyPAYcW7GTAvwXpKOBEsB7ijYSaVHmS7NZkS/eETJOIPsOIk3k5xAbrBS2WDHZetSVFYIYTd/fijLxx2TCKocW9RVEpFlMrAuuciGqzc61sMND1CozCfrsgyzG7NqVBHfcdFLMb0NN+knfzkfd2CpHflOBuQTAa9CgoaE/DUx/bFE8fg1ce+XcaD+jgQKnDcErFN6IF4rQuTXPNqYqYOJOoUUzPpBmm9ctZ1TP/vQ2MjwSyzlbIxM3Cr186EoOmJl0HcVhQ6CFDcZc/hEyI+KiV7Gr0fVQV4mPTqla/QceC2MmtzDh5BnxmMcJALzVV2c6z5xlt9vYcugMj3NdgTsgjPQ91lwCEBHhL9M5Z5YucJqZgIPiNBGoAtBDwvnEZOGLS2LfeIlba8/U9o48u4bY03OXJ6txZDJS2xNunpm1DuisfnGQxKRMwqx23wjNvFEnYzJlNlBc8TYMWUyZt1xMpAaAkXi34QB+eh96augSwSuDx07Eny4hB2hC7c5C70gbhbtnxGLZ6EMn1MfHr3IPPDJYXPTxMcC61zXWbHY1IIN55VLX8SFv4gvUr347z3xDlraAvoeKhTIlnBrEYXC2fmbBQ+7Vq0ausekoX1L+2HA3fyaOQRskO08iJ33yRtmFBf/12R49s7dx3UsN44ms0tGB44HDb6n3b3JMz5PZ/p4jx8xZNIyV+aTlWWqKi+2Foa0QyiTqTgxh4z7xReKkM+NGTYyu6tTQsU+/WTcv91ECU+AW/cXjnidFov17X978+7Nl27dpS/P7unqsgaeChhGELCWxoOsNxFd/9vBO2UNMiaCko8zETwuiTSs8u+5dcwmXPzYaBhAuzOCtnLbZFRQ62nqXaTvQT4+nLmMrKCckx5k8LMvJqhn4fsi9rRp/9uFdK0G4CXVz83mqNlsNSfb4rvOVqvZ2RyLYlgh0ihZciZTzlKeBDUjZypZJ8BRkFPACeaLRu10+IjlSDU8bLHz0MHjfNNu06iiUdk4MtM02wR4S9mZ4eGZ7EZz4cxwtlA9+n3TCvqcH+gr6T/MoT+9rQPfHDgwNOSza1dNbc39GXdPqBQCrnSkUr/Yy+TGYOzH/fs7y8rQaJGwTxfe19t3TnT6dMeYhsoAcsCgqsc7wJXnYo74JhvmwAj7ycZhweb3uEzkr/AcEHC6bTpYyWIpg7nBTKWSFSLwLNaf/TlAEyBM7Idf6dP7OEIwU6FkBW8X7/aX+YP3XtYMZ/b+f/MqmmqXyS6gKucFsgPnBkZt/q3ytZfuevzV3GpGUfugONfnqNr9j5020O+TXOexZ/fJyIxfmiCie2wAwWGv8yNhIxfnfonjfbPCOyeHuthlz3mXbArZje4yOE1w7HD5aX7duBM+m+Cy3/1D1EEQRvrTjdCGaSHvc74kSPvDk+DskHc83s3tcC+hO7aDdZOJUFiAbHRsTsHaUHgPKDU7ccOFFM5wmD12H8EABnH2MmNQxHLzznff/KoUTKZCk4qCqUng1QbTuSTdooo2kpzOypDUoC432HdKEkQb6OZ1D/CeE7o9brCoG5GpF7eQDL8TzUERW4yAkLywxwkwd+1+n7Y1qbKjKslNjMMzPsbminP33lP/Yo8Ld8KnpFZltd7aRuigkCiROYuzjZFrbObgvHEEsPmJSwkufK4B401RxHw0IR99PHXpGt+cIRT9RNcbrQVRKpP8TuBVxCySNELFj9DMhq44dvjLdM9YDyLa8TU5R4fy16pEacISoo6UT9fwkc5EYblAUB7r7yZJXh32LUmrQ9EVDdXbhHvRe3x8Lknc/GN1An650I8cn8x+tjOcxYImT/gCZEd4sMUk1rsy8HrgO4hjJqVW+S5g1DgbXLTidD47ewAfAqu/L9dDLsmo9cJqvafsq/AcFXVpIyOt2xIKT0FJDL+kMVuU8BulmIPILIl5dB91iRqqFTOy0KcbBDj3R7BhDt8YQ7XGVqcGZB1QAwMVO69VJRF2bPSTGzgwvtX48h3Wb8T8/EqNDZv5xhksMbbiwf/teRb7yNPwNJiZgU0w0iY2iW+28dlxYLUnotoDbktVRgkm2NQs4sP8Znhje1/8vegqfBWwKG5odYCnYRCwcdLcYy5q9g+lYWmHUW1tf8J/zscOBdxlax0dWFrGru09+kpLJqFNKKzIJMvNeOiiH8BLp6+6nP/tje/JRbTVe1/rK4fdVw9W7y23Z6V4WSorp9xW3Kw9Z23F6tIo5SlH8Xp9ZTPT2ag0Z7qOi0cfDEL1vn+JWNC9Pz7tfjELEArhWbjWs68PScePm64QCnsWnmWL5KRCMaowuIDOHD/LGIz3oZ89RcvlBoNKVTMN7hFMAOce1SA2mAwwG1psALffQr88hUoy6zbdQv+i17JOlWHAT1+3/PlzyzPL853vO8lltuQ7EUka4/8KvA41F6A0XFVE1VGHU446Zp5/ekq0knfNL4dUQI6H+8R7UNWobL9Er7jqsvbIODgdpQiWMvPW2x+0V/ul+KdlhKayejD7meoQpoahtFPbqbQb5azEkB39n2122cjT2n6U+Cba8hwqjAtd54fraSu3/+XA6hmSoDqajEYYu9k9jhqv7c7AdNyPcU8upH39OgqGiXTCpScdf2T/0fHkEsHEWEZhXGVQljGmOTvjil/jvYaRmGDPTNN41Ks0Lu2B5MabYJqUdpUqAyrT5s32OYK0dX2dI5VlJZuOC2HPp3R68pU/ExLm6WwwFD9Bem/l9u3o+GP6e0P4xoumD11dhfUELJXaVO5m14Dftr1hq+M/j93fPngwa3XGT/zoKZtJ+5nK2E9+tOBxb2G+WXTDJYSo1VlqZG1dEDNBzjI0rkXSF6BGdr/huW155BBFT7BrW7zwO5CIMS2B/89LnvnBRQvF4p5FbQtRb+eFPs/f1LbkVludYvES4CUdmVsQoPVvb/fXBhRYEjV6N6/1Lwiw5BhWiFoqYsv4/LLYiilHHijjVwimwAonqCOohbEtLvG5K5r7Ec/Ju5ahQDR+2t/fbF6esRFmWpLh0BxMLJv2U/pl+TEAQ5mwfikeen3nHVZZp16/VQ0i4uficAs9G4xLliPrFWSab6+uvnChZ9VqiQQgBIpYAmyDHo3n4m3wnV3R0aMjx0Suq23KJGp0FI9bY/XMQJkYWoao1LXMk2u1WBnzHTuXOOsbSImdH2Z/IjPVy5JjBM6X/61he9i5aqcspFdTXhqb/Jz9ZYIYMPZZoaCWUoqElrJxYyn1KFFAZzQq49GAZJDSIuQpLS2kf3SNRs2ZWTYGj8V/XePh4pYRYAJ4f4UmhXgRUohLfUaTQVyeIFMvP6E4T0gKBAenlh3RJNSpE65ch69fVcvrNPKjy6hwkFwlTpPS2ry0KP2G+MaVRkLoE44spYiCNCq1V1IDyCv0znjn8+Wk9akjReNfPcYEZyvo9nEGFM4UR3TOcNWAf97UhBw8cPAgAm7hnBWDKalY9PLCrq4Pposbw10tQyqVqJTQfm3SWFZSOdLZ94OcZY9fAE6d2ratsjdd4EfB2MzTJST8eSX5ynWhyI8/aC5cQGIFmZlv3R//7ri1Ydt2fIOdW3lTYyNw4O0ugV9+WQYvm8EIu48oJgKHrf70n5fCS0lECMcxeKoZDhyemXkZ+BLtsM3JgBdPngb6WxlEvNsa2FT1MmjzM2uAdWbGmu/gpWq3zYenyeRyHLgXyQ6tAUA/WX/dbZTluPmh+pLMkqu07vyPBeKC+eL5fZSPBgiVplAu4D0oYX/IZQRGbi7QrGH+tAqvDWGtrz1dUqpQeHa+kQV6Vdb4SKTyhPT0ZZXuOGBVqVB3SBQA+g9t153RGTfQ4kz5gFR+aPkZn1GWShogCfCXBEr3DdQBib80cB8ICEAPCTCDsg5wPnLl8snLV0DUxR6150nPgi5PMdu9C8ZoIAqkwRTwtI7xY+CZWeJ//xKAz6UomXfAYp/lS8SbiirvpArZ4jkXFublG8XmgC0/qeMiZe3mjpUF/ciS24m6Q+cP5Y8+059PBO7QluaAPIfq2Lm54lKsKiwgF1stmBgto5nvcHIomgJZK/m0FHXBq11W7QVz88QldqE6LqcZf6OButAnivu+ZdzVqR1TRfRD3KJbUUNFJ9mbTPJK8U7RpqyiUc3kFnLTDr/tj06+kf8llwGtNtorGiz5FuRrL/p3+MpZCUraRSkAyF6IpKf0Qs9FRJCkHwIShd18+waUEWgUBOAcCUtqhXS0CoVc+udWaKbuSo3qy14NBfx/ttehCZcTmJMcwRQZRWXvMWitklKXlaHVs6NC0VPL0G1qroc8xJDl3DqFYbkvxFEq7wjDZXoyqy1lOfRAq6BFSJtK1lEiknUxlg16qyc/ua4k9VZDVevkgFaxPLlJpSfF8rJXJCL1WMZuMRcdfaA190MFnE+zGdJzKYp18WexcqB5E3Sv/wCUWMfxTx0vtOBb80cxTvjBXoBGgMhz+OvWUjV/s9rPBZ0APhibdm8AsJ3Tka2/s9+04s/WJnw3u2ZvSdgju784f77kWOOy92N8lgDoEP3AP719oHcb9QZwss5IYKdFRVtGQiSoqr1QA0cQjAZwAlG2wyDx3L8TEEE1gAAK4wBQgAKW5oAGLmCXhRrVRy2G6luwAW7gsbWlegJYkI3C/DZHoP27+KK5D525AtdC/4BNchD8O4jvecEQO6byrDoNerV7JAwgaMp6UcahORexpQ3cl3dM9lzOcekDv6KWqhXxFycn1nvsSnM/Ao17Qce4Apy2OQ/3AEsuceLwgsVuee4FFm3kV2OkdKZyahncM1l3BQIZV1v0XTQ03DmRziq7mwasV7pzaiyt8yzX2ZuzV0h7WmkjZN6FE3kwa6sV7SQ69o8AqNW++1VMVF0lVaisGqpU8VpcbdX5WPZv9gFEmFDGhVTaWMf1/CCM4iTN8qKs6qbt+mGc5mXd9uO87ud16cq1G7fu3Hvvg48++eyLr7757ocHj548e/HTL7/98dc//9vG2dMEbEA6pgJ24FmcwtEZ9AZy6HjfotBBGl2uBwTZNR/1W81zNexHc+x7SEcGBUPfEQjuBy1PZLXhpi7HQfluqj6svI/UU1zXRRJAC5pMl1/kenOMU32Gqf4lS9rlePOUtLqoB+fEPLHqUEUHsZ2OlMJOF6OUt1WIkjW783mzOfnsTxPJXFop3KSEw11xBaajZrWPedd3S8z6pLSaUVGrgYpwg0oUOMczaO5n9uEUH+WlDiy7YdaXw6pOIkyKrd3xWVEeZtNKFmPA9fg5KKAMz2h1DKkhssyb2JeAuJKSV9NKHZP5N8U8AC3HarogFYysxhRJcXTcXFVOtXESirTWIKWtLkNoVM2Jx/Trml7Yr+uBQ0hRavKbY5yNyAZeJZ4thDS71ldheAqMybB3UsSEoNtVUzql5AmRib1rQ7iEUUGc+m7HoBEg0WFkJtIMp/WmNqd+ibcwsJZtBA==);font-weight:normal;font-style:normal}.ag-theme-balham,.ag-theme-balham-dark,.ag-theme-balham-auto-dark{--ag-balham-active-color: #0091ea;--ag-foreground-color: #000;--ag-background-color: #fff;--ag-header-background-color: #f5f7f7;--ag-tooltip-background-color: #cbd0d3;--ag-subheader-background-color: #e2e9eb;--ag-control-panel-background-color: #f5f7f7;--ag-border-color: #bdc3c7;--ag-odd-row-background-color: #fcfdfe;--ag-row-hover-color: #ecf0f1;--ag-column-hover-color: #ecf0f1;--ag-input-border-color: #95a5a6;--ag-invalid-color: #e02525;--ag-input-disabled-background-color: #ebebeb;--ag-checkbox-unchecked-color: #7f8c8d;--ag-input-focus-border-color: #719ece;--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-find-match-color: var(--ag-foreground-color);--ag-find-match-background-color: #ffff00;--ag-find-active-match-color: var(--ag-foreground-color);--ag-find-active-match-background-color: #ffa500;--ag-input-focus-box-shadow: 0 0 2px 1px var(--ag-input-focus-border-color);--ag-input-error-focus-box-shadow: 0 0 2px 1px var(--ag-invalid-color);--ag-range-selection-border-color: var(--ag-balham-active-color);--ag-checkbox-checked-color: var(--ag-balham-active-color);--ag-checkbox-background-color: var(--ag-background-color);--ag-panel-background-color: var(--ag-header-background-color);--ag-filter-panel-apply-button-color: var(--ag-background-color);--ag-filter-panel-apply-button-background-color: var(--ag-balham-active-color);--ag-column-panel-apply-button-color: var(--ag-background-color);--ag-column-panel-apply-button-background-color: var(--ag-balham-active-color);--ag-column-drag-indicator-color: var(--ag-balham-active-color);--ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);--ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);--ag-subheader-toolbar-background-color: rgba(226, 233, 235, 0.5);--ag-row-border-color: rgba(189, 195, 199, 0.58);--ag-chip-background-color: rgba(0, 0, 0, 0.1);--ag-range-selection-background-color: rgba(0, 145, 234, 0.2);--ag-range-selection-background-color-2: rgba(0, 145, 234, 0.36);--ag-range-selection-background-color-3: rgba(0, 145, 234, 0.49);--ag-range-selection-background-color-4: rgba(0, 145, 234, 0.59);--ag-selected-row-background-color: rgba(0, 145, 234, 0.28);--ag-header-column-separator-color: rgba(189, 195, 199, 0.5);--ag-input-disabled-border-color: rgba(149, 165, 166, 0.3);--ag-row-numbers-selected-color: color-mix(in srgb, transparent, var(--ag-balham-active-color) 50%);--ag-calculated-column-highlight-color: color-mix(in srgb, transparent, var(--ag-balham-active-color) 12%);--ag-column-header-edit-highlight-color: color-mix(in srgb, transparent, var(--ag-balham-active-color) 12%);--ag-toolbar-text-color: var(--ag-header-foreground-color);--ag-header-column-separator-display: block;--ag-header-column-separator-height: 50%;--ag-grid-size: 4px;--ag-icon-size: 16px;--ag-row-height: calc(var(--ag-grid-size) * 7);--ag-header-height: calc(var(--ag-grid-size) * 8);--ag-list-item-height: calc(var(--ag-grid-size) * 6);--ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-input-height: calc(var(--ag-grid-size) * 4);--ag-chart-menu-panel-width: 240px;--ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 12px;--ag-icon-font-family: agGridBalham;--ag-border-radius: 2px;--ag-checkbox-border-radius: 3px;--ag-card-shadow: none;--ag-note-indicator-color: var(--ag-balham-active-color)}.ag-theme-balham-dark{--ag-balham-active-color: #00b0ff;--ag-foreground-color: #f5f5f5;--ag-background-color: #2d3436;--ag-header-background-color: #1c1c1c;--ag-tooltip-background-color: #1c1f20;--ag-subheader-background-color: #111;--ag-control-panel-background-color: #202020;--ag-border-color: #424242;--ag-odd-row-background-color: #262c2e;--ag-row-hover-color: #3d4749;--ag-column-hover-color: #3d4749;--ag-input-border-color: #f0f0f0;--ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);--ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);--ag-checkbox-unchecked-color: #ecf0f1;--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;--ag-find-match-color: var(--ag-background-color);--ag-find-active-match-color: var(--ag-background-color);--ag-filter-panel-apply-button-color: var(--ag-foreground-color);--ag-column-panel-apply-button-color: var(--ag-foreground-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);--ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);--ag-row-border-color: #5c5c5c;--ag-chip-background-color: rgba(245, 245, 245, 0.08);--ag-range-selection-background-color: rgba(0, 176, 255, 0.2);--ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);--ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);--ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);--ag-selected-row-background-color: rgba(0, 176, 255, 0.28);--ag-header-column-separator-color: rgba(66, 66, 66, 0.5);--ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);--ag-header-foreground-color: rgba(245, 245, 245, 0.64);--ag-toggle-button-off-background-color: transparent;--ag-toggle-button-off-border-color: var(--ag-foreground-color);--ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);--ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);--ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);--ag-input-error-focus-box-shadow: 0 0 4px 1.5px color-mix(in srgb, var(--ag-background-color), var(--ag-invalid-color) 0.5%);--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);--ag-cell-batch-edit-text-color: #f3d0b3;--ag-formula-token-1-color: #4da3e5;--ag-formula-token-1-background-color: rgb(77 163 229 / 16%);--ag-formula-token-2-color: #f55864;--ag-formula-token-2-background-color: rgb(245 88 100 / 16%);--ag-formula-token-3-color: #b688f2;--ag-formula-token-3-background-color: rgb(182 136 242 / 16%);--ag-formula-token-4-color: #24bb4a;--ag-formula-token-4-background-color: rgb(36 187 74 / 16%);--ag-formula-token-5-color: #e772ba;--ag-formula-token-5-background-color: rgb(231 114 186 / 16%);--ag-formula-token-6-color: #f69b5f;--ag-formula-token-6-background-color: rgb(246 155 95 / 16%);--ag-formula-token-7-color: #a3e6ff;--ag-formula-token-7-background-color: rgb(163 230 255 / 16%);--ag-calculated-column-reference-color: #4da3e5;--ag-calculated-column-function-color: #24bb4a;color-scheme:dark}@media(prefers-color-scheme:dark){.ag-theme-balham-auto-dark{--ag-balham-active-color: #00b0ff;--ag-foreground-color: #f5f5f5;--ag-background-color: #2d3436;--ag-header-background-color: #1c1c1c;--ag-tooltip-background-color: #1c1f20;--ag-subheader-background-color: #111;--ag-control-panel-background-color: #202020;--ag-border-color: #424242;--ag-odd-row-background-color: #262c2e;--ag-row-hover-color: #3d4749;--ag-column-hover-color: #3d4749;--ag-input-border-color: #f0f0f0;--ag-input-disabled-background-color: rgba(48, 46, 46, 0.3);--ag-modal-overlay-background-color: rgba(45, 52, 54, 0.66);--ag-checkbox-unchecked-color: #ecf0f1;--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;--ag-find-match-color: var(--ag-background-color);--ag-find-active-match-color: var(--ag-background-color);--ag-filter-panel-apply-button-color: var(--ag-foreground-color);--ag-column-panel-apply-button-color: var(--ag-foreground-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-disabled-foreground-color: rgba(245, 245, 245, 0.38);--ag-subheader-toolbar-background-color: rgba(17, 17, 17, 0.5);--ag-row-border-color: #5c5c5c;--ag-chip-background-color: rgba(245, 245, 245, 0.08);--ag-range-selection-background-color: rgba(0, 176, 255, 0.2);--ag-range-selection-background-color-2: rgba(0, 176, 255, 0.36);--ag-range-selection-background-color-3: rgba(0, 176, 255, 0.49);--ag-range-selection-background-color-4: rgba(0, 176, 255, 0.59);--ag-selected-row-background-color: rgba(0, 176, 255, 0.28);--ag-header-column-separator-color: rgba(66, 66, 66, 0.5);--ag-input-disabled-border-color: rgba(240, 240, 240, 0.3);--ag-header-foreground-color: rgba(245, 245, 245, 0.64);--ag-toggle-button-off-background-color: transparent;--ag-toggle-button-off-border-color: var(--ag-foreground-color);--ag-range-selection-chart-category-background-color: rgba(26, 177, 74, 0.5);--ag-range-selection-chart-background-color: rgba(45, 166, 255, 0.5);--ag-input-focus-box-shadow: 0 0 4px 1.5px var(--ag-input-focus-border-color);--ag-input-error-focus-box-shadow: 0 0 4px 1.5px color-mix(in srgb, var(--ag-background-color), var(--ag-invalid-color) 0.5%);--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);--ag-cell-batch-edit-text-color: #f3d0b3;--ag-formula-token-1-color: #4da3e5;--ag-formula-token-1-background-color: rgb(77 163 229 / 16%);--ag-formula-token-2-color: #f55864;--ag-formula-token-2-background-color: rgb(245 88 100 / 16%);--ag-formula-token-3-color: #b688f2;--ag-formula-token-3-background-color: rgb(182 136 242 / 16%);--ag-formula-token-4-color: #24bb4a;--ag-formula-token-4-background-color: rgb(36 187 74 / 16%);--ag-formula-token-5-color: #e772ba;--ag-formula-token-5-background-color: rgb(231 114 186 / 16%);--ag-formula-token-6-color: #f69b5f;--ag-formula-token-6-background-color: rgb(246 155 95 / 16%);--ag-formula-token-7-color: #a3e6ff;--ag-formula-token-7-background-color: rgb(163 230 255 / 16%);--ag-calculated-column-reference-color: #4da3e5;--ag-calculated-column-function-color: #24bb4a;color-scheme:dark}}.ag-theme-balham .ag-filter-toolpanel-header,.ag-theme-balham .ag-filter-toolpanel-search,.ag-theme-balham .ag-status-bar,.ag-theme-balham .ag-header-row,.ag-theme-balham .ag-row-number-cell,.ag-theme-balham .ag-multi-filter-group-title-bar,.ag-theme-balham-dark .ag-filter-toolpanel-header,.ag-theme-balham-dark .ag-filter-toolpanel-search,.ag-theme-balham-dark .ag-status-bar,.ag-theme-balham-dark .ag-header-row,.ag-theme-balham-dark .ag-row-number-cell,.ag-theme-balham-dark .ag-multi-filter-group-title-bar,.ag-theme-balham-auto-dark .ag-filter-toolpanel-header,.ag-theme-balham-auto-dark .ag-filter-toolpanel-search,.ag-theme-balham-auto-dark .ag-status-bar,.ag-theme-balham-auto-dark .ag-header-row,.ag-theme-balham-auto-dark .ag-row-number-cell,.ag-theme-balham-auto-dark .ag-multi-filter-group-title-bar{font-weight:600;color:var(--ag-header-foreground-color)}.ag-theme-balham .ag-ltr input[class^=ag-]:not([type]),.ag-theme-balham .ag-ltr input[class^=ag-][type=text],.ag-theme-balham .ag-ltr input[class^=ag-][type=number],.ag-theme-balham .ag-ltr input[class^=ag-][type=tel],.ag-theme-balham .ag-ltr input[class^=ag-][type=date],.ag-theme-balham .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-balham .ag-ltr textarea[class^=ag-],.ag-theme-balham-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-balham-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-balham-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-balham-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-balham-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-balham-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-balham-dark .ag-ltr textarea[class^=ag-],.ag-theme-balham-auto-dark .ag-ltr input[class^=ag-]:not([type]),.ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=text],.ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=number],.ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=tel],.ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=date],.ag-theme-balham-auto-dark .ag-ltr input[class^=ag-][type=datetime-local],.ag-theme-balham-auto-dark .ag-ltr textarea[class^=ag-]{padding-left:var(--ag-grid-size)}.ag-theme-balham .ag-rtl input[class^=ag-]:not([type]),.ag-theme-balham .ag-rtl input[class^=ag-][type=text],.ag-theme-balham .ag-rtl input[class^=ag-][type=number],.ag-theme-balham .ag-rtl input[class^=ag-][type=tel],.ag-theme-balham .ag-rtl input[class^=ag-][type=date],.ag-theme-balham .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-balham .ag-rtl textarea[class^=ag-],.ag-theme-balham-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-balham-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-balham-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-balham-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-balham-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-balham-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-balham-dark .ag-rtl textarea[class^=ag-],.ag-theme-balham-auto-dark .ag-rtl input[class^=ag-]:not([type]),.ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=text],.ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=number],.ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=tel],.ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=date],.ag-theme-balham-auto-dark .ag-rtl input[class^=ag-][type=datetime-local],.ag-theme-balham-auto-dark .ag-rtl textarea[class^=ag-]{padding-right:var(--ag-grid-size)}.ag-theme-balham .ag-column-drop-vertical-empty-message,.ag-theme-balham .ag-status-bar,.ag-theme-balham-dark .ag-column-drop-vertical-empty-message,.ag-theme-balham-dark .ag-status-bar,.ag-theme-balham-auto-dark .ag-column-drop-vertical-empty-message,.ag-theme-balham-auto-dark .ag-status-bar{font-weight:600;color:var(--ag-disabled-foreground-color)}.ag-theme-balham .ag-dnd-ghost,.ag-theme-balham-dark .ag-dnd-ghost,.ag-theme-balham-auto-dark .ag-dnd-ghost{font-size:var(--ag-font-size);font-weight:600}.ag-theme-balham .ag-tab,.ag-theme-balham-dark .ag-tab,.ag-theme-balham-auto-dark .ag-tab{border:1px solid transparent;padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2);margin:var(--ag-grid-size);margin-bottom:-1px}.ag-theme-balham .ag-tab-selected,.ag-theme-balham-dark .ag-tab-selected,.ag-theme-balham-auto-dark .ag-tab-selected{background-color:var(--ag-background-color);border-color:var(--ag-border-color);border-bottom-color:transparent}.ag-theme-balham .ag-tabs-header,.ag-theme-balham-dark .ag-tabs-header,.ag-theme-balham-auto-dark .ag-tabs-header{border-bottom:1px solid var(--ag-border-color)}.ag-theme-balham .ag-column-drop-cell,.ag-theme-balham-dark .ag-column-drop-cell,.ag-theme-balham-auto-dark .ag-column-drop-cell{height:calc(var(--ag-grid-size) * 6)}.ag-theme-balham .ag-column-drop-vertical-title,.ag-theme-balham-dark .ag-column-drop-vertical-title,.ag-theme-balham-auto-dark .ag-column-drop-vertical-title{color:var(--ag-foreground-color)}.ag-theme-balham .ag-column-drop-vertical-cell,.ag-theme-balham-dark .ag-column-drop-vertical-cell,.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell{margin-left:calc(var(--ag-grid-size) * 2);margin-right:calc(var(--ag-grid-size) * 2)}.ag-theme-balham .ag-column-drop-vertical-cell-text,.ag-theme-balham-dark .ag-column-drop-vertical-cell-text,.ag-theme-balham-auto-dark .ag-column-drop-vertical-cell-text{margin-left:calc(var(--ag-grid-size) * 2)}.ag-theme-balham .ag-column-drop-vertical-icon,.ag-theme-balham-dark .ag-column-drop-vertical-icon,.ag-theme-balham-auto-dark .ag-column-drop-vertical-icon{color:var(--ag-secondary-foreground-color)}.ag-theme-balham .ag-ltr .ag-column-drop-vertical-empty-message,.ag-theme-balham-dark .ag-ltr .ag-column-drop-vertical-empty-message,.ag-theme-balham-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message{padding-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);padding-right:var(--ag-grid-size)}.ag-theme-balham .ag-rtl .ag-column-drop-vertical-empty-message,.ag-theme-balham-dark .ag-rtl .ag-column-drop-vertical-empty-message,.ag-theme-balham-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message{padding-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);padding-left:var(--ag-grid-size)}.ag-theme-balham .ag-column-drop-horizontal,.ag-theme-balham-dark .ag-column-drop-horizontal,.ag-theme-balham-auto-dark .ag-column-drop-horizontal{height:var(--ag-header-height)}.ag-theme-balham .ag-toolbar-item:where(:not(.ag-toolbar-panel)),.ag-theme-balham-dark .ag-toolbar-item:where(:not(.ag-toolbar-panel)),.ag-theme-balham-auto-dark .ag-toolbar-item:where(:not(.ag-toolbar-panel)){font-weight:600}.ag-theme-balham .ag-toolbar .ag-toolbar-panel,.ag-theme-balham-dark .ag-toolbar .ag-toolbar-panel,.ag-theme-balham-auto-dark .ag-toolbar .ag-toolbar-panel{padding-left:var(--ag-grid-size)}.ag-theme-balham .ag-column-drop-empty,.ag-theme-balham-dark .ag-column-drop-empty,.ag-theme-balham-auto-dark .ag-column-drop-empty{color:var(--ag-disabled-foreground-color)}.ag-theme-balham .ag-column-drop-horizontal-cell-text,.ag-theme-balham-dark .ag-column-drop-horizontal-cell-text,.ag-theme-balham-auto-dark .ag-column-drop-horizontal-cell-text{margin-left:calc(var(--ag-grid-size) * 2)}.ag-theme-balham .ag-column-drop-vertical,.ag-theme-balham-dark .ag-column-drop-vertical,.ag-theme-balham-auto-dark .ag-column-drop-vertical{padding-top:calc(var(--ag-grid-size) * 2)}.ag-theme-balham .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-balham .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-balham-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-balham-dark .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-balham-auto-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-balham-auto-dark .ag-column-select-column-readonly .ag-icon-grip{opacity:0.35}.ag-theme-balham .ag-menu-header,.ag-theme-balham-dark .ag-menu-header,.ag-theme-balham-auto-dark .ag-menu-header{background-color:var(--ag-header-background-color)}.ag-theme-balham .ag-overlay-loading-center,.ag-theme-balham .ag-overlay-exporting-center,.ag-theme-balham-dark .ag-overlay-loading-center,.ag-theme-balham-dark .ag-overlay-exporting-center,.ag-theme-balham-auto-dark .ag-overlay-loading-center,.ag-theme-balham-auto-dark .ag-overlay-exporting-center{background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);color:var(--ag-foreground-color);padding:calc(var(--ag-grid-size) * 4)}.ag-theme-balham .ag-tooltip,.ag-theme-balham-dark .ag-tooltip,.ag-theme-balham-auto-dark .ag-tooltip{border:none}.ag-theme-balham .ag-panel-title-bar-button-icon,.ag-theme-balham-dark .ag-panel-title-bar-button-icon,.ag-theme-balham-auto-dark .ag-panel-title-bar-button-icon{font-size:calc(var(--ag-icon-size) + var(--ag-grid-size))}.ag-theme-balham .ag-panel,.ag-theme-balham-dark .ag-panel,.ag-theme-balham-auto-dark .ag-panel{background-color:var(--ag-header-background-color)}.ag-theme-balham .ag-chart-data-section,.ag-theme-balham .ag-chart-format-section,.ag-theme-balham .ag-chart-advanced-settings-section,.ag-theme-balham-dark .ag-chart-data-section,.ag-theme-balham-dark .ag-chart-format-section,.ag-theme-balham-dark .ag-chart-advanced-settings-section,.ag-theme-balham-auto-dark .ag-chart-data-section,.ag-theme-balham-auto-dark .ag-chart-format-section,.ag-theme-balham-auto-dark .ag-chart-advanced-settings-section{padding-bottom:calc(var(--ag-grid-size) * 0.5)}.ag-theme-balham .ag-group-toolbar,.ag-theme-balham-dark .ag-group-toolbar,.ag-theme-balham-auto-dark .ag-group-toolbar{background-color:var(--ag-subheader-toolbar-background-color)}.ag-theme-balham .ag-chart-tab,.ag-theme-balham-dark .ag-chart-tab,.ag-theme-balham-auto-dark .ag-chart-tab{padding-top:calc(var(--ag-grid-size) * 0.5)}.ag-theme-balham .ag-charts-format-sub-level-group-item,.ag-theme-balham-dark .ag-charts-format-sub-level-group-item,.ag-theme-balham-auto-dark .ag-charts-format-sub-level-group-item{margin-bottom:calc(var(--ag-grid-size) * 1.5)}.ag-theme-balham .ag-filter-active .ag-icon-filter,.ag-theme-balham-dark .ag-filter-active .ag-icon-filter,.ag-theme-balham-auto-dark .ag-filter-active .ag-icon-filter{color:var(--ag-balham-active-color)}.ag-theme-balham .ag-color-input input[class^=ag-][type=text].ag-input-field-input,.ag-theme-balham-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input,.ag-theme-balham-auto-dark .ag-color-input input[class^=ag-][type=text].ag-input-field-input{min-height:calc(var(--ag-icon-size) + 4px)}.ag-theme-balham .ag-list-item-hovered::after,.ag-theme-balham-dark .ag-list-item-hovered::after,.ag-theme-balham-auto-dark .ag-list-item-hovered::after{background-color:var(--ag-balham-active-color)}.ag-theme-balham .ag-pill .ag-pill-button:hover,.ag-theme-balham-dark .ag-pill .ag-pill-button:hover,.ag-theme-balham-auto-dark .ag-pill .ag-pill-button:hover{color:var(--ag-balham-active-color)}.ag-theme-balham .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-balham .ag-disabled .ag-icon,.ag-theme-balham .ag-column-select-column-group-readonly .ag-icon,.ag-theme-balham [disabled] .ag-icon,.ag-theme-balham-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-balham-dark .ag-disabled .ag-icon,.ag-theme-balham-dark .ag-column-select-column-group-readonly .ag-icon,.ag-theme-balham-dark [disabled] .ag-icon,.ag-theme-balham-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-balham-auto-dark .ag-disabled .ag-icon,.ag-theme-balham-auto-dark .ag-column-select-column-group-readonly .ag-icon,.ag-theme-balham-auto-dark [disabled] .ag-icon{color:var(--ag-disabled-foreground-color)}.ag-theme-balham .ag-filter-panel .ag-standard-button.ag-filter-panel-buttons-apply-button:disabled,.ag-theme-balham-dark .ag-filter-panel .ag-standard-button.ag-filter-panel-buttons-apply-button:disabled,.ag-theme-balham-auto-dark .ag-filter-panel .ag-standard-button.ag-filter-panel-buttons-apply-button:disabled{color:unset;background-color:unset}.ag-theme-balham .ag-filter-card-title,.ag-theme-balham-dark .ag-filter-card-title,.ag-theme-balham-auto-dark .ag-filter-card-title{font-weight:600}
`,document.head.appendChild(e)}})(),(function(){if(typeof document<"u"){var e=document.createElement("style");e.setAttribute("data-ag-scope","legacy"),e.textContent=`@font-face{font-family:"agGridMaterial";src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABfQAAsAAAAAM3gAABd9AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIw2BmAAjWwKuTCvFAE2AiQDgnwLgUAABCAFhF4Hhm0b1ix1hhhsHMC2mP8zUZSszbLs//+W9BhqsqH0GxctWcq1LQ9kwk6csFTOuvgybo7Aw89STjq5paY2PW5rQhGkUfahZ41oQmSY65g76I9YoEMfOEKFf2OQoZQ8D38/6rw/0UEzopGxncCL3EgXaH1qrvctJHeX+wiYy26ADrhAoL4qqU4lqgpVjaqyUyM7FZJ/4Lf5f4SVGCiIAk4QLmWusJJ0w3hysZoVs2oZuipYMd/nGquGZbEKnyySFb7/4AXLAODhbff+3V0xLUnWdZtNqIKxTlGLGAjxBvF2qHzvUD6AXs4AAAIT5xpcU8wI/1myRO0wQ9uqoQ71RDzdi4b08UTTixlUpq4Lsqy4Ilu6cmU/JJJ9F+KO+6TiojtYSU/sEN/PbONt1+1xGIuGSqRt6vvNdmqZPSw4ZczteVN+afOXQWASLHFC+JUI+D+dZWsdcICp6MIldtXMaAyjL60t09vx2ByStaTVkewNIguOdKzbAHFRAXd5adM1VDQp23spmipgtEPpbQBUtlvqdEuHf5Ou2QQFQZ/GWu+jay9nsWONChMJjZAIiaXj//vVKKDZjC100q0kqo4Tt6+iDUcvW2A7czkunDuB6CyHS1Yvoh9JvY5owG3P31ny2vd0nP369mn+4Z/1pvKsoSoMmLPFQMQlimgGIUEnmSw2SmVkO7Q4XIrdJ7g8M6AzwbCSqJl12iiqrywnrxVnMOUxUWOkYTV0vubujJQcSRoxMiyl4sqOqJYG20YpTAkhaf34nuBGMQVChiuwKjjUICotT2fbvGhfPUWaRwjs4CZMqQnrBtzz3FBcQZ0f+oUMs6NdEgxZHvRprVJcwe4JWFwDtVkx0aIteYJtGmfyJP3AembB/eIsUoYu6DjWCa7ECWlSH+6uU4ioMWIL1rPuexQ21bJdIONf6o1Lj9NE4Ou7rG3i45sGhBJpSjSz5+QtiboI0r3RJLh2qQSdwRMaC/c7XSTUGhC47+XRO33EXRgWSJIn58ltcuSZF7lqEhLu3vkUS9qPl6+pU5RyaU9w/wVfVI3C8UjX2lIJxQg8re0ZM66C5eV+Q0Y+FP2CYVkocrLqaT3i2QaOR1fCo6e/KUx4VVTS9nYnGXSe+yf41mmq956TVyFilLvUAnSXu4VAhCK0pCJVJ9X2XK4qzJqKgprEM4tqsTRZFBPVZsCeKIunE4QdUBdTwuUxan8Qp2kzYk6XDTTpDFtCJwijHtXaE11IHRq0UuItusuMPY5uUbo0M5xGmdD7cWmTvSctSkLLRbuQFtKYEOHq0Um21HpiD8KlbYEFbIVodtBemY2h8qLqTDmQdtJV9x3FqJSBrQ6ZGKH3j9tmrdHERAD5ewQYQZlkMnJcA6CuCmHIQihqEPN4mEzXIKZljUMMSndecSDmFOR8DJnOQZymx5Q122a1IO6JxPT5mn2cEECLGTCM2vdRaeReSO/KIKPD7vEFspHjLCrh6VE8JyNR3fRD4Ef5/ZfPmKCAipKBPoed7fA0vhTWJPsBnJW9Z8dxMOd+UAdqwMKzJ1+N8lYZYsxcwGiid4bHMIBWURQ36YLrHjb5/79FJ1xysxEuQXlRUdg7DFkCj0DKOSGUElaYko6CHSTqFZYDc/LRFJQRFKOKiIrR0vtrV6lKtRq16tRr0KhJsxat2rTr0KlLtx69KvXpN2DQkAbDRowaM27CpCnTKs2Y5aJnnXkLFi1Zlr1CilVr1m3YtGXbjl179h04BA+cbPQAPvZ//tLq+aKUCE0kl6xt5WHMMld00oUyshlbgdoX/fdgcVHdMbjdErj7hyoX2wEP2wWPtgoe7xI82TJ4un3wbOvgxQ7Ay+2BVzsBr7cJ3mwDvN0ZeL8V8GHb4OPWwKedgs+7AF+2Bb7uCHzbOfh+riCwyhAIoRDCAPUQHBogBDRCSGiCUNAMWUALZAmtkBW0QdbQDtlAB2QLnZAddEH20A2hoQfCQC+EhT4IB/0QHgYgAgxCRBiCABiGSDACkWEUosAYRIVxiAYTEB0mIQZMQUxog1gzDZkZyMxCZg4y85Dnaldo1A1CNoQcCLkQ8iDkQyiAUAihCNAGibVfAqEUQhmgBpK/sFVAapUQqiBUQ6iBUAuhDlAL6aEOMqh7I4QmCN0hNEPoAaEnhF4QekPoA6EvhH4Q+sN/DFq4Xi3iJ/gXNF5Ayw6ar/rSoeCISAH0JxACk4khz8KKSoSSEp5+MCLkg66oiMzAdoKYHKegHSB9xgC2CWEa3RAu3gydHBpG2qtB7VxVlb1tAEoNNctqWgDuZAuEMnWH21LZoe/tdtiRXjVzA14wXcwDRLAtmsG0cbTMvTUIx1JMYx1jy2rYzKbUg0AVVmUooY0Vhc5Z+yG89wMvwSrqBAJUnnKrdbiaAthlJz0VyMrBQLvEnJgxDIlKeoqAxJJFsAx0TowzcZNGo7HieFUjirm+5IpGYTv2kzA4NIRS6Rzf6UwwRiD5epCKO6jHOJFbT+pcGweiXcyXWgsoaHGcLAnOFw0eCE2vGWeCJzx1iPEoFRx2aAMiUKu3EPMsxKmOc5xbRjo8IbZJseSkXuoghhiz65quCWmbuNg4n+rD3m7e3/j95Km7cPSHqxPHf1dHp/9XJ0/+LfC6IramUmet2mmKsP6wA6hkNLcq1P2A8kADX93ZCmHDPtj8saScsfAJXpWg7IZWDZ+9xM9LFV5YHFPm5tjjqedABmiE+YP+zjQBThLJSiCxocbDTMlGIUWLPFVhW1WXhD4ADaa8buQDPO0eNOiHV8lg6mpWFJxcF9c++TcxM5VIKn/kUwjLwyl3x3s4Tc7lGpqGwcXqdCbM230pvEjwQBSUaqLPwuAHYmQQN9tRI+Vx7onDsNHOMVfRapW+HDrxkPWSPg7CyWhbGW0dRYPBwmOf8RajPWXtTEJnq5IADdpUyA3VhGzYcAxd+7uHTVgIquPNk1AchSyZQxkifbFmpyFaXLEb2vm80KFik+1DuONR9ErgZ5QJzvQhiTGSyuKLrtIvJ+nGC2aadeP5YGstQLYst/pcclCuKETbAQOL+e8167W3p3GzKGGob8l/vDj+K/Jr4ZG8W8Xu1mHITRi6M3ijIPYo5A8MJ/8k+X/K3Sk67IWRnelT4eiPYP/GFJf13zhzFvqt8bJciGIuCGMh7iH4BEr5SG/yMQEumRzOp5BcEj3xS1miCF3JVJ8uQ+lSmvvrEDMTQItG4Asm46ITSNCHWvj0IGclVfZOtLawWJd03Jd61GwLgpCLIuPdImvm82gsaxfyfBvJismyl6SGsiWjsRXjwIoeNVwZaIQUBK15l02V2qDAYvumGjQ1FSVIYmvx/gmnT/aJ3ywUL8QHC2+lp0F6mL0RgRzEf+PNUBbmMGLHlXWYJH5UmmJJ7mVpkEwlUGYP6/jinn1HVXscVd3nSqEZPAw7q5QvAYNHwj+hiWdJlM5VqgdFD4HwHfMHa5XDyksb/Ma0BDcQpH+JT5LjSfZHsFMeK8h2uXfqa4/RC3P2Sbsl/a5wYiptNXNRKcbo3Hg8o/a71zmmU6wNy5mKUOPk5Flt+sIqjW9qXhvD4jAiHFY/yzB9NItMF/mDYMJnAR/qbfKE8bxZv+p+WEkmZNL1LwhPjTPabeOCyDR85wHmw5AcoQHRP1nz33j3ALbUe3anRXWVZmpzH6iCh1tuzOJ8DWlo/y4YgIDhIclwT4RzPIA6PFuJNF4eKE0PpIOzcoTt4SzQIJKbSAgGnn3dMbHhseWmRns/N93qSU1F4cWb0tZh8KhVujczYqRwJyUXCaIwjffjaY+FzyTWzen9mlwhDZy0vYLUVCMJn/N7ik5NtDZIvdqNHis89lzP7Il2IszvlhxY1eEf/KR20Hi6q5oJRL2fObbNKHvZlggDTT2UcLe4VsX8NMIN8J4jKt0RxjhmuUX8ViYwoqxpUhs63iOQJpA+MBJDATO8LastWGj0T6me/j7GLp/aV3VX26lsJB0rutjXq2MF3eJAaThdLsdJjLMEgg5Deipp9zhyW4BQpGbHI+o9GadRJcsoFlXIXT7cmIsp/vf9l9jB9wSvYyFNZFCOzMLFugl/ivvN5CTcQtsXKcJxl/BirB4Pv+fxoV5k+OsUh9LTye0pHbM4d247OKCfjdXWnqPF2qh1qVaavcK7RSxy/0sDmF1ntX5Dv7239ikUMG7NYNANAEkZ7k/W3aOsdMoO/tNc//QvP5bXx/xkunj4BBz/k+C6nX7HKGzvzwxiBX4y1GfTsxfq66WcNa2y1FIc2oFXZQfJekdSiBcR/GjJxGhze9DWakVYEusqhfhuKzlFGEvsfE0kH6fHEZCr/zfeMQ74bi0f2LttyxYLfxfPbDLBUjqrW4ymqr8p129P+u1zx4SeIJM3cbxPv4Lv+q74Kj34b1P9NZwfO9tCMmyCi2BDB+2O6ZAFLFZsmY9SkNvnT4ELyJBswk3pythtm3e88fQ5tgBgijbUl0WXREaWRJe9msiZksjn6b96RejVblhPpl30bGBvEG5PnqWd9UHWJG+yOpu/NkPUOiuBEXaPQWDcC2NkPxwWQqBQ0tOvXDYY0jPkxvKQ0LpQcaadkFc0Wl8rdYeP5/R6XUUFDpcQf4XLfeXylX0Ju3ev+KiisUECbBr6aQVgOiyyTu1SMvSga93pBOxg0g6mJ0Ng3RfdqdOMrnM6IQR/2oEAW4bKHDOzb7ABkbGBXYaxZQiwdDdkN2DMfEuflR53GQki772fpG6unSc+4MKfxB/Dn8iPXPxnSpYeuuP/uqVtmcuDEYJkr36XWv0j95UB93y8Jo35ukNMYV9sxpP94ngk1+0e7fFN44h+h8YGGtWBubm02Z7b9nvSqBTfAM/rDpLbCs/pk+s+uXvnkDz1fn9HdkG4zytf0swhrZQdHlNiM14ySB6uBT2pvr7/u0zaGrci2BhkogYDpd2tRUEYShXep9ZsIh4vpo41h48g7CDVQ6jdw2S09fczowXDtO7FVmc/0MXjitQWFp5LOO7Poq0RrXEVua5m0zvSqOiks3d/lWg1jU0/npbW31/CBKG3I51Olkvxkd27ktc2fuqKaeN9k4je7H/j8pPyt99FL44gjnL3VqRPU7adXk9aQfWhRuTOzmmPWDJ0BDGQSIIVB4cJJR6wTxDWeVUNiNh8Vo9aocgbOylLxpAwplT7S6eh5XXpCvF80SQXbYZIXOfKipwtUpvFbD7np1SSSpMrSVNfALc0K6mgcP64hUtuCAIjVoD93REQUfdJGDKGvrLOSOnI2TLXh6aFhKTlCTmdx7pDcPRrW4VbrwlXywd6J6bEEL3SpqxDHKgD/hGeOU2lz+qQ63bUgYKQVK9T6rTYsglShe/13dFNSa/zrcMsUd521NaE1NJ2Xa2lplZSgz8PtldbxxbGN6u1VzFivZ5fIHTZEfpBBMvEYkqjokoahMxiuADkIL13WAaa0WIY14KlwQdMKa13hZD2KnVGhrpqdd3qhc7kKvXx7/WrFxYlJ889YPh9jU1pg5nOlTHLhtruuGgB522H0rGPCdvJ61+Q2pPljvJCT+kLQxUhEyaEKEILYyYhO+/doyOTFORNOqYpDMYs0Oy7+CPrx4O9bGBvWWjy0sLxXoIsYWNBwi/yLegs/SwUCiI6OibqRT17HhJisQy2mVTo4CCqMrUNWkDoFa1jhp5nrtr5UCbrJflg6WNfeHLRyYA9tsGJmf8kl4cPsW7sU/jEX4PfKvqn5XIrxfAMe2YxjPD5uVsnFvHyuB0d3Dxe0U0hP/COjjxuEe+mwH1Y5cLqosh8oTA/sqg/UNx+vrAosn9vdrB/ETekpjYsDRTppexfJ3KaaTFFKb3fXjmWjgpj5jk4co6Sc2GtHIW/RqO7TVO63V6HAlK4FVB44WtqJzIV6YxUnb17d+97q92uhdsBclQOB1ecvrXqvU5ahgsXrj8/JDRSrLsZm1geHzP9peWGIqVyhEwzb+4m2eTkmKv2xSCsx6l2lYqJNpQUy+UYNu74CXC/769L2oxp86amzUkY8nG4AWskev8+OYlqXV9RsGNsEBcXwHKyFwVrXbZ5BpW0DpUeOZ54/CgqqVNJsHm0RIEkCzFVpa1lbtP2TiSdOIJKnVLDXGqCQJWFYnYVUBZoPLw99hfQV/gvK2izZ9ybQPKwgAfLA8BY29iEffVH6737m5tNXTu7ukxgjyabyHdL4a1epDFEtU/9VnKaT9bkjmHv+IiQnLL5x8w+fT5p3Boi3qKFerdNf87hZZ66y+VzayCNs34ngV5orPs+99W4RByD82DelOJFpKMtOpgoZkiIRnjy3sI3kh1kIxmt8CLZ7HRaeBanU11PLjP7kv1yenvRE6fQ8/AcyNLBaDsoN56ozHz56gP8gaHmoX28Px4/SfS6Loz+a13tKlkDuTVPdSmWt50NZGmHmp+UKZVEQpZJNC08kN5bdWzmbdVRe1utVFcpq+Zvrlrpduyh8iGcOzfu1i3S7Vvi1vVSyVKt/7Jel95ldO1miUQbuowEI3/fULWnasSurb6n8lqq8o5V4tYuWSJeCo+bwhftCOQjU7gi/g4g4Bou2sET4/LLzvMwHDncd/gI8MZdGjKk12p8Qv1do3iTHv1L8eEX+erVSAgUhYsZ9zXMtuaMjmL1+d8SIzLosyflZtdkLOAsf5gnihZ3Lprb1njt5GxzUdGmrk2Nn/7Q7C2CMV02JtMkx2ESa40rzLSnK37GFtcwHsS99NaozxhNdf2srvFKfD95nrWuMh0lkOLDVAQq8hQ9c2QLpZXSvLE65uWuflF+SgW45UUxo2AO89evn0/lv6Mu1IZPBQDYAcqllspXLuP7MVaQ2jBlpKiQcZk2fJXqRnQVznapufgzKjv5/z3X4D+nwuaxyLFEyS6XzcdZS1VDCvRf2VqpuPrLKcETELd1rQ24SyqBZJiGx9VxGRvc5ZOuaNNsveJkfKIP4jo2opdwxWqxiWQZF7VYJd4dgopjoGLDrTJxWo2p+KhA5brH9RXYdmipPl8rAK8rM/Ge/HlwO8kmVI9nQACpXMArXaE6tGWm8lPwLl9qIX5WCOK+j/8H7DeZf7bpeikx/u8RbngrAClwfX16bonVJCvkg/86E1oqoHLs1fH8Tzv+N34i+Ue5+PMXULyvvf3/hVGBZlKD/6h0+houKAp0yyuRGQWrYVojpNrx/dvUiZvdpl6VjW2ajZNLblHvDoYUVyA6PMm2oaq824bp8F7i479to2jycxtVR2AbTTo6fn9xQzHiE4SVRPcBihIh/cJQE9QcT/5d/EMpkal/GZ5rjRUSyui9dP247csSXlV974Xn/p1JMSXus/AnWh0m1fz29OTfIgyW5z0IK4nuY7SWogHpF+GhsisPonSixfBvxAp+6Ez9y/CsLK2AeCqyun7crqxlCa8fa6gP8sJz/66ZKLJUMP6ALDY+0Y7EMHUw8ttTcXpeVQxWC70/3Ag6umiAaRqnMWIVU6xjE9u/eOGp/DfjlXlBMyzHCyKQZEXVdMO0DsfT+XK92Y7r+UEYxUma5UVZ1U3b9cM47e7tHxzqCUNI07Id1/ODMJlKZ7K5fKFYKh9T9P8eQQiCATQydSDC63IIxTawXK4WHBbbWSCLqbUTiF5fdrRfI2/MuobusbKMSA4VZY4Eird1hUpKznPLicXkuDNZjt6OOlM5tUwqYBVdYzlvWytcyqEty6Gt2pjmLW7GqePWM2j3dCe4RVMSlOmQNTof0wlTrcOkaBMk5jYI19w0emiT0GuXIhmOepQYXKRwPMMmznGHzYxUjy2l3AKICc+I1UBKvIbe5tYZPIST2hwX1mv5+G7YjFWVybD3V5UwaiWGSZsCC56WWUO/cbymDemFegb5EPX4HdvI9FLczq0Kou/gpDo9Z6TjStZbmpxqaZtQK8d2YyuxDo6qDuXLuS/BBI93lS6xTheLuRE6M7Iqz6dcQzmfBkNfxOJqzecb0tNkTvKeC8i5eurjaAaca9BF7QqC2OnYsa09+Zrogd+cLJAqFgPlMDtPAwKBVMTIWmE5yeTLaMOcqmxr4e0CAAAA);font-weight:normal;font-style:normal}.ag-theme-material,.ag-theme-material-dark,.ag-theme-material-auto-dark{--ag-material-primary-color: #3f51b5;--ag-material-accent-color: #ff4081;--ag-foreground-color: rgba(0, 0, 0, 0.87);--ag-secondary-foreground-color: rgba(0, 0, 0, 0.54);--ag-disabled-foreground-color: rgba(0, 0, 0, 0.38);--ag-background-color: #fff;--ag-header-background-color: #fff;--ag-tooltip-background-color: #fff;--ag-subheader-background-color: #eee;--ag-subheader-toolbar-background-color: rgba(238, 238, 238, 0.5);--ag-header-cell-hover-background-color: #f2f2f2;--ag-chip-background-color: #e2e2e2;--ag-range-selection-background-color: rgba(122, 134, 203, 0.1);--ag-range-selection-background-color-2: rgba(122, 134, 203, 0.19);--ag-range-selection-background-color-3: rgba(122, 134, 203, 0.27);--ag-range-selection-background-color-4: rgba(122, 134, 203, 0.34);--ag-row-numbers-selected-color: color-mix(in srgb, transparent, var(--ag-material-accent-color) 50%);--ag-calculated-column-highlight-color: color-mix(in srgb, transparent, var(--ag-material-accent-color) 12%);--ag-column-header-edit-highlight-color: color-mix(in srgb, transparent, var(--ag-material-accent-color) 12%);--ag-range-selection-highlight-color: #fce4ec;--ag-row-hover-color: #fafafa;--ag-column-hover-color: #fafafa;--ag-icon-button-hover-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 6%);--ag-control-panel-background-color: #fafafa;--ag-selected-row-background-color: rgba(33, 150, 243, 0.3);--ag-checkbox-unchecked-color: #333;--ag-value-change-value-highlight-background-color: #00acc1;--ag-side-button-selected-background-color: transparent;--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-find-match-color: var(--ag-foreground-color);--ag-find-match-background-color: #ffff00;--ag-find-active-match-color: var(--ag-foreground-color);--ag-find-active-match-background-color: #ffa500;--ag-filter-panel-apply-button-color: var(--ag-material-primary-color);--ag-filter-panel-apply-button-background-color: transparent;--ag-column-panel-apply-button-color: var(--ag-material-primary-color);--ag-column-panel-apply-button-background-color: transparent;--ag-range-selection-border-color: var(--ag-material-primary-color);--ag-checkbox-checked-color: var(--ag-material-accent-color);--ag-borders: none;--ag-borders-critical: solid 1px;--ag-border-color: #e2e2e2;--ag-grid-size: 8px;--ag-icon-size: 18px;--ag-header-height: calc(var(--ag-grid-size) * 7);--ag-row-height: calc(var(--ag-grid-size) * 6);--ag-auto-height-min-body-height: 150px;--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);--ag-list-item-height: calc(var(--ag-grid-size) * 4);--ag-row-group-indent-size: calc(var(--ag-grid-size) * 3 + var(--ag-icon-size));--ag-filter-tool-panel-sub-level-row-height: calc(var(--ag-grid-size) * 4);--ag-checkbox-border-radius: 2px;--ag-toggle-button-switch-border-width: 2px;--ag-toggle-button-height: var(--ag-icon-size);--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.75);--ag-font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 13px;--ag-icon-font-family: agGridMaterial;--ag-selected-tab-underline-color: var(--ag-material-primary-color);--ag-selected-tab-underline-width: 2px;--ag-input-focus-border-color: var(--ag-material-primary-color);--ag-input-focus-box-shadow: 0 0 0 5px rgba(32, 33, 36, 0.122);--ag-input-error-focus-box-shadow: 0 0 0 5px color-mix(in srgb, var(--ag-background-color), var(--ag-invalid-color) 0.5%);--ag-card-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--ag-card-radius: 2px;--ag-invalid-color: #e02525;--ag-note-indicator-color: var(--ag-material-accent-color)}.ag-theme-material-dark{--ag-material-primary-color: #3f51b5;--ag-material-accent-color: #bb86fcff;--ag-range-selection-border-color: var(--ag-material-accent-color);--ag-find-match-color: var(--ag-background-color);--ag-find-active-match-color: var(--ag-background-color);--ag-background-color: #121212ff;--ag-foreground-color: #ffffffff;--ag-data-color: #f5f5f5ff;--ag-header-cell-hover-background-color: #000000ff;--ag-icon-button-hover-background-color: #000000ff;--ag-advanced-filter-join-pill-color: #7a3a37ff;--ag-advanced-filter-column-pill-color: #355f2dff;--ag-advanced-filter-option-pill-color: #5a3168ff;--ag-advanced-filter-value-pill-color: #374c86ff;--ag-input-disabled-border-color: #3a434eff;--ag-input-disabled-background-color: #68686e12;--ag-selected-row-background-color: #bb86fc33;--ag-row-hover-color: #bb86fc33;--ag-column-hover-color: #f5f5f50d;--ag-range-selection-background-color: #bb86fc1a;--ag-range-selection-background-color-2: #bb86fc30;--ag-range-selection-background-color-3: #bb86fc45;--ag-range-selection-background-color-4: #bb86fc57;--ag-border-color: #383838ff;--ag-secondary-border-color: #383838ff;--ag-header-background-color: #121212ff;--ag-tooltip-background-color: #212b38ff;--ag-odd-row-background-color: #121212ff;--ag-control-panel-background-color: #2c2c2cff;--ag-subheader-background-color: #ffffff0d;--ag-subheader-toolbar-background-color: #2c2c2cff;--ag-invalid-color: #e02525ff;--ag-checkbox-unchecked-color: #797e87ff;--ag-checkbox-background-color: #121212ff;--ag-secondary-foreground-color: #f5f5f5ff;--ag-input-border-color: #383838ff;--ag-input-border-color-invalid: #e02525ff;--ag-disabled-foreground-color: #f5f5f580;--ag-chip-background-color: #22262812;--ag-side-button-selected-background-color: #2c2c2cff;--ag-selected-tab-underline-color: #3f51b5ff;--ag-modal-overlay-background-color: #121212a8;--ag-value-change-delta-up-color: #43a047a8;--ag-value-change-delta-down-color: #e53935ff;--ag-menu-background-color: #2c2c2cff;--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);--ag-cell-batch-edit-text-color: #f3d0b3;--ag-formula-token-1-color: #4da3e5;--ag-formula-token-1-background-color: rgb(77 163 229 / 16%);--ag-formula-token-2-color: #f55864;--ag-formula-token-2-background-color: rgb(245 88 100 / 16%);--ag-formula-token-3-color: #b688f2;--ag-formula-token-3-background-color: rgb(182 136 242 / 16%);--ag-formula-token-4-color: #24bb4a;--ag-formula-token-4-background-color: rgb(36 187 74 / 16%);--ag-formula-token-5-color: #e772ba;--ag-formula-token-5-background-color: rgb(231 114 186 / 16%);--ag-formula-token-6-color: #f69b5f;--ag-formula-token-6-background-color: rgb(246 155 95 / 16%);--ag-formula-token-7-color: #a3e6ff;--ag-formula-token-7-background-color: rgb(163 230 255 / 16%);--ag-calculated-column-reference-color: #4da3e5;--ag-calculated-column-function-color: #24bb4a;color-scheme:dark}@media(prefers-color-scheme:dark){.ag-theme-material-auto-dark{--ag-material-primary-color: #3f51b5;--ag-material-accent-color: #bb86fcff;--ag-range-selection-border-color: var(--ag-material-accent-color);--ag-find-match-color: var(--ag-background-color);--ag-find-active-match-color: var(--ag-background-color);--ag-background-color: #121212ff;--ag-foreground-color: #ffffffff;--ag-data-color: #f5f5f5ff;--ag-header-cell-hover-background-color: #000000ff;--ag-icon-button-hover-background-color: #000000ff;--ag-advanced-filter-join-pill-color: #7a3a37ff;--ag-advanced-filter-column-pill-color: #355f2dff;--ag-advanced-filter-option-pill-color: #5a3168ff;--ag-advanced-filter-value-pill-color: #374c86ff;--ag-input-disabled-border-color: #3a434eff;--ag-input-disabled-background-color: #68686e12;--ag-selected-row-background-color: #bb86fc33;--ag-row-hover-color: #bb86fc33;--ag-column-hover-color: #f5f5f50d;--ag-range-selection-background-color: #bb86fc1a;--ag-range-selection-background-color-2: #bb86fc30;--ag-range-selection-background-color-3: #bb86fc45;--ag-range-selection-background-color-4: #bb86fc57;--ag-border-color: #383838ff;--ag-secondary-border-color: #383838ff;--ag-header-background-color: #121212ff;--ag-tooltip-background-color: #212b38ff;--ag-odd-row-background-color: #121212ff;--ag-control-panel-background-color: #2c2c2cff;--ag-subheader-background-color: #ffffff0d;--ag-subheader-toolbar-background-color: #2c2c2cff;--ag-invalid-color: #e02525ff;--ag-checkbox-unchecked-color: #797e87ff;--ag-checkbox-background-color: #121212ff;--ag-secondary-foreground-color: #f5f5f5ff;--ag-input-border-color: #383838ff;--ag-input-border-color-invalid: #e02525ff;--ag-disabled-foreground-color: #f5f5f580;--ag-chip-background-color: #22262812;--ag-side-button-selected-background-color: #2c2c2cff;--ag-selected-tab-underline-color: #3f51b5ff;--ag-modal-overlay-background-color: #121212a8;--ag-value-change-delta-up-color: #43a047a8;--ag-value-change-delta-down-color: #e53935ff;--ag-menu-background-color: #2c2c2cff;--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);--ag-cell-batch-edit-text-color: #f3d0b3;--ag-formula-token-1-color: #4da3e5;--ag-formula-token-1-background-color: rgb(77 163 229 / 16%);--ag-formula-token-2-color: #f55864;--ag-formula-token-2-background-color: rgb(245 88 100 / 16%);--ag-formula-token-3-color: #b688f2;--ag-formula-token-3-background-color: rgb(182 136 242 / 16%);--ag-formula-token-4-color: #24bb4a;--ag-formula-token-4-background-color: rgb(36 187 74 / 16%);--ag-formula-token-5-color: #e772ba;--ag-formula-token-5-background-color: rgb(231 114 186 / 16%);--ag-formula-token-6-color: #f69b5f;--ag-formula-token-6-background-color: rgb(246 155 95 / 16%);--ag-formula-token-7-color: #a3e6ff;--ag-formula-token-7-background-color: rgb(163 230 255 / 16%);--ag-calculated-column-reference-color: #4da3e5;--ag-calculated-column-function-color: #24bb4a;color-scheme:dark}}.ag-theme-material .ag-filter-toolpanel-header,.ag-theme-material .ag-filter-toolpanel-search,.ag-theme-material .ag-status-bar,.ag-theme-material .ag-header-row,.ag-theme-material .ag-row-number-cell,.ag-theme-material .ag-panel-title-bar-title,.ag-theme-material .ag-multi-filter-group-title-bar,.ag-theme-material-dark .ag-filter-toolpanel-header,.ag-theme-material-dark .ag-filter-toolpanel-search,.ag-theme-material-dark .ag-status-bar,.ag-theme-material-dark .ag-header-row,.ag-theme-material-dark .ag-row-number-cell,.ag-theme-material-dark .ag-panel-title-bar-title,.ag-theme-material-dark .ag-multi-filter-group-title-bar,.ag-theme-material-auto-dark .ag-filter-toolpanel-header,.ag-theme-material-auto-dark .ag-filter-toolpanel-search,.ag-theme-material-auto-dark .ag-status-bar,.ag-theme-material-auto-dark .ag-header-row,.ag-theme-material-auto-dark .ag-row-number-cell,.ag-theme-material-auto-dark .ag-panel-title-bar-title,.ag-theme-material-auto-dark .ag-multi-filter-group-title-bar{font-size:calc(var(--ag-font-size) - 1px);font-weight:600;color:var(--ag-header-foreground-color)}.ag-theme-material .ag-tab,.ag-theme-material-dark .ag-tab,.ag-theme-material-auto-dark .ag-tab{height:calc(var(--ag-grid-size) * 4.5);flex:1 1 auto}.ag-theme-material .ag-tabs-header,.ag-theme-material .ag-column-drop-horizontal,.ag-theme-material-dark .ag-tabs-header,.ag-theme-material-dark .ag-column-drop-horizontal,.ag-theme-material-auto-dark .ag-tabs-header,.ag-theme-material-auto-dark .ag-column-drop-horizontal{background-color:var(--ag-subheader-background-color)}.ag-theme-material .ag-toolbar-item:where(:not(.ag-toolbar-panel)),.ag-theme-material-dark .ag-toolbar-item:where(:not(.ag-toolbar-panel)),.ag-theme-material-auto-dark .ag-toolbar-item:where(:not(.ag-toolbar-panel)){font-weight:600}.ag-theme-material .ag-toolbar-item,.ag-theme-material-dark .ag-toolbar-item,.ag-theme-material-auto-dark .ag-toolbar-item{font-size:calc(var(--ag-font-size) - 1px)}.ag-theme-material .ag-toolbar .ag-column-drop-horizontal,.ag-theme-material-dark .ag-toolbar .ag-column-drop-horizontal,.ag-theme-material-auto-dark .ag-toolbar .ag-column-drop-horizontal{background-color:transparent}.ag-theme-material .ag-toolbar .ag-toolbar-panel,.ag-theme-material-dark .ag-toolbar .ag-toolbar-panel,.ag-theme-material-auto-dark .ag-toolbar .ag-toolbar-panel{padding-inline-start:var(--ag-grid-size)}.ag-theme-material .ag-tabs-body,.ag-theme-material-dark .ag-tabs-body,.ag-theme-material-auto-dark .ag-tabs-body{padding:calc(var(--ag-grid-size) * 0.5) 0}.ag-theme-material .ag-tabs-body .ag-menu-list,.ag-theme-material-dark .ag-tabs-body .ag-menu-list,.ag-theme-material-auto-dark .ag-tabs-body .ag-menu-list{padding-top:0;padding-bottom:0}.ag-theme-material .ag-header-cell,.ag-theme-material .ag-header-group-cell,.ag-theme-material-dark .ag-header-cell,.ag-theme-material-dark .ag-header-group-cell,.ag-theme-material-auto-dark .ag-header-cell,.ag-theme-material-auto-dark .ag-header-group-cell{transition:background-color 0.5s}.ag-theme-material .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,.ag-theme-material-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing,.ag-theme-material-auto-dark .ag-row-last:not(.ag-row-first) .ag-cell-inline-editing{bottom:0}.ag-theme-material .ag-cell-inline-editing,.ag-theme-material-dark .ag-cell-inline-editing,.ag-theme-material-auto-dark .ag-cell-inline-editing{padding:var(--ag-grid-size);height:calc(var(--ag-row-height) + var(--ag-grid-size) * 3);border-color:var(--ag-border-color)!important}.ag-theme-material .ag-has-focus .ag-cell-inline-editing,.ag-theme-material-dark .ag-has-focus .ag-cell-inline-editing,.ag-theme-material-auto-dark .ag-has-focus .ag-cell-inline-editing{border-color:var(--ag-input-focus-border-color)!important}.ag-theme-material .ag-column-drop-vertical,.ag-theme-material-dark .ag-column-drop-vertical,.ag-theme-material-auto-dark .ag-column-drop-vertical{border-bottom:solid 1px;border-bottom-color:var(--ag-border-color);padding-top:var(--ag-grid-size)}.ag-theme-material .ag-column-drop-vertical.ag-last-column-drop,.ag-theme-material-dark .ag-column-drop-vertical.ag-last-column-drop,.ag-theme-material-auto-dark .ag-column-drop-vertical.ag-last-column-drop{border-bottom:none}.ag-theme-material .ag-column-drop-vertical-cell,.ag-theme-material-dark .ag-column-drop-vertical-cell,.ag-theme-material-auto-dark .ag-column-drop-vertical-cell{margin-left:0}.ag-theme-material .ag-column-drop-vertical-empty-message,.ag-theme-material-dark .ag-column-drop-vertical-empty-message,.ag-theme-material-auto-dark .ag-column-drop-vertical-empty-message{font-size:calc(var(--ag-font-size) - 1px);font-weight:600;color:var(--ag-disabled-foreground-color)}.ag-theme-material .ag-ltr .ag-column-drop-vertical-empty-message,.ag-theme-material-dark .ag-ltr .ag-column-drop-vertical-empty-message,.ag-theme-material-auto-dark .ag-ltr .ag-column-drop-vertical-empty-message{padding-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);padding-right:var(--ag-grid-size)}.ag-theme-material .ag-rtl .ag-column-drop-vertical-empty-message,.ag-theme-material-dark .ag-rtl .ag-column-drop-vertical-empty-message,.ag-theme-material-auto-dark .ag-rtl .ag-column-drop-vertical-empty-message{padding-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);padding-left:var(--ag-grid-size)}.ag-theme-material .ag-status-bar,.ag-theme-material-dark .ag-status-bar,.ag-theme-material-auto-dark .ag-status-bar{border:solid 1px;border-color:var(--ag-border-color)}.ag-theme-material .ag-column-panel-column-select,.ag-theme-material-dark .ag-column-panel-column-select,.ag-theme-material-auto-dark .ag-column-panel-column-select{border-top:solid 1px;border-top-color:var(--ag-border-color)}.ag-theme-material .ag-column-select,.ag-theme-material .ag-column-select-header,.ag-theme-material-dark .ag-column-select,.ag-theme-material-dark .ag-column-select-header,.ag-theme-material-auto-dark .ag-column-select,.ag-theme-material-auto-dark .ag-column-select-header{border-bottom:solid 1px;border-bottom-color:var(--ag-border-color)}.ag-theme-material .ag-column-select-header,.ag-theme-material-dark .ag-column-select-header,.ag-theme-material-auto-dark .ag-column-select-header{height:var(--ag-header-height)}.ag-theme-material .ag-group-title-bar,.ag-theme-material-dark .ag-group-title-bar,.ag-theme-material-auto-dark .ag-group-title-bar{padding:calc(var(--ag-grid-size) * 0.75) var(--ag-grid-size)}.ag-theme-material .ag-charts-format-sub-level-group-title-bar,.ag-theme-material-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-material-auto-dark .ag-charts-format-sub-level-group-title-bar{padding:calc(var(--ag-grid-size) * 0.5) var(--ag-grid-size)}.ag-theme-material .ag-chart-data-section,.ag-theme-material .ag-chart-format-section,.ag-theme-material .ag-chart-advanced-settings-section,.ag-theme-material-dark .ag-chart-data-section,.ag-theme-material-dark .ag-chart-format-section,.ag-theme-material-dark .ag-chart-advanced-settings-section,.ag-theme-material-auto-dark .ag-chart-data-section,.ag-theme-material-auto-dark .ag-chart-format-section,.ag-theme-material-auto-dark .ag-chart-advanced-settings-section{padding-bottom:calc(var(--ag-grid-size) * 0.5)}.ag-theme-material input[class^=ag-]:not([type]),.ag-theme-material input[class^=ag-][type=text],.ag-theme-material input[class^=ag-][type=number],.ag-theme-material input[class^=ag-][type=tel],.ag-theme-material input[class^=ag-][type=date],.ag-theme-material input[class^=ag-][type=datetime-local],.ag-theme-material textarea[class^=ag-],.ag-theme-material-dark input[class^=ag-]:not([type]),.ag-theme-material-dark input[class^=ag-][type=text],.ag-theme-material-dark input[class^=ag-][type=number],.ag-theme-material-dark input[class^=ag-][type=tel],.ag-theme-material-dark input[class^=ag-][type=date],.ag-theme-material-dark input[class^=ag-][type=datetime-local],.ag-theme-material-dark textarea[class^=ag-],.ag-theme-material-auto-dark input[class^=ag-]:not([type]),.ag-theme-material-auto-dark input[class^=ag-][type=text],.ag-theme-material-auto-dark input[class^=ag-][type=number],.ag-theme-material-auto-dark input[class^=ag-][type=tel],.ag-theme-material-auto-dark input[class^=ag-][type=date],.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local],.ag-theme-material-auto-dark textarea[class^=ag-]{background:transparent;color:var(--ag-foreground-color);font-family:inherit;font-size:inherit;padding-bottom:var(--ag-grid-size);border-width:0;border-radius:0;border-bottom:2px solid;border-bottom-color:var(--ag-border-color)}.ag-theme-material input[class^=ag-]:not([type]):not(textarea),.ag-theme-material input[class^=ag-][type=text]:not(textarea),.ag-theme-material input[class^=ag-][type=number]:not(textarea),.ag-theme-material input[class^=ag-][type=tel]:not(textarea),.ag-theme-material input[class^=ag-][type=date]:not(textarea),.ag-theme-material input[class^=ag-][type=datetime-local]:not(textarea),.ag-theme-material textarea[class^=ag-]:not(textarea),.ag-theme-material-dark input[class^=ag-]:not([type]):not(textarea),.ag-theme-material-dark input[class^=ag-][type=text]:not(textarea),.ag-theme-material-dark input[class^=ag-][type=number]:not(textarea),.ag-theme-material-dark input[class^=ag-][type=tel]:not(textarea),.ag-theme-material-dark input[class^=ag-][type=date]:not(textarea),.ag-theme-material-dark input[class^=ag-][type=datetime-local]:not(textarea),.ag-theme-material-dark textarea[class^=ag-]:not(textarea),.ag-theme-material-auto-dark input[class^=ag-]:not([type]):not(textarea),.ag-theme-material-auto-dark input[class^=ag-][type=text]:not(textarea),.ag-theme-material-auto-dark input[class^=ag-][type=number]:not(textarea),.ag-theme-material-auto-dark input[class^=ag-][type=tel]:not(textarea),.ag-theme-material-auto-dark input[class^=ag-][type=date]:not(textarea),.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:not(textarea),.ag-theme-material-auto-dark textarea[class^=ag-]:not(textarea){height:calc(var(--ag-grid-size) * 5)}.ag-theme-material input[class^=ag-]:not([type]):focus,.ag-theme-material input[class^=ag-][type=text]:focus,.ag-theme-material input[class^=ag-][type=number]:focus,.ag-theme-material input[class^=ag-][type=tel]:focus,.ag-theme-material input[class^=ag-][type=date]:focus,.ag-theme-material input[class^=ag-][type=datetime-local]:focus,.ag-theme-material textarea[class^=ag-]:focus,.ag-theme-material-dark input[class^=ag-]:not([type]):focus,.ag-theme-material-dark input[class^=ag-][type=text]:focus,.ag-theme-material-dark input[class^=ag-][type=number]:focus,.ag-theme-material-dark input[class^=ag-][type=tel]:focus,.ag-theme-material-dark input[class^=ag-][type=date]:focus,.ag-theme-material-dark input[class^=ag-][type=datetime-local]:focus,.ag-theme-material-dark textarea[class^=ag-]:focus,.ag-theme-material-auto-dark input[class^=ag-]:not([type]):focus,.ag-theme-material-auto-dark input[class^=ag-][type=text]:focus,.ag-theme-material-auto-dark input[class^=ag-][type=number]:focus,.ag-theme-material-auto-dark input[class^=ag-][type=tel]:focus,.ag-theme-material-auto-dark input[class^=ag-][type=date]:focus,.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:focus,.ag-theme-material-auto-dark textarea[class^=ag-]:focus{border-bottom:2px solid;border-bottom-color:var(--ag-material-primary-color);outline:none;box-shadow:none}.ag-theme-material input[class^=ag-]:not([type])::placeholder,.ag-theme-material input[class^=ag-][type=text]::placeholder,.ag-theme-material input[class^=ag-][type=number]::placeholder,.ag-theme-material input[class^=ag-][type=tel]::placeholder,.ag-theme-material input[class^=ag-][type=date]::placeholder,.ag-theme-material input[class^=ag-][type=datetime-local]::placeholder,.ag-theme-material textarea[class^=ag-]::placeholder,.ag-theme-material-dark input[class^=ag-]:not([type])::placeholder,.ag-theme-material-dark input[class^=ag-][type=text]::placeholder,.ag-theme-material-dark input[class^=ag-][type=number]::placeholder,.ag-theme-material-dark input[class^=ag-][type=tel]::placeholder,.ag-theme-material-dark input[class^=ag-][type=date]::placeholder,.ag-theme-material-dark input[class^=ag-][type=datetime-local]::placeholder,.ag-theme-material-dark textarea[class^=ag-]::placeholder,.ag-theme-material-auto-dark input[class^=ag-]:not([type])::placeholder,.ag-theme-material-auto-dark input[class^=ag-][type=text]::placeholder,.ag-theme-material-auto-dark input[class^=ag-][type=number]::placeholder,.ag-theme-material-auto-dark input[class^=ag-][type=tel]::placeholder,.ag-theme-material-auto-dark input[class^=ag-][type=date]::placeholder,.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]::placeholder,.ag-theme-material-auto-dark textarea[class^=ag-]::placeholder{color:var(--ag-disabled-foreground-color)}.ag-theme-material input[class^=ag-]:not([type]):disabled,.ag-theme-material input[class^=ag-][type=text]:disabled,.ag-theme-material input[class^=ag-][type=number]:disabled,.ag-theme-material input[class^=ag-][type=tel]:disabled,.ag-theme-material input[class^=ag-][type=date]:disabled,.ag-theme-material input[class^=ag-][type=datetime-local]:disabled,.ag-theme-material textarea[class^=ag-]:disabled,.ag-theme-material-dark input[class^=ag-]:not([type]):disabled,.ag-theme-material-dark input[class^=ag-][type=text]:disabled,.ag-theme-material-dark input[class^=ag-][type=number]:disabled,.ag-theme-material-dark input[class^=ag-][type=tel]:disabled,.ag-theme-material-dark input[class^=ag-][type=date]:disabled,.ag-theme-material-dark input[class^=ag-][type=datetime-local]:disabled,.ag-theme-material-dark textarea[class^=ag-]:disabled,.ag-theme-material-auto-dark input[class^=ag-]:not([type]):disabled,.ag-theme-material-auto-dark input[class^=ag-][type=text]:disabled,.ag-theme-material-auto-dark input[class^=ag-][type=number]:disabled,.ag-theme-material-auto-dark input[class^=ag-][type=tel]:disabled,.ag-theme-material-auto-dark input[class^=ag-][type=date]:disabled,.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:disabled,.ag-theme-material-auto-dark textarea[class^=ag-]:disabled{border-bottom:1px solid;border-bottom-color:var(--ag-border-color)}.ag-theme-material input[class^=ag-]:not([type]):invalid,.ag-theme-material input[class^=ag-][type=text]:invalid,.ag-theme-material input[class^=ag-][type=number]:invalid,.ag-theme-material input[class^=ag-][type=tel]:invalid,.ag-theme-material input[class^=ag-][type=date]:invalid,.ag-theme-material input[class^=ag-][type=datetime-local]:invalid,.ag-theme-material textarea[class^=ag-]:invalid,.ag-theme-material-dark input[class^=ag-]:not([type]):invalid,.ag-theme-material-dark input[class^=ag-][type=text]:invalid,.ag-theme-material-dark input[class^=ag-][type=number]:invalid,.ag-theme-material-dark input[class^=ag-][type=tel]:invalid,.ag-theme-material-dark input[class^=ag-][type=date]:invalid,.ag-theme-material-dark input[class^=ag-][type=datetime-local]:invalid,.ag-theme-material-dark textarea[class^=ag-]:invalid,.ag-theme-material-auto-dark input[class^=ag-]:not([type]):invalid,.ag-theme-material-auto-dark input[class^=ag-][type=text]:invalid,.ag-theme-material-auto-dark input[class^=ag-][type=number]:invalid,.ag-theme-material-auto-dark input[class^=ag-][type=tel]:invalid,.ag-theme-material-auto-dark input[class^=ag-][type=date]:invalid,.ag-theme-material-auto-dark input[class^=ag-][type=datetime-local]:invalid,.ag-theme-material-auto-dark textarea[class^=ag-]:invalid{border-width:0;border-bottom:1px solid;border-bottom-color:var(--ag-invalid-color);color:var(--ag-invalid-color)}.ag-theme-material .ag-input-field-search-icon,.ag-theme-material-dark .ag-input-field-search-icon,.ag-theme-material-auto-dark .ag-input-field-search-icon{top:1px;bottom:calc(var(--ag-grid-size) + 2px)}.ag-theme-material .ag-toolbar-button-wrapper,.ag-theme-material-dark .ag-toolbar-button-wrapper,.ag-theme-material-auto-dark .ag-toolbar-button-wrapper{transition:background-color 0.5s}.ag-theme-material .ag-toolbar-find,.ag-theme-material .ag-toolbar-input,.ag-theme-material-dark .ag-toolbar-find,.ag-theme-material-dark .ag-toolbar-input,.ag-theme-material-auto-dark .ag-toolbar-find,.ag-theme-material-auto-dark .ag-toolbar-input{border-left:none;border-right:none;border-top:none;box-shadow:none}.ag-theme-material .ag-toolbar-find,.ag-theme-material-dark .ag-toolbar-find,.ag-theme-material-auto-dark .ag-toolbar-find{height:calc(var(--ag-grid-size) * 5);border-bottom:2px solid var(--ag-border-color)}.ag-theme-material .ag-toolbar-find:focus-within,.ag-theme-material-dark .ag-toolbar-find:focus-within,.ag-theme-material-auto-dark .ag-toolbar-find:focus-within{border-top:none;border-left:none;border-right:none;box-shadow:none;border-bottom:2px solid var(--ag-material-primary-color)}.ag-theme-material .ag-toolbar-input-field:focus,.ag-theme-material-dark .ag-toolbar-input-field:focus,.ag-theme-material-auto-dark .ag-toolbar-input-field:focus{border-top:none;border-left:none;border-right:none;box-shadow:none}.ag-theme-material .ag-toolbar input[class^=ag-]:not([type]),.ag-theme-material .ag-toolbar input[class^=ag-][type=text],.ag-theme-material .ag-toolbar input[class^=ag-][type=number],.ag-theme-material .ag-toolbar input[class^=ag-][type=tel],.ag-theme-material .ag-toolbar input[class^=ag-][type=date],.ag-theme-material .ag-toolbar input[class^=ag-][type=datetime-local],.ag-theme-material .ag-toolbar textarea[class^=ag-],.ag-theme-material-dark .ag-toolbar input[class^=ag-]:not([type]),.ag-theme-material-dark .ag-toolbar input[class^=ag-][type=text],.ag-theme-material-dark .ag-toolbar input[class^=ag-][type=number],.ag-theme-material-dark .ag-toolbar input[class^=ag-][type=tel],.ag-theme-material-dark .ag-toolbar input[class^=ag-][type=date],.ag-theme-material-dark .ag-toolbar input[class^=ag-][type=datetime-local],.ag-theme-material-dark .ag-toolbar textarea[class^=ag-],.ag-theme-material-auto-dark .ag-toolbar input[class^=ag-]:not([type]),.ag-theme-material-auto-dark .ag-toolbar input[class^=ag-][type=text],.ag-theme-material-auto-dark .ag-toolbar input[class^=ag-][type=number],.ag-theme-material-auto-dark .ag-toolbar input[class^=ag-][type=tel],.ag-theme-material-auto-dark .ag-toolbar input[class^=ag-][type=date],.ag-theme-material-auto-dark .ag-toolbar input[class^=ag-][type=datetime-local],.ag-theme-material-auto-dark .ag-toolbar textarea[class^=ag-]{padding-bottom:0}.ag-theme-material .ag-paging-number .ag-input-field-input.ag-number-field-input,.ag-theme-material-dark .ag-paging-number .ag-input-field-input.ag-number-field-input,.ag-theme-material-auto-dark .ag-paging-number .ag-input-field-input.ag-number-field-input{padding-bottom:1px}.ag-theme-material .ag-standard-button,.ag-theme-material-dark .ag-standard-button,.ag-theme-material-auto-dark .ag-standard-button{appearance:none;background-color:transparent;border:0;color:var(--ag-material-primary-color);font-family:inherit;font-size:inherit;margin:0;padding:0;text-transform:uppercase}.ag-theme-material .ag-standard-button:disabled,.ag-theme-material-dark .ag-standard-button:disabled,.ag-theme-material-auto-dark .ag-standard-button:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-theme-material .ag-dnd-ghost,.ag-theme-material-dark .ag-dnd-ghost,.ag-theme-material-auto-dark .ag-dnd-ghost{font-size:calc(var(--ag-font-size) - 1px);font-weight:600}.ag-theme-material .ag-filter-toolpanel-header,.ag-theme-material-dark .ag-filter-toolpanel-header,.ag-theme-material-auto-dark .ag-filter-toolpanel-header{height:calc(var(--ag-grid-size) * 4)}.ag-theme-material .ag-filter-toolpanel-group-level-0-header,.ag-theme-material-dark .ag-filter-toolpanel-group-level-0-header,.ag-theme-material-auto-dark .ag-filter-toolpanel-group-level-0-header{height:calc(var(--ag-grid-size) * 7)}.ag-theme-material .ag-filter-card-title,.ag-theme-material-dark .ag-filter-card-title,.ag-theme-material-auto-dark .ag-filter-card-title{font-size:calc(var(--ag-font-size) - 1px);font-weight:600}.ag-theme-material .ag-filter-panel .ag-standard-button,.ag-theme-material-dark .ag-filter-panel .ag-standard-button,.ag-theme-material-auto-dark .ag-filter-panel .ag-standard-button{padding:var(--ag-grid-size)}.ag-theme-material .ag-filter-add-button,.ag-theme-material-dark .ag-filter-add-button,.ag-theme-material-auto-dark .ag-filter-add-button{border-bottom:2px solid var(--ag-material-primary-color)}.ag-theme-material .ag-filter-add-button .ag-icon,.ag-theme-material-dark .ag-filter-add-button .ag-icon,.ag-theme-material-auto-dark .ag-filter-add-button .ag-icon{color:var(--ag-material-active-color)}.ag-theme-material .ag-ltr .ag-filter-apply-panel-button,.ag-theme-material .ag-ltr .ag-advanced-filter-apply-button,.ag-theme-material .ag-ltr .ag-advanced-filter-builder-button,.ag-theme-material-dark .ag-ltr .ag-filter-apply-panel-button,.ag-theme-material-dark .ag-ltr .ag-advanced-filter-apply-button,.ag-theme-material-dark .ag-ltr .ag-advanced-filter-builder-button,.ag-theme-material-auto-dark .ag-ltr .ag-filter-apply-panel-button,.ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-apply-button,.ag-theme-material-auto-dark .ag-ltr .ag-advanced-filter-builder-button{margin-left:var(--ag-grid-size)}.ag-theme-material .ag-rtl .ag-filter-apply-panel-button,.ag-theme-material .ag-rtl .ag-advanced-filter-apply-button,.ag-theme-material .ag-rtl .ag-advanced-filter-builder-button,.ag-theme-material-dark .ag-rtl .ag-filter-apply-panel-button,.ag-theme-material-dark .ag-rtl .ag-advanced-filter-apply-button,.ag-theme-material-dark .ag-rtl .ag-advanced-filter-builder-button,.ag-theme-material-auto-dark .ag-rtl .ag-filter-apply-panel-button,.ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-apply-button,.ag-theme-material-auto-dark .ag-rtl .ag-advanced-filter-builder-button{margin-right:var(--ag-grid-size)}.ag-theme-material .ag-picker-field-wrapper:focus-within,.ag-theme-material-dark .ag-picker-field-wrapper:focus-within,.ag-theme-material-auto-dark .ag-picker-field-wrapper:focus-within{box-shadow:0 0 0 1px var(--ag-material-primary-color)}.ag-theme-material .ag-rich-select-list,.ag-theme-material-dark .ag-rich-select-list,.ag-theme-material-auto-dark .ag-rich-select-list{box-shadow:rgba(0,0,0,0.2) 0px 5px 5px -3px,rgba(0,0,0,0.14) 0px 8px 10px 1px,rgba(0,0,0,0.12) 0px 3px 14px 2px}.ag-theme-material .ag-advanced-filter-builder-button-label,.ag-theme-material-dark .ag-advanced-filter-builder-button-label,.ag-theme-material-auto-dark .ag-advanced-filter-builder-button-label{text-transform:uppercase}.ag-theme-material .ag-filter-active .ag-icon-filter,.ag-theme-material-dark .ag-filter-active .ag-icon-filter,.ag-theme-material-auto-dark .ag-filter-active .ag-icon-filter{color:var(--ag-material-accent-color)}.ag-theme-material .ag-list-item-hovered::after,.ag-theme-material-dark .ag-list-item-hovered::after,.ag-theme-material-auto-dark .ag-list-item-hovered::after{background-color:var(--ag-material-primary-color)}.ag-theme-material .ag-pill .ag-pill-button:hover,.ag-theme-material-dark .ag-pill .ag-pill-button:hover,.ag-theme-material-auto-dark .ag-pill .ag-pill-button:hover{color:var(--ag-material-primary-color)}.ag-theme-material .ag-header-highlight-before::after,.ag-theme-material .ag-header-highlight-after::after,.ag-theme-material-dark .ag-header-highlight-before::after,.ag-theme-material-dark .ag-header-highlight-after::after,.ag-theme-material-auto-dark .ag-header-highlight-before::after,.ag-theme-material-auto-dark .ag-header-highlight-after::after{background-color:var(--ag-material-primary-color)}.ag-theme-material .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-material .ag-disabled .ag-icon,.ag-theme-material .ag-column-select-column-group-readonly .ag-icon,.ag-theme-material [disabled] .ag-icon,.ag-theme-material-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-material-dark .ag-disabled .ag-icon,.ag-theme-material-dark .ag-column-select-column-group-readonly .ag-icon,.ag-theme-material-dark [disabled] .ag-icon,.ag-theme-material-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-material-auto-dark .ag-disabled .ag-icon,.ag-theme-material-auto-dark .ag-column-select-column-group-readonly .ag-icon,.ag-theme-material-auto-dark [disabled] .ag-icon{color:var(--ag-disabled-foreground-color)}
`,document.head.appendChild(e)}})(),(function(){if(typeof document<"u"){var e=document.createElement("style");e.setAttribute("data-ag-scope","legacy"),e.textContent=`@font-face{font-family:"agGridQuartz";src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAACBsAAsAAAAAQ6AAACAZAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIw2BmAAjWwK2VTIOQE2AiQDgwQLgUQABCAFhEYHhwAbfjlVRoaNAyAb1pYTRdWoFUWNGJxSsv+/JjeGiLTAtO11iDlhLRdy0Vqk0JuvYls90NEjb2rSL3+wg2ARcWv86KnqqIbnOWItZFAwLhOKHSjJ1UyXqLbZHyI6nuWQJDSJh98f39z3BZcOaAGHvDWx9RPS+nxzvX8HspuHxNnMBHCBC0CqqroSdVV1ZU8VgWqF4y/8Bx1DG6kPxY0Hnsv9G0vkBI6OV/W8DTQxiuKMwwMKeGLWSxue5vaPHRZ1jLfGWN4B0sNAjAVjdEiFAeYGaFPewApssNmsvFnN9sX4H9Q7o5hRwA/4NaJnCuoCPDAAEiCA4KhdSRM2yEf+3i0uW9P+P5C2dwrnljE/xnKwfyU2sewhHFIwxVYKiS+JIydREeRjelVnZma39aV1YA9ep3+CvIhEBSFoc94wjYJSQvr0Eti+uvyjpAhzhsVXGLsB/c/FD6jYcuLWkfxs+SgC/s9p2YrVpYxDSkXp3NtdxQwDYvggaYR236Ix3uMyG947ls26FCRVDjnXYrkgLAfhEGPRxFw0Llp3rl30Liu7M/j83zOUf23EIRS9nUUYBhqAZBgRBdFG5o2XVs5P8UsTWUREZCOmdSi96pL762CD9IZj1o016hrLDCGk/p+LAppN20S7Q+mj8lC8cQmtuOnCBVZDy+Hs6SLUYwsPzCnUtyW5qdLvhoc/W+RZHVWB/R35BB/+VHdNuVCU6zdrk4YoE7PJdEKMRjKYLFSEPhzaZHMoQY/gcPOAtuAMc1jWU6uVIg1Ly2jB6YyxGaMapRtSTeMlLk+KS5NkFi/JlLeXdFhVMNoyQmGICcjiJ3ZHNyiRJSQ5/KKiA/VUCRkaq+TmnjqKBJfg28Vz9EiNWBxw5YOajBm1OvQJSUZkUBJ0qU3QjrqmlQmCLp/JydA1q8TX3JQhWKZwBleoA+0+ju5TxiQlafzItB1dgRMSpF683iRCVLVhm3yn3PFg4sJMxUBSX6LGBceU+sBLd2HL+MVn9Ql50iR1CKZlLFNrBFnfo4lx7IkQNDpXYLTdr3aOUKOf644nL7/5Gw9K5tHJmmzIkZxrbL0SjQKi3lseZ0roeNGlaoVCOud67rrgUVUL1hEUt1VArgOrLWV6ypQzVe7TJWVa0SfoVrw8LSXPaR1PN1lHKlXR2lteVVVeoXTnGJJO47prgmdDqfSO0zLKRbPajogFreZywRelCApxpKon1SEcjkrUPOJZ1U+8npwa7GnSjFG16rdPZXJTgigDanuKO9wFKT+KK9Vq2KzOEsiTzrPEdIAXRFGz7YnOpfYEZv6J17zTtF2mLipNgtFOr0DoubigwdoRlgRhprudS4tPY2y4ozslXpHi5w6bu6DFL4CvimgGmd1nM4/KUNWatC90zCV33F9TEQJLDskeIS8fN05ZV+rHHsi8RIDelCkGL83RD6mVC4MFQi4BX8Db1OMYwJLMPcIg/8LLD5VUBWmNIRkdxZXqNmnVTl7T73sc6PF4mjRWPdCcB/SswQNUAnkpJC/KILsj6PL4Up3z2HLyeHgvDylQnegAfrovv7zNBBQqSmR6HPtPDk7gtYmfjnzAZW3z1rEWW+4HdaAGrL71FKs6vLBUYoueVUyp79XhQQpaqShuwllX3Iv+//+SNUXnXQvZUCe7KLfBdoMWQRGIV8eF/BOWG8JKwWoSUSVw0hz78pusAoJiIqJUJUqf3r9foVKVajVq1anXoFGTZi1atWnXoVOXbj0q9OrTb8CgekOGjRg1ZtyESVOmzZg1Z16tBYuWLFuxilOsWbdh05ZtO3bt2Xfg0BEo8LHpxhf++etnrifyscBAeJyyzAz0A5nO2YlsAcN7K1B75fUQrN3sAtzfOnjwPJPc2SF4tCPweFvgye7A022AZzsBz7cDXu4UvNoxeL1L8GZ74O12wbtdgw/bBB93AD5tG3zeFfiyW/B1++DbzsH33YAf1z0IIBeICEIEA/UQBBogKDRCMGiC4NAMIaAFQkIrhII2CA3tEAY6ICx0QjjogvDQDRGgByJCL0SCPogM/RAFBiAqDEI0GILoMAwxYARiwijEgjGIDeMQByYgLkxCPJiC+NAGCWYaMjOQmYXMHGTmIdALCUURohhRgihFlCHKERWISkQVohpRg6hF1CHqebStAe02IpoQzYgWRCuiDaiF7FAHOSTrRHQhuiG6I3ogeiJ6IXoj+iD6Ivoh+nOgMOUFqSm/wD9onwNdX007VBNAsUJ0f4KhgoI3eogI/kGAfBXDIbwD9ALUNyqgd8TiFZCbdRhgYDinxK4RNjk443lbadrS8lSkt3BcF0oRcvkECI/WyI8cX4oE0MgOsShXjUAjS9d3xPfx5d4JPyNmo7AHGOZBRbmk81NWSoEQ3UtSKJdAhivznchL5PqaSTdYf8pvK6g2piRLzDCQGEJkHYJ6x/MC0w3RofoCm69f8C0HudgMHUnRaXypPBQUGUyqkqE9+Awo9BXU5LEzngUpMlFdypCDPRpCxYBsyURgP/qMQJCCXSpcumjaqolZUS93NWH3iAmHpMILJoKcZOSLfqnN75o44sAs5JysteGaoKSG7Bg5cU/PWm6+uNsq4mWzxYHczgkj90tgeMLtbbUKyog7V/NpV0h8mtrjwZnA7gKSy0LDyHML851uOUUDj3A0NIvZvNxasRTZhUWb2l7QPPz0NiiCPKgxeaYIetrjWoocZwGV76yFNY8AugoDGOV1AYIvNYpmD2CT5MlMWO608LKoYw8JyudEcyErsnph5Kvw2znpfRKON3my1Z6kGmPBR1c2sbPOirxSuRCQVc2lMpJxs+zfCEyz9yk35jrysEMZ4torCYuWLY+COXrwfciFobRw8uI4VtKjU1EkmxH4f/OUIVZ3dojBq7q1Yi4zd/F9vMebNLC/mCGckV+bnVyvKygxIZxmgPIbLmcYUF9L/Ax+502Pt9PEF4jGxFKPf94P5xo/slXBAf1P/kE0z/xJqI4Pk79Uxu/PCcKlktupdS/PEMTfVbcG1FKj3a/kl+2+s2MSVeFi/mObZZpAnF/CerwyOPhcezmMVtnL6lImotK0wFmWLidQ/W4m1eeDlGngGUjkxZD4xquXdIcyHrwp0ScrTLBRfbo9Eu2VyyyIxkkG1OqoNq9CUGQTqchvHbKAY1+GXmya0PJsYMaI8sHnjPpVF4tHl9LBmorPo1v42UAAZdJIFZISG3ohYQFNv33XvnNbB+UKmTtG+Rj+rmrKEX8dv6IGvab1KbylmwDOx8ZClrMY37gJ2bIFuUWFulRFvFfV9d2MLjSSVhLqOm/ytsfiHFs2EyYtl1E/TYhmSLCGzS3KLTNTJs3EMCzLUDlUFEk9rA7VC0UtzxkWFKNm5jFscONQZHAoJta1FEkhAk0Io5wBKSFIo3Vsmryc4hHRLBX3wF6tH/WJKI7DqLtCypBWt5y9XRsGsUv0JooPEW5V5I4oe6EYvWXytEykWIagKqxh7QCq/ddEyJBS2yvkWJEHqCE83kRFjiQvKSlpgTr/rUvRElEiewzUc7jAL5Mp7QeuPAGpDdhPMqysk2vJIUhQiKbSKoXn0dyW7VYi2KO3NG+y+tVD+94ci4AsyHkV/uKiaJQ5ZdbIbvfbGWI9QR3i492kVSaVXhsbBGI2uX0Lcja4F0iQAYPGp+OfdkcAQOQX54b2xReJxn1rQAfz35noUuXu/tMvlRhro5PPd/bOtDrb61P/nxuSo5yDxeDp7Hk1J1vb2n0L9Wu9sAf3KTgIYBhqcYyEN+7L3f2zS7tbaxNVZwYK6rjK0973Zp5d396ZLN/Ze/K5FGpKfA35TPrrQgck4kmBdBRCD3agy6jpaQvA+2KX1VgvOefqNvutv48b05CTXlhyWIK1r0cm3cJC7scyWmdvrfLLTukqPIC7fIcPSGiLNujbhE7UM1Ic0D92/ip9xnsKUyn6DtyCUm1Uh4PUprfdR7wMLiYcaU/7m1FTXxdA8UadXsMxBQZKePQQd/Q0wMbezkSMqBMl6lNQrE4rC8SdMSysaqX9wtQx6GXewjHRpwpNxAbfISRgz+B9zHELzB1JG3aIlukySX0MNU+GOcWJY95ljzEqEEyUFGrkyQurKYnL47bUAonmZ0gx6a4cIT8n3+TQdSwAvh35YVsyNCOtvt2Vqy20Z+eX4le3tFaHLalTU+LUkUYWPkEf2bj0ME2PYvrRC/xsBnCFE7ywu7+eZktxk3pWZIX7pSwuXO6nmQEHIUeva8ixD8s8kAfgy/pcKpqV/ljmpp0reEOSojLBwgvRFw4820BBUq3WwUELJLVmw5vJHkLD34sobgcYPBvYUn+dcv6ezctdQxvTF3JFvSfksa9ih2iZp4hK1JAXiYZfehP9LLci5syTlIagd0acpBaiwPxFEIi5IAuToRMq5LWuUXuLXYpSgpJE2zg3IpSscooSwdhHbMGbIp9sV6DKdK5bVVy8mISV6YXu9XFYVYmGAEfrbJQurRf6D7ffamwvQ3zk+VRseS1pgiIUYn5wUbSlYQ/T8ewz26V+Mc9JI9lnxirltO5kbCq2bOou4y3l/hMaly5l7uSB22BYpZ9GM9nWLXOzhvSqscXSr4EYrJBi3rWyFBSRSmIaLPEq3OkPIQ0ttQv11tGJAEo08Li3ETZ8ZFp6jfXMhkbzVZKuvibUrJoedoaZG6TKZI7mKUgsL5pXZWRNZKy4mysA+9daQA66aut9XBYgGNBAAhpXlFicbS6YkIGvtbfoDX418jVplKZCPrjDdRkN5xaXXXsJ3wInlvs0S6+eYauH4ox5qmcD1do82egWpUYye8zLPXGvgHN61liKO4Gh0WAhvRqqdEwY/D8EdpH6fL7ztgZmtWI01LTZe5/Tdgv7jVZRg4sLiaBMTGJDm5QnlIbfp8PVqRIKDm71wD7KhBb4gkyr6OALKcW9EY4VS+bASV7kPte+EiolPRS8J5rJWl2FwtngFYVPFA+tuAWzft+UOx48aOu4ZGboZUqKwHWoBlRZ+VBKx8e6+uK+C9bn9Qz72Od5kowFRELvS1CT5icp8vjYqUWiA5fmCalRzEiWCEEmljszsc6ekVTPXkvUEVlv2JdygZdhFL0Cibyht/gtE88nu+Cww0ARLID0JETGZLnRR4N2py8B8KUGvz9fUZi8BIoiKMnMonMYNi2IfuzYbxVw4G7HkyetF9ofd3buKU4UOq9FZkRVZO/Lm+vIcMhCS8E1nbaO8LGzWnVGErLKnfsgyVoOzZgZJk674dQ0qmm9dNMSIYmRrGUsEvY5l5/lL3gf8n5itQCIks7SGL1okXXQNoyy2AHLSRmtRYtiYgwNDcz00uaLAHwidPUfk4iVC26jHRBLc1o6s16/OxQV34ZZLxqGcatAWOhL4zSPZx3UpqDu3b2GkLiRde1ANdC3kgDydd892wF09hB3uO0Re3W/9uQfujlPe7gi108ZCkHokCgG/tnjfq+ggwyqfhbnKRJ+3j8nUZBYxycrafHMwlw627sRSUn01LYNZ6M3JYi/pmS8tdpzR3m0zxTRXTb6YQdUBk1Am96i8LwgxEFy9yfZQVKcHfnU0Z3bt9O4CbOazYAQvMfQpLno7s/7D7KmJHwZE3XI08xEI1lkRT/krBoIO/nn/Dn3GFzxaF/N4Cg7j936+B3mU/cQiVKGcZI80ozubHBDYj+aZBHupHfu0/jOhXVuIQjouST0kZ2dXV3PMSN2yW5nZ3OZYO0GouvEqhqE2ayM6OoE3erZ0MjaxjLid+bcH4IWrmotKjv+BJpxExzIaDQAYMOHTapgTRYpAMlrqSNAo8umRaNIILL+Ollaikb7B/qjMdNKY9HlU8EFJuANOypEhrLG7WLMqZy/QDNv07KCOhH1TW4x2Y2XOdlxDsfbXVXObd8CJOpA5oZta5u717UMnYPgD+Uo8zzmeMjn8mTly9+s7Vn7Znl5fZp3ys2EuEvDwDTGlI0JCYf8eH7NSYnkI9Yj0rQ5lPhQQkLjI3eASs5SuBG3zJ5NUYSrylUpwlC7vqA+u5JiGqejo28frbCwOtoSbxxkoVMcHII4OeevXzcON7ouFm4UbxQOXz2NC6LW/dB4ndKe8tKAmkgmN311cqvjuTdN29+cc0RTRmrAUHURs1egle4ZLYlDeu2RaiUnvRIKppRLX4WiVTt25uzcXIWmoNL+zVvmPA/RK92yY65LOWAXojRG9/ePfVT81kHWrpOPxsCwG3gR2nJtBE24GSJee/xb/Pd4IS3Xv1cKzTgJ4++w/5CL3GXdJETkKlnPl6yTCNbdprYKkvH3iMGYR/9QuAmnORwux4qbcep5KA6Nk7gVzXVjfCIw9lF3abFu1vLQE3Z4KR6Al+Bjr/+SGuJUh/tbfZXB7slQD4XrM7tZLb+hk87s/v6JfaJsAyY+1QDduCP+3rfM3mHVVY3WM6G0w2HSzJ+84RlJehfmNA1/icvO4y58fn+I/3LF/blLWY67rq4MrfnsxEyBzidrzpxiD9xBvFk2PrawqYxg73YOGusR88b1qsR5WJb66VvOvttuRyes8SI9zTwvwF0xyDGG7TCIF/SYO+uQy6FZ3IC78qEOu90U7+mdyhJZlFYlraTaY8ZOSi+Slgo0CQ7Td9XUjvam5Pp06B8/Qu2SJJGqwATnOJ6ZG+eUEKiKlCQx1DWnR6PLArE+3nGmsyKr0qKklPTqyhKlzk76kQz0yH2gESdZbx49pvKMmFUipvEbI0pb5XWjMzx+JLh38tGd9KrI6SvLI7lxHUzie2tIxpSMG4fVvw7t8HdiRsfOTK7aXh4Odw1lDQ3jaYpTq8ccejKsQ+XsBjwlWoI1Y3BzaRmzQW9QmP8WGgOj1FowOz8w2kMRGqLwiK3Y0zq3ZoTizi9JnWG/vM9y7o34HuORwZ0r7g5bLH7Ee2od/Pz8Ibqx6VLeBY6VkcHP5KhUnEx+hpDKqwkcKM5NHVD5TFsgjqiZ29pasfS0V4ciNNojP3C2nx9QL5UVDeji0vovFY8YAzJi8FcRvc4hs9fF07g1SKKymBh6NqJwMMNW6xlVvFnBCeUsQ3KLm4ujPGtVSHqAssvhlspb7RvFTxreIknSk2rkLYcuZUA6MnmEkFacR8S0+8X6+MTmIDmX8z7XHQoINVRYx4CYfyEJvwnNpfsbJA+8d5Ez/E0l01nWmx4YB0z+B0DaV5sJfea28tH+ri7roK3xlJBdg75B5AEDwGONkFaqSEe/8D3VVCFQF2OtM0VnlcXEgdEbcgqnxbmC3qAp/FYcYSbYiiajuWKiLE2ixyASkyjcmpRY5p8ITZgJSrvuQIIHwwxHfqSdN3WzRmARoO+zqJWnvflqStHmQM5AVOpIQ9CndrdibfHU6NE9EaKIHiPVftQya7fNAkmchBbwQy+wD1MHq8P63MNty8hw30TJFJUoOZveycokqW/CuEt4gr5UebA8tU8QLq46rHCfJOlkpShlakN5ihKfKddOmJoXYiH3xAKJpN4LwYH71D5owYPk1tV1W3Fap7MMMsZbvJDGsXsOkOl0gp7CLFsSMGcwrILu7XeV1TBM5neJKZ9OR2HGQY+FVvxdw1DE1elWVDEdqCSAF2JsWsfQ02Okds9PAsyKJGsAknAAyesaddhJ4iIu8bOHJiKC7ukB27/QLDyqMKmj7AN8qAHH9yx842MECDm1g8bp7m6CaQIIg1zZYLNZcH9mr38AY+9sWFF1TMPYbxYOgDRpJf3WgwcotaMj9BiFmQbRu2MMDfVueoZicYYysGr96FGAFo4BXJ5SGTxekZEd5xvj4xPjG0ciOR/jU2uT67rMtMoJxcEFBcHFId+61KUnVQd8Dfld8BWcnDCPCSmuBBzknthJKJCeHN1xlY8+Ke3j96qnCDRsGRqK9rnOlLa+q8BPU4l9klWm+IWiP0hKewmSBFNCe/mhvimEdMj255OfH3/CIqEsNdVqb4yn9h+gcHq9tESDnllaRqSmyKAZuNyodesVxEhPeNlp3DcKtzi21EXI0ApZBMvI0kKSVd6+CjRSVtfiuCX/i7sWjdK7o5qRoagXNMPbsgoQKa1rdRB8Eji0boyQggrZbWhiebqGjtS4tiAVoYMgfweLBE4wuoOk2rZFrl4Kelcq7ToXaiWnvGoIks46KLrHMsH2dum3t+94Qrv8rPbbqla4vXPyspuEty3QCMEIeffMIVdKFGlRBbBuXPo4tCT/QPykgsg6OC99XpZzc3ywwmNijWNs/J8csC6yYGL8seJCp94AVYrzxowSAyupXCvzljhnZG9ZX5Lm1pzXHO9KZOTUwrgl2mjtkhHzDh6cN6IhoHZZoh2WgltIX2j5MfJEzwJNFb+pp0FlKNR/JRpZ4NTn5tJ0kX4F4QCmtGFit0X4StlsoFNtZJlgZ1sbhRkxa/8AhVkGBoi0dFe9nmhr64QkFH8RTl0YDkncDMG7bS4xOQp4zLMnBMTbk+QBTAHR30/cbgg40J4IZ5k5OHgXXWqVsXLUilnv3zOAKRi10qFDNG4FQZevW8v9oh1uYAuGt0SE3wFd6/Io1mKNvYPeyK4bbDC/J9XhcmD2LIO+XpRe1qz7+csgMs/6w2oZvqwY4Q5wtQ2n6cEXcPq17UMuDavE4wgX9KXJx8uBSCL22yja6Ofk9G+mYGH4DM0iu6pBRwElRFi/cXpmUJpcnhaU+SQoy/k0eS0+yVqnstoyJTWIqS+QZUhT6+tTpRmyW0i++/X10lRZxq2E4FsflgmWV9geq6JCLdHUIEO9JpCNTIe5BhYVbyprYualqo8p2K25t/47jUkPFkyZMBhs6sVLYs/ZgNekziBw3TsRL4kZN3mdLQ9MSQmUK4vivgw+QN6DHBj8tShWKU8JCExZo8aKBJ77/FMUq4iBktyaolr/Lnaijwhc5PuIH/GDeY/Ek4ak/2mx2m+L/zNK8du7XDIEciz5cHaJ5Y+LvEnix7xg/mOxD2/RyPLnKy86uYU5iZ3NK8Gz+8ec3ZzTVlZm61elOYudy0FvDc3woXWQ9qMnR6ccK36vuYzDGWkB4t2fJG792ppzVpbR+qQjYn4sxeIuPZThsgoQId1oc+KzyNn/LHsjn8wYKX2yfFp2vRsw5oVaHh9Kgq5umkXoY1Tai4NuQqsiRhbPgXlWDuSmtrUlI6bJpnWfjN8G/HtBYbcrxYpnz6FwCv9HpM9nd95F4cC/Z0PszHiquO5pW8CbzH8LNN6wPx1lUeNcF0gXMA+3hTKHv5jVsmrmDOLYlT18GVu91K5R2mi3dLrn5ozp8wmLmF/NIm0HVcHKFRWeOngWp9NlpOvmP+CrQ5xC1OHhQaecTgUR8+eD4Xs3FR0pInVvzpHCe1rhZYVHfuolxasxJSZT4urdTfIypUyN7yZBAu2RTijmRy4ec95/5rTx9Bkw9uS1DDEQh98IvE+3gbdhRvjL2OCBmHcDyOvXPCCSyyYLWtIFRcU5i9PjrycrxuSw+UkJ43Ny9MKFtqnaCZNXzJlZZLh+pupWRXzd6jrDu1+L91cALrJej2UOKw8pyZiS7xDvi2U4lE9Y1VsuMDwITOOlTA2tMoF0XvLUF82i/SeUZE7JU4znWCOofsmU5Oz8JMX8G4abHLPqW86IvfKcTwd1tdvYQjZrVLQwOj36buhYPbuSrdu83fb6KP+br9kFYHD6uFHjwNL/p2OBhWwEMtNpN62M6I9M2vE28sz08KWdRR9kzsXbEBtqinlGpGl32oKMEO8hxqgZSDQA//8TFciXQZyNXL9QMDLVtNO9MebdVCZV0rxtiE87/RkSRzBeik2IynQZRS0yQzQzvl/4MXKmBGNBCnVzMf0D2VYyCYkNyH1ThdnkTmlDPqo5zHHjPISx/Up0HeJiVF+RzSkto4moZci5kLEX82Iqxw/RUmVz7TQRbZvFD2KmFlPVKnNEDeaonBcawWh1iOqRuZ0u5DfNiNQxIJtaBE+MuB6pbWtVWqP8T+8JffBapM1FJ/4+1BGxAZDMYW8vL3Oow/g/YWujowLGv4iyoE/komvZ/nmr/BPpHw2z3Zwv//8f9/e3g0MKuO/FP628CjTTBf9xOr1pm1OUiz0q0Q1yRGsWZh1C7cSuA+uUGTuwXrlF2uwxd3nwFnUuYkhcIJrdHw6kKj2i7HLic8qZ+OpARaPvNMLE/w4sFZb4dyszeEspaG6jM/cZoiwesMke4vZa5vO8YEyOqTqZnN731G6RMIKgqep5lSbNqYitbOSuumEaHpf3XIXIr6hl3IqEs6OpU2PCseauB81tdOY+g/HL4gEvefY7GyTYIJ/9gkc08VVjqpwYOxYKt0DiQ4Ogsev5nZ0ml/Ypsbatbsojd5WbpFhI/Uj5AoLfe0U98rE2wgtnjmwtK+VjOgkJu4NrIKVO/29MDAYEpjOYLDbJ4VI8Pn4N6YZp2Y7r+UEYxUma5UVZ1U3b9cM4zcu62x+Op/Plers/nq/3x7kLl65cu3HrzjvvffDRJ5998dW9B4+ePHvxzXc//PTLb3/89c9/oC4tcDURGxDHVEJGnqYhbD2CW0sFNEy61JU0+kLfEGX7C6J+q3mmXl1oDn8expFBwdg5AsHduPZMhUav6/AcVXCBqXHplcgdpVUdJBG0oBnpCPNCJ6c01Hsy1J+McNsFnpm2vFkA6KFmBX9UyUNqh2+3tMMj1ArHxSSjJl0omuQcRqmaLH+3UvpBmJMu+QDjqFnu6sx1boGjrlNeppSEGlAQrlGIAu95KlaE0nkcKk/F9CYs27HsF8OqziJMiq3d+omjIo6mlVGqE1xNE0KfMjylDybCWBvLeYzlLaKRCi/qrEkiKu05CXana4sRVn4HckBazosROqjkhSenIrOU03I9ENEIpN1FalhM67wF1Zh2mZfAGW1ct0ZoVM0i3K2GXOGw2jhsEmtweg7rH0x3Zo/32Y2xvDdWeZ5MgTEjbE7K1CHqdtmEzoR8QmRgz8qk+oxJQRqGZvugESHhMDKVaIbXelObUZssmJuwFgUAAAA=);font-weight:normal;font-style:normal}.ag-theme-quartz,.ag-theme-quartz-dark,.ag-theme-quartz-auto-dark{--ag-active-color: #2196f3;--ag-background-color: #fff;--ag-foreground-color: #181d1f;--ag-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 15%);--ag-secondary-border-color: var(--ag-border-color);--ag-header-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 2%);--ag-tooltip-background-color: var(--ag-header-background-color);--ag-control-panel-background-color: var(--ag-header-background-color);--ag-subheader-background-color: transparent;--ag-invalid-color: #e02525;--ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 30%);--ag-advanced-filter-join-pill-color: #f08e8d;--ag-advanced-filter-column-pill-color: #a6e194;--ag-advanced-filter-option-pill-color: #f3c08b;--ag-advanced-filter-value-pill-color: #85c0e4;--ag-header-column-resize-handle-color: var(--ag-secondary-border-color);--ag-icon-font-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 90%);--ag-find-match-color: var(--ag-foreground-color);--ag-find-match-background-color: #ffff00;--ag-find-active-match-color: var(--ag-foreground-color);--ag-find-active-match-background-color: #ffa500;--ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);--ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);--ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 3%);--ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 20%);--ag-selected-row-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 8%);--ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);--ag-column-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 5%);--ag-icon-button-hover-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);--ag-input-focus-border-color: var(--ag-active-color);--ag-range-selection-background-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);--ag-input-focus-box-shadow: 0 0 0 3px color-mix(in srgb, transparent, var(--ag-input-focus-border-color) 47%);--ag-input-error-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag-background-color), var(--ag-invalid-color) 50%);--ag-range-selection-background-color-2: color-mix(in srgb, transparent, var(--ag-active-color) 36%);--ag-range-selection-background-color-3: color-mix(in srgb, transparent, var(--ag-active-color) 49%);--ag-range-selection-background-color-4: color-mix(in srgb, transparent, var(--ag-active-color) 59%);--ag-row-numbers-selected-color: color-mix(in srgb, transparent, var(--ag-active-color) 50%);--ag-calculated-column-highlight-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);--ag-column-header-edit-highlight-color: color-mix(in srgb, transparent, var(--ag-active-color) 12%);--ag-checkbox-background-color: var(--ag-background-color);--ag-checkbox-checked-color: var(--ag-active-color);--ag-range-selection-border-color: var(--ag-active-color);--ag-secondary-foreground-color: var(--ag-foreground-color);--ag-input-border-color: var(--ag-border-color);--ag-input-border-color-invalid: var(--ag-invalid-color);--ag-disabled-foreground-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 50%);--ag-chip-background-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 7%);--ag-chip-border-color: color-mix(in srgb, var(--ag-header-background-color), var(--ag-foreground-color) 13%);--ag-input-disabled-border-color: var(--ag-border-color);--ag-input-disabled-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 6%);--ag-modal-overlay-background-color: color-mix(in srgb, transparent, var(--ag-background-color) 66%);--ag-chart-menu-label-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 80%);--ag-chart-menu-pill-select-button-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);--ag-filter-panel-card-subtle-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 70%);--ag-column-drag-indicator-color: var(--ag-active-color);--ag-borders: solid 1px;--ag-border-radius: 4px;--ag-wrapper-border-radius: 8px;--ag-borders-side-button: none;--ag-side-button-selected-background-color: transparent;--ag-header-column-resize-handle-display: block;--ag-header-column-resize-handle-width: 2px;--ag-header-column-resize-handle-height: 30%;--ag-grid-size: 8px;--ag-icon-size: 16px;--ag-header-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 4.25);--ag-row-height: calc(var(--ag-font-size) + var(--ag-grid-size) * 3.5);--ag-auto-height-min-body-height: 150px;--ag-list-item-height: calc( var(--ag-icon-size) + var(--ag-widget-vertical-spacing) );--ag-column-select-indent-size: var(--ag-icon-size);--ag-set-filter-indent-size: var(--ag-icon-size);--ag-filter-tool-panel-group-indent: var(--ag-grid-size);--ag-advanced-filter-builder-indent-size: calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 2);--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 1.5);--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 1.5);--ag-widget-horizontal-spacing: calc(var(--ag-grid-size) * 1.5);--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1);--ag-toggle-button-height: 18px;--ag-toggle-button-width: 28px;--ag-toggle-button-border-width: 2px;--ag-font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ag-font-size: 14px;--ag-icon-font-family: agGridQuartz;--ag-tab-min-width: 290px;--ag-chart-menu-panel-width: 260px;--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);--ag-popup-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);--ag-side-bar-panel-width: 250px;--ag-filter-panel-apply-button-color: var(--ag-background-color);--ag-filter-panel-apply-button-background-color: var(--ag-active-color);--ag-column-panel-apply-button-color: var(--ag-background-color);--ag-column-panel-apply-button-background-color: var(--ag-active-color);--ag-note-indicator-color: var(--ag-active-color)}.ag-theme-quartz-dark{--ag-background-color: color-mix(in srgb, #fff, #182230 97%);--ag-foreground-color: #fff;--ag-border-color: rgba(255, 255, 255, 0.16);--ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);--ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);--ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);--ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);--ag-input-disabled-background-color: #68686e12;--ag-card-shadow: 0 1px 20px 1px black;--ag-input-border-color: var(--ag-border-color);--ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);--ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);--ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);--ag-selected-row-background-color: var(--ag-row-hover-color);--ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);--ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);--ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);--ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;--ag-find-match-color: var(--ag-background-color);--ag-find-active-match-color: var(--ag-background-color);--ag-filter-panel-apply-button-color: var(--ag-foreground-color);--ag-column-panel-apply-button-color: var(--ag-foreground-color);--ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);--ag-cell-batch-edit-text-color: #f3d0b3;--ag-formula-token-1-color: #4da3e5;--ag-formula-token-1-background-color: rgb(77 163 229 / 16%);--ag-formula-token-2-color: #f55864;--ag-formula-token-2-background-color: rgb(245 88 100 / 16%);--ag-formula-token-3-color: #b688f2;--ag-formula-token-3-background-color: rgb(182 136 242 / 16%);--ag-formula-token-4-color: #24bb4a;--ag-formula-token-4-background-color: rgb(36 187 74 / 16%);--ag-formula-token-5-color: #e772ba;--ag-formula-token-5-background-color: rgb(231 114 186 / 16%);--ag-formula-token-6-color: #f69b5f;--ag-formula-token-6-background-color: rgb(246 155 95 / 16%);--ag-formula-token-7-color: #a3e6ff;--ag-formula-token-7-background-color: rgb(163 230 255 / 16%);--ag-calculated-column-reference-color: #4da3e5;--ag-calculated-column-function-color: #24bb4a;color-scheme:dark}@media(prefers-color-scheme:dark){.ag-theme-quartz-auto-dark{--ag-background-color: color-mix(in srgb, #fff, #182230 97%);--ag-foreground-color: #fff;--ag-border-color: rgba(255, 255, 255, 0.16);--ag-secondary-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);--ag-header-background-color: color-mix(in srgb, #fff, #182230 93%);--ag-tooltip-background-color: color-mix(in srgb, #fff, #182230 96%);--ag-control-panel-background-color: color-mix(in srgb, #fff, #182230 93%);--ag-input-disabled-background-color: #68686e12;--ag-card-shadow: 0 1px 20px 1px black;--ag-input-border-color: var(--ag-border-color);--ag-input-disabled-border-color: rgba(255, 255, 255, 0.07);--ag-checkbox-unchecked-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 40%);--ag-row-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 20%);--ag-selected-row-background-color: var(--ag-row-hover-color);--ag-panel-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);--ag-panel-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);--ag-menu-background-color: color-mix(in srgb, var(--ag-background-color), var(--ag-foreground-color) 10%);--ag-menu-border-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%);--ag-advanced-filter-join-pill-color: #7a3a37;--ag-advanced-filter-column-pill-color: #355f2d;--ag-advanced-filter-option-pill-color: #5a3168;--ag-advanced-filter-value-pill-color: #374c86;--ag-find-match-color: var(--ag-background-color);--ag-find-active-match-color: var(--ag-background-color);--ag-filter-panel-apply-button-color: var(--ag-foreground-color);--ag-column-panel-apply-button-color: var(--ag-foreground-color);--ag-popup-shadow: 0 0px 20px rgba(0, 0, 0, 0.3);--ag-row-loading-skeleton-effect-color: rgba(202, 203, 204, 0.4);--ag-cell-batch-edit-text-color: #f3d0b3;--ag-formula-token-1-color: #4da3e5;--ag-formula-token-1-background-color: rgb(77 163 229 / 16%);--ag-formula-token-2-color: #f55864;--ag-formula-token-2-background-color: rgb(245 88 100 / 16%);--ag-formula-token-3-color: #b688f2;--ag-formula-token-3-background-color: rgb(182 136 242 / 16%);--ag-formula-token-4-color: #24bb4a;--ag-formula-token-4-background-color: rgb(36 187 74 / 16%);--ag-formula-token-5-color: #e772ba;--ag-formula-token-5-background-color: rgb(231 114 186 / 16%);--ag-formula-token-6-color: #f69b5f;--ag-formula-token-6-background-color: rgb(246 155 95 / 16%);--ag-formula-token-7-color: #a3e6ff;--ag-formula-token-7-background-color: rgb(163 230 255 / 16%);--ag-calculated-column-reference-color: #4da3e5;--ag-calculated-column-function-color: #24bb4a;color-scheme:dark}}.ag-theme-quartz .ag-filter-toolpanel-header,.ag-theme-quartz .ag-filter-toolpanel-search,.ag-theme-quartz .ag-status-bar,.ag-theme-quartz .ag-header-row,.ag-theme-quartz .ag-row-number-cell,.ag-theme-quartz .ag-panel-title-bar-title,.ag-theme-quartz .ag-multi-filter-group-title-bar,.ag-theme-quartz .ag-filter-card-title,.ag-theme-quartz-dark .ag-filter-toolpanel-header,.ag-theme-quartz-dark .ag-filter-toolpanel-search,.ag-theme-quartz-dark .ag-status-bar,.ag-theme-quartz-dark .ag-header-row,.ag-theme-quartz-dark .ag-row-number-cell,.ag-theme-quartz-dark .ag-panel-title-bar-title,.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,.ag-theme-quartz-dark .ag-filter-card-title,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search,.ag-theme-quartz-auto-dark .ag-status-bar,.ag-theme-quartz-auto-dark .ag-header-row,.ag-theme-quartz-auto-dark .ag-row-number-cell,.ag-theme-quartz-auto-dark .ag-panel-title-bar-title,.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar,.ag-theme-quartz-auto-dark .ag-filter-card-title{font-weight:500;color:var(--ag-header-foreground-color)}.ag-theme-quartz .ag-toolbar-item:where(:not(.ag-toolbar-panel)),.ag-theme-quartz-dark .ag-toolbar-item:where(:not(.ag-toolbar-panel)),.ag-theme-quartz-auto-dark .ag-toolbar-item:where(:not(.ag-toolbar-panel)){font-weight:500}.ag-theme-quartz input[class^=ag-]:not([type]),.ag-theme-quartz input[class^=ag-][type=text],.ag-theme-quartz input[class^=ag-][type=number],.ag-theme-quartz input[class^=ag-][type=tel],.ag-theme-quartz input[class^=ag-][type=date],.ag-theme-quartz input[class^=ag-][type=datetime-local],.ag-theme-quartz textarea[class^=ag-],.ag-theme-quartz-dark input[class^=ag-]:not([type]),.ag-theme-quartz-dark input[class^=ag-][type=text],.ag-theme-quartz-dark input[class^=ag-][type=number],.ag-theme-quartz-dark input[class^=ag-][type=tel],.ag-theme-quartz-dark input[class^=ag-][type=date],.ag-theme-quartz-dark input[class^=ag-][type=datetime-local],.ag-theme-quartz-dark textarea[class^=ag-],.ag-theme-quartz-auto-dark input[class^=ag-]:not([type]),.ag-theme-quartz-auto-dark input[class^=ag-][type=text],.ag-theme-quartz-auto-dark input[class^=ag-][type=number],.ag-theme-quartz-auto-dark input[class^=ag-][type=tel],.ag-theme-quartz-auto-dark input[class^=ag-][type=date],.ag-theme-quartz-auto-dark input[class^=ag-][type=datetime-local],.ag-theme-quartz-auto-dark textarea[class^=ag-]{min-height:calc(var(--ag-grid-size) * 4);border-radius:var(--ag-border-radius);padding:1px var(--ag-grid-size) 2px var(--ag-grid-size)}.ag-theme-quartz .ag-picker-field-wrapper,.ag-theme-quartz-dark .ag-picker-field-wrapper,.ag-theme-quartz-auto-dark .ag-picker-field-wrapper{min-height:calc(var(--ag-grid-size) * 4)}.ag-theme-quartz .ag-tab,.ag-theme-quartz-dark .ag-tab,.ag-theme-quartz-auto-dark .ag-tab{padding:var(--ag-grid-size);border-left:var(--ag-borders) transparent;border-right:var(--ag-borders) transparent;flex:1 1 auto}.ag-theme-quartz .ag-tab-selected,.ag-theme-quartz-dark .ag-tab-selected,.ag-theme-quartz-auto-dark .ag-tab-selected{background-color:var(--ag-background-color)}.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:first-of-type),.ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:first-of-type),.ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:first-of-type){border-left-color:var(--ag-border-color)}.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:first-of-type),.ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:first-of-type),.ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:first-of-type){border-right-color:var(--ag-border-color)}.ag-theme-quartz .ag-ltr .ag-tab-selected:not(:last-of-type),.ag-theme-quartz-dark .ag-ltr .ag-tab-selected:not(:last-of-type),.ag-theme-quartz-auto-dark .ag-ltr .ag-tab-selected:not(:last-of-type){border-right-color:var(--ag-border-color)}.ag-theme-quartz .ag-rtl .ag-tab-selected:not(:last-of-type),.ag-theme-quartz-dark .ag-rtl .ag-tab-selected:not(:last-of-type),.ag-theme-quartz-auto-dark .ag-rtl .ag-tab-selected:not(:last-of-type){border-left-color:var(--ag-border-color)}.ag-theme-quartz .ag-tab:not(.ag-tab-selected),.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected),.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected){opacity:0.7}.ag-theme-quartz .ag-tab:not(.ag-tab-selected):hover,.ag-theme-quartz-dark .ag-tab:not(.ag-tab-selected):hover,.ag-theme-quartz-auto-dark .ag-tab:not(.ag-tab-selected):hover{opacity:1}.ag-theme-quartz .ag-menu,.ag-theme-quartz-dark .ag-menu,.ag-theme-quartz-auto-dark .ag-menu{color:color-mix(in srgb,transparent,var(--ag-foreground-color) 95%)}.ag-theme-quartz .ag-panel-content-wrapper .ag-column-select,.ag-theme-quartz-dark .ag-panel-content-wrapper .ag-column-select,.ag-theme-quartz-auto-dark .ag-panel-content-wrapper .ag-column-select{background-color:var(--ag-control-panel-background-color);color:color-mix(in srgb,transparent,var(--ag-foreground-color) 95%)}.ag-theme-quartz .ag-menu-header,.ag-theme-quartz-dark .ag-menu-header,.ag-theme-quartz-auto-dark .ag-menu-header{background-color:var(--ag-control-panel-background-color)}.ag-theme-quartz .ag-menu-option,.ag-theme-quartz-dark .ag-menu-option,.ag-theme-quartz-auto-dark .ag-menu-option{font-weight:500;cursor:pointer}.ag-theme-quartz .ag-ltr .ag-menu-option-popup-pointer .ag-icon,.ag-theme-quartz-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon,.ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-popup-pointer .ag-icon{text-align:right}.ag-theme-quartz .ag-rtl .ag-menu-option-popup-pointer .ag-icon,.ag-theme-quartz-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon,.ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-popup-pointer .ag-icon{text-align:left}.ag-theme-quartz .ag-tabs-header,.ag-theme-quartz-dark .ag-tabs-header,.ag-theme-quartz-auto-dark .ag-tabs-header{border-bottom:var(--ag-borders) var(--ag-border-color);display:flex;background-color:color-mix(in srgb,transparent,var(--ag-foreground-color) 5%)}.ag-theme-quartz .ag-side-bar,.ag-theme-quartz-dark .ag-side-bar,.ag-theme-quartz-auto-dark .ag-side-bar{background-color:var(--ag-control-panel-background-color);min-width:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2)}.ag-theme-quartz .ag-side-buttons,.ag-theme-quartz-dark .ag-side-buttons,.ag-theme-quartz-auto-dark .ag-side-buttons{padding:0;align-self:stretch;width:calc(var(--ag-icon-size) + var(--ag-grid-size) * 2);background:var(--ag-control-panel-background-color)}.ag-theme-quartz .ag-side-button,.ag-theme-quartz-dark .ag-side-button,.ag-theme-quartz-auto-dark .ag-side-button{border-top:var(--ag-borders) transparent;border-bottom:var(--ag-borders) transparent}@media(max-resolution:1.5x){.ag-theme-quartz .ag-side-button-label,.ag-theme-quartz-dark .ag-side-button-label,.ag-theme-quartz-auto-dark .ag-side-button-label{font-family:"Segoe UI",var(--ag-font-family);transform:rotate(0.05deg)}}.ag-theme-quartz .ag-side-button.ag-selected:not(:first-of-type),.ag-theme-quartz-dark .ag-side-button.ag-selected:not(:first-of-type),.ag-theme-quartz-auto-dark .ag-side-button.ag-selected:not(:first-of-type){border-top-color:var(--ag-border-color)}.ag-theme-quartz .ag-side-button.ag-selected,.ag-theme-quartz-dark .ag-side-button.ag-selected,.ag-theme-quartz-auto-dark .ag-side-button.ag-selected{border-bottom-color:var(--ag-border-color);background-color:var(--ag-background-color)}.ag-theme-quartz .ag-column-panel-column-select,.ag-theme-quartz-dark .ag-column-panel-column-select,.ag-theme-quartz-auto-dark .ag-column-panel-column-select{border-top:none}.ag-theme-quartz .ag-column-panel-column-select:not(.ag-last-visible-child),.ag-theme-quartz-dark .ag-column-panel-column-select:not(.ag-last-visible-child),.ag-theme-quartz-auto-dark .ag-column-panel-column-select:not(.ag-last-visible-child){border-bottom:1px solid var(--ag-secondary-border-color)}.ag-theme-quartz .ag-filter-toolpanel-search,.ag-theme-quartz-dark .ag-filter-toolpanel-search,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search{height:initial;margin-top:var(--ag-widget-container-vertical-padding)}.ag-theme-quartz .ag-filter-toolpanel-search-input,.ag-theme-quartz-dark .ag-filter-toolpanel-search-input,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-search-input{margin:0}.ag-theme-quartz .ag-filter-apply-panel,.ag-theme-quartz-dark .ag-filter-apply-panel,.ag-theme-quartz-auto-dark .ag-filter-apply-panel{border:none;padding-top:var(--ag-widget-vertical-spacing)}.ag-theme-quartz .ag-chart-tabbed-menu-body,.ag-theme-quartz-dark .ag-chart-tabbed-menu-body,.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body{position:relative}.ag-theme-quartz .ag-chart-tabbed-menu-body::after,.ag-theme-quartz-dark .ag-chart-tabbed-menu-body::after,.ag-theme-quartz-auto-dark .ag-chart-tabbed-menu-body::after{content:"";position:absolute;display:block;top:0;left:0;right:0;height:16px;background:linear-gradient(var(--ag-control-panel-background-color),transparent)}.ag-theme-quartz .ag-charts-settings-group-title-bar,.ag-theme-quartz .ag-charts-data-group-title-bar,.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-quartz .ag-charts-settings-group-container,.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,.ag-theme-quartz-dark .ag-charts-data-group-title-bar,.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-quartz-dark .ag-charts-settings-group-container,.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-settings-group-container{border-top:none;font-weight:500}.ag-theme-quartz .ag-chart-mini-thumbnail,.ag-theme-quartz-dark .ag-chart-mini-thumbnail,.ag-theme-quartz-auto-dark .ag-chart-mini-thumbnail{background-color:var(--ag-background-color);margin-top:0;margin-bottom:0}.ag-theme-quartz .ag-chart-settings-nav-bar,.ag-theme-quartz-dark .ag-chart-settings-nav-bar,.ag-theme-quartz-auto-dark .ag-chart-settings-nav-bar{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500}.ag-theme-quartz .ag-chart-data-section .ag-label:not(.ag-group-title-bar),.ag-theme-quartz .ag-chart-format-section .ag-label:not(.ag-group-title-bar),.ag-theme-quartz-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),.ag-theme-quartz-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar),.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label:not(.ag-group-title-bar),.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label:not(.ag-group-title-bar){color:var(--ag-chart-menu-label-color)}.ag-theme-quartz .ag-chart-data-section .ag-label-align-top .ag-label,.ag-theme-quartz .ag-chart-format-section .ag-label-align-top .ag-label,.ag-theme-quartz-dark .ag-chart-data-section .ag-label-align-top .ag-label,.ag-theme-quartz-dark .ag-chart-format-section .ag-label-align-top .ag-label,.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-label-align-top .ag-label,.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-label-align-top .ag-label{margin-top:calc(var(--ag-widget-vertical-spacing) * 0.5);margin-bottom:var(--ag-widget-vertical-spacing)}.ag-theme-quartz .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,.ag-theme-quartz .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,.ag-theme-quartz-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,.ag-theme-quartz-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label,.ag-theme-quartz-auto-dark .ag-chart-data-section .ag-slider.ag-label-align-top .ag-label,.ag-theme-quartz-auto-dark .ag-chart-format-section .ag-slider.ag-label-align-top .ag-label{margin-bottom:0}.ag-theme-quartz .ag-chart-data-section label,.ag-theme-quartz .ag-chart-format-section label,.ag-theme-quartz-dark .ag-chart-data-section label,.ag-theme-quartz-dark .ag-chart-format-section label,.ag-theme-quartz-auto-dark .ag-chart-data-section label,.ag-theme-quartz-auto-dark .ag-chart-format-section label{display:inline-block}.ag-theme-quartz .ag-chart-format-wrapper,.ag-theme-quartz .ag-chart-data-wrapper,.ag-theme-quartz .ag-charts-format-top-level-group,.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-theme-quartz .ag-charts-format-top-level-group-item,.ag-theme-quartz .ag-charts-format-sub-level-group,.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,.ag-theme-quartz .ag-charts-format-sub-level-group-container,.ag-theme-quartz .ag-charts-format-sub-level-group-item:last-child,.ag-theme-quartz .ag-charts-format-sub-level-group-container>*,.ag-theme-quartz .ag-charts-data-group-title-bar,.ag-theme-quartz .ag-charts-data-group-container,.ag-theme-quartz .ag-charts-settings-group-title-bar,.ag-theme-quartz .ag-charts-settings-group-container,.ag-theme-quartz-dark .ag-chart-format-wrapper,.ag-theme-quartz-dark .ag-chart-data-wrapper,.ag-theme-quartz-dark .ag-charts-format-top-level-group,.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-theme-quartz-dark .ag-charts-format-top-level-group-item,.ag-theme-quartz-dark .ag-charts-format-sub-level-group,.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,.ag-theme-quartz-dark .ag-charts-format-sub-level-group-item:last-child,.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container>*,.ag-theme-quartz-dark .ag-charts-data-group-title-bar,.ag-theme-quartz-dark .ag-charts-data-group-container,.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,.ag-theme-quartz-dark .ag-charts-settings-group-container,.ag-theme-quartz-auto-dark .ag-chart-format-wrapper,.ag-theme-quartz-auto-dark .ag-chart-data-wrapper,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-item,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-item:last-child,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container>*,.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-data-group-container,.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-settings-group-container{padding:0;margin:0}.ag-theme-quartz .ag-charts-format-top-level-group,.ag-theme-quartz .ag-charts-data-group,.ag-theme-quartz-dark .ag-charts-format-top-level-group,.ag-theme-quartz-dark .ag-charts-data-group,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group,.ag-theme-quartz-auto-dark .ag-charts-data-group{border-top:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-quartz .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz .ag-charts-data-group-title-bar,.ag-theme-quartz .ag-charts-settings-group-title-bar,.ag-theme-quartz-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz-dark .ag-charts-data-group-title-bar,.ag-theme-quartz-dark .ag-charts-settings-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-data-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-theme-quartz .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-theme-quartz .ag-charts-data-group .ag-charts-data-group-container,.ag-theme-quartz .ag-charts-settings-group .ag-charts-settings-group-container,.ag-theme-quartz-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-theme-quartz-dark .ag-charts-data-group .ag-charts-data-group-container,.ag-theme-quartz-dark .ag-charts-settings-group .ag-charts-settings-group-container,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group .ag-charts-format-top-level-group-container,.ag-theme-quartz-auto-dark .ag-charts-data-group .ag-charts-data-group-container,.ag-theme-quartz-auto-dark .ag-charts-settings-group .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-theme-quartz .ag-charts-format-sub-level-group-title-bar,.ag-theme-quartz-dark .ag-charts-format-sub-level-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-title-bar{padding:var(--ag-widget-vertical-spacing) 0}.ag-theme-quartz .ag-charts-format-sub-level-group-container,.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container{padding-top:var(--ag-widget-vertical-spacing);padding-bottom:var(--ag-widget-container-vertical-padding)}.ag-theme-quartz .ag-charts-format-top-level-group-container>*,.ag-theme-quartz .ag-charts-format-sub-level-group-container>*,.ag-theme-quartz-dark .ag-charts-format-top-level-group-container>*,.ag-theme-quartz-dark .ag-charts-format-sub-level-group-container>*,.ag-theme-quartz-auto-dark .ag-charts-format-top-level-group-container>*,.ag-theme-quartz-auto-dark .ag-charts-format-sub-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-theme-quartz .ag-charts-data-group-item,.ag-theme-quartz-dark .ag-charts-data-group-item,.ag-theme-quartz-auto-dark .ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding)}.ag-theme-quartz .ag-chart-settings-mini-wrapper,.ag-theme-quartz-dark .ag-chart-settings-mini-wrapper,.ag-theme-quartz-auto-dark .ag-chart-settings-mini-wrapper{padding-bottom:var(--ag-widget-container-vertical-padding)}.ag-theme-quartz .ag-chart-advanced-settings-section,.ag-theme-quartz-dark .ag-chart-advanced-settings-section,.ag-theme-quartz-auto-dark .ag-chart-advanced-settings-section{padding-top:var(--ag-widget-container-vertical-padding);padding-bottom:var(--ag-widget-container-vertical-padding)}.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-quartz .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container,.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-title-bar,.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group .ag-charts-advanced-settings-top-level-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-container,.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-container,.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-container{margin:0}.ag-theme-quartz .ag-charts-advanced-settings-top-level-group-item,.ag-theme-quartz-dark .ag-charts-advanced-settings-top-level-group-item,.ag-theme-quartz-auto-dark .ag-charts-advanced-settings-top-level-group-item{margin-top:calc(var(--ag-widget-vertical-spacing) * 2);margin-bottom:0}.ag-theme-quartz .ag-ltr .ag-group-title-bar-icon,.ag-theme-quartz-dark .ag-ltr .ag-group-title-bar-icon,.ag-theme-quartz-auto-dark .ag-ltr .ag-group-title-bar-icon{margin-right:var(--ag-grid-size)}.ag-theme-quartz .ag-rtl .ag-group-title-bar-icon,.ag-theme-quartz-dark .ag-rtl .ag-group-title-bar-icon,.ag-theme-quartz-auto-dark .ag-rtl .ag-group-title-bar-icon{margin-left:var(--ag-grid-size)}.ag-theme-quartz .ag-spectrum-color,.ag-theme-quartz .ag-spectrum-fill,.ag-theme-quartz-dark .ag-spectrum-color,.ag-theme-quartz-dark .ag-spectrum-fill,.ag-theme-quartz-auto-dark .ag-spectrum-color,.ag-theme-quartz-auto-dark .ag-spectrum-fill{border-radius:var(--ag-border-radius)}.ag-theme-quartz .ag-spectrum-dragger,.ag-theme-quartz-dark .ag-spectrum-dragger,.ag-theme-quartz-auto-dark .ag-spectrum-dragger{border-radius:18px;height:18px;width:18px;border:3px solid white}.ag-theme-quartz .ag-spectrum-tools,.ag-theme-quartz-dark .ag-spectrum-tools,.ag-theme-quartz-auto-dark .ag-spectrum-tools{padding-left:0;padding-right:0;padding-bottom:0}.ag-theme-quartz .ag-spectrum-tool,.ag-theme-quartz-dark .ag-spectrum-tool,.ag-theme-quartz-auto-dark .ag-spectrum-tool{height:12px}.ag-theme-quartz .ag-spectrum-hue-background,.ag-theme-quartz .ag-spectrum-alpha-background,.ag-theme-quartz-dark .ag-spectrum-hue-background,.ag-theme-quartz-dark .ag-spectrum-alpha-background,.ag-theme-quartz-auto-dark .ag-spectrum-hue-background,.ag-theme-quartz-auto-dark .ag-spectrum-alpha-background{border-radius:12px}.ag-theme-quartz .ag-spectrum-slider,.ag-theme-quartz-dark .ag-spectrum-slider,.ag-theme-quartz-auto-dark .ag-spectrum-slider{margin-top:-15px;width:18px;height:18px;border-radius:18px;border:3px solid rgb(248,248,248)}.ag-theme-quartz .ag-recent-colors,.ag-theme-quartz-dark .ag-recent-colors,.ag-theme-quartz-auto-dark .ag-recent-colors{margin-left:var(--ag-grid-size);margin-right:var(--ag-grid-size);margin-bottom:2px}.ag-theme-quartz .ag-color-input-color,.ag-theme-quartz .ag-color-picker-color,.ag-theme-quartz .ag-recent-color,.ag-theme-quartz-dark .ag-color-input-color,.ag-theme-quartz-dark .ag-color-picker-color,.ag-theme-quartz-dark .ag-recent-color,.ag-theme-quartz-auto-dark .ag-color-input-color,.ag-theme-quartz-auto-dark .ag-color-picker-color,.ag-theme-quartz-auto-dark .ag-recent-color{border-radius:4px}.ag-theme-quartz .ag-recent-color,.ag-theme-quartz-dark .ag-recent-color,.ag-theme-quartz-auto-dark .ag-recent-color{border:var(--ag-borders-secondary) var(--ag-secondary-border-color)}.ag-theme-quartz .ag-dnd-ghost,.ag-theme-quartz-dark .ag-dnd-ghost,.ag-theme-quartz-auto-dark .ag-dnd-ghost{font-weight:500}.ag-theme-quartz .ag-standard-button,.ag-theme-quartz-dark .ag-standard-button,.ag-theme-quartz-auto-dark .ag-standard-button{font-family:inherit;appearance:none;-webkit-appearance:none;border-radius:var(--ag-border-radius);border:solid 1px var(--ag-input-border-color);background-color:var(--ag-background-color);padding:var(--ag-grid-size) calc(var(--ag-grid-size) * 2)}.ag-theme-quartz .ag-standard-button:not(:disabled),.ag-theme-quartz-dark .ag-standard-button:not(:disabled),.ag-theme-quartz-auto-dark .ag-standard-button:not(:disabled){cursor:pointer}.ag-theme-quartz .ag-standard-button:not(:disabled):hover,.ag-theme-quartz-dark .ag-standard-button:not(:disabled):hover,.ag-theme-quartz-auto-dark .ag-standard-button:not(:disabled):hover{background-color:var(--ag-row-hover-color)}.ag-theme-quartz .ag-standard-button:not(:disabled):active,.ag-theme-quartz-dark .ag-standard-button:not(:disabled):active,.ag-theme-quartz-auto-dark .ag-standard-button:not(:disabled):active{border-color:var(--ag-active-color)}.ag-theme-quartz .ag-standard-button:disabled,.ag-theme-quartz-dark .ag-standard-button:disabled,.ag-theme-quartz-auto-dark .ag-standard-button:disabled{color:var(--ag-disabled-foreground-color);background-color:var(--ag-input-disabled-background-color);border-color:var(--ag-input-disabled-border-color)}.ag-theme-quartz .ag-column-drop-cell,.ag-theme-quartz-dark .ag-column-drop-cell,.ag-theme-quartz-auto-dark .ag-column-drop-cell{border-radius:calc(var(--ag-grid-size) * 3);height:calc(var(--ag-grid-size) * 3);padding:0 var(--ag-grid-size)}.ag-theme-quartz .ag-column-drop-cell-button,.ag-theme-quartz-dark .ag-column-drop-cell-button,.ag-theme-quartz-auto-dark .ag-column-drop-cell-button{min-width:0;margin:0}.ag-theme-quartz .ag-column-drop-cell-drag-handle,.ag-theme-quartz-dark .ag-column-drop-cell-drag-handle,.ag-theme-quartz-auto-dark .ag-column-drop-cell-drag-handle{margin-left:0}.ag-theme-quartz .ag-column-drop-vertical,.ag-theme-quartz-dark .ag-column-drop-vertical,.ag-theme-quartz-auto-dark .ag-column-drop-vertical{min-height:75px}.ag-theme-quartz .ag-column-drop-vertical-title-bar,.ag-theme-quartz-dark .ag-column-drop-vertical-title-bar,.ag-theme-quartz-auto-dark .ag-column-drop-vertical-title-bar{padding:var(--ag-widget-container-vertical-padding) calc(var(--ag-grid-size) * 2) 0}.ag-theme-quartz .ag-ltr .ag-column-drop-vertical-icon,.ag-theme-quartz-dark .ag-ltr .ag-column-drop-vertical-icon,.ag-theme-quartz-auto-dark .ag-ltr .ag-column-drop-vertical-icon{margin-left:0;margin-right:var(--ag-widget-horizontal-spacing)}.ag-theme-quartz .ag-rtl .ag-column-drop-vertical-icon,.ag-theme-quartz-dark .ag-rtl .ag-column-drop-vertical-icon,.ag-theme-quartz-auto-dark .ag-rtl .ag-column-drop-vertical-icon{margin-right:0;margin-left:var(--ag-widget-horizontal-spacing)}.ag-theme-quartz .ag-column-drop-vertical-empty-message,.ag-theme-quartz-dark .ag-column-drop-vertical-empty-message,.ag-theme-quartz-auto-dark .ag-column-drop-vertical-empty-message{display:flex;align-items:center;justify-content:center;border:dashed 1px;border-color:var(--ag-border-color);margin:calc(var(--ag-grid-size) * 1.5) calc(var(--ag-grid-size) * 2);padding:calc(var(--ag-grid-size) * 2)}.ag-theme-quartz .ag-column-drop-empty-message,.ag-theme-quartz-dark .ag-column-drop-empty-message,.ag-theme-quartz-auto-dark .ag-column-drop-empty-message{color:var(--ag-foreground-color)}.ag-theme-quartz .ag-pill-select .ag-column-drop,.ag-theme-quartz-dark .ag-pill-select .ag-column-drop,.ag-theme-quartz-auto-dark .ag-pill-select .ag-column-drop{min-height:unset}.ag-theme-quartz .ag-pill-select .ag-picker-field-display,.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-display,.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-display{font-weight:500;color:var(--ag-chart-menu-pill-select-button-color)}.ag-theme-quartz .ag-pill-select .ag-picker-field-icon .ag-icon,.ag-theme-quartz-dark .ag-pill-select .ag-picker-field-icon .ag-icon,.ag-theme-quartz-auto-dark .ag-pill-select .ag-picker-field-icon .ag-icon{color:var(--ag-chart-menu-pill-select-button-color)}.ag-theme-quartz .ag-status-bar,.ag-theme-quartz-dark .ag-status-bar,.ag-theme-quartz-auto-dark .ag-status-bar{font-weight:normal}.ag-theme-quartz .ag-status-name-value,.ag-theme-quartz-dark .ag-status-name-value,.ag-theme-quartz-auto-dark .ag-status-name-value{padding:var(--ag-widget-container-vertical-padding) 0}.ag-theme-quartz .ag-status-name-value-value,.ag-theme-quartz .ag-paging-number,.ag-theme-quartz .ag-paging-row-summary-panel-number,.ag-theme-quartz-dark .ag-status-name-value-value,.ag-theme-quartz-dark .ag-paging-number,.ag-theme-quartz-dark .ag-paging-row-summary-panel-number,.ag-theme-quartz-auto-dark .ag-status-name-value-value,.ag-theme-quartz-auto-dark .ag-paging-number,.ag-theme-quartz-auto-dark .ag-paging-row-summary-panel-number{font-weight:500;font-variant-numeric:tabular-nums}.ag-theme-quartz .ag-column-drop-cell-button,.ag-theme-quartz-dark .ag-column-drop-cell-button,.ag-theme-quartz-auto-dark .ag-column-drop-cell-button{opacity:0.75}.ag-theme-quartz .ag-column-drop-cell-button:hover,.ag-theme-quartz-dark .ag-column-drop-cell-button:hover,.ag-theme-quartz-auto-dark .ag-column-drop-cell-button:hover{opacity:1}.ag-theme-quartz .ag-header-cell-menu-button,.ag-theme-quartz .ag-header-cell-filter-button,.ag-theme-quartz .ag-panel-title-bar-button,.ag-theme-quartz .ag-header-expand-icon,.ag-theme-quartz .ag-column-group-icons,.ag-theme-quartz .ag-set-filter-group-icons,.ag-theme-quartz .ag-group-expanded .ag-icon,.ag-theme-quartz .ag-group-contracted .ag-icon,.ag-theme-quartz .ag-chart-settings-prev,.ag-theme-quartz .ag-chart-settings-next,.ag-theme-quartz .ag-group-title-bar-icon,.ag-theme-quartz .ag-column-select-header-icon,.ag-theme-quartz .ag-floating-filter-button-button,.ag-theme-quartz .ag-filter-toolpanel-expand,.ag-theme-quartz .ag-panel-title-bar-button-icon,.ag-theme-quartz .ag-chart-menu-icon,.ag-theme-quartz-dark .ag-header-cell-menu-button,.ag-theme-quartz-dark .ag-header-cell-filter-button,.ag-theme-quartz-dark .ag-panel-title-bar-button,.ag-theme-quartz-dark .ag-header-expand-icon,.ag-theme-quartz-dark .ag-column-group-icons,.ag-theme-quartz-dark .ag-set-filter-group-icons,.ag-theme-quartz-dark .ag-group-expanded .ag-icon,.ag-theme-quartz-dark .ag-group-contracted .ag-icon,.ag-theme-quartz-dark .ag-chart-settings-prev,.ag-theme-quartz-dark .ag-chart-settings-next,.ag-theme-quartz-dark .ag-group-title-bar-icon,.ag-theme-quartz-dark .ag-column-select-header-icon,.ag-theme-quartz-dark .ag-floating-filter-button-button,.ag-theme-quartz-dark .ag-filter-toolpanel-expand,.ag-theme-quartz-dark .ag-panel-title-bar-button-icon,.ag-theme-quartz-dark .ag-chart-menu-icon,.ag-theme-quartz-auto-dark .ag-header-cell-menu-button,.ag-theme-quartz-auto-dark .ag-header-cell-filter-button,.ag-theme-quartz-auto-dark .ag-panel-title-bar-button,.ag-theme-quartz-auto-dark .ag-header-expand-icon,.ag-theme-quartz-auto-dark .ag-column-group-icons,.ag-theme-quartz-auto-dark .ag-set-filter-group-icons,.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon,.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon,.ag-theme-quartz-auto-dark .ag-chart-settings-prev,.ag-theme-quartz-auto-dark .ag-chart-settings-next,.ag-theme-quartz-auto-dark .ag-group-title-bar-icon,.ag-theme-quartz-auto-dark .ag-column-select-header-icon,.ag-theme-quartz-auto-dark .ag-floating-filter-button-button,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand,.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon,.ag-theme-quartz-auto-dark .ag-chart-menu-icon{--ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-foreground-color) 10%)}.ag-theme-quartz .ag-header-cell-menu-button:hover,.ag-theme-quartz .ag-header-cell-menu-button.ag-has-menu-open,.ag-theme-quartz .ag-header-cell-filter-button:hover,.ag-theme-quartz .ag-header-cell-filter-button.ag-has-menu-open,.ag-theme-quartz .ag-panel-title-bar-button:hover,.ag-theme-quartz .ag-panel-title-bar-button.ag-has-menu-open,.ag-theme-quartz .ag-header-expand-icon:hover,.ag-theme-quartz .ag-header-expand-icon.ag-has-menu-open,.ag-theme-quartz .ag-column-group-icons:hover,.ag-theme-quartz .ag-column-group-icons.ag-has-menu-open,.ag-theme-quartz .ag-set-filter-group-icons:hover,.ag-theme-quartz .ag-set-filter-group-icons.ag-has-menu-open,.ag-theme-quartz .ag-group-expanded .ag-icon:hover,.ag-theme-quartz .ag-group-expanded .ag-icon.ag-has-menu-open,.ag-theme-quartz .ag-group-contracted .ag-icon:hover,.ag-theme-quartz .ag-group-contracted .ag-icon.ag-has-menu-open,.ag-theme-quartz .ag-chart-settings-prev:hover,.ag-theme-quartz .ag-chart-settings-prev.ag-has-menu-open,.ag-theme-quartz .ag-chart-settings-next:hover,.ag-theme-quartz .ag-chart-settings-next.ag-has-menu-open,.ag-theme-quartz .ag-group-title-bar-icon:hover,.ag-theme-quartz .ag-group-title-bar-icon.ag-has-menu-open,.ag-theme-quartz .ag-column-select-header-icon:hover,.ag-theme-quartz .ag-column-select-header-icon.ag-has-menu-open,.ag-theme-quartz .ag-floating-filter-button-button:hover,.ag-theme-quartz .ag-floating-filter-button-button.ag-has-menu-open,.ag-theme-quartz .ag-filter-toolpanel-expand:hover,.ag-theme-quartz .ag-filter-toolpanel-expand.ag-has-menu-open,.ag-theme-quartz .ag-panel-title-bar-button-icon:hover,.ag-theme-quartz .ag-panel-title-bar-button-icon.ag-has-menu-open,.ag-theme-quartz .ag-chart-menu-icon:hover,.ag-theme-quartz .ag-chart-menu-icon.ag-has-menu-open,.ag-theme-quartz-dark .ag-header-cell-menu-button:hover,.ag-theme-quartz-dark .ag-header-cell-menu-button.ag-has-menu-open,.ag-theme-quartz-dark .ag-header-cell-filter-button:hover,.ag-theme-quartz-dark .ag-header-cell-filter-button.ag-has-menu-open,.ag-theme-quartz-dark .ag-panel-title-bar-button:hover,.ag-theme-quartz-dark .ag-panel-title-bar-button.ag-has-menu-open,.ag-theme-quartz-dark .ag-header-expand-icon:hover,.ag-theme-quartz-dark .ag-header-expand-icon.ag-has-menu-open,.ag-theme-quartz-dark .ag-column-group-icons:hover,.ag-theme-quartz-dark .ag-column-group-icons.ag-has-menu-open,.ag-theme-quartz-dark .ag-set-filter-group-icons:hover,.ag-theme-quartz-dark .ag-set-filter-group-icons.ag-has-menu-open,.ag-theme-quartz-dark .ag-group-expanded .ag-icon:hover,.ag-theme-quartz-dark .ag-group-expanded .ag-icon.ag-has-menu-open,.ag-theme-quartz-dark .ag-group-contracted .ag-icon:hover,.ag-theme-quartz-dark .ag-group-contracted .ag-icon.ag-has-menu-open,.ag-theme-quartz-dark .ag-chart-settings-prev:hover,.ag-theme-quartz-dark .ag-chart-settings-prev.ag-has-menu-open,.ag-theme-quartz-dark .ag-chart-settings-next:hover,.ag-theme-quartz-dark .ag-chart-settings-next.ag-has-menu-open,.ag-theme-quartz-dark .ag-group-title-bar-icon:hover,.ag-theme-quartz-dark .ag-group-title-bar-icon.ag-has-menu-open,.ag-theme-quartz-dark .ag-column-select-header-icon:hover,.ag-theme-quartz-dark .ag-column-select-header-icon.ag-has-menu-open,.ag-theme-quartz-dark .ag-floating-filter-button-button:hover,.ag-theme-quartz-dark .ag-floating-filter-button-button.ag-has-menu-open,.ag-theme-quartz-dark .ag-filter-toolpanel-expand:hover,.ag-theme-quartz-dark .ag-filter-toolpanel-expand.ag-has-menu-open,.ag-theme-quartz-dark .ag-panel-title-bar-button-icon:hover,.ag-theme-quartz-dark .ag-panel-title-bar-button-icon.ag-has-menu-open,.ag-theme-quartz-dark .ag-chart-menu-icon:hover,.ag-theme-quartz-dark .ag-chart-menu-icon.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-header-cell-menu-button:hover,.ag-theme-quartz-auto-dark .ag-header-cell-menu-button.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-header-cell-filter-button:hover,.ag-theme-quartz-auto-dark .ag-header-cell-filter-button.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-panel-title-bar-button:hover,.ag-theme-quartz-auto-dark .ag-panel-title-bar-button.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-header-expand-icon:hover,.ag-theme-quartz-auto-dark .ag-header-expand-icon.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-column-group-icons:hover,.ag-theme-quartz-auto-dark .ag-column-group-icons.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-set-filter-group-icons:hover,.ag-theme-quartz-auto-dark .ag-set-filter-group-icons.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon:hover,.ag-theme-quartz-auto-dark .ag-group-expanded .ag-icon.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon:hover,.ag-theme-quartz-auto-dark .ag-group-contracted .ag-icon.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-chart-settings-prev:hover,.ag-theme-quartz-auto-dark .ag-chart-settings-prev.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-chart-settings-next:hover,.ag-theme-quartz-auto-dark .ag-chart-settings-next.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-group-title-bar-icon:hover,.ag-theme-quartz-auto-dark .ag-group-title-bar-icon.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-column-select-header-icon:hover,.ag-theme-quartz-auto-dark .ag-column-select-header-icon.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-floating-filter-button-button:hover,.ag-theme-quartz-auto-dark .ag-floating-filter-button-button.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand:hover,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-expand.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon:hover,.ag-theme-quartz-auto-dark .ag-panel-title-bar-button-icon.ag-has-menu-open,.ag-theme-quartz-auto-dark .ag-chart-menu-icon:hover,.ag-theme-quartz-auto-dark .ag-chart-menu-icon.ag-has-menu-open{border-radius:1px;background-color:var(--ag-quartz-icon-hover-color);box-shadow:0 0 0 4px var(--ag-quartz-icon-hover-color)}.ag-theme-quartz .ag-filter-active,.ag-theme-quartz .ag-filter-toolpanel-group-instance-header-icon,.ag-theme-quartz .ag-filter-toolpanel-instance-header-icon,.ag-theme-quartz-dark .ag-filter-active,.ag-theme-quartz-dark .ag-filter-toolpanel-group-instance-header-icon,.ag-theme-quartz-dark .ag-filter-toolpanel-instance-header-icon,.ag-theme-quartz-auto-dark .ag-filter-active,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-instance-header-icon,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-header-icon{position:relative}.ag-theme-quartz .ag-filter-active::after,.ag-theme-quartz .ag-filter-toolpanel-group-instance-header-icon::after,.ag-theme-quartz .ag-filter-toolpanel-instance-header-icon::after,.ag-theme-quartz-dark .ag-filter-active::after,.ag-theme-quartz-dark .ag-filter-toolpanel-group-instance-header-icon::after,.ag-theme-quartz-dark .ag-filter-toolpanel-instance-header-icon::after,.ag-theme-quartz-auto-dark .ag-filter-active::after,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-instance-header-icon::after,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-header-icon::after{content:"";position:absolute;width:6px;height:6px;top:-1px;right:-1px;border-radius:50%;background-color:var(--ag-active-color)}.ag-theme-quartz .ag-filter-active,.ag-theme-quartz-dark .ag-filter-active,.ag-theme-quartz-auto-dark .ag-filter-active{--ag-quartz-icon-active-color: color-mix(in srgb, transparent, var(--ag-active-color) 14%);--ag-quartz-icon-hover-color: color-mix(in srgb, transparent, var(--ag-active-color) 28%);border-radius:1px;background-color:var(--ag-quartz-icon-active-color);box-shadow:0 0 0 4px var(--ag-quartz-icon-active-color)}.ag-theme-quartz .ag-filter-active .ag-icon-filter,.ag-theme-quartz-dark .ag-filter-active .ag-icon-filter,.ag-theme-quartz-auto-dark .ag-filter-active .ag-icon-filter{clip-path:path("M8,0C8,4.415 11.585,8 16,8L16,16L0,16L0,0L8,0Z")}.ag-theme-quartz .ag-chart-menu,.ag-theme-quartz-dark .ag-chart-menu,.ag-theme-quartz-auto-dark .ag-chart-menu{--ag-icon-size: 20px;background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);padding:4px 2px}.ag-theme-quartz .ag-chart-menu-icon,.ag-theme-quartz-dark .ag-chart-menu-icon,.ag-theme-quartz-auto-dark .ag-chart-menu-icon{opacity:0.8}.ag-theme-quartz .ag-drag-handle,.ag-theme-quartz-dark .ag-drag-handle,.ag-theme-quartz-auto-dark .ag-drag-handle{color:var(--ag-icon-font-color)}.ag-theme-quartz .ag-ltr .ag-menu-option-icon,.ag-theme-quartz .ag-ltr .ag-compact-menu-option-icon,.ag-theme-quartz-dark .ag-ltr .ag-menu-option-icon,.ag-theme-quartz-dark .ag-ltr .ag-compact-menu-option-icon,.ag-theme-quartz-auto-dark .ag-ltr .ag-menu-option-icon,.ag-theme-quartz-auto-dark .ag-ltr .ag-compact-menu-option-icon{padding-left:calc(var(--ag-grid-size) * 1.5)}.ag-theme-quartz .ag-rtl .ag-menu-option-icon,.ag-theme-quartz .ag-rtl .ag-compact-menu-option-icon,.ag-theme-quartz-dark .ag-rtl .ag-menu-option-icon,.ag-theme-quartz-dark .ag-rtl .ag-compact-menu-option-icon,.ag-theme-quartz-auto-dark .ag-rtl .ag-menu-option-icon,.ag-theme-quartz-auto-dark .ag-rtl .ag-compact-menu-option-icon{padding-right:calc(var(--ag-grid-size) * 1.5)}.ag-theme-quartz .ag-menu-option-icon,.ag-theme-quartz .ag-compact-menu-option-icon,.ag-theme-quartz-dark .ag-menu-option-icon,.ag-theme-quartz-dark .ag-compact-menu-option-icon,.ag-theme-quartz-auto-dark .ag-menu-option-icon,.ag-theme-quartz-auto-dark .ag-compact-menu-option-icon{width:var(--ag-icon-size);cursor:pointer}.ag-theme-quartz .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-quartz-dark .ag-chart-settings-card-item.ag-not-selected:hover,.ag-theme-quartz-auto-dark .ag-chart-settings-card-item.ag-not-selected:hover{opacity:0.35}.ag-theme-quartz .ag-ltr .ag-panel-title-bar-button,.ag-theme-quartz-dark .ag-ltr .ag-panel-title-bar-button,.ag-theme-quartz-auto-dark .ag-ltr .ag-panel-title-bar-button{margin-left:calc(var(--ag-grid-size) * 1.5)}.ag-theme-quartz .ag-rtl .ag-panel-title-bar-button,.ag-theme-quartz-dark .ag-rtl .ag-panel-title-bar-button,.ag-theme-quartz-auto-dark .ag-rtl .ag-panel-title-bar-button{margin-right:calc(var(--ag-grid-size) * 1.5)}.ag-theme-quartz .ag-multi-filter-group-title-bar,.ag-theme-quartz-dark .ag-multi-filter-group-title-bar,.ag-theme-quartz-auto-dark .ag-multi-filter-group-title-bar{padding:calc(var(--ag-grid-size) * 1.5) var(--ag-grid-size)}.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-body,.ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-body,.ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-body{padding-left:var(--ag-grid-size)}.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-body,.ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-body,.ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-body{padding-right:var(--ag-grid-size)}.ag-theme-quartz .ag-filter-toolpanel-instance-filter,.ag-theme-quartz-dark .ag-filter-toolpanel-instance-filter,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-instance-filter{border:none;background-color:var(--ag-control-panel-background-color)}.ag-theme-quartz .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-quartz-dark .ag-ltr .ag-filter-toolpanel-instance-filter,.ag-theme-quartz-auto-dark .ag-ltr .ag-filter-toolpanel-instance-filter{margin-left:calc(var(--ag-icon-size) * 0.5)}.ag-theme-quartz .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-quartz-dark .ag-rtl .ag-filter-toolpanel-instance-filter,.ag-theme-quartz-auto-dark .ag-rtl .ag-filter-toolpanel-instance-filter{margin-right:calc(var(--ag-icon-size) * 0.5)}.ag-theme-quartz .ag-filter-toolpanel-group-level-0,.ag-theme-quartz-dark .ag-filter-toolpanel-group-level-0,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-level-0{border-top:none}.ag-theme-quartz .ag-filter-toolpanel-header,.ag-theme-quartz-dark .ag-filter-toolpanel-header,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-header{height:initial;padding-top:var(--ag-grid-size);padding-bottom:var(--ag-grid-size)}.ag-theme-quartz .ag-filter-toolpanel-group-item,.ag-theme-quartz-dark .ag-filter-toolpanel-group-item,.ag-theme-quartz-auto-dark .ag-filter-toolpanel-group-item{margin:0}.ag-theme-quartz .ag-date-time-list-page-entry-is-current,.ag-theme-quartz-dark .ag-date-time-list-page-entry-is-current,.ag-theme-quartz-auto-dark .ag-date-time-list-page-entry-is-current{background-color:var(--ag-active-color)}.ag-theme-quartz .ag-advanced-filter-builder-button,.ag-theme-quartz-dark .ag-advanced-filter-builder-button,.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-button{padding:var(--ag-grid-size);font-weight:600}.ag-theme-quartz .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-quartz .ag-disabled .ag-icon,.ag-theme-quartz .ag-column-select-column-group-readonly .ag-icon,.ag-theme-quartz [disabled] .ag-icon,.ag-theme-quartz-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-quartz-dark .ag-disabled .ag-icon,.ag-theme-quartz-dark .ag-column-select-column-group-readonly .ag-icon,.ag-theme-quartz-dark [disabled] .ag-icon,.ag-theme-quartz-auto-dark .ag-advanced-filter-builder-item-button-disabled .ag-icon,.ag-theme-quartz-auto-dark .ag-disabled .ag-icon,.ag-theme-quartz-auto-dark .ag-column-select-column-group-readonly .ag-icon,.ag-theme-quartz-auto-dark [disabled] .ag-icon{opacity:0.6}.ag-theme-quartz .ag-icon-grip,.ag-theme-quartz-dark .ag-icon-grip,.ag-theme-quartz-auto-dark .ag-icon-grip{opacity:0.7}.ag-theme-quartz .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-quartz .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-quartz-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-quartz-dark .ag-column-select-column-readonly .ag-icon-grip,.ag-theme-quartz-auto-dark .ag-column-select-column-readonly.ag-icon-grip,.ag-theme-quartz-auto-dark .ag-column-select-column-readonly .ag-icon-grip{opacity:0.35}.ag-theme-quartz .ag-ltr .ag-column-select-add-group-indent,.ag-theme-quartz-dark .ag-ltr .ag-column-select-add-group-indent,.ag-theme-quartz-auto-dark .ag-ltr .ag-column-select-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5)}.ag-theme-quartz .ag-rtl .ag-column-select-add-group-indent,.ag-theme-quartz-dark .ag-rtl .ag-column-select-add-group-indent,.ag-theme-quartz-auto-dark .ag-rtl .ag-column-select-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-grid-size) * 1.5)}.ag-theme-quartz .ag-text-field-input[disabled],.ag-theme-quartz .ag-menu-option-disabled,.ag-theme-quartz-dark .ag-text-field-input[disabled],.ag-theme-quartz-dark .ag-menu-option-disabled,.ag-theme-quartz-auto-dark .ag-text-field-input[disabled],.ag-theme-quartz-auto-dark .ag-menu-option-disabled{cursor:not-allowed}.ag-theme-quartz .ag-checkbox-input-wrapper.ag-checked.ag-disabled,.ag-theme-quartz-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled,.ag-theme-quartz-auto-dark .ag-checkbox-input-wrapper.ag-checked.ag-disabled{--ag-checkbox-checked-color: var(--ag-checkbox-unchecked-color)}.ag-theme-quartz .ag-checkbox-input:where(:not(:disabled)),.ag-theme-quartz .ag-toggle-button-input:where(:not(:disabled)),.ag-theme-quartz .ag-radio-button-input:where(:not(:disabled)),.ag-theme-quartz input[class^=ag-][type=range]:where(:not(:disabled)),.ag-theme-quartz-dark .ag-checkbox-input:where(:not(:disabled)),.ag-theme-quartz-dark .ag-toggle-button-input:where(:not(:disabled)),.ag-theme-quartz-dark .ag-radio-button-input:where(:not(:disabled)),.ag-theme-quartz-dark input[class^=ag-][type=range]:where(:not(:disabled)),.ag-theme-quartz-auto-dark .ag-checkbox-input:where(:not(:disabled)),.ag-theme-quartz-auto-dark .ag-toggle-button-input:where(:not(:disabled)),.ag-theme-quartz-auto-dark .ag-radio-button-input:where(:not(:disabled)),.ag-theme-quartz-auto-dark input[class^=ag-][type=range]:where(:not(:disabled)){cursor:pointer}.ag-theme-quartz .ag-details-row,.ag-theme-quartz-dark .ag-details-row,.ag-theme-quartz-auto-dark .ag-details-row{padding:calc(var(--ag-grid-size) * 3.75)}.ag-theme-quartz .ag-list-item-hovered::after,.ag-theme-quartz-dark .ag-list-item-hovered::after,.ag-theme-quartz-auto-dark .ag-list-item-hovered::after{background-color:var(--ag-active-color)}.ag-theme-quartz .ag-pill .ag-pill-button:hover,.ag-theme-quartz-dark .ag-pill .ag-pill-button:hover,.ag-theme-quartz-auto-dark .ag-pill .ag-pill-button:hover{color:var(--ag-active-color)}.ag-theme-quartz-dark .ag-chart-menu{background-color:color-mix(in srgb,rgba(24,39,50,0.3),var(--ag-background-color) 30%)}.ag-theme-quartz-dark .ag-text-field-input::placeholder{color:var(--ag-data-color);opacity:0.8}
`,document.head.appendChild(e)}})(),(function(){if(typeof document<"u"){var e=document.createElement("style");e.setAttribute("data-ag-scope","legacy"),e.textContent=`@font-face{font-family:"agGridClassic";src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABocAAsAAAAAODwAABnMAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIw2BmAAjWwKwnS3DwE2AiQDgwALgUIABCAFhFIHhnMbzzB1BGwcADheazmiilMi+/8/JtAxYOfmENSsAEola2VGytKqUNrtj6eu73h7K0X4pk3POJ7xfvagn2M6AG5gYOGScfhUkZPWEmlKz23hjnAwX69y/xmf6YEUkw2l9Pk2yw9sv9oKywwMrS1cKT0qKqrqvBgdHSFjVEZ0s+p4xQwvRfQkO56d+8cD/akvi0O0KZzLeTrmeTeWSuUaF2NQ7NW+9gfa5j84nTYeB4iYoHK67QdirS1CBYwDjIKJuCimvbX+P1gG+AerU3GVsCxXqevkh/7KAACCTVUz1FLLrGGRU8asdf82P0yCEhMK4JGgbCcA6AGOvfejF91IA8LhTJ/Wbdtw7hU1CykKITtrAAaa0QaNTe7NMZEUSKQitg3+Zn4C7ZOkdFaZmkRONm+PqfMDv+HXrp1oBToTQSLA/36/lrVbqFz0ID2/fci/92L6wNPOm02IyHQ8FBqzGf+0HxeSaGJIhGapJKbmSpt7pAKxcOXxdWo3Odi9Pfg873HKeeqlfP9FYEXJc4qXAilQRKoOQdXoCt2pcJWuhVprLdXfOwFzKoOx9r2jvuPGa+kiIyREICJyzdr7/4eAA+SMG0DDh2yh9IbPt2iEIPs5WI/nbv7sAJmnFglBNifzIdlFuW7/fv6X6LdrQ039P+bjZvrdZGr7KqlYt9rghVMkX3RJSPoeIkqmYHgpEolCpUlKMhAa3YyISycQqJHzlWSo7FWBUAOERM6iBBmDPgYIngzNMz2OAEWNxD2KuDjqIF4YzgxByfIs1Pms9vAapALCozGdCrdUI7hCIuZytKEKyqUjTBsSJjxVC1aTROBHvhRMksKQIDyy4kiKkPisiI/9Y2iJkTqTQjPQP4LkRStCBDMBIdPZYQjan8JdNAXlEZmKGWp4JwThorog/k4l0sqFhid/6t0Xo3W+injhtcHYO4LiiaFvPzP6/l0TEaPGEcnIQGgO4aNQ/1LJ02xKIUQSnWU43q8bISq4vt79+vOvHzdKmGkE9nCCOzzNt7ysWj/J6etsDoUbxoNzKiXTggadkzxhyCiXWEaYt4aVaARuZYHxRYopQU5IPGEsEoRknusCvnyDOOKDFSyjqzqg269yq4PqSuRalSiJSJccYVhGyZ4cCBVLG+3SpAoRfZ5JmNKSLEd6qbJJVUSjKRUoj66gfOL5SAV4mkQJMhq5rjIUuk4hbkjlmHIafWndD0vIaRSq6S7YSRdn8lpgljagdU0T3VHNGuriiRfdqnTBtCGIXHI843uIjve9MtZKm00jdcFod9TMNDap07TrNGvrfE6o2cuYDrgFWMgkbN9HwAtlVMrdOA7devd5ESsSJi/eGLHzx3HfEopvOD7Uj5iqEs04YwOaHqivjuhzUCINbhoSJ6/pBWvJ2SVIPPO6HVmvJAixeMphCTntcjuj2Tpz3BuBNxjqQlzNkXozIhkduY3n4uZCOysLHR0jdQaTP3JuF4kl4vuDpSWBf1RTwFf699xHE/EAXjIBciftsHOMvxWBIF8QpP0qdx9ZhJtrAUgCBMDwvaeV78TDXBu89MNgOd77INEAAIpl8BJG/Ln3KZz//wcAjPh15TGQqSZdnOJiZDNfDwiION45Ip6wTmZ7KixKNihBgED9SKVgD4cnSEnLyMpN769TolSZciLJxNTM3MLSikyh0ugMJovN4fL4AqFILJHK5AqlqvmcWqYBq9Tq9NY2thBJi/YOjgYnow2btmzbsQsBWLdyhz3kP19c6waJ85YMe+EzJYQ00iBS3cIekrHFACTeaeIIMFKRBzggEXBY58gYkA44JgNwQgRwSjHgjPKAc7IAFyQDrsgGXJMJuCEfcEsMcEcK4J5CwCNJgCfSAM9EAS8UAF4pAryRCngnF/BBBcCn/L3eABDIqEJgUBgMigBMhYKZMDAXDhYiwFIkWIkCa6LBuhiwIRZsigNb8WA7Aewkgt0ksNcE7DcFB83AYXNw1AIctwQnrcBpMjhLAeep4CINXKaDqwxwnQlussBtNrjLAfe54CEPPOaDpwLwXAheisBrMXgrAe+l4KMMfJaDrwrwXRkTawXyU0yfNmBUW4CRuljctAcT6RoMugGDbsGgOzDoHgx6ABjrCCYamIqewKAjGPQMBr2AQa9g0BsY9A4GfYBBn2DQFxj0DQb9IIBh/DYRf/6XAesHSOtwtEUKizTpAP67j73/mGUA6hkAxhhunMCBp4K14QlTNXwDwaNpNqOoo/AMHEypmmsYqzXqtuUIIGVVh94oljcml6M+V0gMkFimwGmCMtyLqlNMuCw180tz7LXSK7wQt16r2EI5iAUFI6SVSoQ+nitKj0X2JytFqKaolC8E+csR1aJEr4OmpAvJBoPkmBbLuuDDgX6+byu+GTiXqjnXNDz4IouO15xPMDM94WCX9Hb06kEIb1GD4gnjlDBJ+VaNp6RqVE4lEWXPM6wWCUsgzfz8uhcqP0Hiartu25XsoMpj7xzQX30S0ZveuORVzNoZo1wdPPnBD2i8/VpADBHUiglmaIf5+TrQ6/WBoPL4un7tE0JyMzYbsKuAEMQH3UZo+AhtditZap+r38sxYgnfyPMjrunpGZKxqjnmnG88zNI9NnS3W2+73kvXco4QJoYzVDs5lRY/3sCk8fYn7mB+fw3c9FffTqdFfYG9Fm7sVvAPYgntwMC0UJvWYQZ00Kz2yfKkoHepW2m3rW5KQeX5Bo+0raWFYgun1MrUu14D+m/zLzRGl4fvAA52qmbVQqe6x+soYGCAgQhiiE9gKQWRrNCUpLTAFDDcoxrTQtoKTG3jmsOi3FbxCwzQfyvejb9wM4In/1Voe7aE8abtenu9jkTVL5fPQ+PKzafYfHwd6JZwcmUfiVtAP+eh3MN1TZvq1x4hMdiRgYy7VLLPjX+u6t8wbjZwVrzSQaJTFnUQe5iXkLW9EqfczUNlqa2DDLEssejkWC7XR2BpT5tzoXE/u8vkWcNQDwIRRdBYwIh3GzAXacQxNidtE4+u6dcfm09vGjee7BW/wvf9GX9U2uqe9+9l1CROcFrwk+fMskCjhk2vG+X5I4LuSoA+lFDbasdVUb2swdp7JHxonH02Tn5rZn3FoUo38CpYScnofNtDPgUiMfHdRNb8IYr6ByQUyPN1AYvYj/VvWMyLLtrdH+5PvxhM1Q7iA5KZMhwzLCc75F3YAGjtv8OBEAUZwVL6dMnDJVqngsQgBFGuWELyIcbXE8oxMNXctK3PqCCINQwV4CACBvilLUWjkqhgFwJWznTb5Q4gGR/kbAMlqnEbSugA7tdpGKwlvxxHUdxJHm/grlnJXhpnt2eG1oPwdxiP4I04Gu74EJ4fMcetZSvD1D8sIgqXFNBwnTcI27X8nEZvIwednB/Jwo+bDIYOtdqzt/vZFTPP//KYRSc4JRgYShgwMyJFED++xxBvxBwyRMB1QO4o4av4OqJysk6FXAMJVlOvqMDJbLKeq4TPDzRRT4Nh7iXSuOtLNZPG2aeTIDAR4fAZPI4J2Hb0Ow2xyVclQYPdmc9+sAiJc346MJuG8zScSCcxxBSdi68pKSeQRBFhiMsIKna5j0P0QHESWW5O2KetJbOe07U5gLIa4+syeEsaRHjl4cZFuiYsIrp1xAQx4CImtZfLuRxoyo6CUIthzvXA5UD25il6BWYYnmC8WGA8DTUpLSNpAvLy1pDDk6Uq4y0dCqqa0IqFVrWoHT1hb0ilWzqAcMDWMxdRWpa2je+QHdhim/lLgxJLFxnfLdHlBNslnJrjGrnTjsjM3FjBNrUr5HDgDQGqc4ZH/JIXEQmbdkUhZLZRCfthxfT0OkqhiwHyzX5IlHklnqfgLtX+KeEbDayZHkjodeFHiW8UtkgHNbwfmls7JNJbEkpyG5tDyWxV1AHQPbMB40L2XLmEk1Z76T6ZV3PzXOGpv5nMnDKEta9vr3RvAv+vp12bzghAagu6+ujZtYvXnz8eBPh9kBuWYu40Bjd5cSRc1BK5gwXjjFubiAKVjYZlw0rcve9ptpj4sq6DRj7ArpLePu8RyfqRZWI98FsdgfNsXdzsszRbq/nCXR7uIQcYVka8753LkHNl0yIGlen5PN/DH6nYZBloJdmx1g+NVXsyAN5jBkNmdoeeIJj9SV0f1kWhlXCVUdc1HCM/AUdYmbVUE0Ggh6EZx0Y0cvljTEK1mNCfobR4Af81XmJlq7gZwPw0UE7JFEOGNCSedb2a4KYzK0LzaY9WYH5W1XEzx4QiRhBnWHscBiQ5iuKvPK766VcQXHr89W8cXy5ydfFWtCw7ufwOJB7GEmod1g7m5EmwXbf6TTh8Vzz+U42LtdPferteqRVCIiO8FAqx6BwZQyTKUSBITg4TLRYj6swQiSEoFFSqlB6KIkUOFa5M3bpVV6kloO5yVxdrAwiXfY69BHCYHsGY+QZzcZ9k9x91hvvfArkB74pSOBke2VT8fczF75xrjvimBzmx3Ij3Wwz5nPxWP1/EjAmVFb1lg+cjqvxYSWcIk3Y6EvlZpE/uboptmyj7YRT3PJP2qg1LjR9KW/Cchh3kDPOOPP/Vcc3Rw2rT9mz/zWLpxbv43U4nGDnLIr0Op+7814tXRVF5H4pkd8Q6UVoWw67Sr7MW9Yt3/1lruEAN5CVNRAOyKTF1XUHXnH2O4XIZUwlETIE9mAmnIt2SiMu6c6G/NZ7/wp9xQAk+pojEe/bs3iMW1+COEu2O2i3SsgcSbdSP3GVs3lceexn3I2+Z51LVcxkVW/0loB79jDYEfEGrqYy+QEZEErItBKlxrEqbEhI3ve04I+/gWSkP+YGMOYT+/scZYUrHvKfrM/F8nzz5piAVmTy8O2GzmUePplJHDD+nGzl39tyOEVu3LnqnCuKBCHhByveLwNbXrmhPq9rYIiMVZFrmFnmLQuKeISib96lnwjt68mmwHOUXFPyxAmA9LdDHZ7eTBRhSMJtJl4uscvL75OSQNiLfJNEP38eiaF0dij5ogsQbr6ur6ibPydhFwatxAa7HE7N/q8i451rw8/pGE+WWZ0xKwAPKZNsd38WhNxgB1YJ+awaTd7oOwQKH8ele6/2ahtcKaYF74iIcVREFBUEz/X/b6R/EZrJC/S+66D6L/JvHTHnvi6rp/rbA3xM3wo+MZyz6dLcGptVv7FDF0zC6n1dxRxqLtfksvW3YooGOWCd7IDCbfOpl3u7s+JvsSWtoB8vYcd0/enpb6QbY5psw82jiXeLKzdSUWKFKEKfSO0kVp69coBKOTNE2ltXgJRHCNtJzAyqBkB9qy+ZcaEuwXEg4ZEloO4RQ8IacBkUmca8eltUfr62KyqOwudHf5tvVpdNpNQI1bcLya+TGucLGrHGLJmSxRtFQ3p/DikYVrb+uPO1J+8kXlcknEI1HV9IXsRnshIKZ6qaEee6etAga/QJ6qRbJSBcJdMw/qeJp2q9Ic96UrIK5CydU345PT4n788EPM+9nUTSE98jNdd0zOS95qpKkYQUr0wVCyc/pC0bLmfmBud7hpcFFXhpPlfDWoqeCzKJfarPv6nN+FpXdYKkfeW0cSjgg/BTzV2pzfr83OWeoOi+NSC/nVkZq3ce6lyXdXvhUkFXYMjVrtnJy5/PTNKqgLFGbVO0+2b0iUSXIrLzBUj32PCAqrhY2jEkQl63LpPqGDPRWQIHYuygqq6ZAvQvchePT5LINW8h+UJJKGPnRRbhozpMnxDf0kdpAXiWz+rbUy+C7dRPb8kDgYONJQtGv6NXRTsqXuYS8X66kOTaJsgKsH0mC3EAqK4Egv+fXB4G/+wgXYVpSZe3o0OnOONKWhs7Ooe0wY4YRk2NZ+NqGlhbjQoplYzLMYKgBjyALkxslkrVB4X4MSqBAZbJjElQqkmJSun1uiwOV0CV245QAQOcZG/JWVaB0ulFhaMzY0tKAr12d3ogqKKvzGtY2oAHngTTZ6Rh9botdSpdiInSeQWI3qQSBFIZfeNBaicQNdnh/EB9eu7auLtbwHnlvUbBGMl+rLafNDBoU/cQjsbiXZrY0WCw908WPH4uh7QUhwJDc/pnIL54rJ9PIwops2uhLbnXvlf/fYqk2W4TLxY8eib+A6r0CFAvCXtu8c8xYzCcAsGdqfqkSwtPf6UvwomiTKboIL71s0IGm+UXRJfxLpXwOM5/hh/AZU7Cl+DaXVFqUwkplSQya5PLExLJkrUHyLTZ5lVSamcJKe0sqS0wKRmOQBqayUlZBVA2732K29BPkqJogFSThcsHHj+XJO8f05/cJ9a8tSS4nXEfbYNlncpbCLEk7EQ+EWBLmtfjnsEv2KSTf7jx2zLl85cMTrorDSPFMVA8L/Ya+xVeVGr2AYErDS4we60wevErpk0/zLFnb+eWJmuRnxzM4SfssSQMua03TgGXqlKckP0nzLEmrbnsWOtezZI2J0YzWjLSpU9OMBm03LgthrtjeOWmSOjqSFAVzXFHSKCKKBzxpJY2SBY8fb75KkHkFsUIJpNksk4Psu1xmBsbN1AuIAilrqpLD0NHXf/wxPr6u9ujRgwePrwik2EyaIe+KHtOr1d+BvFq9W5DL1Iw/SLGTh0pV0gbbfwUSGFXcbTXY2M6hdBX9idoL1J0y5DJNVuwBYJqWHBS4LT7OXn5vwvPyBuxYvGdkiEvj6/77r+Q2i2l0sOo7rlcUNsEi4u6wELBpOK6XI/1p2a3oEoSpupwPA0jMgTswcsBHnSL11uVeks6XOcDDH/7RKVLuZ8EIU3SKf2cw7HgXA5gt4/1Qv52TcBr490yK+j1ibgHdrxf8uH7QNe5T3Igdhv0G9EFdnXPjho0bnfA9GXNi108zP7tOxyDVjqqXoqM4Nr5AwLO+i6T3SeYe6GbYGZnRk2jcplabz5ovs/g5R65H49GTIDNq5QZvToljyj+znwlHUsOibs0ZW/YLvTelgbSMMBHNAfde9x4FcR0LKEn8aay7r++EgSy1yoBpullYoLqzUzkwUj7HZk+uGX7+DtLCPVU3Lk7qwXv8u93t/Id3742D9uDw87cVO+Nze9KX3ddl7n1tryd3nXv3PRezkpaytQlKvXzITgpojmpGt7pTihPz/gttim5Cx1vHH9t4Ws7YNIsyP2o+ZdY4rAvvoo6rtayU2iaG40172pDUeQq3Aq5JmAvms4oK6+qeewuzfbOFUqlwr+9e4enGRgjZtEq3TWfmQtK2yguocjOV8jodkZvOT+VHp+LpVkAPTo1Ox60A4A6abuXzIdXC99uyb6997z7gC8+4uRVyP3OllY7tZ5ynoFLZZqQv6jN5svzt/x7PnoUAVxg9kmMr5OiqymcU5p5UpiSUM4OIvOTy8vqIaW9KJUNHzjNM0JlO7ms8Mym3dXGr6cXtqi2TIBBZXs8v9po4TF80Suud+yO/yHvi0LXcHI7palwBW1Wa0XgOU8hWlj5aK9VsqL54lMaQij5zOU2PEaUsSx2R8nxgApXyRZ/KQzcJy398kpWYmRFMRrgsQlYoq5ET65kNzLrV2yFPO/q/+JQ5GoYvTApPgor/Sdx/mX5ORMbTampkYY2zyIOQmFR90nEEyKdvkLdoB3AjokOr4GB9y0NpwQHNoBhAHp2EfIDbijw0OYMRE+pyn0OSqDVQZ8iENP3jCgfrMV63xwbbEPX/f2gD+h35lk2YTYrN1CIVaTByEyDhWd/pnmG865OUNcpMiGpWRG0br5JOtcBi8d1IjbwBJhEJO7PUVRQlPY2h8vspH7FnyBxcal/vkj5G1lCeKxzxZxeibqANZEPCSGjqvIfcQTU2wrKaYlVtLHK92nKkxbzBpAGGf35f1W2bXlpBG/67pw/yBoDFXs+PzqYTuu+eIP1rzgxk2AYKmN8n9f9ZDP/e+6v8poJO/ul0/v6EMALW9f+8FAUAVXgBAveGszFzExRpERD8y+gfsZfWDHQtvF+LDhhGtxigwLQWBSNAfO4FXcAACEA3L4DQHVqTFhKk4XwLGbrDVl0i/GyLJOTgSYt/oDv80QIBowQEiWEwBeFw/EzevgbM2ZtfNBZmTu2Jv173H6Xshfun9SPvUXwSU0Il22/2fV7GZ1XXuyRz/yGsFIL0MckXGV1PqvHl4cElmtZG5hWOn8nb1/CFc1GaN79oLO05TTJTyKX/6JFdv6vC/dP6UVb3SVieoqbYgm72Dc3LB33Wgrq+Kp5k7j/0spI4ZFjeSeSLX2Qy53pSEOPLQzErJ+tcGy36eWELgBxAzgz6z4OCgUNAQkH/Lby2g8f/PiKJ0mQ6my+WK1lRNd0wLdtxPT8IozhJs7woq7ppu3692e72h+NwGjc2t7Z3dsW8RKisMFXTDdOyHdfzg7AQxXv7c+FqheOYaET1wh2mJNtcYzYN1kG1aCmbziAbCq2ZMOnlPSyZ743shoWX7P3WBTxbUkqzZ1S63pVZWCrw1EiQNES/EZ0O7kSZOR8bYU1olGxjJO5bkyTn2uSlNkUb07SlXY4Oi4+oXdEe0Z6GHDBP9VLonA8DorbVUtZmTD62Y5ISm70K2gRy2gXPhrUeBEHreTyccedn/0PNTFwOHdUzWpl22rAwnbDogCHIlmwbNWikOnpuo19ED2OixUvJl6mnNyPDpqgKD+LcxZYat8mPkzYZFzrO80fBYGXLK9Ymywm4LpbDN+gw1hOzi2tNRIF0HRb2QNLEUHK7w1HyoevQSqhISdWrjHwaTjJEkHaFTzPPZ1V5THbYiKrMx0ygSjw2Ey3JTU+JpyvWPtMH+2E7A/dhOQ6ztgGtbch67TJhMtOhFVMseU60crujBUOhPGCuo3WAMEICAgUPAgxbyGDAQoAJvmEDOxhmKBBhDws4+FkB);font-weight:normal;font-style:normal}
`,document.head.appendChild(e)}})();var y={BACKSPACE:"Backspace",TAB:"Tab",ENTER:"Enter",ESCAPE:"Escape",SPACE:" ",LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown",DELETE:"Delete",F2:"F2",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",PAGE_HOME:"Home",PAGE_END:"End",A:"KeyA",C:"KeyC",D:"KeyD",V:"KeyV",X:"KeyX",Y:"KeyY",Z:"KeyZ"},Q0=65,Z0=67,J0=86,X0=68,$0=90,ey=89;function Dg(e){const{keyCode:t}=e;let o;switch(t){case Q0:o=y.A;break;case Z0:o=y.C;break;case J0:o=y.V;break;case X0:o=y.D;break;case $0:o=y.Z;break;case ey:o=y.Y;break;default:o=e.code}return o}var Vn="36.3.0",ty=':where([class^=ag-]),:where([class^=ag-]):after,:where([class^=ag-]):before{box-sizing:border-box;scrollbar-width:var(--ag-scrollbar-width)}:where([class^=ag-]):where(button){color:inherit}:where([class^=ag-]):where(input:not([type]),input[type=text],input[type=number],input[type=tel],input[type=date],input[type=datetime-local],textarea){font-family:inherit;font-size:inherit;line-height:inherit;padding:0;&:where(:focus){outline:var(--ag-internal-accessible-no-outline,revert)}}:where([class^=ag-]):where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:var(--ag-internal-accessible-no-outline,revert);&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}:where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;pointer-events:none;position:absolute;width:0}.ag-tab-guard-top{top:1px}.ag-tab-guard-bottom{bottom:1px}.ag-measurement-container{height:0;overflow:hidden;visibility:hidden;width:0}.ag-measurement-element-border{display:inline-block}.ag-measurement-element-border:before{border-left:var(--ag-internal-measurement-border);content:"";display:block}.ag-aria-description-container{border:0;clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:9999}.ag-popup{background-color:var(--ag-wrapper-background-color)}.ag-popup-child{max-width:min(100%,calc(100vw - 30px));top:0;z-index:5}.ag-popup-child: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-styled-root{cursor:default;display:contents;line-height:normal;white-space:normal;-webkit-font-smoothing:antialiased;color:var(--ag-text-color);color-scheme:var(--ag-browser-color-scheme);font-family:var(--ag-font-family);font-size:var(--ag-font-size);font-weight:var(--ag-font-weight);scrollbar-color:var(--ag-scrollbar-thumb-color) var(--ag-scrollbar-track-color);--ag-indentation-level:0;--ag-internal-accessible-color-transition-mode:none;@media not (forced-colors:active){--ag-internal-accessible-no-outline:none;--ag-internal-accessible-color-transition-mode:ease}}:where(.ag-toolbar) .ag-react-container:where(:not(.ag-react-wrapper-block)){display:contents}:where(.ag-icon):before{background-color:currentcolor;content:"";@media (forced-colors:active){background-color:CanvasText}align-items:center;color:inherit;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-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size);@media (forced-colors:active){background-color:Canvas}}.ag-disabled .ag-icon,[disabled] .ag-icon{opacity:.5}.ag-icon-grip.ag-disabled,.ag-icon-grip[disabled]{opacity:.35}.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-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}}.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}',oy=typeof window!="object"||!window?.document?.fonts?.forEach,Pg=!1,ry=!1,Bn=()=>oy&&!ry||Pg,go=(e,t,o,r,i,a,n=!1)=>{if(Bn())return;let s=e;r&&(s=`@layer ${CSS.escape(r).replaceAll(String.raw`\.`,".")} { ${e} }`);let l=dt.map.get(t);if(l||(l=[],dt.map.set(t,l)),l.some(u=>u.injectedCss===s))return;const c=document.createElement("style");a&&c.setAttribute("nonce",a),c.dataset.agCss=o,c.dataset.agCssVersion=Vn,c.textContent=s;const d={rawCss:e,injectedCss:s,el:c,priority:i,isParams:n};let g;for(const u of l){if(u.priority>i)break;g=u}if(g){g.el.after(c);const u=l.indexOf(g);l.splice(u+1,0,d)}else t.nodeName==="STYLE"?t.after(c):t.insertBefore(c,t.querySelector(":not(title, meta)")),l.push(d)},Tg=(e,t,o,r)=>{go(ty,e,"shared",t,0,o),r?.forEach((i,a)=>i.forEach(n=>go(n,e,a,t,0,o)))},iy=(e,t,o,r,i,a)=>{if(Bn())return;const n=dt.grids.get(e);n?n.paramsCss=t:dt.grids.set(e,{styleContainer:r,paramsCss:t}),Hn(r),t&&o&&go(t,r,o,i,2,a,!0)},ay=e=>{const t=dt.grids.get(e)?.styleContainer;if(!t)return;dt.grids.delete(e),Array.from(dt.grids.values()).some(r=>r.styleContainer===t)?Hn(t):(Hn(t,!0),dt.map.delete(t))},Hn=(e,t=!1)=>{const o=new Set;for(const i of dt.grids.values())i.styleContainer===e&&o.add(i.paramsCss);const r=dt.map.get(e)??[];for(let i=r.length-1;i>=0;i--)(t||r[i].isParams&&!o.has(r[i].rawCss))&&(r[i].el.remove(),r.splice(i,1))},Ag=()=>{const e=globalThis.agStyleInjectionVersions??(globalThis.agStyleInjectionVersions=new Map);let t=e.get(Vn);return t||(t={map:new WeakMap,grids:new Map,paramsId:0},e.set(Vn,t)),t},dt=Ag(),$=e=>new Ig(e),Bt="$default",ny=0,Ig=class{constructor({feature:e,params:t,modeParams:o={},css:r,cssImports:i}){this.feature=e,this.css=r,this.cssImports=i,this.modeParams={[Bt]:{...o[Bt],...t},...o}}use(e,t,o){let r=this._inject;if(r==null){let{css:i}=this;if(i){const a=`ag-theme-${this.feature??"part"}-${++ny}`;typeof i=="function"&&(i=i()),i=`:where(.${a}) {
${i}
}
`;for(const n of this.cssImports??[])i=`@import url(${JSON.stringify(n)});
${i}`;r={css:i,class:a}}else r=!1;this._inject=r}return r&&e&&go(r.css,e,r.class,t,1,o),r?r.class:!1}};function sy(e){return typeof e.then=="function"}function ly(e,t){return new oe(o=>{o(window.setInterval(e,t))})}var oe=class Bi{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(o=>this.onDone(o),o=>this.onReject(o))}static all(t){return t.length?new Bi(o=>{let r=t.length;const i=new Array(r);t.forEach((a,n)=>{a.then(s=>{i[n]=s,r--,r===0&&o(i)})})}):Bi.resolve()}static resolve(t=null){return new Bi(o=>o(t))}then(t){return new Bi(o=>{this.status===1?o(t(this.resolution)):this.waiters.push(r=>o(t(r)))})}onDone(t){this.status=1,this.resolution=t;for(const o of this.waiters)o(t)}onReject(t){}},_e=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=null,this.globalSyncListeners=null,this.globalAsyncListeners=null,this.frameworkOverrides=void 0,this.asyncQueue=null,this.scheduled=!1,this.listenerWrapper=void 0}setFrameworkOverrides(e){this.frameworkOverrides=e}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&!this.allAsyncListeners?.size&&this.globalSyncListeners===null&&this.globalAsyncListeners===null}hasListeners(e){return this.allSyncListeners.has(e)||!!this.allAsyncListeners?.has(e)||this.globalSyncListeners!==null||this.globalAsyncListeners!==null}addEventListener(e,t,o=!1){let r=o?this.allAsyncListeners:this.allSyncListeners;r===null&&(r=new Map,this.allAsyncListeners=r);const i=r.get(e);if(i===void 0)r.set(e,t);else if(typeof i!="function")i.add(t);else if(i!==t){const a=new Set;a.add(i),a.add(t),r.set(e,a)}}removeEventListener(e,t,o=!1){const r=o?this.allAsyncListeners:this.allSyncListeners;if(r===null)return;const i=r.get(e);(i===t||typeof i=="object"&&i.delete(t)&&i.size===0)&&r.delete(e)}addGlobalListener(e,t=!1,o,r){const i={listener:e,eventTypes:o??null,exceptEventTypes:r??null};t?this.globalAsyncListeners=Og(this.globalAsyncListeners,i):this.globalSyncListeners=Og(this.globalSyncListeners,i)}removeGlobalListener(e,t=!1){t?this.globalAsyncListeners=Vg(this.globalAsyncListeners,e):this.globalSyncListeners=Vg(this.globalSyncListeners,e)}dispatchEvent(e){const t=e.type;if("event"in e){const n=e.event;n instanceof Event&&(e.eventPath=n.composedPath())}const o=this.allAsyncListeners?.get(t);if(typeof o=="function")this.queueListener(o,e);else if(o!==void 0)for(const n of o)this.queueListener(n,e);const r=this.globalAsyncListeners;if(r!==null)for(let n=0,s=r.length;n<s;++n){const l=r[n];Lg(l,t)?this.queueListener(l,e):this.scheduleFlush()}const i=this.allSyncListeners.get(t);if(i===void 0&&this.globalSyncListeners===null)return;const a=this.frameworkOverrides;a?a.wrapIncoming(()=>this.callListeners(e,i)):this.callListeners(e,i)}callListeners(e,t){if(typeof t=="function")t(e);else if(t!==void 0){const r=Array.from(t);for(let i=0,a=r.length;i<a;++i){const n=r[i];t.has(n)&&n(e)}}const o=this.globalSyncListeners;if(o!==null){const r=e.type;for(let i=0,a=o.length;i<a;++i){const n=o[i];Lg(n,r)&&n.listener(r,e)}}}queueListener(e,t){const o=this.asyncQueue;o===null?this.asyncQueue=[e,t]:o.push(e,t),this.scheduleFlush()}scheduleFlush(){if(this.scheduled)return;const e=this.flushAsyncQueue.bind(this),t=this.frameworkOverrides;t?t.wrapIncoming(()=>window.setTimeout(e,0)):window.setTimeout(e,0),this.scheduled=!0}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncQueue;if(this.asyncQueue=null,e===null)return;const t=this.frameworkOverrides;t?t.wrapIncoming(()=>zg(e)):zg(e)}};function zg(e){for(let t=0,o=e.length;t<o;t+=2){const r=e[t],i=e[t+1];typeof r=="function"?r(i):r.listener(i.type,i)}}function Lg(e,t){return(e.eventTypes?.has(t)??!0)&&!e.exceptEventTypes?.has(t)}function Og(e,t){return e===null?[t]:[...e,t]}function Vg(e,t){if(e===null)return null;const o=cy(e,t);if(o===-1)return e;if(e.length===1)return null;const r=e.slice();return r.splice(o,1),r}function cy(e,t){const o=e.length;let r=0;for(;r<o&&e[r].listener!==t;)++r;return r===o?-1:r}function pe(e){const t=e?.length;return t?e[t-1]:void 0}function je(e,t,o){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const r=e.length;if(r!==t.length)return!1;if(o){for(let i=0;i<r;++i){const a=e[i],n=t[i];if(a!==n&&!o(a,n))return!1}return!0}for(let i=0;i<r;++i)if(e[i]!==t[i])return!1;return!0}function dy(e,t){if(!t)return[];const o=t.length;if(e&&e!==t&&e.length===o){for(let r=0;r<o;++r)if(e[r]!==t[r])return t.slice();return e}return t.slice()}function No(e,t){const o=e.indexOf(t);o>=0&&e.splice(o,1)}function gy(e,t){const o=e.length,r=t.length;if(!o||!r)return;let i=0;const a=new Set(t);for(let n=0;n<o;++n){const s=e[n];a.has(s)||(n!==i&&(e[i]=s),++i)}i<o&&(e.length=i)}function Nn(e,t,o){const r=t.length;for(let i=0;i<r;++i)No(e,t[i]);for(let i=r-1;i>=0;i--)e.splice(o,0,t[i])}function uy(e,t){if(e===t)return[];const o=e?.length,r=t?.length;if(!o)return t?t.slice():[];if(!r)return e?e.slice():[];const i=new Set(e);for(let a=0;a<r;++a){const n=t[a];i.delete(n)||i.add(n)}return Array.from(i)}function Hi(e,t,o){const r=e.get(t);if(r===void 0){e.set(t,[o]);return}r.push(o)}function hy(e){const t=new Map;if(e)for(let o=0,r=e.length;o<r;++o)t.set(e[o],o);return t}function Ne(e,t,o){o==null||typeof o=="string"&&o==""?Bg(e,t):Ke(e,t,o)}function Ke(e,t,o){e.setAttribute(Hg(t),o.toString())}function Bg(e,t){e.removeAttribute(Hg(t))}function Hg(e){return`aria-${e}`}function xt(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function py(e){return e.getAttribute("aria-label")}function Ht(e,t){Ne(e,"label",t)}function yr(e,t){Ne(e,"labelledby",t)}function Ng(e,t){Ne(e,"live",t)}function fy(e,t){Ne(e,"atomic",t)}function my(e,t){Ne(e,"relevant",t)}function Gn(e,t){Ne(e,"invalid",t)}function vy(e,t){Ne(e,"level",t)}function Gg(e,t){Ne(e,"disabled",t)}function wy(e,t){Ke(e,"readonly",t)}function Wn(e,t){Ne(e,"hidden",t)}function qn(e,t){Ke(e,"expanded",t)}function by(e,t){Ke(e,"setsize",t)}function Cy(e,t){Ke(e,"posinset",t)}function yy(e,t){Ke(e,"multiselectable",t)}function Sy(e,t){Ke(e,"rowcount",t)}function Ni(e,t){Ke(e,"rowindex",t)}function xy(e,t){Ke(e,"rowspan",t)}function ky(e,t){Ke(e,"colcount",t)}function Wg(e,t){Ke(e,"colindex",t)}function qg(e,t){Ne(e,"colspan",t)}function Ey(e,t){Ke(e,"sort",t)}function Ry(e){Bg(e,"sort")}function Ug(e,t){Ne(e,"selected",t)}function Fy(e,t){Ne(e,"controls",t)}function _g(e,t){Ne(e,"owns",t)}function Gi(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var My=Object.prototype.hasOwnProperty;function Un(e,t){return t!=="__proto__"&&My.call(e,t)}function Sr(e,t){return e!=null&&Un(e,t)?e[t]:void 0}var Nt=e=>e==null||e===""?null:e;function L(e){return e!=null&&e!==""}function Me(e){return!L(e)}var jg=e=>e!=null&&typeof e.toString=="function"?e.toString():null,xr=(e,t)=>{const o=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return o===r},Kg=(e,t,o=!1)=>(typeof e=="object"&&e!==null&&typeof e.toNumber=="function"&&(e=e.toNumber()),typeof t=="object"&&t!==null&&typeof t.toNumber=="function"&&(t=t.toNumber()),e==null?t==null?0:-1:t==null?1:!o||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t));function Ye(e){return e.eRootDiv.getRootNode()}function Z(e){let t=Ye(e),o=t.activeElement,r=jn(t);for(;!o&&r;)t=r.getRootNode(),o=t.activeElement,r=jn(t);return o??null}function Wi(e){let t=Z(e),o=t?.shadowRoot?.activeElement;for(;o;)t=o,o=o.shadowRoot?.activeElement;return t}function me(e){const{gos:t,eRootDiv:o}=e;let r=null;const i=t.get("getDocument");return i&&L(i)?r=i():o&&(r=o.ownerDocument),r&&L(r)?r:document}function kr(e,t=Z(e)){let o=e.eRootDiv;for(;t&&o&&!t.contains(o);)o=jn(o.getRootNode());return!t||o!=null}function qi(e){return me(e).defaultView||window}function _n(e){let t=null,o;try{t=me(e).fullscreenElement}catch{}finally{t||(t=Ye(e));const r=t.querySelector("body");r?o=r:t instanceof ShadowRoot?o=t:t instanceof Document?o=t?.documentElement:o=t}return o}function Dy(e){return _n(e)?.clientWidth??(window.innerWidth||-1)}function Py(e){return _n(e)?.clientHeight??(window.innerHeight||-1)}function jn(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:void 0}var Ty="[tabindex], input, select, button, textarea, [href]",Yg="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *, .ag-hidden, .ag-hidden *";function Er(e){return!e||!e.matches("input, select, button, textarea")||e.matches(Yg)?!1:ho(e)}function Q(e,t,o={}){const{skipAriaHidden:r}=o;e.classList.toggle("ag-hidden",!t),r||Wn(e,!t)}function Ay(e,t,o={}){const{skipAriaHidden:r}=o;e.classList.toggle("ag-invisible",!t),r||Wn(e,!t)}function Rr(e,t){const o="disabled",r=t?a=>a.setAttribute(o,""):a=>a.removeAttribute(o);r(e);const i=e.querySelectorAll("input")??[];for(const a of i)r(a)}function uo(e,t,o){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof o=="number"){if(++r>o)break}else if(e===o)break}return!1}var ie=e=>Number.parseFloat(e)||0;function Kn(e,t=window.getComputedStyle(e)){const o=ie(t.height);return t.boxSizing==="border-box"?o-ie(t.paddingTop)-ie(t.paddingBottom)-ie(t.borderTopWidth)-ie(t.borderBottomWidth):o}function Go(e,t=window.getComputedStyle(e)){const o=ie(t.width);return t.boxSizing==="border-box"?o-ie(t.paddingLeft)-ie(t.paddingRight)-ie(t.borderLeftWidth)-ie(t.borderRightWidth):o}function Qg(e){const t=window.getComputedStyle(e);return ie(t.paddingTop)+ie(t.paddingBottom)+ie(t.borderTopWidth)+ie(t.borderBottomWidth)}function Zg(e){const t=window.getComputedStyle(e);return Math.floor(ie(t.height)+ie(t.marginBottom)+ie(t.marginTop))}function Ui(e){const t=window.getComputedStyle(e);return Math.floor(ie(t.width)+ie(t.marginLeft)+ie(t.marginRight))}function Jg(e){const t=e.getBoundingClientRect(),o=window.getComputedStyle(e);return{top:t.top+ie(o.borderTopWidth),left:t.left+ie(o.borderLeftWidth),right:t.right+ie(o.borderRightWidth),bottom:t.bottom+ie(o.borderBottomWidth)}}function et(e,t){let o=e.scrollLeft;return t&&(o=Math.abs(o)),o}function Wo(e,t,o){o&&(t*=-1),e.scrollLeft=t}function Ce(e){for(;e?.firstChild;)e.firstChild.remove()}function Ge(e){e?.parentNode&&e.remove()}function Xg(e){return!!e.offsetParent}function ho(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!Xg(e)||window.getComputedStyle(e).visibility!=="visible")}function Yn(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function $g(e,t,o){o?.nextSibling!==t&&(e.firstChild?o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.prepend(t):e.appendChild(t))}function qo(e,t){for(let o=0;o<t.length;o++){const r=t[o],i=e.children[o];i!==r&&e.insertBefore(r,i)}}function Iy(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function Fr(e,t){if(t)for(const o of Object.keys(t)){const r=t[o];if(!o?.length||r==null)continue;const i=Iy(o),a=r.toString(),n=a.replace(/(?<!\s)\s*!important/g,""),s=n.length!=a.length?"important":void 0;e.style.setProperty(i,n,s)}}function Uo(e){return()=>{const t=e();return t?eu(t)||zy(t):!0}}function eu(e){return e.clientWidth<e.scrollWidth}function zy(e){return e.clientHeight<e.scrollHeight}function _i(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):kt(e,t)}function kt(e,t){t=Qn(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function _o(e,t){t=Qn(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function Qn(e){return typeof e=="number"?`${e}px`:e}function Zn(e){return e instanceof Node||e instanceof HTMLElement}function Ee(e,t,o){o==null||o===""?e.removeAttribute(t):e.setAttribute(t,o.toString())}function Ly(e,t){if(!t.isContentEditable)return;const o=qi(e).getSelection();if(!o)return;const r=me(e).createRange();r.selectNodeContents(t),r.collapse(!1),o.removeAllRanges(),o.addRange(r)}function Et(e,t,o){const i=qi(e).ResizeObserver,a=i?new i(o):null;return a?.observe(t),()=>a?.disconnect()}function Oy(e,t,o,r){const a=qi(e).IntersectionObserver,n=a?new a(s=>{o(pe(s))},r):null;return n?.observe(t),()=>n?.disconnect()}function Gt(e,t){const o=qi(e);o.requestAnimationFrame?o.requestAnimationFrame(t):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(t):o.setTimeout(t,0)}var tu="data-ref",Jn;function ou(){return Jn??(Jn=document.createTextNode(" ")),Jn.cloneNode()}function gt(e){const{attrs:t,children:o,cls:r,ref:i,role:a,tag:n}=e,s=document.createElement(n);if(r&&(s.className=r),i&&s.setAttribute(tu,i),a&&s.setAttribute("role",a),t)for(const l of Object.keys(t))s.setAttribute(l,t[l]);if(o)if(typeof o=="string")s.textContent=o;else{let l=!0;for(const c of o)c&&(typeof c=="string"?(s.appendChild(document.createTextNode(c)),l=!1):typeof c=="function"?s.appendChild(c()):(l&&(s.appendChild(ou()),l=!1),s.append(gt(c)),s.appendChild(ou())))}return s}var Vy=["touchstart","touchend","touchmove","touchcancel","scroll"],By=["wheel"],Xn={},ji=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return o=>{if(typeof Xn[o]=="boolean")return Xn[o];const r=document.createElement(e[o]||"div");return o="on"+o,Xn[o]=o in r}})();function ru(e,t){return!t||!e?!1:iu(t).indexOf(e)>=0}function Hy(e){const t=[];let o=e.target;for(;o;)t.push(o),o=o.parentElement;return t}function iu(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():Hy(t)}function Ny(e,t,o){const r=Gy(t);let i;r!=null&&(i={passive:r}),e.addEventListener(t,o,i)}var Gy=e=>{const t=Vy.includes(e),o=By.includes(e);if(t)return!0;if(o)return!1};function au(e,t,o){if(o===0)return!1;const r=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(r,i)<=o}var jo=(e,t)=>{const o=e.identifier;for(let r=0,i=t.length;r<i;++r){const a=t[r];if(a.identifier===o)return a}return null};function Mr(e,t){return e.gos.isElementInThisInstance(t.target)}function Wy(e,t,o){const i=e.getBoundingClientRect().height,a=Dy(o)-2,n=Py(o)-2;if(!e.offsetParent)return;const l=Jg(e.offsetParent),{clientY:c,clientX:d}=t;let g=c-l.top-i/2,u=d-l.left-10;const h=me(o),p=h.defaultView||window,f=p.pageYOffset||h.documentElement.scrollTop,m=p.pageXOffset||h.documentElement.scrollLeft;a>0&&u+e.clientWidth>a+m&&(u=a+m-e.clientWidth),u<0&&(u=0),n>0&&g+e.clientHeight>n+f&&(g=n+f-e.clientHeight),g<0&&(g=0),e.style.left=`${u}px`,e.style.top=`${g}px`}var po=(e,...t)=>{for(const o of t){const[r,i,a,n]=o;r.addEventListener(i,a,n),e.push(o)}},$n=e=>{if(e){for(const[t,o,r,i]of e)t.removeEventListener(o,r,i);e.length=0}},Wt=e=>{e.cancelable&&e.preventDefault()};function qy(e,t){return t}function fo(e){return e?.getLocaleTextFunc()??qy}function Uy(e,t,o,r){const i=t[o];return e.getLocaleTextFunc()(o,typeof i=="function"?i(r):i,r)}function _y(e){return(t,o,r)=>e({key:t,defaultValue:o,variableValues:r})}function jy(e){return(t,o,r)=>{let i=e?.[t];if(i&&r?.length){let a=0;for(;!(a>=r.length||i.indexOf("${variable}")===-1);)i=i.replace("${variable}",r[a++])}return i??o}}var Ky={type:"destroyed"},Re=class{constructor(){this.beans=null,this.gos=null,this.eventSvc=null,this.destroyed=!1,this.localEventService=null,this.stubContext=null,this.destroyFunctions=null,this.propertyListenerId=0,this.lastChangeSetIdLookup=null}preWireBeans(e){this.beans=e,this.gos=e.gos,this.eventSvc=e.eventSvc,this.stubContext=e.context}destroy(){const e=this.destroyFunctions;if(e){for(let t=0;t<e.length;t++)e[t]();e.length=0}this.destroyed=!0,this.dispatchLocalEvent(Ky)}addEventListener(e,t,o){let r=this.localEventService;r||(r=new _e,this.localEventService=r),r.addEventListener(e,t,o)}removeEventListener(e,t,o){this.localEventService?.removeEventListener(e,t,o)}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 o=[],r=Object.keys(t);for(let i=0,a=r.length;i<a;++i){const n=r[i],s=t[n];s&&o.push(this._setupListener(e,n,s))}return o}_setupListener(e,t,o){if(this.destroyed)return()=>null;let r;if(Yy(e))e.__addEventListener(t,o),r=()=>(e.__removeEventListener(t,o),null);else{const i=Qy(e);e instanceof HTMLElement?Ny(e,t,o):i?e.addListener(t,o):e.addEventListener(t,o),r=i?()=>(e.removeListener(t,o),null):()=>(e.removeEventListener(t,o),null)}return this.registerDestroyFunc(r)}setupPropertyListener(e,t){const{gos:o}=this;o.addPropertyEventListener(e,t);const r=()=>(o.removePropertyEventListener(e,t),null);return this.registerDestroyFunc(r)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const o=e.join("-")+this.propertyListenerId++,r=i=>{const a=i.changeSet;if(a){let s=this.lastChangeSetIdLookup;if(s||(s={},this.lastChangeSetIdLookup=s),a.id===s[o])return;s[o]=a.id}const n={type:"propertyChanged",changeSet:a,source:i.source};t(n)};for(let i=0,a=e.length;i<a;++i)this.setupPropertyListener(e[i],r)}isAlive(){return!this.destroyed}throttleToFrame(e){let t=!1;const o=()=>{this.isAlive()&&(t=!1,e())};return()=>{t||(t=!0,Gt(this.beans,o))}}getLocaleTextFunc(){return fo(this.beans.localeSvc)}pushDestroyFunc(e){const t=this.destroyFunctions;t?t.push(e):this.destroyFunctions=[e]}registerDestroyFunc(e){return this.pushDestroyFunc(e),()=>{e();const t=this.destroyFunctions;return t&&No(t,e),null}}addDestroyFunc(e){this.destroyed?e():this.pushDestroyFunc(e)}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const o=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),o}createBean(e,t,o){return(t||this.stubContext).createBean(e,o)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};Re.prototype.__v_skip=!0;function Yy(e){return e.__addEventListener!==void 0}function Qy(e){return e.eventServiceType==="global"}var k=null;function es(e){return typeof e?.getGui=="function"}var nu=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const r=(e||"").split(" ");if(r.length>1){for(const i of r)this.toggleCss(i,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},Zy=0,Ko=class extends Re{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=Zy++,this.cssManager=new nu(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(o=>[o.selector,o])),e&&this.setTemplate(e)}preConstruct(){this.wireTemplate(this.getGui()),this.addGlobalCss()}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute(tu):null}applyElementsToComponent(e,t,o,r=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const i=this[t];if(i===k)this[t]=r??e;else{const a=o?.[t];if(!this.suppressDataRefValidation&&!a)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${i}`)}}}createChildComponentsFromTags(e,t){const o=[];for(const r of e.childNodes??[])o.push(r);for(const r of o){if(!(r instanceof HTMLElement))continue;const i=this.createComponentFromElement(r,a=>{const n=a.getGui();if(n)for(const s of r.attributes??[])n.setAttribute(s.name,s.value)},t);if(i){if(i.addItems&&r.children.length){this.createChildComponentsFromTags(r,t);const a=Array.prototype.slice.call(r.children);i.addItems(a)}this.swapComponentForNode(i,e,r)}else r.childNodes&&this.createChildComponentsFromTags(r,t)}}createComponentFromElement(e,t,o){const r=e.nodeName,i=this.getDataRefAttribute(e),a=r.indexOf("AG-")===0,n=a?this.componentSelectors.get(r):null;let s=null;if(n){const l=o&&i?o[i]:void 0;s=new n.component(l),s.setParentComponent(this),this.createBean(s,null,t)}else if(a)throw new Error(`selector: ${r}`);return this.applyElementsToComponent(e,i,o,s),s}swapComponentForNode(e,t,o){const r=e.getGui();t.replaceChild(r,o),t.insertBefore(document.createComment(o.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const o=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const r of e)r.setAttribute("tabindex",o.toString())}setTemplate(e,t,o){let r;typeof e=="string"||e==null?r=Yn(e):r=gt(e),this.setTemplateFromElement(r,t,o)}setTemplateFromElement(e,t,o,r=!1){if(this.eGui=e,this.suppressDataRefValidation=r,t)for(let i=0;i<t.length;i++){const a=t[i];this.componentSelectors.set(a.selector,a)}this.wireTemplate(e,o)}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 o=t;return e==null?null:(o||(o=this.eGui),Zn(e)?{element:e,parent:o}:{element:e.getGui(),parent:o})}prependChild(e,t){const{element:o,parent:r}=this.getContainerAndElement(e,t)||{};!o||!r||r.prepend(o)}appendChild(e,t){const{element:o,parent:r}=this.getContainerAndElement(e,t)||{};!o||!r||r.appendChild(o)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:o}=t;Ay(this.eGui,e,{skipAriaHidden:o})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:o}=t;Q(this.eGui,e,{skipAriaHidden:o});const r={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(r)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,o){this.eGui.addEventListener(e,t,o),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===su?(this.css=[e],this.addGlobalCss()):(this.css||(this.css=[]),this.css.push(e))}addGlobalCss(){if(Array.isArray(this.css)){const e="component-"+Object.getPrototypeOf(this)?.constructor?.name;for(const t of this.css??[])this.beans.environment.addGlobalCSS(t,e)}this.css=su}},su=Symbol(),Jy=1,Xy=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=Jy++,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 o=new t;o.beanName?this.beans[o.beanName]=o:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(o)}for(const t of e.derivedBeans??[]){const{beanName:o,bean:r}=t(this);this.beans[o]=r,this.createdBeans.push(r)}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 o=this.beans;for(const r of e)r.preWireBeans?.(o),r.wireBeans?.(o);for(const r of e)r.preConstruct?.();t&&e.forEach(t);for(const r of e)r.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}},Yo=!1,ts=new Set,Ki=(e,t)=>{ts.has(t)||(ts.add(t),e())};Ki._set=ts;var $y={pending:!1,funcs:[]},e1={pending:!1,funcs:[]};function Yi(e,t="setTimeout",o){const r=t==="raf"?e1:$y;if(r.funcs.push(e),r.pending)return;r.pending=!0;const i=()=>{const a=r.funcs.slice();r.funcs.length=0,r.pending=!1;let n,s=!1;for(let l=0,c=a.length;l<c;++l)try{a[l]()}catch(d){s||(s=!0,n=d)}if(s)throw n};t==="raf"?Gt(o,i):window.setTimeout(i,0)}function se(e,t,o){let r;return function(...i){const a=this;return window.clearTimeout(r),r=window.setTimeout(function(){e.isAlive()&&t.apply(a,i)},o),r}}function lu(e,t){let o=0;return function(...r){const i=this,a=Date.now();a-o<t||(o=a,e.apply(i,r))}}var t1=Yo?0:200,o1=Yo?0:50,r1=class extends Re{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.announcementGenerations=new Map,this.lastAnnouncement="",this.updateAnnouncement=se(this,this.updateAnnouncement.bind(this),t1)}setDescriptionContainer(e){this.descriptionContainer=e,Ng(e,"polite"),my(e,"additions text"),fy(e,!0),this.updateAnnouncement()}announceValue(e,t){const o=(this.announcementGenerations.get(t)??0)+1;this.announcementGenerations.set(t,o),this.pendingAnnouncements.set(t,{generation:o,value:e}),this.updateAnnouncement()}cancelAnnouncement(e){this.announcementGenerations.set(e,(this.announcementGenerations.get(e)??0)+1),this.pendingAnnouncements.delete(e)}updateAnnouncement(){if(!this.descriptionContainer||!this.pendingAnnouncements.size)return;const e=Array.from(this.pendingAnnouncements,([t,o])=>({...o,key:t}));this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{const t=e.filter(({generation:o,key:r})=>this.announcementGenerations.get(r)===o);t.length&&this.handleAnnouncementUpdate(t.map(({value:o})=>o).join(". "))},o1)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;if(t==null||t.replace(/[ .]/g,"")==""){this.lastAnnouncement="";return}this.lastAnnouncement===t&&(t=`${t}\u200B`),this.lastAnnouncement=t,this.descriptionContainer.textContent=t}destroy(){super.destroy(),this.descriptionContainer=null,this.pendingAnnouncements.clear(),this.announcementGenerations.clear()}};function i1(e,t){const[o,r]=du();r.appendChild(t);const i=gu(e,r);return[o,i]}function cu(e,t,o){const[r,i]=i1(e,o);return t.appendChild(r),()=>{i(),r.remove()}}function du(){const e={tag:"div",cls:"ag-styled-root"},t=gt({...e,children:[{...e,children:[e]}]});return[t,t.firstElementChild.firstElementChild]}function gu(e,t,o,r,i){const a=t.parentElement,n=a.parentElement,s=()=>{const[l,c,d]=e.getStyledRootClasses(r,i);n.className=["ag-styled-root",l].join(" "),a.className=["ag-styled-root",c].join(" "),t.className=["ag-styled-root",d].join(" "),o?.()};return s(),e.onThemeChanged(s)}var a1=class extends Re{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.dragImageCompPromise=null,this.dragImageComp=null,this.disconnect=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0,this.dropTargets=[],this.externalDropZoneCount=0,this.lastDropTarget=null}addDragSource(e,t=!1){const o={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:r=>this.onDragStart(e,r),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(o),this.beans.dragSvc.addDragSource(o)}setDragImageCompIcon(e,t=!1){const o=this.dragImageComp;o&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,o.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:o}=this;for(let r=0,i=t.length;r<i;r++)if(t[r].dragSource===e){const a=t[r];o.dragSvc?.removeDragSource(a),t.splice(r,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:o}=this,r=o.dragSvc;for(const i of e)r?.removeDragSource(i);e.length=0,t.length=0,this.externalDropZoneCount=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 o=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-o.left,this.dragInitialSourcePointerOffsetY=t.clientY-o.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:o}=this;if(t?.onDragStopped?.(),o){const r=this.dropTargetEvent(o,e,!1);o.onDragStop?.(r)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:o}=this;if(e?.onDragCancelled?.(),t&&o){const r=this.dropTargetEvent(t,o,!1);t.onDragCancel?.(r)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const o=this.findCurrentDropTarget(e),{lastDropTarget:r,dragSource:i,dragItem:a}=this;let n=!1;if(o!==r){if(n=!0,r){const s=this.dropTargetEvent(r,e,t);r.onDragLeave?.(s)}if(r!==null&&!o?this.handleExit(i,a):r===null&&o&&this.handleEnter(i,a),o){const s=this.dropTargetEvent(o,e,t);o.onDragEnter?.(s)}this.lastDropTarget=o}else if(o){const s=this.dropTargetEvent(o,e,t);o.onDragging?.(s),s?.changed&&(n=!0)}this.lastMouseEvent=e,n&&this.updateDragImageComp()}clearDragAndDropProperties(){this.removeDragImageComp(this.dragImageComp),this.dragImageCompPromise=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.getContainer(),o=e.getSecondaryContainers?.(),r=o?.length;if(!r)return[[t]];const i=new Array(r+1);i[0]=[t];for(let a=0;a<r;++a)i[a+1]=o[a];return i}isMouseOnDropTarget(e,t){const o=this.getAllContainersFromDropTarget(t);let r=!1;const i=(s,l)=>{for(const c of l){const{width:d,height:g,left:u,right:h,top:p,bottom:f}=c.getBoundingClientRect();if(d===0||g===0)return!1;const m=s.clientX>=u&&s.clientX<h,w=s.clientY>=p&&s.clientY<f;if(!m||!w)return!1}return!0};for(const s of o)if(i(e,s)){r=!0;break}const{eElement:a,type:n}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(a)?!1:r&&t.isInterestedIn(n,a)}findCurrentDropTarget(e){const t=[],o=this.dropTargets;for(let n=0,s=o.length;n<s;++n){const l=o[n];this.isMouseOnDropTarget(e,l)&&t.push(l)}const r=t.length;if(r===0)return null;if(r===1)return t[0];const a=Ye(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let n=0,s=a.length;n<s;++n){const l=a[n];for(let c=0,d=t.length;c<d;c++){const g=t[c],u=this.getAllContainersFromDropTarget(g);let h=!1;for(let p=0,f=u.length;p<f&&!h;p++){const m=u[p];for(let w=0,v=m.length;w<v;w++)if(m[w]===l){h=!0;break}}if(h)return g}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),o=this.dropTargets;let r=0;for(let i=0,a=o.length;i<a;++i){const n=o[i];if(n.getContainer()===t){n.external&&--this.externalDropZoneCount;continue}r!==i&&(o[r]=n),++r}o.length=r}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let o=0,r=t.length;o<r;++o){const i=t[o];if(i.external&&i.getContainer()===e)return i}return null}dropTargetEvent(e,t,o){const{dragSource:r,dragItem:i,lastDraggingEvent:a,lastMouseEvent:n,dragInitialSourcePointerOffsetX:s,dragInitialSourcePointerOffsetY:l}=this,c=e.getContainer(),d=c.getBoundingClientRect(),{clientX:g,clientY:u}=t,h=g-(n?.clientX||0),p=u-(n?.clientY||0),f=this.createEvent({event:t,x:g-d.left,y:u-d.top,vDirection:p>0?"down":p<0?"up":null,hDirection:h<0?"left":h>0?"right":null,initialSourcePointerOffsetX:s,initialSourcePointerOffsetY:l,dragSource:r,fromNudge:o,dragItem:i,dropZoneTarget:c,dropTarget:a?.dropTarget??null,changed:!!a?.changed});return this.lastDraggingEvent=f,f}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&Wy(t,e,this.beans)}removeDragImageComp(e){this.dragImageComp===e&&(this.dragImageComp=null),e&&(this.disconnect?.(),this.disconnect=null,this.destroyBean(e))}createAndUpdateDragImageComp(e){const t=this.createDragImageComp(e)??null;this.dragImageCompPromise=t,t?.then(o=>{const r=this.lastMouseEvent;if(t!==this.dragImageCompPromise||!r||!this.isAlive()){this.destroyBean(o);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const i=this.dragImageComp;i!==o&&(this.dragImageComp=o,this.removeDragImageComp(i)),o&&(this.appendDragImageComp(o),this.updateDragImageComp(),this.positionDragImageComp(r))})}appendDragImageComp(e){const t=e.getGui(),o=t.style;o.position="absolute",o.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(o.pointerEvents="none"),this.gos.setInstanceDomData(t),o.top="20px",o.left="20px";const r=_n(this.beans);if(!r){this.warnNoBody();return}this.disconnect=cu(this.beans.environment,r,t)}updateDragImageComp(){const{dragImageComp:e,dragSource:t,lastDropTarget:o,lastDraggingEvent:r,dragImageLastLabel:i}=this;if(!e)return;this.setDragImageCompIcon(o?.getIconName?.(r)??null);let a=t?.dragItemName;typeof a=="function"&&(a=a(r)),a||(a=""),i!==a&&(this.dragImageLastLabel=a,e.setLabel(a))}},uu=(e,t)=>{if(t!=null&&e?.setPointerCapture)try{return e.setPointerCapture(t),e.hasPointerCapture(t)}catch{}return!1},n1=(e,t)=>{if(typeof PointerEvent>"u"||!(t instanceof PointerEvent))return null;const o=t.pointerId;if(!uu(e,o))return null;const r={eElement:e,pointerId:o,onLost(i){l1(r,i)}};return e.addEventListener("lostpointercapture",r.onLost),r},s1=e=>{if(!e)return;hu(e);const{eElement:t,pointerId:o}=e;if(t){try{t.releasePointerCapture(o)}catch{}e.eElement=null}},hu=e=>{const{eElement:t,onLost:o}=e;t&&o&&(t.removeEventListener("lostpointercapture",o),e.onLost=null)},l1=(e,t)=>{hu(e);const{eElement:o,pointerId:r}=e;o&&t.pointerId===r&&uu(o,r)},os,rs,is,as,Qi,ns;function qt(){return os===void 0&&(os=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),os}function Dr(){return rs===void 0&&(rs=/(firefox)/i.test(navigator.userAgent)),rs}function pu(){return is===void 0&&(is=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),is}function Ut(){return as===void 0&&(as=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),as}function Zi(e){if(!e)return null;const t=e.tabIndex,o=e.getAttribute("tabIndex");return t===-1&&(o===null||o===""&&!Dr())?null:t.toString()}var fu="--ag-css-engine-probe",mu="137px";function c1(){if(Qi!==void 0)return Qi;const e=typeof document>"u"?null:document.body;if(!e)return null;const t=document.createElement("div");t.style.setProperty(fu,mu);const o=document.createElement("div");return t.appendChild(o),e.appendChild(t),Qi=getComputedStyle(o).getPropertyValue(fu).trim()===mu,t.remove(),Qi}function d1(){if(ns!==void 0)return ns;if(!document.body)return-1;let e=1e6;const t=Dr()?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){const r=e*2;if(o.style.height=r+"px",r>t||o.clientHeight!==r)break;e=r}return o.remove(),ns=e,e}var Qo,Zo,ss={passive:!0},_t={passive:!1},ut=e=>{if(!Zo)Zo=new WeakSet;else if(Zo.has(e))return!1;return Zo.add(e),!0},g1=class extends Re{constructor(){super(...arguments),this.beanName="dragSvc",this.dragging=!1,this.drag=null,this.dragSources=[]}get startTarget(){return this.drag?.startTarget??null}isPointer(){return!!Qo?.has(Ye(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)vu(t);e.length=0,super.destroy()}removeDragSource(e){const t=this.dragSources;for(let o=0,r=t.length;o<r;++o){const i=t[o];if(i.params===e){t.splice(o,1),vu(i);break}}}addDragSource(e){if(!this.isAlive())return;const{eElement:t,includeTouch:o}=e,r=[];let i;if(o){const c=t.style;c&&(i=c.touchAction,c.touchAction="none")}const a={handlers:r,params:e,oldTouchAction:i};this.dragSources.push(a),po(r,[t,"pointerdown",c=>this.onPointerDown(e,c),_t],[t,"mousedown",c=>this.onMouseDown(e,c)]);const l=this.gos.get("suppressTouch");o&&!l&&po(r,[t,"touchstart",d=>this.onTouchStart(e,d),_t])}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(t==="mousemove"||t==="pointermove")&&e.cancelable&&Mr(this.beans,e)&&!Er(cs(e))}initDrag(e,t,...o){this.drag=e;const r=this.beans,i=l=>this.onScroll(l),a=l=>this.onKeyDown(l),n=Ye(r),s=me(r);po(e.handlers,[n,"contextmenu",Wt],[n,"keydown",a],[s,"scroll",i,{capture:!0}],[s.defaultView||window,"scroll",i],...o);for(const l of t){const[c,d,g]=l;po(e.handlers,[n,c,d,g]),n!==s&&po(e.handlers,[s,c,d,g])}n!==s&&po(e.handlers,[n,"scroll",i,{capture:!0}])}destroyDrag(){this.dragging=!1;const e=this.drag;if(e){const t=e.rootEl;Qo?.get(t)===e&&Qo.delete(t),this.drag=null,s1(e.pointerCapture),$n(e.handlers)}}onPointerDown(e,t){if(this.isPointer())return;const o=this.beans;if(Zo?.has(t))return;const r=t.pointerType;if(r!=="mouse"&&r!=="pen"&&(o.gos.get("suppressTouch")||!e.includeTouch||(e.stopPropagationForTouch&&t.stopPropagation(),Er(cs(t))))||!t.isPrimary||r==="mouse"&&t.button!==0)return;this.destroyDrag();const i=Ye(o),a=e.eElement,n=t.pointerId,s=new ls(i,e,t,n);Qo??(Qo=new WeakMap),Qo.set(i,s);const l=u=>{u.pointerId===n&&this.onMouseOrPointerMove(u)},c=u=>{u.pointerId===n&&this.onMouseOrPointerUp(u)},d=u=>{u.pointerId===n&&ut(u)&&this.cancelDrag()},g=u=>this.draggingPreventDefault(u);this.initDrag(s,[["pointerup",c],["pointercancel",d],["pointermove",l,_t]],[i,"touchmove",g,_t],[a,"mousemove",g,_t]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):ut(t)}onTouchStart(e,t){if(this.gos.get("suppressTouch")||!e.includeTouch||!ut(t)||Er(cs(t)))return;if(e.stopPropagationForTouch&&t.stopPropagation(),this.isPointer()){this.dragging&&Wt(t);return}this.destroyDrag();const r=this.beans,i=Ye(r),a=new ls(i,e,t.touches[0]),n=u=>this.onTouchMove(u),s=u=>this.onTouchUp(u),l=u=>this.onTouchCancel(u),c=u=>this.draggingPreventDefault(u),d=Ye(r),g=t.target??e.eElement;this.initDrag(a,[],[g,"touchmove",n,ss],[g,"touchend",s,ss],[g,"touchcancel",l,ss],[d,"touchmove",c,_t],[d,"touchend",s,_t],[d,"touchcancel",l,_t]),e.dragStartPixels===0&&this.onMove(a.start)}draggingPreventDefault(e){this.dragging&&Wt(e)}onMouseDown(e,t){if(t.button!==0||Zo?.has(t)||this.isPointer())return;const o=this.beans;this.destroyDrag();const r=Ye(o),i=new ls(r,e,t),a=s=>this.onMouseOrPointerMove(s),n=s=>this.onMouseOrPointerUp(s);this.initDrag(i,[["mousemove",a],["mouseup",n]]),e.dragStartPixels===0?this.onMouseOrPointerMove(t):ut(t)}onScroll(e){if(!ut(e))return;const t=this.drag,o=t?.lastDrag;o&&this.dragging&&t.params?.onDragging?.(o)}onMouseOrPointerMove(e){ut(e)&&(qt()&&me(this.beans).getSelection()?.removeAllRanges(),this.shouldPreventMouseEvent(e)&&Wt(e),this.onMove(e))}onTouchCancel(e){const t=this.drag;!t||!ut(e)||jo(t.start,e.changedTouches)&&this.cancelDrag()}onTouchMove(e){const t=this.drag;if(!t||!ut(e))return;const o=jo(t.start,e.touches);o&&(this.onMove(o),this.draggingPreventDefault(e))}onMove(e){const t=this.drag;if(!t)return;t.lastDrag=e;const o=t.params;if(!this.dragging){const r=t.start,a=o.dragStartPixels??4;if(au(e,r,a)||(this.dragging=!0,o.capturePointer&&(t.pointerCapture=n1(this.beans.eRootDiv,e)),this.eventSvc.dispatchEvent({type:"dragStarted",target:o.eElement}),o.onDragStart?.(r),this.drag!==t)||(o.onDragging?.(r),this.drag!==t))return}o.onDragging?.(e)}onTouchUp(e){const t=this.drag;t&&ut(e)&&this.onUp(jo(t.start,e.changedTouches))}onMouseOrPointerUp(e){ut(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){e.key===y.ESCAPE&&this.cancelDrag()}},vu=e=>{$n(e.handlers);const t=e.oldTouchAction;if(t!=null){const o=e.params.eElement.style;o&&(o.touchAction=t)}},ls=class{constructor(e,t,o,r=null){this.rootEl=e,this.params=t,this.start=o,this.pointerId=r,this.handlers=[],this.lastDrag=null,this.pointerCapture=null,this.eElement=t.eElement,this.startTarget=o.target}},cs=e=>{const t=e.target;return t instanceof Element?t:null},u1=e=>e.replace(/[A-Z]|\d+/g,t=>`-${t}`).toLowerCase(),ds=e=>`--ag-${u1(e)}`,ht=e=>`var(${ds(e)})`,h1=(e,t,o)=>Math.max(t,Math.min(o,e)),p1=e=>{const t=new Map;return o=>{const r=o;return t.has(r)||t.set(r,e(o)),t.get(r)}},De=e=>({ref:"accentColor",mix:e}),le=e=>({ref:"foregroundColor",mix:e}),ae=e=>({ref:"foregroundColor",mix:e,onto:"backgroundColor"}),f1=e=>({ref:"foregroundColor",mix:e,onto:"headerBackgroundColor"}),re={ref:"backgroundColor"},Pe={ref:"foregroundColor"},ce={ref:"accentColor"},mo={backgroundColor:"#fff",foregroundColor:"#181d1f",borderColor:le(.15),chromeBackgroundColor:ae(.02),browserColorScheme:"light"},gs=()=>["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"],m1={...mo,textColor:Pe,accentColor:"#2196f3",rowHoverColor:De(.08),invalidColor:"#e02525",fontFamily:gs(),subtleTextColor:{ref:"textColor",mix:.5},borderWidth:1,borderRadius:4,spacing:8,fontSize:14,fontWeight:400,focusShadow:{spread:3,color:De(.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:re,dragAndDropImageBorder:!0,dragAndDropImageNotAllowedBorder:{color:{ref:"invalidColor",onto:"dragAndDropImageBackgroundColor",mix:.5}},dragAndDropImageShadow:{ref:"popupShadow"},iconSize:16,iconColor:"inherit",scrollbarThumbColor:"unset",scrollbarTrackColor:"unset",scrollbarWidth:"unset",toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonOnBackgroundColor:ce,toggleButtonOffBackgroundColor:ae(.3),toggleButtonSwitchBackgroundColor:re,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}},panelBackgroundColor:re,panelTitleBarHeight:{ref:"headerHeight"},panelTitleBarBackgroundColor:{ref:"headerBackgroundColor"},panelTitleBarIconColor:{ref:"headerTextColor"},panelTitleBarTextColor:{ref:"headerTextColor"},panelTitleBarFontFamily:{ref:"headerFontFamily"},panelTitleBarFontSize:{ref:"headerFontSize"},panelTitleBarFontWeight:{ref:"headerFontWeight"},panelTitleBarBorder:!0,pickerFieldHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},dialogShadow:{ref:"popupShadow"},dialogBorder:{color:le(.2)},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 1.5"},widgetHorizontalSpacing:{calc:"spacing * 1.5"},widgetVerticalSpacing:{ref:"spacing"},dataFontSize:{ref:"fontSize"},headerBackgroundColor:{ref:"chromeBackgroundColor"},headerFontFamily:{ref:"fontFamily"},headerFontSize:{ref:"fontSize"},headerFontWeight:500,headerTextColor:{ref:"textColor"},headerHeight:{calc:"max(iconSize, headerFontSize) + spacing * 4 * headerVerticalPaddingScale"},headerVerticalPaddingScale:1,menuBorder:{color:le(.2)},menuBackgroundColor:ae(.03),menuTextColor:ae(.95),menuShadow:{ref:"popupShadow"},menuSeparatorColor:{ref:"borderColor"}},v1=["colorScheme","color","length","scale","borderStyle","border","shadow","image","fontFamily","fontWeight","duration","scrollbarWidth"],w1=p1(e=>(e=e.toLowerCase(),v1.find(t=>e.endsWith(t.toLowerCase()))??"length")),Pr=e=>typeof e=="object"&&e?.ref?ht(e.ref):typeof e=="string"?e:typeof e=="number"?String(e):!1,Ji=e=>{if(typeof e=="string")return e;if(typeof e=="object"&&e&&"ref"in e){const t=ht(e.ref);return e.mix==null?t:`color-mix(in srgb, ${e.onto?ht(e.onto):"transparent"}, ${t} ${h1(e.mix*100,0,100)}%)`}return!1},b1=Pr,Jo=e=>typeof e=="string"?e:typeof e=="number"?`${e}px`:typeof e=="object"&&e&&"calc"in e?`calc(${e.calc.replace(/ ?[*/+] ?/g," $& ").replace(/-?\b[a-z][a-z0-9]*\b(?![-(])/gi,o=>o[0]==="-"?o:" "+ht(o)+" ")})`:typeof e=="object"&&e&&"ref"in e?ht(e.ref):!1,C1=Pr,us=(e,t)=>typeof e=="string"?e:e===!0?us({},t):e===!1?t==="columnBorder"?us({color:"transparent"},t):"none":typeof e=="object"&&e&&"ref"in e?ht(e.ref):bu(e.style??"solid")+" "+Jo(e.width??{ref:"borderWidth"})+" "+Ji(e.color??{ref:"borderColor"}),wu=e=>[Jo(e.offsetX??0),Jo(e.offsetY??0),Jo(e.radius??0),Jo(e.spread??0),Ji(e.color??{ref:"foregroundColor"}),...e.inset?["inset"]:[]].join(" "),y1=e=>typeof e=="string"?e:e===!1?"none":typeof e=="object"&&e&&"ref"in e?ht(e.ref):Array.isArray(e)?e.map(wu).join(", "):wu(e),bu=Pr,S1=Pr,hs=e=>typeof e=="string"?e.includes(",")?e:Cu(e):typeof e=="object"&&e&&"googleFont"in e?hs(e.googleFont):typeof e=="object"&&e&&"ref"in e?ht(e.ref):Array.isArray(e)?e.map(t=>(typeof t=="object"&&"googleFont"in t&&(t=t.googleFont),Cu(t))).join(", "):!1,Cu=e=>/^[\w-]+$|\w\(/.test(e)?e:JSON.stringify(e),yu=Pr,ps=e=>typeof e=="string"?e:typeof e=="object"&&e&&"url"in e?`url(${JSON.stringify(e.url)})`:typeof e=="object"&&e&&"svg"in e?ps({url:`data:image/svg+xml,${encodeURIComponent(e.svg)}`}):typeof e=="object"&&e&&"ref"in e?ht(e.ref):!1,x1=(e,t,o)=>typeof e=="string"?e:typeof e=="number"?(e>=10&&o?.warn(104,{value:e,param:t}),`${e}s`):typeof e=="object"&&e&&"ref"in e?ht(e.ref):!1,k1={color:Ji,colorScheme:b1,length:Jo,scale:C1,border:us,borderStyle:bu,shadow:y1,image:ps,fontFamily:hs,fontWeight:yu,duration:x1,scrollbarWidth:S1},E1=(e,t,o)=>{const r=w1(e);return k1[r](t,e,o)},R1=(e,t)=>new Su({themeLogger:e,overridePrefix:t}),Su=class W0{constructor(t,o=[]){this.params=t,this.parts=o}withPart(t){return typeof t=="function"&&(t=t()),t instanceof Ig?new W0(this.params,[...this.parts,t]):(this.params.themeLogger.preInitErr(259,"Invalid part",{part:t}),this)}withoutPart(t){return this.withPart($({feature:t}))}withParams(t,o=Bt){return this.withPart($({modeParams:{[o]:t}}))}_startUse({styleContainer:t,cssLayer:o,nonce:r,loadThemeGoogleFonts:i,moduleCss:a}){if(Bn())return;M1(),Tg(t,o,r,a);const n=F1(this);if(n.length>0)for(const s of n)i&&D1(s,r);for(const s of this.parts)s.use(t,o,r)}_getCssClasses(){return Pg?["","ag-theme-quartz"]:this._cssClassCache??(this._cssClassCache=[this._getParamsClassName(!0),xu(this.parts).map(t=>t.use(void 0,void 0,void 0)).filter(Boolean).concat(this._getParamsClassName()).join(" ")])}_getClassNamesId(){return this._classNamesId??(this._classNamesId=++Ag().paramsId)}_getParamsClassName(t=!1){return`ag-theme-${t?"inherit":"params"}-${this._getClassNamesId()}`}_getModeParams(){let t=this._paramsCache;if(!t){const o={[Bt]:{...m1}};for(const r of xu(this.parts))for(const i of Object.keys(r.modeParams)){const a=r.modeParams[i];if(a){const n=o[i]??(o[i]={}),s=new Set;for(const l of Object.keys(a)){const c=a[l];c!==void 0&&(n[l]=c,s.add(l))}if(i===Bt)for(const l of Object.keys(o)){const c=o[l];if(l!==Bt)for(const d of s)delete c[d]}}}this._paramsCache=t=o}return t}_getParamsCss(){if(!this._paramsCssCache){let t="",o="";const r=this._getModeParams(),{overridePrefix:i,themeLogger:a}=this.params,n=i?`--ag-${i}-`:void 0;for(const l of Object.keys(r)){const c=r[l];if(l!==Bt){const d=typeof CSS=="object"?CSS.escape(l):l,g=`:where(html[data-ag-theme-mode="${d}"],body[data-ag-theme-mode="${d}"],.ag-theme-mode[data-ag-theme-mode="${d}"]) & {
`;t+=g,o+=g}for(const d of Object.keys(c).sort()){const g=c[d],u=E1(d,g,a);if(u===!1)a.error(107,{key:d,value:g});else{const h=ds(d),p=n?h.replace("--ag-",n):h,f=h.replace("--ag-","--ag-inherited-");t+=`	${h}: var(${f}, ${u});
`,o+=`	${f}: var(${p});
`}}l!==Bt&&(t+=`}
`,o+=`}
`)}let s=`:where(.${this._getParamsClassName()}) {
${t}}
`;s+=`:where(.${this._getParamsClassName(!0)}) {
${o}}
`,this._paramsCssCache=s}return this._paramsCssCache}},xu=e=>{const t=new Map;for(const r of e)t.set(r.feature,r);const o=[];for(const r of e)(!r.feature||t.get(r.feature)===r)&&o.push(r);return o},F1=e=>{const t=new Set,o=a=>{if(Array.isArray(a))a.forEach(o);else{const n=a?.googleFont;typeof n=="string"&&t.add(n)}};return Object.values(e._getModeParams()).flatMap(a=>Object.values(a)).forEach(o),Array.from(t).sort()},ku=!1,M1=()=>{if(!ku){ku=!0;for(const e of Array.from(document.head.querySelectorAll('style[data-ag-scope="legacy"]')))e.remove()}},D1=async(e,t)=>{const o=`@import url('https://${P1}/css2?family=${encodeURIComponent(e)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
`;go(o,document.head,`googleFont:${e}`,void 0,0,t)},P1="fonts.googleapis.com",Eu={changeKey:"listItemHeight",type:"length",defaultValue:24},T1=class extends Re{constructor(){super(...arguments),this.beanName="environment",this.sizeEls=new Map,this.lastKnownValues=new Map,this.sizesMeasured=!1,this.globalCSS=[]}wireBeans(e){this.eRootDiv=e.eRootDiv}postConstruct(){const{gos:e,eRootDiv:t}=this;e.setInstanceDomData(t);const o=e.get("themeStyleContainer"),r=typeof ShadowRoot<"u",i=r&&t.getRootNode()instanceof ShadowRoot;this.eStyleContainer=(typeof o=="function"?o():o)??(i?t:document.head),!o&&!i&&r&&A1(t,this.shadowRootError.bind(this),this.addDestroyFunc.bind(this)),this.cssLayer=e.get("themeCssLayer"),this.styleNonce=e.get("styleNonce"),this.addManagedPropertyListener("theme",()=>this.handleThemeChange()),this.handleThemeChange(),this.mutationObserver=new MutationObserver(()=>{this.fireStylesChangedEvent("theme")}),this.addDestroyFunc(()=>this.mutationObserver.disconnect()),this.initStyledRoot(),this.getSizeEl(Eu),this.initVariables(),this.addDestroyFunc(()=>ay(this))}getStyledRootClasses(e,t){const{theme:o}=this,[r,i]=o?o._getCssClasses():["",this.useLegacyThemeClasses(t)],a=this.gos.get("enableRtl")?"ag-rtl":"ag-ltr";return e?["","",a]:[r,i,a]}useLegacyThemeClasses(e){const t=new Set;this.mutationObserver.disconnect();let o=this.eRootDiv.parentElement;for(;o;){if(!o.classList.contains("ag-styled-root")){let r=!1;for(const i of o.classList)i.startsWith("ag-theme-")&&(r=!0,t.add(i));r&&this.mutationObserver.observe(o,{attributes:!0,attributeFilter:["class"]})}o=o.parentElement}return e?"":[...t].join(" ")}onThemeChanged(e){const t=o=>{o.themeChanged&&e()};return this.eventSvc.addListener("stylesChanged",t),()=>this.eventSvc.removeListener("stylesChanged",t)}addGlobalCSS(e,t){this.theme?go(e,this.eStyleContainer,t,this.cssLayer,0,this.styleNonce):this.globalCSS.push([e,t])}getDefaultListItemHeight(){return this.getCSSVariablePixelValue(Eu)}getCSSVariablePixelValue(e){const t=this.lastKnownValues.get(e);if(t!=null)return t;const o=this.measureSizeEl(e);return typeof o!="number"?e.defaultValue:(this.lastKnownValues.set(e,o),o)}measureSizeEl(e){const t=this.getSizeEl(e);if(t.offsetParent==null)return"detached";const o=t.offsetWidth-1;return o===fs?"no-styles":(this.sizesMeasured=!0,o<0?"no-length":o)}getMeasurementContainer(){let e=this.eMeasurementContainer;return e||(e=this.eMeasurementContainer=gt({tag:"div",cls:"ag-measurement-container"}),this.eRootDiv.appendChild(e),this.addDestroyFunc(()=>e?.remove())),e}getSizeEl(e){let t=this.sizeEls.get(e);if(t)return t;const o=this.getMeasurementContainer();t=gt({tag:"div"});const r=this.setSizeElStyles(t,e);o.appendChild(t),this.sizeEls.set(e,t);const{type:i,noWarn:a}=e;if(i!=="length"&&i!=="border")return t;let n=this.measureSizeEl(e);n==="no-styles"&&!a&&this.varError(r,e.defaultValue);const s=Et(this.beans,t,()=>{const l=this.measureSizeEl(e);l==="detached"||l==="no-styles"||(this.lastKnownValues.set(e,l==="no-length"?e.defaultValue:l),l!==n&&(n=l,this.fireStylesChangedEvent(e.changeKey)))});return this.addDestroyFunc(()=>s()),t}setSizeElStyles(e,t){const{changeKey:o,type:r}=t;let i=ds(o);return r==="border"?(i.endsWith("-width")&&(i=i.slice(0,-6)),e.className="ag-measurement-element-border",e.style.paddingLeft="1px",e.style.setProperty("--ag-internal-measurement-border",`var(${i}, solid ${fs}px)`)):e.style.width=`calc(var(${i}, ${fs}px) + 1px)`,i}handleThemeChange(){const{gos:e,theme:t}=this,o=e.get("theme");let r;if(o==="legacy")r=void 0;else{const i=o??this.getDefaultTheme();i instanceof Su?r=i:this.themeError(i)}r!==t&&this.handleNewTheme(r),this.postProcessThemeChange(r,o)}handleNewTheme(e){const{gos:t,globalCSS:o}=this,r=this.getAdditionalCss();if(e){Tg(this.eStyleContainer,this.cssLayer,this.styleNonce,r);for(const[i,a]of o)go(i,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:r}),iy(this,e?._getParamsCss()??null,e?._getParamsClassName()??null,this.eStyleContainer,this.cssLayer,this.styleNonce),this.fireStylesChangedEvent("theme")}fireStylesChangedEvent(e){this.eventSvc.dispatchEvent({type:"stylesChanged",[`${e}Changed`]:!0})}initStyledRoot(){this.addDestroyFunc(gu(this,this.eRootDiv,void 0,this.beans.hasAncestorStyledRoot,!0))}},fs=15538,A1=(e,t,o)=>{let r=60;const i=setInterval(()=>{typeof ShadowRoot<"u"&&e.getRootNode()instanceof ShadowRoot&&(t(),clearInterval(i)),(e.isConnected||--r<0)&&clearInterval(i)},1e3);o(()=>clearInterval(i))},I1=class extends Re{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,...o){if(!this.dynamicBeans)throw this.createDynamicError(e,!0);const r=this.dynamicBeans[e];if(r==null){if(t)throw this.createDynamicError(e,!1);return}return new r(...o)}},z1=class extends Re{constructor(){super(...arguments),this.beanName="eventSvc",this.eventServiceType="global",this.globalSvc=new _e}addListener(e,t,o){this.globalSvc.addEventListener(e,t,o)}removeListener(e,t,o){this.globalSvc.removeEventListener(e,t,o)}addGlobalListener(e,t=!1,o,r){this.globalSvc.addGlobalListener(e,t,o,r)}removeGlobalListener(e,t=!1){this.globalSvc.removeGlobalListener(e,t)}dispatchEvent(e){this.globalSvc.dispatchEvent(this.gos.addCommon(e))}},Ru="ag-focus-managed",ms=!1,Xi=0;function L1(e){Xi>0||(e.addEventListener("keydown",$i),e.addEventListener("mousedown",$i))}function O1(e){Xi>0||(e.removeEventListener("keydown",$i),e.removeEventListener("mousedown",$i))}function $i(e){const t=ms,o=e.type==="keydown";o&&(e.ctrlKey||e.metaKey||e.altKey)||t!==o&&(ms=o)}function V1(e){const t=me(e);return L1(t),Xi++,()=>{Xi--,O1(t)}}function Fu(){return ms}function Qe(e,t,o=!1){const r=Ty;let i=Yg;t&&(i+=", "+t),o&&(i+=', [tabindex="-1"]');const a=Array.prototype.slice.apply(e.querySelectorAll(r)).filter(s=>ho(s)),n=new Set(e.querySelectorAll(i));return n.size?a.filter(s=>!n.has(s)):a}function Tr(e,t,o=e.getRootNode().activeElement){const r=new Map;for(let i=0,a=t.length;i<a;++i){const n=t[i];if(!Mu(n)||!n.checked&&n!==o)continue;const{form:s,name:l}=n;let c=r.get(s);c||(c=new Map,r.set(s,c)),(n===o||!c.has(l))&&c.set(l,n)}return r.size?t.filter(i=>{const a=Mu(i)?r.get(i.form)?.get(i.name):null;return!a||a===i}):t}function Mu(e){return e.tagName==="INPUT"&&e.type==="radio"&&!!e.name}function Ar(e,t=!1,o=!1,r=!1){const i=Tr(e,Qe(e,r?".ag-tab-guard":null,o)),a=t?pe(i):i[0];return a?(a.focus({preventScroll:!0}),!0):!1}function B1(e,t=!1,o=!1){let r=Qe(e);o&&(r=r.filter(l=>!l.classList.contains("ag-tab-guard")||H1(l,e)));const i=r.filter(l=>l.tabIndex>=0),a=i.length?i:r.filter(l=>{const c=l.closest(`.${Ru}`);return c!==null&&e.contains(c)}),n=Tr(e,a),s=t?pe(n):n[0];return s?(W1(s,e),s.focus({preventScroll:!0}),!0):!1}function H1(e,t){const o=e.parentElement;return o!==null&&o!==t&&Qe(o,".ag-tab-guard").length>0}function Xo(e){const{beans:t,rootNode:o,onlyManaged:r,onlyUnmanaged:i,backwards:a}=e,n=Z(t);let s=Qe(o,r?':not([tabindex="-1"])':null);i&&(s=s.filter(d=>d===n||Zi(d)!=="-1")),s=Tr(o,s);const c=(r?s.findIndex(d=>d.contains(n)):s.indexOf(n))+(a?-1:1);return c<0||c>=s.length?null:s[c]}function Du(e,t=5){let o=0;for(;e&&Zi(e)===null&&++o<=t;)e=e.parentElement;return Zi(e)===null?null:e}function N1(e){let t=e;for(;t&&!G1(t);){const i=t.parentElement;t=i?.className.startsWith("ag-")?i:null}if(!t)return;e===Qe(t,null,!0)[0]&&(t.scrollLeft=0);const o=t.getBoundingClientRect(),r=e.getBoundingClientRect();r.left<o.left?t.scrollLeft-=o.left-r.left:r.right>o.right&&(t.scrollLeft+=r.right-o.right)}function G1(e){const t=getComputedStyle(e).overflowX;return t==="auto"||t==="scroll"}function W1(e,t){for(let o=e.parentElement;o;o=o.parentElement){const r=getComputedStyle(o).overflowY;if(r==="auto"||r==="scroll"){const i=o.getBoundingClientRect(),a=e.getBoundingClientRect();a.top<i.top?o.scrollTop-=i.top-a.top:a.bottom>i.bottom&&(o.scrollTop+=a.bottom-i.bottom)}if(o===t)return}}var Pu=class extends Re{constructor(e,t={isStopPropagation:()=>!1,stopPropagation:()=>{}},o={}){super(),this.eFocusable=e,this.stopPropagationCallbacks=t,this.callbacks=o,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:r=>{if(r.defaultPrevented)return;const i=Xo({beans:this.beans,rootNode:this.eFocusable,backwards:r.shiftKey});i&&(i.focus(),r.preventDefault())},...o}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:o}}=this;e.classList.add(Ru),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),o&&this.addManagedElementListeners(e,{focusout:o})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||this.stopPropagationCallbacks.isStopPropagation(t))return;const{callbacks:o}=this;if(o.shouldStopEventPropagation(t)){this.stopPropagationCallbacks.stopPropagation(t);return}t.key===y.TAB?o.onTabKeyDown(t):o.handleKeyDown&&o.handleKeyDown(t)}})}},$o={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},Tu=class extends Re{constructor(e,t){super(),this.stopPropagationCallbacks=t,this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.lastFocusedElementInside=null,this.allowFocus=!1;const{comp:o,eTopGuard:r,eBottomGuard:i,focusTrapActive:a,forceFocusOutWhenTabGuardsAreEmpty:n,isFocusableContainer:s,focusInnerElement:l,onFocusIn:c,onFocusOut:d,onGuardFocusedFromInside:g,shouldStopEventPropagation:u,onTabKeyDown:h,handleKeyDown:p,isEmpty:f,eFocusableElement:m}=e;this.comp=o,this.eTopGuard=r,this.eBottomGuard=i,this.providedFocusInnerElement=l,this.eFocusableElement=m,this.focusTrapActive=a??!1,this.forceFocusOutWhenTabGuardsAreEmpty=!!n,this.isFocusableContainer=!!s,this.providedFocusIn=c,this.providedFocusOut=d,this.providedOnGuardFocusedFromInside=g,this.providedShouldStopEventPropagation=u,this.providedOnTabKeyDown=h,this.providedHandleKeyDown=p,this.providedIsEmpty=f}postConstruct(){this.createManagedBean(new Pu(this.eFocusableElement,this.stopPropagationCallbacks,{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():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.focusTrapActive==="native"?0: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){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&(this.providedIsEmpty?this.providedIsEmpty():Qe(this.eFocusableElement,".ag-tab-guard").length===0)){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget)){const r=e.target===this.eBottomGuard,i=this.providedOnGuardFocusedFromInside?.(r);if(i===!0&&Z(this.beans)===e.target){const a=e.relatedTarget;(a.classList.contains($o.TAB_GUARD)?this.lastFocusedElementInside:a)?.focus()}else i===!1&&this.findNextElementOutsideAndFocus(!r);return}if(this.focusTrapActive==="native"){this.focusNextInTrap(e);return}const t=e.target===this.eBottomGuard;!(this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t))&&this.forceFocusOutWhenTabGuardsAreEmpty&&this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard)}getTabOrderedElements(e,t){return Tr(e,Qe(e).filter(o=>o.tabIndex>=0),t).sort((o,r)=>(o.tabIndex||Number.MAX_SAFE_INTEGER)-(r.tabIndex||Number.MAX_SAFE_INTEGER))}focusNextInTrap(e){const t=this.eFocusableElement,o=e.target===this.eBottomGuard,r=e.relatedTarget,i=this.getTabOrderedElements(t,r).filter(l=>!this.isTabGuard(l)&&(l===r||!l.classList.contains($o.TAB_GUARD)||!l.parentElement?.contains(r))),a=t.contains(r)?!o:o,n=r?i.indexOf(r):-1;let s=a?i.length-1:0;n>=0&&(s=(n+(a?-1:1)+i.length)%i.length),i[s]?.focus({preventScroll:!0})}findNextElementOutsideAndFocus(e,t){const o=this.getTabOrderedElements(me(this.beans).body),r=e?this.eTopGuard:this.eBottomGuard,i=o.indexOf(r);if(i===-1)return!1;const a=e?-1:1;for(let n=i+a;n>=0&&n<o.length;n+=a){const s=o[n];if(!t?.some(l=>l.contains(s)))return s.focus(),!0}return!1}onFocusIn(e){if(this.focusTrapActive||this.forcingFocusOut)return;const t=e.target;t.classList.contains($o.TAB_GUARD)||(this.lastFocusedElementInside=t),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){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive==="native"&&!e.defaultPrevented){this.comp.setTabIndex(Math.max(0,e.target.tabIndex).toString());return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const o=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),o&&(o.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=Tr(this.eFocusableElement,Qe(this.eFocusableElement));return this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(-1,1)),t.length?(t[e?t.length-1:0].focus({preventScroll:!0}),!0):!1}getNextFocusableElement(e){return Xo({beans:this.beans,rootNode:this.eFocusableElement,backwards: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()})}focusNextElementOutsideContainer(e,t){return this.findNextElementOutsideAndFocus(e,t)}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},vs=class extends Re{constructor(e,t){super(),this.comp=e,this.stopPropagationCallbacks=t}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:o,eFocusableElement:r,stopPropagationCallbacks:i}=this,a=[t,o],n={setTabIndex:v=>{for(const C of a)v==null?C.removeAttribute("tabindex"):C.setAttribute("tabindex",v)}};this.addTabGuards(t,o);const{focusTrapActive:s=!1,onFocusIn:l,onFocusOut:c,onGuardFocusedFromInside:d,focusInnerElement:g,handleKeyDown:u,onTabKeyDown:h,shouldStopEventPropagation:p,isEmpty:f,forceFocusOutWhenTabGuardsAreEmpty:m,isFocusableContainer:w}=e;this.tabGuardCtrl=this.createManagedBean(new Tu({comp:n,focusTrapActive:s,eTopGuard:t,eBottomGuard:o,eFocusableElement:r,onFocusIn:l,onFocusOut:c,onGuardFocusedFromInside:d,focusInnerElement:g,handleKeyDown:u,onTabKeyDown:h,shouldStopEventPropagation:p,isEmpty:f,forceFocusOutWhenTabGuardsAreEmpty:m,isFocusableContainer:w},i))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=me(this.beans).createElement("div"),o=e==="top"?$o.TAB_GUARD_TOP:$o.TAB_GUARD_BOTTOM;return t.classList.add($o.TAB_GUARD,o),Wn(t,!0),t}addTabGuards(e,t){const o=this.eFocusableElement;o.prepend(e),o.append(t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];Ce(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}focusNextElementOutsideContainer(e,t){return this.tabGuardCtrl.focusNextElementOutsideContainer(e,t)}appendChild(e,t,o){Zn(t)||(t=t.getGui());const{eBottomGuard:r}=this;r?r.before(t):e(t,o)}destroy(){const{eTopGuard:e,eBottomGuard:t}=this;Ge(e),Ge(t),super.destroy()}},q1=class extends Ko{initialiseTabGuard(e,t){this.tabGuardFeature=this.createManagedBean(new vs(this,t)),this.tabGuardFeature.initialiseTabGuard(e)}forceFocusOutOfContainer(e=!1){this.tabGuardFeature.forceFocusOutOfContainer(e)}focusNextElementOutsideContainer(e,t){return this.tabGuardFeature.focusNextElementOutsideContainer(e,t)}appendChild(e,t){this.tabGuardFeature.appendChild(super.appendChild.bind(this),e,t)}},ws=class extends Ko{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 Au(e,t){return{top:e.top-t.top,left:e.left-t.left,right:e.right-t.left,bottom:e.bottom-t.top}}function Ir(e,t,o,r=0){const[i,a]=o.split("-"),n=Iu(e,a),s=U1(t,i),l=_1(i,a);return{x:n.x-s.x+l.dx*r,y:n.y-s.y+l.dy*r}}function Iu(e,t){const o=(e.left+e.right)/2,r=(e.top+e.bottom)/2;switch(t){case"tl":return{x:e.left,y:e.top};case"tc":return{x:o,y:e.top};case"tr":return{x:e.right,y:e.top};case"l":return{x:e.left,y:r};case"c":return{x:o,y:r};case"r":return{x:e.right,y:r};case"bl":return{x:e.left,y:e.bottom};case"bc":return{x:o,y:e.bottom};case"br":return{x:e.right,y:e.bottom}}}function U1(e,t){return Iu({top:0,left:0,right:e.width,bottom:e.height},t)}function _1(e,t){const o=zu(e),r=zu(t),i=Lu(e),a=Lu(t);return{dx:Math.sign(r-o),dy:Math.sign(a-i)}}function zu(e){const t=e.length===2?e[1]:e;return t==="l"?-1:t==="r"?1:0}function Lu(e){return e.length===1?0:e.startsWith("t")?-1:e.startsWith("b")?1:0}var ea=0,j1=200,K1=class extends Re{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}getPopupParent(){const e=this.gos.get("popupParent");return e||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:o,nudgeY:r,skipObserver:i}=e;this.positionPopup({ePopup:t,nudgeX:o,nudgeY:r,keepWithinBounds:!0,skipObserver:i,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,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:o,nudgeY:r,keepWithinBounds:i,eventSource:a,alignSide:n="left",position:s="over",type:l}=e,c=a.getBoundingClientRect(),d=this.getParentRect();this.setAlignedTo(a,t);const g=()=>{const u=Au(c,d),h={width:t.offsetWidth,height:t.offsetHeight},p=n==="right";if(s==="over")return this.setAlignedStyles(t,"over"),Ir(u,h,p?"tr-tr":"tl-tl");if(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,c,d,e.nudgeY||0)==="under")return Ir(u,h,p?"tr-br":"tl-bl");const m=Ir(u,h,p?"br-tr":"bl-tl");return m.y-=(r||0)*2,m};this.positionPopup({ePopup:t,nudgeX:o,nudgeY:r,keepWithinBounds:i,updatePosition:g,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,l,t,a,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:o,event:r}=e,i=t.getBoundingClientRect(),a=this.getParentRect();this.setAlignedTo(t,o);let n=!1;const s=()=>{const l=Au(i,a),c=this.keepXYWithinBounds(o,l.top,0),d=o.clientWidth>0?o.clientWidth:200;n||(o.style.minWidth=`${d}px`,n=!0);const u=a.right-a.left-d,h={width:d,height:o.offsetHeight},p=Ir(l,h,"tl-tr").x-2,f=Ir(l,h,"tr-tl").x;let m;return this.gos.get("enableRtl")?(m=f,m<0&&(m=p,this.setAlignedStyles(o,"left")),m>u&&(m=0,this.setAlignedStyles(o,"right"))):(m=p,m>u&&(m=f,this.setAlignedStyles(o,"right")),m<0&&(m=0,this.setAlignedStyles(o,"left"))),{x:m,y:c}};this.positionPopup({ePopup:o,keepWithinBounds:!0,updatePosition:s,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",o,t,r instanceof KeyboardEvent?void 0:r)})}shouldRenderUnderOrAbove(e,t,o,r){const i=this.getPopupParent(),{documentElement:a,body:n}=i.ownerDocument,s=i===n,l=s?a.clientHeight:o.bottom,c=s?0:o.top,d=l-t.bottom,g=t.top-c,u=e.offsetHeight+r;return d>u?"under":g>u||g>d?"above":"under"}setAlignedStyles(e,t){const o=this.getPopupIndex(e);if(o===-1)return;const r=this.popupList[o],{alignedToElement:i}=r;if(!i)return;const a=["right","left","over","above","under"];for(const n of a)i.classList.remove(`ag-has-popup-positioned-${n}`),e.classList.remove(`ag-popup-positioned-${n}`);t&&(i.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const o=this.getPopupIndex(t);if(o!==-1){const r=this.popupList[o];r.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:o,nudgeX:r,nudgeY:i,skipObserver:a,updatePosition:n}=e,s={width:0,height:0},l=(c=!1)=>{let{x:d,y:g}=n();c&&t.clientWidth===s.width&&t.clientHeight===s.height||(s.width=t.clientWidth,s.height=t.clientHeight,r&&(d+=r),i&&(g+=i),o&&(d=this.keepXYWithinBounds(t,d,1),g=this.keepXYWithinBounds(t,g,0)),t.style.left=`${d}px`,t.style.top=`${g}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!a){const c=Et(this.beans,t,()=>l(!0));setTimeout(()=>c(),j1)}}getParentRect(){const e=me(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),Jg(t)}keepXYWithinBounds(e,t,o){const r=o===0,i=r?"clientHeight":"clientWidth",a=r?"top":"left",n=r?"height":"width",s=r?"scrollTop":"scrollLeft",l=me(this.beans),c=l.documentElement,d=this.getPopupParent(),g=e.getBoundingClientRect(),u=d.getBoundingClientRect(),h=l.documentElement.getBoundingClientRect(),p=d===l.body,f=Math.ceil(g[n]);let w=p?(r?Zg:Ui)(c)+c[s]:d[i];p&&(w-=Math.abs(h[a]-u[a]));const v=w-f;return Math.min(Math.max(t,0),Math.max(v,0))}addPopup(e){const{eChild:t,ariaLabel:o,ariaOwns:r,alwaysOnTop:i,positionCallback:a,anchorToElement:n}=e,s=this.getPopupIndex(t);if(s!==-1)return{hideFunc:this.popupList[s].hideFunc};this.initialisePopupPosition(t),t.classList.add("ag-popup-child"),t.hasAttribute("role")||xt(t,"dialog"),o?Ht(t,o):r&&(t.id||(t.id=`popup-component-${ea}`),_g(r,t.id));const l=gt({tag:"div",cls:"ag-popup"});l.appendChild(t);const c=cu(this.beans.environment,this.getPopupParent(),l);i?this.setAlwaysOnTop(t,!0):this.bringPopupToFront(t);const d=this.addEventListenersToPopup({...e,wrapperEl:l,disconnect:c});return a&&a(),this.addPopupToPopupList(t,d,n),{hideFunc:d}}initialisePopupPosition(e){const o=this.getPopupParent().getBoundingClientRect();L(e.style.top)||(e.style.top=`${o.top*-1}px`),L(e.style.left)||(e.style.left=`${o.left*-1}px`)}addEventListenersToPopup(e){const t=this.beans,o=me(t),{wrapperEl:r,eChild:i,closedCallback:a,afterGuiAttached:n,closeOnEsc:s,modal:l,ariaOwns:c}=e;let d=!1;const g=f=>{if(!r.contains(Z(t)))return;f.key===y.ESCAPE&&!this.isStopPropagation(f)&&p({keyboardEvent:f})},u=f=>p({mouseEvent:f}),h=f=>p({touchEvent:f}),p=(f={})=>{const m=typeof e.eventSourceToIgnore=="function"?e.eventSourceToIgnore():e.eventSourceToIgnore,{mouseEvent:w,touchEvent:v,keyboardEvent:C,forceHide:b}=f,S=w??v,E=w?.type==="mousedown"&&w.button===0||v?.type==="touchstart";!b&&(this.isEventFromCurrentPopup({mouseEvent:w,touchEvent:v},i)||m&&E&&S&&ru(m,S)||d)||(d=!0,e.disconnect(),o.removeEventListener("keydown",g),o.removeEventListener("mousedown",u),o.removeEventListener("touchstart",h),o.removeEventListener("contextmenu",u),this.eventSvc.removeListener("dragStarted",u),a&&a(w||v||C),this.removePopupFromPopupList(i,c))};return n&&n({hidePopup:p}),window.setTimeout(()=>{s&&o.addEventListener("keydown",g),l&&(o.addEventListener("mousedown",u),this.eventSvc.addListener("dragStarted",u),o.addEventListener("touchstart",h),o.addEventListener("contextmenu",u))},0),p}addPopupToPopupList(e,t,o){this.popupList.push({element:e,hideFunc:t,instanceId:ea,isAnchored:!!o}),o&&this.setPopupPositionRelatedToElement(e,o),ea=ea+1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const o=this.getPopupIndex(e);if(o===-1)return;const r=this.popupList[o];if(r.stopAnchoringPromise&&r.stopAnchoringPromise.then(a=>a?.()),r.stopAnchoringPromise=void 0,r.isAnchored=!1,!t)return;const i=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:r.hideFunc});return r.stopAnchoringPromise=i,r.isAnchored=!0,i}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&_g(t,null),this.popupList=this.popupList.filter(o=>o.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),o=t.getBoundingClientRect(),{element:r,ePopup:i}=e,a=typeof r=="function"?r:()=>r,n=a().getBoundingClientRect(),s=u=>Number.parseInt(u.substring(0,u.length-1),10),l=(u,h)=>{const p=o[u]-n[u],f=s(i.style[u]);return{initialDiff:p,lastDiff:p,initial:f,last:f,direction:h}},c=l("top",0),d=l("left",1),g=this.beans.frameworkOverrides;return new oe(u=>{g.wrapIncoming(()=>{ly(()=>{const h=t.getBoundingClientRect(),p=a().getBoundingClientRect();if(p.top==0&&p.left==0&&p.height==0&&p.width==0){e.hidePopup();return}const m=(w,v)=>{const C=s(i.style[v]);w.last!==C&&(w.initial=C,w.last=C);const b=h[v]-p[v];if(b!=w.lastDiff){const S=this.keepXYWithinBounds(i,w.initial+w.initialDiff-b,w.direction);i.style[v]=`${S}px`,w.last=S}w.lastDiff=b};m(c,"top"),m(d,"left")},200).then(h=>{u(()=>{h!=null&&window.clearInterval(h)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:o,touchEvent:r}=e,i=o||r;if(!i)return!1;const a=this.getPopupIndex(t);if(a===-1)return!1;for(let n=a;n<this.popupList.length;n++){const s=this.popupList[n];if(ru(s.element,i))return!0}return this.isElementWithinCustomPopup(iu(i)[0])}isElementWithinCustomPopup(e){const t=me(this.beans),o=this.beans.eRootDiv,r=Ye(this.beans),i=r instanceof ShadowRoot?r.host:o;let a=e;for(;a&&a!==t.body;){if(a.classList.contains("ag-custom-component-popup")&&!a.contains(o)&&!a.contains(i))return!0;const n=a.parentElement,s=a.parentNode;if(n)a=n;else if(s instanceof ShadowRoot)a=s.host;else return!0}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}getPopupRoot(e){const t=this.getPopupParent();let o=e;for(;o.parentElement&&o.parentElement!==t;)o=o.parentElement;return o}setAlwaysOnTop(e,t){const o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(o))}bringPopupToFront(e){const t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=o.length,i=this.getWrapper(e);if(!i||r<=1||!t.contains(e))return;const a=[],n=[];for(const u of o)u!==i&&(u.classList.contains("ag-always-on-top")?n.push(u):a.push(u));const s=[],l=n.length,g=i.classList.contains("ag-always-on-top")||!l?[...a,...n,i]:[...a,i,...n];for(let u=0;u<=r;u++){const h=g[u];if(o[u]===g[u]||h===i)continue;const p=h.querySelectorAll("div");for(const f of p)f.scrollTop!==0&&s.push([f,f.scrollTop]);u===0?t.prepend(this.getPopupRoot(h)):this.getPopupRoot(g[u-1]).after(this.getPopupRoot(h))}for(;s.length;){const u=s.pop();u[0].scrollTop=u[1]}}},Ou="ag-resizer-wrapper",jt=(e,t)=>({tag:"div",ref:`${e}Resizer`,cls:`ag-resizer ag-resizer-${t}`}),Y1={tag:"div",cls:Ou,children:[jt("eTopLeft","topLeft"),jt("eTop","top"),jt("eTopRight","topRight"),jt("eRight","right"),jt("eBottomRight","bottomRight"),jt("eBottom","bottom"),jt("eBottomLeft","bottomLeft"),jt("eLeft","left")]},Q1=class extends Re{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={popup:!1,...t}}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(e){const{clientHeight:t,clientWidth:o}=this.offsetParent,r=o/2-this.getWidth()/2,i=t/2-this.getHeight()/2;this.offsetElement(r,i,e)}initialisePosition(e){if(this.positioned)return;const{centered:t,forcePopupParentAsOffsetParent:o,minWidth:r,width:i,minHeight:a,height:n,x:s,y:l}=this.config;this.offsetParent||this.setOffsetParent();let c=0,d=0;const g=ho(this.element);if(g){const u=this.findBoundaryElement(),h=window.getComputedStyle(u);if(h.minWidth!=null){const p=u.offsetWidth-this.element.offsetWidth;d=Number.parseInt(h.minWidth,10)-p}if(h.minHeight!=null){const p=u.offsetHeight-this.element.offsetHeight;c=Number.parseInt(h.minHeight,10)-p}}if(this.minHeight=a||c,this.minWidth=r||d,i&&this.setWidth(i),n&&this.setHeight(n),(!i||!n)&&this.refreshSize(),t)this.center(e);else if(s||l)this.offsetElement(s,l,e);else if(g&&o){let u=this.boundaryEl,h=!0;if(u||(u=this.findBoundaryElement(),h=!1),u){const p=Number.parseFloat(u.style.top),f=Number.parseFloat(u.style.left);h?this.offsetElement(Number.isNaN(f)?0:f,Number.isNaN(p)?0:p,e):this.setPosition(f,p)}}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 o=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragSvc?.addDragSource(o),this.moveElementDragListener=o):(this.dragSvc?.removeDragSource(o),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}for(const t of Object.keys(e)){const o=!!e[t],r=this.getResizerElement(t),i={dragStartPixels:0,eElement:r,onDragStart:a=>this.onResizeStart(a,t),onDragging:this.onResize.bind(this),onDragStop:a=>this.onResizeEnd(a,t)};(o||!this.isAlive()&&!o)&&(o?(this.dragSvc?.addDragSource(i),this.resizeListeners.push(i),r.style.pointerEvents="all"):r.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;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,o=this.element;let r=!1;if(typeof e=="string"&&e.includes("%"))_o(o,e),e=Zg(o),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const i=this.getAvailableHeight();i&&e>i&&(e=i)}o.style.height!==""&&this.getHeight()===e||(r?(o.style.maxHeight="unset",o.style.minHeight="unset"):t?_o(o,e):(o.style.height=`${e}px`,o.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:Number.parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:o}=this.offsetParent;if(!o)return null;const r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),a=e?this.position.y:r.top,n=e?0:i.top;let s=0;if(t){const c=this.element.parentElement;if(c){const{bottom:d}=c.getBoundingClientRect();s=d-r.bottom}}return o+n-a-s}getXPosition(){return this.config.popup?this.position.x:this.element.getBoundingClientRect().left-this.offsetParent.getBoundingClientRect().left}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element;let o=!1;if(typeof e=="string"&&e.includes("%"))kt(t,e),e=Ui(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:r}=this.offsetParent,i=this.getXPosition();r&&e+i>r&&(e=r-i)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?kt(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:Number.parseFloat(e)))}offsetElement(e=0,t=0,o){const{forcePopupParentAsOffsetParent:r}=this.config,i=r?this.boundaryEl:this.element;i&&(this.popupSvc?.positionPopup({ePopup:i,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t}),postProcessCallback:o}),this.setPosition(Number.parseFloat(i.style.left),Number.parseFloat(i.style.top)))}constrainSizeToAvailableHeight(e){if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const o=this.getAvailableHeight();this.element.style.setProperty("max-height",`${o}px`)};e&&this.popupSvc?(this.resizeObserverSubscriber?.(),this.resizeObserverSubscriber=Et(this.beans,this.popupSvc?.getPopupParent(),t)):(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:o,isTop:r,anywhereWithin:i,topBuffer:a}=e,n=t.clientX-this.dragStartPosition.x,s=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!o,!!i,n)?0:n,c=this.shouldSkipY(t,!!r,a,s)?0:s;return{movementX:l,movementY:c}}shouldSkipX(e,t,o,r){const i=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),n=this.getXPosition();let s=n<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=a.right;return s?!0:(t?s=r<0&&e.clientX>n+i.left||r>0&&e.clientX<n+i.left:o?s=r<0&&e.clientX>a.right||r>0&&e.clientX<n+i.left:s=r<0&&e.clientX>a.right||r>0&&e.clientX<a.right,s)}shouldSkipY(e,t,o=0,r){const i=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect(),n=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.y:i.top;let l=s<=0&&a.top>=e.clientY||a.bottom<=e.clientY&&a.bottom<=n.bottom;return l?!0:(t?l=r<0&&e.clientY>s+a.top+o||r>0&&e.clientY<s+a.top:l=r<0&&e.clientY>n.bottom||r>0&&e.clientY<n.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(gt(Y1)),this.createResizeMap(),this.resizersAdded=!0)}removeResizers(){this.resizerMap=void 0,this.element.querySelector(`.${Ou}`)?.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:o,forcePopupParentAsOffsetParent:r}=this.config;!o&&!r&&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(o=>!o.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,o=0;for(const r of e){const i=!!r.style.flex&&r.style.flex!=="0 0 auto";if(r===this.element)continue;let a=this.minHeight||0,n=this.minWidth||0;if(i){const s=window.getComputedStyle(r);s.minHeight&&(a=Number.parseInt(s.minHeight,10)),s.minWidth&&(n=Number.parseInt(s.minWidth,10))}else a=r.offsetHeight,n=r.offsetWidth;t+=a,o+=n}return{height:t,width:o}}applySizeToSiblings(e){let t=null;const o=this.getSiblings();if(o){for(let r=0;r<o.length;r++){const i=o[r];i!==t&&(e?i.style.height=`${i.offsetHeight}px`:i.style.width=`${i.offsetWidth}px`,i.style.flex="0 0 auto",i===this.element&&(t=o[r+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(Boolean)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:o}=this.config,{isTop:r,isRight:i,isBottom:a,isLeft:n}=this.currentResizer,s=i||n,l=a||r,{movementX:c,movementY:d}=this.calculateMouseMovement({e,isLeft:n,isTop:r}),g=this.position.x,u=this.position.y;let h=0,p=0;if(s&&c){const f=n?-1:1,m=this.getWidth(),w=m+c*f;let v=!1;n&&(h=m-w,(g+h<=0||w<=this.minWidth)&&(v=!0,h=0)),v||this.setWidth(w)}if(l&&d){const f=r?-1:1,m=this.getHeight(),w=m+d*f;let v=!1;r?(p=m-w,(u+p<=0||w<=this.minHeight)&&(v=!0,p=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&m<w&&this.getMinSizeOfSiblings().height+w>this.element.parentElement.offsetHeight&&(v=!0),v||this.setHeight(w)}this.updateDragStartPosition(e.clientX,e.clientY),((t||o)&&h||p)&&this.offsetElement(g+h,u+p)}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:o}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:i,movementY:a}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+i,o+a),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")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()}},Z1=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=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),this.getTopOffset=e.getTopOffset||(()=>0),this.getBottomOffset=e.getBottomOffset||(()=>0)}get scrolling(){return this.tickingInterval!==null}check(e,t=!1){const o=!this.scrollVertically||t||this.shouldSkipVerticalScroll(),r=!this.scrollHorizontally||this.shouldSkipHorizontalScroll();if(o&&r)return;const i=this.scrollContainer.getBoundingClientRect(),a=this.scrollByTick,n=this.getTopOffset(),s=this.getBottomOffset();this.tickLeft=!r&&e.clientX<i.left+a,this.tickRight=!r&&e.clientX>i.right-a,this.tickUp=!o&&e.clientY<i.top+n+a,this.tickDown=!o&&e.clientY>i.bottom-s-a,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(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)}},Vu=class extends Re{constructor(e,t){super(),this.ctrl=e,this.getLatestTooltip=()=>(this.updateTooltipText(),this.tooltip),t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const o="title",r=this.ctrl.getGui();r&&(e!=null&&(e!=""||t)?r.setAttribute(o,e):r.removeAttribute(o))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(this.tooltipManager==null){const e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,this.getLatestTooltip);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");const t=this.tooltipManager;t?.isShowing()&&t.hideTooltip(!0),this.browserTooltips?(this.updateTooltipText(),this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.setBrowserTooltip(null),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},J1=1e3,X1=1e3,Bu=100,Hu=new WeakMap,$1=0,eS=class extends Re{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,this.showEventDispatched=!1}wireBeans(e){this.popupSvc=e.popupSvc}getPopupPositionParams(){}postConstruct(){let e=Hu.get(this.gos);e||(e={},Hu.set(this.gos,e)),this.sharedState=e,this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const t=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(t,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(t,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.interactionEnabled&&this.tooltipTrigger!==1&&this.addManagedListeners(t,{focusout:this.onFocusOut.bind(this)}),this.interactionEnabled&&this.addManagedListeners(t,{keydown:this.onInteractiveSourceKeyDown.bind(this)}),this.addManagedListeners(t,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(t,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getTooltipDelay(e){const t=this.tooltipCtrl[`getTooltip${e}DelayOverride`]?.()??this.gos.get(`tooltip${e}Delay`);return Math.max(0,t)}destroy(){this.hideTooltip(!0),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}isShowing(){return this.state===2}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout());const t=e.sourceCapabilities?.firesTouchEvents;Ut()||t||(this.isLocked()?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},Bu):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled&&this.state===2?this.lockService():this.setToDoNothing()}onFocusIn(){this.tooltipCtrl.shouldDisplayTooltipOnFocus?.()!==!1&&this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,o=this.tooltipCtrl.getGui(),r=this.tooltipComp?.getGui();this.isInteractingWithTooltip||o.contains(t)||this.interactionEnabled&&r?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e,t){if(this.state!=0||this.isLocked())return;let o=t==null?0:Math.max(0,t);e&&t==null&&(o=this.isLastTooltipHiddenRecently()?this.getTooltipDelay("SwitchShow"):this.getTooltipDelay("Show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),o),this.state=1}canShowTooltip(){const e=this.getTooltipValue();return L(e)&&(!this.tooltipCtrl.shouldDisplayTooltip||this.tooltipCtrl.shouldDisplayTooltip())}isLastTooltipHiddenRecently(){const e=Date.now(),t=this.sharedState.lastHideTime;return t!=null&&e-t<J1}setToDoNothing(e){!e&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.onDocumentTouchStartCallback&&(this.onDocumentTouchStartCallback(),this.onDocumentTouchStartCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!L(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const o=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const r=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(o,r)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),this.sharedState.lastHideTime=Date.now()),this.showEventDispatched&&(this.showEventDispatched=!1,this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()})),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive"),r.hasAttribute("role")||xt(r,this.interactionEnabled?"dialog":"tooltip"),this.connectAriaDescription(r);const i=this.getLocaleTextFunc(),a=this.popupSvc?.addPopup({eChild:r,...this.interactionEnabled?{ariaLabel:i("ariaLabelTooltip","Tooltip")}:{ariaOwns:this.tooltipCtrl.getGui()}});if(a&&(this.tooltipPopupDestroyFunc=a.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const n=()=>this.hideTooltip(!0);[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:n}),this.setEventHandlers(n)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(me(this.beans),{keydown:n=>{n&&this.onDocumentKeyDown(n,r)}}),[this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)})),[this.onDocumentTouchStartCallback]=this.addManagedElementListeners(me(this.beans),{touchstart:n=>{n&&!r.contains(n.target)&&this.hideTooltip(!0)}}),this.showEventDispatched=!0,this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:r,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}connectAriaDescription(e){e.id||(e.id=`ag-tooltip-${++$1}`);const t=e.id,o=this.tooltipCtrl.getGui(),r=o.getAttribute("aria-describedby")?.split(/\s+/).filter(Boolean)??[];r.includes(t)||o.setAttribute("aria-describedby",[...r,t].join(" ")),this.describedById=t,this.describedBySource=o}disconnectAriaDescription(){const e=this.describedById,t=this.describedBySource;if(!e||!t)return;this.describedById=void 0,this.describedBySource=void 0;const o=t.getAttribute("aria-describedby")?.split(/\s+/).filter(r=>r&&r!==e);o?.length?t.setAttribute("aria-describedby",o.join(" ")):t.removeAttribute("aria-describedby")}onDocumentKeyDown(e,t){const o=this.tooltipCtrl.getGui();if(e.key==="Escape"){const r=e.target,i=t.contains(r);(i||o.contains(r))&&(e.preventDefault(),e.stopPropagation()),i&&o.isConnected&&o.focus({preventScroll:!0}),this.hideTooltip(!0);return}if(e.key==="Tab"&&o.contains(e.target)){const r=Qe(t),i=e.shiftKey?r.at(-1):r[0];if(i){e.preventDefault(),this.isInteractingWithTooltip=!0,i.focus();return}}t.contains(e.target)||this.onKeyDown()}onInteractiveSourceKeyDown(e){if(this.state!==2||!this.tooltipComp)return;if(e.key==="Escape"){e.preventDefault(),e.stopPropagation(),this.hideTooltip(!0);return}if(e.key!=="Tab")return;const t=Qe(this.tooltipComp.getGui()),o=e.shiftKey?t.at(-1):t[0];o&&(e.preventDefault(),e.stopPropagation(),this.isInteractingWithTooltip=!0,o.focus())}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=Z(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui(),o=this.tooltipComp?.getGui(),r=e.relatedTarget;this.isTooltipFocused()||o?.contains(r)||(this.isInteractingWithTooltip=!1,t.contains(r)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack,additionalParams:this.getPopupPositionParams()};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.disconnectAriaDescription();const e=this.tooltipComp.getGui();e.classList.remove("ag-tooltip-interactive"),e.classList.add("ag-tooltip-hiding");const t=this.tooltipPopupDestroyFunc,o=this.tooltipComp,r=this.tooltipTrigger===0?X1:0;window.setTimeout(()=>{t?.(),this.destroyBean(o)},r),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(){this.sharedState.lockOwner=this,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},Bu)}unlockService(){this.sharedState.lockOwner===this&&(this.sharedState.lockOwner=void 0),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,this.sharedState.lockOwner===this&&(this.sharedState.lockOwner=void 0))}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}isLocked(){return this.sharedState.lockOwner!=null}},tS=class extends Vu{constructor(e,t,o){super(e,o),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){this.tooltipMode===1&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode=e==="focus"?1:0}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},oS=/[&<>"']/g,rS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function vo(e){return e?.toString().toString()??null}function er(e){return vo(e)?.replace(oS,t=>rS[t])??null}function bs(e,t,o){return typeof e!="string"?!1:(o&&(e=e.trim()),typeof e=="string"&&e.length>t)}function iS(e){return bs(e,1)&&e.codePointAt(0)===61}function Cs(e){if(!e||e==null)return null;const t=/([a-z])([A-Z])/g,o=/(?<![A-Z])([A-Z]+)([A-Z])([a-z])/g;return e.replace(t,"$1 $2").replace(o,"$1 $2$3").replace(/\./g," ").split(" ").map(i=>i.substring(0,1).toUpperCase()+(i.length>1?i.substring(1,i.length):"")).join(" ")}var aS=class extends ws{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,o=this.getGui();o.textContent=vo(t);const r=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();o.classList.add(`ag-${r}-tooltip`)}},Oe=e=>{if(typeof e=="bigint")return e;let t;if(typeof e=="number")t=e;else if(typeof e=="string"&&(t=e.trim(),t===""||(t.endsWith("n")&&(t=t.slice(0,-1)),!/^[+-]?\d+$/.test(t))))return null;if(t==null)return null;try{return BigInt(t)}catch{return null}},ys="T",nS=new RegExp(`[${ys} ]`),sS=new RegExp(String.raw`^\d{4}-\d{2}-\d{2}([${ys} ]\d{2}:\d{2}(:\d{2})?(\.\d+)?(Z|[+-]\d{2}(:?\d{2})?)?)?$`);function Ze(e,t){return e.toString().padStart(t,"0")}function Te(e,t=!0,o=ys){if(!e)return null;let r=[Ze(e.getFullYear(),4),Ze(e.getMonth()+1,2),Ze(e.getDate(),2)].join("-");return t&&(r+=o+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>Ze(i,2)).join(":")),r}function Ss(e,t=!0){return e?t?[String(e.getFullYear()),String(e.getMonth()+1),Ze(e.getDate(),2),Ze(e.getHours(),2),`:${Ze(e.getMinutes(),2)}`,`:${Ze(e.getSeconds(),2)}`]:[e.getFullYear(),e.getMonth()+1,Ze(e.getDate(),2)].map(String):null}var xs=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"},Nu=["January","February","March","April","May","June","July","August","September","October","November","December"],ks=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function lS(e,t){if(t==null)return Te(e,!1);const o=Ze(e.getFullYear(),4),r={YYYY:()=>o.slice(o.length-4,o.length),YY:()=>o.slice(o.length-2,o.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>Nu[e.getMonth()],MMM:()=>Nu[e.getMonth()].slice(0,3),MM:()=>Ze(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${xs(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${xs(e.getDate())}`,DD:()=>Ze(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>ks[e.getDay()],ddd:()=>ks[e.getDay()].slice(0,3),dd:()=>ks[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${xs(e.getDay())}`,d:()=>`${e.getDay()}`},i=new RegExp(Object.keys(r).join("|"),"g");return t.replace(i,a=>a in r?r[a]():a)}function ta(e,t=!1){return!!he(e,t)}function cS(e){return ta(e,!0)}function he(e,t=!1,o){if(!e||!o&&!sS.test(e))return null;const[r,i]=e.split(nS);if(!r)return null;const a=r.split("-").map(h=>Number.parseInt(h,10));if(a.filter(h=>!Number.isNaN(h)).length!==3)return null;const[n,s,l]=a,c=new Date(n,s-1,l);if(n>=0&&n<100&&c.setFullYear(n,s-1,l),c.getFullYear()!==n||c.getMonth()!==s-1||c.getDate()!==l||!i&&t)return null;if(!i||i==="00:00:00")return c;const[d,g,u]=i.split(":").map(h=>Number.parseInt(h,10));if(d>=0&&d<24)c.setHours(d);else if(t)return null;if(g>=0&&g<60)c.setMinutes(g);else if(t)return null;if(u>=0&&u<60)c.setSeconds(u);else if(t)return null;return c}function dS(e,t){const o=document.defaultView??window;if(!o)return;const r=document.createElement("a"),i=o.URL.createObjectURL(t);r.setAttribute("href",i),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),r.remove(),o.setTimeout(()=>{o.URL.revokeObjectURL(i)},0)}function Es(e){const{inputValue:t,allSuggestions:o,hideIrrelevant:r,maxSuggestions:i}=e;let a=(o??[]).map((l,c)=>({value:l,relevance:gS(t,l),idx:c}));a.sort((l,c)=>l.relevance-c.relevance),r&&(a=a.filter(l=>l.relevance<Math.max(l.value.length,t.length))),i!=null&&i>0&&(a=a.slice(0,i));const n=[],s=[];for(const l of a)n.push(l.value),s.push(l.idx);return{values:n,indices:s}}function gS(e,t){const o=e.length,r=t.length;if(r===0)return o||0;let i=e.toLocaleLowerCase(),a=t.toLocaleLowerCase(),n;if(o>0){const g=a.indexOf(i);if(g>=0)return g*.01}e.length<t.length&&(n=a,a=i,i=n,n=t,t=e,e=n);let s=new Uint16Array(r+1),l=new Uint16Array(r+1);for(let g=0;g<=r;g++)s[g]=g;let c=0;const d=o/2-10;for(let g=1;g<=o;g++){const u=e[g-1],h=i[g-1];l[0]=g;for(let p=1;p<=r;p++){const f=t[p-1],m=a[p-1];if(h!==m){const w=l[p-1],v=s[p],C=s[p-1];let b=w<v?w:v;C<b&&(b=C),l[p]=b+1|0;continue}if(c++,u===f&&c++,g>1&&p>1){const w=e[g-2],v=i[g-2],C=t[p-2],b=a[p-2];v===b&&(c++,w===C&&c++)}g<d&&c++,l[p]=s[p-1]}n=s,s=l,l=n}return s[r]/(c+1)}function uS(e){return e.altKey||e.ctrlKey||e.metaKey?!1:e.key?.length===1}function hS(e,t){const o=t.split(".");let r=e;for(let i=0;i<o.length;i++){if(r==null)return;r=r[o[i]]}return r}var Gu={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},oa=e=>e==="__proto__"||e==="constructor"||e==="prototype",zr=e=>{const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},ra=e=>e!==null&&typeof e=="object"&&zr(e),Wu=(e,t,o,r,i)=>{let a=e[t];if(a!==o){if(o===null||typeof o!="object"){(r||o!==void 0)&&(e[t]=o);return}i&&a==null&&zr(o)&&(a={},e[t]=a),a!==null&&typeof a=="object"&&!Array.isArray(a)?Ae(a,o,r,i):e[t]=o}},Ae=(e,t,o=!0,r=!1)=>{if(!(t==null||t==="")){if(Array.isArray(t)){for(let i=0,a=t.length;i<a;++i)Wu(e,i,t[i],o,r);return}for(const i of Object.keys(t))oa(i)||Wu(e,i,t[i],o,r)}},ia=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e)){const o=e.length,r=new Array(o);for(let i=0;i<o;++i)r[i]=ia(e[i]);return r}if(!zr(e))return e;const t={};for(const o of Object.keys(e))oa(o)||(t[o]=ia(e[o]));return t},wo=(e,t,o)=>{if(e===t)return!0;if(e===null||t===null||typeof e!="object"||typeof t!="object")return!1;const r=Array.isArray(e);if(r!==Array.isArray(t))return!1;if(r)return je(e,t);if(!zr(e)||!zr(t))return!1;const i=Object.keys(e),a=Object.keys(t),n=i.length,s=a.length;if(o===void 0){if(n!==s)return!1;for(let d=0;d<n;++d){const g=i[d];if(!(g in t)||!wo(e[g],t[g]))return!1}return!0}let l=0;for(let d=0;d<n;++d){const g=i[d];if(l===0&&g===o){l=1;continue}if(!(g in t)||!wo(e[g],t[g]))return!1}const c=o in t?1:0;return n-l===s-c},Rs=class Vt{static applyGlobalGridOptions(t){if(!Vt.gridOptions)return{...t};let o={};return Ae(o,Vt.gridOptions,!0,!0),Vt.mergeStrategy==="deep"?Ae(o,t,!0,!0):o={...o,...t},Vt.gridOptions.context&&(o.context=Vt.gridOptions.context),t.context&&(Vt.mergeStrategy==="deep"&&o.context&&Ae(t.context,o.context,!0,!0),o.context=t.context),o}static applyGlobalGridOption(t,o){if(Vt.mergeStrategy==="deep"){const r=Fs(t);if(r&&typeof r=="object"&&typeof o=="object")return Vt.applyGlobalGridOptions({[t]:o})[t]}return o}};Rs.gridOptions=void 0,Rs.mergeStrategy="shallow";var Lr=Rs;function pS(e,t="shallow"){Lr.gridOptions=e,Lr.mergeStrategy=t}function Fs(e){return Lr.gridOptions?.[e]}var qu={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:"hover",tooltipShowDelay:2e3,tooltipSwitchShowDelay:200,tooltipHideDelay:1e4,noteTrigger:"hover",noteShowDelay:180,noteHideDelay:220,tooltipMouseTrack:!1,tooltipShowMode:"standard",tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:"	",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,loadingRows:!1,suppressPdfExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,includeHiddenColumnsInCharts:!0,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,suppressInputClearButton:!1,enableInputAutoComplete:!1,rowBuffer:10,stickyRowsMaxViewportRatio:.5,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,alwaysShowGrandTotalRow:!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,refreshAfterGroupEdit:!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,groupHideColumnsUntilExpanded:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:"never",suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,pivotPanelSuppressSort:!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,suppressContentVisibilityAuto:!0,contentVisibilityAutoDelay:1e3,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:"new",reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,enableFilterHandlers:!1};function aa(e){return typeof e=="number"&&Number.isFinite(e)}function Uu(e){const t=Number(e);return Number.isFinite(t)?t:null}function bo(e,t,o){return Math.max(t,Math.min(e,o))}function _u(e,t){if(typeof e!="number")return"";const o=t(),r=o("thousandSeparator",","),i=o("decimalSeparator","."),[a,n]=e.toString().split("."),s=a.replace(/(\d)(?=(\d{3})+(?!\d))/g,l=>l+r);return n===void 0?s:`${s}${i}${n}`}function ju(e,t){return e.get("rowModelType")===t}function ve(e,t){return ju(e,"clientSide")}function Ms(e){return ve(e)&&e.get("loading")===!0&&!!e.get("loadingRows")}function Rt(e,t){return!!t.stub&&ve(e)}function fS(e){const t=e.get("loadingRows");return!t||typeof t!="object"||t.rowCount==null?10:Number.isInteger(t.rowCount)&&t.rowCount>0?t.rowCount:10}function Kt(e,t){return ju(e,"serverSide")}function ke(e,t){return e.get("domLayout")===t}function na(e){const{gos:t,environment:o}=e;return ke(t,"normal")||ke(t,"autoHeight")&&o.getAutoHeightMaxBodyHeight()!=null}function Ft(e){return Nr(e)!==void 0}function Ds(e){return typeof e.get("getRowHeight")=="function"}function mS(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Ku({gos:e,formula:t}){const o=e.get("rowNumbers");return o||!!t?.active&&o!==!1}function Yt(e,t,o=!1,r){const i=e.rowAutoHeight?.getMeasuredRowHeight(t);if(i!=null)return{height:i,estimated:!1};if(t.detail){const a=t.rowHeight,n=e.gos;if(a!=null&&n.get("masterDetail")&&n.get("detailRowAutoHeight"))return{height:a,estimated:!1}}return sa(e,t,o,r)}function sa(e,t,o=!1,r){const{gos:i,environment:a}=e;if(r??(r=a.getDefaultRowHeight()),Ds(i)){if(o)return{height:r,estimated:!0};const l={node:t,data:t.data},c=i.getCallback("getRowHeight")(l);if(aa(c))return c===0&&e.log.warn(23),{height:Math.max(1,c),estimated:!1}}if(t.detail&&i.get("masterDetail"))return vS(i);const n=i.get("rowHeight");return{height:n&&aa(n)?n:r,estimated:!1}}function vS(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return aa(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Or(e,t){e.addManagedEventListeners({stylesChanged:o=>{o.rowHeightChanged&&t()}}),e.addManagedPropertyListener("rowHeight",t)}function pt(e){const{environment:t,gos:o}=e,r=o.get("rowHeight");if(!r||Me(r))return t.getDefaultRowHeight();const i=t.refreshRowHeightVariable();return i!==-1?i:(e.log.warn(24),t.getDefaultRowHeight())}function Ps(e,t,o){const r=t[e.getDomDataKey()];return r?r[o]:void 0}function Co(e,t,o,r){const i=e.getDomDataKey();let a=t[i];Me(a)&&(a={},t[i]=a),a[o]=r}function yo(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function Ts(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||ke(e,"print"))}function Mt(e){return!e.get("autoGroupColumnDef")?.comparator&&!e.get("treeData")}function Vr(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function tr(e){return e.get("grandTotalRow")}function As(e){switch(e){case"pinnedTop":return"top";case"pinnedBottom":return"bottom";default:return null}}function wS(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function Yu(e){return e.get("groupHideOpenParents")?!0:e.get("groupDisplayType")==="multipleColumns"}function Qu(e){return Yu(e)&&e.get("groupHideColumnsUntilExpanded")&&ve(e)}function Is(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function zs(e,t,o){return!!t.group&&!t.footer&&Is(e,o)}function So(e){const t=e.gos.getCallback("getRowId");return t===void 0?t:o=>{let r=t(o);return typeof r!="string"&&(Ki(()=>e.log.warn(25,{id:r}),`getRowIdString:${e.context.getId()}`),r=String(r)),r}}function Ls(e,t){const o=e.get("groupHideParentOfSingleChild");return!!(o===!0||o==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function Zu(e,t){return t.allChildrenCount===1&&t.childrenAfterGroup?.length===1&&Ls(e,t)}function Ju(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function bS(e,t){const o=e.get("suppressGroupChangesColumnVisibility");if(o===!0||t&&o==="suppressHideOnGroup"||!t&&o==="suppressShowOnUngroup")return!1;const r=e.get("suppressRowGroupHidesColumns");if(t&&r)return!1;const i=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&i)}function xo(e){return e?.checkboxes??!0}function Br(e){return e?.mode==="multiRow"&&(e.headerCheckbox??!0)}function Hr(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function Os(e){return e?.hideDisabledCheckboxes??!1}function Xu(e){return typeof e.get("rowSelection")!="string"}function CS(e){return e.get("cellSelection")!==void 0}function yS(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?t?.suppressMultiRanges??!1:!1:e.get("suppressMultiRangeSelection")}function ft(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function SS(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"&&t.handle?.mode==="fill"?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function Qt(e){const t=e.get("cellSelection")??!1;return(typeof t=="object"&&t.enableColumnSelection)??!1}function $u(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const o=e.get("suppressRowClickSelection"),r=e.get("suppressRowDeselection");return o&&r?!1:o?"enableDeselection":r?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function eh(e){const t=$u(e);return t===!0||t==="enableSelection"}function th(e){const t=$u(e);return t===!0||t==="enableDeselection"}function la(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t?.isRowSelectable}function Nr(e){const t="beanName"in e&&e.beanName==="gos"?e.get("rowSelection"):e.rowSelection;if(typeof t=="string")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 or(e){return Nr(e)==="multiRow"}function xS(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):t?.enableSelectionWithoutKeys??!1}function Gr(e){const t=e.get("rowSelection");if(typeof t=="string"){const o=e.get("groupSelectsChildren"),r=e.get("groupSelectsFiltered");return o&&r?"filteredDescendants":o?"descendants":"self"}return t?.mode==="multiRow"?t.groupSelects:void 0}function oh(e,t=!0){const o=e.get("rowSelection");return typeof o!="object"?t?"all":void 0:o.mode==="multiRow"?o.selectAll:"all"}function kS(e){const t=e.get("rowSelection");return typeof t=="string"?!1:t?.mode==="multiRow"?t.ctrlASelectsRows??!1:!1}function rr(e){const t=Gr(e);return t==="descendants"||t==="filteredDescendants"}function rh(e){const t=e.get("rowSelection");return typeof t=="object"&&t.masterSelects||"self"}function ih(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function Ie(e){return e.get("columnMenu")==="legacy"}function ah(e){return!Ie(e)}function nh(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function ES(e,t,o){typeof e!="object"&&(e={});const r={...e};for(const i of o){const a=t[i];a!==void 0&&(r[i]=a)}return r}function RS(e,t){if(!e)return;const o={};let r=!1;for(const n of Object.keys(e))o[n]=e[n],r=!0;if(!r)return;const i={type:"gridOptionsChanged",options:o};t.dispatchEvent(i);const a={type:"componentStateChanged",...o};t.dispatchEvent(a)}function W(e,t){return e.addCommon(t)}function FS(e,t){return e[t]??e.gridOptions?.[t]??Fs(t)??qu[t]}function sh({gos:e},t){return t.button===2||t.ctrlKey&&e.get("allowContextMenuWithControlKey")}function Vs(e,t,o,r,i){const a=ca(e,t,o),n=new ko(a,t,o,r,"user");return n.buildToken=i,e.context.createBean(n),n}function ca(e,t,o,r){const{gos:i,dataTypeSvc:a}=e,n={},s=i.get("defaultColDef");Ae(n,s,!1,!0);const l=a?.updateColDefAndGetColumnType(n,t,o),c=t.type??l??n.type;n.type=c,c&&MS(e,pa(c),n);const d=n.cellDataType;Ae(n,t,!1,!0),d!==void 0&&(n.cellDataType=d);const g=i.get("autoGroupColumnDef");return g&&t.rowGroup&&Mt(i)&&Ae(n,{sort:g.sort,initialSort:g.initialSort},!1,!0),a?.postProcess(n),a?.validateColDef(n,t,s,o),i.validateColDef(n,o,r),n}function MS(e,t,o){const r=t.length;if(r===0)return;const i=e.gos.get("columnTypes");if(i==null){lh(e,o,t,r,Gu);return}const a={...Gu},n=Object.keys(i);for(let s=0,l=n.length;s<l;++s){const c=n[s],d=i[c];c in a?e.log.warn(34,{key:c}):(d.type&&e.log.warn(35),a[c]=d)}lh(e,o,t,r,a)}function lh(e,t,o,r,i){for(let a=0;a<r;++a){const n=o[a].trim(),s=i[n];s?Ae(t,s,!1,!0):e.log.warn(36,{type:n})}}var x=class extends Re{warn(...e){this.beans.log.warn(...e)}error(...e){this.beans.log.error(...e)}deprecated(...e){this.beans.log.deprecated(...e)}};function Wr(e){return e instanceof qr}var qr=class extends x{constructor(e,t,o,r){super(),this.colGroupDef=e,this.groupId=t,this.padding=o,this.level=r,this.isColumn=!1,this.expandable=!1,this.expanded=!1,this.buildToken=0,this.displayInstances=null,this.lastVisible=!1,this.lastQueuedEventAt=0,this.instanceId=Rh(),this.expanded=!!e?.openByDefault}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){const e=this.children;for(let t=0,o=e.length;t<o;++t)if(e[t].isVisible())return!0;return!1}isPadding(){return this.padding}setExpanded(e){return e=!!e,this.expanded===e?!1:(this.expanded=e,this.dispatchGroupEvent("expandedChanged"),!0)}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.groupId}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(e){const t=this.children;for(let o=0,r=t.length;o<r;++o){const i=t[o];i.isColumn?e.push(i):i.addLeafColumns(e)}}getColumnGroupShow(){return this.colGroupDef?.columnGroupShow}setExpandable(){if(this.padding)return!0;const e=hh(this.children,0),t=e===uh;this.expandable!==t&&(this.expandable=t,this.dispatchGroupEvent("expandableChanged"));const o=e!==0;return this.lastVisible===o?!1:(this.lastVisible=o,!0)}dispatchGroupEvent(e){const t=this.localEventService;if(!t?.hasListeners(e))return;const o=this.beans.colModel;o.colUpdateDepth===0?t.dispatchEvent({type:e}):o.queueColEvent(this,{type:e})}raiseQueuedEvent(e){this.isAlive()&&this.localEventService?.dispatchEvent(e)}__addEventListener(e,t){let o=this.localEventService;o||(o=new _e,this.localEventService=o),o.addEventListener(e,t)}__removeEventListener(e,t){this.localEventService?.removeEventListener(e,t)}addEventListener(e,t,o){if(typeof t!="function")return;let r=this.localEventService;r||(r=new _e,this.localEventService=r);const i=this.beans?.frameworkOverrides.wrapLocalListener?.(r,e,t,o)??t;r.addEventListener(e,i,o)}removeEventListener(e,t,o){const r=this.localEventService;if(!r)return;const i=r.listenerWrapper?.unwrap(e,t,o)??t;r.removeEventListener(e,i,o)}},ch=1,dh=2,gh=4,uh=7,hh=(e,t)=>{for(let o=0,r=e.length;o<r;++o){const i=e[o];if(Wr(i)&&i.padding)t=hh(i.children,t);else if(i.isVisible()){const a=i.getColumnGroupShow();a==="open"?t|=ch|gh:a==="closed"?t|=dh|gh:t|=ch|dh}if(t===uh)return t}return t};function ph(e,t){let o=0,r=0;const i=e.length;let a=i,n=-1,s=i,l=-1;for(let h=0;h<i;++h){const p=e[h].colDef.lockPosition;p==="right"?(++r,s===i&&(s=h),l=h):(p==="left"||p===!0)&&(++o,a===i&&(a=h),n=h)}if(o===0&&r===0)return e;let c,d,g;if(t.get("enableRtl")){if(l===r-1&&a===i-o)return e;g=0,d=r,c=i-o}else{if(n===o-1&&s===i-r)return e;c=0,d=o,g=i-r}const u=new Array(i);for(let h=0;h<i;++h){const p=e[h],f=p.colDef.lockPosition;let m;f==="right"?m=g++:f==="left"||f===!0?m=c++:m=d++,u[m]=p}return u}function fh(e,t){const o=hy(e);let r=0,i=0,a=0;const n=l=>{for(let c=0,d=l.length;c<d;++c){const g=l[c];if(Wr(g)){n(g.children);continue}const u=o.get(g)??-1;a===0?(r=u,i=u):u<r?r=u:u>i&&(i=u),++a}},s=l=>{for(let c=0,d=l.length;c<d;++c){const g=l[c];if(Wr(g)&&(g.colGroupDef?.marryChildren&&(a=0,n(g.children),a>1&&i-r>a-1)||!s(g.children)))return!1}return!0};return s(t)}function mh(e,t){if(!e||e.length==0)return;const o=t(e[0]);for(let r=1;r<e.length;r++)if(o!==t(e[r]))return;return o}function vh(e,t,o){if(!t.length)return;const r=t.length===1?t[0]:null,i=mh(t,a=>a.getPinned());e.dispatchEvent({type:"columnPinned",pinned:i??null,columns:t,column:r,source:o})}function Bs(e,t,o){if(!t.length)return;const r=t.length===1?t[0]:null,i=mh(t,a=>a.isVisible());e.dispatchEvent({type:"columnVisible",visible:i,columns:t,column:r,source:o})}function da(e,t,o,r){e.dispatchEvent({type:t,columns:o,column:o?.length==1?o[0]:null,source:r})}function Zt(e,t,o,r,i=null){t?.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:i,finished:o,source:r})}function Hs(e,t,o){e.dispatchEvent({type:"columnHeaderNameChanged",column:null,columns:null,columnGroup:t,source:o})}function Dt({ctrlsSvc:e},t){const o=e.isAlive()?e.get("gridBodyCtrl"):void 0;t?o?.startColumnWidthAnimation():o?.finishColumnWidthAnimation()}function Ns(e){const{gos:t,visibleCols:o,ctrlsSvc:r}=e,i=t.get("animateColumnResizing")&&t.get("suppressColumnMoveAnimation")?o.allCols:null;return Dt(e,!0),()=>{(r.isAlive()?r.get("gridBodyCtrl"):void 0)?.finishColumnWidthAnimation(i!=null&&DS(i,o.allCols))}}function Gs({ctrlsSvc:e}){(e.isAlive()?e.get("gridBodyCtrl"):void 0)?.cancelColumnWidthAnimation()}function DS(e,t){const o=new Set(e),r=new Set(t),i=e.length,a=t.length;let n=0,s=0;for(;;){for(;n<i&&!r.has(e[n]);)++n;for(;s<a&&!o.has(t[s]);)++s;if(n>=i||s>=a)return!1;if(e[n]!==t[s])return!0;++n,++s}}var Ws=e=>{const t=e.colModel.colsAllGroups,o=t.length,r=e.colModel.groupHeaderNameOverrides,i=new Array(o);for(let a=0;a<o;++a){const n=t[a];i[a]={groupId:n.groupId,open:n.expanded,headerName:r.get(n.groupId)??null}}return i},Ur=(e,t,o,r)=>{const i=Wr(t)?t.groupId:t||"";_r(e,[{groupId:i,open:o}],r)},qs=(e,t,o)=>{const{colModel:r}=e,i=r.groupHeaderNameOverrides;return(i.get(t)??null)===o?!1:(o==null?i.delete(t):i.set(t,o),r.getColGroup(t)?.dispatchGroupEvent("headerNameChanged"),!0)},_r=(e,t,o)=>{const{colAnimation:r,visibleCols:i,eventSvc:a,colModel:n}=e,s=n.colsGroupsById,l=t.length;if(!(!s.size||!l)){n.beginColUpdate();try{r?.start(),Dt(e,!0);let c=null,d=null;for(let g=0;g<l;++g){const u=t[g],h=s.get(u.groupId);h&&(h.setExpanded(u.open)&&(c??(c=[]),c.push(h)),"headerName"in u&&qs(e,h.groupId,u.headerName??null)&&(d??(d=[]),d.push(h)))}d&&Hs(a,d.length===1?d[0]:null,o),c&&(i.refresh(o,!0),a.dispatchEvent({type:"columnGroupOpened",columnGroup:c.length===1?c[0]:void 0,columnGroups:c}))}finally{Dt(e,!1),r?.finish(),n.endColUpdate()}}},PS=(e,t)=>{const o=[];e.colModel.colDefGroupsById.forEach(r=>{o.push({groupId:r.groupId,open:!!r.colGroupDef?.openByDefault,headerName:null})}),_r(e,o,t)},wh=(e,t,o,r,i,a,n,s)=>{const{sortSvc:l,pinnedCols:c,colFlex:d}=e;o!==void 0&&t.setVisible(!o,s),l&&(l.updateColSort(t,r,s),i!==void 0&&l.setColSortIndex(t,i,s)),a!==void 0&&c?.setColPinned(t,a,s),n!==void 0&&d?.setColFlex(t,n,s)};function jr(e,t,o=!1,r,i=!1){const a=e.colModel;let n=null;a.beginColUpdate();try{for(let s=0,l=t.length;s<l;++s){const c=t[s],d=typeof c=="string"?a.getCol(c):c;d===void 0||i&&d.colDef.lockVisible||d.visible!==o&&(d.setVisible(o,r),n??(n=[]),n.push(d))}if(n){const{colAnimation:s,eventSvc:l}=e;s?.start(),Dt(e,!0);try{a.refreshColsDerivedState(),e.visibleCols.refresh(r,!1),l.dispatchEvent({type:"columnEverythingChanged",source:r}),Bs(l,n,r)}finally{Dt(e,!1),s?.finish()}}}finally{a.endColUpdate()}}function Pt(e,t,o,r=!1){const i=e.colModel;i.beginColUpdate();try{return TS(e,t,o,r)}finally{i.endColUpdate()}}function TS(e,t,o,r){const{colModel:i,colAnimation:a,calculatedColsSvc:n}=e,s=t.state;if(s&&!Array.isArray(s))return e.log.warn(32),!1;s&&n?.restoreDynamicColumnDefs(s)&&n.refreshDynamicColumns(o);const l=i.colDefList,c=e.selectionColSvc?.column;if(!l.length&&!c)return!1;a?.start();const d=Ns(e);try{const g=_s(e);let u=Us(e,s??null,l,t,o,!0,r);if(u!==null||t.defaultState){const h=e.pivotResultCols?.pivotCols;u=Us(e,u,h,t,o,!1,r)}return yh(e,t,o,g),u===null}finally{d(),a?.finish()}}function Us(e,t,o,r,i,a,n){const s=e.colModel,l=r.defaultState;let c=null,d=null,g=null;const u=l?new Set:null;if(t)for(let h=0,p=t.length;h<p;++h){const f=t[h],m=f.colId;let w;if(m!=null){if(m.startsWith(Ro)){c??(c=[]),c.push(f);continue}if(m.startsWith(ha)){d??(d=[]),d.push(f);continue}if(a)w=s.getNonPivotColById(m);else{const v=s.getCol(m);w=v?.colDef.pivotKeys==null?null:v}}w?(ga(e,w,f,l,i,n),u?.add(w)):(g??(g=[]),g.push(f))}if(u!==null&&o)for(let h=0,p=o.length;h<p;++h){const f=o[h];u.has(f)||ga(e,f,null,l,i,n)}return a&&AS(e,c,d,l,i,n),g}function AS(e,t,o,r,i,a){const{autoColSvc:n,selectionColSvc:s,rowGroupColsSvc:l,pivotColsSvc:c,valueColsSvc:d}=e;l?.sortByPendingState(),c?.sortByPendingState(),d?.sortByPendingState(),e.colModel.refreshCols(!1,i);const g=s?.column,u=n?.columns??[];bh(e,t,u,r,i,a),bh(e,o,g?[g]:[],r,i,a)}function bh(e,t,o,r,i,a){let n=null;if(t!==null){n=new Set;for(let s=0,l=t.length;s<l;++s){const c=t[s],d=c.colId;for(let g=0,u=o.length;g<u;++g){const h=o[g];if(h.colId===d){n.add(h),ga(e,h,c,r,i,a);break}}}}if(r)for(let s=0,l=o.length;s<l;++s){const c=o[s];n?.has(c)||ga(e,c,null,r,i,a)}}function ga(e,t,o,r,i,a){const n=Tt(o?.flex,r?.flex),s=Tt(o?.sort,r?.sort),l=Tt(o?.sortType,r?.sortType),d=At(s)||nl(l)?{type:mt(l),direction:Eo(s)}:void 0;wh(e,t,Tt(o?.hide,r?.hide),d,Tt(o?.sortIndex,r?.sortIndex),Tt(o?.pinned,r?.pinned),n,i);const g=Tt(o?.headerName,r?.headerName);if(g!==void 0&&t.setHeaderNameOverride(g,i),n==null){const h=Tt(o?.width,r?.width);if(h!=null){const p=t.colDef.minWidth??e.environment.getDefaultColumnMinWidth();p!=null&&h>=p&&(a||t.setUserSized(!0),t.setActualWidth(h,i))}}if(t.colKind==="auto-group"||!t.primary)return;e.valueColsSvc?.syncColState(t,o,r,i),e.rowGroupColsSvc?.syncColState(t,o,r,i),e.pivotColsSvc?.syncColState(t,o,r,i),e.showValuesAsSvc?.syncColState(t,o,r,i);const u=Tt(o?.pivotSort,r?.pivotSort);u!==void 0&&(t.pivotSort=Eo(u))}function Ch(e,t){const o=e.colModel;o.beginColUpdate();try{IS(e,t)}finally{o.endColUpdate()}}function IS(e,t){const{colModel:o,autoColSvc:r,selectionColSvc:i,eventSvc:a,gos:n,colAnimation:s,calculatedColsSvc:l}=e,c=l?.resetDynamicColumnDefs(!0)??!1,d=e.userColumnSvc?.clear()??!1;if(l?(c||d)&&l.refreshDynamicColumns(t):d&&o.rebuildCols(t),!o.colDefList.length)return;const g=i?.column??null,u=r?.columns,h=u?.length??0,p=new Array(h+(g?1:0)+o.colDefList.length);let f=0,m=-1,w=-1,v=-1;const C=S=>{const E=Eh(e,S),{rowGroupIndex:F,pivotIndex:P,valueIndex:z}=E;F!=null&&F>m&&(m=F),P!=null&&P>w&&(w=P),z!=null&&z>v&&(v=z),p[f++]=E};if(u)for(let S=0;S<h;++S)C(u[S]);g&&C(g),js(o.colDefTree,C);for(let S=0,E=p.length;S<E;++S){const F=p[S];F.rowGroup&&F.rowGroupIndex==null&&(F.rowGroupIndex=++m),F.pivot&&F.pivotIndex==null&&(F.pivotIndex=++w),F.aggFunc&&F.valueIndex==null&&(F.valueIndex=++v)}s?.start();const b=Ns(e);try{const S=_s(e);Us(e,p,o.colDefList,{},t,!0,!0);const E=o.colDefList;for(let J=0,xe=E.length;J<xe;++J){const ee=E[J];ee.pivotSort=sl(ee.colDef)}e.rowNumbersSvc?.resetColumnState(t);const F=o.getAllCols();for(let J=0,xe=F.length;J<xe;++J)F[J].resetWidthOwnership();const P=r?.columns,z=P?.length??0,V=new Array((g?1:0)+z+o.colDefList.length);let H=0;g&&(V[H++]={colId:g.colId});for(let J=0;J<z;++J)V[H++]={colId:P[J].colId};js(o.colDefTree,J=>{V[H++]={colId:J.colId}});const Se=o.groupHeaderNameOverrides;if(Se.size){for(const J of Array.from(Se.keys()))qs(e,J,null);Hs(a,null,t)}yh(e,{state:V,applyOrder:!0},t,S)}finally{b(),s?.finish()}a.dispatchEvent(W(n,{type:"columnsReset",source:t}))}function yh(e,t,o,r){zS(e,t),e.visibleCols.refresh(o,!1),e.eventSvc.dispatchEvent({type:"columnEverythingChanged",source:o}),Sh(e,o,r)}function zS(e,t){const o=e.colModel,r=t.state;if(!t.applyOrder||!r||!o.ready)return;const i=o.colsById,a=o.colsList,n=new Set,s=[];for(let d=0,g=r.length;d<g;++d){const u=r[d].colId;if(u==null)continue;const h=i[u];h!=null&&h.inColsList&&!n.has(h)&&(s.push(h),n.add(h))}let l=null;for(let d=0,g=a.length;d<g;++d){const u=a[d];n.has(u)||(u.colKind==="auto-group"?(l??(l=[]),l.push(u)):s.push(u))}l!==null&&LS(s,l);const c=ph(s,e.gos);if(!je(c,a)){if(o.hasMarryChildren&&!fh(c,o.colsTree)){e.log.warn(39);return}o.colsList=c,o.markColsListIndexDirty()}}function LS(e,t){let o=0;for(let i=0,a=e.length;i<a;++i)e[i].colKind==="auto-group"&&(o=i+1);const r=t.length;for(let i=e.length-1;i>=o;--i)e[i+r]=e[i];for(let i=0;i<r;++i)e[o+i]=t[i]}function _s(e){const{rowGroupColsSvc:t,pivotColsSvc:o,colModel:r}=e,i=t?.columns,a=o?.columns,n=r.getColsInStateOrder(),s=new Map;for(let l=0,c=n.length;l<c;++l){const d=n[l],g=d.sortDef,u=g.direction;s.set(d.colId,{width:d.actualWidth,hide:!d.visible,pinned:d.pinned,sort:u,sortType:u?g.type:void 0,sortIndex:d.sortIndex??null,aggFunc:d.aggregationActive?d.aggFunc:null,pivotSort:d.pivotSort})}return{rowGroupColumns:i?.length?i.slice():void 0,pivotColumns:a?.length?a.slice():void 0,before:s,colsList:r.colsList}}function Sh(e,t,o){const r=e.rowGroupColsSvc?.columns,i=e.pivotColsSvc?.columns;xh(e,t,"columnRowGroupChanged",o.rowGroupColumns,r),xh(e,t,"columnPivotChanged",o.pivotColumns,i),OS(e,t,o.before),VS(e,t,o)}function xh(e,t,o,r,i){NS(r,i)||da(e.eventSvc,o,uy(r,i),t)}function OS(e,t,o){const{eventSvc:r,sortSvc:i}=e,a=e.colModel.getAllCols();let n=null,s=null,l=null,c=null,d=null,g=null;for(let u=0,h=a.length;u<h;++u){const p=a[u],f=o.get(p.colId);f&&(f.width!=p.actualWidth&&(s??(s=[]),s.push(p)),f.pinned!=p.pinned&&(l??(l=[]),l.push(p)),f.hide==p.visible&&(c??(c=[]),c.push(p)),BS(p,f)&&(n??(n=[]),n.push(p)),i&&HS(p,f)&&(d??(d=[]),d.push(p)),f.pivotSort!==p.pivotSort&&(g??(g=[]),g.push(p)))}n&&da(r,"columnValueChanged",n,t),s&&Zt(r,s,!0,t),l&&vh(r,l,t),c&&Bs(r,c,t),d&&i?.dispatchSortChangedEvents(t,d),g&&da(r,"columnPivotChanged",g,t)}function VS(e,t,o){const r=e.colModel,i=r.colsList;if(i===o.colsList)return;const a=o.before,n=r.colsById;let s;for(const g of a.keys()){const u=n[g];u?.inColsList&&(s??(s=[]),s.push(u))}if(!s)return;let l=0,c;const d=s.length;for(let g=0,u=i.length;g<u&&l<d;++g){const h=i[g];if(a.has(h.colId)){const p=s[l++];p!==h&&(c??(c=[]),c.push(p))}}c&&e.eventSvc.dispatchEvent({type:"columnMoved",columns:c,column:c.length===1?c[0]:null,finished:!0,source:t})}var kh=e=>{const t=e.colModel;if(!t.isAlive())return[];const o=t.getColsInStateOrder(),r=ll(e),i=new Array(o.length);for(let a=0,n=o.length;a<n;++a){const s=o[a],l=s.rowGroupActive,c=s.pivotActive,d=s.sortDef,g=d.direction;i[a]={colId:s.colId,width:s.actualWidth,hide:!s.visible,pinned:s.pinned,sort:g,sortType:g?d.type??null:null,sortIndex:s.sortIndex??null,aggFunc:s.aggregationActive?s.aggFunc:null,valueIndex:s.aggregationActive?s.aggregationActiveIndex:null,rowGroup:l,rowGroupIndex:l?s.rowGroupActiveIndex:null,pivot:c,pivotIndex:c?s.pivotActiveIndex:null,pivotSort:s.pivotSort===void 0?r:s.pivotSort,flex:s.flex??null,showValuesAs:e.showValuesAsSvc?.toColState(s)??null,headerName:s.headerNameOverride}}return i};function Eh(e,t){const o=t.colDef,r=ze(o.sort??o.initialSort??null),i=o.rowGroupIndex??o.initialRowGroupIndex??null;let a=o.rowGroup??o.initialRowGroup??null;i==null&&a===!1&&(a=null);const n=o.pivotIndex??o.initialPivotIndex??null;let s=o.pivot??o.initialPivot??null;return n==null&&s===!1&&(s=null),{colId:t.colId,sort:r.direction,sortType:r.type,sortIndex:o.sortIndex??o.initialSortIndex??null,hide:o.hide??o.initialHide??null,pinned:o.pinned??o.initialPinned??null,width:o.width??o.initialWidth??null,flex:o.flex??o.initialFlex??null,rowGroup:a,rowGroupIndex:i,pivot:s,pivotIndex:n,pivotSort:sl(o),aggFunc:o.aggFunc??o.initialAggFunc??null,valueIndex:o.valueIndex??o.initialValueIndex??null,showValuesAs:e.showValuesAsSvc?.colDefSelection(o)??null,headerName:null}}var Tt=(e,t)=>e!==void 0?e:t,js=(e,t)=>{for(let o=0,r=e.length;o<r;++o){const i=e[o],a=i.children;a?js(a,t):t(i)}},BS=(e,t)=>{const o=t.aggFunc,r=o!=null;return r!==e.aggregationActive||r&&o!=e.aggFunc},HS=(e,t)=>{if(t.sortIndex!=e.sortIndex)return!0;const o=e.getSortDef(),r=t.sortType??"default";return o?o.direction!==t.sort||o.type!==r:t.sort!==null},NS=(e,t)=>{if(e===t)return!0;const o=e?.length??0;if(o!==(t?.length??0))return!1;for(let r=0;r<o;++r){const i=e[r],a=t[r];if(i!==a&&i.colId!==a.colId)return!1}return!0};function Kr(e,t){let o=e;for(let r=0,i=t.length;r<i;r++){if(o==null)return;o=o[t[r]]}return o}function Ks(e,t){return t?t.includes("__proto__"):e==="__proto__"}var GS=0;function Rh(){return GS++}var Ys=e=>e instanceof ko,Jt=(e,t)=>{if(!t.group&&!t.rowPinned){const o=e.pivotValueColumn;if(o)return o}return e},WS=["asc","desc",null],qS=[{type:"absolute",direction:"asc"},{type:"absolute",direction:"desc"},null],Yr=1,Qr=2,Fh=4,Mh=8,Zr=16,Qs=32,Zs=64,Js=128,Xs=256,$s=512,el=1024,tl=2048,ol=4096,ua=8192,rl=16384,il=32768,Jr=65536,al=131072,ko=class extends x{constructor(e,t,o,r,i){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=r,this.colKind=i,this.isColumn=!0,this.instanceId=Rh(),this.aggFunc=void 0,this.isCalculatedCol=!1,this.field=void 0,this.fieldPath=null,this.fieldHasProtoKey=!1,this.valueGetter=void 0,this.allowFormula=!1,this.showRowGroup=void 0,this.pivotValueColumn=void 0,this.valueFormatter=void 0,this.refData=void 0,this.enableCellChangeFlash=void 0,this.colSpan=void 0,this.rowSpan=void 0,this.calculatedExpression=void 0,this.actualWidth=0,this.reportedWidth=0,this.minWidth=0,this.maxWidth=0,this.flex=null,this.pinned=null,this.pinnedLane=1,this.left=null,this.reportedLeft=null,this.oldLeft=null,this.visible=!1,this.displayed=!1,this.sortDef=ze(),this.sortIndex=void 0,this.pivotSort=void 0,this.autoHeaderHeight=null,this.sortCycleIndex=void 0,this.lastQueuedEventAt=0,this.buildToken=0,this.allColsIndex=-1,this.colSpanIndex=-1,this.inColsList=!1,this.ariaColIndex=0,this.colsListIndex=-1,this.formulaRef=null,this.showValuesAsDef=void 0,this.showValuesAs=null,this.anchoredToColId=void 0,this.colFlags=0,this.rowGroupActive=!1,this.rowGroupActiveIndex=-1,this.pivotActive=!1,this.pivotActiveIndex=-1,this.aggregationActive=!1,this.aggregationActiveIndex=-1,this.showRowGroupCol=null,this.parent=null,this.originalParent=null,this.headerNameOverride=null,this.colIdSanitised=er(o)}destroy(){this.localEventService=null,super.destroy(),this.allColsIndex=-1,this.colSpanIndex=-1,this.displayed=!1,this.colsListIndex=-1,this.inColsList=!1,this.colFlags&=~(Yr|Qr),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}initState(){const{beans:e,colDef:t}=this,{sortSvc:o,pinnedCols:r,colFlex:i}=e;o?.initCol(this);const a=t.hide;this.visible=a!==void 0?!a:!t.initialHide,this.pivotSort=sl(t),r?.initCol(this),i?.initCol(this)}setColDef(e,t,o){const r=this.colDef;if(this.userProvidedColDef=t,this.colDef=e,wo(e,r))return this.initCalculatedColumnState(e),!1;const{colModel:i,pivotResultCols:a,rowSpanSvc:n,showValuesAsSvc:s}=this.beans;++i.colDefsVersion,this.colFlags&=~tl,this.sortCycleIndex=void 0,this.initColDefHotFields(),s?.resolveColumn(this,!1),this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),e.spanRows!==r.spanRows&&n?.columnRowSpanChanged(this),this.colFlags|=al,i.beginColUpdate();try{this.dispatchColEvent("colDefChanged",o),a?.recreateColDefsForSource(this,o)}finally{i.endColUpdate()}return!0}reapplyColDef(e,t,o){const r=ca(this.beans,e,this.colId);if(this.setColDef(r,e,t),o){wh(this.beans,this,r.hide,r.sort,r.sortIndex,r.pinned,r.flex,t);const i=r.pivotSort;i!==void 0&&(this.pivotSort=Eo(i));const a=this.flex;(a==null||a<=0)&&this.setActualWidth(r.width??this.actualWidth,t)}}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.initColDefHotFields(),this.beans.showValuesAsSvc?.resolveColumn(this,!0),this.initState(),this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.reportedWidth=this.actualWidth,this.colFlags&=~Jr,this.initDotNotation(),this.initTooltip()}initDotNotation(){const{field:e,tooltipField:t,valueGetter:o,valueSetter:r}=this.colDef;this.field=e;const i=this.gos.get("suppressFieldDotNotation");this.colFlags&=~Js,i?this.fieldPath=null:(this.fieldPath=typeof e=="string"&&e.includes(".")?e.split("."):null,typeof t=="string"&&t.includes(".")&&(this.colFlags|=Js)),this.fieldHasProtoKey=!1,typeof e=="string"&&Ks(e,this.fieldPath)&&(this.fieldHasProtoKey=!0,(!o||!r)&&this.warn(340,{field:e}))}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)}resetWidthOwnership(){this.colFlags&=~Zr}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e)}calculateColInitialWidth(e){const t=e.width??e.initialWidth??200;return bo(t,this.minWidth,this.maxWidth)}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.fieldPath!==null}isTooltipEnabled(){return(this.colFlags&Zs)!==0}setTooltipEnabled(e){this.colFlags=e?this.colFlags|Zs:this.colFlags&~Zs}isTooltipFieldContainsDots(){return(this.colFlags&Js)!==0}getHighlighted(){const e=this.colFlags;return(e&rl)!==0?0:(e&il)!==0?1:null}setHighlighted(e){let t=this.colFlags&~(rl|il);e===0?t|=rl:e===1&&(t|=il),this.colFlags=t}__addEventListener(e,t){let o=this.localEventService;o||(o=new _e,this.localEventService=o),o.addEventListener(e,t)}__removeEventListener(e,t){this.localEventService?.removeEventListener(e,t)}addEventListener(e,t){if(typeof t!="function")return;let o=this.localEventService;o||(o=new _e,this.localEventService=o);const r=this.beans.frameworkOverrides.wrapLocalListener?.(o,e,t)??t;o.addEventListener(e,r)}removeEventListener(e,t){const o=this.localEventService;if(!o)return;const r=o.listenerWrapper?.unwrap(e,t)??t;o.removeEventListener(e,r)}createColumnFunctionCallbackParams(e){return W(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.isCalculatedCol||this.isColumnFunc(e,this.colDef.suppressPaste??null)}initColDefHotFields(){const e=this.colDef;this.valueGetter=e.valueGetter,this.allowFormula=e.allowFormula===!0,this.showRowGroup=e.showRowGroup,this.pivotValueColumn=e.pivotValueColumn,this.valueFormatter=e.valueFormatter,this.refData=e.refData,this.enableCellChangeFlash=e.enableCellChangeFlash,this.colSpan=e.colSpan,this.rowSpan=e.rowSpan,this.initCalculatedColumnState(e)}initCalculatedColumnState(e){this.calculatedExpression=e.calculatedExpression,this.isCalculatedCol=this.calculatedExpression!==void 0&&this.beans.calculatedColsSvc?.isEnabled()===!0}isResizable(){return this.colDef.resizable??!0}isColumnFunc(e,t){return typeof t=="boolean"?t:typeof t=="function"&&t(this.createColumnFunctionCallbackParams(e))}isMoving(){return(this.colFlags&Xs)!==0}setMoving(e){this.colFlags=e?this.colFlags|Xs:this.colFlags&~Xs}isResizing(){return(this.colFlags&$s)!==0}setResizing(e){this.colFlags=e?this.colFlags|$s:this.colFlags&~$s}getSort(){return this.sortDef.direction}getSortDef(){const e=this.sortDef;return e.direction?e:null}setSortDef(e){this.sortDef=e}isSortable(){return this.colDef.sortable??!0}isSortAscending(){return this.getSort()==="asc"}isSortDescending(){return this.getSort()==="desc"}isSortNone(){return!this.getSort()}isSorting(){return this.getSort()!=null}getSortIndex(){return this.sortIndex}isMenuVisible(){return(this.colFlags&el)!==0}setMenuVisible(e){this.colFlags=e?this.colFlags|el:this.colFlags&~el}getAggFunc(){return this.aggFunc}getShowValuesAs(){return this.showValuesAs}getShowValuesAsDef(){return this.showValuesAsDef??null}getLeft(){return this.left}getRight(){return this.left+this.actualWidth}isFilterActive(){return(this.colFlags&Qs)!==0}setFilterActive(e){this.colFlags=e?this.colFlags|Qs:this.colFlags&~Qs}takeFilterRedefined(){const e=this.colFlags;return this.colFlags=e&~al,(e&al)!==0}isHovered(){return this.warn(261),!!this.beans.colHover?.isHovered(this)}isFirstRightPinned(){return(this.colFlags&Qr)!==0}isLastLeftPinned(){return(this.colFlags&Yr)!==0}setLastLeftPinned(e){this.colFlags=e?this.colFlags|Yr:this.colFlags&~Yr}setFirstRightPinned(e){this.colFlags=e?this.colFlags|Qr:this.colFlags&~Qr}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){if(this.visible!==e){this.visible=e;let o=this.originalParent;for(;o&&o.setExpandable();)o=o.originalParent;this.dispatchColEvent("visibleChanged",t)}this.dispatchStateUpdatedEvent("hide",t)}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.colDef.suppressSpanHeaderHeight}getFirstRealParent(){let e=this.originalParent;for(;e?.padding;)e=e.originalParent;return e}getColumnGroupPaddingInfo(){let e=this.parent;if(!e?.providedColumnGroup.padding)return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let o=!0;for(;e;){if(!e.providedColumnGroup.padding){o=!1;break}e=e.parent}return{numberOfParents:t,isSpanningTotal:o}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getDisplayName(e="columnDrop"){return this.beans.colNames.getDisplayNameForColumn(this,e)||this.colDef.headerName||this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}isUserSized(){return(this.colFlags&Zr)!==0}setUserSized(e){this.colFlags=e?this.colFlags|Zr:this.colFlags&~Zr}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){return this.autoHeaderHeight!==e?(this.autoHeaderHeight=e,!0):!1}getColSpan(e){const t=this.colSpan;if(t==null)return 1;const o=this.createColumnFunctionCallbackParams(e);return Ph(t(o))}getRowSpan(e){const t=this.rowSpan;if(t==null)return 1;const o=this.createColumnFunctionCallbackParams(e);return Ph(t(o))}setActualWidth(e,t){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.colFlags|=t==="uiColumnResized"?Jr|Zr:Jr,this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null))}dispatchLayoutEvents(e){const t=this.actualWidth,o=(this.colFlags&Jr)!==0;if(o&&(this.colFlags&=~Jr),t!==this.reportedWidth){this.reportedWidth=t;const a=this.flex!=null?"flex":e;this.dispatchColEvent("widthChanged",a),this.dispatchStateUpdatedEvent("width",a)}else o&&this.dispatchStateUpdatedEvent("width",this.flex!=null?"flex":e);const r=this.left;r!==this.reportedLeft&&(this.reportedLeft=r,this.dispatchColEvent("leftChanged",e));let i=this.colFlags;Dh(i,Yr,Fh)&&(this.colFlags=i^Fh,this.dispatchColEvent("lastLeftPinnedChanged",e),i=this.colFlags),Dh(i,Qr,Mh)&&(this.colFlags=i^Mh,this.dispatchColEvent("firstRightPinnedChanged",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.pivotActive||this.rowGroupActive||this.aggregationActive}isAnyFunctionAllowed(){const e=this.colDef;return e.enablePivot===!0||e.enableRowGroup===!0||e.enableValue===!0}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}isAllowFormula(){return this.allowFormula}setHeaderNameOverride(e,t="api"){if(this.headerNameOverride===e)return;this.headerNameOverride=e;const o=this.beans.colModel;o.beginColUpdate();try{this.dispatchColEvent("headerNameChanged",t),this.beans.eventSvc.dispatchEvent({type:"columnHeaderNameChanged",column:this,columns:null,columnGroup:null,source:t})}finally{o.endColUpdate()}}dispatchColEvent(e,t,o){const r=this.localEventService;r?.hasListeners(e)&&this.raise(r,W(this.gos,{type:e,column:this,columns:[this],source:t,...o}))}dispatchStateUpdatedEvent(e,t){const o=this.beans.dataTypeSvc;o?.isPendingInference&&o.columnStateUpdated(this,e);const r=this.localEventService;r?.hasListeners("columnStateUpdated")&&this.raise(r,W(this.gos,{type:"columnStateUpdated",column:this,columns:[this],source:t,key:e}))}raise(e,t){const o=this.beans.colModel;o.colUpdateDepth>0?o.queueColEvent(this,t):e.dispatchEvent(t)}raiseQueuedEvent(e){this.localEventService?.dispatchEvent(e)}},Dh=(e,t,o)=>(e&t)===0!=((e&o)===0),Ph=e=>e>=2?Math.floor(e):1,ze=e=>Xt(e)?{direction:e.direction,type:e.type}:{direction:Eo(e),type:mt(e)},Xr=e=>e==="absolute"?ua:ol,Th=e=>{const{sort:t,initialSort:o}=e.colDef;let r=0;return t!==null&&(r|=Xr(mt(t?.type))),o!==null&&(r|=Xr(mt(o?.type))),r},Ah=(e,t,o)=>t.colDef.sortingOrder??e.get("sortingOrder")??((o&ua)!==0?qS:WS),US=(e,t)=>{const o=Ah(e,t,Th(t)),r=new Array(o.length);for(let i=0,a=o.length;i<a;++i)r[i]=ze(o[i]);return r},_S=(e,t)=>{const o=e.get("sortingOrder")==null,r=t.colFlags;if(o&&(r&tl)!==0)return r&(ol|ua);let i=Th(t);const a=Ah(e,t,i);for(let n=0,s=a.length;n<s;++n){const l=a[n];if(!Xt(l)){Eo(l)&&(i|=Xr(mt(l)));continue}l.direction&&(i|=Xr(l.type))}return o&&(t.colFlags=r&~(ol|ua)|i|tl),i},jS=(e,t,o)=>(_S(e,t)&Xr(o))!==0,At=e=>e==="asc"||e==="desc"||e===null,nl=e=>e==="default"||e==="absolute",Xt=e=>{if(!e||typeof e!="object")return!1;const t=e;return nl(t.type)&&At(t.direction)},sl=e=>{const t=e.pivotSort!==void 0?e.pivotSort:e.initialPivotSort;return t===void 0?void 0:Eo(t)},ll=e=>e.pivotResultCols?.suppliedColDefs!=null?null:"asc",KS=(e,t)=>t===void 0?ll(e):t,Eo=e=>At(e)?e:null,mt=e=>nl(e)?e:"default",Ih=(e,t,o)=>{const r=o?.(),i=r!==void 0?r:t.sortSvc?.getDisplaySort(e),a=mt(i?.type),n=Eo(i?.direction);return{isAbsoluteSort:a==="absolute",isDefaultSort:a==="default",isAscending:n==="asc",isDescending:n==="desc",direction:n}},cl=e=>e==="right"?2:e==="left"||e===!0?0:1,zh=(e,t)=>t.allColsIndex>=0?e.getColAfter(t):null,Lh=(e,t)=>{const o=zh(e,t);return o?.isResizable()?o:null},dl=(e,t)=>(e?t!==0:t===2)?-1:1,Ro="ag-Grid-AutoColumn",ha="ag-Grid-SelectionColumn",Oh="ag-Grid-RowNumbersColumn",YS="ag-Grid-HierarchyColumn";function $t(e){let t=0;for(let o=0,r=e.length;o<r;++o)t+=e[o].actualWidth;return t}function gl(e){return e.colKind==="auto-group"}function $r(e){return e.colKind==="selection"}function Le(e){return e.colKind==="row-number"}function ul(e){const t=e.colKind;return t==="selection"||t==="row-number"}function pa(e){return Array.isArray(e)?e:typeof e=="string"?e.split(","):[]}function Fo(e){return e==="optionsUpdated"?"gridOptionsChanged":e}function QS(e,t){return!e.columnGroup||e.columnGroup.getGroupId()===t}function Vh(e,t,o){const r=t.sort,i=Xt(r)||At(r)?ze(r):null,a=e.showValuesAsSvc?.colDefSelection(t)??void 0;return i?{...t,colId:o,sort:i.direction,sortType:i.type,showValuesAs:a,headerName:void 0}:{...t,colId:o,sort:void 0,showValuesAs:a,headerName:void 0}}function ZS(e){const{sort:t,initialSort:o}=e,r=Xt(t)||At(t),i=Xt(o)||At(o);return r?ze(t):i?ze(o):null}var Bh=(e,t)=>{if(e)for(let o=0,r=e.length;o<r;++o){const i=e[o];i.isAlive()&&i.destroy()}if(t)for(let o=0,r=t.length;o<r;++o){const i=t[o];i.isAlive()&&i.destroy()}},Hh=(e,t,o)=>{for(let r=0,i=e.length;r<i;++r){const a=e[r];a.buildToken!==o&&a.isAlive()&&a.destroy()}for(let r=0,i=t.length;r<i;++r){const a=t[r];a.buildToken!==o&&a.isAlive()&&a.destroy()}};function hl(e,t){for(let o=0,r=e.length;o<r;++o){const i=e[o];"children"in i?hl(i.children,t):t(i)}}var tt=e=>e instanceof ir,ir=class extends x{constructor(e,t,o,r){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=o,this.pinned=r,this.isColumn=!1,this.children=null,this.displayedChildren=[],this.reportedDisplayedChildren=this.displayedChildren,this.childrenReports=0,this.autoHeaderHeight=null,this.left=null,this.reportedLeft=null,this.oldLeft=null,this.parent=null,this.buildToken=0,this.pinnedLane=cl(r),this.uniqueId=`${t}_${o}`,this.colIdSanitised=er(this.uniqueId)}getParent(){return this.parent}getUniqueId(){return this.uniqueId}isEmptyGroup(){return!this.displayedChildren?.length}isMoving(){return Nh(this.providedColumnGroup)===!0}setLeftFromChildren(){const e=this.displayedChildren;let t=null;if(e)for(let o=0,r=e.length;o<r;++o){const i=e[o];tt(i)&&i.setLeftFromChildren();const a=i.left;a!=null&&(t==null||a<t)&&(t=a)}this.oldLeft=this.reportedLeft,this.left=t}getLeft(){return this.left}dispatchLayoutEvents(){if(!this.isAlive())return!1;const e=this.displayedChildren;let t=e!==this.reportedDisplayedChildren;this.reportedDisplayedChildren=e;const o=this.childrenReports,r=this.children;if(r!==null)for(let a=0,n=r.length;a<n;++a){const s=r[a];s.isColumn||s.dispatchLayoutEvents()&&(t=!0)}t&&o===this.childrenReports&&(++this.childrenReports,this.dispatchLocalEvent({type:"displayedChildrenChanged"}));const i=this.left;return i!==this.reportedLeft&&(this.reportedLeft=i,this.dispatchLocalEvent({type:"leftChanged"})),t}__addEventListener(e,t){let o=this.localEventService;o||(o=new _e,this.localEventService=o),o.addEventListener(e,t)}__removeEventListener(e,t){this.localEventService?.removeEventListener(e,t)}addEventListener(e,t,o){if(typeof t!="function")return;let r=this.localEventService;r||(r=new _e,this.localEventService=r);const i=this.beans?.frameworkOverrides.wrapLocalListener?.(r,e,t,o)??t;r.addEventListener(e,i,o)}removeEventListener(e,t,o){const r=this.localEventService;if(!r)return;const i=r.listenerWrapper?.unwrap(e,t,o)??t;r.removeEventListener(e,i,o)}getPinned(){return this.pinned}getGroupId(){return this.groupId}getDisplayName(e="columnDrop"){return this.beans.colNames.getDisplayNameForColumnGroup(this,e)||this.getColGroupDef()?.headerName||this.getGroupId()}getPartId(){return this.partId}getActualWidth(){let e=0;const t=this.displayedChildren;if(t)for(let o=0,r=t.length;o<r;++o)e+=t[o].getActualWidth();return e}isResizable(){const e=this.displayedChildren;if(e){for(let t=0,o=e.length;t<o;++t)if(e[t].isResizable())return!0}return!1}getMinWidth(){const e=this.displayedChildren;if(!e)return 0;let t=0;for(let o=0,r=e.length;o<r;++o){const i=e[o];t+=i.getMinWidth()}return t}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}get ariaColIndex(){return Mo(this,!1,!1)?.ariaColIndex??0}getDefinition(){return this.providedColumnGroup.colGroupDef}getColGroupDef(){return this.providedColumnGroup.colGroupDef}isPadding(){return this.providedColumnGroup.padding}isExpandable(){return this.providedColumnGroup.expandable}isExpanded(){return!!this.providedColumnGroup.expanded}isAutoHeaderHeight(){return!!this.providedColumnGroup.colGroupDef?.autoHeaderHeight}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){return e===this.autoHeaderHeight?!1:(this.autoHeaderHeight=e,!0)}addDisplayedLeafColumns(e){const t=this.displayedChildren;if(t)for(let o=0,r=t.length;o<r;++o){const i=t[o];i.isColumn?e.push(i):tt(i)&&i.addDisplayedLeafColumns(e)}}addLeafColumns(e){const t=this.children;if(t)for(let o=0,r=t.length;o<r;++o){const i=t[o];i.isColumn?e.push(i):tt(i)&&i.addLeafColumns(e)}}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){let e=0,t=this;for(;t?.providedColumnGroup.padding&&t.parent?.providedColumnGroup.padding;)++e,t=t.parent;return e}},Mo=(e,t,o)=>{const r=t?e.displayedChildren:e.children;if(r)for(let i=0,a=r.length;i<a;++i){const n=r[o?a-1-i:i];if(n.isColumn)return n;const s=Mo(n,t,o);if(s)return s}return null},Nh=e=>{let t=!1;const o=e.children;for(let r=0,i=o.length;r<i;++r){const a=o[r];if(a.isColumn){if(t=!0,!a.isMoving())return!1;continue}const n=Nh(a);if(n===!1)return!1;n===!0&&(t=!0)}return t||null},Gh=(e,t)=>{let o=e.parent;if(o){let r=o.getPaddingLevel();for(;o&&o.providedColumnGroup.level+r>t;)o=o.parent,r=r>0?r-1:0}return o},Wh=(e,t)=>{const o=Mo(t,!0,!0),r=o&&e.getColAfter(o),i=t.providedColumnGroup.level+t.getPaddingLevel();return r?Gh(r,i):null},ei="ROOT_NODE_ID",fa="rowGroupFooter_",pl="detail_",ti=fa+ei;function ar(e){return typeof e=="object"&&!!e.component}var JS={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},XS={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"],requiresBlockWrapper:!0},$S={name:"headerComponent",optionalMethods:["refresh"]},e2={name:"innerHeaderComponent"},t2={name:"innerHeaderGroupComponent"},o2={name:"headerGroupComponent"},r2={name:"innerRenderer",supportsJsFunction:!0,optionalMethods:["afterGuiAttached"]},i2={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],supportsJsFunction:!0},a2={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],supportsJsFunction:!0},n2={name:"loadingCellRenderer",supportsJsFunction:!0},s2={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh","getValidationErrors","getValidationElement"]},l2={name:"tooltipComponent",requiresBlockWrapper:!0},qh={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},c2={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},d2={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],supportsJsFunction:!0},g2={name:"loadingCellRenderer",supportsJsFunction:!0},u2={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],supportsJsFunction:!0},h2={name:"detailCellRenderer",optionalMethods:["refresh"],supportsJsFunction:!0};function p2(e,t){return e.getCompDetailsFromGridOptions(XS,"agDragAndDropImage",t,!0)}function f2(e,t,o){return e.getCompDetails(t,r2,void 0,o)}function m2(e,t,o){return e.getCompDetails(t,$S,"agColumnHeader",o)}function v2(e,t,o){return e.getCompDetails(t,e2,void 0,o)}function w2(e,t){const o=t.columnGroup.getColGroupDef();return e.getCompDetails(o,o2,"agColumnGroupHeader",t)}function b2(e,t,o){return e.getCompDetails(t,t2,void 0,o)}function C2(e,t){return e.getCompDetailsFromGridOptions(d2,void 0,t,!0)}function y2(e,t){return e.getCompDetailsFromGridOptions(g2,"agLoadingCellRenderer",t,!0)}function S2(e,t){return e.getCompDetailsFromGridOptions(u2,"agGroupRowRenderer",t,!0)}function x2(e,t){return e.getCompDetailsFromGridOptions(h2,"agDetailCellRenderer",t,!0)}function fl(e,t,o){return e.getCompDetails(t,i2,void 0,o)}function k2(e,t,o){return e.getCompDetails(t,a2,void 0,o)}function Uh(e,t,o){return e.getCompDetails(t,n2,"agSkeletonCellRenderer",o,!0)}function _h(e,t,o){return e.getCompDetails(t,s2,"agCellEditor",o,!0)}function jh(e,t,o,r){const i=t.filter;return ar(i)&&(t={filter:i.component,filterParams:t.filterParams}),e.getCompDetails(t,qh,r,o,!0)}function E2(e,t,o){return e.getCompDetails(t,JS,"agDateInput",o,!0)}function R2(e,t,o){return e.getCompDetails(o??{},l2,"agTooltipComponent",t,!0)}function Kh(e,t,o,r){return e.getCompDetails(t,c2,r,o)}function ma(e,t,o){return e.mergeParams(t,qh,o)}var Yh=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(Yh||{}),F2=class extends a1{createEvent(e){return W(this.gos,e)}createDragImageComp(e){const{gos:t,beans:o}=this;return p2(o.userCompFactory,W(t,{dragSource:e}))?.newAgStackInstance()}handleEnter(e,t){e?.onGridEnter?.(t)}handleExit(e,t){e?.onGridExit?.(t)}warnNoBody(){this.beans.log.warn(54)}isDropZoneWithinThisGrid(e){return this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody.contains(e.dropZoneTarget)}registerGridDropTarget(e,t){const o={getContainer:e,isInterestedIn:r=>r===1||r===0,getIconName:()=>"notAllowed"};this.addDropTarget(o),t.addDestroyFunc(()=>this.removeDropTarget(o))}};function ml(e){return!!e.operator}var Qh=class extends Q1{},X=class extends Ko{},Zh={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",bigintFilter:"BigInt 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",yesterday:"Yesterday",today:"Today",tomorrow:"Tomorrow",last7Days:"Last 7 Days",lastWeek:"Last Week",thisWeek:"This Week",nextWeek:"Next Week",last30Days:"Last 30 Days",lastMonth:"Last Month",thisMonth:"This Month",nextMonth:"Next Month",last90Days:"Last 90 Days",lastQuarter:"Last Quarter",thisQuarter:"This Quarter",nextQuarter:"Next Quarter",lastYear:"Last Year",thisYear:"This Year",yearToDate:"Year To Date",nextYear:"Next Year",last6Months:"Last 6 Months",last12Months:"Last 12 Months",last24Months:"Last 24 Months",filterSummaryInRangeValues:e=>`(${e[0]}, ${e[1]})`,filterSummaryTextQuote:e=>`"${e[0]}"`,minDateValidation:e=>`Date must be after ${e[0]}`,maxDateValidation:e=>`Date must be before ${e[0]}`,minDateInclusiveValidation:e=>`Date must be on or after ${e[0]}`,maxDateInclusiveValidation:e=>`Date must be on or before ${e[0]}`,strictMinValueValidation:e=>`Must be greater than ${e[0]}`,strictMaxValueValidation:e=>`Must be less than ${e[0]}`,minValueValidation:e=>`Must be greater than or equal to ${e[0]}`,maxValueValidation:e=>`Must be less than or equal to ${e[0]}`};function Jh(e){return Un(Zh,e)}function Xh(e,t){return t==null?"":Jh(t)?ot(e,t):e.getLocaleTextFunc()(t,t)}function ot(e,t,o){return Uy(e,Zh,t,o)}function vl(e,t,o){const{debounceMs:r}=t;return nr(t)?(r!=null&&e.warn(71),0):r??o}function nr(e){return(e.buttons?.indexOf("apply")??-1)>=0}function $h(e,t,o){const r=t.getCustomOption(o);return r?e.getLocaleTextFunc()(r.displayKey,r.displayName):Xh(e,o)}function ep(e,t,o,r,i){let a=ot(e,o);if(typeof t=="function"){const n=$h(e,i,r);a=t({filterOptionKey:r,filterOption:n,placeholder:a})}else typeof t=="string"&&(a=t);return a}var tp=class extends X{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.positionableFeature=this.createBean(new Qh(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}))}init(e){const t=e;this.setParams(t),this.setModelIntoUi(t.state.model,!0).then(()=>this.updateUiVisibility())}areStatesEqual(e,t){return e===t}refresh(e){const t=e,o=this.params;this.params=t;const{source:r,state:i,additionalEventAttributes:a}=t;r==="colDef"&&this.updateParams(t,o);const n=this.state;this.state=i;const s=a?.fromAction;return(s&&s!=="apply"||i.model!==n.model||!this.areStatesEqual(i.state,n.state))&&this.setModelIntoUi(i.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=nr(e),this.setupApplyDebounced()}doesFilterPass(e){this.beans.log.warn(283);const{getHandler:t,model:o,column:r}=this.params;return t().doesFilterPass({...e,model:o,handlerParams:this.beans.colFilter.getHandlerParams(r)})}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return this.beans.log.warn(284),this.params.model!=null}setupApplyDebounced(){const e=vl(this.beans.log,this.params,this.defaultDebounceMs),t=se(this,this.checkApplyDebounce.bind(this),e);this.applyDebounced=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.doApplyModel())}getModel(){return this.beans.log.warn(285),this.params.model}setModel(e,t){t||this.beans.log.warn(286);const{beans:o,params:r}=this;return o.colFilter.setModelForColumnLegacy(r.column,e)}applyModel(e="api"){return this.doApplyModel()}canApply(e){return!0}doApplyModel(e){const{params:t,state:{valid:o=!0,model:r}}=this;if(!o)return!1;const i=!this.areModelsEqual(t.model,r);return i&&t.onAction("apply",e),i}onNewRowsLoaded(){}onUiChanged(e,t=!1){this.updateUiVisibility();const o=this.getModelFromUi(),r={model:o,state:this.getState(),valid:this.canApply(o)};this.state=r;const{params:i,gos:a,eventSvc:n,applyActive:s}=this;i.onStateChange(r),i.onUiChange(this.getUiChangeEventParams()),a.get("enableFilterHandlers")||n.dispatchEvent({type:"filterModified",column:i.column,filterInstance:this}),r.valid&&(e??(e=s?void 0:"debounce"),e==="immediately"?(this.debouncePending=!1,this.doApplyModel({afterFloatingFilter:t,afterDataChange:!1})):e==="debounce"&&this.applyDebounced())}onUiCleared(){this.onUiChanged(this.applyActive?"prevent":"immediately")}getState(){}getUiChangeEventParams(){}afterGuiAttached(e){this.lastContainerType=e?.container,this.refreshFilterResizer(e?.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:o}=this;if(!t)return;const r=e==="floatingFilter"||e==="columnFilter";r?(t.restoreLastSize(),t.setResizable(o.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(r)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature?.constrainSizeToAvailableHeight(!1)}destroy(){this.positionableFeature=this.destroyBean(this.positionableFeature),super.destroy()}translate(e,t){return ot(this,e,t)}getPositionableElement(){return this.getGui()}areModelsEqual(e,t){return e===t||e==null&&t==null?!0:e==null||t==null?!1:this.areNonNullModelsEqual(e,t)}},M2=["aggregation","filter","sort","pivot","columnVisibility","columnSizing","rowGroup"],oi=class extends ws{constructor(){super(...arguments),this.errorMessages=null}init(e){this.params=e,this.initialiseEditor(e),this.eEditor.onValueChange(()=>e.validate())}destroy(){this.eEditor.destroy(),this.errorMessages=null,super.destroy()}},wl="row-group-",va="t-",wa="b-",D2=0,vt=class{constructor(e){this.id=void 0,this.destroyed=!1,this._groupData=void 0,this.master=!1,this.detail=void 0,this.rowIndex=null,this.field=null,this.rowGroupColumn=null,this.key=null,this.sourceRowIndex=-1,this._leafs=void 0,this.childrenAfterGroup=null,this.childrenAfterFilter=null,this.childrenAfterAggFilter=null,this.childrenAfterSort=null,this.allChildrenCount=null,this.childrenMapped=null,this.treeParent=null,this.treeNodeFlags=0,this._expanded=void 0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=D2++,this.alreadyRendered=!1,this.formulaRowIndex=null,this.hovered=!1,this.__selected=!1,this.beans=e}get groupData(){const e=this._groupData;return e!==void 0?e:this.footer?this.sibling?.groupData??null:this.beans.groupStage?.loadGroupData(this)??null}set groupData(e){this._groupData=e}get primaryRow(){let e=this.footer&&this.sibling||this;if(e.rowPinned){const t=e.pinnedSibling;t&&(e=t,e.footer&&(e=e.sibling??e))}return e}get allLeafChildren(){const e=this._leafs;return e===void 0?this.beans.groupStage?.loadLeafs?.(this)??null:e}set allLeafChildren(e){this._leafs=e}get expanded(){const e=this.beans.expansionSvc;return e?e.isExpanded(this):this.level===-1?!0:!!this._expanded}set expanded(e){this._expanded=e}setData(e){this.setDataCommon(e,"set")}updateData(e){this.setDataCommon(e,"update")}_updateDataNoSibling(e){this.setDataCommon(e,"updateNoSibling")}setDataCommon(e,t){const{valueCache:o,eventSvc:r}=this.beans,i=this.data,a=t!=="set";this.data=e,o?.onDataChanged(),this.updateDataOnDetailNode(),this.resetQuickFilterAggregateText();const n=this.createDataChangedEvent(e,i,a);if(this.__localEventService?.dispatchEvent(n),t!=="updateNoSibling"){const l=this.sibling;if(l){l.data=e;const c=l.createDataChangedEvent(e,i,a);l.__localEventService?.dispatchEvent(c)}}r.dispatchEvent({type:"rowNodeDataChanged",node:this});const s=this.pinnedSibling;s&&(s.data=e,s.__localEventService?.dispatchEvent(s.createDataChangedEvent(e,i,a)),r.dispatchEvent({type:"rowNodeDataChanged",node:s}))}updateDataOnDetailNode(){const e=this.detailNode;e&&(e.data=this.data)}createDataChangedEvent(e,t,o){return{type:"dataChanged",node:this,oldData:t,newData:e,update:o}}getRowIndexString(){return this.rowIndex==null?(this.beans.log.error(13),null):this.rowPinned==="top"?va+this.rowIndex:this.rowPinned==="bottom"?wa+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){const o=this.beans.selectionSvc,r=o?.createDaemonNode?.(this),i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),o?.syncInRowNode(this,r);const a=this.__localEventService;if(a){const n=this.createDataChangedEvent(e,i,!1);a.dispatchEvent(n)}}setId(e){const t=this.beans,o=So(t);if(!o){this.id=e;return}const r=this.data;if(r==null){this.id=void 0;return}const i=this.parent?.getRoute()??[],a=o({data:r,parentKeys:i.length>0?i:void 0,level:this.level,rowPinned:this.rowPinned});this.id=a,a.startsWith(wl)?t.log.error(14,{groupPrefix:wl}):a===ei&&t.log.error(331,{rowId:a})}setRowTop(e){if(this.oldRowTop=this.rowTop,this.rowTop===e)return;this.rowTop=e,this.dispatchRowEvent("topChanged");const t=e!==null;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,o){this.beans.expansionSvc?.setExpanded(this,e,t,o)}setDataValue(e,t,o){const{colModel:r,valueSvc:i,gos:a,editSvc:n}=this.beans;if(e==null)return!1;let s=r.getCol(e);if(!s)return!1;s=Jt(s,this);const l=i.getDisplayValue(s,this,"data",!1);if(a.get("readOnlyEdit")){const{beans:{eventSvc:d},data:g,rowIndex:u,rowPinned:h}=this;return d.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:u,rowPinned:h,column:s,colDef:s.colDef,data:g,node:this,oldValue:l,newValue:t,value:t,source:o}),!1}if(o!=="data"&&n&&!n.committing){const d=n.setDataValue({rowNode:this,column:s},t,o);if(d!=null)return d}const c=i.setValue(this,s,t,o);return this.dispatchCellChangedEvent(s,t,l),c&&this.pinnedSibling?.dispatchCellChangedEvent(s,t,l),c}getDataValue(e,t){const o=this.beans,r=o.colModel.getCol(e);if(!r)return;let i;if(t==="data"||!t){if(i=o.valueSvc.getValueFromData(Jt(r,this),this,!1),i==null)return i}else{if(t==="transformed")return o.valueSvc.getTransformedValue(Jt(r,this),this);const a=t==="data-raw",n=a||t==="value"?"data":t;if(i=o.valueSvc.getValue(Jt(r,this),this,n,a),a||i==null)return i;if(typeof i=="object"&&r.aggFunc){if(typeof i.toNumber=="function")return i.toNumber();if("value"in i)return i.value}if(t!=="value")return i}if(r.allowFormula){const a=o.formula;a?.isFormula(i)&&(i=a.resolveValue(r,this))}return i}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 this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,o){const r={type:"cellChanged",node:this,column:e,newValue:t,oldValue:o};this.__localEventService?.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){return this.beans.expansionSvc?.isExpandable(this)??!1}isSelected(){if(this.footer){const t=this.sibling;return t?t.isSelected():!1}const e=this.rowPinned&&this.pinnedSibling;return e?e.isSelected():this.__selected}depthFirstSearch(e){const t=this.childrenAfterGroup;if(t)for(let o=0,r=t.length;o<r;++o)t[o].depthFirstSearch(e);e(this)}getAggregatedChildren(e,t){const o=this.beans;return o.aggChildrenSvc?.getAggregatedChildren(this,o.colModel.getCol(e),t)??[]}dispatchRowEvent(e){this.__localEventService?.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,o="api"){this.beans.selectionSvc?.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:o})}isRowPinned(){return!!this.rowPinned}__addEventListener(e,t){let o=this.__localEventService;o||(o=new _e,this.__localEventService=o),o.addEventListener(e,t)}__removeEventListener(e,t){const o=this.__localEventService;o&&(o.removeEventListener(e,t),o.noRegisteredListenersExist()&&(this.__localEventService=null))}addEventListener(e,t){if(this.beans.validation?.checkRowEvents(e),typeof t!="function")return;let o=this.__localEventService;o||(o=new _e,this.__localEventService=o);const r=this.beans.frameworkOverrides.wrapLocalListener?.(o,e,t)??t;o.addEventListener(e,r)}removeEventListener(e,t){const o=this.__localEventService;if(!o)return;const r=o.listenerWrapper?.unwrap(e,t)??t;o.removeEventListener(e,r),o.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(this.beans.log.warn(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t?.key!=null;)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}_destroy(e){if(this.destroyed)return!1;this.destroyed=!0;const t=this.beans;t.editSvc?.releaseRowEdits(this);const o=this.pinnedSibling;if(o?.rowPinned&&t.pinnedRowModel?.pinRow(o,null),e===!0?this.clearRowTopAndRowIndex():e===!1?(this.setRowTop(null),this.setRowIndex(null)):(this.oldRowTop=null,this.rowTop=null,this.rowIndex=null,this.displayed=!1),!this.footer&&!(this.rowPinned&&o)){const r=this.detailNode;r&&r._destroy(e);const i=this.sibling;i&&i._destroy(e)}return!0}};function bl(e,t,o){return W(t,{type:o,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var P2=new Set(["__autoContentHeight","__autoHeights","__localEventService","__objectId","_groupData","_leafs","childStore","destroyed","groupValue","oldRowTop","pinnedSibling","rowHeight","rowHeightEstimated","rowPinned","sticky","treeNodeFlags","treeParent"]),op=(e,t)=>{const o=new vt(t);for(const r of Object.keys(e))P2.has(r)||(o[r]=e[r]);return o.oldRowTop=null,o},ba=(e,t,o)=>{if(!o)return;let r=o.rowIndex;if(r==null)return;r+=t;const i=e.getRowCount();for(;r>=0&&r<i;){const a=e.getRow(r);if(!a||!a.footer&&!a.detail)return a;r+=t}},Cl=e=>{let t=e;for(;t;){if(t.footer){t=t.sibling??t.parent;continue}if(t.rowIndex!=null&&!t.detail&&t.parent)return t;t=t.parent}return null},rp=class{constructor(e,t){this.beans=e,this.floating=t,this.all=new Set,this.hidden=new Set,this.queued=new Set,this.sorted=[],this.sortedValid=!0}getDisplayedCount(){return this.all.size-this.hidden.size}getSorted(){const e=this.sorted;return this.sortedValid||(this.sortedValid=!0,T2(this.beans,this.all,this.hidden,e)),e}add(e,t){const o=this.all;o.has(e)||(o.add(e),t?this.hidden.add(e):this.sortedValid=!1)}delete(e){this.beans.editSvc?.releaseRowEdits(e),this.all.delete(e)&&(this.hidden.delete(e)||(this.sortedValid=!1))}getById(e){const t=this.hidden;for(const o of this.all)if(o.id==e&&!t.has(o))return o}refreshVisibility(){const{beans:e,hidden:t}=this;let o=!1;for(const r of this.all)ap(e,r.pinnedSibling)?t.has(r)||(t.add(r),r.setRowTop(null),r.setRowIndex(null),o=!0):o=t.delete(r)||o;return this.sortedValid=!1,o}},T2=(e,t,o,r)=>{const{sortSvc:i,rowNodeSorter:a,gos:n}=e;r.length=0;let s;for(const c of t)o.has(c)||(np(c)?s=c:r.push(c));const l=i?.getSortOptions()??[];if(r.sort((c,d)=>a?.compareRowNodes(l,c,d)||(c.pinnedSibling?.rowIndex??0)-(d.pinnedSibling?.rowIndex??0)),s){const c=tr(n);c==="bottom"||c==="pinnedBottom"?r.push(s):r.unshift(s)}},ip=e=>{if(e.level===-1)return!0;const t=e.parent;return!!t?.childrenAfterSort?.includes(e)&&ip(t)},ap=(e,t)=>{const{gos:o,rowModel:r,filterManager:i}=e;return Kt(o,r)?!r.getRowNode(t.id):o.get("pivotMode")&&!t.group?!0:!!i?.isAnyFilterPresent()&&!ip(t)},A2=e=>!!e.footer&&e.level===-1,np=e=>!!e.pinnedSibling&&A2(e.pinnedSibling),sp=class extends x{constructor(){super(...arguments),this.userGrandTotalPinned=null}postConstruct(){const{gos:e,beans:t}=this;this.top=new rp(t,"top"),this.bottom=new rp(t,"bottom");const o=()=>{const r=e.get("isRowPinned"),i=[];r&&e.get("enableRowPinning")&&t.rowModel.forEachNode(a=>this.pinLoaded(a,r(a),i),!0),this.dispatchPinningChanged(i)};Or(this,()=>{dp(this.top),dp(this.bottom),this.ensureRowHeightsValid()}),this.addManagedEventListeners({modelUpdated:({keepRenderedRows:r})=>{const i=[];this.emptyQueue(this.top,i),this.emptyQueue(this.bottom,i),this.pinGrandTotalRow(i);const a=this.top.refreshVisibility(),n=this.bottom.refreshVisibility()||a,s=this.refreshRowPositions();(!r||s||n||i.length)&&this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),cp(i)},columnRowGroupChanged:()=>{const r=this.detachPinnedRows(z2);r.length&&this.dispatchPinningChanged(r)},rowNodeDataChanged:({node:r})=>{(e.get("isRowPinnable")?.(r)??!0)||this.pinRow(r,null)},firstDataRendered:o}),this.addManagedPropertyListener("pivotMode",()=>{this.top.refreshVisibility(),this.bottom.refreshVisibility(),this.refreshRowPositions(),this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"})}),this.addManagedPropertyListener("isRowPinned",o)}destroy(){this.reset(!1),super.destroy()}reset(e=!0){const t=this.detachPinnedRows(e?Ca:I2);e&&this.dispatchPinningChanged(t)}pinRow(e,t,o){if(t!=null&&e.destroyed)return;if(e.footer){if(e.level>-1)return;if(!(t==null&&!!(e.rowPinned?e.pinnedSibling:e)?.destroyed)){this.refreshGrandTotalPin(this.takeUserGrandTotalPin(t));return}}const r=o&&O2(this.beans,e,o),i=[];for(const a of r??[e])this.collectPinChange(a,t,i);i.length&&this.dispatchPinningChanged(i)}isManual(){return!0}isEmpty(e){return this.getContainer(e).getDisplayedCount()===0}isRowsToRender(e){return!this.isEmpty(e)}ensureRowHeightsValid(){const e=hp(this.beans,this.bottom),t=hp(this.beans,this.top)||e;return t&&this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),t}getPinnedTopTotalHeight(){return fp(this.top)}getPinnedBottomTotalHeight(){return fp(this.bottom)}getPinnedTopRowCount(){return this.top.getDisplayedCount()}getPinnedBottomRowCount(){return this.bottom.getDisplayedCount()}getPinnedTopRow(e){return this.top.getSorted()[e]}getPinnedBottomRow(e){return this.bottom.getSorted()[e]}getPinnedRowById(e,t){return this.getContainer(t).getById(e)}forEachPinnedRow(e,t){const o=this.getContainer(e),r=o.getSorted();for(let i=0;i<o.getSorted().length;++i)t(r[i],i)}getPinnedState(){const e={top:lp(this.top),bottom:lp(this.bottom)},t=this.userGrandTotalPinned;return t&&e[t].push(ti),e}setPinnedState(e){const{top:t,bottom:o}=this,r=t.queued,i=o.queued;r.clear(),i.clear();for(const s of e.bottom)i.add(s);for(const s of e.top)i.has(s)||r.add(s);let a=null;i.delete(ti)?a="bottom":r.delete(ti)&&(a="top"),this.takeUserGrandTotalPin(a);const n=this.detachPinnedRows(s=>{const l=s.pinnedSibling?.id;return Ca(s)&&(l==null||!(r.has(l)||i.has(l)))});this.emptyQueue(t,n),this.emptyQueue(o,n),this.pinGrandTotalRow(n),this.dispatchPinningChanged(n)}getUserGrandTotalPinned(){return this.userGrandTotalPinned}setGrandTotalNode(e){this.grandTotalNode=e}resetGrandTotalPin(){const e=this.userGrandTotalPinned;this.userGrandTotalPinned=null,this.refreshGrandTotalPin(e!=null)}refreshGrandTotalPin(e){const t=[];this.pinGrandTotalRow(t),(e||t.length)&&this.dispatchPinningChanged(t)}takeUserGrandTotalPin(e){const t=tr(this.gos);return!t||As(t)||!ve(this.gos)?!1:(this.userGrandTotalPinned=e,!0)}emptyQueue(e,t){const{queued:o,floating:r}=e,i=this.beans.rowModel;for(const a of o){const n=i.getRowNode(a);n&&(o.delete(a),this.pinLoaded(n,r,t))}}pinLoaded(e,t,o){e.footer?e.level===-1&&(this.takeUserGrandTotalPin(t),this.pinGrandTotalRow(o)):this.collectPinChange(e,t,o)}collectPinChange(e,t,o){const r=e.rowPinned?e:e.pinnedSibling,i=t?this.attachPinnedRow(e,t):this.detachPinnedRow(r);i&&o.push(i)}pinGrandTotalRow(e){const{grandTotalNode:t,pinnedGrandTotalNode:o}=this;if(!t&&!o)return;const r=As(tr(this.gos))??this.userGrandTotalPinned,i=r&&t&&!t.destroyed?t:void 0;if(o?o.pinnedSibling===i&&o.rowPinned===r:!i)return;const a=this.detachPinnedRow(o);a&&a!==i&&e.push(a);let n;r&&i&&(n=pp(this.beans,i,r),this.getContainer(r).add(n,!1),e.push(i)),this.pinnedGrandTotalNode=n}getContainer(e){return e==="top"?this.top:this.bottom}findPinnedRowNode(e){if(this.top.all.has(e))return this.top;if(this.bottom.all.has(e))return this.bottom}detachPinnedRow(e){const t=e&&this.findPinnedRowNode(e);if(!t)return;t.delete(e);const o=e.pinnedSibling;return L2(e),o}detachPinnedRows(e){const t=[];gp(this.top,e,t),gp(this.bottom,e,t);const o=[];for(let r=0,i=t.length;r<i;++r){const a=this.detachPinnedRow(t[r]);a&&o.push(a)}return o}attachPinnedRow(e,t){const o=e.rowPinned?e.pinnedSibling:e;if(!o||o.destroyed||o.pinnedSibling?.rowPinned===t)return;this.detachPinnedRow(o.pinnedSibling);const r=ap(this.beans,o);return this.getContainer(t).add(pp(this.beans,o,t),r),o}dispatchPinningChanged(e){this.refreshRowPositions(),this.eventSvc.dispatchEvent({type:"pinnedRowsChanged"}),cp(e)}refreshRowPositions(){const e=this.beans,t=up(e,this.top);return up(e,this.bottom)||t}},Ca=e=>!np(e),I2=()=>!0,z2=e=>!!e.group&&Ca(e),lp=e=>{const t=[];for(const o of e.all){const r=o.pinnedSibling?.id;r!=null&&Ca(o)&&t.push(r)}for(const o of e.queued)t.push(o);return t},cp=e=>{for(let t=0,o=e.length;t<o;++t)e[t].dispatchRowEvent("rowPinned")},dp=e=>{for(const t of e.all)t.setRowHeight(t.rowHeight,!0)},gp=(e,t,o)=>{for(const r of e.all)t(r)&&o.push(r)},up=(e,t)=>{const o=t.getSorted();let r=0,i=!1;for(let a=0,n=o.length;a<n;++a){const s=o[a];if(i||(i=s.rowTop!==r),s.setRowTop(r),s.rowHeightEstimated||s.rowHeight==null){const l=Yt(e,s).height;i||(i=s.rowHeight!==l),s.setRowHeight(l)}s.setRowIndex(a),r+=s.rowHeight}return i},hp=(e,t)=>{const o=t.getSorted();let r=0,i=!1;for(let a=0,n=o.length;a<n;++a){const s=o[a];if(s.rowHeightEstimated){const l=Yt(e,s).height;i||(i=s.rowTop!==r||s.rowHeight!==l),s.setRowTop(r),s.setRowHeight(l),r+=l}}return i},pp=(e,t,o)=>{if(t.pinnedSibling)return t.pinnedSibling;const r=op(t,e);r.setRowTop(null),r.setRowIndex(null),r.rowPinned=o;const i=o==="top"?va:wa;return r.id=`${i}${o}-${t.id}`,r.pinnedSibling=t,t.pinnedSibling=r,r},L2=e=>{const t=e.pinnedSibling;t&&(e._destroy(!1),e.rowPinned=null,e.pinnedSibling=void 0,t.pinnedSibling=void 0,t.rowPinned=null)},O2=(e,t,o)=>{const r=e.rowSpanSvc;return r?.isCellSpanning(o,t)?r.getCellSpan(o,t)?.spannedNodes:void 0},fp=e=>{const t=e.getSorted().at(-1);return t?t.rowTop+t.rowHeight:0},mp=class extends x{constructor(){super(...arguments),this.nextId=0,this.pinnedTopRows={cache:new Map,order:[]},this.pinnedBottomRows={cache:new Map,order:[]},this.topHeight=0,this.bottomHeight=0}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")),Or(this,()=>{vp(this.pinnedBottomRows.order),vp(this.pinnedTopRows.order),this.ensureRowHeightsValid()})}reset(){}isEmpty(e){return this.getCache(e).order.length===0}isRowsToRender(e){return!this.isEmpty(e)}isManual(){return!1}pinRow(e,t){}ensureRowHeightsValid(){const e=this.beans,t=wp(e,this.pinnedBottomRows.order),o=wp(e,this.pinnedTopRows.order),r=ya(this.pinnedTopRows),i=ya(this.pinnedBottomRows);return!t&&!o&&r===this.topHeight&&i===this.bottomHeight?!1:(this.topHeight=r,this.bottomHeight=i,this.eventSvc.dispatchEvent({type:"pinnedHeightChanged"}),!0)}setPinnedRowData(e,t){this.updateNodesFromRowData(e,t),this.eventSvc.dispatchEvent({type:"pinnedRowDataChanged"})}updateNodesFromRowData(e,t){const o=this.getCache(t),r=o.cache;if(e===void 0){const g=o.order;for(let u=0,h=g.length;u<h;++u)g[u].clearRowTopAndRowIndex();o.order=[],r.clear();return}const i=So(this.beans),a=t==="top"?va:wa,n=[],s=new Set;let l=0,c=-1;for(const g of e){const u=i?.({data:g,level:0,rowPinned:t})??a+this.nextId++;if(s.has(u)){this.warn(96,{id:u,data:g});continue}c++,s.add(u);const h=r.get(u);if(h!==void 0)h.data!==g&&h.updateData(g),l+=this.setRowTopAndRowIndex(h,l,c),n.push(h);else{const p=new vt(this.beans);p.id=u,p.data=g,p.rowPinned=t,l+=this.setRowTopAndRowIndex(p,l,c),r.set(u,p),n.push(p)}}const d=o.order;for(let g=0,u=d.length;g<u;++g){const h=d[g],p=h.id;s.has(p)||(h.clearRowTopAndRowIndex(),r.delete(p))}o.order=n}setRowTopAndRowIndex(e,t,o){return e.setRowTop(t),e.setRowHeight(Yt(this.beans,e).height),e.setRowIndex(o),e.rowHeight}getPinnedTopTotalHeight(){return ya(this.pinnedTopRows)}getPinnedBottomTotalHeight(){return ya(this.pinnedBottomRows)}getPinnedTopRowCount(){return this.pinnedTopRows.order.length}getPinnedBottomRowCount(){return this.pinnedBottomRows.order.length}getPinnedTopRow(e){return this.pinnedTopRows.order[e]}getPinnedBottomRow(e){return this.pinnedBottomRows.order[e]}getPinnedRowById(e,t){return this.getCache(t).cache.get(e)}forEachPinnedRow(e,t){const{cache:o,order:r}=this.getCache(e);for(let i=0,a=r.length;i<a;++i){const n=r[i];o.get(n.id)===n&&t(n,i)}}getCache(e){return e==="top"?this.pinnedTopRows:this.pinnedBottomRows}getPinnedState(){return{top:[],bottom:[]}}setPinnedState(){}getUserGrandTotalPinned(){}setGrandTotalNode(){}resetGrandTotalPin(){}};function ya(e){const t=e.order,o=t.length;if(o===0)return 0;const r=t[o-1];return r.rowTop+r.rowHeight}function vp(e){for(let t=0,o=e.length;t<o;++t){const r=e[t];r.setRowHeight(r.rowHeight,!0)}}function wp(e,t){let o=!1,r=0;for(let i=0,a=t.length;i<a;++i){const n=t[i];if(n.rowHeightEstimated){const s=Yt(e,n).height;o||(o=s!==n.rowHeight),n.setRowHeight(s)}n.rowTop!==r&&(n.setRowTop(r),o=!0),r+=n.rowHeight}return o}var bp=class extends x{constructor(){super(...arguments),this.beanName="pinnedRowModel"}postConstruct(){const{gos:e}=this,t=()=>{const o=e.get("enableRowPinning"),r=tr(e),a=!!o||(r==="pinnedBottom"||r==="pinnedTop"),n=this.inner,s=a?n instanceof mp:n instanceof sp;if(n&&s&&(n.resetGrandTotalPin(),this.destroyBean(n)),s||!n){const l=this.createManagedBean(a?new sp:new mp);return this.inner=l,l.setGrandTotalNode(this.grandTotalNode),l.resetGrandTotalPin(),!0}return!1};this.addManagedPropertyListener("enableRowPinning",t),this.addManagedPropertyListener("grandTotalRow",()=>{t()||this.inner.resetGrandTotalPin()}),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,o){return this.inner.pinRow(e,t,o)}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)}getUserGrandTotalPinned(){return this.inner.getUserGrandTotalPinned()}setGrandTotalNode(e){return this.grandTotalNode=e,this.inner.setGrandTotalNode(e)}resetGrandTotalPin(){return this.inner.resetGrandTotalPin()}},Cp=(e=>(e.Applied="Applied",e.StoreNotFound="StoreNotFound",e.StoreLoading="StoreLoading",e.StoreWaitingToLoad="StoreWaitingToLoad",e.StoreLoadingFailed="StoreLoadingFailed",e.StoreWrongType="StoreWrongType",e.Cancelled="Cancelled",e.StoreNotStarted="StoreNotStarted",e))(Cp||{}),V2=500,B2=Yo?0:550,yp="__ag_Grid_Touch_Listener_State",ri=e=>{const t=e;return t[yp]??(t[yp]={})},H2=e=>{const t=ri(e);return t.touchStartClaimed?!1:(t.touchStartClaimed=!0,!0)},yl=(e,t)=>{const o=ri(e);let r=o.handledEvents;if(!r)r=new Set,o.handledEvents=r;else if(r.has(t))return!1;return r.add(t),!0},eo=class{constructor(e,t){this.eElement=e,this.startListener=null,this.handlers=[],this.eventSvc=void 0,this.touchStart=null,this.lastTapTime=null,this.longPressTimer=0,this.moved=!1,this.longTapFired=!1,this.longTapTargetResolved=!1,this.touchStartEvent=null,this.listenerCounts={tap:0,doubleTap:0,longTap:0};const o=typeof t=="boolean"?{preventClick:t}:t;this.preventClick=o?.preventClick??!1,this.capture=o?.capture??!1,this.yieldsLongTap=o?.yieldsLongTap??!1,this.shouldHandleLongTap=o?.shouldHandleLongTap,this.onLongTapDetected=o?.onLongTapDetected,this.shouldTrackTouch=o?.shouldTrackTouch,this.getLongTapTarget=o?.getLongTapTarget}addEventListener(e,t){let o=this.eventSvc;if(!o){if(o===null)return;this.eventSvc=o=new _e;const r=this.onTouchStart.bind(this);this.startListener=r,this.eElement.addEventListener("touchstart",r,{passive:!0,capture:this.capture})}o.addEventListener(e,t),this.listenerCounts[e]++}removeEventListener(e,t){this.eventSvc?.removeEventListener(e,t),this.listenerCounts[e]--}onTouchStart(e){if(this.touchStart||this.shouldTrackTouch?.(e)===!1||!this.capture&&!H2(e))return;const t=e.touches[0];this.touchStart=t,this.touchStartEvent=e,this.registerLongTapCandidate(e);const o=this.handlers;if(!o.length){const r=this.eElement,i=r.ownerDocument??r,a=this.onTouchMove.bind(this),n=this.onTouchEnd.bind(this),s=this.onTouchCancel.bind(this),l=this.onContextMenu.bind(this),c={passive:!0},d={passive:!1};po(o,[r,"touchmove",a,c],[i,"touchcancel",s,c],[i,"touchend",n,d],[i,"contextmenu",l,d])}this.clearLongPress(),this.longPressTimer=window.setTimeout(()=>{if(this.longPressTimer=0,this.touchStart===t&&!this.moved){const r=this.isLongTapOwner(e,t)&&yl(e,"longTap");this.moved=!0,this.longTapFired=r||!!this.onLongTapDetected;const i={type:"longTap",touchStart:t,touchEvent:e};this.onLongTapDetected?.(i),r&&this.eventSvc?.dispatchEvent(i)}},B2)}onTouchMove(e){const{moved:t,touchStart:o}=this;if(!t&&o){const r=jo(o,e.touches);r&&!au(r,o,4)&&(this.clearLongPress(),this.moved=!0)}}onTouchEnd(e){const t=this.touchStart;if(!t||!jo(t,e.changedTouches))return;const o=!!this.touchStartEvent&&ri(this.touchStartEvent).handledEvents?.has("longTap");!this.moved&&!o&&(this.listenerCounts.tap>0&&yl(e,"tap")&&this.eventSvc?.dispatchEvent({type:"tap",touchStart:t}),this.checkDoubleTap(t,e)),(this.preventClick||this.longTapFired)&&Wt(e),this.cancel()}onTouchCancel(e){const t=this.touchStart;!t||!jo(t,e.changedTouches)||(this.lastTapTime=null,this.cancel())}onContextMenu(e){this.resolveLongTapTarget()&&this.canHandleLongTap()&&Wt(e)}canHandleLongTap(){return this.longTapEligible??(this.longTapEligible=this.shouldHandleLongTap?.()??!0)}registerLongTapCandidate(e){if(this.listenerCounts.longTap===0)return;const t=ri(e),o=t.longTapCandidates;o?o.push(this):t.longTapCandidates=[this]}isLongTapOwner(e,t){const o=ri(e).longTapCandidates;let r;for(const i of o??[])if(i.canOwnLongTap(t))if(!r)r=i;else if(r.yieldsLongTap!==i.yieldsLongTap)r.yieldsLongTap&&(r=i);else{const a=r.resolveLongTapTarget(),n=i.resolveLongTapTarget();a!==n&&a.contains(n)&&(r=i)}return r===this}canOwnLongTap(e){return this.touchStart?.identifier===e.identifier&&!this.moved&&this.listenerCounts.longTap>0&&!!this.resolveLongTapTarget()&&this.canHandleLongTap()}resolveLongTapTarget(){if(!this.longTapTargetResolved){this.longTapTargetResolved=!0;const e=this.touchStart,t=this.touchStartEvent;this.longTapTarget=e&&t&&this.getLongTapTarget?this.getLongTapTarget(t,e):this.eElement instanceof Element?this.eElement:void 0}return this.longTapTarget}checkDoubleTap(e,t){let o=Date.now();const r=this.lastTapTime;r&&o-r<=V2&&this.listenerCounts.doubleTap>0&&yl(t,"doubleTap")&&(this.eventSvc?.dispatchEvent({type:"doubleTap",touchStart:e}),o=null),this.lastTapTime=o}cancel(){this.clearLongPress(),$n(this.handlers),this.touchStart=null,this.touchStartEvent=null}clearLongPress(){this.longPressTimer!==0&&(window.clearTimeout(this.longPressTimer),this.longPressTimer=0),this.moved=!1,this.longTapFired=!1,this.longTapEligible=void 0,this.longTapTarget=void 0,this.longTapTargetResolved=!1}destroy(){const e=this.startListener;e&&(this.startListener=null,this.eElement.removeEventListener("touchstart",e,this.capture)),this.cancel(),this.eElement=null,this.eventSvc=null}},Sp=(e=>(e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION",e))(Sp||{});function N2(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var G2=["log","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"],xp=Object.fromEntries(G2.map((e,t)=>[e,t]));function W2(e,t){const o=(e.beanName?xp[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,r=(t.beanName?xp[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return o-r}function q2(e,t){return e?.beanName==="gridDestroySvc"?-1:t?.beanName==="gridDestroySvc"?1:0}function G(e){return gt(e)}function kp(e){const{rowIndex:t,rowPinned:o,column:r}=e;return`${t}.${o??"null"}.${r.getId()}`}function Sa(e,t){const o=e.column===t.column,r=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return o&&r&&i}function Ep(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(L(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex<t.rowIndex}function Rp(e,t){return!e&&!t?!0:!e||!t?!1:e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned}function Sl(e){let t=0,o;const{pinnedRowModel:r,rowModel:i,pageBounds:a}=e;return r?.getPinnedTopRowCount()?o="top":i.getRowCount()?(o=null,t=a.getFirstRow()):r?.getPinnedBottomRowCount()&&(o="bottom"),o===void 0?null:{rowIndex:t,rowPinned:o}}function xl(e){let t,o=null;const{pinnedRowModel:r,pageBounds:i}=e,a=r?.getPinnedBottomRowCount(),n=r?.getPinnedTopRowCount();return a?(o="bottom",t=a-1):e.rowModel.getRowCount()?t=i.getLastRow():n&&(o="top",t=n-1),t===void 0?null:{rowIndex:t,rowPinned:o}}function We(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 Do(e,t){const o=e.spannedRowRenderer?.getCellByPosition(t);return o||e.rowRenderer.getRowByPosition(t)?.getCellCtrl(t.column)}function U2(e,t,o){const{rowModel:r,pinnedRowModel:i}=e;let a;return a??(a=r?.getRowNode(t)),o?a??(a=i?.getPinnedRowById(t,o)):(a??(a=i?.getPinnedRowById(t,"top")),a??(a=i?.getPinnedRowById(t,"bottom"))),a}function ii(e,t,o=!1){const{rowIndex:r,rowPinned:i}=t,{pageBounds:a,pinnedRowModel:n,rowModel:s}=e;if(r===0)return i==="top"?null:i==="bottom"&&s.isRowsToRender()?{rowIndex:a.getLastRow(),rowPinned:null}:n?.isRowsToRender("top")?{rowIndex:n.getPinnedTopRowCount()-1,rowPinned:"top"}:null;if(o){const l=i?void 0:s.getRow(r);return Fp(e,l,!0)??{rowIndex:r-1,rowPinned:i}}return{rowIndex:r-1,rowPinned:i}}function kl(e,t){const{pinnedRowModel:o,rowModel:r}=e,i=o?.getPinnedTopRowCount()??0,a=r.getRowCount(),{rowPinned:n,rowIndex:s}=t;return n==="top"?s:n==="bottom"?i+a+s:i+s}function El(e,t,o=!1){const{rowIndex:r,rowPinned:i}=t,{pageBounds:a,pinnedRowModel:n,rowModel:s}=e;if(_2(e,t))return i==="bottom"?null:i==="top"&&s.isRowsToRender()?{rowIndex:a.getFirstRow(),rowPinned:null}:n?.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;if(o){const l=i?void 0:s.getRow(r);return Fp(e,l)??{rowIndex:r+1,rowPinned:i}}return{rowIndex:r+1,rowPinned:i}}function Fp(e,t,o=!1){const{gos:r,rowRenderer:i}=e;if(!t?.sticky||!Ts(r))return;const a=i.getStickyTopRowCtrls(),n=i.getStickyBottomRowCtrls(),s=!n.some(g=>g.rowNode.rowIndex===t.rowIndex);if(!(s?!o:o))return;const c=s?a:n,d=c.findIndex(g=>g.rowNode.rowIndex===t.rowIndex);if(!(d<=0))return{rowIndex:c[d-1].rowNode.rowIndex,rowPinned:null}}function _2(e,t){const{rowPinned:o,rowIndex:r}=t,{pinnedRowModel:i,pageBounds:a}=e;return o==="top"?(i?.getPinnedTopRowCount()??0)-1<=r:o==="bottom"?(i?.getPinnedBottomRowCount()??0)-1<=r:a.getLastRow()<=r}function Mp(e,t,o){t.addManagedElementListeners(o,{keydown:r=>{if(!r.defaultPrevented&&!Y2(r)&&r.key===y.TAB){const i=r.shiftKey;Xo({beans:e,rootNode:o,backwards:i})||Po(e,i)&&r.preventDefault()}}})}function Dp(e,t){return e.ctrlsSvc.get("gridCtrl")?.focusInnerElement(t)??!1}function Ve(e){return e.gos.get("suppressHeaderFocus")||!!e.overlays?.exclusive}function ai(e){return e.gos.get("suppressCellFocus")||!!e.overlays?.exclusive}function Po(e,t,o="auto"){const r=e.ctrlsSvc.get("gridCtrl");if(!r)return!1;const i=r.focusNextInnerContainer(t);return i===!0?!0:i===!1?i:o==="direct"?r.focusNextElementOutsideContainer(t):((o==="force"||!t&&!r.isDetailGrid()&&r.isFocusInsideGridBody())&&r.forceFocusOutOfContainer(t),!1)}function Pp(e,t){const o=e.focusSvc,r=o.getFocusedCell();if(r&&t&&Sa(r,t)){const{rowIndex:i,rowPinned:a,column:n}=t;kr(e)&&o.setFocusedCell({rowIndex:i,column:n,rowPinned:a,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!Fu()})}}function j2(e,t){const o=e.getFocusableContainerName();return o==="gridBody"?t():Tp(e,()=>Qe(e.getGui(),".ag-tab-guard").length>0)?o:null}function Tp(e,t){e.setAllowFocus?.(!0);try{return t()}finally{e.setAllowFocus?.(!1)}}var Ap="__ag_Grid_Skip_Focusable_Container";function K2(e){e[Ap]=!0}function Y2(e){return e[Ap]===!0}var Ip="__ag_Grid_Stop_Propagation";function to(e){e[Ip]=!0}function rt(e){return e[Ip]===!0}var sr={isStopPropagation:rt,stopPropagation:to},ni=class extends Pu{constructor(e,t){super(e,sr,t)}};function zp(e){return e.ready?e.colsTreeDepth+1:-1}function Je(e){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getRowCount()??0}function lr(e,t,o){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getHeaderCtrlForColumn(t)?.getAnchorElementForMenu(o)}function xa(e,t,o){return()=>o.isConnected?o:e.ctrlsSvc.getHeaderRowContainerCtrl()?.getHtmlElementForColumnHeader(t)??o}function Lp(e,t){return e.ctrlsSvc.getHeaderRowContainerCtrl()?.getFloatingFilterCtrlForColumn(t)?.getAnchorElementForMenu()}function Rl(e){const{ctrlsSvc:t,colModel:o,filterManager:r}=e,i=t.getHeaderRowContainerCtrl()?.getRowCount(),a=Math.max(zp(o),0)+(r?.hasFloatingFilters()?1:0);return(i??a)+(r?.getHeaderRowCount()??0)}function Fl(e){const t=[],o=e.ctrlsSvc.getHeaderRowContainerCtrl();if(!o)return t;const r=o.getGroupRowCount()||0;for(let i=0;i<r;i++){const a=o.getGroupRowCtrlAtIndex(i),n=t[i];if(a){const s=Q2(e,a);(n==null||s>n)&&(t[i]=s)}}return t}function Q2(e,t){let r=e.colModel.pivotMode?J2(e):Op(e);const i=t.getHeaderCellCtrls();for(const a of i){const{column:n}=a,s=n.autoHeaderHeight;s!=null&&s>r&&n.isAutoHeaderHeight()&&(r=s)}return r}function Ml(e){let o=e.colModel.pivotMode?Z2(e):si(e);const r=e.visibleCols.allCols;for(let i=0,a=r.length;i<a;++i){const n=r[i],s=n.autoHeaderHeight;s!=null&&s>o&&n.isAutoHeaderHeight()&&(o=s)}return o}function si(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function Dl(e){return e.gos.get("floatingFiltersHeight")??si(e)}function Op(e){return e.gos.get("groupHeaderHeight")??si(e)}function Z2(e){return e.gos.get("pivotHeaderHeight")??si(e)}function J2(e){return e.gos.get("pivotGroupHeaderHeight")??Op(e)}function X2(e,t){return e.headerRowIndex===t.headerRowIndex&&e.column===t.column}function $2(e){return e?.headerRowIndex!=null}function Pl(e,t){const o=e.getLeftStickyColumnContainerWidth(),r=e.bodyWidth,i=e.getRightStickyColumnContainerWidth();return t?{leftWidth:0,centerWidth:r+o+i,rightWidth:0}:{leftWidth:o,centerWidth:r,rightWidth:i}}function Vp(e,t,o,r){const{ePinnedLeft:i,eScrolling:a,ePinnedRight:n}=o,{leftWidth:s,centerWidth:l,rightWidth:c}=Pl(e,t);r.pinnedLeftWidth!==s&&(i.style.width=s+"px",i.style.display=s>0||t?"":"none",r.pinnedLeftWidth=s),r.centerWidth!==l&&(a.style.width=l+"px",r.centerWidth=l),r.pinnedRightWidth!==c&&(n.style.width=c+"px",n.style.display=c>0||t?"":"none",r.pinnedRightWidth=c)}function Bp(e,t){const o=e.column,r=t.column;return o.pinnedLane-r.pinnedLane||(o.left??0)-(r.left??0)}var Hp=class extends x{constructor(){super(...arguments),this.headerRowFocusFeatures=[]}setComp(e,t,o){this.comp=e,this.eGui=t,this.eGridViewport=o;const{beans:r}=this,{touchSvc:i,ctrlsSvc:a}=r;this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,r),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,r)}),this.onPivotModeChanged(r),this.setupHeaderHeight();const n=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:n}),i?.mockHeaderContextMenu(this,n),a.register("gridHeaderCtrl",this)}setHeaderRowFocusableElements(e){if(this.headerRowFocusFeatures=this.destroyBeans(this.headerRowFocusFeatures),!!this.beans.headerNavigation)for(const t of e)this.headerRowFocusFeatures.push(this.createManagedBean(new ni(t,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})))}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({headerRowsChanged:e,displayedColumnsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:this.throttleToFrame(e),stylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){const{beans:e}=this;let t=0;const o=Fl(e).reduce((i,a)=>i+a,0),r=Ml(e);if(e.filterManager?.hasFloatingFilters()&&(t+=Dl(e)),t+=o,t+=r,this.headerHeightWithBorder!==t){this.headerHeightWithBorder=t;const i=t+e.environment.getHeaderRowBorderWidth();this.eGridViewport.style.setProperty("--ag-internal-header-rows-height",`${i}px`),this.eGui.style.height=`${i}px`}this.headerHeight!==t&&(this.headerHeight=t,this.eventSvc.dispatchEvent({type:"headerHeightChanged"}))}onPivotModeChanged(e){const t=e.colModel.pivotMode;this.comp.toggleCss("ag-pivot-on",t),this.comp.toggleCss("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const o=e.visibleCols.allCols.some(r=>r.isSpanHeaderHeight());this.comp.toggleCss("ag-header-allow-overflow",o)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),o=e.shiftKey,r=o!==t?"LEFT":"RIGHT",{beans:i}=this,{headerNavigation:a,focusSvc:n}=i;(a.navigateHorizontally(r,!0,e)||!o&&n.focusOverlay(!1)||Po(i,o,"force"))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:o}=this.beans;switch(e.key){case y.LEFT:t="LEFT";case y.RIGHT:{L(t)||(t="RIGHT"),o.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case y.UP:t="UP";case y.DOWN:{L(t)||(t="DOWN"),o.navigateVertically(t,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:o,beans:r}=this;if(!t&&o.contains(Z(r)))return;t instanceof HTMLElement&&o.contains(t.closest(".ag-header-row"))||(r.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,o){const{menuSvc:r}=this.beans;if(!e&&!o||!r?.isHeaderContextMenuEnabled())return;const{target:i}=e??t;i instanceof Element&&!i.closest(".ag-header-cell, .ag-header-group-cell")&&r.showHeaderContextMenu(void 0,e,o)}},Tl=class extends X{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},e3={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"}]},t3=class extends Tl{constructor(e){super(e3,e),this.eResize=k,this.eHeaderCompWrapper=k,this.headerCompVersion=0}postConstruct(){const e=this.getGui(),t=()=>{const r=this.ctrl.getSelectAllGui();r&&(this.eResize.insertAdjacentElement("afterend",r),this.addDestroyFunc(()=>r.remove()))},o={setWidth:r=>e.style.width=r,toggleCss:(r,i)=>this.toggleCss(r,i),setUserStyles:r=>Fr(e,r),setAriaSort:r=>r?Ey(e,r):Ry(e),setUserCompDetails:r=>this.setUserCompDetails(r),getUserCompInstance:()=>this.headerComp,refreshSelectAllGui:t,removeSelectAllGui:()=>this.ctrl.getSelectAllGui()?.remove()};this.ctrl.setComp(o,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(o=>this.afterCompCreated(t,o))}afterCompCreated(e,t){if(e!=this.headerCompVersion||!this.isAlive()){this.destroyBean(t);return}this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},o3=class extends x{};function cr(e,t){return e.compBean=t,t??e}function ka(e){const t=e.compBean;e.compBean=void 0,t?.isAlive()&&t.destroy()}var Ea=class{constructor(){this.nextId=0,this.invalidatedUpTo=0}claim(){return this.invalidatedUpTo=this.nextId,this.provisionalClaim()}provisionalClaim(){const e=++this.nextId;return{isCurrent:()=>e>this.invalidatedUpTo}}supersede(){this.invalidatedUpTo=Math.max(this.invalidatedUpTo,this.nextId-1)}invalidate(){this.invalidatedUpTo=this.nextId}},Np="ag-column-header-edit-highlighted";function Gp(e,t,o,r,i){if(e==null)return null;let a=e;if(r){let s;t===0?s=i.getLeftStickyColumnContainerWidth():t===2?s=i.getRightStickyColumnContainerWidth():s=i.bodyWidth,a=s-e-o}if(t===0)return a;const n=i.getLeftStickyColumnContainerWidth();return t===2?n+i.bodyWidth+a:n+a}var Wp=(e,t,o)=>!o&&(t||e===2),qp=(e,t,o,r,i)=>o&&!r?i.getRightStickyColumnContainerWidth()-e-t:e,Al="ag-calculated-column",Up="ag-calculated-column-highlighted",r3=[],i3=[Al],a3=[Al,Up];function _p(e,t){return t==null||!e?.isCalculatedCol?r3:t.isHighlightedColumn(e)?a3:i3}var n3="ag-column-first",s3="ag-column-last";function Il(e,t,o,r){const i=_p(o,t.calculatedColsSvc);return Me(e)?i.length?[...i]:[]:[...i,...Yp(e.headerClass,e,t.gos,o,r)]}function l3(e,t,o,r){return Me(e)?[]:Yp(e.toolPanelClass,e,t.gos,o,r)}function jp(e,t,o){e.toggleCss(n3,o.isColAtEdge(t,"first")),e.toggleCss(s3,o.isColAtEdge(t,"last"))}function Kp(e,t,o){if(!o.length){if(t)for(const i of t)e.toggleCss(i,!1);return}if(!t){for(const i of o)e.toggleCss(i,!0);return new Set(o)}const r=t;for(const i of o)r.has(i)?r.delete(i):e.toggleCss(i,!0);for(const i of r)e.toggleCss(i,!1);return new Set(o)}function c3(e,t,o,r){return W(t,{colDef:e,column:o,columnGroup:r})}function Yp(e,t,o,r,i){if(Me(e))return[];let a;if(typeof e=="function"){const n=c3(t,o,r,i);a=e(n)}else a=e;return typeof a=="string"?[a]:Array.isArray(a)?[...a]:[]}var d3=0,zl="headerCtrl",Ll=class extends x{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.diffIndex=0,this.isResizing=!1,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.compBean=void 0,this.lastFocusEvent=null,this.dragSource=null,this.drawnWidth=-1,this.drawnAriaColIndex=null,this.drawnPosition=null,this.drawnRightAnchored=!1,this.targetLeft=null,this.instanceId=e.getUniqueId()+"-"+d3++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}setComp(e,t,o,r,i){t.setAttribute("col-id",this.column.colIdSanitised),this.wireComp(e,t,o,r,i),this.beans.focusSvc.takeOwedHeaderFocus(this)&&this.focus(this.lastFocusEvent??void 0)}shouldStopEventPropagation(e){const{headerRowIndex:t,column:o}=this.beans.focusSvc.focusedHeader??{headerRowIndex:this.rowCtrl.rowIndex,column:this.column},r=o.getDefinition(),i=r?.suppressHeaderKeyboardEvent;if(!L(i))return!1;const a=W(this.gos,{colDef:r,column:o,headerRowIndex:t,event:e});return!!i(a)}getWrapperHasFocus(){return Z(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.drawnAriaColIndex=null,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 o;if(typeof t=="function"){const r=this.getHeaderClassParams();o=t(r)}else o=t;o=this.addHeaderStyleCleanup(o),o&&this.comp.setUserStyles(o)}addHeaderStyleCleanup(e){const t=this.userStyleKeys,o=e?Object.keys(e):[];if(this.userStyleKeys=o,!t?.length)return e;const r={};for(const i of t)o.includes(i)||(r[i]="");return{...r,...e}}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:o,compBean:r}=e,{beans:i}=this;let a=!1;const n=g=>{if(!a||!this.isAlive()||!r.isAlive())return;const u=Qg(this.eGui),p=t.offsetHeight+u;if(g<5){const f=!t.isConnected,m=p==0;if(f||m){Yi(()=>n(g+1),"raf",i);return}}this.setColHeaderHeight(this.column,p)};let s;const l=()=>{const g=this.column.isAutoHeaderHeight();g&&!a&&c(),!g&&a&&d()},c=()=>{a=!0,this.comp.toggleCss("ag-header-cell-auto-height",!0),n(0),s=Et(this.beans,t,()=>n(0))},d=()=>{a=!1,s&&s(),this.comp.toggleCss("ag-header-cell-auto-height",!1),s=void 0,this.column.isAutoHeaderHeight()||this.setColHeaderHeight(this.column,null)};l(),r.addDestroyFunc(()=>d()),r.addManagedEventListeners({sortChanged:()=>{a&&window.setTimeout(()=>n(0))}}),o&&o(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:o,eGui:r}=this;if(!e||!t||!r)return;jp(e,t,o.visibleCols);const i=t.ariaColIndex;i!==this.drawnAriaColIndex&&(this.drawnAriaColIndex=i,Wg(r,i))}addResizeAndMoveKeyboardListeners(e){const t=this.endKeyboardResize.bind(this);e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this),focusout:t}),e.addDestroyFunc(t)}refreshTabIndex(){const e=Ve(this.beans);this.eGui&&Ee(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){if(rt(e))return;const t=e.defaultPrevented,o=e.key===y.LEFT||e.key===y.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey||Z(this.beans)!==this.eGui)return;const r=(e.ctrlKey||e.metaKey)&&Dg(e)===y.C;if(!r&&!o||t&&this.shouldStopEventPropagation(e))return;if(r)return this.beans.clipboardSvc?.copyToClipboard();if(e.preventDefault(),e.stopImmediatePropagation(),!e.altKey){const a=e.key===y.LEFT!==this.gos.get("enableRtl");this.moveHeader(a?"left":"right");return}if(!this.column.isResizable())return;window.clearTimeout(this.resizeToggleTimeout),this.isResizing=!0,this.resizeMultiplier+=1;const i=!!this.beans.colResize?.takesFromAdjacent(e.shiftKey);this.resizeHeader(this.getViewportAdjustedResizeDiff(e,i),i),this.resizeFeature?.toggleColumnResizing(!0)}moveHeader(e){this.beans.colMoves?.moveHeader(e,this.eGui,this.column,this.column.getPinned(),this)}getViewportAdjustedResizeDiff(e,t){const o=this.column,r=dl(this.gos.get("enableRtl"),o.pinnedLane),i=(e.key===y.RIGHT?r:-r)*this.resizeMultiplier;return this.beans.pinnedCols?.limitResize(o,t,i)??i}onGuiKeyUp(){this.isResizing&&(this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>this.endKeyboardResize(),150))}endKeyboardResize(){!this.isResizing&&!this.resizeToggleTimeout||(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0,this.isResizing=!1,this.resizeMultiplier=1,this.resizeFeature?.toggleColumnResizing(!1))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case y.SPACE:case y.PAGE_DOWN:case y.PAGE_UP:case y.PAGE_HOME:case y.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=zl,{eGui:o,gos:r}=this;Co(r,o,t,this),e.addDestroyFunc(()=>Co(r,o,t,null))}focus(e){if(!this.isAlive())return!1;const{eGui:t}=this;return t?(this.lastFocusEvent=e??null,this.beans.focusSvc.focusGridElement(t)):this.beans.focusSvc.deferFocus(this),!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,o){const r=e??t,{menuSvc:i,gos:a}=this.beans;a.get("preventDefaultOnContextMenu")&&r.preventDefault(),i?.isHeaderContextMenuEnabled(o)&&i.showHeaderContextMenu(o,e,t,xa(this.beans,this.column,r.target)),this.dispatchColumnMouseEvent("columnHeaderContextMenu",o)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:o}=this;e.isColumn?o.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):o.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}refreshPosition(){if(!this.comp)return;const e=this.column.getActualWidth();e!==this.drawnWidth&&(this.drawnWidth=e,this.setWidth(e)),this.refreshLeft(e)}setWidth(e){this.comp.setWidth(`${e}px`)}setupPosition(){const{beans:e,column:t}=this,o=t.getActualWidth();this.drawnWidth=o,this.setWidth(o),this.drawnPosition=null;const{gos:r,colAnimation:i}=e,a=t.oldLeft;if(a==null||!i?.isActive()||r.get("suppressColumnMoveAnimation")){this.refreshLeft(o);return}const n=t.left;this.targetLeft=n,this.placeAt(a,o),i.executeNextVMTurn(()=>{this.targetLeft===n&&this.placeAt(n,this.drawnWidth)})}refreshLeft(e){const t=this.column.left;this.targetLeft=t,this.placeAt(t,e)}placeAt(e,t){const o=this.eGui;if(!o)return;const{gos:r,visibleCols:i}=this.beans,a=this.column.pinnedLane,n=ke(r,"print"),s=r.get("enableRtl"),l=n?Gp(e,a,t,s,i):e;if(l==null)return;const c=Wp(a,s,n),d=qp(l,t,c,s,i);if(d===this.drawnPosition&&c===this.drawnRightAnchored)return;this.drawnPosition=d,this.drawnRightAnchored=c;const g=o.style;g.left=c?"":`${d}px`,g.right=c?`${d}px`:""}clearComponent(){this.removeDragSource(),this.userStyleKeys=void 0,this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){this.beans.focusSvc.dropOwedHeaderFocus(this),ka(this),super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}};function Qp(e,t){t?e.style.setProperty("display","none"):e.style.removeProperty("display")}function Zp(e,t){t==null?e.style.removeProperty("max-height"):e.style.setProperty("max-height",`${t}px`),e.classList.toggle("ag-header-cell-comp-wrapper-limited-height",t!=null)}var g3=class extends Ll{constructor(){super(...arguments),this.componentTooltip={},this.headerCompGuard=new Ea,this.ariaEl=null,this.drawnAriaColSpan=null,this.onSuppressColMoveChange=()=>{!this.isAlive()||this.isSuppressMoving()?this.removeDragSource():this.dragSource||this.setDragSource(this.eGui)}}wireComp(e,t,o,r,i){const{column:a,beans:n}=this,{colNames:s,colHover:l,rangeSvc:c,colResize:d}=n;this.comp=e,i=cr(this,i),this.ariaEl=t.querySelector("[role=columnheader]")??t,this.drawnAriaColSpan=null,this.setGui(t,i),this.setupPosition(),this.displayName=s.getDisplayNameForColumnGroup(a,"header"),this.refreshHeaderStyles(),this.addClasses(),this.setupMovingCss(i),this.setupExpandable(i),this.setupTooltip(),this.refreshAnnouncement(),this.setupAutoHeight({wrapperElement:r,compBean:i}),this.setupUserComp(),this.addHeaderMouseListeners(i,r),i.addManagedPropertyListener("groupHeaderHeight",this.refreshMaxHeaderHeight.bind(this)),this.refreshMaxHeaderHeight();const g=a.getProvidedColumnGroup().getLeafColumns();this.addLeafColumnListeners(i,g),l?.createHoverFeature(i,g,t),c?.createRangeHighlightFeature(i,a,e),d?this.resizeFeature=i.createManagedBean(d.createGroupResizeFeature(e,o,a)):e.setResizableDisplayed(!1),i.createManagedBean(new ni(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:()=>{},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addHighlightListeners(i,g),i.addManagedPropertyListener("cellSelection",()=>{this.refreshSelectableCss(),this.refreshAnnouncement()}),i.addManagedPropertyListener("suppressMovableColumns",this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners(i),i.addDestroyFunc(()=>{this.headerCompGuard.invalidate(),this.clearComponentTooltip(),this.clearComponent()})}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.getDefinition();return W(t.gos,{colDef:o,columnGroup:e,floatingFilter:!1})}refreshMaxHeaderHeight(){const{gos:e,comp:t}=this,o=e.get("groupHeaderHeight");o!=null?o===0?t.setHeaderWrapperHidden(!0):t.setHeaderWrapperMaxHeight(o):(t.setHeaderWrapperHidden(!1),t.setHeaderWrapperMaxHeight(null))}addLeafColumnListeners(e,t){e.addManagedEventListeners({columnPinned:({columns:o})=>{o&&t.some(r=>o.includes(r))&&this.refreshHeaderStyles()}})}addHighlightListeners(e,t){if(this.beans.gos.get("suppressMoveWhenColumnDragging"))for(const o of t)e.addManagedListeners(o,{headerHighlightChanged:this.onLeafColumnHighlightChanged.bind(this,o)})}onLeafColumnHighlightChanged(e){const t=this.column.getDisplayedLeafColumns(),o=t[0]===e,r=pe(t)===e;if(!o&&!r)return;const i=e.getHighlighted(),a=this.rowCtrl.getHeaderCellCtrls().some(l=>l.column.isMoving());let n=!1,s=!1;if(a){const l=this.beans.gos.get("enableRtl"),c=i===1,d=i===0;o&&(l?s=c:n=d),r&&(l?n=d:s=c)}this.comp.toggleCss("ag-header-highlight-before",n),this.comp.toggleCss("ag-header-highlight-after",s)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged();const e=this.ariaEl;if(e===null)return;const t=this.column,o=Mo(t,!1,!0),r=o?o.ariaColIndex-t.ariaColIndex+1:1;r!==this.drawnAriaColSpan&&(this.drawnAriaColSpan=r,qg(e,r>1?r:void 0))}setWidth(e){super.setWidth(e),this.comp.toggleCss("ag-hidden",e===0)}resizeHeader(e,t){this.resizeFeature?.resizeByKey(e,t)}resizeLeafColumnsToFit(e){this.resizeFeature?.resizeLeafColumnsToFit(e)}createUserCompParams(){const e=this.beans,{gos:t,enterpriseMenuFactory:o}=e,r=this.column,i=r.getProvidedColumnGroup(),a=this.headerCompGuard.provisionalClaim();return W(t,{displayName:this.displayName,columnGroup:r,setExpanded:n=>{Ur(this.beans,i,n,"gridInitializing")},setTooltip:(n,s)=>{t.assertModuleRegistered("Tooltip",3),a.isCurrent()&&this.setComponentTooltip(n,s)},showColumnMenu:(n,s)=>o?.showMenuAfterButtonClick(i,n,"columnMenu",s,{getEventSource:xa(e,r,n)}),showColumnMenuAfterMouseClick:(n,s)=>o?.showMenuAfterMouseEvent(i,n,"columnMenu",s,void 0,xa(e,r,n.target)),eGridHeader:this.eGui})}setupUserComp(){const e=w2(this.beans.userCompFactory,this.createUserCompParams());e&&(this.headerCompGuard.supersede(),this.comp.setUserCompDetails(e))}attemptUserCompRefresh(){const e=this.comp.getUserCompInstance();return e?.refresh?e.refresh(this.createUserCompParams()):!1}addHeaderMouseListeners(e,t){const{column:o,beans:{rangeSvc:r}}=this,i=l=>this.handleMouseOverChange(l.type==="mouseenter"),a=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",o.getProvidedColumnGroup()),n=l=>this.handleContextMenuMouseEvent(l,void 0,o.getProvidedColumnGroup());e.addManagedListeners(this.eGui,{mouseenter:i,mouseleave:i,click:a,contextmenu:n}),this.refreshSelectableCss();const s=r?.createHeaderGroupCellMouseListenerFeature(this.column,t);s&&e.createManagedBean(s)}refreshSelectableCss(){this.comp.toggleCss("ag-header-group-cell-selectable",Qt(this.gos))}handleMouseOverChange(e){this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column.getProvidedColumnGroup()})}setupTooltip(){this.tooltipFeature=this.beans.tooltipSvc?.setupHeaderGroupTooltip(this,this.tooltipFeature,()=>this.componentTooltip)}setComponentTooltip(e,t){this.componentTooltip={value:e,shouldDisplay:t},this.tooltipFeature?.refreshTooltip()}clearComponentTooltip(){this.componentTooltip={}}setupExpandable(e){const t=this.column.getProvidedColumnGroup();this.refreshExpanded();const o=this.refreshExpanded.bind(this);e.addManagedListeners(t,{expandedChanged:o,expandableChanged:o,headerNameChanged:()=>this.refreshDisplayName()});const r=t.groupId;e.addManagedEventListeners({columnHeaderNameChanged:i=>{i.column&&this.refreshDisplayName()},columnHeaderEditHighlightChanged:i=>{(!i.groupId||i.groupId===r)&&this.refreshEditHighlight()}}),this.refreshEditHighlight()}refreshEditHighlight(){this.comp.toggleCss(Np,!!this.beans.colHeaderEditSvc?.isHighlightedGroup(this.column.getProvidedColumnGroup()))}refreshDisplayName(){this.displayName=this.beans.colNames.getDisplayNameForColumnGroup(this.column,"header"),this.attemptUserCompRefresh()||(this.clearComponentTooltip(),this.setupUserComp()),this.tooltipFeature?.refreshTooltip(),this.refreshAnnouncement()}refreshExpanded(){const{column:e}=this;this.expandable=e.isExpandable();const t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0),this.refreshHeaderStyles(),this.refreshAnnouncement()}addClasses(){const{column:e}=this,t=e.getColGroupDef(),o=Il(t,this.beans,null,e);e.isPadding()?(o.push("ag-header-group-cell-no-group"),e.getLeafColumns().every(i=>i.isSpanHeaderHeight())&&o.push("ag-header-span-height")):(o.push("ag-header-group-cell-with-group"),t?.wrapHeaderText&&o.push("ag-header-cell-wrap-text"));for(const r of o)this.comp.toggleCss(r,!0)}setupMovingCss(e){const{column:t}=this,r=t.getProvidedColumnGroup().getLeafColumns(),i=()=>this.comp.toggleCss("ag-header-cell-moving",t.isMoving());for(const a of r)e.addManagedListeners(a,{movingChanged:i});i()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription())}handleKeyDown(e){if(super.handleKeyDown(e),!this.getWrapperHasFocus())return;const{column:o,expandable:r,gos:i,beans:a}=this,n=Qt(i);if(e.key==y.ENTER){if(n&&!e.altKey)a.rangeSvc?.handleColumnSelection(o,e);else if(r){const s=!o.isExpanded(),l=o.getProvidedColumnGroup();if(Ur(a,l,s,"uiColumnExpanded"),!o.isEmptyGroup())return;const c=l.displayInstances?.find(d=>!d.isEmptyGroup());c&&a.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:l.getLevel(),column:c}})}}}refreshAnnouncement(){let e;const{gos:t,expandable:o}=this,r=Qt(t),i=this.getLocaleTextFunc();r&&o?e=i("ariaColumnGroupCellSelectionAndExpansion","Press Enter to toggle selection for all visible cells in this column group. Press ALT ENTER to expand or collapse this column group"):r?e=i("ariaColumnGroupCellSelection","Press Enter to toggle selection for all visible cells in this column group"):o&&(e=i("ariaColumnGroupExpansion","Press ENTER to expand or collapse this column group")),this.ariaAnnouncement=e}announceAriaDescription(){const{beans:e,eGui:t,ariaAnnouncement:o}=this;!o||!t.contains(Z(e))||e.ariaAnnounce?.announceValue(o,"columnHeader")}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.colDef.suppressMovable||e.colDef.lockPosition)}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}},u3={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"}]},h3=class extends Tl{constructor(e){super(u3,e),this.eResize=k,this.eHeaderCompWrapper=k}postConstruct(){const e=this.getGui(),t=(r,i)=>i!=null?e.setAttribute(r,i):e.removeAttribute(r),o={toggleCss:(r,i)=>this.toggleCss(r,i),setUserStyles:r=>Fr(e,r),setHeaderWrapperHidden:r=>Qp(this.eHeaderCompWrapper,r),setHeaderWrapperMaxHeight:r=>Zp(this.eHeaderCompWrapper,r),setResizableDisplayed:r=>Q(this.eResize,r),setWidth:r=>e.style.width=r,setAriaExpanded:r=>t("aria-expanded",r),setUserCompDetails:r=>this.setUserCompDetails(r),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(o,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()){t();return}const o=this.getGui(),r=e.getGui(),i=this.headerGroupComp;i&&(i.getGui().remove(),this.destroyBean(i)),this.eHeaderCompWrapper.appendChild(r),this.addDestroyFunc(t),this.headerGroupComp=e,this.ctrl.setDragSource(o)}},p3={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"}}]}]},f3=class extends Tl{constructor(e){super(p3,e),this.eFloatingFilterBody=k,this.eButtonWrapper=k,this.eButtonShowMainFilter=k}postConstruct(){const e=this.getGui(),t={toggleCss:(o,r)=>this.toggleCss(o,r),setUserStyles:o=>Fr(e,o),addOrRemoveBodyCssClass:(o,r)=>this.eFloatingFilterBody.classList.toggle(o,r),setButtonWrapperDisplayed:o=>Q(this.eButtonWrapper,o),setCompDetails:o=>this.setCompDetails(o),getFloatingFilterComp:()=>this.compPromise,setWidth:o=>e.style.width=o,setMenuIcon:o=>this.eButtonShowMainFilter.appendChild(o)};this.ctrl.setComp(t,e,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(e){if(!e){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=e.newAgStackInstance(),this.compPromise.then(t=>this.afterCompCreated(t))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp?.getGui().remove(),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp)}afterCompCreated(e){if(e){if(!this.isAlive()){this.destroyBean(e);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached?.()}}},m3=(e,t)=>(e.getCtrl().column.left??0)-(t.getCtrl().column.left??0),v3=(e,t)=>Bp(e.getCtrl(),t.getCtrl()),w3=class extends X{constructor(e){super({tag:"div",cls:e.headerRowClass,role:"row"}),this.ctrl=e,this.headerComps={},this.pinnedWidthsCache={pinnedLeftWidth:void 0,centerWidth:void 0,pinnedRightWidth:void 0},this.ePinnedLeftCells=G({tag:"div",cls:"ag-grid-pinned-left-cells",role:"presentation"}),this.ePinnedLeftWrapper=G({tag:"div",cls:"ag-grid-container-wrapper",role:"presentation"}),this.ePinnedLeftCells.appendChild(this.ePinnedLeftWrapper),this.eScrollingCells=G({tag:"div",cls:"ag-grid-scrolling-cells",role:"presentation"}),this.ePinnedRightCells=G({tag:"div",cls:"ag-grid-pinned-right-cells",role:"presentation"}),this.ePinnedRightWrapper=G({tag:"div",cls:"ag-grid-container-wrapper",role:"presentation"}),this.ePinnedRightCells.appendChild(this.ePinnedRightWrapper),this.getGui().append(this.ePinnedLeftCells,this.eScrollingCells,this.ePinnedRightCells)}postConstruct(){this.setRowIndex(this.ctrl.getAriaRowIndex());const e={setHeight:t=>this.getGui().style.height=t,setTop:t=>this.getGui().style.top=t,setHeaderCtrls:(t,o)=>this.setHeaderCtrls(t,o),refreshPinnedCellGroupWidths:()=>this.updatePinnedCellGroupWidths(),setWidth:t=>this.getGui().style.width=t,setRowIndex:t=>this.setRowIndex(t),setTabIndex:t=>Ee(this.getGui(),"tabindex",t),setAriaHidden:t=>Ee(this.getGui(),"aria-hidden",t?"true":null)};this.ctrl.setComp(e,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(e,t){if(!this.isAlive())return;const o=this.headerComps;this.headerComps={};for(const r of e){const i=r.instanceId;let a=o[i];delete o[i],a??(a=this.createHeaderComp(r));const n=this.getHeaderCellGroup(r);a.getGui().parentElement!==n&&n.appendChild(a.getGui()),this.headerComps[i]=a}if(Object.values(o).forEach(r=>{r.getGui().remove(),this.destroyBean(r)}),this.updatePinnedCellGroupWidths(),t){if(this.gos.get("domLayout")==="print"){const a=Object.values(this.headerComps).sort(m3);qo(this.eScrollingCells,a.map(n=>n.getGui()));return}const r=Object.values(this.headerComps);r.sort(v3);const i=[[],[],[]];for(let a=0,n=r.length;a<n;++a){const s=r[a];i[s.getCtrl().column.pinnedLane].push(s.getGui())}qo(this.ePinnedLeftWrapper,i[0]),qo(this.eScrollingCells,i[1]),qo(this.ePinnedRightWrapper,i[2])}}getHeaderCellGroup(e){if(this.gos.get("domLayout")==="print")return this.eScrollingCells;const t=e.column.pinnedLane;return t===0?this.ePinnedLeftWrapper:t===2?this.ePinnedRightWrapper:this.eScrollingCells}updatePinnedCellGroupWidths(){const e=this.gos.get("domLayout")==="print";Vp(this.beans.visibleCols,e,{ePinnedLeft:this.ePinnedLeftCells,eScrolling:this.eScrollingCells,ePinnedRight:this.ePinnedRightCells},this.pinnedWidthsCache)}setRowIndex(e){const t=this.getGui();Ni(t,e),t.classList.toggle("ag-header-row-not-first",e!==1)}createHeaderComp(e){let t;switch(this.ctrl.type){case"group":t=new h3(e);break;case"filter":t=new f3(e);break;default:t=new t3(e);break}return this.createBean(t),t.setParentComponent(this),t}},Jp=class extends Ll{constructor(){super(...arguments),this.refreshFunctions={},this.ariaDescriptionProperties=new Map,this.componentTooltip={},this.headerCompGuard=new Ea}wireComp(e,t,o,r,i){this.comp=e;const{column:a,beans:n}=this,{colResize:s,colHover:l,rangeSvc:c}=n,d=cr(this,i);this.setGui(t,d),this.updateState(),this.setupPosition(),this.setupMovingCss(d),this.refreshPinnedEdges(),this.setupMenuClass(d),this.setupSortableClass(d),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:r,checkMeasuringCallback:h=>this.setRefreshFunction("measuring",h),compBean:d}),this.addColumnHoverListener(d),this.setupFilterClass(d),this.setupStylesFromColDef(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(d),this.setupSelectAll(d),this.setupUserComp(),this.refreshAria(),s?this.resizeFeature=d.createManagedBean(s.createResizeFeature(a,o,e,this)):Q(o,!1),l?.createHoverFeature(d,[a],t),c?.createRangeHighlightFeature(d,a,e),d.createManagedBean(new ni(t,{shouldStopEventPropagation:h=>this.shouldStopEventPropagation(h),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(d),d.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader","enableAdvancedFilter"],()=>this.refresh()),d.addManagedPropertyListener("cellSelection",()=>this.refreshAria()),d.addManagedListeners(a,{colDefChanged:()=>this.refresh(),headerNameChanged:()=>this.refresh(),formulaRefChanged:()=>this.refresh(),headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const g=()=>this.checkDisplayName(),u=a.colId;if(d.addManagedEventListeners({columnValueChanged:g,columnRowGroupChanged:g,columnPivotChanged:g,columnPinned:({columns:h})=>{h?.includes(a)&&(this.refreshHeaderStyles(),this.refreshFunctions.headerClasses?.())},headerHeightChanged:this.onHeaderHeightChanged.bind(this),columnHeaderEditHighlightChanged:h=>{(!h.colId||h.colId===u)&&this.refreshEditHighlight()}}),this.refreshEditHighlight(),n.showValuesAsSvc){const h=()=>this.refreshAriaShowValuesAs();d.addManagedListeners(a,{columnStateUpdated:h}),d.addManagedEventListeners({columnRowGroupChanged:h,columnPivotChanged:h,columnPivotModeChanged:h})}d.addDestroyFunc(()=>{this.headerCompGuard.invalidate(),this.clearComponentTooltip(),this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses?.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){const o=this.column;this.beans.colResize?.resizeColumn(o,o.actualWidth+e,t,!0)}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return W(t.gos,{colDef:o,column:e,floatingFilter:!1})}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.headerCompGuard.supersede(),this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.headerCompGuard.provisionalClaim(),t=this.createParams(e),o=this.column.colDef;return m2(this.beans.userCompFactory,o,t)}createParams(e){const{beans:t,column:o}=this,{menuSvc:r,sortSvc:i,colFilter:a,gos:n}=t;return W(n,{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!r?.isHeaderFilterButtonEnabled(this.column),enableFilterIcon:!!a&&(!this.openFilterEnabled||Ie(this.gos)),showColumnMenu:(l,c)=>{r?.showColumnMenu({column:this.column,buttonElement:l,getButtonElement:()=>lr(t,o),positionBy:"button",onClosedCallback:c})},showColumnMenuAfterMouseClick:(l,c)=>{r?.showColumnMenu({column:this.column,mouseEvent:l,getEventSource:xa(t,o,l.target),positionBy:"mouse",onClosedCallback:c})},showFilter:l=>{r?.showFilterMenu({column:this.column,buttonElement:l,getButtonElement:()=>lr(t,o,!0),containerType:"columnFilter",positionBy:"button"})},progressSort:l=>{i?.progressSort(this.column,!!l,"uiColumnSorted")},setSort:(l,c)=>{i?.setSortForColumn(this.column,ze(l),!!c,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(l,c)=>{n.assertModuleRegistered("Tooltip",3),e.isCurrent()&&this.setComponentTooltip(l,c)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createOptionalManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature?.setComp(this),e.addManagedPropertyListener("rowSelection",()=>{const o=t.createSelectAllFeature(this.column);o&&!this.selectAllFeature?(this.selectAllFeature=e.createManagedBean(o),this.selectAllFeature?.setComp(this),this.comp.refreshSelectAllGui()):this.selectAllFeature&&!o&&(this.comp.removeSelectAllGui(),this.selectAllFeature=this.destroyBean(this.selectAllFeature))}))}getSelectAllGui(){return this.selectAllFeature?.getCheckboxGui()}handleKeyDown(e){super.handleKeyDown(e),e.key===y.SPACE?this.selectAllFeature?.onSpaceKeyDown(e):e.key===y.ENTER?this.onEnterKeyDown(e):e.key===y.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1);const t=this.beans.rowNumbersSvc;t&&this.getWrapperHasFocus()&&t.handleKeyDownOnHeader(this.column,e)}onEnterKeyDown(e){const{column:t,gos:o,sortable:r,beans:i}=this;let a=!1;(e.ctrlKey||e.metaKey)&&(a=this.showMenuOnKeyPress(e,!0)),a||(!e.altKey&&Qt(o)?i.rangeSvc?.handleColumnSelection(t,e):r&&i.sortSvc?.progressSort(t,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const o=this.comp.getUserCompInstance();return Xp(o)&&o.onMenuKeyboardShortcut(t)?(e.preventDefault(),!0):!1}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),Fu()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(){const e=this.beans.tooltipSvc?.setupHeaderTooltip(this,this.tooltipFeature,()=>this.componentTooltip);this.tooltipFeature=e,e&&this.setRefreshFunction("tooltip",()=>e.refreshTooltip())}setComponentTooltip(e,t){this.componentTooltip={value:e,shouldDisplay:t},this.tooltipFeature?.refreshTooltip()}clearComponentTooltip(){this.componentTooltip={}}setupStylesFromColDef(){this.setRefreshFunction("headerStyles",this.refreshHeaderStyles.bind(this)),this.refreshHeaderStyles()}setupClassesFromColDef(){const e=()=>{const t=this.column.colDef,o=Il(t,this.beans,this.column,null);this.userHeaderClasses=Kp(this.comp,this.userHeaderClasses,o)};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()}refreshEditHighlight(){this.comp.toggleCss(Np,!!this.beans.colHeaderEditSvc?.isHighlightedColumn(this.column))}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):(this.clearComponentTooltip(),this.setCompDetails(e))}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1: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.colDef;return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupMovingCss(e){const t=()=>{this.comp.toggleCss("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}refreshPinnedEdges(){const{comp:e,column:t}=this;e&&(e.toggleCss("ag-header-cell-last-left-pinned",t.isLastLeftPinned()),e.toggleCss("ag-header-cell-first-right-pinned",t.isFirstRightPinned()))}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(),this.announceAriaDescription()}})}setupFilterClass(e){const t=()=>{const o=this.column.isFilterActive();this.comp.toggleCss("ag-header-cell-filtered",o),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.colDef.wrapHeaderText;this.comp.toggleCss("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,o=e===1;this.comp.toggleCss("ag-header-highlight-before",t),this.comp.toggleCss("ag-header-highlight-after",o)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:o,beans:r}=this,i=Fl(this.beans),a=i.reduce((u,h)=>u+h,0)===0;if(o.toggleCss("ag-header-parent-hidden",a),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),o.toggleCss("ag-header-span-height",!1),o.toggleCss("ag-header-span-total",!1);return}const{numberOfParents:n,isSpanningTotal:s}=this.column.getColumnGroupPaddingInfo();o.toggleCss("ag-header-span-height",n>0);const l=Ml(r);if(n===0){o.toggleCss("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}o.toggleCss("ag-header-span-total",s);const c=(this.column.getFirstRealParent()?.getLevel()??-1)+1,d=i.length-c;let g=0;for(let u=0;u<d;u++)g+=i[i.length-1-u];e.style.setProperty("top",`${-g}px`),e.style.setProperty("height",`${l+g}px`)}refreshAriaSort(){let e=null;const{beans:t,column:o,comp:r,sortable:i,gos:a}=this,n=this.getLocaleTextFunc(),s=t.sortSvc;if(i){const d=s?.getDisplaySort(o)??null;r.setAriaSort(b3(d)),e=Qt(a)?n("ariaSortableColumnWithCellSelection","Press ALT ENTER to sort"):n("ariaSortableColumn","Press ENTER to sort")}else r.setAriaSort();const l=s?.getDisplaySortIndex(o),c=s?.getDisplaySortCount()??0;if(l!=null&&c>1){const d=String(l+1),g=String(c),u=n("ariaSortPriority","Sort priority ${priority} of ${count}",[d,g]).replaceAll("${priority}",d).replaceAll("${count}",g);e=e?`${u}. ${e}`:u}this.setAriaDescriptionProperty("sort",e)}refreshAriaMenu(){let e=null;this.menuEnabled&&(e=this.getLocaleTextFunc()("ariaMenuColumn","Press ALT DOWN to open column menu")),this.setAriaDescriptionProperty("menu",e)}refreshAriaFilterButton(){let e=null;const{openFilterEnabled:t,gos:o}=this;t&&!Ie(o)&&(e=this.getLocaleTextFunc()("ariaFilterColumn","Press CTRL ENTER to open filter")),this.setAriaDescriptionProperty("filterButton",e)}refreshAriaFiltered(){let e=null;this.column.isFilterActive()&&(e=this.getLocaleTextFunc()("ariaColumnFiltered","Column Filtered")),this.setAriaDescriptionProperty("filter",e)}refreshAriaShowValuesAs(){const e=this.getLocaleTextFunc(),t=this.beans.showValuesAsSvc?.getActiveModeLabel(this.column);this.setAriaDescriptionProperty("showValuesAs",t?`${e("ariaColumnShowValuesAs","Showing Values As")} ${t}`:null)}refreshAriaCellSelection(){let e=null;const{gos:t,column:o}=this;Qt(t)&&!Le(o)&&(e=this.getLocaleTextFunc()("ariaColumnCellSelection","Press Enter to toggle selection for all visible cells in this column")),this.setAriaDescriptionProperty("cellSelection",e)}refreshAriaCalculatedColumn(){let e=null;this.column.isCalculatedCol&&(e=this.getLocaleTextFunc()("ariaCalculatedColumn","Calculated column")),this.setAriaDescriptionProperty("calculatedColumn",e)}setAriaDescriptionProperty(e,t){const o=this.ariaDescriptionProperties;t!=null?o.set(e,t):o.delete(e)}announceAriaDescription(){const{beans:e,eGui:t,ariaDescriptionProperties:o}=this;if(!t.contains(Z(e)))return;const r=Array.from(o.keys()).sort((i,a)=>i==="filter"?-1:a.charCodeAt(0)-i.charCodeAt(0)).map(i=>o.get(i)).join(". ");e.ariaAnnounce?.announceValue(r,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered(),this.refreshAriaShowValuesAs(),this.refreshAriaCellSelection(),this.refreshAriaCalculatedColumn()}addColumnHoverListener(e){this.beans.colHover?.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),o=()=>{const{column:i,beans:{headerNavigation:a}}=this;this.setActiveHeader(!0),a?.onHeaderClicked(i),this.dispatchColumnMouseEvent("columnHeaderClicked",i)},r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:o,contextmenu:r})}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 Xp(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function Xp(e){return typeof e?.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}function b3(e){const t=e?.direction;return t==="asc"?"ascending":t==="desc"?"descending":t==="mixed"?"other":"none"}var C3=0,Ol=class extends x{constructor(e,t){super(),this.rowIndex=e,this.type=t,this.instanceId=C3++,this.comp=null,this.compBean=void 0,this.allCtrls=[],this.renderedHeaderRowsVersion=-1,this.retainedFocusedCtrl=null;let o="ag-header-row-column";t==="group"?o="ag-header-row-group":t==="filter"&&(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=ke(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.allCtrls.every(e=>e.eGui!=null):!1}setComp(e,t,o=!0){this.comp=e,t=cr(this,t),o&&(this.setRowIndex(this.rowIndex),this.onVirtualColumnsChanged());const r=this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.rowWidth;r!=null&&e.setWidth(`${r}px`),this.refreshPinnedCellGroupWidths(),this.addEventListeners(t),this.refreshAccessibility()}refreshAccessibility(){const{comp:e,beans:t,gos:o}=this;if(!e)return;const r=this.allCtrls.length>0;e.setAriaHidden(!r),e.setTabIndex(r&&!Ve(t)?o.get("tabIndex"):void 0)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this),o=this.onDisplayedColumnsChanged.bind(this),r=this.refreshAccessibility.bind(this),i=this.refreshPinnedCellGroupWidths.bind(this);e.addManagedEventListeners({displayedColumnsWidthChanged:i,leftPinnedWidthChanged:i,rightPinnedWidthChanged:i,displayedColumnsChanged:o,virtualColumnsChanged:a=>this.onVirtualColumnsChanged(a.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,stylesChanged:t,advancedFilterEnabledChanged:t,overlayExclusiveChanged:r}),e.addManagedPropertyListeners(["suppressHeaderFocus"],r),e.addManagedPropertyListener("domLayout",o),e.addManagedPropertyListener("ensureDomOrder",a=>{this.isEnsureDomOrder=a.currentValue,this.onVirtualColumnsChanged(!1,!0)}),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}onDisplayedColumnsChanged(){const e=ke(this.gos,"print"),t=e!==this.isPrintLayout;this.isPrintLayout=e,this.onVirtualColumnsChanged(!1,t),t&&this.refreshCellPositions(),this.onRowHeightChanged()}refreshCellPositions(){const e=this.allCtrls;for(let t=0,o=e.length;t<o;++t)e[t].refreshPosition()}refreshPinnedEdges(e){const t=e&&this.ctrlsById?.get(e.getUniqueId());t instanceof Jp&&t.column===e&&t.refreshPinnedEdges()}setRowWidth(e){this.comp?.setWidth(`${e}px`),this.refreshPinnedCellGroupWidths()}refreshPinnedCellGroupWidths(){this.comp?.refreshPinnedCellGroupWidths()}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=Fl(this.beans);for(let i=0;i<t.length;i++){if(i===this.rowIndex&&this.type==="group")return{topOffset:e,rowHeight:t[i]};e+=t[i]}const o=Ml(this.beans);if(this.type==="column")return{topOffset:e,rowHeight:o};e+=o;const r=Dl(this.beans);return{topOffset:e,rowHeight:r}}onVirtualColumnsChanged(e=!1,t=!1){if(!this.comp)return;const o=this.beans.colViewport.headerRowsVersion;if(!t&&o===this.renderedHeaderRowsVersion&&this.retainedFocusedCtrl?.column.displayed!==!1)return;this.renderedHeaderRowsVersion=o;const r=this.allCtrls.length>0,i=this.getUpdatedHeaderCtrls(),a=this.isEnsureDomOrder||this.isPrintLayout;this.comp.setHeaderCtrls(i,a,e),r!==i.length>0&&this.refreshAccessibility()}getUpdatedHeaderCtrls(){const e=this.ctrlsById;this.ctrlsById=new Map;const t=this.getColumnsInViewport();for(const i of t)this.recycleAndCreateHeaderCtrls(i,this.ctrlsById,e);const o=i=>i.column.displayed&&this.beans.focusSvc.isHeaderWrapperFocused(i);let r=null;if(e)for(const[i,a]of e)o(a)?(this.ctrlsById.set(i,a),r=a):this.destroyBean(a);return this.allCtrls=Array.from(this.ctrlsById.values()),this.retainedFocusedCtrl=r,r&&this.allCtrls.sort(Bp),this.allCtrls}getHeaderCellCtrls(){return this.allCtrls}recycleAndCreateHeaderCtrls(e,t,o){if(e.isEmptyGroup())return;const r=e.getUniqueId();let i;if(o&&(i=o.get(r),o.delete(r)),i&&i.column!=e&&(this.destroyBean(i),i=void 0),i==null)switch(this.type){case"filter":{i=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":i=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:i=this.createBean(new Jp(e,this));break}t.set(r,i)}getColumnsInViewport(){const e=[];return this.appendComponentsToRender(0,e),this.appendComponentsToRender(1,e),this.appendComponentsToRender(2,e),e}appendComponentsToRender(e,t){const{colViewport:o}=this.beans,r=this.type==="group"?o.getHeadersToRender(e,this.rowIndex):o.getColumnHeadersToRender(e);if(r)for(let i=0,a=r.length;i<a;++i)t.push(r[i])}focusHeader(e,t){const o=this.allCtrls.find(i=>i.column==e);return o?o.focus(t):!1}destroy(){this.allCtrls=this.destroyBeans(this.allCtrls),this.ctrlsById=void 0,this.comp=null,ka(this),super.destroy()}},$p=class extends x{constructor(){super(...arguments),this.includeFloatingFilter=!1,this.groupsRowCtrls=[],this.rowWidth=null}setComp(e,t,o=t){this.comp=e,this.eViewport=o;const{ctrlsSvc:r,colModel:i,colMoves:a}=this.beans;this.setupDragAndDrop(a,t);const n=this.refresh.bind(this,!0);this.addManagedEventListeners({displayedColumnsChanged:n,advancedFilterEnabledChanged:n}),r.register("headerRowContainerCtrl",this),i.ready&&this.refresh()}setRowWidths(e){if(e===this.rowWidth)return;this.rowWidth=e;const t=this.groupsRowCtrls;for(let o=0,r=t.length;o<r;++o)t[o].setRowWidth(e);this.columnsRowCtrl?.setRowWidth(e),this.filtersRowCtrl?.setRowWidth(e)}refreshCellPositions(){const e=this.groupsRowCtrls;for(let t=0,o=e.length;t<o;++t)e[t].refreshCellPositions();this.columnsRowCtrl?.refreshCellPositions(),this.filtersRowCtrl?.refreshCellPositions()}refreshPinnedEdgeCells(e,t,o,r){const i=this.columnsRowCtrl;i&&(i.refreshPinnedEdges(e),i.refreshPinnedEdges(t),i.refreshPinnedEdges(o),i.refreshPinnedEdges(r))}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:o,visibleCols:r}=this.beans;let i=0;const a=t.getFocusHeaderToUseAfterRefresh(),n=()=>{const g=r.headerGroupRowCount;i=g,e||(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls));const u=this.groupsRowCtrls.length;if(u!==g){if(u>g){for(let h=g;h<u;h++)this.destroyBean(this.groupsRowCtrls[h]);this.groupsRowCtrls.length=g;return}for(let h=u;h<g;h++){const p=this.createBean(new Ol(h,"group"));this.groupsRowCtrls.push(p)}}},s=()=>{const g=i++;this.columnsRowCtrl==null||!e?(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl),this.columnsRowCtrl=this.createBean(new Ol(g,"column"))):this.columnsRowCtrl.rowIndex!==g&&this.columnsRowCtrl.setRowIndex(g)},l=()=>{this.includeFloatingFilter=!!o?.hasFloatingFilters();const g=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){g();return}e||g();const u=i++;this.filtersRowCtrl?this.filtersRowCtrl.rowIndex!==u&&this.filtersRowCtrl.setRowIndex(u):this.filtersRowCtrl=this.createBean(new Ol(u,"filter"))},c=this.getAllCtrls();n(),s(),l();const d=this.getAllCtrls();this.comp.setCtrls(d),this.restoreFocusOnHeader(t,a),c.length!==d.length&&this.beans.eventSvc.dispatchEvent({type:"headerRowsChanged"})}getHeaderCtrlForColumn(e){const t=o=>o?.getHeaderCellCtrls().find(r=>r.column===e);if(e.isColumn)return t(this.columnsRowCtrl);if(this.groupsRowCtrls.length!==0)for(let o=0;o<this.groupsRowCtrls.length;o++){const r=t(this.groupsRowCtrls[o]);if(r)return r}}getFloatingFilterCtrlForColumn(e){return this.filtersRowCtrl?.getHeaderCellCtrls().find(t=>t.column===e)}getHtmlElementForColumnHeader(e){return this.getHeaderCtrlForColumn(e)?.eGui??null}getRowType(e){return this.getAllCtrls()[e]?.type}focusHeader(e,t,o){const i=this.getAllCtrls()[e];return i?i.focusHeader(t,o):!1}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 o=e?.createBodyDropTarget(t);o&&this.createManagedBean(o)}restoreFocusOnHeader(e,t){t&&e.focusHeaderPosition({headerPosition:t,scroll:!1})}},y3=class extends x{constructor(e,t,o){super(),this.eHeaderWrapper=e,this.eGridViewport=t,this.setHeaderRowFocusableElements=o,this.headerRowComps={}}postConstruct(){const e={setCtrls:o=>this.setCtrls(o),setViewportScrollLeft:o=>{}};this.createManagedBean(new $p).setComp(e,this.eHeaderWrapper,this.eGridViewport)}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(e){this.destroyBean(e),e.getGui().remove()}setCtrls(e){const t=this.headerRowComps;this.headerRowComps={};let o=null;const r=[];for(const i of e){const a=i.instanceId,n=t[a];delete t[a];const s=n??this.createBean(new w3(i));this.headerRowComps[a]=s;const l=s.getGui();r.push(l),l.parentElement!==this.eHeaderWrapper&&this.eHeaderWrapper.appendChild(l),$g(this.eHeaderWrapper,l,o),o=l}this.setHeaderRowFocusableElements(r);for(const i of Object.values(t))this.destroyRowComp(i)}},S3={tag:"div",cls:"ag-header",attrs:{role:"presentation"}},x3=class extends x{constructor(e,t){super(),this.eTopSection=e,this.eGridViewport=t,this.eHeaderWrapper=G(S3)}postConstruct(){this.eTopSection.prepend(this.eHeaderWrapper);const e={toggleCss:(t,o)=>this.eHeaderWrapper.classList.toggle(t,o)};this.gridHeaderCtrl=this.createManagedBean(new Hp),this.gridHeaderCtrl.setComp(e,this.eHeaderWrapper,this.eGridViewport),this.createManagedBean(new y3(this.eHeaderWrapper,this.eGridViewport,t=>this.gridHeaderCtrl?.setHeaderRowFocusableElements(t)))}destroy(){this.gridHeaderCtrl=void 0,this.eHeaderWrapper.remove(),super.destroy()}},it={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"};function ef(e){return e==="autoHeight"?it.AUTO_HEIGHT:e==="print"?it.PRINT:it.NORMAL}var Vl=class extends x{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:e==="autoHeight",normal:e==="normal",print:e==="print"};this.view.updateLayoutClasses(ef(e),t)}},Bl=16,tf=class extends X{constructor(e,t){super(),this.direction=t,this.eViewport=k,this.eContainer=k,this.hideTimeout=0,this.invisibleScrollbarListenersAdded=!1,this.queueSetScrollVisible=this.throttleToFrame(()=>this.setScrollVisible()),this.setTemplate(e)}postConstruct(){const e=this.onScrollVisibilityChanged.bind(this);this.addManagedEventListeners({scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.onScrollVisibilityChanged(),this.toggleCss("ag-apple-scrollbar",pu()||Ut())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}refreshInvisibleScrollbar(){const e=this.beans.scrollVisibleSvc.isInvisibleScrollbar();e!==void 0&&(this.invisibleScrollbar=e,e&&!this.invisibleScrollbarListenersAdded&&(this.invisibleScrollbarListenersAdded=!0,this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.toggleCss("ag-scrollbar-active",!0),o=()=>this.toggleCss("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:o,touchend:o})}onScrollVisibilityChanged(){this.refreshInvisibleScrollbar(),this.queueSetScrollVisible()}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)}})}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},k3={tag:"div",cls:"ag-body-horizontal-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eViewport",cls:"ag-body-horizontal-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-horizontal-scroll-container"}]},{tag:"div",ref:"eEndSpacer",cls:"ag-body-horizontal-scroll-end-spacer"}]},of=class extends tf{constructor(){super(k3,"horizontal"),this.contentWidth=null,this.eEndSpacer=k,this.setScrollVisibleDebounce=0}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct(),this.addManagedEventListeners({pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}refreshInvisibleScrollbar(){const e=this.invisibleScrollbar;this.enableRtl=this.gos.get("enableRtl"),super.refreshInvisibleScrollbar(),this.invisibleScrollbar!==e&&this.refreshCompBottom()}refreshCompBottom(){if(!this.invisibleScrollbar){this.getGui().style.bottom="";return}const e=this.beans.pinnedRowModel?.getPinnedBottomTotalHeight()??0;this.getGui().style.bottom=`${e}px`}setContentWidth(e){const t=Math.max(e,1);t!==this.contentWidth&&(this.contentWidth=t,this.eContainer.style.width=`${t}px`)}setScrollVisible(){this.enableRtl=this.gos.get("enableRtl");const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,o=this.gos.get("suppressHorizontalScroll"),r=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,a=o?0:r===0&&t?Bl:r,n=()=>{if(!this.isAlive())return;this.setScrollVisibleDebounce=0,this.toggleCss("ag-scrollbar-invisible",!!t),_o(this.getGui(),a),_o(this.eViewport,a),_o(this.eContainer,a),_o(this.eEndSpacer,a);const s=this.getVerticalSpacerWidth();kt(this.eEndSpacer,s),this.eEndSpacer.style.display=s>0?"":"none",this.eViewport.style.width=s>0?`calc(100% - ${s}px)`:"100%",a||this.eContainer.style.setProperty("min-height","1px"),this.setVisible(e,{skipAriaHidden:!0}),this.syncScrollPosition()};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(n,100):n()}getVerticalSpacerWidth(){const e=this.beans.ctrlsSvc.getGridBodyCtrl();if(e)return e.getVerticalScrollbarWidth();const t=this.scrollVisibleSvc;if(!t.verticalScrollShowing)return 0;const o=t.getScrollbarWidth()||0;return o>0?o:this.invisibleScrollbar?16:0}getScrollPosition(){return et(this.eViewport,this.enableRtl)}syncScrollPosition(){const e=this.beans.ctrlsSvc.getGridBodyCtrl();e&&this.setScrollPosition(et(e.eGridViewport,this.enableRtl))}setScrollPosition(e){Wo(this.eViewport,e,this.enableRtl)}},E3={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:of},R3={tag:"div",cls:"ag-body-vertical-scroll",attrs:{"aria-hidden":"true"},children:[{tag:"div",ref:"eSpacer",cls:"ag-body-vertical-scroll-start-spacer"},{tag:"div",ref:"eViewport",cls:"ag-body-vertical-scroll-viewport",children:[{tag:"div",ref:"eContainer",cls:"ag-body-vertical-scroll-container"}]}]},rf=class extends tf{constructor(){super(R3,"vertical"),this.eSpacer=k,this.queueContainerHeightSync=this.throttleToFrame(()=>this.syncContainerHeight())}postConstruct(){super.postConstruct();const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this);const t=this.queueContainerHeightSync;e.whenReady(this,({gridBodyCtrl:o})=>{this.addDestroyFunc(Et(this.beans,o.eGridViewport,t))}),this.addManagedEventListeners({rowContainerHeightChanged:this.syncContainerHeight.bind(this),headerHeightChanged:this.onScrollVisibilityChanged.bind(this),pinnedRowsChanged:t,pinnedHeightChanged:t,pinnedRowDataChanged:t}),this.addManagedPropertyListeners(["suppressHorizontalScroll","enableRtl"],this.onScrollVisibilityChanged.bind(this))}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,o=this.invisibleScrollbar,r=this.beans.ctrlsSvc.getGridBodyCtrl(),i=e.getScrollbarWidth()||0,a=t?r?.getVerticalScrollbarWidth()??i:0,n=a===0&&o?Bl:a,s=r?.getHorizontalScrollbarHeight()??0,l=r?.getHeaderRowsOffset()??0,c=this.getGui();c.style.bottom=`${s}px`,this.eSpacer.style.height=`${l}px`,this.toggleCss("ag-scrollbar-invisible",!!o),kt(c,n),kt(this.eViewport,n),kt(this.eContainer,n),this.setDisplayed(t,{skipAriaHidden:!0}),this.queueContainerHeightSync()}syncContainerHeight(){const e=this.beans.ctrlsSvc.getGridBodyCtrl();if(!e)return;const t=e.eGridViewport.clientHeight,o=e.getScrollContentHeight(t),r=this.eViewport.clientHeight,i=t-r;this.eContainer.style.height=`${Math.max(1,o-i)}px`,this.setScrollPosition(e.scrollFeature.getVerticalScrollPositionForSync())}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e){this.eViewport.scrollTop=e}},F3={selector:"AG-FAKE-VERTICAL-SCROLL",component:rf},wt="Viewport",af="fakeVScrollComp",Hl=["fakeHScrollComp"],M3=[...Hl,wt],nf=100,Nl=150,D3=class extends x{constructor(e){super(),this.clearRetryListenerFncs=[],this.lastScrollSource=[null,null],this.scrollLeft=0,this.nextScrollTop=0,this.scrollTop=0,this.pendingFakeVScrollTop=null,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.lastIsHorizontalScrollShowing=!1,this.scrollTimer=0,this.isScrollActive=!1,this.isVerticalPositionInvalidated=!0,this.isHorizontalPositionInvalidated=!0,this.eGridViewport=e,this.resetLastHScrollDebounced=se(this,()=>this.lastScrollSource[1]=null,Nl),this.resetLastVScrollDebounced=se(this,()=>this.lastScrollSource[0]=null,Nl)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc}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.eGridViewport,{scroll:()=>{e(),t()}}),this.ctrlsSvc.whenReady(this,o=>{this.fakeVScrollComp=o.fakeVScrollComp,this.fakeHScrollComp=o.fakeHScrollComp,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}invalidateHorizontalScroll(){this.isHorizontalPositionInvalidated=!0}invalidateVerticalScroll(){this.isVerticalPositionInvalidated=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.eGridViewport,{scroll:this.onHScroll.bind(this,wt)});for(const e of Hl)this.fakeHScrollComp.onScrollCallback(this.onHScroll.bind(this,e))}addVerticalScrollListeners(){const e=this.gos.get("debounceVerticalScrollbar"),t=e?se(this,this.onVScroll.bind(this,wt),nf):this.onVScroll.bind(this,wt),o=e?this.debounceFakeVScroll():this.onVScroll.bind(this,af);this.addManagedElementListeners(this.eGridViewport,{scroll:t}),this.fakeVScrollComp.onScrollCallback(o)}debounceFakeVScroll(){const e=se(this,()=>{this.pendingFakeVScrollTop==null&&this.fakeVScrollComp.getScrollPosition()!==this.eGridViewport.scrollTop||(this.pendingFakeVScrollTop=null,this.onVScroll(af))},nf);return()=>{const t=this.fakeVScrollComp.getScrollPosition();this.pendingFakeVScrollTop=t===this.eGridViewport.scrollTop?null:t,e()}}getVerticalScrollPositionForSync(){return this.pendingFakeVScrollTop??this.eGridViewport.scrollTop}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.fakeHScrollComp!=null&&(e??(e=et(this.eGridViewport,this.enableRtl)),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of M3){if(this.lastScrollSource[1]===t)continue;const o=this.getViewportForSource(t);Wo(o,e,this.enableRtl)}}getViewportForSource(e){return e===wt?this.eGridViewport:this.fakeHScrollComp.eViewport}isControllingVScroll(e){const t=this.lastScrollSource[0];return t==null?(this.lastScrollSource[0]=e,!0):t===e}isControllingHScroll(e){const t=this.lastScrollSource[1];return t==null?(this.lastScrollSource[1]=e,!0):t===e}onHScroll(e){const t=this.getViewportForSource(e);let o=et(t,this.enableRtl);if(o===this.scrollLeft&&(e!==wt||o===this.fakeHScrollComp.getScrollPosition())||!this.isControllingHScroll(e))return;const r=this.clampHorizontalScrollPosition(o);if(Math.abs(r-o)>.1&&(Wo(t,Math.abs(r),this.enableRtl),o=et(t,this.enableRtl)),this.shouldBlockHorizontalScroll(o)){this.resetLastHScrollDebounced();return}e!==wt&&(Wo(this.eGridViewport,Math.abs(o),this.enableRtl),o=et(this.eGridViewport,this.enableRtl)),this.doHorizontalScroll(o),this.resetLastHScrollDebounced()}onVScroll(e){const{nextScrollTop:t,fakeVScrollComp:o}=this,r=e===wt,i=r?this.eGridViewport.scrollTop:o.getScrollPosition();if(i===t&&(!r||o.getScrollPosition()===t)||!this.isControllingVScroll(e))return;let a=i;if(this.shouldBlockVerticalScroll(a)){this.resetLastVScrollDebounced();return}e===wt?this.fakeVScrollComp.setScrollPosition(a):(this.eGridViewport.scrollTop=i,a=this.eGridViewport.scrollTop,this.invalidateVerticalScroll(),a!==i&&this.fakeVScrollComp.setScrollPosition(a));const{animationFrameSvc:n}=this;n?.setScrollTop(a),this.nextScrollTop=a,n?.active?n.schedule():this.scrollGridIfNeeded(!0),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.fakeHScrollComp.getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.ctrlsSvc.getGridBodyCtrl()?.updateColumnViewport(!0,e))}isScrolling(){return this.isScrollActive}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"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"})},Nl)}shouldBlockVerticalScroll(e){if(!Ut())return!1;const t=Kn(this.eGridViewport),{scrollHeight:o}=this.eGridViewport;return e<0||e+t>o}shouldBlockHorizontalScroll(e){return Ut()?Math.abs(this.clampHorizontalScrollPosition(e)-e)>.1:!1}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){const e=et(this.eGridViewport,this.enableRtl);let t=!1;for(const o of Hl){const r=this.getViewportForSource(o);if(et(r,this.enableRtl)!==e){t=!0;break}}t&&this.onHScroll(wt)}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){e=this.clampHorizontalScrollPosition(e),Wo(this.eGridViewport,Math.abs(e),this.enableRtl),e=et(this.eGridViewport,this.enableRtl),this.doHorizontalScroll(e)}getMaxHorizontalScrollLeft(){const e=this.ctrlsSvc.getGridBodyCtrl();if(!e){const i=Go(this.eGridViewport);return Math.max(0,this.eGridViewport.scrollWidth-i)}const t=e.getHorizontalViewportWidth(),o=e.isPinnedWidthOverflowingViewport(t),r=Math.max(e.getHorizontalContentWidth(o),t);return Math.max(0,r-t)}clampHorizontalScrollPosition(e){const t=this.getMaxHorizontalScrollLeft();return bo(e,0,t)}setVerticalScrollPosition(e){this.invalidateVerticalScroll(),this.eGridViewport.scrollTop=e}getVScrollPosition(){if(!this.isVerticalPositionInvalidated){const{lastOffsetHeight:r,lastScrollTop:i}=this,a=this.getBodyViewportHeight(r);return{top:i,bottom:i+a}}this.isVerticalPositionInvalidated=!1;const{scrollTop:e,offsetHeight:t}=this.eGridViewport;this.lastScrollTop=e,this.lastOffsetHeight=t;const o=this.getBodyViewportHeight(t);return{top:e,bottom:e+o}}getApproximateVScollPosition(){if(this.lastScrollTop>=0&&this.lastOffsetHeight>=0){const e=this.getBodyViewportHeight(this.lastOffsetHeight);return{top:this.scrollTop,bottom:this.scrollTop+e}}return this.getVScrollPosition()}getBodyViewportHeight(e){const t=this.ctrlsSvc.getGridBodyCtrl();return t?t.getBodyViewportHeight(e):e}getHScrollPosition(){return this.ctrlsSvc.getGridBodyCtrl()?.getHorizontalScrollPosition()??{left:0,right:0}}isHorizontalScrollShowing(){return this.isHorizontalPositionInvalidated&&(this.lastIsHorizontalScrollShowing=this.beans.scrollVisibleSvc.isHorizontalScrollShowing(),this.isHorizontalPositionInvalidated=!1),this.lastIsHorizontalScrollShowing}scrollHorizontally(e){const t=et(this.eGridViewport,this.enableRtl);return this.setHorizontalScrollPosition(t+e),this.scrollLeft-t}scrollToTop(){this.setVerticalScrollPosition(0)}ensureNodeVisible(e,t=null){const{rowModel:o}=this.beans,r=o.getRowCount();let i=-1;for(let a=0;a<r;a++){const n=o.getRow(a);if(typeof e=="function"){if(n&&e(n)){i=a;break}}else if(e===n||e===n.data){i=a;break}}i>=0&&this.ensureIndexVisible(i,t)}ensureIndexVisible(e,t,o=0){if(ke(this.gos,"print"))return;const{rowModel:r}=this.beans,i=r.getRowCount();if(typeof e!="number"||e<0||e>=i){this.warn(88,{index:e});return}this.clearRetryListeners();const{frameworkOverrides:a,pageBounds:n,rowContainerHeight:s,rowRenderer:l}=this.beans;a.wrapIncoming(()=>{const c=this.ctrlsSvc.getGridBodyCtrl(),d=r.getRow(e);let g,u,h=0;this.invalidateVerticalScroll();do{const{stickyTopHeight:p,stickyBottomHeight:f}=c,m=d.rowTop,w=d.rowHeight,v=n.getPixelOffset(),C=d.rowTop-v,b=C+d.rowHeight,S=this.getVScrollPosition(),E=s.divStretchOffset,F=S.top+E,P=S.bottom+E,z=P-F,V=s.getScrollPositionForPixel(C),H=s.getScrollPositionForPixel(b-z),Se=Math.min((V+H)/2,C),J=F+p>C,xe=P-f<b;let ee=null;t==="top"?ee=V-p:t==="bottom"?ee=H+f:t==="middle"?ee=Se:J?ee=V-p:xe&&(H-V>z?ee=V-p:ee=H+f),ee!==null&&(this.setVerticalScrollPosition(ee),l.redraw({afterScroll:!0})),g=m!==d.rowTop||w!==d.rowHeight,u=p!==c.stickyTopHeight||f!==c.stickyBottomHeight,h++}while((g||u)&&h<10);if(this.animationFrameSvc?.flushAllFrames(),o<10&&(d?.stub||this.beans.rowAutoHeight?.areRowsMeasured()===!1)){const p=this.getVScrollPosition().top;this.clearRetryListenerFncs=this.addManagedEventListeners({bodyScroll:()=>{const f=this.getVScrollPosition().top;p!==f&&this.clearRetryListeners()},modelUpdated:()=>{this.clearRetryListeners(),!(e>=r.getRowCount())&&this.ensureIndexVisible(e,t,o+1)}})}})}clearRetryListeners(){for(const e of this.clearRetryListenerFncs)e();this.clearRetryListenerFncs=[]}ensureColumnVisible(e,t="auto"){const{colModel:o,frameworkOverrides:r}=this.beans,i=o.getCol(e);if(!i||i.isPinned()||!i.displayed)return;const a=this.ctrlsSvc.getGridBodyCtrl()?.getCenterWidth()??0,n=this.getPositionedHorizontalScroll(i,t,a);r.wrapIncoming(()=>{const s=this.ctrlsSvc.getGridBodyCtrl();n!==null&&s?.setHorizontalScrollLeft(n),s?.updateColumnViewport(!1,void 0,a),this.animationFrameSvc?.flushAllFrames()})}getPositionedHorizontalScroll(e,t,o){const r=this.ctrlsSvc.getGridBodyCtrl(),i=e.getLeft(),a=e.getActualWidth();if(t==="middle")return i+a/2-o/2;if(t==="start")return i;if(t==="end")return i+a-o;const n=r?.getHorizontalScrollLeft()??0;return n>i||o<a?i:n+o<i+a?i+a-o:null}},P3=class extends x{constructor(e){super(),this.centerContainerCtrl=e,this.scheduleCenterViewportResize=this.throttleToFrame(()=>this.onCenterViewportResized()),this.scheduleViewportGeometryRefresh=this.throttleToFrame(()=>this.onViewportGeometryChanged()),this.scheduleScrollVisibilityRefresh=this.throttleToFrame(()=>this.scrollVisibleSvc.refresh())}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,t=>{this.gridBodyCtrl=t.gridBodyCtrl,this.listenForResize()});const e=this.scheduleViewportGeometryRefresh;this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this),scrollVisibilityChanged:this.onViewportGeometryChanged.bind(this),pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:e}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:o}=this;if(!o)return;t.registerViewportResizeListener(this.scheduleCenterViewportResize);const r=Et(e,t.eContainer,this.scheduleScrollVisibilityRefresh);this.addDestroyFunc(()=>r())}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onViewportGeometryChanged(){this.gridBodyCtrl&&this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.gridBodyCtrl)if(this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans,o=this.gridBodyCtrl,r=window.getComputedStyle(o.eGridViewport);o.refreshViewportWidth(Go(o.eGridViewport,r)),e?.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls(r);const i=o.getReportedCenterWidth();t&&i!==t.flexViewportWidth&&(o.cancelColumnWidthAnimation(),t.refreshFlexedColumns({viewportWidth:i,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(e){const t=this.gridBodyCtrl;if(!t)return;const o=t.eGridViewport,r=e??window.getComputedStyle(o);t.refreshViewportWidth(Go(o,r)),this.scrollVisibleSvc.refresh(),this.checkBodyHeight(Kn(o,r)),this.onHorizontalViewportChanged(),t.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(e){const t=this.gridBodyCtrl;if(!t)return;const o=t.getBodyViewportHeight(e);this.bodyHeight!==o&&(this.bodyHeight=o,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}onHorizontalViewportChanged(){this.gridBodyCtrl?.updateColumnViewport()}};function li(e,t,o,r){const i=t.getColDef().cellRendererParams?.suppressMouseEventHandling;return sf(e,t,o,r,i)}function T3(e,t,o,r){const i=t?.suppressMouseEventHandling;return sf(e,void 0,o,r,i)}function sf(e,t,o,r,i){return i?i(W(e,{column:t,node:o,event:r})):!1}function lf(e,t,o){let r=t;for(;r;){const i=Ps(e,r,o);if(i)return i;r=r.parentElement}return null}var Ra="cellCtrl";function Fa(e,t){return lf(e,t,Ra)}var Ma="renderedRow";function cf(e,t){return lf(e,t,Ma)}function Gl(e,t,o,r,i){const a=r?r.colDef.suppressKeyboardEvent:void 0;if(!a)return!1;const n=W(e,{event:t,editing:i,column:r,node:o,data:o.data,colDef:r.colDef});return!!(a&&a(n))}function df(e){const{pinnedRowModel:t,rowModel:o,rangeSvc:r,visibleCols:i}=e;if(!r||i.allCols.length===0)return;const a=t?.isEmpty("top")??!0,n=t?.isEmpty("bottom")??!0,s=a?null:"top";let l,c;n?(l=null,c=o.getRowCount()-1):(l="bottom",c=(t?.getPinnedBottomRowCount()??0)-1),r.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:c,rowEndPinned:l})}var A3=class extends x{constructor(e){super(),this.element=e,this.mouseDownEvent="mousedown",this.pendingTouchDown=null}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(){ji("pointerdown")?this.mouseDownEvent="pointerdown":ji("touchstart")&&(this.mouseDownEvent="touchstart");const e=["dblclick","contextmenu","mouseover","mouseout","click",this.mouseDownEvent];for(const t of e){const o=this.processMouseEvent.bind(this,t);this.addManagedElementListeners(this.element,{[t]:o})}}processMouseEvent(e,t){if(!Mr(this.beans,t))return;const o=rt(t);if(e===this.mouseDownEvent){if(this.pendingTouchDown=!o&&I3(t)?t:null,this.pendingTouchDown)return}else(e==="click"||e==="contextmenu")&&this.confirmPendingTouchDown(t.target);o||this.dispatchMouseEvent(e,t)}confirmPendingTouchDown(e){const t=this.pendingTouchDown;this.pendingTouchDown=null,t?.target===e&&this.dispatchMouseEvent(this.mouseDownEvent,t)}dispatchMouseEvent(e,t){const{cellCtrl:o,rowCtrl:r}=this.getControlsForEventTarget(t.target);if(e==="contextmenu"){if(!o&&!r)return;o?.column&&o.dispatchCellContextMenuEvent(t),this.beans.contextMenuSvc?.handleContextMenuMouseEvent(t,void 0,r,o)}else o&&o.onMouseEvent(e,t),r&&r.onMouseEvent(e,t)}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:Fa(t,e),rowCtrl:cf(t,e)}}processKeyboardEvent(e,t){const{cellCtrl:o,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):r?.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,o){const r=this.editSvc?.isEditing(e,{withOpenEditor:!0})??!1;!Gl(this.gos,o,e.rowNode,e.column,r)&&t==="keydown"&&(!r&&this.beans.navigation?.handlePageScrollingKey(o)||e.onKeyDown(o),this.doGridOperations(o,r),uS(o)&&e.processCharacter(o)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(o,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,o){const{rowNode:r}=e,a=this.beans.focusSvc.getFocusedCell()?.column;!Gl(this.gos,o,r,a,!1)&&t==="keydown"&&this.processFullWidthRowKeyDown(e,o,a),t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",o))}processFullWidthRowKeyDown(e,t,o){switch(t.key){case y.PAGE_HOME:case y.PAGE_END:case y.PAGE_UP:case y.PAGE_DOWN:this.beans.navigation?.handlePageScrollingKey(t,!0);return;case y.LEFT:case y.RIGHT:if(!this.gos.get("embedFullWidthRows"))return;case y.UP:case y.DOWN:e.onKeyboardNavigate(t);return;case y.F2:this.processFullWidthRowNoteShortcut(e,t,o,this.beans.notesSvc);return;case y.TAB:e.onTabKeyDown(t);return;case y.SPACE:if(t.target!==e.getCurrentRowElement())return;Ft(this.gos)&&this.beans.selectionSvc?.handleSelectionEvent(t,e.rowNode,"spaceKey"),t.preventDefault();return;default:}}processFullWidthRowNoteShortcut(e,t,o,r=this.beans.notesSvc){if(!t.shiftKey||!r?.hasDataSource())return;const i=e.rowNode,a=e.findInfoForEvent(t);let n;if(a){const{pinned:l}=a;n={rowNode:i,location:"fullWidthRow",pinned:l==="left"||l==="right"?l:void 0}}else o&&(n={rowNode:i,column:o});if(!n)return;const s=r.getNoteAccess(n);s&&(!s.isSuppressed||s.canView)&&(r.showNote(s.params,!0),t.preventDefault())}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!Mr(this.beans,e))return;const o=Dg(e),{clipboardSvc:r,undoRedo:i}=this.beans;if(o===y.A)return this.onCtrlAndA(e);if(o===y.C)return this.onCtrlAndC(r,e);if(o===y.D)return this.onCtrlAndD(r,e);if(o===y.V)return this.onCtrlAndV(r,e);if(o===y.X)return this.onCtrlAndX(r,e);if(o===y.Y)return this.onCtrlAndY(i);if(o===y.Z)return this.onCtrlAndZ(i,e)}onCtrlAndA(e){const{beans:{rowModel:t,rangeSvc:o,selectionSvc:r},gos:i}=this;o&&ft(i)&&!kS(i)&&t.isRowsToRender()?df(this.beans):r&&r.selectAllRowNodes({source:"keyboardSelectAll",selectAll:oh(i)}),e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{withOpenEditor:!0})||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:o}=this.getControlsForEventTarget(t.target);this.editSvc?.isEditing(o,{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")}};function I3(e){return e.type==="touchstart"?!0:"pointerType"in e&&e.pointerType!=="mouse"&&e.pointerType!=="pen"}var z3=class extends x{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.getAdjustedUiContainerHeight(),o=t!=null?`${t}px`:"";this.eContainer.style.height=o,this.eViewport&&(this.eViewport.style.height=o)}},Wl=["scrolling","pinnedTop","pinnedBottom","stickyTop","stickyBottom"],L3=e=>e.topRowCtrls,O3=e=>e.bottomRowCtrls,V3=e=>e.allRowCtrls,B3=e=>e.getStickyTopRowCtrls(),H3=e=>e.getStickyBottomRowCtrls(),N3=e=>e.getCtrls("top"),G3=e=>e.getCtrls("center"),W3=e=>e.getCtrls("bottom"),q3={scrolling:{name:"grid-scrolling",getRowCtrls:V3,getSpannedRowCtrls:G3},pinnedTop:{name:"grid-pinned-top-rows",getRowCtrls:L3,getSpannedRowCtrls:N3},pinnedBottom:{name:"grid-pinned-bottom-rows",getRowCtrls:O3,getSpannedRowCtrls:W3},stickyTop:{name:"grid-sticky-top-rows",getRowCtrls:B3},stickyBottom:{name:"grid-sticky-bottom-rows",getRowCtrls:H3}};function gf(e){return`ag-${ci(e).name}-container`}function uf(e){return`ag-${ci(e).name}-spanned-cells-container`}function ci(e){return q3[e]}var U3="scrolling",_3=["stickyTop","stickyBottom"],hf=class extends x{constructor(e){super(),this.name=e,this.EMPTY_CTRLS=[],this.containerWidth=null,this.options=ci(e)}postConstruct(){this.isScrollingCenterContainer()&&(this.viewportSizeFeature=this.createManagedBean(new P3(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)}))}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.beans.ctrlsSvc.register(this.name,this)}isScrollingCenterContainer(){return this.name==="scrolling"}isContainer(e){return Array.isArray(e)?e.includes(this.name):this.name===e}setComp(e,t,o,r){this.comp=e,this.eContainer=t,this.eViewport=r;const{rangeSvc:i}=this.beans;this.isScrollingCenterContainer()&&(this.createManagedBean(new A3(this.eViewport??this.eContainer)),this.addPreventScrollWhileDragging(),i&&this.createManagedBean(i.createDragListenerFeature(this.eViewport??this.eContainer))),this.listenOnDomOrder(),this.isContainer(U3)&&this.createManagedBean(new z3(this.eContainer)),this.setPinnedRowBorderWidth(),this.addListeners(),this.registerWithCtrlsService()}setPinnedRowBorderWidth(){this.eContainer.style.setProperty("--ag-pinned-row-border-width",`${this.beans.environment.getPinnedRowBorderWidth()}px`)}setContainerWidth(e){e!==this.containerWidth&&(this.containerWidth=e,this.comp.setContainerWidth(`${e}px`))}addListeners(){const{spannedRowRenderer:e,gos:t}=this.beans,o=this.onDisplayedColumnsChanged.bind(this);this.addManagedEventListeners({stylesChanged:this.setPinnedRowBorderWidth.bind(this),displayedColumnsChanged:o,displayedColumnsWidthChanged:o,displayedRowsChanged:r=>this.onDisplayedRowsChanged(r.afterScroll)}),o(),this.onDisplayedRowsChanged(),e&&this.options.getSpannedRowCtrls&&t.get("enableCellSpan")&&this.addManagedListeners(e,{spannedRowsUpdated:()=>{const r=this.options.getSpannedRowCtrls(e);r&&this.comp.setSpannedRowCtrls(r,!1)}})}listenOnDomOrder(){if(this.isContainer(_3)){this.comp.setDomOrder(!0);return}const e=()=>{const t=this.gos.get("ensureDomOrder"),o=ke(this.gos,"print");this.comp.setDomOrder(t||o)};this.addManagedPropertyListener("domLayout",e),e()}onDisplayedColumnsChanged(){this.isScrollingCenterContainer()&&this.beans.ctrlsSvc.getGridBodyCtrl()?.updateColumnViewport()}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=r=>{e.dragging&&r.cancelable&&r.preventDefault()},o=this.eViewport??this.eContainer;o.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>o.removeEventListener("touchmove",t))}registerViewportResizeListener(e){const t=Et(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return Xg(this.eViewport)}setContainerHeight(e){this.eContainer.style.height=e>0?`${e}px`:""}setContainerTop(e){this.eContainer.style.top=`${e}px`}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer),o=t.length===0;this.comp.setRowCtrls({rowCtrls:o?this.EMPTY_CTRLS:t,useFlushSync:e}),this.comp.setHidden(o)}},j3="ag-selectable",K3="ag-column-moving",Da="ag-animate-autosize",Y3=250,pf=class extends x{constructor(){super(...arguments),this.isTreeGrid=!1,this.topPinnedRowsHeight=0,this.bottomPinnedRowsHeight=0,this.stickyTopHeight=0,this.stickyBottomHeight=0,this.reportedViewportWidth=null,this.scrollableAreaWidth=null,this.pinnedLeftWidth=-1,this.pinnedRightWidth=-1,this.columnWidthAnimationDepth=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,o,r,i,a,n){this.comp=e,this.eGridBody=t,this.eGridViewport=o,this.eScrollingRows=r,this.eTop=i,this.eTopExtraRows=a,this.eBottom=n,this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",s=>this.setCellTextSelection(s.currentValue)),this.createManagedBean(new Vl(this.comp)),this.scrollFeature=this.createManagedBean(new D3(o)),this.beans.rowDragSvc?.setupRowDrag(r,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([i,o,n]),this.setGridRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.filterManager?.mountAdvFilterTopSectionComp({mountComp:s=>a.appendChild(s),unmountComp:s=>s.remove()}),this.setPinnedRowsHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updatePinnedColumnStickyOffsets(),this.updatePinnedWidths(),this.updateScrollingClasses(),this.addManagedListeners(this.ctrlsSvc,{ready:()=>this.updateWidths()}),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setPinnedRowsHeights.bind(this),t=this.setGridRole.bind(this),o=this.toggleRowResizeStyles.bind(this),r=this.updatePinnedColumnStickyOffsets.bind(this),i=()=>{this.updatePinnedWidths(),this.updateWidths(),this.updateScrollingClasses()},a=()=>this.updateWidths(),n=()=>this.updateViewportGeometry();this.addManagedPropertyListener("domLayout",a),this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:a,displayedColumnsWidthChanged:a,leftPinnedWidthChanged:i,rightPinnedWidthChanged:i,scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollbarWidthChanged:n,scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,pinnedRowsChanged:e,headerHeightChanged:e,stylesChanged:e,gridSizeChanged:()=>{const l=Go(this.eGridViewport);this.refreshViewportWidth(l)||this.updateViewportGeometry(l)},columnRowGroupChanged:t,columnPivotChanged:t,modelUpdated:t,rowResizeStarted:o,rowResizeEnded:o});const s=this.beans.masterDetailSvc;Kt(this.gos)&&s&&this.addManagedListeners(s,{masterChanged:se(this,t,0)}),this.addManagedPropertyListener("treeData",t),this.addManagedPropertyListener("enableRtl",r)}toggleRowResizeStyles(e){const t=e.type==="rowResizeStarted";this.comp.setPreventRowAnimationCssOnContainers(t)}onGridColumnsChanged(){const e=this.beans.colModel.colsList;this.comp.setColumnCount(e.length),this.updateWidths(),this.setGridRole()}onScrollVisibilityChanged(){this.setStickyWidth(this.scrollVisibleSvc.verticalScrollShowing),this.updateViewportGeometry(),this.updateScrollingClasses()}updateViewportGeometry(e=this.getReportedViewportWidth()){this.updateWidths(e),this.updatePinnedColumnStickyOffsets(),this.updateGridViewportWidth(e)}updateWidths(e=this.getReportedViewportWidth()){const t=this.scrollVisibleSvc.verticalScrollShowing,o=this.getVerticalScrollbarWidth(t),r=this.isPinnedWidthOverflowingViewport(e,t)&&this.isPinnedWidthOverflowingViewport(void 0,t),i=this.getHorizontalContentWidth(r,t),a=Math.max(i,e,1);a!==this.scrollableAreaWidth&&(this.scrollableAreaWidth=a,this.comp.setGridScrollableAreaWidth(`${a}px`)),this.comp.setPinnedColumnsOverflowing(r);const n=this.ctrlsSvc;for(let s=0,l=Wl.length;s<l;++s)n.get(Wl[s])?.setContainerWidth(a);n.get("fakeHScrollComp")?.setContentWidth(i-o),n.getHeaderRowContainerCtrl()?.setRowWidths(a),r&&this.getHorizontalScrollLeft()!==0&&this.setHorizontalScrollLeft(0)}getHorizontalContentWidth(e,t){return e?0:this.getColumnsWidth()+this.getVerticalScrollbarWidth(t)}getColumnsWidth(){return this.beans.visibleCols.bodyWidth+this.getPinnedWidth()}isPinnedWidthOverflowingViewport(e,t=this.scrollVisibleSvc.verticalScrollShowing){if(ke(this.gos,"print"))return!1;const o=e??this.getHorizontalViewportWidth(),r=this.getPinnedWidth();return o>0&&r>0&&r>=this.getViewportWidthWithoutScrollbar(o,t)}getPinnedWidth(){const{visibleCols:e}=this.beans;return e.getLeftStickyColumnContainerWidth()+e.getRightStickyColumnContainerWidth()}getReportedViewportWidth(){const e=this.reportedViewportWidth;if(e!==null)return e;const t=this.getHorizontalViewportWidth();return this.reportedViewportWidth=t>0?t:null,t}getHorizontalViewportWidth(){return Go(this.eGridViewport)}refreshViewportWidth(e){const t=e>0?e:null;return t===this.reportedViewportWidth?!1:(this.reportedViewportWidth=t,t!==null&&this.updateViewportGeometry(t),this.eventSvc.dispatchEvent({type:"gridViewportWidthChanged"}),!0)}getViewportWidthWithoutScrollbar(e=this.getHorizontalViewportWidth(),t=this.scrollVisibleSvc.verticalScrollShowing){return Math.max(0,e-this.getVerticalScrollbarWidth(t))}getCenterWidth(e){return Math.max(0,this.getViewportWidthWithoutScrollbar(e)-this.getPinnedWidth())}getReportedCenterWidth(){return this.getCenterWidth(this.getReportedViewportWidth())}getHorizontalScrollLeft(){return et(this.eGridViewport,this.gos.get("enableRtl"))}setHorizontalScrollLeft(e){Wo(this.eGridViewport,e,this.gos.get("enableRtl"))}getHorizontalScrollPosition(){const e=this.getHorizontalScrollLeft();return{left:e,right:e+this.getCenterWidth()}}updateColumnViewport(e=!1,t,o=this.getReportedCenterWidth()){this.beans.colViewport.setScrollPosition(o,t??this.getHorizontalScrollLeft(),e)}updateGridViewportWidth(e){const t=this.getViewportWidthWithoutScrollbar(e);this.eGridViewport.style.setProperty("--ag-internal-grid-viewport-width",`${t}px`)}setGridRole(){const{rowGroupColsSvc:e,colModel:t,gos:o}=this;let r=o.get("treeData");if(!r){const i=t.pivotMode;r=(e?e.columns.length:0)>=(i?2:1)}if(!r&&o.get("masterDetail")&&(r=this.beans.masterDetailSvc?.hasExpandableMasterRows()??!1),this.comp.setGridRole(r?"treegrid":"grid"),this.isTreeGrid!==r){this.isTreeGrid=r;for(const i of this.beans.rowRenderer.getAllRowCtrls())i.refreshAriaLevel()}}addFocusListeners(e){for(const t of e)this.addManagedElementListeners(t,{focusin:o=>{const{target:r}=o,i=uo(r,"ag-root",t);t.classList.toggle("ag-has-focus",!i)},focusout:o=>{const{target:r,relatedTarget:i}=o,a=t.contains(i),n=uo(i,"ag-root",t);uo(r,"ag-root",t)||(!a||n)&&t.classList.remove("ag-has-focus")}})}setColumnMovingCss(e){this.comp.setColumnMovingCss(K3,e)}startColumnWidthAnimation(){this.columnWidthAnimationDepth++;const e=this.gos;!e.get("animateColumnResizing")||e.get("enableRtl")||(window.clearTimeout(this.columnWidthAnimationTimeout),this.columnWidthAnimationTimeout=void 0,this.comp.setColumnMovingCss(Da,!0))}finishColumnWidthAnimation(e){const t=Math.max(0,this.columnWidthAnimationDepth-1);if(this.columnWidthAnimationDepth=t,e){this.removeColumnWidthAnimation();return}t>0||!this.eGridBody.classList.contains(Da)||(window.clearTimeout(this.columnWidthAnimationTimeout),this.columnWidthAnimationTimeout=window.setTimeout(()=>{this.columnWidthAnimationTimeout=void 0,this.isAlive()&&this.comp.setColumnMovingCss(Da,!1)},Y3))}cancelColumnWidthAnimation(){this.removeColumnWidthAnimation()}removeColumnWidthAnimation(){window.clearTimeout(this.columnWidthAnimationTimeout),this.columnWidthAnimationTimeout=void 0,this.comp.setColumnMovingCss(Da,!1)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(j3,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t,beans:{visibleCols:o}}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap),e.toggle("ag-has-left-pinned-cols",o.getLeftStickyColumnContainerWidth()>0),e.toggle("ag-has-right-pinned-cols",o.getRightStickyColumnContainerWidth()>0)}updatePinnedWidths(){const e=this.beans.visibleCols,t=e.getLeftStickyColumnContainerWidth(),o=e.getRightStickyColumnContainerWidth(),r=this.eGridViewport.style;t!==this.pinnedLeftWidth&&(this.pinnedLeftWidth=t,r.setProperty("--ag-internal-pinned-left-width",`${t}px`)),o!==this.pinnedRightWidth&&(this.pinnedRightWidth=o,r.setProperty("--ag-internal-pinned-right-width",`${o}px`))}updatePinnedColumnStickyOffsets(){const{scrollVisibleSvc:e,gos:t,eGridBody:o}=this,r=e.verticalScrollShowing?this.getVerticalScrollbarWidth():0,i=t.get("enableRtl"),a=i?r:0,n=i?0:r;o.style.setProperty("--ag-internal-pinned-left-sticky-offset",`${a}px`),o.style.setProperty("--ag-internal-pinned-right-sticky-offset",`${n}px`)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){this.beans.editSvc?.addStopEditingWhenGridLosesFocus([this.eGridViewport,this.eBottom,this.eTop])}updateRowCount(){const e=Rl(this.beans),{rowModel:t,pinnedRowModel:o}=this.beans,r=o?.getPinnedTopRowCount()??0,i=o?.getPinnedBottomRowCount()??0,a=t.isLastRowIndexKnown()?t.getRowCount():-1,n=a===-1?-1:e+r+a+i;this.comp.setRowCount(n)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let o=t.sizesMeasured;const r=()=>{const i=o&&yo(this.gos)&&!e.stretching;this.comp.setRowAnimationCssOnScrollableArea(i)};r(),this.addManagedEventListeners({heightScaleChanged:r}),this.addManagedPropertyListener("animateRows",r),this.addManagedEventListeners({stylesChanged:()=>{!o&&t.sizesMeasured&&(o=!0,r())}})}addBodyViewportListener(){const{eGridViewport:e,eTop:t,eBottom:o,beans:{popupSvc:r,touchSvc:i}}=this,a=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(e,{contextmenu:a}),i?.mockBodyContextMenu(this,a),this.addManagedElementListeners(e,{wheel:this.onBodyViewportWheel.bind(this,r)});const n=this.onStickyWheel.bind(this);for(const s of[t,o])this.addManagedElementListeners(s,{wheel:n})}onStickyWheel(e){const{deltaY:t}=e;this.scrollVertically(t)>0&&e.preventDefault()}onBodyViewportContextMenu(e,t,o){if(!e&&!o)return;this.gos.get("preventDefaultOnContextMenu")&&(e??o).preventDefault();const r=(e??t)?.target,i=r instanceof Element?r:null,a=i!=null&&(i===this.eGridViewport||this.eGridViewport.contains(i)),n=!!i?.closest(".ag-row, .ag-spanned-row, .ag-header-row"),s=!!i?.closest(".ag-grid-pinned-top-rows");a&&!n&&!s&&this.beans.contextMenuSvc?.showContextMenu({mouseEvent:e,touchEvent:o,value:null,anchorToElement:this.eGridBody,source:"ui"})}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e?.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eGridViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eGridViewport.scrollTop-t}setPinnedRowsHeights(){const{pinnedRowModel:e}=this,t=e?.getPinnedTopTotalHeight(),o=e?.getPinnedBottomTotalHeight(),{environment:r}=this.beans,i=r.getPinnedRowBorderWidth(),a=(t??0)+(t?i:0),n=(o??0)+(o?i:0);this.topPinnedRowsHeight=a,this.bottomPinnedRowsHeight=n,this.ctrlsSvc.get("pinnedTop")?.setContainerHeight(a),this.ctrlsSvc.get("pinnedBottom")?.setContainerHeight(n),this.refreshTopSection(),this.refreshBottomSection()}refreshTopSection(){const e=this.filterManager?.getHeaderHeight()??0,t=this.getHeaderRowsOffset();this.eTopExtraRows.style.top="var(--ag-internal-header-rows-height, 0px)";const o=t;this.ctrlsSvc.get("pinnedTop")?.setContainerTop(o);const r=o+this.topPinnedRowsHeight;this.ctrlsSvc.get("stickyTop")?.setContainerTop(r),this.comp.setPinnedSection("top",{height:this.topPinnedRowsHeight+e,invisible:this.topPinnedRowsHeight<=0})}refreshBottomSection(){this.ctrlsSvc.get("stickyBottom")?.setContainerTop(0),this.ctrlsSvc.get("pinnedBottom")?.setContainerTop(this.stickyBottomHeight),this.comp.setPinnedSection("bottom",{height:this.bottomPinnedRowsHeight,invisible:this.bottomPinnedRowsHeight<=0})}setStickyTopHeight(e=0){this.stickyTopHeight!==e&&(this.stickyTopHeight=e,this.ctrlsSvc.get("stickyTop")?.setContainerHeight(e),this.refreshTopSection())}setStickyBottomHeight(e=0){this.stickyBottomHeight!==e&&(this.stickyBottomHeight=e,this.ctrlsSvc.get("stickyBottom")?.setContainerHeight(e),this.comp.setStickyBottomHeight(`${e}px`),this.refreshBottomSection(),this.updateStickyRowsHeightAdjustment(),this.eventSvc.dispatchEvent({type:"stickyBottomOffsetChanged",offset:e}))}updateStickyRowsHeightAdjustment(){const{stickyBottomHeight:e,beans:{rowContainerHeight:t}}=this;t.stickyBottomRowsHeight!==e&&(t.stickyBottomRowsHeight=e,this.eventSvc.dispatchEvent({type:"rowContainerHeightChanged"}))}setStickyWidth(e){this.comp.setStickyBottomWidth(e?`calc(100% - ${this.getVerticalScrollbarWidth()}px)`:"100%")}getHeaderRowsOffset(){const t=this.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight??0,o=this.filterManager?.getHeaderHeight()??0,r=this.beans.environment.getHeaderRowBorderWidth();return o+t+r}getTopPinnedRowsOffset(){return this.getHeaderRowsOffset()+this.topPinnedRowsHeight}getBottomPinnedRowsOffset(){return this.bottomPinnedRowsHeight}getBodyViewportHeight(e){const t=e-this.getTopPinnedRowsOffset()-this.bottomPinnedRowsHeight;return Math.max(0,t)}getScrollContentHeight(e){const t=this.getTopPinnedRowsOffset(),o=this.beans.rowContainerHeight.getAdjustedUiContainerHeight()??0,r=this.bottomPinnedRowsHeight+this.stickyBottomHeight,i=t+o+r;return Math.max(i,e)}getVerticalScrollbarWidth(e=this.scrollVisibleSvc.verticalScrollShowing){const{scrollVisibleSvc:t}=this;if(!e)return 0;const o=t.getScrollbarWidth()||0;return o===0?0:o}getHorizontalScrollbarHeight(){if(!(this.scrollVisibleSvc.horizontalScrollShowing&&!this.gos.get("suppressHorizontalScroll")))return 0;const o=this.ctrlsSvc.get("fakeHScrollComp")?.getGui().offsetHeight??0;if(o>0)return o;const r=this.scrollVisibleSvc,i=r.getScrollbarWidth()||0;return i===0&&r.isInvisibleScrollbar()?Bl:i}},Q3=class extends X{constructor(e,t,o,r,i){super(),this.cellCtrl=t,this.drawnInPass=0,this.rowResizerElement=null,this.rendererVersion=0,this.editorVersion=0,this.beans=e,this.gos=e.gos,this.column=t.column,this.rowNode=t.rowNode,this.eRow=r;const a=G({tag:"div",role:t.getCellAriaRole(),attrs:{"comp-id":`${this.getCompId()}`,"col-id":t.column.colIdSanitised}});this.eCell=a;let n;t.cellSpan!==null?(n=G({tag:"div",cls:"ag-spanned-cell-wrapper",role:"presentation"}),n.appendChild(a),this.setTemplateFromElement(n)):this.setTemplateFromElement(a),this.cellCssManager=new nu(()=>a),this.forceWrapper=t.isForceWrapper(),this.refreshWrapper(!1);const s={toggleCss:(l,c)=>this.cellCssManager.toggleCss(l,c),setUserStyles:l=>Fr(a,l),getFocusableElement:()=>a,setIncludeSelection:l=>this.includeSelection=l,setIncludeRowDrag:l=>this.includeRowDrag=l,setIncludeDndSource:l=>this.includeDndSource=l,setRowResizerElement:l=>this.setRowResizerElement(l),setRenderDetails:(l,c,d)=>this.setRenderDetails(l,c,d),setEditDetails:(l,c,d)=>this.setEditDetails(l,c,d),getCellEditor:()=>this.cellEditor??null,getCellRenderer:()=>this.cellRenderer??null,getParentOfValue:()=>this.getParentOfValue(),refreshEditStyles:(l,c)=>this.refreshEditStyles(l,c)};t.setComp(s,a,n,this.eCellWrapper,o,i,void 0)}getParentOfValue(){return this.eCellValue??this.eCellWrapper??this.eCell}setRowResizerElement(e){this.rowResizerElement&&Ge(this.rowResizerElement),this.rowResizerElement=e,e&&this.eCell.appendChild(e)}setRenderDetails(e,t,o){if(this.cellEditor&&!this.cellEditorPopupWrapper)return;this.firstRender=this.firstRender==null;const i=this.refreshWrapper(!1);this.refreshEditStyles(!1),e?!(o||i)&&this.refreshCellRenderer(e)||(this.firstRender||this.destroyRenderer(),this.createCellRendererInstance(e)):(this.firstRender||this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)),this.rowDraggingComp?.refreshVisibility()}setEditDetails(e,t,o){e?this.createCellEditorInstance(e,t,o):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,o=t||this.forceWrapper,r=o&&this.eCellWrapper==null;r&&(this.eCellWrapper=G({tag:"div",cls:"ag-cell-wrapper",role:"presentation"}),this.eCell.appendChild(this.eCellWrapper));const i=!o&&this.eCellWrapper!=null;i&&(Ge(this.eCellWrapper),this.eCellWrapper=void 0),this.cellCssManager.toggleCss("ag-cell-value",!o);const a=!e&&o,n=a&&this.eCellValue==null;if(n){const c=this.cellCtrl.getCellValueClass();this.eCellValue=G({tag:"span",cls:c,role:"presentation"}),this.eCellWrapper.appendChild(this.eCellValue)}const s=!a&&this.eCellValue!=null;s&&(Ge(this.eCellValue),this.eCellValue=void 0);const l=r||i||n||s;return l&&this.removeControls(),!e&&t&&this.addControls(),l}addControls(){const{cellCtrl:e,eCellWrapper:t,eCellValue:o,includeRowDrag:r,includeDndSource:i,includeSelection:a}=this,n=s=>{s&&t.insertBefore(s.getGui(),o)};r&&this.rowDraggingComp==null&&(this.rowDraggingComp=e.createRowDragComp(),n(this.rowDraggingComp)),i&&this.dndSourceComp==null&&(this.dndSourceComp=e.createDndSource(),n(this.dndSourceComp)),a&&this.checkboxSelectionComp==null&&(this.checkboxSelectionComp=e.createSelectionCheckbox(),n(this.checkboxSelectionComp))}createCellEditorInstance(e,t,o){const r=this.editorVersion,i=e.newAgStackInstance(),{params:a}=e;i.then(s=>this.afterCellEditorCreated(r,s,a,t,o)),Me(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell({forceBrowserFocus:!0})}insertValueWithoutCellRenderer(e){const t=this.getParentOfValue();Ce(t);const o=vo(e);o!=null&&(t.textContent=o),this.reattachDecorations(t)}reattachDecorations(e){this.cellCtrl.rangeFeature?.reattachHandle(e);const t=this.rowResizerElement;t&&!t.parentElement&&this.eCell.appendChild(t)}destroyRenderer(e=!0){const{context:t}=this.beans;this.cellRenderer=t.destroyBean(this.cellRenderer),Ge(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++,e&&this.cellCtrl.resetCellRendererTooltip()}destroyEditor(){const{context:e}=this.beans;(this.cellEditorPopupWrapper?.getGui().contains(Z(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),Ge(this.cellEditorGui),this.cellCtrl.disableEditorTooltipFeature(),this.cellEditorGui=null,this.editorVersion++}refreshCellRenderer(e){if(this.cellRenderer?.refresh==null||this.cellRendererClass!==e.componentClass)return!1;const t=this.cellRenderer.refresh(e.params);return t===!0||t===void 0}createCellRendererInstance(e){const t=this.rendererVersion,o=a=>n=>{if(this.rendererVersion!==t||!this.isAlive())return;const l=a.newAgStackInstance(),c=this.afterCellRendererCreated.bind(this,t,a.componentClass);l?.then(c)},{animationFrameSvc:r}=this.beans;let i;if(r?.active&&this.firstRender?i=(a,n=!1)=>{r.createTask(o(a),this.rowNode.rowIndex,"p2",a.componentFromFramework,n)}:i=a=>o(a)(),e.params?.deferRender&&!this.cellCtrl.rowNode.group){const{loadingComp:a,onReady:n}=this.cellCtrl.getDeferLoadingCellRenderer();a&&(i(a),n.then(()=>i(e,!0)))}else i(e)}afterCellRendererCreated(e,t,o){if(!this.isAlive()||e!==this.rendererVersion){this.beans.context.destroyBean(o);return}this.cellRenderer=o,this.cellRendererClass=t;const i=o.getGui();if(this.cellRendererGui=i,i!=null){const a=this.getParentOfValue();Ce(a),a.appendChild(i),this.reattachDecorations(a)}}afterCellEditorCreated(e,t,o,r,i){const a=e!==this.editorVersion,{context:n}=this.beans;if(a){n.destroyBean(t);return}if(t.isCancelBeforeStart?.()){n.destroyBean(t),this.cellCtrl.stopEditing(!0);return}if(!t.getGui){this.beans.log.warn(97,{colId:this.column.getId()}),n.destroyBean(t);return}this.cellEditor=t,this.cellEditorGui=t.getGui();const l=r||t.isPopup?.();l?this.addPopupCellEditor(o,i):this.addInCellEditor(),this.refreshEditStyles(!0,l),t.afterGuiAttached?.(),this.cellCtrl.enableEditorTooltipFeature(t),this.beans.editSvc?.onEditorAttached(this.cellCtrl)}refreshEditStyles(e,t){const{cellCssManager:o}=this;o.toggleCss("ag-cell-inline-editing",e&&!t),o.toggleCss("ag-cell-popup-editing",e&&!!t),o.toggleCss("ag-cell-not-inline-editing",!e||!!t)}addInCellEditor(){const{eCell:e}=this;e.contains(Z(this.beans))&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),Ce(this.getParentOfValue()),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)}addPopupCellEditor(e,t){const{gos:o,context:r,popupSvc:i,editSvc:a}=this.beans;o.get("editType")==="fullRow"&&this.beans.log.warn(98);const n=this.cellEditorPopupWrapper=r.createBean(a.createPopupEditorWrapper(e)),{cellEditor:s,cellEditorGui:l,eCell:c,rowNode:d,column:g,cellCtrl:u}=this,h=n.getGui();l&&h.appendChild(l);const p=o.get("stopEditingWhenCellsLoseFocus"),f=t??s.getPopupPosition?.()??"over",m=o.get("enableRtl"),w={ePopup:h,additionalParams:{column:g,rowNode:d},type:"popupCellEditor",eventSource:c,position:f,alignSide:m?"right":"left",keepWithinBounds:!0},v=i.positionPopupByComponent.bind(i,w),C=i.addPopup({modal:p,eChild:h,closeOnEsc:!0,closedCallback:b=>{a.onPopupEditorClosed(u,b)},anchorToElement:c,positionCallback:v,ariaOwns:c});C&&(this.hideEditorPopup=C.hideFunc)}detach(){this.getGui().remove()}destroy(){this.destroyRenderer(!1),this.destroyEditor(),this.removeControls(),super.destroy()}};function ql(e,t,o){const r=e[t];if(r.colSpanIndex<0)return 1;const i=Math.min(r.getColSpan(o),e.length-t);for(let a=1;a<i;++a){const n=e[t+a];if(n.pinnedLane!==r.pinnedLane||n.allColsIndex!==r.allColsIndex+a)return a}return i}function ff(e,t,o,r,i){const a=[];let n=null,l=t.length;for(;r!==null&&l>0&&!r(t[l-1]);)--l;for(let c=0;c<l;++c){const d=t[c],g=Ul(e,t,c,o),u=r===null||Z3(t,c,g,r);c+=g-1,u&&(a.length===0&&n&&i?.(d)&&a.push(n),a.push(d)),n=d}return a}function Ul(e,t,o,r){const i=t[o].colSpanIndex;if(i<0)return 1;if(!r)return ql(t,o,e);let a=r[i];return a===0&&(a=ql(t,o,e),r[i]=a),a}var Z3=(e,t,o,r)=>{for(let i=t,a=t+o;i<a;++i)if(r(e[i]))return!0;return!1};function J3(e,t){t.drawnPosition=null,t.drawnWidth=null,_l(e,t),wf(e,t)}function mf(e,t){if(t.cellSpan!==null)return;const o=t.column.getRowSpan(t.rowNode);t.legacyRowSpan!==o&&(t.legacyRowSpan=o,wf(e,t,!0))}function vf(e,t,o){const r=t.colsSpanning,i=e.visibleCols,a=i.displayedColsVersion;if(r===null){if(o===1||t.cellSpan!==null)return}else if(r.length===o&&t.colsSpanningVersion===a)return;const n=t.column.allColsIndex;t.colsSpanning=i.allCols.slice(n,n+o),t.colsSpanningVersion=a,_l(e,t),t.refreshAriaColSpan()}function _l(e,t){const o=t.eGui;if(!o)return;const r=X3(t);r!==t.drawnWidth&&(t.drawnWidth=r,o.style.width=`${r}px`);const{gos:i,visibleCols:a}=e,n=t.column,s=n.pinnedLane,l=t.printLayout,c=i.get("enableRtl"),d=n.left,g=l?Gp(d,s,r,c,a):d;if(g==null)return;const u=Wp(s,c,l),h=qp(g,r,u,c,a);if(h===t.drawnPosition)return;t.drawnPosition=h;const p=t.getRootElement().style;p.left=u?"":`${h}px`,p.right=u?`${h}px`:""}function X3(e){const{colsSpanning:t,column:o}=e;if(!t)return o.actualWidth;let r=0;for(let i=0,a=t.length;i<a;++i)r+=t[i].actualWidth;return r}function wf(e,t,o){const r=t.legacyRowSpan;if(r===1&&!o)return;const i=t.eGui;if(!i)return;if(r===1){i.style.height="",i.style.zIndex="";return}const n=pt(e)*r;i.style.height=`${n}px`,i.style.zIndex="1"}var $3=class extends x{constructor(e){super(),this.rowCtrl=e,this.centerCellCtrls=at,this.leftCellCtrls=at,this.rightCellCtrls=at,this.allCellCtrls=null,this.cellByCol=new Map,this.cellCtrlsColsVersion=-1,this.keptCellCtrls=null,this.colSpans=void 0,this.colSpansColsVersion=-1,this.cellsStale=!0,this.updateColumnListsPending=!1,this.pinnedLanesStale=!0,this.releaseKeptCellsPending=!1}postConstruct(){this.addListenersForCellCtrls()}initialiseComp(){this.cellsStale?this.updateColumnLists(!this.rowCtrl.useAnimationFrameForCreate):this.giveLanes(!1),this.rowCtrl.refreshPinnedCellGroupWidths()}refreshRow(e){this.refreshSpans();const t=this.getAllCellCtrls();for(let o=0,r=t.length;o<r;++o)t[o].refreshCell(e);this.rowCtrl.onRowRefreshed()}shouldCreateCellSections(){return!0}prepareInitialCellCtrls(){this.rowCtrl.useAnimationFrameForCreate||this.createAllCellCtrls()}getInitialCellCtrls(e){if(!(this.rowCtrl.useAnimationFrameForCreate||!this.isAlive()))return this.cellsStale&&this.createAllCellCtrls(),this.getLane(e)}getAllCellCtrls(){let e=this.allCellCtrls;if(e===null){const t=this.centerCellCtrls,o=this.leftCellCtrls,r=this.rightCellCtrls;e=o.length===0&&r.length===0?t:t.concat(o,r),this.allCellCtrls=e}return e}recreateCell(e){this.allCellCtrls=null,this.centerCellCtrls=Yl(this.centerCellCtrls,e),this.leftCellCtrls=Yl(this.leftCellCtrls,e),this.rightCellCtrls=Yl(this.rightCellCtrls,e),this.destroyCell(e),this.updateColumnLists()}destroyCells(){this.allCellCtrls=null,Kl(this.centerCellCtrls),Kl(this.leftCellCtrls),Kl(this.rightCellCtrls),this.centerCellCtrls=at,this.leftCellCtrls=at,this.rightCellCtrls=at,this.cellByCol.clear(),this.keptCellCtrls=null}onDisplayedColumnsChanged(){this.updateColumnLists(!0)}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0,!0)}renderFocusedCell(){this.updateColumnLists(!0)}onSpannedCellsUpdated(e){e&&!this.rowCtrl.rowNode.rowPinned||this.updateColumnLists()}refreshSpans(){this.colSpansColsVersion=-1;const e=this.beans.visibleCols,t=e.rowSpanCols;for(let o=0,r=t.length;o<r;++o){const i=this.getOwnCellCtrl(t[o]);i!==void 0&&mf(this.beans,i)}if(e.colSpanColCount!==0){if(!this.rowCtrl.getGui()){this.cellsStale=!0,this.pinnedLanesStale=!0;return}this.updateColumnLists()}}releaseKeptCells(e){const t=this.keptCellCtrls;if(t!==null){if(!e){this.hasReleasableKeptCell(t)&&this.updateColumnLists();return}this.releaseKeptCellsPending||(this.releaseKeptCellsPending=!0,Yi(()=>{this.releaseKeptCellsPending=!1,this.isAlive()&&this.releaseKeptCells(!1)}))}}hasReleasableKeptCell(e){for(let t=0,o=e.length;t<o;++t){const r=e[t];if(!r.isAlive()||!this.isCellKept(r))return!0}return!1}updateColumnLists(e=!1,t=!1,o=!1){const{rowCtrl:r}=this,{animationFrameSvc:i}=this.beans,a=!i?.active||e||r.printLayout;if(o||(this.pinnedLanesStale=!0),a){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(this.cellsStale=!0,i.createTask(()=>{!r.isAlive()||!this.updateColumnListsPending||this.updateColumnListsImpl(!0)},r.rowNode.rowIndex,"p1",!1),this.updateColumnListsPending=!0)}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.giveLanes(e)}giveLanes(e){const t=this.rowCtrl.getGui();if(!t)return;const{leftCellCtrls:o,centerCellCtrls:r,rightCellCtrls:i,cellCtrlsColsVersion:a}=this;t.rowComp.setCellCtrls(o,r,i,e,a)}createAllCellCtrls(){this.cellsStale=!1;const{rowCtrl:e,beans:t}=this,{rowNode:o,printLayout:r}=e,i=t.visibleCols,a=this.centerCellCtrls,n=this.leftCellCtrls,s=this.rightCellCtrls,l=this.getColSpans(),c=i.displayedColsVersion,d=this.cellCtrlsColsVersion===c;this.cellCtrlsColsVersion=c;const g=this.pinnedLanesStale||!d||r;this.pinnedLanesStale=!1,this.keptCellCtrls=g?null:ex(this.keptCellCtrls);const u=t.focusSvc.getFocusedCell()?.column,h=u?.displayed?u:null,p=r?jl(o,i.allCols,l):t.colViewport.getColsWithinViewport(o,l);if(this.centerCellCtrls=this.createCellCtrls(a,p,l,1,d,h),r)this.leftCellCtrls=this.destroyLane(n),this.rightCellCtrls=this.destroyLane(s);else if(g){const f=jl(o,i.leftCols,l);this.leftCellCtrls=this.createCellCtrls(n,f,l,0,d,h);const m=jl(o,i.rightCols,l);this.rightCellCtrls=this.createCellCtrls(s,m,l,2,d,h)}(this.centerCellCtrls!==a||this.leftCellCtrls!==n||this.rightCellCtrls!==s)&&(this.allCellCtrls=null)}getLane(e){return e===1?this.centerCellCtrls:e===0?this.leftCellCtrls:this.rightCellCtrls}getCellCtrl(e){const t=this.beans.visibleCols;if(t.colSpanColCount===0)return this.getOwnCellCtrl(e);this.updateColumnListsPending&&this.rowCtrl.isAlive()&&this.updateColumnListsImpl(!1);const o=this.getOwnCellCtrl(e);if(o!==void 0)return o;if(this.cellCtrlsColsVersion!==t.displayedColsVersion){const a=this.getAllCellCtrls();return bf(a,e,0,a.length)}const r=this.getLane(this.rowCtrl.laneFor(e)),i=Ql(r,e.allColsIndex+1);return bf(r,e,this.keptCellCtrls!==null?0:Math.max(i-1,0),i)}getOwnCellCtrl(e){return this.cellByCol.get(e)}getColSpans(){const e=this.beans.visibleCols;if(e.colSpanColCount===0){this.colSpans=void 0;return}const t=e.displayedColsVersion;let o=this.colSpans;if(o!==void 0&&this.colSpansColsVersion===t)return o;this.colSpansColsVersion=t;const r=e.colSpanColCount;return o?.length!==r?(o=new Array(r).fill(0),this.colSpans=o):o.fill(0),o}createCellCtrls(e,t,o,r,i,a){const{rowCtrl:n,beans:s,cellByCol:l}=this,c=e.length;if(!i)for(let f=0;f<c;++f)e[f].diffIndex=f;let d=null,g=0,u=0,h=0;for(let f=0,m=t.length;f<m;++f){const w=t[f];let v;if(i){const b=w.allColsIndex;for(;h<c&&e[h].column.allColsIndex<b;)++h;h<c&&e[h].column===w&&(v=e[h++])}else v=l.get(w),v!==void 0&&e[v.diffIndex]!==v&&(v=void 0);if(v!==void 0&&(n.isCorrectCtrlForSpan(v)?++u:(this.destroyCell(v),v=void 0)),v===void 0){if(v=n.getNewCellCtrl(w),!v)continue;l.set(w,v)}if(d!==null?d.push(v):g<c&&e[g]===v?++g:(d=e.slice(0,g),d.push(v)),o===void 0&&v.colsSpanning===null)continue;const C=w.colSpanIndex;vf(s,v,o===void 0||C<0?1:o[C])}let p=null;if(u<c){d??(d=e.slice(0,g));for(let f=0,m=d.length;f<m;++f)d[f].diffIndex=f;for(let f=0;f<c;++f){const m=e[f];d[m.diffIndex]===m||!m.isAlive()||(n.laneFor(m.column)!==r||!this.isCellKept(m)?this.destroyCell(m):(p??(p=[]),p.push(m)))}if(p!==null)for(let f=0,m=p.length;f<m;++f)this.addKeptCell(d,p[f])}if(a!==null&&n.laneFor(a)===r&&!tx(d??e,a)){const f=this.createFocusedCellCtrl();f&&(l.set(a,f),d??(d=e.slice()),this.addKeptCell(d,f),p??(p=[]),p.push(f))}if(d===null)return e;if(p!==null)for(let f=0,m=p.length;f<m;++f)this.setKeptCellColSpan(d,p[f],o);return je(e,d)?e:d}addKeptCell(e,t){this.keptCellCtrls??(this.keptCellCtrls=[]),this.keptCellCtrls.push(t),e.splice(Ql(e,t.column.allColsIndex),0,t)}setKeptCellColSpan(e,t,o){const r=t.column.allColsIndex;let i=Ul(this.rowCtrl.rowNode,this.beans.visibleCols.allCols,r,o);const a=e[e.indexOf(t)+1];a!==void 0&&(i=Math.min(i,a.column.allColsIndex-r)),vf(this.beans,t,i)}createFocusedCellCtrl(){const{rowCtrl:e}=this,{focusSvc:t,rowSpanSvc:o}=this.beans,r=t.getFocusedCell();if(!r)return;const i=o?.getCellSpan(r.column,e.rowNode);if(i){if(i.firstNode!==e.rowNode||!i.doesSpanContain(r))return}else if(!t.isRowFocused(e.rowNode.rowIndex,e.rowNode.rowPinned))return;return e.getNewCellCtrl(r.column)}isCellKept(e){return!e.column.displayed||!this.rowCtrl.isCorrectCtrlForSpan(e)?!1:!!this.beans.editSvc?.isEditing(e)||e.isCellFocused()}destroyLane(e){for(let t=0,o=e.length;t<o;++t)this.destroyCell(e[t]);return at}destroyCell(e){const t=e.column;this.cellByCol.get(t)===e&&this.cellByCol.delete(t),e.destroy()}isSuppressMouseEvent(e){const t=Fa(this.gos,e.target);return t!=null&&li(this.gos,t.column,this.rowCtrl.rowNode,e)}addListenersForCellCtrls(){const{rowCtrl:e}=this;this.addManagedListeners(e.rowNode,{rowIndexChanged:()=>{const t=this.getAllCellCtrls();for(let o=0,r=t.length;o<r;++o)t[o].onRowIndexChanged()},cellChanged:t=>{this.refreshSpans();const o=this.getAllCellCtrls();for(let r=0,i=o.length;r<i;++r)o[r].onCellChanged(t)}}),this.addManagedEventListeners({newColumnsLoaded:()=>{const t=this.beans,o=this.getAllCellCtrls();for(let r=0,i=o.length;r<i;++r)mf(t,o[r])}})}},at=[],jl=(e,t,o)=>o===void 0?t:ff(e,t,o,null,null),ex=e=>{if(e===null)return null;let t=null;for(let o=0,r=e.length;o<r;++o){const i=e[o];i.column.pinnedLane!==1&&(t??(t=[]),t.push(i))}return t},Kl=e=>{for(let t=0,o=e.length;t<o;++t)e[t].destroy()},Yl=(e,t)=>{const o=e.indexOf(t);if(o<0)return e;const r=e.slice();return r.splice(o,1),r},tx=(e,t)=>e[Ql(e,t.allColsIndex)]?.column===t,Ql=(e,t)=>{let o=0,r=e.length;for(;o<r;){const i=o+r>>>1;e[i].column.allColsIndex<t?o=i+1:r=i}return o},bf=(e,t,o,r)=>{for(let i=r-1;i>=o;--i){const a=e[i];if(a.colsSpanning?.includes(t))return a}},ox=new Set(["CANVAS","IMG","SVG","VIDEO","AUDIO","INPUT","IFRAME","PICTURE"]),Zl=(e,t)=>{const o=G({tag:"div",cls:e,role:"presentation"});if(!t)return{container:o,wrapper:o};const r=G({tag:"div",role:"presentation",cls:"ag-grid-container-wrapper"});return o.appendChild(r),{container:o,wrapper:r}},rx=class extends X{constructor(e,t){super(),this.drawnInPass=0,this.fullWidthCellRenderersBySection=null,this.fullWidthCellRendererParamsBySection=null,this.pinnedWidths=void 0,this.drawnLeft=at,this.drawnCenter=at,this.drawnRight=at,this.cellsPass=0,this.beans=t,this.rowCtrl=e;const o=e.shouldCreateCellSections(),r=G({tag:"div",role:"row",attrs:{"comp-id":`${this.getCompId()}`}});if(o){const n=Zl("ag-grid-pinned-left-cells",!0),s=Zl("ag-grid-scrolling-cells",!1),l=Zl("ag-grid-pinned-right-cells",!0);this.ePinnedLeftSection=n.container,this.ePinnedLeftCells=n.wrapper,this.eScrollingCells=s.wrapper,this.ePinnedRightSection=l.container,this.ePinnedRightCells=l.wrapper,r.append(s.container)}this.setInitialStyle(r),this.setTemplateFromElement(r);const i=r.style;this.domOrder=this.rowCtrl.getDomOrder();const a={setDomOrder:n=>this.setDomOrder(n),setCellCtrls:(n,s,l)=>this.setCellCtrls(n,s,l),getPinnedLeftRowElement:()=>this.ePinnedLeftCells,getScrollingRowElement:()=>this.eScrollingCells,getPinnedRightRowElement:()=>this.ePinnedRightCells,refreshPinnedSections:()=>this.refreshPinnedSections(),showFullWidth:n=>this.showFullWidth(n),showEmbeddedFullWidth:n=>this.showEmbeddedFullWidth(n),getFullWidthCellRenderers:()=>this.getAllFullWidthCellRenderers(),getFullWidthCellRendererParams:()=>this.getPrimaryFullWidthCellRendererParams(),getFullWidthCellRendererParamsForPinned:n=>this.getFullWidthCellRendererParamsForPinned(n),toggleCss:(n,s)=>this.toggleCss(n,s),setUserStyles:n=>Fr(r,n),setTop:n=>i.top=n,setTransform:n=>i.transform=n,setRowIndex:n=>r.setAttribute("row-index",n),setRowId:n=>r.setAttribute("row-id",n),setRowBusinessKey:n=>r.setAttribute("row-business-key",n),refreshFullWidth:n=>{const s=n();return this.fullWidthCellRendererParams=s,this.fullWidthCellRenderer?.refresh?.(s)??!1},refreshEmbeddedFullWidth:n=>this.refreshEmbeddedFullWidth(n)};e.setComp(a,this.getGui(),void 0),this.addDestroyFunc(()=>{e.unsetComp()})}refreshPinnedSections(){const e=this.rowCtrl.getMappedPinnedCellGroupWidths();if(e===this.pinnedWidths)return;this.pinnedWidths=e;const t=this.eScrollingCells;t&&(t.style.width=`${e.centerWidth}px`),Cf(t,this.ePinnedLeftSection,e.leftWidth,e.renderLeft,"before"),Cf(t,this.ePinnedRightSection,e.rightWidth,e.renderRight,"after")}setInitialStyle(e){const t=this.rowCtrl.getInitialTransform();if(t)e.style.setProperty("transform",t);else{const o=this.rowCtrl.getInitialRowTop();o&&e.style.setProperty("top",o)}}showFullWidth(e){const t=this.getGui(),o=G({tag:"div",cls:"ag-full-width-anchor",role:this.rowCtrl.getFullWidthAnchorRole()});t.appendChild(o);const r=i=>{if(this.isAlive()){const a=i.getGui();o.appendChild(a),this.rowCtrl.setupDetailRowAutoHeight(a),this.setFullWidthRowComp(i,e.params)}else this.beans.context.destroyBean(i)};e.newAgStackInstance().then(r)}showEmbeddedFullWidth(e){this.showEmbeddedFullWidthSection("left",e.left,this.ePinnedLeftCells),this.showEmbeddedFullWidthSection("center",e.center,this.eScrollingCells),this.showEmbeddedFullWidthSection("right",e.right,this.ePinnedRightCells)}showEmbeddedFullWidthSection(e,t,o){const r=o??this.getGui(),i=a=>{if(!this.isAlive()){this.beans.context.destroyBean(a);return}const n=a.getGui();n?r.replaceChildren(n):r.replaceChildren();const s=r.firstElementChild,l=s!=null&&(s.childElementCount>0||!!s.textContent?.trim()||ox.has(s.tagName));this.rowCtrl.setEmbeddedSectionHasContent(e,l),this.setEmbeddedFullWidthRowComp(e,a,t.params),this.rowCtrl.refreshPinnedCellGroupWidths()};t.newAgStackInstance().then(i)}refreshEmbeddedFullWidth(e){const t=this.refreshEmbeddedSection("left",e("left")),o=this.refreshEmbeddedSection("center",e(null)),r=this.refreshEmbeddedSection("right",e("right"));return this.fullWidthCellRenderer=this.fullWidthCellRenderersBySection?.center??null,this.fullWidthCellRendererParams=this.fullWidthCellRendererParamsBySection?.center,t&&o&&r}refreshEmbeddedSection(e,t){return this.fullWidthCellRendererParamsBySection??(this.fullWidthCellRendererParamsBySection={}),this.fullWidthCellRendererParamsBySection[e]=t,this.fullWidthCellRenderersBySection?.[e]?.refresh?.(t)??!(e==="center"||this.rowCtrl.embeddedSectionHasContent[e])}getAllFullWidthCellRenderers(){if(!this.rowCtrl.isEmbeddedFullWidth){const t=this.fullWidthCellRenderer;return t?[t]:void 0}const e=this.fullWidthCellRenderersBySection;return e===null?void 0:[e.left,e.center,e.right]}getPrimaryFullWidthCellRendererParams(){return this.fullWidthCellRendererParams??this.fullWidthCellRendererParamsBySection?.center}getFullWidthCellRendererParamsForPinned(e){return this.fullWidthCellRendererParamsBySection?.[this.getEmbeddedSectionForPinned(e)]}getEmbeddedSectionForPinned(e){return e==="left"?"left":e==="right"?"right":"center"}setDomOrder(e){const t=e&&!this.domOrder;this.domOrder=e,t&&(Jl(this.ePinnedLeftCells,this.drawnLeft),Jl(this.eScrollingCells,this.drawnCenter),Jl(this.ePinnedRightCells,this.drawnRight))}setCellCtrls(e,t,o){const{drawnLeft:r,drawnCenter:i,drawnRight:a}=this;this.drawnLeft=e,this.drawnCenter=t,this.drawnRight=o,this.drawLane(this.ePinnedLeftCells,r,e),this.drawLane(this.eScrollingCells,i,t),this.drawLane(this.ePinnedRightCells,a,o)}drawLane(e,t,o){if(t===o||!e)return;const r=++this.cellsPass,i=o.length;let a=t.length===0?i:0,n=null;const s=this.domOrder?[]:null;for(let l=0;l<i;++l){const c=o[l];let d=c.drawnComp;if(d!==void 0)d.drawnInPass=r;else{if(a<=l)for(n=null,a=l+1;a<i;++a){const g=o[a].drawnComp;if(g){n=g.getGui();break}}d=this.newCellComp(c,e,n,r)}s!==null&&s.push(d.getGui())}Pa(t,r),s!==null&&qo(e,s)}newCellComp(e,t,o,r){const i=this.beans.editSvc?.isEditing(e,{withOpenEditor:!0})??!1,a=new Q3(this.beans,e,this.rowCtrl.printLayout,t,i);return a.drawnInPass=r,e.drawnComp=a,t.insertBefore(a.getGui(),o),a}destroy(){super.destroy(),Pa(this.drawnLeft,-1),Pa(this.drawnCenter,-1),Pa(this.drawnRight,-1)}setFullWidthRowComp(e,t){this.fullWidthCellRenderer=e,this.fullWidthCellRendererParams=t,this.addDestroyFunc(()=>{this.fullWidthCellRenderer=this.beans.context.destroyBean(this.fullWidthCellRenderer),this.fullWidthCellRendererParams=void 0})}setEmbeddedFullWidthRowComp(e,t,o){this.fullWidthCellRenderersBySection??(this.fullWidthCellRenderersBySection={}),this.fullWidthCellRendererParamsBySection??(this.fullWidthCellRendererParamsBySection={});const r=this.fullWidthCellRenderersBySection,i=this.fullWidthCellRendererParamsBySection;r[e]=t,i[e]=o,e==="center"&&(this.fullWidthCellRenderer=t,this.fullWidthCellRendererParams=o),this.addDestroyFunc(()=>{r[e]=this.beans.context.destroyBean(r[e]),i[e]=void 0,e==="center"&&(this.fullWidthCellRenderer=null,this.fullWidthCellRendererParams=void 0)})}},Cf=(e,t,o,r,i)=>{if(t){if(!r){t.remove();return}t.style.width=`${o}px`,!t.parentNode&&e&&e[i](t)}},Jl=(e,t)=>{const o=t.length;if(!e||o===0)return;const r=[];for(let i=0;i<o;++i){const a=t[i].drawnComp;a!==void 0&&r.push(a.getGui())}qo(e,r)},Pa=(e,t)=>{for(let o=0,r=e.length;o<r;++o){const i=e[o],a=i.drawnComp;a!==void 0&&a.drawnInPass!==t&&(a.detach(),a.destroy(),i.drawnComp=void 0)}};function ix(e,t,o){const r=!!o.gos.get("enableCellSpan")&&!!t.getSpannedRowCtrls;return{tag:"div",ref:"eContainer",cls:gf(e),role:"presentation",children:[r?{tag:"div",ref:"eSpannedContainer",cls:`ag-spanning-container ${uf(e)}`,role:"presentation"}:null]}}var Xl=[],ax=class extends X{constructor(e){super(),this.eContainer=k,this.eSpannedContainer=k,this.drawnNoSpan=Xl,this.drawnWithSpan=Xl,this.rowsPass=0,this.initialised=!1,this.name=e?.name}postConstruct(){this.setTemplate(ix(this.name,ci(this.name),this.beans)),this.initialiseComp()}initialiseComp(){if(this.initialised||!this.isAlive())return;let t=this.beans.ctrlsSvc.getGridBodyCtrl()?.eGridViewport;t||(t=this.getParentComponent()?.eGridViewport);const o=this.eContainer,r=this.eSpannedContainer,i=t??o,a={setRowCtrls:({rowCtrls:s})=>this.setRowCtrls(s),setSpannedRowCtrls:s=>this.setRowCtrls(s,!0),setDomOrder:s=>this.domOrder=s,setContainerWidth:s=>{o.style.width=s,r&&(r.style.width=s)},setOffsetTop:s=>{const l=`translateY(${s})`;o.style.transform=l,r&&(r.style.transform=l)},setHidden:s=>Q(o,!s,{skipAriaHidden:!0})};this.createManagedBean(new hf(this.name)).setComp(a,o,r,i),this.initialised=!0}destroy(){this.setRowCtrls([]),this.setRowCtrls([],!0),super.destroy(),this.lastPlacedElement=null}setRowCtrls(e,t){const o=this.beans,r=t?this.eSpannedContainer:this.eContainer;if(!r)return;const i=t?this.drawnWithSpan:this.drawnNoSpan,a=e.length===0?Xl:[];t?this.drawnWithSpan=a:this.drawnNoSpan=a,this.lastPlacedElement=null;const n=++this.rowsPass,s=this.domOrder;let l=null;for(let c=0,d=e.length;c<d;++c){const g=e[c];let u=g.drawnRowComp;if(u)s&&(l??(l=[]),l.push(u));else if(g.rowNode.displayed)u=new rx(g,o),g.drawnRowComp=u,l??(l=[]),l.push(u);else continue;u.drawnInPass=n,a.push(g)}if(l!==null)for(let c=0,d=l.length;c<d;++c){const g=l[c].getGui();s?this.ensureDomOrder(g,r):r.appendChild(g)}for(let c=0,d=i.length;c<d;++c){const g=i[c],u=g.drawnRowComp;u!==void 0&&u.drawnInPass<n&&(g.drawnRowComp=void 0,u.getGui().remove(),u.destroy())}}ensureDomOrder(e,t){$g(t,e,this.lastPlacedElement),this.lastPlacedElement=e}},nx={selector:"AG-ROW-CONTAINER",component:ax};function $l(e,t){return t.map(o=>{const r=`e${o[0].toUpperCase()+o.substring(1)}RowContainer`;return e[r]={name:o},{tag:"ag-row-container",ref:r,attrs:{name:o}}})}function sx(e){const t={},o={tag:"div",cls:"ag-root ag-unselectable",role:"presentation",children:[{tag:"div",ref:"eGridViewport",cls:"ag-grid-viewport",role:"presentation",children:[{tag:"div",ref:"eGridScrollableArea",cls:"ag-grid-scrollable-area",role:"rowgroup",children:[{tag:"div",ref:"eTop",cls:"ag-grid-pinned-top-rows",role:"presentation",children:[{tag:"div",ref:"eTopExtraRows",cls:"ag-extra-rows-container",role:"presentation"},...$l(t,["pinnedTop","stickyTop"])]},{tag:"div",ref:"eBody",cls:"ag-grid-scrolling-rows",role:"presentation",children:$l(t,["scrolling"])},{tag:"div",ref:"eBottom",cls:"ag-grid-pinned-bottom-rows",role:"presentation",children:$l(t,["stickyBottom","pinnedBottom"])}]}]},{tag:"ag-fake-horizontal-scroll"},{tag:"ag-fake-vertical-scroll"},e?{tag:"ag-overlay-wrapper"}:null]};return{paramsMap:t,elementParams:o}}var lx=class extends X{constructor(){super(...arguments),this.eGridViewport=k,this.eGridScrollableArea=k,this.eTop=k,this.eTopExtraRows=k,this.eBottom=k,this.eBody=k,this.eScrollingRowContainer=k,this.ePinnedTopRowContainer=k,this.ePinnedBottomRowContainer=k,this.pinnedSectionState={top:{height:0,invisible:!0},bottom:{height:0,invisible:!0}},this.stickyBottomRowsHeight=0}postConstruct(){const{overlays:e,rangeSvc:t}=this.beans,o=e?.getOverlayWrapperSelector(),{paramsMap:r,elementParams:i}=sx(!!o);this.setTemplate(i,[...o?[o]:[],E3,F3,nx],r);const a={setRowAnimationCssOnScrollableArea:n=>{this.toggleClassForContainers("ag-row-animation",!!n),this.toggleClassForContainers("ag-row-no-animation",!n)},setPreventRowAnimationCssOnContainers:n=>{this.toggleClassForContainers("ag-prevent-animation",n)},setColumnCount:n=>ky(this.eGridViewport,n),setRowCount:n=>Sy(this.eGridViewport,n),setPinnedSection:(n,s)=>this.setPinnedSection(n,s),setStickyBottomHeight:n=>{this.stickyBottomRowsHeight=Number.parseFloat(n)||0,this.refreshBottomSectionHeight()},setStickyBottomWidth:n=>this.eBottom.style.width=n,setColumnMovingCss:(n,s)=>this.toggleCss(n,s),updateLayoutClasses:(n,s)=>{const l=[this.eGridViewport.classList,this.eBody.classList];for(const c of l)c.toggle(it.AUTO_HEIGHT,s.autoHeight),c.toggle(it.NORMAL,s.normal),c.toggle(it.PRINT,s.print);this.toggleCss(it.AUTO_HEIGHT,s.autoHeight),this.toggleCss(it.NORMAL,s.normal),this.toggleCss(it.PRINT,s.print)},setCellSelectableCss:(n,s)=>{if(n)for(const l of[this.eTop,this.eBody,this.eBottom])l.classList.toggle(n,s)},setGridScrollableAreaWidth:n=>this.eGridScrollableArea.style.width=n,setPinnedColumnsOverflowing:n=>{this.eGridViewport.classList.toggle("ag-pinned-columns-overflow",n)},setGridRole:n=>xt(this.eGridViewport,n)};this.ctrl=this.createManagedBean(new pf),this.ctrl.setComp(a,this.getGui(),this.eGridViewport,this.eBody,this.eTop,this.eTopExtraRows,this.eBottom),this.createManagedBean(new x3(this.eTop,this.eGridViewport)),(t&&ft(this.gos)||or(this.gos))&&yy(this.eGridViewport,!0)}toggleClassForContainers(e,t){for(const o of[this.eScrollingRowContainer,this.ePinnedTopRowContainer,this.ePinnedBottomRowContainer])o.getGui().classList.toggle(e,t)}setPinnedSection(e,t){this.pinnedSectionState[e]=t;const{height:o,invisible:r}=t,i=this.eGridScrollableArea;if(e==="top"){const a=this.eTop,n=`calc(var(--ag-internal-header-rows-height, 0px) + ${o}px)`;this.eGridViewport.style.setProperty("--ag-internal-top-rows-height",`${o}px`),a.style.minHeight=n,a.style.height=n,i.classList.toggle("ag-has-top-pinned-rows",!r)}else this.eGridViewport.style.setProperty("--ag-internal-bottom-rows-height",`${o}px`),i.classList.toggle("ag-has-bottom-pinned-rows",!r),this.refreshBottomSectionHeight()}refreshBottomSectionHeight(){const t=this.pinnedSectionState.bottom.height+this.stickyBottomRowsHeight,o=`${t}px`,r=this.eBottom;r.style.minHeight=o,r.style.height=o,Q(r,t>0,{skipAriaHidden:!0})}getFocusableContainerName(){return"gridBody"}},cx={selector:"AG-GRID-BODY",component:lx};function yf(e,...t){console.log("AG Grid: "+e,...t)}var Sf=!1;function dx(e){Sf=e}function ec(e){return!!e||Sf}function oo(e,t,...o){ec(e.get("debug"))&&yf(t,...o)}function di(e,...t){Ki(()=>kf(e,...t),e+t?.join(""))}function ro(e,...t){Ki(()=>xf(e,...t),e+t?.join(""))}function xf(e,...t){console.error("AG Grid: "+e,...t)}function kf(e,...t){console.warn("AG Grid: "+e,...t)}var tc=class extends q1{initialiseTabGuard(e){super.initialiseTabGuard(e,sr)}},Ef=(e,t)=>Tp(e,()=>B1(e.getGui(),t,!0)),Rf=e=>e?.getFocusableContainerName()??"external",gx=e=>e==null?"external":typeof e=="string"?e:"gridBody",Ff=class extends x{constructor(){super(...arguments),this.additionalFocusableContainers=new Set}setComp(e,t,o){this.view=e,this.eGui=t,this.eGui.setAttribute("grid-id",this.beans.context.getId());const{dragAndDrop:r,ctrlsSvc:i,ariaAnnounce:a}=this.beans;if(r?.registerGridDropTarget(()=>this.eGui,this),a.setDescriptionContainer(o),this.createManagedBean(new Vl(this.view)),this.gos.get("enableContentVisibilityAuto")??!this.gos.get("suppressContentVisibilityAuto")){const[l]=this.addManagedEventListeners({firstDataRendered:()=>{l();const c=setTimeout(()=>{const d=Oy(this.beans,t,g=>{g.isIntersecting?t.style.removeProperty("content-visibility"):t.style.setProperty("content-visibility","auto")},{rootMargin:"200px"});this.addDestroyFunc(()=>d())},this.gos.get("contentVisibilityAutoDelay"));this.addDestroyFunc(()=>clearTimeout(c))}})}const s=Et(this.beans,this.eGui,this.onGridSizeChanged.bind(this));this.addDestroyFunc(()=>s()),i.register("gridCtrl",this)}isDetailGrid(){return Du(this.getGui())?.getAttribute("row-id")?.startsWith("detail")||!1}getOptionalSelectors(){const e=this.beans,t=e.registry;return{paginationSelector:e.pagination?.getPaginationSelector(),gridHeaderDropZonesSelector:t?.getSelector("AG-GRID-HEADER-DROP-ZONES"),sideBarSelector:e.sideBar?.getSelector(),statusBarSelector:t?.getSelector("AG-STATUS-BAR"),toolbarSelector:t?.getSelector("AG-TOOLBAR"),watermarkSelector:e.licenseManager?.getWatermarkSelector()}}onGridSizeChanged(){const e=this.eGui;this.eventSvc.dispatchEvent({type:"gridSizeChanged",clientWidth:e.clientWidth,clientHeight:e.clientHeight})}destroyGridUi(){this.view.destroyGridUi()}getGui(){return this.eGui}setResizeCursor(e,t=!1){const{view:o}=this;e===!1?o.setCursor(null):t?o.setCursor(e===1?"col-resize":"row-resize"):o.setCursor(e===1?"ew-resize":"ns-resize")}disableUserSelect(e){this.view.setUserSelect(e?"none":null)}focusNextInnerContainer(e){const t=this.getFocusableContainers(),{indexWithFocus:o,nextIndex:r}=this.getNextFocusableIndex(t,e),i=e?t.length-1:0,a=o===-1?i:r,{gos:n,beans:{focusSvc:s,navigation:l}}=this,c=n.getCallback("tabToNextGridContainer");if(c){const d=s.getDefaultTabToNextGridContainerTarget({backwards:e,focusableContainers:t,nextIndex:a}),g=Rf(t[a]),u=d==null&&g==="gridBody"?"gridBody":gx(d),h=c({backwards:e,previousContainer:Rf(t[o]),nextContainer:u,defaultTarget:d});if(h!==void 0){if(typeof h=="boolean")return h;if(typeof h=="string"){if(h==="gridBody")return this.focusGridBodyDefault(e)||void 0;const p=t.find(f=>f.getFocusableContainerName()===h);if(!p){kf(`tabToNextGridContainer - ${h} container not found`);return}return Ef(p,e)?!0:void 0}return $2(h)?s.focusHeaderPosition({headerPosition:h})||void 0:(l?.ensureCellVisible(h),s.setFocusedCell({...h,forceBrowserFocus:!0}),s.isCellFocused(h)||void 0)}}return this.focusNextInnerContainerDefault({backwards:e,focusableContainers:t,indexWithFocus:o,nextIndex:a})||void 0}focusInnerElement(e){const{gos:t,beans:o,beans:{focusSvc:r,visibleCols:i}}=this;if(t.getCallback("focusGridInnerElement")?.({fromBottom:!!e}))return!0;const n=this.getFocusableContainers();if(e)return this.focusNextInnerContainerDefault({backwards:!0,focusableContainers:n,indexWithFocus:n.length,nextIndex:n.length-1})?!0:r.focusGridView({column:pe(i.allCols),backwards:!0});const s=i.allCols;if(t.get("headerHeight")===0||Ve(o)){if(r.focusGridView({column:s[0],backwards:e}))return!0;for(let l=1;l<n.length;l++)if(Ar(n[l].getGui(),e))return!0;return!1}return r.focusFirstHeader()}forceFocusOutOfContainer(e=!1){this.view.forceFocusOutOfContainer(e)}focusNextElementOutsideContainer(e=!1){const t=[...this.additionalFocusableContainers].map(o=>o.getGui());return this.view.focusNextElementOutsideContainer(e,t)}isFocusInsideGridBody(){const e=this.getFocusableContainers(),{indexWithFocus:t}=this.getNextFocusableIndex(e);return e[t]?.getFocusableContainerName()==="gridBody"}addFocusableContainer(e){this.additionalFocusableContainers.add(e)}removeFocusableContainer(e){this.additionalFocusableContainers.delete(e)}allowFocusForNextCoreContainer(e){const t=this.view.getFocusableContainers(),{indexWithFocus:o,nextIndex:r}=this.getNextFocusableIndex(t,e);this.focusNextInnerContainerDefault({backwards:!!e,focusableContainers:t,indexWithFocus:o,nextIndex:r})||this.forceFocusOutOfContainer(e)}isFocusable(){const e=this.beans;return!ai(e)||!Ve(e)||!!e.sideBar?.comp?.isDisplayed()}getNextFocusableIndex(e,t){const o=Z(this.beans),r=e.findIndex(i=>i.getGui().contains(o));return{indexWithFocus:r,nextIndex:r+(t?-1:1)}}focusGridBodyDefault(e){const{gos:t,beans:o,beans:{focusSvc:r,visibleCols:{allCols:i}}}=this;return e?r.focusGridView({column:pe(i),backwards:!0}):t.get("headerHeight")===0||Ve(o)?r.focusGridView({column:i[0]}):r.focusFirstHeader()}focusNextInnerContainerDefault(e){const{backwards:t,focusableContainers:o,indexWithFocus:r}=e,i=t?-1:1;for(let a=e.nextIndex;a>=0&&a<o.length;a+=i){const n=o[a];if(n.getFocusableContainerName()==="gridBody"&&(r===-1||(t?r>a:r<a))){if(this.focusGridBodyDefault(t))return!0;continue}if(Ef(n,t))return!0}return!1}getFocusableContainers(){return[...this.view.getFocusableContainers(),...this.additionalFocusableContainers]}destroy(){this.additionalFocusableContainers.clear(),super.destroy()}},ux=class extends tc{constructor(e){super(),this.gridBody=k,this.toolbar=k,this.gridHeaderDropZones=k,this.sideBar=k,this.statusBar=k,this.pagination=k,this.rootWrapperBody=k,this.ariaDescription=k,this.eGridDiv=e}postConstruct(){const e={destroyGridUi:()=>this.destroyBean(this),forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),focusNextElementOutsideContainer:(a,n)=>this.focusNextElementOutsideContainer(a,[this.getGui(),...n]),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:a=>{this.getGui().style.userSelect=a??"",this.getGui().style.webkitUserSelect=a??""},setCursor:a=>{this.getGui().style.cursor=a??""}},t=this.createManagedBean(new Ff),o=t.getOptionalSelectors(),r=this.createTemplate(o),i=[cx,...Object.values(o).filter(a=>!!a)];this.setTemplate(r,i),t.setComp(e,this.getGui(),this.ariaDescription),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:a=>t.focusInnerElement(a),forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:()=>!t.isFocusable()})}insertGridIntoDom(){const e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc(()=>{e.remove(),oo(this.gos,"Grid removed from DOM")})}updateLayoutClasses(e,t){const o=this.rootWrapperBody.classList,{AUTO_HEIGHT:r,NORMAL:i,PRINT:a}=it,{autoHeight:n,normal:s,print:l}=t;o.toggle(r,n),o.toggle(i,s),o.toggle(a,l),this.toggleCss(r,n),this.toggleCss(i,s),this.toggleCss(a,l)}createTemplate(e){const t=e.toolbarSelector?{tag:"ag-toolbar",ref:"toolbar"}:null,o=e.gridHeaderDropZonesSelector?{tag:"ag-grid-header-drop-zones",ref:"gridHeaderDropZones"}:null,r=e.sideBarSelector?{tag:"ag-side-bar",ref:"sideBar"}:null,i=e.statusBarSelector?{tag:"ag-status-bar",ref:"statusBar"}:null,a=e.watermarkSelector?{tag:"ag-watermark"}:null,n=e.paginationSelector?{tag:"ag-pagination",ref:"pagination"}:null;return{tag:"div",cls:"ag-root-wrapper",role:"presentation",children:[t,o,{tag:"div",ref:"ariaDescription",cls:"ag-aria-description-container"},{tag:"div",ref:"rootWrapperBody",cls:"ag-root-wrapper-body",role:"presentation",children:[{tag:"ag-grid-body",ref:"gridBody"},r]},i,n,a]}}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(e=!1){if(!e&&this.pagination?.isDisplayed()){this.pagination.forceFocusOutOfContainer(e);return}super.forceFocusOutOfContainer(e)}getFocusableContainers(){const e=[];this.toolbar&&e.push(this.toolbar),e.push(...this.gridHeaderDropZones?.getFocusableContainers?.()??[],this.gridBody);for(const t of[this.sideBar,this.statusBar,this.pagination])t&&e.push(t);return e.filter(t=>ho(t.getGui()))}},Mf="https://www.ag-grid.com",Df=new Set,Ta={},To={},Aa,Pf=!1,Tf=!1;function hx(e){const[t,o]=e.version.split(".")||[],[r,i]=Aa.split(".")||[];return t===r&&o===i}function px(e,t){Aa||(Aa=e.version);const o=i=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${i} Please update all modules to the same version.`;e.version?hx(e)||ro(o(`'${e.moduleName}' is version ${e.version} but the other modules are version ${Aa}.`)):ro(o(`'${e.moduleName}' is incompatible.`));const r=e.validate?.();r&&!r.isValid&&(r.errorId!==void 0?Na(r.errorId,r.errorParams,`
`,t):ro(`${r.message}`))}function Ao(e,t){px(e,t);const o=e.rowModels??["all"];Df.add(e);let r;t!==void 0?(Pf=!0,To[t]??(To[t]={}),r=To[t]):r=Ta;for(const i of o)r[i]??(r[i]={}),r[i][e.moduleName]=e;if(e.dependsOn)for(const i of e.dependsOn)Ao(i,t);e.onRegister?.()}function fx(e){delete To[e]}function Af(e,t,o){const r=i=>!!Ta[i]?.[e]||!!To[t]?.[i]?.[e];return r(o)||r("all")}function If(){return Pf}function mx(e,t){const o=To[e]??{};return[...Object.values(Ta.all??{}),...Object.values(o.all??{}),...Object.values(Ta[t]??{}),...Object.values(o[t]??{})]}function vx(){return new Set(Df)}function wx(e,t){const o=To[e]??{};return[...Object.values(o.all??{}),...Object.values(o[t]??{})]}function oc(){return Tf}function zf(){Tf=!0}var rc=class{static register(e){Ao(e,void 0)}static registerModules(e){for(const t of e)Ao(t,void 0)}};function Lf(e){for(const t of e){if("setLicenseKey"in t)return t;if(t.dependsOn){const o=Lf(t.dependsOn);if(o)return o}}}var R="36.3.0",Of=2e3,Vf=100,Bf="_version_",Hf=null,ic=`${Mf}/javascript-data-grid`;function bx(e){Hf=e}function Cx(e){ic=e}function gi(){return ic}function ac(e,t){return t.includes(e)}function Nf(e,t){const{id:o,params:r}=e;if(r==null)return`${o}`;try{return`${o}:${JSON.stringify(r)}`}catch{return`${o}:unserialisable:${t}`}}var Ia=new Set;function Gf(e,t){return t===void 0||e===void 0||e===t}var nt=[],yx=100,za=[],Sx=10;function xx(){const e=za.splice(0);for(const{id:t,params:o,severity:r,defaultMessage:i,gridId:a}of e)hi(t,o,r,i,a)}var ui=!1,Wf=[],nc=new Set;function qf(e){if(e.debug!==void 0&&dx(e.debug),e.throwOn!==void 0&&(Wf=e.throwOn),e.suppress!==void 0&&(nc=new Set(e.suppress)),e.capture!==void 0){const t=ui;ui=e.capture,ui?t||xx():za.length=0}}function Uf(e,t){const o={gridId:e,listener:t};Ia.add(o);for(let r=0,i=nt.length;r<i;++r){const a=nt[r];Gf(a.gridId,e)&&t(a)}return()=>{Ia.delete(o),Ia.size===0&&(nt.length=0)}}var sc=null;function kx(e){sc=e}function Ex(e,t){if(!sc)return;const o=[];for(let r=0,i=nt.length;r<i;++r)nt[r].gridId===void 0&&o.push(nt[r]);if(o.length!==0){for(let r=nt.length-1;r>=0;--r)nt[r].gridId===void 0&&nt.splice(r,1);sc(e,o,t)}}function hi(e,t,o,r,i){if(!ui||nc.has(e))return;const a={id:e,params:t,severity:o,gridId:i,defaultMessage:r};nt.length<yx&&nt.push(a);for(const n of Ia)Gf(i,n.gridId)&&n.listener(a)}function _f(e,t){return!nc.has(e)&&ac(t,Wf)}function jf(e,t,o,r){throw new Error(`${o} #${e} `+Oa(e,t,r).join(" "))}function lc(e,t,o,r,i){hi(e,t,o,r,i),_f(e,o)&&jf(e,t,o,r)}var La=200,Rx=50,pi=[],cc=new Set,io;function Fx(e){const t=Array.isArray(e.moduleName)?[...e.moduleName].sort():[e.moduleName];return`${e.gridId}::${t.join("|")}::${e.rowModelType}::${String(e.reasonOrId)}`}function Mx(e){const t=e.map(({reasonOrId:o,moduleName:r,additionalText:i})=>JSON.stringify({reasonOrId:o,moduleName:r,additionalText:i}));return{...e[0],reports:t}}function Kf(e){const t=Fx(e);cc.has(t)||(cc.add(t),_f(La,"error")&&jf(La,e,"error"),pi.push(e),io??(io=setTimeout(Dx,Rx)))}function Dx(){if(io!==void 0&&(clearTimeout(io),io=void 0),pi.length===0)return;const e=pi.splice(0,pi.length),t=new Map;for(let o=0,r=e.length;o<r;++o){const i=e[o],a=t.get(i.gridId);a?a.push(i):t.set(i.gridId,[i])}for(const[o,r]of t){const i=Mx(r);Va(ro,La,i,!1),hi(La,i,"error",void 0,o)}}function Px(){io!==void 0&&(clearTimeout(io),io=void 0),pi.length=0,cc.clear()}function fi(e,t,o,r,i,a){Va(e,t,o,i),lc(t,o,r,void 0,a)}function Oa(e,t,o){return Hf?.(e,t)??[Lx(e,t,o)]}function Va(e,t,o,r,i){e(`${r?"warning":"error"} #${t}`,...Oa(t,o,i))}function Yf(e){return typeof e!="object"&&typeof e!="function"}function Tx(e){if(!e)return String(e);const t={};for(const o of Object.keys(e))Yf(e[o])&&(t[o]=e[o]);return JSON.stringify(t)}function Ax(e){const t=[];for(let o=0,r=e.length;o<r;++o){const i=e[o];Yf(i)&&t.push(i)}return JSON.stringify(t)}function Qf(e){let t=e;return e instanceof Error?t=e.toString():Array.isArray(e)?t=Ax(e):typeof e=="object"&&(t=Tx(e)),t}function Ix(e){const{id:t,params:o,defaultMessage:r}=e;return Oa(t,o,r).map(Qf).join(" ")}function dc(e){return e===void 0?"undefined":e??"null"}function gc(e,t){return`${e}?${t.toString()}`}function zx(e,t,o){const r=Array.from(t.entries()).sort((a,n)=>n[1].length-a[1].length);let i=gc(e,t);for(const[a,n]of r){if(a===Bf)continue;const s=i.length-o;if(s<=0)break;const l="...",c=s+l.length,d=n.length-c>Vf?n.slice(0,n.length-c)+l:n.slice(0,Vf)+l;t.set(a,d),i=gc(e,t)}return i}function Ba(e,t){const o=new URLSearchParams;if(o.append(Bf,R),t)for(const a of Object.keys(t))o.append(a,Qf(t[a]));const r=`${ic}/errors/${e}`,i=gc(r,o);return i.length<=Of?i:zx(r,o,Of)}var Lx=(e,t,o)=>{const r=Ba(e,t),i=`${o?o+` 
`:""}Visit ${r}`;return oc()?i:`${i}${o?"":` 
  Alternatively register the ValidationModule to see the full message in the console.`}`};function uc(...e){fi(di,e[0],e[1],"warning",!0)}function hc(...e){fi(ro,e[0],e[1],"error",!1)}function pc(e,t,o){fi(di,t,o,"warning",!0,e)}function Ox(e,t,o){fi(di,t,o,"deprecation",!0,e)}function Zf(e,t,o){fi(ro,t,o,"error",!1,e)}function Ha(e,t,o){return hi(t,o,"error",void 0,e),new Error(fc(void 0,[t,o]))}function Vx(...e){return hi(e[0],e[1],"error"),new Error(fc(void 0,e))}function Na(e,t,o,r){Va(ro,e,t,!1,o),!ui&&za.length<Sx&&za.push({id:e,params:t,severity:"error",gridId:r,defaultMessage:o}),lc(e,t,"error",o,r)}function Bx(e,t,o){Va(di,e,t,!0,o),lc(e,t,"warning",o)}function fc(e,t){const o=t[0];return`error #${o} `+Oa(o,t[1],e).join(" ")}function ao(...e){return fc(void 0,e)}var N=(e,t)=>{for(const o of Object.keys(t))t[o]=e;return t},Jf={dispatchEvent:"CommunityCore",...N("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0,getGridElement:0}),...N("GridState",{getState:0,setState:0}),...N("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...N("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...N("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...N("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...N("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...N("ValueCache",{expireValueCache:0}),...N("CellApi",{getCellValue:0}),...N("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...N("Sort",{onSortChanged:0}),...N("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...N("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...N("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...N("HighlightChanges",{flashCells:0}),...N("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...N("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}),...N("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...N("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...N("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...N("ColumnResize",{setColumnWidths:0}),...N("ColumnHover",{isColumnHovered:0}),...N("EditCore",{getCellEditorInstances:0,getEditingCells:0,getEditRowValues:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0,getEditValidationErrors:0}),...N("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...N("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...N("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...N("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...N("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...N("Notes",{getNote:0,setNote:0,refreshNotes:0}),...N("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...N("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...N("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,resetRowGroupExpansion:0}),...N("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...N("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}),...N("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...N("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...N("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...N("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...N("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...N("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...N("PdfExport",{getDataAsPdf:0,exportDataAsPdf:0}),...N("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...N("Formula",{refreshFormulas:0}),...N("CalculatedColumns",{openCalculatedColumnDialog:0,openAddCalculatedColumnDialog:0,refreshCalculatedColumns:0}),...N("ContextMenu",{showContextMenu:0}),...N("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...N("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...N("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...N("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...N("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}),...N("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0,onRowHeightChanged:0,resetRowHeights:0}),...N("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...N("Toolbar",{getToolbarItemInstance:0}),...N("StatusBar",{getStatusPanel:0}),...N("AiToolkit",{getStructuredSchema:0})},mc={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},Hx=(e,t)=>e.eventSvc.dispatchEvent(t),Xf=class{};Reflect.defineProperty(Xf,"name",{value:"GridApi"});var Nx=class extends x{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new Xf,this.fns={...mc,dispatchEvent:Hx},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(Jf))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:o,beans:r}=this;o!==mc&&(o[e]=r?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:o,fns:{[e]:r}}=this;return r?r(o,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:o,preDestroyLink:r}=this;if(!t){uc(26,{fnName:e,preDestroyLink:r});return}const i=Jf[e];o.assertModuleRegistered(i,`\`api.${e}\``)&&t.log.warn(27,{fnName:e,module:i})}destroy(){super.destroy(),this.fns=mc,this.beans=null}};function $f(e){return e.context.getId()}function Gx(e){e.gridDestroySvc.destroy()}function Wx(e){return e.gridDestroySvc.destroyCalled}function qx(e,t){return e.gos.get(t)}function Ux(e,t,o){em(e,{[t]:o})}function em(e,t){e.gos.updateGridOptions({options:t})}function _x(e){return sw(e.gridApi)}function jx(e,t){const o=t.replace(/Module$/,"");return e.gos.isModuleRegistered(o)}function Kx(e){e.expansionSvc?.expandAll(!0)}function Yx(e){e.expansionSvc?.expandAll(!1)}function vc(e){e.rowModel?.onRowHeightChanged()}function wc(e){e.rowModel?.resetRowHeights()}function Qx(e){e.expansionSvc?.resetExpansion()}function st(e){const t=e.rowModel;return t.getType()==="clientSide"?t:void 0}function Ga(e){const t=e.rowModel;return t.getType()==="infinite"?t:void 0}function tm(e){const t=e.rowModel;return t.getType()==="serverSide"?t:void 0}function Zx(e){const t=e.rowModel;return t.getType()==="viewport"?t:void 0}function Jx(e,t,o){const r=tm(e);if(r){if(e.rowGroupColsSvc?.columns.length===0){if(t<0){e.log.error(238);return}r.setRowCount(t,o);return}e.log.error(28);return}Ga(e)?.setRowCount(t,o)}function Xx(e){return Kt(e.gos)?e.rowModel.getBlockStates():e.rowNodeBlockLoader?.getBlockState()??{}}function $x(e){return e.rowModel.isLastRowIndexKnown()}var om={moduleName:"CsrmSsrmSharedApi",version:R,apiFunctions:{expandAll:Kx,collapseAll:Yx,resetRowGroupExpansion:Qx}},rm={moduleName:"RowModelSharedApi",version:R,apiFunctions:{onRowHeightChanged:vc,resetRowHeights:wc}},im={moduleName:"SsrmInfiniteSharedApi",version:R,apiFunctions:{setRowCount:Jx,getCacheBlockState:Xx,isLastRowIndexKnown:$x}},mi=e=>{let t=e.childrenAfterGroup;for(;t?.length;){const o=t[0];if(o.sourceRowIndex>=0)return o;t=o.childrenAfterGroup}},am=(e,t,o,r)=>{if(!t.size||!e)return!1;let i=!1;const a=e.length??0;let n=-1;o&&(n=o.sourceRowIndex,o=n<0?mi(o):null,o&&(n=o.sourceRowIndex)),n<0||n>=a?n=a:r||++n;let s=n,l=Math.min(n,a-1);for(const g of t){const u=g.sourceRowIndex;u<s&&(s=u),u>l&&(l=u)}let c=s;for(let g=s;g<n;++g){const u=e[g];t.has(u)||(u.sourceRowIndex!==c&&(u.sourceRowIndex=c,e[c]=u,i=!0),++c)}let d=l;for(let g=l;g>=n;--g){const u=e[g];t.has(u)||(u.sourceRowIndex!==d&&(u.sourceRowIndex=d,e[d]=u,i=!0),--d)}for(const g of t)g.sourceRowIndex!==c&&(g.sourceRowIndex=c,e[c]=g,i=!0),++c;return i},ek=class extends x{constructor(){super(...arguments),this.beanName="rowNodeSorter",this.accentedSort=!1,this.primaryColumnsSortGroups=!1,this.pivotActive=!1}postConstruct(){this.firstLeaf=ve(this.gos)?mi:tk;const e=()=>{this.pivotActive=this.colModel.isPivotActive()},t=()=>{const o=this.gos;this.accentedSort=!!o.get("accentedSort"),this.primaryColumnsSortGroups=Mt(o)};this.addManagedPropertyListeners(["accentedSort","autoGroupColumnDef","treeData"],t),this.addManagedEventListeners({columnPivotModeChanged:e,columnPivotChanged:e}),t(),e()}wireBeans(e){this.colModel=e.colModel,this.formula=e.formula,this.valueSvc=e.valueSvc}doFullSortInPlace(e,t){return e.sort((o,r)=>this.compareRowNodes(t,o,r))}compareRowNodes(e,t,o){const r=this.accentedSort;for(let i=0,a=e.length;i<a;++i){const n=e[i],s=n.column,l=n.descending,c=this.getValue(t,s),d=this.getValue(o,s),g=n.colComparator??(t.group?void 0:n.leafComparator);let u;if(g?u=g(c,d,t,o,l):n.absolute?u=Kg(nm(c),nm(d),r):u=Kg(c,d,r),u)return l?-u:u}return 0}getValue(e,t){if(this.primaryColumnsSortGroups){if(e.rowGroupColumn===t)return this.getGroupDataValue(e,t);if(e.group&&t.showRowGroup)return}const o=this.valueSvc.getValueFromData(t,e);if(t.allowFormula){const r=this.formula;if(r?.isFormula(o))return r.resolveValue(t,e)}return o}getGroupDataValue(e,t){if(Is(this.gos,this.pivotActive)){const r=this.firstLeaf(e);return r&&this.valueSvc.getValueFromData(t,r)}const o=t.showRowGroupCol;return o?e.groupData?.[o.colId]:void 0}},tk=e=>{if(e.data)return e;let t=e.childrenAfterGroup;for(;t?.length;){const o=t[0];if(o.data)return o;t=o.childrenAfterGroup}},nm=e=>{if(!e)return e;if(typeof e=="bigint")return e<0n?-e:e;const t=Number(e);return Number.isNaN(t)?e:Math.abs(t)};function ok(e){e.sortSvc?.onSortChanged("api")}function sm(e,t,o){const r=ue(e,t,o);if(r){const{className:a}=r;if(typeof a=="string"&&a.includes("ag-icon")||typeof a=="object"&&a["ag-icon"])return r}const i=G({tag:"span"});return i.appendChild(r),i}function ue(e,t,o){let r=null;e==="smallDown"?t.log.warn(262):e==="smallLeft"?t.log.warn(263):e==="smallRight"&&t.log.warn(264);const i=o?.colDef.icons;if(i&&(r=i[e]),t.gos&&!r){const a=t.gos.get("icons");a&&(r=a[e])}if(r){let a;if(typeof r=="function")a=r();else if(typeof r=="string")a=r;else{t.log.warn(38,{iconName:e});return}if(typeof a=="string")return Yn(a);if(Zn(a))return a;t.log.warn(133,{iconName:e});return}else{const a=t.registry.getIcon(e);return a||t.validation?.validateIcon(e),G({tag:"span",cls:`ag-icon ag-icon-${a??e}`,role:"presentation",attrs:{unselectable:"on"}})}}var Io=(e,t)=>({tag:"span",ref:`eSort${e}`,cls:`ag-sort-indicator-icon ag-sort-${t} ag-hidden`,attrs:{"aria-hidden":"true"}}),rk={tag:"span",cls:"ag-sort-indicator-container",children:[Io("Order","order"),Io("Asc","ascending-icon"),Io("Desc","descending-icon"),Io("Mixed","mixed-icon"),Io("AbsoluteAsc","absolute-ascending-icon"),Io("AbsoluteDesc","absolute-descending-icon"),Io("None","none-icon")]},bc=class extends X{constructor(e){super(),this.eSortOrder=k,this.eSortAsc=k,this.eSortDesc=k,this.eSortMixed=k,this.eSortNone=k,this.eSortAbsoluteAsc=k,this.eSortAbsoluteDesc=k,e||this.setTemplate(rk)}attachCustomElements(e,t,o,r,i,a,n){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=o,this.eSortMixed=r,this.eSortNone=i,this.eSortAbsoluteAsc=a,this.eSortAbsoluteDesc=n}setupSort(e,t=!1,o){if(this.column=e,this.suppressOrder=t,this.getSortDefOverride=o,this.setupMultiSortIndicator(),!e.isSortable()&&!e.showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("sortAbsoluteAscending",this.eSortAbsoluteAsc,e),this.addInIcon("sortAbsoluteDescending",this.eSortAbsoluteDesc,e);const r=this.updateIcons.bind(this),i=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",r),this.addManagedEventListeners({newColumnsLoaded:r,sortChanged:i,columnRowGroupChanged:i}),this.onSortChanged()}addInIcon(e,t,o){if(t==null)return;const r=ue(e,this.beans,o);r&&t.appendChild(r)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const{eSortAsc:e,eSortDesc:t,eSortAbsoluteAsc:o,eSortAbsoluteDesc:r,eSortNone:i,column:a,gos:n,beans:s}=this,{isAbsoluteSort:l,isDefaultSort:c,isAscending:d,isDescending:g,direction:u}=Ih(a,s,this.getSortDefOverride);if(e&&Q(e,d&&c,{skipAriaHidden:!0}),t&&Q(t,g&&c,{skipAriaHidden:!0}),i){const h=!a.colDef.unSortIcon&&!n.get("unSortIcon");Q(i,!h&&!u,{skipAriaHidden:!0})}o&&Q(o,d&&l,{skipAriaHidden:!0}),r&&Q(r,g&&l,{skipAriaHidden:!0})}setupMultiSortIndicator(){const{eSortMixed:e,column:t,gos:o}=this;this.addInIcon("sortUnSort",e,t);const r=t.showRowGroup;Mt(o)&&r&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){const{eSortMixed:e,beans:t,column:o}=this;if(e){const r=t.sortSvc.getDisplaySort(o)?.direction==="mixed";Q(e,r,{skipAriaHidden:!0})}}updateSortOrder(){const{eSortOrder:e,column:t,beans:{sortSvc:o}}=this;if(!e)return;const r=o.getDisplaySortIndex(t)??-1,i=r>=0&&o.isMultiSort();Q(e,i,{skipAriaHidden:!0}),r>=0?e.textContent=(r+1).toString():Ce(e)}refresh(){this.onSortChanged()}},ik={selector:"AG-SORT-INDICATOR",component:bc},lm=(e,t)=>{if(e!=null)return typeof e=="object"?e[mt(t)]:e},cm=(e,t)=>{for(let o=0,r=e.length;o<r;++o){const i=e[o],a=i.column,n=i.type,s=lm(a.colDef.comparator,n);let l;if(!s&&a.showRowGroup){const c=a.field,d=c?t.getNonPivotCol(c):null;d&&(l=lm(d.colDef.comparator,n))}i.colComparator=s,i.leafComparator=l,i.descending=i.sort==="desc",i.absolute=n==="absolute"}},ak=class extends x{constructor(){super(...arguments),this.beanName="sortSvc",this.SortIndicatorSelector=ik,this.SortIndicatorComp=bc,this.cols=null,this.map=null,this.opts=null,this.displaySortCount=0}destroy(){super.destroy(),this.invalidate()}invalidate(){this.cols=null,this.map=null,this.opts=null}progressSort(e,t,o){const{sortDef:r,index:i}=this.getNextSortDefAndIndex(e,e.getSortDef(),e.sortCycleIndex);this.setSortForColumn(e,r,t,o,i)}progressSortFromEvent(e,t){const r=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.progressSort(e,r,"uiColumnSorted")}setSortForColumn(e,t,o,r,i){const{gos:a,showRowGroupCols:n,colModel:s}=this.beans,l=Mt(a),c=[e];if(e.showRowGroup&&l){const d=n?.getSourceColumnsForGroupColumn?.(e);for(let g=0,u=d?.length??0;g<u;++g){const h=d[g];h.isSortable()&&c.push(h)}}s.beginColUpdate();try{for(let h=0,p=c.length;h<p;++h)this.setColSort(c[h],t,r,h===0?i:void 0);const d=l?e.showRowGroupCol:null;d&&c.push(d);const u=(o||a.get("alwaysMultiSort"))&&!a.get("suppressMultiSort")?[]:this.clearSortBarTheseColumns(c,r);d&&this.setColSort(d,this.getCoupledGroupSortDef(d),r),this.updateSortIndex(e,r);for(let h=0,p=c.length;h<p;++h)u.push(c[h]);this.dispatchSortChangedEvents(r,u)}finally{s.endColUpdate()}}getCoupledGroupSortDef(e){const t=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);for(let o=0,r=t?.length??0;o<r;++o){const i=t[o].getSortDef();if(i)return i}return ze()}updateSortIndex(e,t){const{gos:o,colModel:r}=this.beans,i=Mt(o),a=i?e.showRowGroupCol??e:e,n=this.getSortedCols(),s=new Map;let l=0;for(let d=0,g=n.length;d<g;++d){const u=n[d];i&&u.showRowGroup||u===a||s.set(u,l++)}a.getSortDef()&&s.set(a,l);const c=r.getAllCols();for(let d=0,g=c.length;d<g;++d){const u=c[d],h=s.get(u)??null;(u.sortIndex??null)!==h&&this.setColSortIndex(u,h,t)}}onSortChanged(e,t){this.invalidate(),this.dispatchSortChangedEvents(e,t)}dispatchSortChangedEvents(e,t){const o={type:"sortChanged",source:e,columns:t};this.eventSvc.dispatchEvent(o)}clearSortBarTheseColumns(e,t){const o=[],r=new Set(e),i=this.beans.colModel.getAllCols();for(let a=0,n=i.length;a<n;++a){const s=i[a];r.has(s)||(s.getSortDef()&&o.push(s),this.setColSort(s,ze(),t))}return o}getNextSortDirection(e,t){const o=t===void 0,r=o?e.getSortDef():ze(t);return this.getNextSortDefAndIndex(e,r,o?e.sortCycleIndex:0).sortDef}getNextSortDefAndIndex(e,t,o=0){const r=US(this.gos,e),i=r.length;if(i===0)return{sortDef:ze(),index:0};let a=-1;for(let s=o<i?o:0;s<i;++s)if(Cc(r[s],t)){a=s;break}const n=a===-1||a+1>=i?0:a+1;return{sortDef:ze(r[n]),index:n}}getSortedCols(){return this.cols??this.loadSortedCols()}getIndexMap(){return this.map??this.loadIndexMap(this.getSortedCols())}loadSortedCols(){const{colModel:e,showRowGroupCols:t}=this.beans,o=Mt(this.gos),r=e.pivotMode,i=e.getAllCols(),a=[];for(let s=0,l=i.length;s<l;++s){const c=i[s];if(c.getSortDef()){if(r){const d=o?c.showRowGroupCol:c.showRowGroup;if(!c.aggFunc&&c.primary&&!d)continue}a.push(c)}}a.length>1&&a.sort(nk);const n=o&&t?t.interleaveSortedColumns(a):a;return this.cols=n,n}loadIndexMap(e){const t=new Map,o=e.length,r=this.beans.showRowGroupCols;let i;if(Mt(this.gos)&&r)i=r.fillCoupledSortIndexMap(e,t);else{for(let a=0;a<o;++a)t.set(e[a],a);i=o-1}return this.displaySortCount=i+1,this.map=t,t}getSortOptions(){let e=this.opts;if(e===null){e=[];const t=this.getSortedCols();for(let o=0,r=t.length;o<r;++o){const i=t[o],a=i.getSortDef(),n=a?.direction;n&&e.push({sort:n,type:mt(a.type),column:i,colComparator:void 0,leafComparator:void 0,descending:!1,absolute:!1})}cm(e,this.beans.colModel),this.opts=e}return e}getDisplaySort(e){const t=e.getSortDef();if(!e.showRowGroup||!Mt(this.gos))return t;const o=this.beans.showRowGroupCols?.getSourceColumnsForGroupColumn(e);if(!o?.length)return t;const i=e.field!=null||!!e.valueGetter?t:o[0].getSortDef();let a=!0;for(let n=0,s=o.length;a&&n<s;++n)a=Cc(o[n].getSortDef(),i);return a?i:{type:mt(t?.type),direction:"mixed"}}getDisplaySortIndex(e){return this.getIndexMap().get(e)}isMultiSort(){return this.getDisplaySortCount()>1}getDisplaySortCount(){return this.getIndexMap(),this.displaySortCount}setupHeader(e,t){const o=()=>{const{type:r,direction:i}=ze(t.getSortDef());if(e.toggleCss("ag-header-cell-sorted-asc",i==="asc"),e.toggleCss("ag-header-cell-sorted-desc",i==="desc"),e.toggleCss("ag-header-cell-sorted-abs-asc",r==="absolute"&&i==="asc"),e.toggleCss("ag-header-cell-sorted-abs-desc",r==="absolute"&&i==="desc"),e.toggleCss("ag-header-cell-sorted-none",!i),t.showRowGroup){const a=this.beans.showRowGroupCols?.isGroupSortMixed(t,i)??!0;e.toggleCss("ag-header-cell-sorted-mixed",a)}};e.addManagedEventListeners({sortChanged:o,columnPinned:o,columnRowGroupChanged:o,displayedColumnsChanged:o}),o()}initCol(e){const{sortIndex:t,initialSortIndex:o}=e.colDef,r=ZS(e.colDef);r&&e.setSortDef(r);const i=t!==void 0?t:o;i!=null&&(e.sortIndex=i)}updateColSort(e,t,o){t!==void 0&&this.setColSort(e,ze(t),o)}setColSort(e,t,o,r){const i=e.getSortDef();e.sortCycleIndex=r,Cc(i,t)||(!!i?.direction!=!!t.direction?this.invalidate():this.opts=null,e.setSortDef(t),e.dispatchColEvent("sortChanged",o)),e.dispatchStateUpdatedEvent("sort",o)}setColSortIndex(e,t,o){e.sortIndex=t,this.invalidate(),e.dispatchStateUpdatedEvent("sortIndex",o)}},nk=(e,t)=>(e.sortIndex??2147483647)-(t.sortIndex??2147483647),Cc=(e,t)=>e?t?e.type===t.type&&e.direction===t.direction:e.direction===null:t?t.direction===null:!0;function yc(e){const t=e?.getSortOptions();if(!t)return[];const o=t.length,r=new Array(o);for(let i=0;i<o;++i){const a=t[i];r[i]={sort:a.sort,type:a.type,colId:a.column.colId}}return r}var Sc={moduleName:"Sort",version:R,beans:[ak,ek],apiFunctions:{onSortChanged:ok},userComponents:{agSortIndicator:bc},icons:{sortAscending:"asc",sortDescending:"desc",sortUnSort:"none",sortAbsoluteAscending:"aasc",sortAbsoluteDescending:"adesc"}},vi=class{constructor(){this.reordered=!1,this.removals=[],this.updates=new Set,this.adds=new Set}},sk=class extends x{constructor(e){super(),this.rootNode=e,this.nextId=0,this.allNodesMap={},dm(e)}getRowNode(e){return this.allNodesMap[e]}setNewRowData(e){this.dispatchRowDataUpdateStarted(e),this.destroyAllNodes();const t=dm(this.rootNode),o=new Array(e.length);t._leafs=o;let r=0;const i=this.beans.groupStage?.getNestedDataGetter(),a=i?new Set:null,n=(s,l)=>{const c=s.level+1;for(let d=0,g=l.length;d<g;++d){const u=l[d];if(!u)continue;const h=this.createRowNode(u,c,r);if(o[r++]=h,a&&!a.has(u)){a.add(u),h.treeParent=s;const p=i(u);p&&n(h,p)}}};n(t,e),o.length=r}destroyAllNodes(){const{selectionSvc:e,pinnedRowModel:t,groupStage:o}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),o?.clearNonLeafs();const r=this.rootNode._leafs;if(r)for(let i=0,a=r.length;i<a;++i)r[i]._destroy(null);this.allNodesMap=Object.create(null),this.nextId=0}setImmutableRowData(e,t){const{rootNode:o,gos:r}=this;this.dispatchRowDataUpdateStarted(t);const i=So(this.beans),a=e.changedRowNodes,{adds:n,updates:s}=a,l=new Set,c=this.beans.groupStage?.getNestedDataGetter();let d=r.get("suppressMaintainUnsortedOrder")?void 0:!1,g=-1,u=!1;const h=(m,w)=>{if(!d&&d!==void 0){const v=m.sourceRowIndex;d=v<=g,g=v}m.data!==w&&(m.updateData(w),n.has(m)||s.add(m))},p=(m,w,v)=>{for(let C=0,b=w.length;C<b;++C){const S=w[C];if(!S)continue;let E=this.getRowNode(i({data:S,level:v}));if(E?(h(E,S),u||(u=!!c&&E.treeParent!==m)):(E=this.createRowNode(S,v),n.add(E)),!c||l.has(E)){l.add(E);continue}l.add(E),E.treeParent=m;const F=c(S);F&&p(E,F,v+1)}};p(o,t,0);const f=this.deleteUnusedNodes(l,a,!!e.animate)||d||n.size>0;if(f){const m=o._leafs??(o._leafs=[]);d===void 0?uk(m,l,a):gk(m,l)&&(a.reordered=!0)}(f||u||s.size)&&(e.rowDataUpdated=!0)}deleteUnusedNodes(e,{removals:t},o){const r=this.rootNode._leafs,i=this.beans.selectionSvc;for(let a=0,n=r.length;a<n;a++){const s=r[a];e.has(s)||this.destroyNode(s,o)&&(t.push(s),s.isSelected()&&i?.removeFromSelection?.(s,"rowDataChanged"))}return t.length>0}updateRowData(e,t,o){if(this.dispatchRowDataUpdateStarted(e.add),this.beans.groupStage?.getNestedDataGetter())return this.warn(268),{remove:[],update:[],add:[]};const r=So(this.beans),i=this.executeRemove(r,e,t,o),a=this.executeUpdate(r,e,t),n=this.executeAdd(e,t);return{remove:i,update:a,add:n}}executeRemove(e,{remove:t},{adds:o,updates:r,removals:i},a){const n=this.rootNode._leafs,s=n?.length,l=t?.length;if(!l||!s)return[];const c=this.beans.selectionSvc;let d=0,g=s,u=0;const h=new Array(l);for(let p=0;p<l;++p){const f=this.lookupNode(e,t[p]);if(!f)continue;const m=f.sourceRowIndex;m<g&&(g=m),m>u&&(u=m),h[d++]=f,this.destroyNode(f,a)&&(f.isSelected()&&c?.removeFromSelection?.(f,"rowDataChanged"),o.delete(f)||(r.delete(f),i.push(f)))}return h.length=d,d&&dk(n,g,u),h}executeUpdate(e,{update:t},{adds:o,updates:r}){const i=t?.length;if(!i)return[];const a=new Array(i);let n=0;for(let s=0;s<i;s++){const l=t[s],c=this.lookupNode(e,l);c&&(c.updateData(l),a[n++]=c,o.has(c)||r.add(c))}return a.length=n,a}executeAdd(e,t){var o;const r=(o=this.rootNode)._leafs??(o._leafs=[]),i=r.length,a=e.add,n=a?.length;if(!n)return[];const s=i+n;let l=this.sanitizeAddIndex(r,e.addIndex);if(l<i){for(let g=i-1,u=s-1;g>=l;--g){const h=r[g];h.sourceRowIndex=u,r[u--]=h}t.reordered=!0}r.length=s;const c=new Array(n),d=t.adds;for(let g=0;g<n;g++){const u=this.createRowNode(a[g],0,l);d.add(u),r[l]=u,c[g]=u,l++}return c}dispatchRowDataUpdateStarted(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",rowData:e??null})}createRowNode(e,t,o){const r=new vt(this.beans);r.parent=this.rootNode,r.level=t,r.group=!1,o!=null&&(r.sourceRowIndex=o),r.setDataAndId(e,String(this.nextId++));const i=r.id,a=this.allNodesMap;return a[i]&&this.warn(2,{nodeId:i}),a[i]=r,r}destroyNode(e,t){if(!e._destroy(t))return!1;const o=e.id,r=this.allNodesMap;return r[o]===e&&delete r[o],!0}lookupNode(e,t){if(!e)return ck(this.beans.log,this.rootNode._leafs,t);const o=e({data:t,level:0}),r=this.allNodesMap[o];return r||(this.error(4,{id:o}),null)}sanitizeAddIndex(e,t){const o=e.length;if(typeof t!="number"||t<0||t>=o||Number.isNaN(t))return o;t=Math.ceil(t);const r=this.gos;return t>0&&r.get("treeData")&&r.get("getDataPath")&&(t=lk(e,t)),t}},lk=(e,t)=>{for(let o=0,r=e.length;o<r;o++)if(e[o]?.rowIndex==t-1)return o+1;return t},dm=e=>{e.group=!0,e.level=-1,e._expanded=!0,e.id=ei,e._leafs?.length!==0&&(e._leafs=[]);const t=[],o=[],r=[],i=[];e.childrenAfterGroup=t,e.childrenAfterSort=o,e.childrenAfterAggFilter=r,e.childrenAfterFilter=i;const a=e.sibling;return a&&(a.childrenAfterGroup=t,a.childrenAfterSort=o,a.childrenAfterAggFilter=r,a.childrenAfterFilter=i,a.childrenMapped=e.childrenMapped),e.updateHasChildren(),e},ck=(e,t,o)=>{if(t)for(let r=0,i=t.length;r<i;r++){const a=t[r];if(a.data===o)return a}return e.error(5,{data:o}),null},dk=(e,t,o)=>{t=Math.max(0,t);for(let r=t,i=e.length;r<i;++r){const a=e[r];r<=o&&a.destroyed||(a.sourceRowIndex=t,e[t++]=a)}e.length=t},gk=(e,t)=>{const o=t.size;e.length=o;let r=0,i=!1,a=!1;for(const n of t){const s=n.sourceRowIndex;s===r?a||(a=i):(s>=0?a=!0:i=!0,n.sourceRowIndex=r,e[r]=n),++r}return a},uk=(e,t,{adds:o})=>{const r=e.length,i=t.size;i>r&&(e.length=i);let a=0;for(let n=0;n<r;++n){const s=e[n];s.destroyed||(a!==n&&(s.sourceRowIndex=a,e[a]=s),++a)}for(const n of o)n.sourceRowIndex<0&&(n.sourceRowIndex=a,e[a++]=n);e.length=a},hk=class extends x{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowCountReady=!1,this.hierarchical=!1,this.nodeManager=void 0,this.rowsToDisplay=[],this.rowsToRender=this.rowsToDisplay,this.loadingRows=null,this.formulaRows=[],this.positionedRows=[],this.positionedRowsNext=[],this.positioningRows=0,this.stages=null,this.asyncTransactions=null,this.started=!1,this.refreshingData=!1,this.rowDataUpdatedPending=!1,this.refreshingModel=!1,this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1,this.rowNodesCountReady=!1,this.stagesRefreshProps=new Map,this.onRowHeightChanged_debounced=se(this,this.onRowHeightChanged.bind(this),100)}postConstruct(){const e=this.beans,t=new vt(e);this.rootNode=t,this.nodeManager=this.createBean(new sk(t));const o=()=>{this.beans.groupStage?.invalidateGroupCols(),this.refreshModel({step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")})};this.addManagedEventListeners({newColumnsLoaded:o,columnRowGroupChanged:o,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.onPivotChanged.bind(this),columnPivotModeChanged:()=>this.refreshModel({step:"group"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),gridReady:this.onGridReady.bind(this),rowExpansionStateChanged:this.onRowGroupOpened.bind(this)}),this.addPropertyListeners()}addPropertyListeners(){const{beans:e,stagesRefreshProps:t}=this,o=[e.groupStage,e.filterStage,e.groupFilterStage,e.pivotStage,e.aggStage,e.sortStage,e.groupSortStage,e.filterAggStage,e.flattenStage].filter(r=>!!r);this.stages=o;for(let r=o.length-1;r>=0;--r){const i=o[r].refreshProps;if(i)for(const a of i)t.set(a,r)}this.addManagedPropertyListeners([...t.keys(),"rowData"],r=>{const i=r.changeSet?.properties;i&&this.onPropChange(i)}),Or(this,()=>this.resetRowHeights()),this.addManagedPropertyListeners(["loading","loadingRows"],()=>this.onLoadingRowsChanged())}start(){this.updateLoadingRows(),this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):(this.setInitialData(),this.loadingRows&&!this.rowNodesCountReady&&this.refreshModel({step:"nothing"}))}onLoadingRowsChanged(){!this.updateLoadingRows()||!this.started||this.refreshModel({step:"nothing",keepRenderedRows:!1,animate:!1})}updateLoadingRows(){if(!Ms(this.gos)){const n=this.loadingRows;if(this.loadingRows=null,this.rowsToRender=this.rowsToDisplay,!n)return!1;for(const s of n)s._destroy(null);return!0}const t=fS(this.gos),o=this.loadingRows==null,r=this.loadingRows??(this.loadingRows=[]);this.rowsToRender=r;let i=o;const a=pt(this.beans);for(;r.length<t;){const n=new vt(this.beans);n.parent=this.rootNode,n.level=0,n.uiLevel=0,n.group=!1,n.stub=!0,n.selectable=!1,n.setRowHeight(a),r.push(n),i=!0}for(;r.length>t;)r.pop()._destroy(null),i=!0;return i}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,o,r){let i,a=!1;do{i=!1;const n=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(n,o),c=Math.min(s,r);for(let d=l;d<=c;d++){const g=this.getRow(d);if(g.rowHeightEstimated){const u=Yt(this.beans,g);g.setRowHeight(u.height),i=!0,a=!0}}i&&this.setRowTopAndRowIndex()}while(i);return a}onPropChange(e){const{nodeManager:t,gos:o,beans:r}=this,i=r.groupStage;if(!t)return;const a=new Set(e),n=i?.onPropChange(a);let s;a.has("rowData")?s=o.get("rowData"):n&&(s=i?.extractData()),s&&!Array.isArray(s)&&(s=null,this.warn(1));const l={step:"nothing",changedProps:a};if(s){const d=!n&&!!this.rootNode?._leafs?.length&&s.length>0&&o.exists("getRowId")&&!o.get("resetRowDataOnUpdate");this.refreshingData=!0,d?(l.keepRenderedRows=!0,l.animate=!o.get("suppressAnimationFrame"),l.changedRowNodes=new vi,t.setImmutableRowData(l,s)):(l.rowDataUpdated=!0,l.newData=!0,t.setNewRowData(s),this.rowNodesCountReady=!0)}const c=l.rowDataUpdated?"group":this.getRefreshedStage(e);c&&(l.step=c,this.refreshModel(l))}getRefreshedStage(e){const{stages:t,stagesRefreshProps:o}=this;if(!t)return null;const r=t.length;let i=r;for(let a=0,n=e.length;a<n&&i;++a)i=Math.min(i,o.get(e[a])??i);return i<r?t[i].step:null}setRowTopAndRowIndex(){if(this.positioningRows){++this.positioningRows;return}this.positioningRows=1;try{this.positionAndClearRows(),this.positioningRows>1&&this.positionAndClearRows()}finally{this.positioningRows=0}}positionAndClearRows(){const e=this.positionedRows,t=this.positionedRowsNext;this.positionedRows=t,this.positionedRowsNext=e,t.length=0;try{this.positionRows(t),this.updateFormulaRowIndexes(),this.clearStaleRowTops(e)}catch(o){throw this.retainStaleRows(e),o}}updateFormulaRowIndexes(){if(this.beans.formula?.isEvaluationActive()){const e=this.formulaRows;for(let t=0,o=e.length;t<o;++t)e[t].formulaRowIndex=t}}positionRows(e){const t=this.beans,o=this.rowsToRender,r=t.environment.getDefaultRowHeight();let i=0;const a=na(t)||!t.environment.sizesMeasured;for(let n=0,s=o.length;n<s;++n){const l=o[n];if(e[n]=l,l.rowHeight==null){const c=Yt(t,l,a,r);l.setRowHeight(c.height,c.estimated)}l.setRowTop(i),l.setRowIndex(n),i+=l.rowHeight}}clearStaleRowTops(e){const t=this.rowsToRender;for(const o of e){const r=o.rowIndex;(r==null||t[r]!==o)&&!o.destroyed&&o.clearRowTopAndRowIndex()}e.length=0}retainStaleRows(e){const t=this.positionedRows,o=this.rowsToRender,r=t.length;for(const i of e){const a=i.rowIndex;(a==null||a>=r||o[a]!==i)&&t.push(i)}e.length=0}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToRender.length}getTopLevelRowCount(){if(this.loadingRows)return this.loadingRows.length;const{rootNode:e,rowsToDisplay:t}=this;if(!e||!t.length)return 0;if(t[0]===e)return 1;const r=e.sibling?.displayed?1:0;return(e.childrenAfterSort?.length??0)+r}getTopLevelRowDisplayedIndex(e){if(this.loadingRows)return e;const{beans:t,rootNode:o,rowsToDisplay:r}=this;if(!o||!r.length||r[0]===o)return e;const a=o.childrenAfterSort,n=l=>{let c=a[l];if(this.gos.get("groupHideOpenParents"))for(;c.expanded&&c.childrenAfterSort&&c.childrenAfterSort.length>0;)c=c.childrenAfterSort[0];return c.rowIndex},s=t.footerSvc;return s?s?.getTopDisplayIndex(r,e,a,n):n(e)}getTopLevelIndexFromDisplayedIndex(e){if(this.loadingRows)return e;const{rootNode:t,rowsToDisplay:o}=this;if(!t||!o.length||o[0]===t)return e;let i=this.getRow(e).primaryRow,a=i.parent;for(;a&&a!==t;)i=a,a=i.parent;const n=t.childrenAfterSort?.indexOf(i)??-1;return n>=0?n:e}getRowBounds(e){const t=this.rowsToRender[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){this.refreshModel({step:"map",keepRenderedRows:!0,animate:yo(this.gos)})}onFilterChanged({afterDataChange:e,columns:t}){if(!e){const r=t.length===0||t.some(i=>i.isPrimary())?"filter":"filter_aggregates";this.refreshModel({step:r,keepRenderedRows:!0,animate:yo(this.gos)})}}onPivotChanged(){this.beans.filterManager?.isAnyFilterPresent()||this.refreshModel({step:"pivot"})}onSortChanged(){this.refreshModel({step:"sort",keepRenderedRows:!0,animate:yo(this.gos)})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.beans.colModel.isPivotActive()?"pivot":"aggregate"})}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:o,rowDataUpdated:r}=e;return!(!t||o||!r||t.removals.length||t.adds.size)}reMapRows(){if(this.refreshingModel||this.refreshingData){this.noKeepRenderedRows=!0,this.noKeepUndoRedoStack=!0,this.noAnimate=!0;return}this.refreshModel({step:"map",keepRenderedRows:!1,keepUndoRedoStack:!1,animate:!1})}refreshModel(e){const{nodeManager:t,eventSvc:o,started:r}=this;if(!t)return;const i=!!e.rowDataUpdated;r&&i&&o.dispatchEvent({type:"rowDataUpdated"});const a=this.isSuppressModelUpdateAfterUpdateTransaction(e);if(this.deferRefresh(a)){this.setPendingRefreshFlags(e),this.rowDataUpdatedPending||(this.rowDataUpdatedPending=i);const s=this.beans.selectionSvc;i&&r&&!this.refreshingModel&&s&&(a?s.updateSelectableAfterGrouping(void 0,e.changedRowNodes):s.flushPendingSelectionChanged?.());return}this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.step="group"),this.updateRefreshParams(e);let n=!1;this.refreshingModel=!0;try{this.executeRefresh(e,i),n=!0}finally{this.refreshingData=!1,this.refreshingModel=!1,n||this.setPendingRefreshFlags(e)}this.clearPendingRefreshFlags(),this.beans.formula?.onRowsChanged(e.changedRowNodes,e.newData),o.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}executeRefresh(e,t){const{beans:o,rootNode:r}=this;o.masterDetailSvc?.refreshModel(e),t&&e.step!=="group"&&o.colFilter?.refreshModel();let i=e.changedPath;switch(i?.addRow(r),e.step==="group"&&(this.doGrouping(r,e),i??(i=e.changedPath),o.selectionSvc?.updateSelectableAfterGrouping(i,e.changedRowNodes)),i??(i=o.changedPathFactory?.ensureRowsPath(e,r)),e.step){case"group":case"filter":this.doFilter(i);case"pivot":this.doPivot(i,e.changedProps)&&(i=void 0,e.changedPath=void 0);case"aggregate":this.doAggregate(i);case"filter_aggregates":this.doFilterAggregates(i);case"sort":this.doSort(i,e.changedRowNodes);case"map":this.doRowsToDisplay()}this.setRowTopAndRowIndex(),this.updateRefreshParams(e)}deferRefresh(e){return this.refreshingModel||this.beans.colModel.changeEventsDispatching?!0:e?(this.started&&(this.refreshingData=!1),!0):!this.started}setPendingRefreshFlags(e){this.pendingNewData||(this.pendingNewData=!!e.newData),this.noKeepRenderedRows||(this.noKeepRenderedRows=!e.keepRenderedRows),this.noKeepUndoRedoStack||(this.noKeepUndoRedoStack=!e.keepUndoRedoStack),this.noAnimate||(this.noAnimate=!e.animate)}clearPendingRefreshFlags(){this.pendingNewData=!1,this.noKeepRenderedRows=!1,this.noKeepUndoRedoStack=!1,this.noAnimate=!1}updateRefreshParams(e){e.newData=this.pendingNewData||!!e.newData,e.keepRenderedRows=!this.noKeepRenderedRows&&!!e.keepRenderedRows,e.keepUndoRedoStack=!this.noKeepUndoRedoStack&&!!e.keepUndoRedoStack,e.animate=!this.noAnimate&&!!e.animate}isEmpty(){return!this.loadingRows&&(!this.rootNode?._leafs?.length||!this.beans.colModel?.ready)}isRowsToRender(){return this.rowsToRender.length>0}getOverlayType(){const{beans:e,gos:t}=this;if(this.loadingRows)return null;const o=this.rootNode;if(o?._leafs?.length){const r=o.sibling?.displayed?1:0;if(e.filterManager?.isAnyFilterPresent()&&this.getRowCount()===r)return"noMatchingRows"}else if(this.rowCountReady||(t.get("rowData")?.length??0)==0)return"noRows";return null}getNodesInRangeForSelection(e,t){const o=rr(this.gos),r=o?e:Cl(e),i=o?t:Cl(t);if(!r||!i)return null;let a=!1,n=!1;const s=[],l=c=>(n=!0,o&&c.group?(gm(s,c),!0):!1);return this.forEachNodeAfterFilterAndSort(c=>{if(n||a&&(c===i||c===r)&&l(c)||!a&&(c!==i&&c!==r||(a=!0,i===r&&l(c))))return;(!c.group||!o)&&(o||c.rowIndex!=null)&&s.push(c)}),s}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToRender[e]}getFormulaRow(e){return this.formulaRows[e]}isRowPresent(e){return this.rowsToRender.includes(e)}getRowIndexAtPixel(e){const t=this.rowsToRender,o=t.length;if(o===0||this.isEmpty()&&!this.rootNode?.sibling?.displayed)return-1;let r=0,i=o-1;if(e<=0)return 0;if(t[i].rowTop<=e)return i;let n=-1,s=-1;for(;;){const l=Math.floor((r+i)/2),c=t[l];if(this.isRowInPixel(c,e)||(c.rowTop<e?r=l+1:c.rowTop>e&&(i=l-1),n===r&&s===i))return l;n=r,s=i}}isRowInPixel(e,t){const o=e.rowTop,r=o+e.rowHeight;return o<=t&&r>t}forEachLeafNode(e){const t=this.rootNode?._leafs;if(t)for(let o=0,r=t.length;o<r;++o)e(t[o],o)}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){const t=this.rowsToRender;for(let o=0,r=t.length;o<r;++o)e(t[o],o)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,o=>o.childrenAfterAggFilter)}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,o=>o.childrenAfterSort)}forEachPivotNode(e,t,o){const{colModel:r,rowGroupColsSvc:i}=this.beans;if(!r.pivotMode)return;if(!i?.columns.length){e(this.rootNode,0);return}const a=o?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,n=>n.leafGroup?null:n[a])}depthFirstSearchRowNodes(e,t=!1,o=a=>a.childrenAfterGroup,r=this.rootNode,i=0){let a=i;if(!r)return a;const n=r===this.rootNode;if(n||e(r,a++),r.hasChildren()&&!r.footer){const s=n||this.hierarchical?o(r):null;if(s){const l=this.beans.footerSvc;a=l?.addTotalRows(a,r,e,t,n,"top")??a;for(const c of s)a=this.depthFirstSearchRowNodes(e,t,o,c,a);return l?.addTotalRows(a,r,e,t,n,"bottom")??a}}return a}doAggregate(e){this.rootNode&&this.beans.aggStage?.execute(e)}doFilterAggregates(e){if(this.hierarchical){const r=this.beans.filterAggStage;if(r){r.execute(e);return}}const t=this.rootNode;t.childrenAfterAggFilter=t.childrenAfterFilter;const o=t.sibling;o&&(o.childrenAfterAggFilter=t.childrenAfterFilter)}doSort(e,t){const o=this.beans;(this.hierarchical&&o.groupSortStage||o.sortStage).execute(e,t)}doGrouping(e,t){const r=this.beans.groupStage?.execute(t);if(r===void 0){const i=e._leafs;e.childrenAfterGroup=i,e.updateHasChildren();const a=e.sibling;a&&(a.childrenAfterGroup=i)}(r||t.rowDataUpdated)&&this.beans.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEvent({type:"rowCountReady"}))}doFilter(e){const t=this.beans;(this.hierarchical&&t.groupFilterStage||t.filterStage).execute(e);const o=this.rootNode,r=o.sibling;r&&(r.childrenAfterFilter=o.childrenAfterFilter)}doPivot(e,t){return this.beans.pivotStage?.execute(e,t)??!1}getRowNode(e){typeof e!="string"&&(e=String(e));const t=this.nodeManager?.getRowNode(e);if(typeof t=="object")return t;const o=this.beans.groupStage?.getNonLeaf(e);return o||this.getSpecialRowNode(e)}getSpecialRowNode(e){if(e===ei)return this.rootNode??void 0;if(e===ti){const t=this.rootNode?.sibling;return t?.footer?t:void 0}if(e.startsWith(fa)){const t=e.slice(fa.length),o=this.getRowNode(t);return o?.sibling?.footer?o.sibling:void 0}if(e.startsWith(pl)){const t=e.slice(pl.length),o=this.nodeManager?.getRowNode(t);if(typeof o=="object"&&o.detailNode?.id===e)return o.detailNode}}batchUpdateRowData(e,t){if(!this.asyncTransactionsTimer){this.asyncTransactions=[];const o=this.gos.get("asyncTransactionWaitMillis");this.asyncTransactionsTimer=setTimeout(()=>this.executeBatchUpdateRowData(),o)}this.asyncTransactions.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){const e=this.asyncTransactionsTimer;e&&(clearTimeout(e),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){const{nodeManager:e,beans:t,eventSvc:o,asyncTransactions:r}=this;if(!e)return;t.valueCache?.onDataChanged();const i=[],a=[],n=new vi,s=!this.gos.get("suppressAnimationFrame");for(const{rowDataTransaction:l,callback:c}of r??[]){this.rowNodesCountReady=!0,this.refreshingData=!0;const d=e.updateRowData(l,n,s);i.push(d),c&&a.push(c.bind(null,d))}this.commitTransactions(n,s),a.length>0&&setTimeout(()=>{for(let l=0,c=a.length;l<c;l++)a[l]()},0),i.length>0&&o.dispatchEvent({type:"asyncTransactionsFlushed",results:i}),this.asyncTransactionsTimer=void 0,this.asyncTransactions=null}updateRowData(e){const t=this.nodeManager;if(!t)return null;this.beans.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const o=new vi,r=!this.gos.get("suppressAnimationFrame");this.refreshingData=!0;const i=t.updateRowData(e,o,r);return this.commitTransactions(o,r),i}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,keepRenderedRows:!0,animate:t,changedRowNodes:e})}doRowsToDisplay(){const{rootNode:e,beans:t}=this,{formula:o,flattenStage:r}=t;let i;if(o?.active){const a=e?.childrenAfterSort??[];this.formulaRows=a,i=pk(a)}else if(r)i=r.execute();else{i=e?.childrenAfterSort??[];for(let a=0,n=i.length;a<n;++a)i[a].setUiLevel(0)}this.rowsToDisplay=i,o?.active||(this.formulaRows=o?.isEvaluationActive()?i:[]),this.loadingRows||(this.rowsToRender=i)}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes(),o=pt(this.beans),r=this.loadingRows;if(r)for(const a of r)a.setRowHeight(o);e.setRowHeight(e.rowHeight,!0);const i=e.sibling;i?.setRowHeight(i.rowHeight,!0),(t||r)&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode(t=>{t.setRowHeight(t.rowHeight,!0);const o=t.detailNode;o?.setRowHeight(o.rowHeight,!0);const r=t.sibling;r?.setRowHeight(r.rowHeight,!0),e=!0}),e}onGridReady(){this.started||this.setInitialData()}destroy(){super.destroy();const e=this.loadingRows;if(e)for(const t of e)t._destroy(null);this.loadingRows=null,this.nodeManager=this.destroyBean(this.nodeManager),this.started=!1,this.rootNode=null,this.rowsToDisplay=[],this.rowsToRender=[],this.positionedRows.length=0,this.positionedRowsNext.length=0,this.asyncTransactions=null,this.stages=null,this.stagesRefreshProps.clear(),clearTimeout(this.asyncTransactionsTimer)}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}},pk=e=>{for(let t=0,o=e.length;t<o;++t){const r=e[t];if(r.softFiltered)return fk(e,t,o);r.setUiLevel(0)}return e},fk=(e,t,o)=>{const r=e.slice(0,t);for(let i=t+1;i<o;++i){const a=e[i];a.softFiltered||(a.setUiLevel(0),r.push(a))}return r},gm=(e,t)=>{const o=t.childrenAfterGroup;if(o)for(let r=0,i=o.length;r<i;++r){const a=o[r];a.data&&e.push(a),a.group&&gm(e,a)}};function mk(e){e.expansionSvc?.onGroupExpandedOrCollapsed()}function vk(e,t){const o=st(e);o&&((!t||t==="everything")&&(t="group"),o.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))}function wk(e){return st(e)?.isEmpty()??!0}function bk(e,t){st(e)?.forEachLeafNode(t)}function Ck(e,t){st(e)?.forEachNodeAfterFilter(t)}function yk(e,t){st(e)?.forEachNodeAfterFilterAndSort(t)}function Sk(e,t){return e.frameworkOverrides.wrapIncoming(()=>st(e)?.updateRowData(t))}function xk(e,t,o){e.frameworkOverrides.wrapIncoming(()=>st(e)?.batchUpdateRowData(t,o))}function kk(e){e.frameworkOverrides.wrapIncoming(()=>st(e)?.flushAsyncTransactions())}function Ek(e){return e.selectionSvc?.getBestCostNodeSelection()}var Rk=class extends x{constructor(){super(...arguments),this.beanName="filterStage",this.step="filter",this.refreshProps=null}wireBeans(e){this.filterManager=e.filterManager}execute(){const e=this.beans,t=e.rowModel.rootNode,o=t.childrenAfterGroup,r=o.length,i=this.filterManager,a=!!i?.isChildFilterPresent();if(e.formula?.active)if(t.childrenAfterFilter=o,a)for(let n=0;n<r;++n){const s=o[n];s.softFiltered=!i.doesRowPassFilter(s)}else for(let n=0;n<r;++n)o[n].softFiltered=!1;else a?t.childrenAfterFilter=Fk(o,r,t.childrenAfterFilter??o,i):t.childrenAfterFilter=o}},Fk=(e,t,o,r)=>{const i=o.length;let a=0;for(let n=0;n<t;++n){const s=e[n];if(r.doesRowPassFilter(s)){if(a>=i||o[a]!==s)return um(e,t,n,a,o,r);++a}else if(a<i)return um(e,t,n,a,o,r)}return a===i?o:e},um=(e,t,o,r,i,a)=>{const n=r>0?i.slice(0,r):[];for(;o<t;){const s=e[o++];a.doesRowPassFilter(s)&&n.push(s)}return n},Mk=4,hm=(e,t,o,r,i)=>{const a=t.childrenAfterSort,n=t.childrenAfterAggFilter;if(!n)return a&&a.length>0?a:[];const s=n.length;if(s<=1)return a?.length===s&&(s===0||a[0]===n[0])?a:n.slice();if(!a||s<=Mk)return e.doFullSortInPlace(n.slice(),i);const l=new Map,{updates:c,adds:d}=o,g=[];for(let h=0;h<s;++h){const p=n[h];c.has(p)||d.has(p)||r?.hasRow(p)?(l.set(p,~h),g.push(p)):l.set(p,h)}const u=g.length;return u===0?s===a.length?a:Pk(a,l,g):(g.sort((h,p)=>e.compareRowNodes(i,h,p)||~l.get(h)-~l.get(p)),u===s?g:Dk(e,i,g,a,l,s))},Dk=(e,t,o,r,i,a)=>{const n=new Array(a);let s=0,l=o[s],c,d=-1,g=0,u=0;const h=o.length,p=r.length;for(;;){if(d<0){if(g>=p)break;if(c=r[g++],d=i.get(c)??-1,d<0)continue}if((e.compareRowNodes(t,l,c)||~i.get(l)-d)<0){if(n[u++]=l,++s>=h)break;l=o[s]}else n[u++]=c,d=-1}for(;s<h;)n[u++]=o[s++];if(d<0)return n;for(n[u++]=c;g<p;){const f=r[g++];i.get(f)>=0&&(n[u++]=f)}return n},Pk=(e,t,o)=>{let r=0;o.length=t.size;for(let i=0,a=e.length;i<a;++i){const n=e[i];t.has(n)&&(o[r++]=n)}return o.length=r,o},pm=e=>{const t=e.childrenAfterSort,o=e.sibling;if(o&&(o.childrenAfterSort=t),!!t)for(let r=0,i=t.length-1;r<=i;r++){const a=t[r],n=r===0,s=r===i;a.firstChild!==n&&(a.firstChild=n,a.dispatchRowEvent("firstChildChanged")),a.lastChild!==s&&(a.lastChild=s,a.dispatchRowEvent("lastChildChanged")),a.childIndex!==r&&(a.childIndex=r,a.dispatchRowEvent("childIndexChanged"))}},Tk=class extends x{constructor(){super(...arguments),this.beanName="sortStage",this.step="sort",this.refreshProps=["postSortRows","accentedSort"]}execute(e,t){const{rowModel:o,sortSvc:r,rowNodeSorter:i}=this.beans,a=o.rootNode,n=r.getSortOptions(),s=n.length>0,l=this.gos.getCallback("postSortRows"),c=s&&!l&&this.gos.get("deltaSort")&&t,d=a.childrenAfterSort,g=a.childrenAfterAggFilter;let u;s?c?u=hm(i,a,c,e,n):u=i.doFullSortInPlace(g?.slice()??[],n):u=dy(d,g),a.childrenAfterSort=u,pm(a),l?.({nodes:u})}},xc={moduleName:"ClientSideRowModel",version:R,rowModels:["clientSide"],beans:[hk,Rk,Tk],dependsOn:[Sc]},fm={moduleName:"ClientSideRowModelApi",version:R,apiFunctions:{onGroupExpandedOrCollapsed:mk,refreshClientSideRowModel:vk,isRowDataEmpty:wk,forEachLeafNode:bk,forEachNodeAfterFilter:Ck,forEachNodeAfterFilterAndSort:yk,applyTransaction:Sk,applyTransactionAsync:xk,flushAsyncTransactions:kk,getBestCostNodeSelection:Ek,resetRowHeights:wc,onRowHeightChanged:vc},dependsOn:[om,rm]},Ak={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{draggable:"true"}},Ik=class extends X{constructor(e,t,o){super(Ak),this.rowNode=e,this.column=t,this.eCell=o}postConstruct(){this.getGui().appendChild(ue("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:o,eCell:r,gos:i}=this,a=o.colDef.dndSourceOnRowDrag,n=e.dataTransfer;if(n.setDragImage(r,0,0),a){const s=W(i,{rowNode:t,dragEvent:e});a(s)}else try{const s=JSON.stringify(t.data);n.setData("application/json",s),n.setData("text/plain",s)}catch{}}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}},zk=".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)}",Lk={tag:"div",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"}]},Ok=class extends X{constructor(){super(),this.dragSource=null,this.eIcon=k,this.eLabel=k,this.registerCSS(zk)}postConstruct(){const e=t=>sm(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(Lk)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eIcon:o,dragSource:r,dropIconMap:i,gos:a}=this,n=this.getGui();Ce(o),e||(e=r?.getDefaultIconName?r.getDefaultIconName():"notAllowed");const s=i[e];n.classList.toggle("ag-dnd-ghost-not-allowed",e==="notAllowed"),o.classList.toggle("ag-shake-left-to-right",t),!(s===i.hide&&a.get("suppressDragLeaveHidesColumns"))&&s&&o.appendChild(s)}setLabel(e){this.eLabel.textContent=e}};function Vk(e,t){e.rowDragSvc?.rowDragFeature?.addRowDropZone(t)}function Bk(e,t){const o=e.dragAndDrop?.findExternalZone(t.getContainer());o&&e.dragAndDrop?.removeDropTarget(o)}function Hk(e,t){return e.rowDragSvc?.rowDragFeature?.getRowDropZone(t)}function Nk(e){const t=e.rowDropHighlightSvc;return t?{row:t.row,dropIndicatorPosition:t.position}:{row:null,dropIndicatorPosition:"none"}}function Gk(e,t){const o=e.rowDropHighlightSvc;if(!o)return;const r=t?.row;let i=t?.dropIndicatorPosition;i!=="above"&&i!=="below"&&i!=="inside"&&(i="none");const a=r?.rowIndex;a==null||i==="none"?o.clear():o.set(r,i)}var Wk=class extends g1{shouldPreventMouseEvent(e){return this.gos.get("enableCellTextSelection")&&super.shouldPreventMouseEvent(e)}},qk=class extends x{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:o}=this.beans;return o.addDragSource(t),()=>o.removeDragSource(t)}onDragStart(e,t){this.dragStartX=t.clientX,this.setResizeIcons(!!e.isColumn);const o=t instanceof MouseEvent&&t.shiftKey;e.onResizeStart(o)}setResizeIcons(e){const t=this.beans.ctrlsSvc.get("gridCtrl");t?.setResizeCursor(1,e),t?.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)}};function mm(e,t){return Fa(e,t.target)?.getFocusedCellPosition()??null}function kc(e,t){const o=na(e),r=t;let i,a;r.clientX!=null||r.clientY!=null?(i=r.clientX,a=r.clientY):(i=r.x,a=r.y,a-=Uk(e,t));const{pageFirstPixel:n}=e.pageBounds.getCurrentPagePixelRange();if(a+=n,o){const s=e.ctrlsSvc.getScrollFeature(),l=s.getVScrollPosition(),c=s.getHScrollPosition();i+=c.left,a+=l.top}return{x:i,y:a}}function Uk(e,t){const{eGridViewport:o,eScrollingRows:r}=e.ctrlsSvc.getGridBodyCtrl(),a=t.dropZoneTarget??o;if(!r)return 0;const s=r.getBoundingClientRect().top-a.getBoundingClientRect().top+o.scrollTop;return s>0?s:0}var _k=.25,jk=class extends x{constructor(e){super(),this.eContainer=e,this.lastDraggingEvent=null,this.autoScroll=null,this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,t=>{const o=()=>t.gridBodyCtrl.scrollFeature.getVScrollPosition().top,r=new Z1({scrollContainer:t.gridBodyCtrl.eGridViewport,scrollAxis:"y",getVerticalPosition:o,setVerticalPosition:i=>t.gridBodyCtrl.scrollFeature.setVerticalScrollPosition(i),getTopOffset:()=>t.gridBodyCtrl.getTopPinnedRowsOffset(),onScrollCallback:()=>{const i=o();if(this.autoScrollOldV!==i){this.autoScrollOldV=i,this.autoScrollChanging=!0;return}const a=this.autoScrollChanging;this.autoScrollChanged=a,this.autoScrollChanging=!1,a&&(e.dragAndDrop?.nudge(),this.autoScrollChanged=!1)}});this.autoScroll=r,this.clearAutoScroll()})}destroy(){super.destroy(),this.clearAutoScroll(),this.autoScroll=null,this.lastDraggingEvent=null,this.eContainer=null}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(e){return e?.dropTarget?.allowed===!1||this.beans.rowDragSvc.visibility!=="visible"?"notAllowed":"move"}getRowNodes(e){const t=e.dragItem.rowNodes??[];return!this.isFromThisGrid(e)||t.length<=1?t:t.slice().sort(Kk)}onDragEnter(e){this.dragging(e,!0)}onDragging(e){this.dragging(e,!1)}dragging(e,t){const{lastDraggingEvent:o,beans:r}=this;if(t){const s=this.getRowNodes(e);e.dragItem.rowNodes=s,wm(s,!0)}this.lastDraggingEvent=e;const i=e.fromNudge,a=this.makeRowsDrop(o,e,i,!1);r.rowDropHighlightSvc?.fromDrag(e),t&&this.dispatchGridEvent("rowDragEnter",e),this.dispatchGridEvent("rowDragMove",e);const n=this.autoScroll;a?.rowDragManaged&&a.moved&&a.allowed&&a.sameGrid&&!a.suppressMoveWhenRowDragging&&(!i&&!n?.scrolling||this.autoScrollChanged)&&this.dropRows(a),n?.check(e.event)}isFromThisGrid(e){return e.dragSource.dragSourceDomDataKey===this.gos.getDomDataKey()}makeRowsDrop(e,t,o,r){const{beans:i,gos:a}=this,n=this.newRowsDrop(t,r),s=i.rowModel;if(t.dropTarget=n,t.changed=!1,!n)return null;const{sameGrid:l,rootNode:c,source:d}=n;let{target:g}=n;g??(g=s.getRow(s.getRowCount()-1)??null);const u=this.beans.groupEditSvc,h=!!u?.canSetParent(n);let p=null;if(g?.footer){const m=ba(s,-1,g)??ba(s,1,g);h&&(p=g.sibling??c),g=m??null}g?.detail&&(g=g.parent),n.moved&&(n.moved=d!==g);let f=.5;if(g&&(l&&n.moved&&(p||!h)?f=d.rowIndex>g.rowIndex?-.5:.5:f=(n.y-g.rowTop-g.rowHeight/2)/g.rowHeight||0),!h&&l&&g&&n.moved&&ve(a)){const m=Qk(s,n);m&&(f=d.rowIndex>m.rowIndex?-.5:.5,g=m,n.moved&&(n.moved=d!==g))}return n.target=g,n.newParent=p,n.pointerPos=Zk(g,n.y),n.yDelta=f,u?.fixRowsDrop(n,h,o,f),this.validateRowsDrop(n,h,r),t.changed||(t.changed=vm(e?.dropTarget,n)),n}newRowsDrop(e,t){const{beans:o,gos:r}=this,i=o.rowModel.rootNode,a=ve(r)?r.get("rowDragManaged"):!1,n=r.get("suppressMoveWhenRowDragging"),s=this.isFromThisGrid(e);let{rowNode:l,rowNodes:c}=e.dragItem;if(c??(c=l?[l]:[]),l??(l=c[0]),!l||!i)return null;const d=this.beans.dragAndDrop.isDropZoneWithinThisGrid(e);let g=!0;a&&(!c.length||o.rowDragSvc.visibility!=="visible"||(n||!s)&&!d)&&(g=!1);const u=kc(o,e).y,h=this.getOverNode(u);return{api:o.gridApi,context:o.gridOptions.context,draggingEvent:e,rowDragManaged:a,suppressMoveWhenRowDragging:n,sameGrid:s,withinGrid:d,treeData:!1,rootNode:i,moved:l!==h,y:u,overNode:h,overIndex:h?.rowIndex??-1,pointerPos:"none",position:"none",source:l,target:h??null,newParent:null,rows:c,allowed:g,highlight:!t&&a&&n&&(d||!s),yDelta:0,inside:!1,droppedManaged:!1}}validateRowsDrop(e,t,o){const{source:r,target:i,yDelta:a,inside:n,moved:s,rowDragManaged:l,suppressMoveWhenRowDragging:c}=e;e.moved&&(e.moved=r!==i);const{position:d,fallbackPosition:g}=this.computeDropPosition(s,n,a);e.position=d,t||(e.newParent=null),this.enforceSuppressMoveWhenRowDragging(e,c,"initial");const u=(!l||e.allowed)&&this.gos.get("isRowValidDropPosition");u&&this.applyDropValidator(e,t,o,l,u),l&&(e.rows=this.filterRows(e)),this.beans.groupEditSvc?.clearNewSameParent(e,t),this.enforceSuppressMoveWhenRowDragging(e,c,"final"),e.position==="inside"&&(!e.allowed||!e.newParent)&&(e.position=g)}computeDropPosition(e,t,o){const r=o<0?"above":"below";return e?{position:t?"inside":r,fallbackPosition:r}:{position:"none",fallbackPosition:r}}enforceSuppressMoveWhenRowDragging(e,t,o){if(t){if(o==="initial"){e.moved||(e.allowed=!1);return}(!e.rows.length||e.position==="none")&&(e.allowed=!1)}}applyDropValidator(e,t,o,r,i){this.beans.groupEditSvc?.clearNewSameParent(e,t);const a=i(e);if(!a){e.allowed=!1;return}if(typeof a!="object")return;a.rows!==void 0&&(e.rows=a.rows??[]),t&&a.newParent!==void 0&&(e.newParent=a.newParent),a.target!==void 0&&(e.target=a.target),a.position&&(e.position=a.position),a.allowed!==void 0?e.allowed=a.allowed:r||(e.allowed=!0);const n=e.draggingEvent;a.changed&&n&&(n.changed=!0),!o&&a.highlight!==void 0&&(e.highlight=a.highlight)}addRowDropZone(e){if(!e.getContainer()){this.warn(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e.getContainer())){this.warn(56);return}const o=e.fromGrid?e:{getContainer:e.getContainer,onDragEnter:e.onDragEnter&&(i=>e.onDragEnter(this.rowDragEvent("rowDragEnter",i))),onDragLeave:e.onDragLeave&&(i=>e.onDragLeave(this.rowDragEvent("rowDragLeave",i))),onDragging:e.onDragging&&(i=>e.onDragging(this.rowDragEvent("rowDragMove",i))),onDragStop:e.onDragStop&&(i=>e.onDragStop(this.rowDragEvent("rowDragEnd",i))),onDragCancel:e.onDragCancel&&(i=>e.onDragCancel(this.rowDragEvent("rowDragCancel",i)))},r={isInterestedIn:i=>i===2,getIconName:()=>"move",external:!0,...o};t.addDropTarget(r),this.addDestroyFunc(()=>t.removeDropTarget(r))}getRowDropZone(e){return{getContainer:this.getContainer.bind(this),onDragEnter:o=>{this.onDragEnter(o),e?.onDragEnter?.(this.rowDragEvent("rowDragEnter",o))},onDragLeave:o=>{this.onDragLeave(o),e?.onDragLeave?.(this.rowDragEvent("rowDragLeave",o))},onDragging:o=>{this.onDragging(o),e?.onDragging?.(this.rowDragEvent("rowDragMove",o))},onDragStop:o=>{this.onDragStop(o),e?.onDragStop?.(this.rowDragEvent("rowDragEnd",o))},onDragCancel:o=>{this.onDragCancel(o),e?.onDragCancel?.(this.rowDragEvent("rowDragCancel",o))},fromGrid:!0}}getOverNode(e){const{pageBounds:t,rowModel:o}=this.beans,i=e>t.getCurrentPagePixelRange().pageLastPixel?-1:o.getRowIndexAtPixel(e);return i>=0?o.getRow(i):void 0}rowDragEvent(e,t){const o=this.beans,{dragItem:r,dropTarget:i,event:a,vDirection:n}=t,s=i?.rootNode===o.rowModel.rootNode,l=s?i.y:kc(o,t).y,c=s?i.overNode:this.getOverNode(l),d=s?i.overIndex:c?.rowIndex??-1;return{api:o.gridApi,context:o.gridOptions.context,type:e,event:a,node:r.rowNode,nodes:r.rowNodes,overIndex:d,overNode:c,y:l,vDirection:n,rowsDrop:i}}dispatchGridEvent(e,t){const o=this.rowDragEvent(e,t);this.eventSvc.dispatchEvent(o)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e,!1)}onDragStop(e){const t=this.lastDraggingEvent?.dropTarget??null,o=this.makeRowsDrop(this.lastDraggingEvent,e,!1,!0);this.dispatchGridEvent("rowDragEnd",e),o?.allowed&&o.rowDragManaged&&(!t?.droppedManaged||vm(t,o))&&this.dropRows(o),this.stopDragging(e,!0)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e,!0)}stopDragging(e,t){this.clearAutoScroll(),this.beans.groupEditSvc?.stopDragging(t),this.beans.rowDropHighlightSvc?.fromDrag(null),wm(e.dragItem.rowNodes,!1),this.lastDraggingEvent=null}clearAutoScroll(){this.autoScroll?.ensureCleared(),this.autoScrollChanged=!1,this.autoScrollChanging=!1,this.autoScrollOldV=null}dropRows(e){return e.droppedManaged=!0,e.sameGrid?this.csrmMoveRows(e):this.csrmAddRows(e)}csrmAddRows({position:e,target:t,rows:o}){const r=So(this.beans),i=this.beans.rowModel,a=o.filter(({data:s,rowPinned:l})=>!i.getRowNode(r?.({data:s,level:0,rowPinned:l})??s.id)).map(({data:s})=>s);if(a.length===0)return!1;let n;if(t){const s=t.sourceRowIndex>=0?t:mi(t);s&&(n=s.sourceRowIndex+(e==="above"?0:1))}return i.updateRowData({add:a,addIndex:n}),!0}filterRows(e){const{groupEditSvc:t}=this.beans,{rows:o,sameGrid:r}=e;let i;for(let a=0,n=o.length;a<n;++a){let s=!0;const l=o[a];(!l||l.footer||r&&l.destroyed&&!l.group||!this.csrmGetLeaf(l))&&(s=!1),s&&t&&!t.canDropRow(l,e)&&(s=!1),s?i?.push(l):i??(i=o.slice(0,a))}return i??o}csrmMoveRows(e){const t=this.beans.groupEditSvc;return t?.isGroupingDrop(e)?t.dropGroupEdit(e):this.csrmMoveRowsReorder(e)}csrmMoveRowsReorder({position:e,target:t,rows:o,newParent:r,rootNode:i}){let a=!1;const n=new Set;for(const u of o){r&&u.parent!==r&&(u.treeParent=r,a=!0);const h=this.csrmGetLeaf(u);h&&n.add(h)}if(!a&&n.size===0)return!1;const s=this.beans.focusSvc,l=s.getFocusedCell(),c=l&&Do(this.beans,l);if(n.size&&am(i._leafs,n,t,e==="above")&&(a=!0),!a)return!1;const d=this.beans.rowModel,g=new vi;return g.reordered=!0,d.refreshModel({step:"group",keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:g}),c?c.focusCell({forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0}):s.clearFocusedCell(),!0}csrmGetLeaf(e){if(e.sourceRowIndex>=0)return e.destroyed?void 0:e;const t=this.beans.groupEditSvc;return t?t.csrmFirstLeaf(e):mi(e)}},vm=(e,t)=>e!==t&&(e?.sameGrid!==t.sameGrid||e?.allowed!==t.allowed||e?.position!==t.position||e?.target!==t.target||e?.source!==t.source||e?.newParent!==t.newParent||!je(e?.rows,t.rows)),Kk=(e,t)=>(e.rowIndex??2147483647)-(t.rowIndex??2147483647)||e.sourceRowIndex-t.sourceRowIndex,Yk=(e,t,o)=>{if(!t.get("rowDragMultiRow")||!o||!e.isSelected())return[e];if(t.get("treeData")&&ve(t)){const i=o.getBestCostNodeSelection();if(i?.length)return i}const r=o.getSelectedNodes();return r.length?r:[e]},wm=(e,t)=>{for(let o=0,r=e?.length||0;o<r;++o){const i=e[o];i.dragging!==t&&(i.dragging=t,i.dispatchRowEvent("draggingChanged"))}},Qk=(e,t)=>{let o=null,r=t.target;if(r&&t.rows.indexOf(r)<0)return null;const i=t.source;if(!r||!i)return null;let a=r.rowIndex-i.rowIndex;const n=a<0?-1:1;a=t.suppressMoveWhenRowDragging?Math.abs(a):1;const s=new Set(t.rows);do{const l=ba(e,n,r);if(!l)break;s.has(l)||(o=l,--a),r=l}while(a>0);return o},Zk=(e,t)=>{const o=e?.rowTop,r=e?.rowHeight??0;if(o==null||!r||r<=0)return"none";const i=t-o,a=r*_k;return i<=a?"above":i>=r-a?"below":"inside"},Jk={tag:"div",cls:"ag-drag-handle ag-row-drag",attrs:{"aria-hidden":"true"}},Wa={skipAriaHidden:!0},Xk=class extends X{constructor(e,t,o,r,i,a=!1){super(),this.cellValueFn=e,this.rowNode=t,this.column=o,this.customGui=r,this.dragStartPixels=i,this.alwaysVisible=a,this.dragSource=null,this.disabled=!1}isCustomGui(){return this.customGui!=null}postConstruct(){const{beans:e,customGui:t}=this;t?this.setDragElement(t,this.dragStartPixels):(this.setTemplate(Jk),this.getGui().appendChild(ue("rowDrag",e,null)),this.addDragSource()),this.alwaysVisible||this.initCellDrag()}initCellDrag(){const{beans:e,rowNode:t}=this,o=this.refreshVisibility.bind(this);this.addManagedListeners(e.eventSvc,{rowDragVisibilityChanged:o}),this.addManagedListeners(t,{dataChanged:o,cellChanged:o}),this.refreshVisibility()}setDragElement(e,t){this.setTemplateFromElement(e,void 0,void 0,!0),this.addDragSource(t)}refreshVisibility(){if(this.alwaysVisible)return;const{beans:e,column:t,rowNode:o}=this,{gos:r,dragAndDrop:i,rowDragSvc:a}=e,n=a?.visibility;let l=!(n==="suppress"||n==="hidden"&&!i?.hasExternalDropZones()),c=l;if(l&&!this.isCustomGui()&&t){const d=t.getColDef().rowDrag;if(d===!1)l=!1;else{const g=typeof d=="function";c=t.isRowDrag(o),l=g||c}}l&&c&&o.footer&&r.get("rowDragManaged")&&(c=!1,l=!0),c&&(c=l),l||this.setDisplayed(l,Wa),c||this.setVisible(c,Wa),this.setDisabled(!c||n==="disabled"&&!i?.hasExternalDropZones()),l&&this.setDisplayed(l,Wa),c&&this.setVisible(c,Wa)}setDisabled(e){e!==this.disabled&&(this.disabled=e,this.getGui()?.classList?.toggle("ag-drag-handle-disabled",e))}getSelectedNodes(){return Yk(this.rowNode,this.gos,this.beans.selectionSvc)}getDragItem(){const{column:e,rowNode:t}=this;return{rowNode:t,rowNodes:this.getSelectedNodes(),columns:e?[e]:void 0,defaultTextValue:this.cellValueFn()}}addDragSource(e=4){if(this.dragSource&&this.removeDragSource(),this.gos.get("rowDragManaged")&&this.rowNode.footer)return;const t=this.getGui();if(this.gos.get("enableCellTextSelection")){this.removeMouseDownListener();const r=ji("pointerdown")?{pointerdown:Wt}:{mousedown:Wt};this.mouseDownListener=this.addManagedElementListeners(t,r)[0]}const o=this.getLocaleTextFunc();this.dragSource={type:2,eElement:t,dragItemName:r=>this.getDragItemName(r,o),getDragItem:()=>this.getDragItem(),dragStartPixels:e,dragSourceDomDataKey:this.gos.getDomDataKey()},this.beans.dragAndDrop.addDragSource(this.dragSource,!0)}getDragItemName(e,t){const o=e?.dragItem??this.getDragItem(),r=(e?.dropTarget?.rows.length??o.rowNodes?.length)||1,i=this.column?.getColDef()?.rowDragText??this.gos.get("rowDragText");if(i)return i(o,r);if(r!==1)return`${r} ${t("rowDragRows","rows")}`;const a=this.cellValueFn();return a||`1 ${t("rowDragRow","rows")}`}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)}},$k=class extends x{constructor(){super(...arguments),this.beanName="rowDragSvc",this.rowDragFeature=null,this.visibility="suppress"}setupRowDrag(e,t){const o=t.createManagedBean(new jk(e)),r=this.beans.dragAndDrop;r.addDropTarget(o),t.addDestroyFunc(()=>r.removeDropTarget(o)),this.rowDragFeature=o;const i=()=>this.refreshVisibility();this.addManagedPropertyListeners(["rowDragManaged","suppressRowDrag","refreshAfterGroupEdit"],i),this.addManagedEventListeners({newColumnsLoaded:i,columnRowGroupChanged:i,columnPivotModeChanged:i,sortChanged:i,filterChanged:i}),this.visibility=this.computeVisibility()}createRowDragComp(e,t,o,r,i,a){return new Xk(e,t,o,r,i,a)}createRowDragCompForRow(e,t){if(ft(this.gos))return;const o=this.getLocaleTextFunc();return this.createRowDragComp(()=>`1 ${o("rowDragRow","row")}`,e,void 0,t,void 0,!0)}createRowDragCompForCell(e,t,o,r,i,a){const n=this.gos;return n.get("rowDragManaged")&&(!ve(n)||n.get("pagination"))?void 0:this.createRowDragComp(o,e,t,r,i,a)}cancelRowDrag(){this.rowDragFeature?.lastDraggingEvent&&this.beans.dragSvc?.cancelDrag()}computeVisibility(){const e=this.beans,t=e.gos;if(t.get("suppressRowDrag"))return"suppress";if(!t.get("rowDragManaged"))return"visible";const r=e.colModel.pivotMode;return(r||e.rowGroupColsSvc?.columns?.length)&&!t.get("refreshAfterGroupEdit")?"hidden":r||e.filterManager?.isAnyFilterPresent()||eE(e.colModel.getAllCols())?"disabled":"visible"}refreshVisibility(){const e=this.visibility,t=this.computeVisibility();e!==t&&(this.visibility=t,this.eventSvc?.dispatchEvent({type:"rowDragVisibilityChanged"}))}},eE=e=>{for(let t=0,o=e.length;t<o;++t)if(e[t].getSortDef())return!0;return!1},tE=class extends x{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||e?.rowIndex===null||this.position==="none"?this.clear():this.set(e,this.position),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 o=e!==this.row,r=e.uiLevel,i=t!==this.position,a=r!==this.uiLevel;this.dragging=!1,(o||i||a)&&(o&&this.clear(),this.uiLevel=r,this.position=t,this.row=e,e.dispatchRowEvent("rowHighlightChanged"))}fromDrag(e){const t=e?.dropTarget;if(t){const{highlight:o,target:r,position:i}=t;if(o&&r&&i!=="none"){this.set(r,i),this.dragging=!0;return}}this.dragging&&this.clear()}},Ec={moduleName:"Drag",version:R,beans:[Wk]},bm={moduleName:"DragAndDrop",version:R,dynamicBeans:{dndSourceComp:Ik},icons:{rowDrag:"grip"}},Rc={moduleName:"SharedDragAndDrop",version:R,beans:[F2],dependsOn:[Ec],userComponents:{agDragAndDropImage:Ok},icons:{columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",rowDrag:"grip"}},Cm={moduleName:"RowDrag",version:R,beans:[tE,$k],apiFunctions:{addRowDropZone:Vk,removeRowDropZone:Bk,getRowDropZoneParams:Hk,getRowDropPositionIndicator:Nk,setRowDropPositionIndicator:Gk},dependsOn:[Rc]},ym={moduleName:"HorizontalResize",version:R,beans:[qk],dependsOn:[Ec]},oE=":where(.ag-ltr) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:left .2s,right .2s}.ag-header-group-cell{transition:left .2s,right .2s,width .2s}}:where(.ag-rtl) :where(.ag-column-moving){.ag-cell,.ag-header-cell,.ag-spanned-cell-wrapper{transition:right .2s,left .2s}.ag-header-group-cell{transition:right .2s,left .2s,width .2s}}",rE=":where(.ag-ltr) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-spanned-cell-wrapper{transition:width .2s ease-in-out,left .2s ease-in-out}}:where(.ag-rtl) :where(.ag-animate-autosize){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-spanned-cell-wrapper{transition:width .2s ease-in-out,right .2s ease-in-out}}",iE=class extends x{constructor(){super(...arguments),this.beanName="colAnimation",this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.activeNext=!1,this.suppressAnimation=!1,this.animationThreadCount=0,this.startDepth=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.startDepth++,this.active)return;const{gos:e,gridBodyCtrl:t}=this;!t||this.suppressAnimation||e.get("suppressColumnMoveAnimation")||(this.ensureAnimationCssClassPresent(t),this.active=!0,this.activeNext=!0)}finish(){const e=Math.max(0,this.startDepth-1);this.startDepth=e,!(e>0||!this.active)&&this.flush()}executeNextVMTurn(e){this.activeNext?this.executeNextFuncs.push(e):e()}executeLaterVMTurn(e){this.active?this.executeLaterFuncs.push(e):e()}ensureAnimationCssClassPresent(e){this.animationThreadCount++;const t=this.animationThreadCount;e.setColumnMovingCss(!0),this.executeLaterFuncs.push(()=>{this.animationThreadCount===t&&e.setColumnMovingCss(!1)})}flush(){const{executeNextFuncs:e,executeLaterFuncs:t}=this;if(e.length===0&&t.length===0){this.activeNext=!1,this.active=!1;return}this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{this.activeNext=!1,Sm(e)},0),window.setTimeout(()=>{this.active=!1,Sm(t)},200)})}},Sm=e=>{for(;e.length;){const t=e.pop();t&&t()}};function aE(e,t,o){e.colMoves?.moveColumnByIndex(t,o,"api")}function nE(e,t,o){e.colMoves?.moveColumns(t,o,"api")}var sE=class extends x{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 o of t)o.primary&&(o.isAnyFunctionActive()||(o.isAllowValue()?this.columnsToAggregate.push(o):o.isAllowRowGroup()?this.columnsToGroup.push(o):o.isAllowPivot()&&this.columnsToPivot.push(o)))}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{colModel:t,valueColsSvc:o,rowGroupColsSvc:r,pivotColsSvc:i}=this.beans;t.beginColUpdate();try{this.columnsToAggregate.length>0&&o?.addColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&r?.addColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&i?.addColumns(this.columnsToPivot,"toolPanelDragAndDrop")}finally{t.endColUpdate()}}onDragCancel(){this.clearColumnsList()}};function lE(e,t){!t||t.length<=1||t.some(o=>!o.inColsList)||(e.ensureColsListIndex(),t.sort((o,r)=>o.colsListIndex-r.colsListIndex))}function cE(e){const t=[...e],o=new Set(t);for(const r of e){let i=null,a=r.parent;for(;a?.getDisplayedLeafColumns().length===1;)i=a,a=a.parent;if(i!=null){const s=!!i.getColGroupDef()?.marryChildren?i.getProvidedColumnGroup().getLeafColumns():i.getLeafColumns();for(let l=0,c=s.length;l<c;++l){const d=s[l];o.has(d)||(o.add(d),t.push(d))}}}return t}function dE(e,t,o){let r=null,i=null;for(let a=0;a<e.length;a++){const n=e[a],s=o.getProposedColumnOrder(t,n);if(!o.doesOrderPassRules(s))continue;const l=s.filter(d=>d.displayed);if(i===null)i=l;else if(!je(l,i))break;const c=uE(s);(r===null||c<r.fragCount)&&(r={move:n,fragCount:c})}return r}function xm(e){const{isFromHeader:t,fromLeft:o,xPosition:r,fromEnter:i,fakeEvent:a,pinned:n,gos:s,colModel:l,colMoves:c,visibleCols:d}=e;let{allMovingColumns:g}=e;t&&(g=cE(g));const u=g.slice();lE(l,u);const h=fE({movingCols:u,draggingRight:o,xPosition:r,pinned:n,gos:s,colModel:l,visibleCols:d}),p=gE(u,l);if(h.length===0)return;const f=h[0];if(p!==null&&(t||!i)&&!a&&(!o&&f>=p||o&&f<=p))return;const w=dE(h,u,c);if(!w)return;const v=w.move;if(!(v>l.colsList.length-u.length))return{columns:u,toIndex:v}}function km(e){const{columns:t,toIndex:o}=xm(e)??{},{finished:r,colMoves:i}=e;return!t||o==null?null:(i.moveColumns(t,o,"uiColumnMoved",r),r?null:{columns:t,toIndex:o})}function gE(e,t){const o=e.length;if(o===0)return null;t.ensureColsListIndex();const r=e[0];let i=r.inColsList?r.colsListIndex:-1,a=i;for(let n=1;n<o;++n){const s=e[n],l=s.inColsList?s.colsListIndex:-1;l<i?i=l:l>a&&(a=l)}return a-i===o-1?i:null}function uE(e){function t(r){const i=[];let a=r.getOriginalParent();for(;a!=null;)i.push(a),a=a.getOriginalParent();return i}let o=0;for(let r=0;r<e.length-1;r++){let i=t(e[r]),a=t(e[r+1]);[i,a]=i.length>a.length?[i,a]:[a,i];for(const n of i)a.indexOf(n)===-1&&o++}return o}function hE(e,t){switch(t){case"left":return e.leftCols;case"right":return e.rightCols;default:return e.centerCols}}function pE(e,t){if(!e?.displayed)return!0;const o=e.pinned;return t==="left"||t==="right"?o!==t:o!=null}function fE(e){const{movingCols:t,draggingRight:o,xPosition:r,pinned:i,gos:a,colModel:n,visibleCols:s}=e;if(a.get("suppressMovableColumns")||t.some(b=>b.colDef.suppressMovable))return[];const c=hE(s,i),d=n.colsList,g=new Set(t),u=c.filter(b=>g.has(b)),h=c.filter(b=>!g.has(b)),p=d.filter(b=>!g.has(b));let f=0,m=r;if(o){let b=0;for(const S of u)b+=S.getActualWidth();m-=b}if(m>0){for(let b=0;b<h.length;b++){const S=h[b];if(m-=S.getActualWidth(),m<0)break;f++}o&&f++}let w;if(f>0){const b=h[f-1];w=p.indexOf(b)+1}else w=p.indexOf(h[0]),w===-1&&(w=0);const v=[w],C=(b,S)=>b-S;if(o){let b=w+1;const S=d.length-1;for(;b<=S;)v.push(b),b++;v.sort(C)}else{let b=w;const S=d.length-1;let E=d[b];for(;b<=S&&pE(E,i);)b++,v.push(b),E=d[b];b=w-1;const F=0;for(;b>=F;)v.push(b),b--;v.sort(C).reverse()}return v}function Em(e,t){let o;return e==="left"?o="ag-grid-pinned-left-cells":e==="right"?o="ag-grid-pinned-right-cells":o="ag-grid-scrolling-cells",t.getHeaderRowContainerCtrl()?.eViewport?.querySelector(`.ag-header-row .${o}`)}function Rm(e,t,o){const r=Em(t,o);return r?e-r.getBoundingClientRect().left:e}var mE=(e,t)=>{if(t)switch(e){case"left":return"right";case"right":return"left"}return e};function Fm(e){const{isRtl:t,ctrlsSvc:o,pinned:r}=e;let{x:i}=e;if(t){const a=Em(r??null,o);if(!a)return 0;i=a.getBoundingClientRect().width-i}return i}function Fc(e,t){for(const o of e)o.setMoving(t),o.dispatchColEvent("movingChanged","uiColumnMoved")}var Mm=7,Mc=100,Dm=Mc/2,vE=5,wE=Yo?20:100,bE=class extends x{constructor(e){super(),this.pinned=e,this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.isCenterContainer=!L(e)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}getIconName(){const{pinned:e,lastDraggingEvent:t}=this,{dragItem:o}=t??{},r=o?.columns??[];for(const i of r){const a=i.getPinned();if(i.getColDef().lockPinned){if(a==e)return"move";continue}const n=o?.containerType;if(n===e||!e)return"move";if(e&&(!a||n!==e))return"pinned"}return"notAllowed"}onDragEnter(e){const t=e.dragItem,o=t.columns;if(e.dragSource.type===0)this.setColumnsVisible(o,!0,"uiColumnDragged");else{const i=t.visibleState,a=(o??[]).filter(n=>i[n.getId()]&&!n.isVisible());this.setColumnsVisible(a,!0,"uiColumnDragged")}this.gos.get("suppressMoveWhenColumnDragging")||this.attemptToPinColumns(o,this.pinned),this.onDragging(e,!0,!0)}onDragging(e=this.lastDraggingEvent,t=!1,o=!1,r=!1){const{gos:i,ctrlsSvc:a}=this.beans,n=i.get("suppressMoveWhenColumnDragging");if(r&&!n){this.finishColumnMoving();return}if(this.lastDraggingEvent=e,!e||!r&&Me(e.hDirection))return;const s=Rm(e.event.clientX,this.pinned,a),l=Fm({x:s,pinned:this.pinned,isRtl:i.get("enableRtl"),ctrlsSvc:a});t||this.checkCenterForScrolling(e),n?this.handleColumnDragWhileSuppressingMovement(e,t,o,l,r):this.handleColumnDragWhileAllowingMovement(e,t,o,l,r)}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,o){e?.length&&jr(this.beans,e,t,o,!0)}finishColumnMoving(){this.clearHighlighted();const e=this.lastMovedInfo;e&&this.beans.colMoves.moveColumns(e.columns,e.toIndex,"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,o,r,i){const a=this.getAllMovingColumns(e,!0);if(i){const n=this.isAttemptingToPin(a);n&&this.attemptToPinColumns(a,void 0,!0);const{fromLeft:s,xPosition:l}=this.getNormalisedXPositionInfo(a,n)??{};if(s==null||l==null){this.finishColumnMoving();return}this.moveColumnsAfterHighlight({allMovingColumns:a,xPosition:l,fromEnter:t,fakeEvent:o,fromLeft:s})}else{if(!this.beans.dragAndDrop.isDropZoneWithinThisGrid(e))return;this.highlightHoveredColumn(a,r)}}handleColumnDragWhileAllowingMovement(e,t,o,r,i){const a=this.getAllMovingColumns(e),n=mE(e.hDirection,this.gos.get("enableRtl"))==="right",s=e.dragSource.type===1,l=this.getMoveColumnParams({allMovingColumns:a,isFromHeader:s,xPosition:r,fromLeft:n,fromEnter:t,fakeEvent:o}),c=km({...l,finished:i});c&&(this.lastMovedInfo=c)}getAllMovingColumns(e,t=!1){const o=e.dragSource.getDragItem();let r;t?(r=o.columnsInSplit,r||(r=o.columns)):r=o.columns;const i=a=>a.colDef.lockPinned?a.getPinned()==this.pinned:!0;return r?r.filter(i):[]}getMoveColumnParams(e){const{allMovingColumns:t,isFromHeader:o,xPosition:r,fromLeft:i,fromEnter:a,fakeEvent:n}=e,{gos:s,colModel:l,colMoves:c,visibleCols:d}=this.beans;return{allMovingColumns:t,isFromHeader:o,fromLeft:i,xPosition:r,pinned:this.pinned,fromEnter:a,fakeEvent:n,gos:s,colModel:l,colMoves:c,visibleCols:d}}highlightHoveredColumn(e,t){const{colModel:o}=this.beans,r=o.getCols().filter(l=>l.isVisible()&&l.getPinned()===this.pinned);let i=null,a=null,n=null;for(const l of r){if(a=l.getActualWidth(),i=this.getNormalisedColumnLeft(l,0),i!=null){const c=i+a;if(i<=t&&c>=t){n=l;break}}i=null,a=null}if(n)e.indexOf(n)!==-1&&(n=null);else{for(let l=r.length-1;l>=0;l--){const c=r[l],d=r[l].parent;if(!d){n=c;break}const g=d?.getDisplayedLeafColumns();if(g.length){n=pe(g);break}}if(!n)return;i=this.getNormalisedColumnLeft(n,0),a=n.getActualWidth()}if(n==null||i==null||a==null){this.lastHighlightedColumn?.column!==n&&this.clearHighlighted();return}let s;if(t-i<a/2){const l=r.indexOf(n);l===0?s=0:(s=1,n=r[l-1])}else s=1;(this.lastHighlightedColumn?.column!==n||this.lastHighlightedColumn?.position!==s)&&this.clearHighlighted(),Pm(n,s),this.lastHighlightedColumn={column:n,position:s}}getNormalisedXPositionInfo(e,t){const{gos:o,visibleCols:r}=this.beans,i=o.get("enableRtl"),{firstMovingCol:a,column:n,position:s}=this.getColumnMoveAndTargetInfo(e,t,i);if(!a||!n||s==null)return;const l=r.allCols,c=a.allColsIndex,d=n.allColsIndex,g=s===0,u=c<d||c===d&&!g;let h=0;if(g?u&&(h-=1):u||(h+=1),d+h===c)return;const p=l[d+h];if(!p)return;const f=this.getNormalisedColumnLeft(p,20);return{fromLeft:u,xPosition:f}}getColumnMoveAndTargetInfo(e,t,o){const r=this.lastHighlightedColumn??{},{firstMovingCol:i,lastMovingCol:a}=CE(e);if(!i||!a||r.column||!t)return{firstMovingCol:i,...r};const s=this.getPinDirection()==="left";return{firstMovingCol:i,position:s?1:0,column:s!==o?i:a}}getNormalisedColumnLeft(e,t){const o=e.getLeft();return o==null?null:o+t}isAttemptingToPin(e){const t=this.needToMoveLeft||this.needToMoveRight,o=this.failedMoveAttempts>Mm;return t&&o||e.some(r=>r.getPinned()!==this.pinned)}moveColumnsAfterHighlight(e){const{allMovingColumns:t,xPosition:o,fromEnter:r,fakeEvent:i,fromLeft:a}=e,n=this.getMoveColumnParams({allMovingColumns:t,isFromHeader:!0,xPosition:o,fromLeft:a,fromEnter:r,fakeEvent:i}),{columns:s,toIndex:l}=xm(n)??{};s&&l!=null&&(this.lastMovedInfo={columns:s,toIndex:l}),this.finishColumnMoving()}clearHighlighted(){const{lastHighlightedColumn:e}=this;e&&(Pm(e.column,null),this.lastHighlightedColumn=null)}checkCenterForScrolling(e){if(!this.isCenterContainer)return;const{visibleCols:t}=this.beans,o=this.gridBodyCon.eGridViewport.getBoundingClientRect(),r=e.event.clientX-o.left,i=t.getLeftStickyColumnContainerWidth(),a=t.getRightStickyColumnContainerWidth(),n=r<i+Dm,s=r>o.width-a-Dm;this.needToMoveLeft=n,this.needToMoveRight=s,this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}ensureIntervalStarted(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),wE),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+this.intervalCount*vE,e>Mc&&(e=Mc);let t=null;const o=this.gridBodyCon.scrollFeature,r=this.gos.get("enableRtl")?-1:1;if(this.needToMoveLeft?t=o.scrollHorizontally(-e*r):this.needToMoveRight&&(t=o.scrollHorizontally(e*r)),t!==0)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;const{dragAndDrop:i,gos:a}=this.beans;if(this.failedMoveAttempts<=Mm+1)return;const n=this.lastDraggingEvent?.dragItem.columns,s=(n??[]).some(l=>!l.colDef.lockPinned);i.setDragImageCompIcon(s?"pinned":this.getIconName()),s&&!a.get("suppressMoveWhenColumnDragging")&&this.attemptToPinColumns(n,void 0,!0)}}getPinDirection(){if(this.needToMoveLeft||this.pinned==="left")return"left";if(this.needToMoveRight||this.pinned==="right")return"right"}attemptToPinColumns(e,t,o=!1){const r=(e??[]).filter(n=>!n.colDef.lockPinned);if(!r.length)return 0;o&&(t=this.getPinDirection());const{pinnedCols:i,dragAndDrop:a}=this.beans;return i?.setColsPinned(r,t,"uiColumnDragged"),o&&a.nudge(),r.length}destroy(){super.destroy(),this.lastDraggingEvent=null,this.clearHighlighted(),this.lastMovedInfo=null}};function Pm(e,t){e.getHighlighted()!==t&&(e.setHighlighted(t),e.dispatchColEvent("headerHighlightChanged","uiColumnMoved"))}function CE(e){const t=e.length;let o,r;for(let i=0;i<t;i++){if(!o){const a=e[i];a.getLeft()!=null&&(o=a)}if(!r){const a=e[t-1-i];a.getLeft()!=null&&(r=a)}if(o&&r)break}return{firstMovingCol:o,lastMovingCol:r}}var yE=class extends x{constructor(e){super(),this.eContainer=e,this.currentDropListener=null,this.lastDetectedSection=null}postConstruct(){const{ctrlsSvc:e,dragAndDrop:t}=this.beans;e.whenReady(this,i=>{const a=i.gridBodyCtrl.eGridViewport,n=i.pinnedTop.eViewport,s=i.pinnedBottom.eViewport;this.eGridViewport=a;const l=[];a&&l.push([a]),n&&n!==a&&l.push([n]),s&&s!==a&&s!==n&&l.push([s]),this.eSecondaryContainers=l});const o=i=>this.createManagedBean(new bE(i));this.moveColumnFeatures={left:o("left"),center:o(null),right:o("right")};const r=i=>this.createManagedBean(new sE(i));this.bodyDropPivotTargets={left:r("left"),center:r(null),right:r("right")},t.addDropTarget(this),this.addDestroyFunc(()=>t.removeDropTarget(this))}isInterestedIn(e){return e===1||e===0&&this.gos.get("allowDragFromColumnsToolPanel")}getSecondaryContainers(){return this.eSecondaryContainers}getContainer(){return this.eContainer}getIconName(){return this.currentDropListener?.getIconName()??null}isDropColumnInPivotMode(e){return this.beans.colModel.pivotMode&&e.dragSource.type===0}onDragEnter(e){const t=this.getDropListener(e);this.lastDetectedSection=null,this.currentDropListener=t,t.onDragEnter(e)}onDragLeave(e){const t=this.currentDropListener;t&&(t.onDragLeave(e),this.currentDropListener=null),this.lastDetectedSection=null}onDragging(e){let t=this.currentDropListener;if(!t)return;const o=this.getDropListener(e);t!==o&&(t.onDragLeave(e),t=o,this.currentDropListener=o,t.onDragEnter(e),e.changed=!0),t.onDragging(e)}onDragStop(e){const t=this.currentDropListener;t&&(t.onDragStop(e),this.currentDropListener=null)}onDragCancel(){const e=this.currentDropListener;e&&(e.onDragCancel(),this.currentDropListener=null)}getSection(e){const t=this.getPinnedSection(e);switch(t){case"left":case"right":return t;default:return"center"}}getDropListener(e){const t=this.getSection(e);return this.isDropColumnInPivotMode(e)?this.bodyDropPivotTargets[t]:this.moveColumnFeatures[t]}getPinnedSection(e){const t=this.eGridViewport.getBoundingClientRect(),o=e.event.clientX-t.left,{visibleCols:r}=this.beans,i=r.getLeftStickyColumnContainerWidth(),a=r.getRightStickyColumnContainerWidth();let n=null;o<i?n="left":o>t.width-a&&(n="right");const s=this.lastDetectedSection;return e.fromNudge&&n!==s&&s!==null?s:(this.lastDetectedSection=n,n)}},SE=class extends x{constructor(){super(...arguments),this.beanName="colMoves"}moveColumnByIndex(e,t,o){const r=this.beans.colModel.colsList[e];this.moveColumns([r],t,o)}moveColumns(e,t,o,r=!0){const{colModel:i,visibleCols:a}=this.beans,n=this.beans.colAnimation,s=i.colsList;if(t>s.length-e.length){this.warn(30,{toIndex:t});return}this.gos.get("suppressColumnMoveAnimation")&&Gs(this.beans),n?.start();try{const l=[];for(let c=0,d=e.length;c<d;++c){const g=i.getCol(e[c]);g&&l.push(g)}this.doesMovePassRules(l,t)&&(Nn(i.colsList,l,t),i.markColsListIndexDirty(),a.refresh(o,!1),this.eventSvc.dispatchEvent({type:"columnMoved",columns:l,column:l.length===1?l[0]:null,toIndex:t,finished:r,source:o}))}finally{n?.finish()}}doesMovePassRules(e,t){const o=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(o)}doesOrderPassRules(e){const{colModel:t,gos:o}=this.beans;return!(t.hasMarryChildren&&!fh(e,t.colsTree)||!(i=>{const a=c=>c?c==="left"||c===!0?-1:1:0,n=o.get("enableRtl");let s=n?1:-1,l=!0;for(const c of i){const d=a(c.colDef.lockPosition);n?d>s&&(l=!1):d<s&&(l=!1),s=d}return l})(e))}getProposedColumnOrder(e,t){const o=this.beans.colModel.colsList.slice();return Nn(o,e,t),o}isMovingSuppressed(e){return!e.length||this.gos.get("suppressMovableColumns")||e.some(t=>t.colDef.suppressMovable||t.colDef.lockPosition)}getColumnMoveTarget(e,t,o,r=this.beans.colModel.colsList){if(this.isMovingSuppressed(e)||t.some(c=>e.includes(c)))return null;const i=r.filter(c=>e.includes(c)),a=r.filter(c=>t.includes(c));if(i.length!==e.length||!a.length)return null;const n=r.indexOf(o?a[0]:a.at(-1))+(o?0:1),s=n-r.slice(0,n).filter(c=>i.includes(c)).length,l=r.slice();return Nn(l,i,s),l.every((c,d)=>c===r[d])||!this.doesOrderPassRules(l)?null:{columns:i,toIndex:s}}createBodyDropTarget(e){return new yE(e)}moveHeader(e,t,o,r,i){const{ctrlsSvc:a,gos:n,colModel:s,visibleCols:l,focusSvc:c}=this.beans,d=t.getBoundingClientRect(),g=d.left,u=tt(o),h=u?d.width:o.getActualWidth(),p=n.get("enableRtl"),f=e==="left"!==p,m=f?g-20:g+h+20,w=Rm(m,r,a),v=Fm({x:w,pinned:r,isRtl:p,ctrlsSvc:a}),C=c.focusedHeader;km({allMovingColumns:u?o.getLeafColumns():[o],isFromHeader:!0,fromLeft:e==="right",xPosition:v,pinned:r,fromEnter:!1,fakeEvent:!1,gos:n,colModel:s,colMoves:this,visibleCols:l,finished:!0});let b;if(u){const S=o.getDisplayedLeafColumns();b=f?S[0]:pe(S)}else b=o;if(a.getScrollFeature().ensureColumnVisible(b,"auto"),(!i.isAlive()||n.get("ensureDomOrder"))&&C){let S;if(u){const E=o.getGroupId(),F=o.getLeafColumns();if(!F.length)return;const P=F[0].parent;if(!P)return;S=xE(P,E)}else S=o;S&&c.focusHeaderPosition({headerPosition:{...C,column:S}})}}setDragSourceForHeader(e,t,o){const r=this.beans,{gos:i,dragAndDrop:a,visibleCols:n}=r;let s=!i.get("suppressDragLeaveHidesColumns");const l=tt(t),c=l?t.getProvidedColumnGroup().getLeafColumns():[t],g={type:1,eElement:e,getDefaultIconName:()=>s?"hide":"notAllowed",getDragItem:l?()=>EE(t,n.allCols):()=>kE(t),dragItemName:o,onDragStarted:()=>{s=!i.get("suppressDragLeaveHidesColumns"),Fc(c,!0)},onDragStopped:()=>Fc(c,!1),onDragCancelled:()=>Fc(c,!1),onGridEnter:u=>{if(s){const{columns:h=[],visibleState:p}=u??{},f=l?h.filter(m=>!p||p[m.colId]):h;jr(r,f,!0,"uiColumnMoved",!0)}},onGridExit:u=>{s&&jr(r,u?.columns??[],!1,"uiColumnMoved",!0)}};return a.addDragSource(g,!0),g}};function xE(e,t){for(;e;){if(e.groupId===t)return e;e=e.parent}}function kE(e){const t=Object.create(null);return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t,containerType:e.pinned}}function EE(e,t){const o=e.getProvidedColumnGroup().getLeafColumns(),r=Object.create(null);for(const s of o)r[s.getId()]=s.isVisible();const i=[];for(const s of t)o.indexOf(s)>=0&&(i.push(s),No(o,s));for(const s of o)i.push(s);const a=[],n=e.getLeafColumns();for(const s of i)n.indexOf(s)!==-1&&a.push(s);return{columns:i,columnsInSplit:a,visibleState:r,containerType:a[0]?.pinned}}var Tm={moduleName:"ColumnMove",version:R,beans:[SE,iE],apiFunctions:{moveColumnByIndex:aE,moveColumns:nE},dependsOn:[Rc],css:[oE,rE]},RE=class extends x{constructor(){super(...arguments),this.beanName="autoWidthCalc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.scrollingRowContainerCtrl=e.scrolling})}getPreferredWidthForColumn(e,t){const o=this.getHeaderCellForColumn(e);if(!o)return-1;const r=this.beans.rowRenderer.getAllCellsNotSpanningForColumn(e);return t||r.push(o),this.getPreferredWidthForElements(r)}getPreferredWidthForColumnGroup(e){const t=this.getHeaderCellForColumn(e);return t?this.getPreferredWidthForElements([t]):-1}getPreferredWidthForElements(e,t){const o=G({tag:"form"});o.style.position="fixed";const r=this.scrollingRowContainerCtrl.eViewport;for(const a of e)this.cloneItemIntoDummy(a,o);r.appendChild(o);const i=o.offsetWidth;return o.remove(),t=t??this.gos.get("autoSizePadding"),i+t}getHeaderCellForColumn(e){return this.beans.ctrlsSvc.getHeaderRowContainerCtrl()?.getHtmlElementForColumnHeader(e)??null}cloneItemIntoDummy(e,t){const o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="",o.style.right="";const r=G({tag:"div"}),i=r.classList;["ag-header-cell","ag-header-group-cell"].some(s=>o.classList.contains(s))?(i.add("ag-header","ag-header-row"),r.style.position="static"):i.add("ag-row");let n=e.parentElement;for(;n;){if(["ag-header-row","ag-row"].some(l=>n.classList.contains(l))){for(let l=0;l<n.classList.length;l++){const c=n.classList[l];c!="ag-row-position-absolute"&&i.add(c)}break}n=n.parentElement}r.appendChild(o),t.appendChild(r)}},Am={moduleName:"AutoWidth",version:R,beans:[RE]};function FE(e,t,o=!0,r="api"){e.colResize?.setColumnWidths(t,o,r)}var ME=class extends x{constructor(e,t,o){super(),this.comp=e,this.eResize=t,this.columnGroup=o,this.dragPlan=null,this.dragTakeFromAdjacent=!1,this.dragGroupWidth=0,this.dragSign=1}postConstruct(){if(!this.columnGroup.isResizable()){this.comp.setResizableDisplayed(!1);return}const{horizontalResizeSvc:e,gos:t,colAutosize:o}=this.beans,r=e.addResizeBar({eResizeBar:this.eResize,isColumn:!0,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(r),!t.get("suppressAutoSize")&&o&&this.addDestroyFunc(o.addColumnGroupResize(this.eResize,this.columnGroup,()=>this.resizeLeafColumnsToFit("uiColumnResized")))}onResizeStart(e){const{columnGroup:t,beans:o}=this,r=o.colResize,i=r.takesFromAdjacent(e);this.dragPlan=r.planGroupResize(t,i),this.dragTakeFromAdjacent=i,this.dragGroupWidth=t.getActualWidth(),this.dragSign=dl(this.gos.get("enableRtl"),t.pinnedLane),Gs(o),this.toggleColumnResizing(!0)}onResizing(e,t){const o=this.dragPlan;if(!o)return;const{columnGroup:r,beans:i}=this,a=t*this.dragSign,n=i.pinnedCols?.limitResize(r,this.dragTakeFromAdjacent,a,this.dragGroupWidth)??a;i.colResize.resizeGroup(o,o.group.startWidth+n,e,"uiColumnResized"),e&&(this.dragPlan=null,this.toggleColumnResizing(!1))}resizeByKey(e,t){const o=this.beans.colResize,r=o.planGroupResize(this.columnGroup,t);o.resizeGroup(r,r.group.startWidth+e,!0,"uiColumnResized")}resizeLeafColumnsToFit(e){const{autoWidthCalc:t,colResize:o,pinnedCols:r}=this.beans,i=this.columnGroup,a=t.getPreferredWidthForColumnGroup(i)-i.getActualWidth(),n=r?.limitsAutoSize(e)?r.limitResize(i,!1,a):a;if(n<=0)return;const s=o.planGroupResize(i,!1);o.resizeGroup(s,s.group.startWidth+n,!0,e,!0)}toggleColumnResizing(e){this.comp.toggleCss("ag-column-resizing",e)}destroy(){super.destroy(),this.dragPlan=null}},DE=class extends x{constructor(e,t,o,r){super(),this.column=e,this.eResize=t,this.comp=o,this.ctrl=r,this.resizeStartWidth=0,this.takeFromAdjacent=!1,this.dragSign=1}postConstruct(){const e=[];let t,o;const r=()=>{if(Q(this.eResize,t),!t)return;const{horizontalResizeSvc:n,colAutosize:s}=this.beans,l=n.addResizeBar({eResizeBar:this.eResize,isColumn:!0,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});e.push(l),o&&s&&e.push(s.addColumnAutosizeListeners(this.eResize,this.column))},i=()=>{for(const n of e)n();e.length=0},a=()=>{const n=this.column.isResizable(),s=!this.gos.get("suppressAutoSize")&&!this.column.colDef.suppressAutoSize;(n!==t||s!==o)&&(t=n,o=s,i(),r())};a(),this.addDestroyFunc(i),this.ctrl.setRefreshFunction("resize",a)}onResizing(e,t){const{column:o,resizeStartWidth:r,takeFromAdjacent:i,beans:a}=this,n=t*this.dragSign,s=a.pinnedCols?.limitResize(o,i,n,r)??n;a.colResize?.resizeColumn(o,r+s,i,e),e&&this.toggleColumnResizing(!1)}onResizeStart(e){const{column:t,beans:o}=this;this.resizeStartWidth=t.actualWidth,this.takeFromAdjacent=o.colResize.takesFromAdjacent(e),this.dragSign=dl(this.gos.get("enableRtl"),t.pinnedLane),Gs(o),this.toggleColumnResizing(!0)}toggleColumnResizing(e){this.column.setResizing(e),this.comp.toggleCss("ag-column-resizing",e)}},PE=class extends x{constructor(){super(...arguments),this.beanName="colResize"}setColumnWidths(e,t,o){const{colModel:r,visibleCols:i}=this.beans,a=[],n=[],s=this.takesFromAdjacent(!1)?new Map:null;for(const l of e){const c=r.getCol(l.key);c&&(s?s.set(c,l.newWidth):(a.push(c),n.push(l.newWidth)))}s?.forEach((l,c)=>{const d=i.getColBefore(c);if(d&&s.has(d))return;let g=0,u=c,h=l;for(;u&&h!==void 0;)a.push(u),n.push(h),g+=h-u.actualWidth,u=zh(i,u),h=u?s.get(u):void 0;u?.isResizable()&&(a.push(u),n.push(u.actualWidth-g))});for(let l=0,c=a.length;l<c;++l){const d=a[l],g=n[l],u=d.maxWidth;if(!(g>=Math.min(d.minWidth,u)&&g<=u)){if(!t)return;Zt(this.eventSvc,a,t,o,[]);return}}this.applyColumnWidths(a,n,t,o,a,!1)}setClampedColumnWidths(e,t,o,r,i){for(let a=0,n=e.length;a<n;++a){const s=e[a];t[a]=Math.min(Math.max(t[a],s.minWidth),s.maxWidth)}this.applyColumnWidths(e,t,o,r,i,!1)}takesFromAdjacent(e){return e!==(this.gos.get("colResizeDefault")==="shift")}resizeColumn(e,t,o,r){const{colModel:i,visibleCols:a}=this.beans,n=i.getCol(e);if(!n)return;const s=o?Lh(a,n):null,l=s?n.actualWidth+s.actualWidth:0,c=Vm(t,n,s,l);if(Number.isNaN(c)){if(!r)return;Zt(this.eventSvc,[n],r,"uiColumnResized",[]);return}if(!r&&c===n.actualWidth)return;const d=s?[n,s]:[n],g=s?[c,l-c]:[c];this.applyColumnWidths(d,g,r,"uiColumnResized",d,!1)}planGroupResize(e,t){const o=[];Tc(e,o);const r=o.length;Tc(t?Wh(this.beans.visibleCols,e):null,o);const i=o.length,a=[],n=Om(o,0,r,a),s=i>r?Om(o,r,i,a):null,l=[],c=[];for(let d=0;d<i;++d)l.push(0),c.push(Dc);return{columns:o,ratios:a,group:n,next:s,widths:l,states:c,fitted:Number.NaN}}resizeGroup(e,t,o,r,i=!1){const{group:a,next:n}=e,s=n?a.startWidth+n.startWidth:0,l=Vm(t,a,n,s);if(Number.isNaN(l)){if(!o)return;Zt(this.eventSvc,e.columns.slice(0,a.to),o,r,[]);return}l!==e.fitted&&(e.fitted=l,Lm(e,a,l),Lm(e,n,s-l));const c=e.columns;this.applyColumnWidths(c,e.widths,o,r,i?void 0:c,!0)}applyColumnWidths(e,t,o,r,i,a){let n=!1,s=!1;for(let c=0,d=e.length;c<d;++c){const g=e[c],u=t[c];g.actualWidth!==u&&(g.setActualWidth(u,r),n=!0,s||(s=g.pinnedLane!==1))}let l;if(n){const{colFlex:c,visibleCols:d,colViewport:g,ctrlsSvc:u}=this.beans;l=c?.refreshFlexedColumns({resizingCols:i,skipSetLeft:!0,viewportWidth:s&&u.get("gridBodyCtrl")?.getReportedCenterWidth()||void 0}),d.updateBodyWidths(r,d.setLeftValues()),g.checkViewportColumns()}if(n||o){let c=e;l?.length?c=i?e.concat(l):TE(e,l):a&&(c=e.slice());const d=i?l??[]:null;Zt(this.eventSvc,c,o,r,d)}}createResizeFeature(e,t,o,r){return new DE(e,t,o,r)}createGroupResizeFeature(e,t,o){return new ME(e,t,o)}},Dc=0,Im=1,zm=2,Pc=3;function Lm(e,t,o){if(!t)return;const{columns:r,ratios:i,widths:a,states:n}=e,{from:s,to:l}=t;n.fill(Dc,s,l);let c=o,d=t.ratioTotal,g=l-s,u=l-1;for(let h=s;h<=l;++h){const p=c,f=1/d,m=d>0,w=p/g;let v=0;for(let b=s;b<=u;++b){if(n[b]===Pc)continue;let S;b===u?S=c:(S=Math.round(m?i[b]*p*f:w),c-=S);const E=r[b],F=E.maxWidth,P=Math.min(E.minWidth,F);let z=Dc;S<P?(v+=P-S,S=P,z=Im):S>F&&(v-=S-F,S=F,z=zm),n[b]=z,a[b]=S}if(v===0)return;const C=v>0?Im:zm;c=o,d=0,g=0,u=-1;for(let b=s;b<l;++b){const S=n[b];S===Pc||S===C?(n[b]=Pc,c-=a[b]):(d+=i[b],++g,u=b)}}}function TE(e,t){const o=[];for(let r=0,i=e.length;r<i;++r){const a=e[r],n=a.flex;(n==null||n<=0||a.pinnedLane!==1)&&o.push(a)}for(let r=0,i=t.length;r<i;++r)o.push(t[r]);return o}function Tc(e,t){const o=e?.displayedChildren;if(o)for(let r=0,i=o.length;r<i;++r){const a=o[r];a.isColumn?a.isResizable()&&t.push(a):Tc(a,t)}}function Om(e,t,o,r){let i=0,a=0,n=0;for(let l=t;l<o;++l){const c=e[l],d=c.maxWidth;i+=c.actualWidth,a+=Math.min(c.minWidth,d),n+=d}let s=0;for(let l=t;l<o;++l){const c=i>0?e[l].actualWidth/i:0;r.push(c),s+=c}return{from:t,to:o,startWidth:i,minWidth:a,maxWidth:n,ratioTotal:s}}function Vm(e,t,o,r){let i=t.maxWidth,a=Math.min(t.minWidth,i);if(o){const s=o.maxWidth;a=Math.max(a,r-s),i=Math.min(i,r-Math.min(o.minWidth,s))}const n=bo(e,a,i);return n<=i?n:Number.NaN}var AE={moduleName:"ColumnResize",version:R,beans:[PE],apiFunctions:{setColumnWidths:FE},dependsOn:[ym,Am]};function IE(e,t,o){Ur(e,t,o,"api")}function zE(e,t,o){const r=t!=null?e.colModel.colsGroupsById.get(t)?.displayInstances:void 0;return(r&&(typeof o=="number"?r[o]:r[0]))??null}function LE(e,t){return e.colModel.getColGroup(t)??null}function OE(e,t,o){return e.colNames.getDisplayNameForColumnGroup(t,o)||""}function VE(e){return Ws(e)}function BE(e,t){_r(e,t,"api")}function HE(e){PS(e,"api")}function NE(e){return e.visibleCols.treeLeft}function GE(e){return e.visibleCols.treeCenter}function WE(e){return e.visibleCols.treeRight}function qE(e){const{treeLeft:t,treeCenter:o,treeRight:r}=e.visibleCols;return t.concat(o,r)}var Bm=class{constructor(e){this.entries=new Map,this.context=e.context}wrap(e,t,o){const r=this.entries,i=r.get(e);if(i?.depth===t)return i.buildToken=o,e.originalParent=i.parent,i.wrapper;if(i!==void 0&&Ac(i.wrapper),t===0)return i!==void 0&&r.delete(e),e.originalParent=null,e;const a=e.colId,n=this.context;let s=e;for(let l=t-1;l>=0;--l){const c=new qr(null,"FAKE_PATH_"+a+"_"+l,!0,l);n.createBean(c),c.children=[s],s.originalParent=c,s=c}return s.originalParent=null,r.set(e,{wrapper:s,parent:e.originalParent,depth:t,buildToken:o}),s}evict(e){const t=this.entries;t.size!==0&&t.forEach((o,r)=>{o.buildToken!==e&&(Ac(o.wrapper),t.delete(r))})}destroy(){const e=this.entries;e.forEach(UE),e.clear()}},UE=e=>Ac(e.wrapper),Ac=e=>{let t=e;for(;t&&!t.isColumn;){const o=t.children[0];t.isAlive()&&t.destroy(),t=o??null}},_E=class extends x{constructor(){super(...arguments),this.beanName="colGroupSvc",this.groupVersion=0}wireBeans(e){this.colModel=e.colModel,this.wrapperCache=new Bm(e)}destroy(){this.wrapperCache.destroy(),super.destroy()}createGroups(e,t,o,r=1,i=!1){const a=!i;if(e.length===0||e[0].originalParent===null){if(a)for(let l=0,c=e.length;l<c;++l){const d=e[l];d.parent&&(d.parent=null,++this.groupVersion)}return e}const n=[];let s=e;for(;s.length;){const l=s.length,c=[];let d=0,g=Hm(s[0]);for(let u=1;u<=l;++u){const h=u===l?void 0:Hm(s[u]);if(!(u<l&&h===g)){if(g==null)for(let p=d;p<u;++p){const f=s[p];n.push(f),a&&f.parent!==null&&(f.parent=null,++this.groupVersion)}else{let p;const f=g.groupId,m=t.getInstanceIdForKey(f),w=a?g.displayInstances?.[m]:void 0;if(w&&w.buildToken!==r)w.buildToken=r,w.pinned=o,w.pinnedLane=cl(o),w.children=null,w.displayedChildren=[],p=w;else if(p=new ir(g,f,m,o),p.buildToken=r,a){this.createBean(p);let C=g.displayInstances;C===null&&(C=[],g.displayInstances=C),C[m]=p}let v=p.children;v===null&&(v=[],p.children=v);for(let C=d;C<u;++C){const b=s[C];v.push(b),a&&b.parent!==p&&(b.parent=p,++this.groupVersion)}c.push(p)}d=u,u<l&&(g=h)}}s=c}return n}prune(e){const t=this.colModel.colsAllGroups;for(let o=0,r=t.length;o<r;++o){const i=t[o].displayInstances;if(!i)continue;let a=0;for(let n=0,s=i.length;n<s;++n){const l=i[n];l.buildToken===e&&(i[a++]=l)}i.length=a}}},Hm=e=>(e.isColumn?e:e.providedColumnGroup).originalParent,Nm={moduleName:"ColumnGroup",version:R,dynamicBeans:{headerGroupCellCtrl:g3},beans:[_E],apiFunctions:{getAllDisplayedColumnGroups:qE,getCenterDisplayedColumnGroups:GE,getColumnGroup:zE,getColumnGroupState:VE,getDisplayNameForColumnGroup:OE,getLeftDisplayedColumnGroups:NE,getProvidedColumnGroup:LE,getRightDisplayedColumnGroups:WE,resetColumnGroupState:HE,setColumnGroupOpened:IE,setColumnGroupState:BE}};function Gm(e,t,o,r,i,a,n,s,l,c){const{context:d,gos:g,userColumnSvc:u}=e,h=g.get("defaultColGroupDef"),p=h??null,f=new Set,m=new Set,w=D=>f.has(D)||D in a;let v=0,C=0;if(t){const D=(T,O)=>{O>v&&(v=O);for(let B=0,ne=T.length;B<ne;++B){const Y=T[B],te=Y.children;if(te)Y.groupId==null&&++C,D(te,O+1);else{const j=Y.colId??Y.field;j==null?++C:m.add(j)}}};if(D(t,0),v>0){const T=O=>{for(let B=0,ne=O.length;B<ne;++B){const Y=O[B],te=Y.children;if(te){T(te);continue}const j=Y,ge=i.get(j.colId??j.field??Y);let be=ge?Wm(ge,v):null;for(;be?.padding;)f.add(be.groupId),be=be.originalParent}};T(t)}}let b=0;const S=D=>{let T;if(D==null){do T=`${b++}`;while(w(T)||m.has(T));return f.add(T),T}if(!w(D))return f.add(D),D;let O=1;do T=`${D}_${O++}`;while(w(T));return e.log.warn(273,{providedId:D,usedId:T}),f.add(T),T},E=[],F=[];let P=!1;const z=new Map,V=D=>D.colKind==="user"&&D.primary===o&&D.buildToken!==l,H=D=>{for(;;){const T=`${b++}`;if(f.has(T)||m.has(T))continue;const O=a[T];if(O!==void 0){const B=O.userProvidedColDef;if(V(O)&&B&&B.colId==null&&B.field==null)return f.add(T),O.buildToken=l,O.reapplyColDef(D,n,s),O;continue}return f.add(T),Vs(e,D,T,o,l)}},Se=(D,T,O)=>{const B=T??O,ne=i.get(B);if(ne?.colId===B&&V(ne))return ne.buildToken=l,ne.reapplyColDef(D,n,s),ne;let Y=0;for(;;){const te=Y===0?B:`${B}_${Y}`;if(Y++,f.has(te))continue;const j=a[te];if(j!==void 0){const ge=j.userProvidedColDef;if((ge?ge.colId??ge.field:null)!==B||!V(j))continue}return f.add(te),T!=null&&te!==T&&e.log.warn(273,{providedId:T,usedId:te}),j!==void 0?(j.buildToken=l,j.reapplyColDef(D,n,s),j):Vs(e,D,te,o,l)}},J=D=>{const T=u?.overrideFor(D);if(T===null)return;T!==void 0&&(D=T);const O=D.colId;let B;if(O!=null){const Y=i.get(O);B=Y?.colId===O&&V(Y)?Y:void 0}else{const Y=i.get(D);B=Y!==void 0&&V(Y)?Y:void 0}if(B!==void 0)B.buildToken=l,B.reapplyColDef(D,n,s);else{const Y=D.field;B=O==null&&Y==null?H(D):Se(D,O,Y)}const ne=B.userProvidedColDef;if(ne){z.set(B.colId,B),z.has(ne)||z.set(ne,B);const Y=ne.field;Y&&!z.has(Y)&&z.set(Y,B)}return B},xe=new Map;if(v===0){const D=[],T=t?.length??0;for(let O=0;O<T;++O){const B=J(t[O]);B!==void 0&&(B.originalParent=null,D.push(B))}return{columnTree:D,treeDepth:0,columns:D,allGroups:F,marryChildren:!1,groupsById:xe,colsByKey:z,source:n,newColDefs:s,buildToken:l,wrapperCache:c}}const ee=(D,T,O)=>{let B=Wm(D,v);if(B===null||B.buildToken===l)return null;for(;B.level>T;)B.buildToken=l,F.push(B),B=B.originalParent;return B.buildToken=l,F.push(B),B.originalParent=O,B};p&&g.validateColDef(p,"");const U=(D,T,O)=>{let B,ne;for(let te=D;te<v;++te){let j;do j=`${C++}`;while(w(j)||m.has(j));f.add(j);const ge=new qr(p,j,!0,te);ge.buildToken=l,d.createBean(ge),F.push(ge),ne?(ne.children=[ge],ne.setExpandable(),ge.originalParent=ne):(ge.originalParent=T,B=ge),ne=ge}const Y=ne;Y.children=O,Y.setExpandable();for(let te=0,j=O.length;te<j;++te)O[te].originalParent=Y;return B},_=(D,T)=>{if(D==null)return null;const O=r.get(D);return!O||O.buildToken===l||O.padding?null:f.has(O.groupId)||!wo(T,O.colGroupDef,"children")?{reused:null,existing:O}:(O.buildToken=l,O.colGroupDef=T,f.add(O.groupId),{reused:O,existing:O})},de=(D,T,O)=>{const B=D.length;if(B===0)return[];const ne=T<v;if(ne){let te=!0;for(let j=0;j<B;++j)if(D[j].children!==void 0){te=!1;break}if(te){const j=[];for(let qe=0;qe<B;++qe){const He=J(D[qe]);He!==void 0&&(E.push(He),j.push(He))}if(j.length===0)return j;const ge=j[0].originalParent;let be=ge!==null;if(be){for(let qe=1,He=j.length;qe<He;++qe)if(j[qe].originalParent!==ge){be=!1;break}}if(be){const qe=ee(j[0],T,O);if(qe!==null){ge.children=j;for(let He=0,zn=j.length;He<zn;++He)j[He].originalParent=ge;return[qe]}}return[U(T,O,j)]}}const Y=[];for(let te=0;te<B;++te){const j=D[te],ge=j.children;if(ge){const be=j,qe=be.groupId,He={...h,...be},zn=_(qe,He),Rg=zn?.reused;let Ue;if(Rg)Rg.level=T,Ue=Rg;else{const Fg=S(qe);g.validateColDef(He,Fg),Ue=new qr(He,Fg,!1,T),Ue.buildToken=l,d.createBean(Ue);const G0=zn?.existing??r.get(Fg);G0&&Ue.setExpanded(G0.expanded)}Ue.children=de(ge,T+1,Ue),Ue.originalParent=O,Ue.setExpandable(),P||(P=!!He.marryChildren),xe.set(Ue.groupId,Ue),F.push(Ue),Y.push(Ue)}else{const be=J(j);if(be===void 0)continue;E.push(be),ne?Y.push(ee(be,T,O)??U(T,O,[be])):(be.originalParent=O,Y.push(be))}}return Y};return{columnTree:de(t,0,null),treeDepth:v,columns:E,allGroups:F,marryChildren:P,groupsById:xe,colsByKey:z,source:n,newColDefs:s,buildToken:l,wrapperCache:c}}var Wm=(e,t)=>{const o=e.originalParent;return o!=null&&o.padding&&o.level===t-1?o:null},jE=e=>{e.edit?.commit(e),e.wrapperCache?.evict(e.buildToken)},KE=(e,t,o)=>{const r=e.length,i=o.length;if(r===i){let b=!0;for(let S=0;S<i;++S)if(e[S].colId!==o[S]){b=!1;break}if(b)return e}const a=[],n=new Map,s=new Map;let l=!1;for(let b=0;b<i;++b){const S=t[o[b]];if(S!=null){n.set(S,a.length),a.push(S),l||(l=S.colKind==="auto-group");let E=S.originalParent;for(;E!=null;)s.set(E,S),E=E.originalParent}}if(l&&YE(a,e,n),a.length===r)return a;if(a.length===0)return e;const c=[],d=[],g=[],u=[];let h=null,p=null,f=null;for(let b=0;b<r;++b){const S=e[b];if(n.has(S)){f=S;continue}const E=S.colKind;if(E==="auto-group"||E==="selection"||E==="row-number")f===null?c.push(S):(h??(h=new Map),Hi(h,f,S));else if(S.isCalculatedCol){const F=S.anchoredToColId,P=F!=null?t[F]:void 0;P!==void 0&&n.has(P)?(p??(p=new Map),Hi(p,P,S)):F==null?u.push(S):f===null?g.push(S):(p??(p=new Map),Hi(p,f,S))}else d.push(S)}let m=null,w=d;if(d.length>0&&QE(a)){const b=ZE(d,n,s);m=b.followers,w=b.orphans}const v=new Array(r);let C=0;for(let b=0,S=c.length;b<S;++b)v[C++]=c[b];for(let b=0,S=g.length;b<S;++b)v[C++]=g[b];for(let b=0,S=a.length;b<S;++b){const E=a[b];v[C++]=E;const F=h?.get(E);if(F!==void 0)for(let V=0,H=F.length;V<H;++V)v[C++]=F[V];const P=p?.get(E);if(P!==void 0)for(let V=0,H=P.length;V<H;++V)v[C++]=P[V];const z=m?.get(E);if(z!==void 0)for(let V=0,H=z.length;V<H;++V)v[C++]=z[V]}for(let b=0,S=w.length;b<S;++b)v[C++]=w[b];for(let b=0,S=u.length;b<S;++b)v[C++]=u[b];return v},YE=(e,t,o)=>{let r=0;const i=t.length;for(let a=0,n=e.length;a<n;++a)if(e[a].colKind==="auto-group")for(;r<i;){const s=t[r++];if(s.colKind==="auto-group"&&o.has(s)){e[a]=s,o.set(s,a);break}}},QE=e=>{for(let t=0,o=e.length;t<o;++t){let r=e[t].originalParent;for(;r!=null;){if(r.children.length>1)return!0;r=r.originalParent}}return!1},ZE=(e,t,o)=>{const r=new Map,i=[];for(let a=0,n=e.length;a<n;++a){const s=e[a],l=JE(s,t,o);if(l==null){i.push(s);continue}Hi(r,l,s)}return{followers:r,orphans:i}},JE=(e,t,o)=>{let r=e.originalParent,i=null;for(;r!=null;){let a=-1,n=null;const s=r.children;for(let l=0,c=s.length;l<c;++l){const d=s[l];if(d===i||d===e)continue;let g;if(d.isColumn?g=d:g=o.get(d),g!==void 0){const u=t.get(g);u!==void 0&&u>a&&(a=u,n=g)}}if(n!=null)return n;i=r,r=r.originalParent}return null},XE=class extends x{constructor(){super(...arguments),this.beanName="colModel",this.pivotMode=!1,this.ready=!1,this.changeEventsDispatching=!1,this.showingPivotResult=!1,this.pendingRefresh=!1,this.everythingChangedInUpdate=!1,this.pendingRaiseEverything=!1,this.pendingChangesSource=null,this.colsList=[],this.colsTree=[],this.colsTreeDepth=0,this.colDefList=[],this.colDefsVersion=0,this.colUpdateDepth=0,this.queuedColEvents=[],this.colEventsRaisingAt=0,this.colDefTree=[],this.colDefTreeDepth=0,this.colDefHasMarryChildren=!1,this.hasMarryChildren=!1,this.colsById=Object.create(null),this.colDefGroupsById=new Map,this.colDefColsByKey=new Map,this.colDefAllGroups=[],this.colsGroupsById=new Map,this.colsAllGroups=[],this.groupHeaderNameOverrides=new Map,this.cachedColsByDef=null,this.cachedAllCols=null,this.cachedColsInStateOrder=null,this.lastOrder=null,this.lastPivotOrder=null,this.prevPivotStrict=!1,this.colsListIndexDirty=!0,this.colDefs=void 0,this.buildTokenCounter=0}postConstruct(){this.pivotMode=this.gos.get("pivotMode"),this.hierarchyWrapperCache=new Bm(this.beans),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents","hidePaddedHeaderRows"],e=>this.refreshAll(Fo(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],this.recreateColumnDefs.bind(this)),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),Fo(e.source)))}destroy(){Bh(this.colDefList,this.colDefAllGroups),this.hierarchyWrapperCache.destroy(),super.destroy()}nextBuildToken(){return++this.buildTokenCounter}isPivotActive(){return this.pivotMode&&!!this.beans.pivotColsSvc?.columns?.length}getCols(){return this.colsList}getAllCols(){let e=this.cachedAllCols;return e||(e=(this.showingPivotResult?this.beans.pivotResultCols?.buildAllCols():void 0)??this.colsList,this.cachedAllCols=e),e}getColGroup(e){return this.colsGroupsById.get(e)??(this.showingPivotResult?this.colDefGroupsById.get(e):void 0)}getColsInStateOrder(){if(!this.showingPivotResult)return this.colsList;let e=this.cachedColsInStateOrder;return e||(e=this.beans.pivotResultCols?.buildColsInStateOrder()??this.colsList,this.cachedColsInStateOrder=e,e)}buildFromColDefs(e,t){const o=this.beans,{valueCache:r,colAutosize:i,rowGroupColsSvc:a,pivotColsSvc:n,valueColsSvc:s,visibleCols:l,eventSvc:c,groupHierarchyColSvc:d,calculatedColsSvc:g}=o,u=this.colDefs,h=this.ready?_s(o):void 0;r?.expire();const p=this.colDefList,f=this.colDefTree,m=this.colDefAllGroups;this.beginColUpdate();const w=h?Ns(o):null;try{const v=Gm(o,u,!0,this.colDefGroupsById,this.colDefColsByKey,this.colsById,e,t,this.nextBuildToken(),this.hierarchyWrapperCache);d?.contributeTo(v),g?.contributeTo(v),jE(v);const C=v.columnTree,b=v.columns;this.colDefTree=C,this.colDefTreeDepth=v.treeDepth,this.colDefList=b,++this.colDefsVersion,this.colDefHasMarryChildren=v.marryChildren,this.colDefGroupsById=v.groupsById,this.colDefColsByKey=v.colsByKey,this.colDefAllGroups=v.allGroups;const S=Object.create(null);for(let F=0,P=b.length;F<P;++F)S[b[F].colId]=b[F];this.colsById=S,f!==C&&Hh(p,m,v.buildToken),this.invalidateColsDerivedState();const E=p.length>0?new Set(p):null;for(let F=0,P=b.length;F<P;++F){const z=b[F],V=!E?.has(z);a?.extractCol(z,V,e),n?.extractCol(z,V,e),s?.extractCol(z,V,e)}a?.commitExtract(e),n?.commitExtract(e),s?.commitExtract(e),this.ready=!0,this.changeEventsDispatching=!0;try{this.refreshCols(t,e),l.refresh(e,!1)}finally{this.changeEventsDispatching=!1}if(c.dispatchEvent({type:"columnEverythingChanged",source:e}),this.colUpdateDepth>1&&(this.everythingChangedInUpdate=!0),h){this.changeEventsDispatching=!0;try{Sh(o,e,h)}finally{this.changeEventsDispatching=!1}}c.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&i?.applyAutosizeStrategy()}finally{w?.(),this.endColUpdate()}}beginColUpdate(){++this.colUpdateDepth}endColUpdate(){const e=this.colUpdateDepth;if(e>1){this.colUpdateDepth=e-1;return}this.colUpdateDepth=1;let t=!1,o;const r=this.beans.colFilter;do try{r?.refreshRedefinedFilters(),this.runColChanges(),this.flushColEvents()}catch(i){o=t?o:i,t=!0}while(this.queuedColEvents.length!==0||this.hasColChangesStaged()||r?.hasRedefinedFilters());this.colUpdateDepth=0,this.everythingChangedInUpdate=!1;try{this.beans.visibleCols.raiseDeferredLayoutEvents()}catch(i){o=t?o:i,t=!0}if(t)throw o}queueColEvent(e,t){const o=this.queuedColEvents;let r=e.lastQueuedEventAt;if(r<o.length&&o[r]===e){const i=t.type;for(let a=r,n=this.colEventsRaisingAt;a>=n;a=o[a+2]){const s=o[a+1];if(s.type===i&&(i!=="columnStateUpdated"||s.key===t.key)){o[a+1]=t;return}}}else r=-1;e.lastQueuedEventAt=o.length,o.push(e,t,r)}flushColEvents(){const e=this.queuedColEvents;if(e.length===0)return;let t=!1,o;for(let r=0;r<e.length;)try{if(this.hasColChangesStaged())this.runColChanges();else{const i=r;r+=3,this.colEventsRaisingAt=r,e[i].raiseQueuedEvent(e[i+1])}}catch(i){o=t?o:i,t=!0}if(this.colEventsRaisingAt=0,e.length=0,t)throw o}stageColChanges(e,t){t!=="dispatch"&&(this.pendingRefresh=!0,t!=="reorder"&&(this.pendingRaiseEverything=!0)),this.pendingChangesSource??(this.pendingChangesSource=e)}hasColChangesStaged(){const{rowGroupColsSvc:e,pivotColsSvc:t,valueColsSvc:o}=this.beans;return this.pendingRefresh||!!e?.pendingChanged||!!t?.pendingChanged||!!o?.pendingChanged}runColChanges(){const e=this.everythingChangedInUpdate;if(this.everythingChangedInUpdate=!1,!this.hasColChangesStaged()){this.pendingChangesSource=null;return}const{rowGroupColsSvc:t,pivotColsSvc:o,valueColsSvc:r}=this.beans,i=this.pendingChangesSource??"api",a=this.pendingRefresh,n=this.pendingRaiseEverything&&!e;this.pendingChangesSource=null,this.pendingRaiseEverything=!1;const s=a?this.beans.colAnimation:void 0;s?.start();try{t?.flushReindex(),o?.flushReindex(),r?.flushReindex(),a&&(this.performRefresh(i),n&&this.eventSvc.dispatchEvent({type:"columnEverythingChanged",source:i})),t?.dispatchColChange(i),o?.dispatchColChange(i),r?.dispatchColChange(i)}finally{s?.finish()}}refreshCols(e,t){if(!this.ready)return;const o=this.beans,r=this.gos,i=o.formula,a=this.isPivotSortReorder();a&&o.colAnimation?.start();try{const n=this.colDefList,s=this.colsTree,l=this.showingPivotResult,c=this.pivotMode?o.pivotResultCols:null,d=c?.pivotCols??null,g=d!=null?c:null,u=!!g;this.showingPivotResult=u;const h=d??n,p=g?g.pivotTree:this.colDefTree,f=g?g.pivotTreeDepth:this.colDefTreeDepth;this.colsTreeDepth=f,this.hasMarryChildren=g?g.pivotHasMarryChildren:this.colDefHasMarryChildren,this.colsGroupsById=g?g.pivotGroupsById:this.colDefGroupsById,this.colsAllGroups=g?g.pivotAllGroups:this.colDefAllGroups,i?.setFormulasActive(n);const m=o.autoColSvc?.refreshCols(t),w=o.selectionColSvc?.refreshCols(),v=o.rowNumbersSvc?.refreshCols(),C=this.colsList;C.length>0&&(l?this.prevPivotStrict||(this.lastPivotOrder=qm(C,this.lastPivotOrder)):this.lastOrder=qm(C,this.lastOrder)),this.prevPivotStrict=u&&(o.pivotColsSvc?.isStrictColumnOrder()??!1);const b=m?.length??0,S=h.length,E=p.length,F=(v?1:0)+(w?1:0)+b,P=new Array(F+S),z=new Array(F+E),V=Object.create(null);let H=0;v&&(P[H++]=v),w&&(P[H++]=w);for(let D=0;D<b;++D)P[H++]=m[D];const Se=o.colGroupSvc.wrapperCache;if(f>0){const D=this.nextBuildToken();for(let T=0;T<F;++T){const O=P[T];V[O.colId]=O,O.inColsList=!0,z[T]=Se.wrap(O,f,D)}Se.evict(D)}else{Se.destroy();for(let D=0;D<F;++D){const T=P[D];V[T.colId]=T,T.inColsList=!0,T.originalParent=null,z[D]=T}}if(g){l||this.ensureColsListIndex();let D=-1;for(let T=0,O=n.length;T<O;++T){const B=n[T];V[B.colId]=B,B.inColsList=!1,B.colsListIndex<0?B.colsListIndex=D:D=B.colsListIndex}}for(let D=0;D<S;++D){const T=h[D];P[H++]=T,V[T.colId]=T,T.inColsList=!0}for(let D=0;D<E;++D)z[F+D]=p[D];const J=!e||mS(r,u),xe=u?this.lastPivotOrder:this.lastOrder;let ee=J?xe:null;const U=o.pivotColsSvc;ee!=null&&u&&U?.hasInteractivePivotSort()&&(ee=U.reRankByPivotGroupOrder(P,ee,V));const _=ee==null?P:KE(P,V,ee),de=ph(_,r),fe=!je(de,C);fe&&(this.colsListIndexDirty=!0),this.colsList=fe?de:C,this.colsTree=je(z,s)?s:z,this.colsById=V,this.invalidateColsDerivedState(),this.refreshColsDerivedState(),i?.onColsRefreshed(),fe&&(o.rowSpanSvc?.refreshCols(),o.editSvc?.releaseColumnsLeaving(de)),(this.colsTree!==s||fe)&&this.eventSvc.dispatchEvent({type:"gridColumnsChanged"})}finally{a&&o.colAnimation?.finish()}}isPivotSortReorder(){return!!this.beans.pivotColsSvc?.hasInteractivePivotSort()||this.prevPivotStrict}refreshColsDerivedState(){const e=this.beans;e.showRowGroupCols?.refresh(),e.quickFilter?.refreshCols(),e.visibleCols.clear(),e.colViewport.clear()}refreshAll(e){if(this.ready){if(this.colUpdateDepth>0){this.pendingRefresh=!0,this.pendingChangesSource??(this.pendingChangesSource=e);return}this.performRefresh(e)}}performRefresh(e){if(this.pendingRefresh=!1,!!this.ready){this.beginColUpdate();try{this.refreshCols(!1,e),this.beans.visibleCols.refresh(e,!1)}finally{this.endColUpdate()}}}replaceColDefList(e){this.ready&&(this.colDefList=e)}setPivotMode(e,t){if(e!==this.pivotMode&&(this.pivotMode=e,this.ready)){this.beginColUpdate();try{this.refreshCols(!1,t),this.beans.visibleCols.refresh(t,!1),this.eventSvc.dispatchEvent({type:"columnPivotModeChanged"})}finally{this.endColUpdate()}}}recreateColumnDefs(e){if(this.ready){this.beginColUpdate();try{this.beans.autoColSvc?.updateColumns(e),this.buildFromColDefs(Fo(e.source),!0)}finally{this.endColUpdate()}}}setColumnDefs(e,t){const o=this.beans;o.userColumnSvc?.clear(),o.calculatedColsSvc?.resetDynamicColumnDefs(),this.colDefs=e,this.buildFromColDefs(t,!0)}rebuildCols(e){this.ready&&this.buildFromColDefs(e,!1)}markColsListIndexDirty(){this.colsListIndexDirty=!0,this.cachedColsInStateOrder=null,this.cachedAllCols=null}invalidateColsDerivedState(){this.cachedColsByDef=null,this.cachedAllCols=null,this.cachedColsInStateOrder=null,this.beans.sortSvc?.invalidate()}ensureColsListIndex(){if(this.colsListIndexDirty){const e=this.colsList;for(let t=0,o=e.length;t<o;++t)e[t].colsListIndex=t;this.colsListIndexDirty=!1}}getCol(e){if(typeof e=="string")return this.colsById[e]??this.getColFallback(e);const t=e?.colId;if(typeof t=="string"){const o=this.colsById[t];if(o!==void 0)return o}return e==null?void 0:this.getColFallback(e)}getColFallback(e){const t=this.cachedColsByDef??this.loadColsByDef(),o=t.get(e);if(o!==void 0)return o;if(typeof e!="object")return;const r=e.field;return typeof r=="string"?t.get(r):void 0}getNonPivotCol(e){const t=this.getCol(e);return t!==void 0&&t.colDef.pivotKeys==null?t:void 0}getNonPivotColById(e){const t=this.colsById[e];return t!==void 0&&t.colDef.pivotKeys==null?t:void 0}loadColsByDef(){const e=new Map;return Um(e,this.colsList),this.showingPivotResult&&Um(e,this.colDefList),this.cachedColsByDef=e,e}},qm=(e,t)=>{const o=e.length;t??(t=[]),t.length=o;for(let r=0;r<o;++r)t[r]=e[r].colId;return t},Um=(e,t)=>{for(let o=0,r=t.length;o<r;++o){const i=t[o],a=i.colDef;e.set(a,i);const n=i.userProvidedColDef;n!=null&&e.set(n,i);const s=a.field;s&&s!==i.colId&&!e.has(s)&&e.set(s,i)}},$E=".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)}:where(.ag-label-align-right){.ag-label,.ag-wrapper{flex:none}}.ag-label-align-top{align-items:flex-start;flex-direction:column}:where(.ag-label-align-top){.ag-label,.ag-wrapper{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)}",Ic=class extends Ko{constructor(e,t,o){super(t,o),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e??{},this.registerCSS($E)}postConstruct(){this.addCss("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:o,labelAlignment:r,disabled:i,labelEllipsis:a}=this.config;i!=null&&this.setDisabled(i),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),o!=null&&this.setLabelWidth(o),a!=null&&this.setLabelEllipsis(a),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Ce(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Q(t,!1),xt(t,"presentation")):(Q(t,!0),xt(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&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:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const o=this.getGui().classList;return o.toggle("ag-label-align-left",e==="left"),o.toggle("ag-label-align-right",e==="right"),o.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(_i(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return Rr(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},_m=class extends Ic{constructor(e,t,o,r){super(e,t,o),this.className=r}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:o,ariaLabel:r}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),o!=null&&this.onValueChange(o),r!=null&&this.setAriaLabel(r),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(),o=this.getLabel();o==null||o==""||py(e)!==null?yr(e,""):yr(e,t??"")}setAriaLabel(e){return Ht(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 kt(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}},eR=new Set(["button","checkbox","file","hidden","radio","range","reset","submit"]);function tR(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"}]}]}}var It=class extends _m{constructor(e,t,o="text",r="input"){super(e,e?.template??tR(r),[],t),this.inputType=o,this.displayFieldTag=r,this.eLabel=k,this.eWrapper=k,this.eInput=k}postConstruct(){super.postConstruct(),this.setInputType(this.inputType);const{eLabel:e,eWrapper:t,eInput:o,className:r}=this;e.classList.add(`${r}-label`),t.classList.add(`${r}-input-wrapper`),o.classList.add(`${r}-input`),this.addCss("ag-input-field"),o.id=o.id||`ag-${this.getCompId()}-input`;const{inputName:i,inputWidth:a,inputPlaceholder:n,autoComplete:s,tabIndex:l}=this.config;i!=null&&this.setInputName(i),a!=null&&this.setInputWidth(a),n!=null&&this.setInputPlaceholder(n),s!=null?this.setAutoComplete(s):this.refreshAutoComplete(),this.addManagedPropertyListener("enableInputAutoComplete",()=>this.refreshAutoComplete()),this.addInputListeners(),this.activateTabIndex([o],l)}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(e){this.displayFieldTag==="input"&&(this.inputType=e,Ee(this.eInput,"type",e))}getInputElement(){return this.eInput}getWrapperElement(){return this.eWrapper}setInputWidth(e){return _i(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return Ee(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Ht(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Rr(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){return this.autoCompleteOverride=e,e==null?this.refreshAutoComplete():this.applyAutoComplete(e),this}refreshAutoComplete(){this.autoCompleteOverride==null&&this.isAutoCompleteCapableField()&&this.applyAutoComplete(this.gos.get("enableInputAutoComplete")===!0)}isAutoCompleteCapableField(){const{eInput:e}=this;if(e.tagName==="TEXTAREA")return!0;if(e.tagName!=="INPUT")return!1;const{type:t}=e;return!eR.has(t)}applyAutoComplete(e){if(e===!0)Ee(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Ee(this.eInput,"autocomplete",t)}}},wi=class extends It{constructor(e,t="ag-checkbox",o="checkbox"){super(e,t,o),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t,name:o}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t),o!=null&&this.setName(o)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!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){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),this.selected=typeof e=="boolean"?e:void 0,this.refreshInput(),t||this.dispatchChange(this.selected,this.previousValue))}dispatchChange(e,t,o){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:o});const r=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:r.id,name:r.name,selected:e,previousValue:t})}onCheckboxClick(e){if(!this.passive&&!this.eInput.disabled){const t=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,t,e)}this.refreshInput()}refreshInput(){const{eInput:e,selected:t}=this;e.checked=!!t,e.indeterminate=t===void 0}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},qa={selector:"AG-CHECKBOX",component:wi},oR=".ag-checkbox-cell{height:100%}",rR={tag:"div",cls:"ag-cell-wrapper ag-checkbox-cell",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},iR=class extends X{constructor(){super(rR,[qa]),this.eCheckbox=k,this.registerCSS(oR)}init(e){this.refresh(e);const{eCheckbox:t,beans:o}=this,r=t.getInputElement();r.setAttribute("tabindex","-1"),Ng(r,"polite"),this.addManagedListeners(r,{click:i=>{if(to(i),t.isDisabled())return;const a=t.getValue();this.onCheckboxChanged(a)},dblclick:i=>{to(i)}}),this.addManagedElementListeners(e.eGridCell,{keydown:i=>{if(i.key===y.SPACE&&!t.isDisabled()){e.eGridCell===Z(o)&&t.toggle();const a=t.getValue();this.onCheckboxChanged(a),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,o=!0;const{value:r,column:i,node:a}=e;if(a.group&&i)if(typeof r=="boolean")t=r;else{const g=i.getColId();g.startsWith(Ro)?t=r==null||r===""?void 0:r==="true":a.aggData?.[g]!==void 0||a.sourceRowIndex>=0?t=r??void 0:o=!1}else t=r??void 0;const{eCheckbox:n}=this;if(!o){n.setDisplayed(!1);return}n.setValue(t);const s=e.disabled??!i?.isCellEditable(a);n.setDisabled(s);const l=this.getLocaleTextFunc(),c=Gi(l,t),d=s?c:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${c})`;n.setInputAriaLabel(d)}onCheckboxChanged(e){const{params:t}=this,{column:o,node:r,value:i}=t,{editSvc:a}=this.beans;if(!o)return;const n={rowNode:r,column:o};a?.dispatchCellEvent(n,null,"cellEditingStarted",{value:i});const s=r.setDataValue(o,e,"ui");a?.dispatchCellEvent(n,null,"cellEditingStopped",{oldValue:i,newValue:e,valueChanged:s}),s||this.updateCheckbox(t)}},aR={tag:"div",cls:"ag-skeleton-container"},nR=class extends X{constructor(){super(aR)}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>yr(e.eParentOfValue)),yr(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");Ht(this.getGui(),t)}setupLoading(e){const t=G({tag:"div",cls:"ag-skeleton-effect"}),o=e.node.rowIndex;if(o!=null){const a=75+25*(o%2===0?Math.sin(o):Math.cos(o));t.style.width=`${a}%`}this.getGui().appendChild(t);const r=this.getLocaleTextFunc(),i=e.deferRender?r("ariaDeferSkeletonCellLoading","Cell is loading"):r("ariaSkeletonCellLoading","Row data is loading");Ht(this.getGui(),i)}refresh(e){return!1}},sR={moduleName:"CheckboxCellRenderer",version:R,userComponents:{agCheckboxCellRenderer:iR}},lR={moduleName:"SkeletonCellRenderer",version:R,userComponents:{agSkeletonCellRenderer:nR}};function cR(e,t){const o=e.colModel.getCol(t);return o?o.colDef:null}function dR(e){return e.colDefFactory?.getColumnDefs()}function gR(e,t,o){return e.colNames.getDisplayNameForColumn(t,o)||""}function uR(e,t){return e.colModel.getCol(t)??null}function hR(e){const t=e.colModel;return t.ready?t.colDefList:null}function pR(e,t){return Pt(e,t,"api")}var fR=kh;function mR(e){Ch(e,"api")}function vR(e){return e.visibleCols.leftCols.length>0||e.visibleCols.rightCols.length>0}function wR(e){return e.visibleCols.leftCols.length>0}function bR(e){return e.visibleCols.rightCols.length>0}function CR(e,t){return e.visibleCols.getColAfter(t)}function yR(e,t){return e.visibleCols.getColBefore(t)}function SR(e,t,o){jr(e,t,o===!0,"api")}function xR(e,t,o){e.pinnedCols?.setColsPinned(t,o,"api")}function kR(e){return e.colModel.colsList}function ER(e){return e.visibleCols.leftCols}function RR(e){return e.visibleCols.centerCols}function FR(e){return e.visibleCols.rightCols}function MR(e){return e.visibleCols.allCols}function DR(e){return e.colViewport.getViewportColumns()}function zc(e,t){if(!e)return;const o=e,r={};for(const i of Object.keys(o)){if(i===t||oa(i))continue;const a=o[i];ra(a)?r[i]=zc(a):r[i]=a}return r}var PR=class extends x{constructor(){super(...arguments),this.beanName="colDefFactory"}wireBeans(e){this.colModel=e.colModel}getColumnDefs(){const e=this.colModel;if(!e.ready)return;const t=e.colDefList;e.ensureColsListIndex();const o=t.slice().sort(AR),r=[],i=Object.create(null),a=e.colDefTreeDepth+1;for(let n=0,s=o.length;n<s;++n){const l=o[n];if(l.colKind==="hierarchy")continue;const c=TR(l);let d=!0,g=c,u=l.originalParent,h=0;for(;u&&!(++h>a);){if(u.padding){u=u.originalParent;continue}const p=i[u.groupId];if(p){p.children.push(g),d=!1;break}const f=zc(u.colGroupDef,"children");if(!f){d=!1;break}f.groupId=u.groupId,f.children=[g],i[f.groupId]=f,g=f,u=u.originalParent}d&&r.push(g)}return r}},TR=e=>{const{colId:t,colDef:o,actualWidth:r,aggregationActive:i,rowGroupActive:a,visible:n,pivotActive:s,pinned:l}=e,c=zc(o);return c.colId=t,c.width=r,c.rowGroup=a,c.rowGroupIndex=a?e.rowGroupActiveIndex:null,c.pivot=s,c.pivotIndex=s?e.pivotActiveIndex:null,c.aggFunc=i?e.aggFunc:null,c.hide=n?void 0:!0,c.pinned=l==="left"||l==="right"?l:null,c.sort=e.getSortDef(),c.sortIndex=e.sortIndex??null,c},AR=(e,t)=>e.colsListIndex-t.colsListIndex,IR=class extends x{constructor(){super(...arguments),this.beanName="colFlex",this.flexViewportWidth=0,this.columnsHidden=!1}refreshFlexedColumns(e={}){const t=e.source??"flex";e.viewportWidth!=null&&(this.flexViewportWidth=e.viewportWidth);const o=this.flexViewportWidth,{visibleCols:r,colDelayRenderSvc:i}=this.beans,a=r.lastFlexIndex;if(a<0||!o)return this.revealColumns(i),[];const n=r.centerCols,s=n.length,l=n[0].allColsIndex;let c=-1;const d=e.resizingCols;if(d){for(let v=0,C=d.length;v<C;++v){const b=d[v],S=b.allColsIndex-l;S<=c||n[S]!==b||(c=S)}if(l+c>=a)return this.revealColumns(i),[]}const g=[];let u=0;const h=[];for(let v=c+1;v<s;++v){const C=n[v],b=C.flex;b==null||b<=0||(g.push(C),u+=b,h.push({col:C,flex:b,initialSize:C.actualWidth,min:C.minWidth,max:C.maxWidth,targetSize:0,frozenSize:void 0,violationType:void 0}))}const p=h.length;if(!p)return this.revealColumns(i),g;i?.hideColumns("colFlex"),this.columnsHidden=!0;let f=p,m=o;for(let v=0;v<s;++v){const C=n[v],b=C.flex;if(v>c&&b!=null&&b>0)continue;const S=C.actualWidth;C.setActualWidth(S,t),m-=S}for(;f>0;){const v=Math.round(u<1?m*u:m);let C,b=0,S=0;for(let P=0;P<p;++P){const z=h[P];if(z.frozenSize!=null)continue;C=z,S+=v*(z.flex/u);const V=S-b,H=Math.round(V);z.targetSize=H,b+=H}C&&(C.targetSize+=v-b);let E=0;for(let P=0;P<p;++P){const z=h[P];if(z.frozenSize!=null)continue;const V=z.targetSize,H=Math.min(Math.max(V,z.min),z.max);E+=H-V,z.violationType=H===V?void 0:H<V?"max":"min",z.targetSize=H}const F=E===0?"all":E>0?"min":"max";for(let P=0;P<p;++P){const z=h[P];if(z.frozenSize!=null||F!=="all"&&z.violationType!==F)continue;const V=z.targetSize;z.frozenSize=V,z.col.setActualWidth(V,t),m-=V,u-=z.flex,--f}}const w=e.skipSetLeft?void 0:r.setLeftValues();if(e.updateBodyWidths&&r.updateBodyWidths(t,w),e.fireResizedEvent){const v=[];for(let C=0;C<p;++C){const b=h[C];b.initialSize!==b.frozenSize&&v.push(b.col)}Zt(this.eventSvc,v,!0,t,g)}return this.revealColumns(i),g}revealColumns(e){this.columnsHidden&&(e?.revealColumns("colFlex"),this.columnsHidden=!1)}initCol(e){const{flex:t,initialFlex:o}=e.colDef;t!==void 0?e.flex=t:o!==void 0&&(e.flex=o)}setColFlex(e,t,o){e.flex=t??null,e.dispatchStateUpdatedEvent("flex",o)}},zR=["dateTimeString","dateString","text","number","bigint","boolean","date"],LR=["cellRenderer","cellEditorParams","comparator","getFindText","keyCreator","suppressKeyboardEvent","valueFormatter","valueParser"],OR=class extends x{constructor(){super(...arguments),this.beanName="dataTypeSvc",this.dataTypeDefinitions={},this.objectFilterValueGetter=({column:e,node:t})=>{const o=e,r=this.formatValueFuncs,i=t?this.beans.valueSvc.getValueFromData(o,t):void 0,a=this.getBaseDataType(o);return a&&a!=="object"?i:(r[o.colDef.cellDataType]??r.object)({column:e,node:t,value:i})},this.isPendingInference=!1,this.isColumnTypeOverrideInDataTypeDefinitions=!1,this.columnStateUpdatesPendingInference=Object.create(null),this.columnDefinitionPropsPerDataType={number(){return{cellEditor:"agNumberCellEditor"}},bigint({filterModuleBean:e}){return e?{cellEditor:"agTextCellEditor"}:{cellEditor:"agTextCellEditor",comparator:{default:GR,absolute:WR}}},boolean(){return{cellEditor:"agCheckboxCellEditor",cellRenderer:"agCheckboxCellRenderer",getFindText:()=>null,suppressKeyboardEvent:({node:e,event:t,column:o})=>t.key===y.SPACE&&o.isCellEditable(e)}},date({formatValue:e}){return{cellEditor:"agDateCellEditor",keyCreator:e}},dateString({formatValue:e}){return{cellEditor:"agDateStringCellEditor",keyCreator:e}},dateTime(e){return this.date(e)},dateTimeString(e){return this.dateString(e)},object({formatValue:e,colModel:t,colId:o}){return{cellEditorParams:{useFormatter:!0},comparator:(r,i)=>{const a=t.getNonPivotColById(o),n=a?.colDef;if(!a||!n)return 0;const s=r==null?"":e({column:a,node:null,value:r}),l=i==null?"":e({column:a,node:null,value:i});return s===l?0:s>l?1:-1},keyCreator:e}},text(){return{}}}}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={},o={},r=d=>g=>{const{column:u,node:h,value:p}=g;let f=u.getColDef().valueFormatter;return f===d.groupSafeValueFormatter&&(f=d.valueFormatter),this.beans.valueSvc.formatValue(u,h,p,f)};for(const d of Object.keys(e)){const g=e[d],u={...g,groupSafeValueFormatter:Ym(g,this.gos)};t[d]=u,o[d]=r(u)}const i=this.gos.get("dataTypeDefinitions")??{},a={};for(const d of Object.keys(i)){const g=i[d],u=this.processDataTypeDefinition(g,i,[d],e);u&&(t[d]=u,g.dataTypeMatcher&&(a[d]=g.dataTypeMatcher),o[d]=r(u))}const{valueParser:n,valueFormatter:s}=e.object,{valueParser:l,valueFormatter:c}=t.object;this.hasObjectValueParser=l!==n,this.hasObjectValueFormatter=c!==s,this.formatValueFuncs=o,this.dataTypeDefinitions=t,this.dataTypeMatchers=this.sortKeysInMatchers(a,e)}sortKeysInMatchers(e,t){const o={...e};for(const r of zR)delete o[r],o[r]=e[r]??t[r].dataTypeMatcher;return o}processDataTypeDefinition(e,t,o,r){let i;const a=e.extendsDataType;if(e.columnTypes&&(this.isColumnTypeOverrideInDataTypeDefinitions=!0),e.extendsDataType===e.baseDataType){let n=r[a];const s=t[a];if(n&&s&&(n=s),!Km(this.beans.log,e,n,a))return;i=jm(n,e)}else{if(o.includes(a)){this.warn(44);return}const n=t[a];if(!Km(this.beans.log,e,n,a))return;const s=this.processDataTypeDefinition(n,t,[...o,a],r);if(!s)return;i=jm(s,e)}return{...i,groupSafeValueFormatter:Ym(i,this.gos)}}updateColDefAndGetColumnType(e,t,o){let{cellDataType:r}=t;r===void 0&&(r=e.cellDataType);const{field:i}=t;if((r==null||r===!0)&&(r=this.canInferCellDataType(e,t)?this.inferCellDataType(i,o):!1),this.addFormulaCellEditorToColDef(e,t),!r){e.cellDataType=!1;return}const a=this.dataTypeDefinitions[r];if(!a){this.warn(47,{cellDataType:r});return}return e.cellDataType=r,a.groupSafeValueFormatter&&(e.valueFormatter=a.groupSafeValueFormatter),a.valueParser&&(e.valueParser=a.valueParser),a.suppressDefaultProperties||this.setColDefPropertiesForBaseDataType(e,r,a,o),a.columnTypes}addFormulaCellEditorToColDef(e,t){!(t.allowFormula??e.allowFormula)||t.cellEditor||(e.cellEditor="agFormulaCellEditor")}columnStateUpdated(e,t){this.columnStateUpdatesPendingInference[e.colId]?.add(t)}canInferCellDataType(e,t){const{gos:o}=this;if(!ve(o))return!1;const r={cellRenderer:!0,valueGetter:!0,valueParser:!0,refData:!0};if(Lc(t,r))return!1;const i=t.type===null?e.type:t.type;if(i){const a=o.get("columnTypes")??{};if(pa(i).some(s=>{const l=a[s.trim()];return l&&Lc(l,r)}))return!1}return!Lc(e,r)}inferCellDataType(e,t){if(!e)return;const o=e.includes(".")&&!this.gos.get("suppressFieldDotNotation")?e.split("."):null;if(Ks(e,o))return;const r=s=>{if(s!=null)return o?Kr(s,o):s[e]};let i;const a=this.getInitialRowData();if(a)for(let s=0,l=a.length;i==null&&s<l;++s)i=r(a[s]);else{const s=this.beans.rowModel.rootNode?._leafs;if(!s?.length){this.initWaitForRowData(t);return}for(let l=0,c=s.length;i==null&&l<c;++l)i=r(s[l].data)}return i==null?void 0:Object.keys(this.dataTypeMatchers).find(s=>this.dataTypeMatchers[s](i))??"object"}getInitialRowData(){const e=this.gos.get("rowData");return e?.length?e:this.initialData?.length?this.initialData:null}initWaitForRowData(e){if(this.columnStateUpdatesPendingInference[e]=new Set,this.isPendingInference)return;this.isPendingInference=!0;const t=this.isColumnTypeOverrideInDataTypeDefinitions,{colAutosize:o,eventSvc:r}=this.beans;t&&o&&(o.shouldQueueResizeOperations=!0);const[i]=this.addManagedEventListeners({rowDataUpdateStarted:({rowData:a})=>{a?.length&&(i?.(),this.isPendingInference=!1,this.processColumnsPendingInference(a,t),this.columnStateUpdatesPendingInference=Object.create(null),t&&o?.processResizeOperations(),r.dispatchEvent({type:"dataTypesInferred"}))}})}processColumnsPendingInference(e,t){this.initialData=e;const o=this.colModel;o.beginColUpdate();try{this.applyInferredColDefs(t)}finally{o.endColUpdate()}this.initialData=null}applyInferredColDefs(e){const t=this.beans,o=[],r=Object.create(null),i=Object.create(null);for(const a of Object.keys(this.columnStateUpdatesPendingInference)){const n=this.resetColDefAndGetColumnState(a,e);n&&(n.rowGroup&&n.rowGroupIndex==null&&(r[a]=n),n.pivot&&n.pivotIndex==null&&(i[a]=n),o.push(n))}if(e){const a=Object.create(null);t.rowGroupColsSvc?.restoreColumnOrder(r,a),t.pivotColsSvc?.restoreColumnOrder(i,a);const n=Object.keys(a);for(let s=0,l=n.length;s<l;++s)o.push(a[n[s]])}o.length&&Pt(t,{state:o},"cellDataTypeInferred",!0)}resetColDefAndGetColumnState(e,t){const o=this.colModel.colsById[e];if(!o)return null;const r=o.colDef;if(!this.resetColDefIntoCol(o,"cellDataTypeInferred"))return null;const i=o.colDef;return!t||!i.type||i.type===r.type?null:qR(this.beans,o,this.columnStateUpdatesPendingInference[e])}resetColDefIntoCol(e,t){const o=e.getUserProvidedColDef();if(!o)return!1;const r=ca(this.beans,o,e.colId);return e.setColDef(r,o,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 e==="dateTime"||e==="dateTimeString"}getDataTypeDefinition(e){const t=e.colDef;if(t.cellDataType)return this.dataTypeDefinitions[t.cellDataType]}getBaseDataType(e){return this.getDataTypeDefinition(e)?.baseDataType}checkType(e,t){if(t==null)return!0;const o=this.getDataTypeDefinition(e)?.dataTypeMatcher;return!o||e.allowFormula&&this.beans.formula?.isFormula(t)?!0:o(t)}validateColDef(e,t,o,r){if(e.cellDataType==="object"){const i=l=>l?.cellDataType==null||l?.cellDataType===!0,a=i(t)&&i(o),n=l=>this.warn(48,{property:l,inferred:a,colId:r}),{object:s}=this.dataTypeDefinitions;e.valueFormatter===s.groupSafeValueFormatter&&!this.hasObjectValueFormatter&&n("Formatter"),e.editable&&e.valueParser===s.valueParser&&!this.hasObjectValueParser&&n("Parser")}}postProcess(e){const t=e.cellDataType;if(!t||typeof t!="string")return;const{dataTypeDefinitions:o,beans:r,formatValueFuncs:i}=this,a=o[t];a&&r.colFilter?.setColDefPropsForDataType(e,a,i[t])}getFormatValue(e){return this.formatValueFuncs[e]}isInferring(){return this.initialData!=null}isDataTypeRegistered(e){return this.dataTypeDefinitions[e]!=null}isColPendingInference(e){return this.isPendingInference&&!!this.columnStateUpdatesPendingInference[e]}setColDefPropertiesForBaseDataType(e,t,o,r){const i=this.formatValueFuncs[t],a=this.columnDefinitionPropsPerDataType[o.baseDataType]({colDef:e,cellDataType:t,colModel:this.colModel,dataTypeDefinition:o,colId:r,formatValue:i,filterModuleBean:this.beans.filterManager});e.cellEditor==="agFormulaCellEditor"&&a.cellEditor!==e.cellEditor&&(a.cellEditor=e.cellEditor),Object.assign(e,a)}getDateObjectTypeDef(e){const t=this.getLocaleTextFunc(),o=this.getDateIncludesTimeFlag(e);return{baseDataType:e,valueParser:r=>he(r.newValue&&String(r.newValue)),valueFormatter:r=>r.value==null?"":!(r.value instanceof Date)||Number.isNaN(r.value.getTime())?t("invalidDate","Invalid Date"):Te(r.value,o)??"",dataTypeMatcher:r=>r instanceof Date}}getDateStringTypeDef(e){const t=this.getDateIncludesTimeFlag(e);return{baseDataType:e,dateParser:o=>he(o)??void 0,dateFormatter:o=>Te(o??null,t)??void 0,valueParser:o=>ta(String(o.newValue))?o.newValue:null,valueFormatter:o=>ta(String(o.value))?String(o.value):"",dataTypeMatcher:o=>typeof o=="string"&&ta(o)}}getDefaultDataTypes(){const e=this.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:t=>t.newValue?.trim?.()===""?null:Number(t.newValue),valueFormatter:t=>t.value==null?"":typeof t.value!="number"||Number.isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value),dataTypeMatcher:t=>typeof t=="number"},bigint:{baseDataType:"bigint",valueParser:t=>{const{newValue:o}=t;return o==null||typeof o=="string"&&o.trim()===""?null:Oe(o)},valueFormatter:t=>t.value==null?"":typeof t.value!="bigint"?e("invalidBigInt","Invalid BigInt"):String(t.value),dataTypeMatcher:t=>typeof t=="bigint"},text:{baseDataType:"text",valueParser:t=>t.newValue===""?null:jg(t.newValue),dataTypeMatcher:t=>typeof t=="string"},boolean:{baseDataType:"boolean",valueParser:t=>t.newValue==null?t.newValue:t.newValue?.trim?.()===""?null:String(t.newValue).toLowerCase()==="true",valueFormatter:t=>t.value==null?"":String(t.value),dataTypeMatcher:t=>typeof t=="boolean"},date:this.getDateObjectTypeDef("date"),dateString:this.getDateStringTypeDef("dateString"),dateTime:this.getDateObjectTypeDef("dateTime"),dateTimeString:{...this.getDateStringTypeDef("dateTimeString"),dataTypeMatcher:t=>typeof t=="string"&&cS(t)},object:{baseDataType:"object",valueParser:()=>null,valueFormatter:t=>jg(t.value)??""}}}destroy(){this.dataTypeDefinitions={},this.dataTypeMatchers={},this.formatValueFuncs={},this.columnStateUpdatesPendingInference=Object.create(null),super.destroy()}};function jm(e,t){const o={...e,...t};return e.columnTypes&&t.columnTypes&&t.appendColumnTypes&&(o.columnTypes=[...pa(e.columnTypes),...pa(t.columnTypes)]),o}function Km(e,t,o,r){return o?o.baseDataType!==t.baseDataType?(e.warn(46),!1):!0:(e.warn(45,{parentCellDataType:r}),!1)}var VR=e=>typeof e=="bigint"||typeof e=="number",BR=e=>e==="number"||e==="bigint",HR=(e,t)=>{switch(e){case"date":case"dateTime":return t instanceof Date;case"dateString":case"dateTimeString":return typeof t=="string";default:return!1}};function Ym(e,t){if(e.valueFormatter)return o=>{const{node:r,column:i,value:a}=o;if(r?.group){const n=i,s=(n.pivotValueColumn??n).aggFunc;if(s){if(s==="first"||s==="last")return e.valueFormatter(o);const{baseDataType:l}=e;if((s==="min"||s==="max")&&HR(l,a))return e.valueFormatter(o);if(BR(l)&&s!=="count"){if(VR(a))return e.valueFormatter(o);if(a==null)return;if(typeof a=="object"){if(typeof a.toNumber=="function")return e.valueFormatter({...o,value:a.toNumber()});if("value"in a)return e.valueFormatter({...o,value:a.value})}}return}}else if(t.get("groupHideOpenParents")&&o.column.isRowGroupActive()&&typeof o.value=="string"&&!e.dataTypeMatcher?.(o.value))return;return e.valueFormatter(o)}}function NR(e,t,o,r){if(!t[o])return!1;const i=e[o];return i===null?(t[o]=!1,!1):r===void 0?!!i:i===r}function GR(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const o=Oe(e),r=Oe(t);return o!=null&&r!=null?o===r?0:o>r?1:-1:0}function WR(e,t){if(e==null)return t==null?0:-1;if(t==null)return 1;const o=Qm(e),r=Qm(t);return o!=null&&r!=null?o===r?0:o>r?1:-1:0}function Qm(e){const t=Oe(e);return t==null?null:t<0n?-t:t}function Lc(e,t){return[["cellRenderer","agSparklineCellRenderer"],["valueGetter",void 0],["valueParser",void 0],["refData",void 0]].some(([o,r])=>NR(e,t,o,r))}function qR(e,t,o){const r=Eh(e,t);for(const i of o)delete r[i],i==="rowGroup"?delete r.rowGroupIndex:i==="pivot"&&delete r.pivotIndex;return r}var UR={moduleName:"DataType",version:R,beans:[OR],dependsOn:[sR]},_R={moduleName:"ColumnFlex",version:R,beans:[IR]},Oc={moduleName:"ColumnApi",version:R,beans:[PR],apiFunctions:{getColumnDef:cR,getDisplayNameForColumn:gR,getColumn:uR,getColumns:hR,applyColumnState:pR,getColumnState:fR,resetColumnState:mR,isPinning:vR,isPinningLeft:wR,isPinningRight:bR,getDisplayedColAfter:CR,getDisplayedColBefore:yR,setColumnsVisible:SR,setColumnsPinned:xR,getAllGridColumns:kR,getDisplayedLeftColumns:ER,getDisplayedCenterColumns:RR,getDisplayedRightColumns:FR,getAllDisplayedColumns:MR,getAllDisplayedVirtualColumns:DR,getColumnDefs:dR}},jR=class extends x{constructor(){super(...arguments),this.beanName="colNames"}getDisplayNameForColumn(e,t,o=!1){if(!e)return null;const r=this.getHeaderName(e.colDef,e,null,null,t),i=this.beans.aggColNameSvc;return o&&i?i.getHeaderName(e,r):r}getDisplayNameForProvidedColumnGroup(e,t,o,r=t?.colGroupDef){return r?this.getHeaderName(r,null,e,t,o):null}getDisplayNameForColumnGroup(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.providedColumnGroup,t)}getHeaderName(e,t,o,r,i){const a=r?this.beans.colModel.groupHeaderNameOverrides.get(r.groupId)??null:null,n=t?.headerNameOverride??a;if(n!=null)return n;const s=e.headerValueGetter;if(s){const l=W(this.gos,{colDef:e,column:t,columnGroup:o,providedColumnGroup:r,location:i});return typeof s=="function"?s(l):typeof s=="string"?this.beans.expressionSvc?.evaluate(s,l)??null:""}else{if(e.headerName!=null)return e.headerName;if(e.field)return Cs(e.field)}return""}},KR=class extends x{constructor(){super(...arguments),this.beanName="colViewport",this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.extractedLayoutVersion=-1,this.extractedGroupVersion=-1,this.headerRowsVersion=0,this.rowsOfHeadersToRenderLeft=[],this.rowsOfHeadersToRenderRight=[],this.rowsOfHeadersToRenderCenter=[],this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[],this.viewportLeft=0,this.viewportRight=0,this.inRowViewport=e=>this.isColumnInRowViewport(e),this.emptySpaceBeforeColumn=e=>{const t=e.getLeft();return t!=null&&t>this.viewportLeft}}wireBeans(e){this.visibleCols=e.visibleCols,this.colModel=e.colModel,this.colGroupSvc=e.colGroupSvc}postConstruct(){this.suppressColumnVirtualisation=this.gos.get("suppressColumnVirtualisation")}getScrollPosition(){return this.scrollPosition}setScrollPosition(e,t,o=!1){e===this.scrollWidth&&t===this.scrollPosition&&this.visibleCols.layoutVersion===this.extractedLayoutVersion||(this.scrollWidth=e,this.scrollPosition=t,this.viewportLeft=t,this.viewportRight=e+t,this.colModel.ready&&this.checkViewportColumns(o))}getColumnHeadersToRender(e){return e===0?this.columnsToRenderLeft:e===2?this.columnsToRenderRight:this.columnsToRenderCenter}getHeadersToRender(e,t){return e===0?this.rowsOfHeadersToRenderLeft[t]:e===2?this.rowsOfHeadersToRenderRight[t]:this.rowsOfHeadersToRenderCenter[t]}extractViewportColumns(){const e=this.visibleCols.centerCols;if(this.isColumnVirtualisationSuppressed()){this.colsWithinViewport=e,this.headerColsWithinViewport=e;return}const t=[];let o=null;for(let r=0,i=e.length;r<i;++r){const a=e[r];this.isColumnInRowViewport(a)?(t.push(a),o?.push(a)):QR(a)&&(o??(o=t.slice()),o.push(a))}this.colsWithinViewport=t,this.headerColsWithinViewport=o??t}isColumnVirtualisationSuppressed(){return this.suppressColumnVirtualisation||this.viewportRight===0&&!c1()}clear(){this.rowsOfHeadersToRenderLeft=[],this.rowsOfHeadersToRenderRight=[],this.rowsOfHeadersToRenderCenter=[],this.columnsToRenderLeft=[],this.columnsToRenderRight=[],this.columnsToRenderCenter=[],this.colsWithinViewport=[],this.headerColsWithinViewport=[],this.extractedLayoutVersion=-1,this.extractedGroupVersion=-1}isColumnInRowViewport(e){if(e.isAutoHeight())return!0;const t=e.getLeft()||0;return t+e.getActualWidth()>=this.viewportLeft-200&&t<=this.viewportRight+200}getViewportColumns(){const{leftCols:e,rightCols:t}=this.visibleCols;return this.colsWithinViewport.concat(e,t)}getColsWithinViewport(e,t){if(this.visibleCols.colSpanColCount===0)return this.colsWithinViewport;const o=this.isColumnVirtualisationSuppressed()?null:this.inRowViewport;return ff(e,this.visibleCols.centerCols,t,o,this.emptySpaceBeforeColumn)}checkViewportColumns(e=!1){const{leftCols:t,rightCols:o,layoutVersion:r}=this.visibleCols,i=this.colGroupSvc?.groupVersion??0;this.extractViewportColumns(),this.extractedLayoutVersion=r;const a=!je(this.columnsToRenderCenter,this.colsWithinViewport)||!je(this.columnsToRenderLeft,t)||!je(this.columnsToRenderRight,o);(a||i!==this.extractedGroupVersion)&&(this.extractedGroupVersion=i,this.calculateHeaderRows()),a&&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,this.rowsOfHeadersToRenderLeft=Vc(e),this.rowsOfHeadersToRenderRight=Vc(t),this.rowsOfHeadersToRenderCenter=Vc(this.headerColsWithinViewport),++this.headerRowsVersion}},Ua=new Set,YR=(e,t,o)=>{for(;e;){if(Ua.has(e))return;if(t&&e.isPadding()){e=e.parent;continue}const r=e.getProvidedColumnGroup().getLevel(),i=o[r];i?i.push(e):o[r]=[e],Ua.add(e),e=e.parent}},Vc=e=>{Ua.clear();const t=[];let o=null,r=!1;for(let i=0,a=e.length;i<a;++i){const n=e[i],s=n.parent,l=n.isSpanHeaderHeight();(s!==o||l!==r)&&(o=s,r=l,YR(s,l,t))}return Ua.clear(),t},QR=e=>{for(;e;){if(e.isAutoHeaderHeight())return!0;e=e.parent}return!1},Zm=class{constructor(){this.existingIds=Object.create(null)}getInstanceIdForKey(e){const t=(this.existingIds[e]??-1)+1;return this.existingIds[e]=t,t}},ZR=class extends x{constructor(){super(...arguments),this.beanName="visibleCols",this.lastFlexIndex=-1,this.treeLeft=[],this.treeRight=[],this.treeCenter=[],this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.autoHeightCols=[],this.colSpanColCount=0,this.rowSpanCols=[],this.headerGroupRowCount=0,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.totalWidth=0,this.layoutVersion=0,this.cellsMoved=!1,this.pendingLayoutSource=null,this.displayedColsVersion=0,this.lastLeftPinnedCol=null,this.firstRightPinnedCol=null}wireBeans(e){this.colModel=e.colModel,this.colGroupSvc=e.colGroupSvc,this.colViewport=e.colViewport,this.ctrlsSvc=e.ctrlsSvc,this.colFlex=e.colFlex,this.colFilter=e.colFilter,this.rowRenderer=e.rowRenderer,this.rowAutoHeight=e.rowAutoHeight}refresh(e,t){const{colFlex:o,colModel:r,colViewport:i,ctrlsSvc:a}=this;t||this.buildTrees();const n=this.treeLeft,s=this.treeCenter,l=this.treeRight;let c,d,g;if(r.colsTreeDepth===0)c=n,d=s,g=l;else{c=[],d=[],g=[];for(let f=0,m=n.length;f<m;++f)bi(n[f],null,c);for(let f=0,m=s.length;f<m;++f)bi(s[f],null,d);for(let f=0,m=l.length;f<m;++f)bi(l[f],null,g)}this.leftCols=c,this.centerCols=d,this.rightCols=g;const u=this.joinCols();this.setLeftValuesOfGroups(),this.setPinnedEdges(c,g);const h=this.lastFlexIndex>=0||o?.columnsHidden;let p;if(h){const f=a?.getGridBodyCtrl()?.getViewportWidthWithoutScrollbar();let m;if(f!=null){const w=f-u.left-u.right;m={viewportWidth:w>0?w:0}}p=o?.refreshFlexedColumns(m)}return this.cellsMoved=!0,this.layoutBodyWidths(h?void 0:u),i.checkViewportColumns(!1),this.rowAutoHeight?.requestCheckAutoHeight(),this.colFilter?.refreshRedefinedFilters(),this.dispatchLayoutEvents(e),this.eventSvc.dispatchEvent({type:"displayedColumnsChanged",source:e}),p}updateBodyWidths(e,t){this.layoutBodyWidths(t),this.dispatchLayoutEvents(e)}layoutBodyWidths(e){++this.layoutVersion;const t=e?e.center:$t(this.centerCols),o=e?e.left:$t(this.leftCols),r=e?e.right:$t(this.rightCols);if(this.bodyWidth===t&&this.leftWidth===o&&this.rightWidth===r){this.cellsMoved&&(this.cellsMoved=!1,this.refreshCellPositions());return}this.bodyWidth=t,this.leftWidth=o,this.rightWidth=r,this.totalWidth=t+o+r,this.cellsMoved=!1,this.refreshCellPositions();const i=this.eventSvc;i.dispatchEvent({type:"columnContainerWidthChanged"}),i.dispatchEvent({type:"displayedColumnsWidthChanged"})}refreshCellPositions(){this.rowRenderer.refreshCellPositions(),this.ctrlsSvc.getHeaderRowContainerCtrl()?.refreshCellPositions()}dispatchLayoutEvents(e){this.colModel.colUpdateDepth===0?this.raiseLayoutEvents(e):this.pendingLayoutSource??(this.pendingLayoutSource=e)}raiseDeferredLayoutEvents(){const e=this.pendingLayoutSource;e!==null&&(this.pendingLayoutSource=null,this.raiseLayoutEvents(e))}raiseLayoutEvents(e){const t=this.colModel;Jm(t.colsList,e),t.showingPivotResult&&Jm(t.colDefList,e),t.colsTreeDepth!==0&&(Hc(this.treeLeft),Hc(this.treeCenter),Hc(this.treeRight))}setLeftValues(){const e=this.setLeftsLeftToRight(this.leftCols),t=this.setLeftsLeftToRight(this.rightCols),o=this.setLeftsLeftToRight(this.centerCols);return this.setLeftValuesOfGroups(),{left:e,center:o,right:t}}setLeftValuesOfGroups(){this.colModel.colsTreeDepth!==0&&(Bc(this.treeLeft),Bc(this.treeRight),Bc(this.treeCenter))}setPinnedEdges(e,t){const o=this.gos.get("enableRtl"),r=e.length;let i=null;r&&(i=o?e[0]:e[r-1]);let a=null;const n=t.length;n&&(a=o?t[n-1]:t[0]);const s=this.lastLeftPinnedCol,l=s!==i;l&&(s?.setLastLeftPinned(!1),i?.setLastLeftPinned(!0),this.lastLeftPinnedCol=i);const c=this.firstRightPinnedCol,d=c!==a;if(d&&(c?.setFirstRightPinned(!1),a?.setFirstRightPinned(!0),this.firstRightPinnedCol=a),l||d){const g=l?s:null,u=l?i:null,h=d?c:null,p=d?a:null;this.rowRenderer.refreshPinnedEdgeCells(g,u,h,p),this.ctrlsSvc.getHeaderRowContainerCtrl()?.refreshPinnedEdgeCells(g,u,h,p)}}buildTrees(){const{colModel:e,colGroupSvc:t}=this,{leftCols:o,rightCols:r,centerCols:i,leftCount:a,centerCount:n}=this.partitionVisibleCols();this.stampAriaColIndexes(a,n);const s=new Zm;if(t){const l=e.nextBuildToken();this.treeLeft=t.createGroups(o,s,"left",l),this.treeRight=t.createGroups(r,s,"right",l),this.treeCenter=t.createGroups(i,s,null,l),t.prune(l)}else this.treeLeft=o,this.treeRight=r,this.treeCenter=i}partitionVisibleCols(){const e=this.colModel,t=[],o=[],r=[];let i=0,a=0;if(!e.ready)return{leftCols:t,rightCols:o,centerCols:r,leftCount:i,centerCount:a};const n=this.beans,s=e.pivotMode&&!e.showingPivotResult,l=n.selectionColSvc?.isEnabled()??!1,c=Ku(n),d=Qu(this.gos),g=e.colsList;let u=null,h=!1;for(let p=0,f=g.length;p<f;++p){const m=g[p],w=m.colKind,v=m.pinnedLane;v!==2&&(v===0?++i:++a);const C=w==="auto-group";let b;if(s?b=m.aggregationActive||C&&(!d||m.visible)||l&&w==="selection"||c&&w==="row-number":b=C&&!d||m.visible,!!b){if(w==="selection"&&m.visible&&!h){u=m;continue}if(w!=="selection"&&w!=="row-number"&&(h=!0),u!==null&&w!=="row-number"){const S=u.pinnedLane;S===2?o.push(u):S===0?t.push(u):r.push(u),u=null}v===2?o.push(m):v===0?t.push(m):r.push(m)}}return{leftCols:t,rightCols:o,centerCols:r,leftCount:i,centerCount:a}}clear(){const e=this.allCols;for(let t=0,o=e.length;t<o;++t){const r=e[t];r.allColsIndex=-1,r.colSpanIndex=-1,r.displayed=!1,r.left=null}this.leftCols=[],this.rightCols=[],this.centerCols=[],this.allCols=[],this.lastFlexIndex=-1,++this.displayedColsVersion,this.autoHeightCols.length=0,this.colSpanColCount=0,this.rowSpanCols.length=0}stampAriaColIndexes(e,t){const o=this.colModel.colsList;let r=1,i=e+1,a=e+t+1;for(let n=0,s=o.length;n<s;++n){const l=o[n],c=l.pinnedLane;c===2?l.ariaColIndex=a++:c===0?l.ariaColIndex=r++:l.ariaColIndex=i++}}joinCols(){const{leftCols:e,centerCols:t,rightCols:o}=this,r=this.allCols;for(let c=0,d=r.length;c<d;++c){const g=r[c];g.allColsIndex=-1,g.colSpanIndex=-1,g.displayed=!1,g.left=null}const i=[];this.autoHeightCols.length=0,this.colSpanColCount=0,this.rowSpanCols.length=0,this.lastFlexIndex=-1;const a=!!this.gos.get("hidePaddedHeaderRows");this.headerGroupRowCount=a?0:this.colModel.colsTreeDepth;let n,s,l;return this.gos.get("enableRtl")?(l=this.layoutSection(o,i,a),s=this.layoutSection(t,i,a),n=this.layoutSection(e,i,a)):(n=this.layoutSection(e,i,a),s=this.layoutSection(t,i,a),l=this.layoutSection(o,i,a)),this.allCols=i,++this.displayedColsVersion,{left:n,center:s,right:l}}layoutSection(e,t,o){const{autoHeightCols:r,rowSpanCols:i}=this;let a=0,n=null;for(let s=0,l=e.length;s<l;++s){const c=e[s];if(c.allColsIndex=t.length,c.displayed=!0,c.oldLeft=c.reportedLeft,c.left=a,t.push(c),c.colDef.autoHeight&&r.push(c),c.colSpan!=null?(c.colSpanIndex=this.colSpanColCount,++this.colSpanColCount):c.colSpanIndex=-1,c.rowSpan!=null&&i.push(c),c.pinned==null){const d=c.flex;d!=null&&d>0&&(this.lastFlexIndex=c.allColsIndex)}if(o){const d=c.parent;if(d!==null&&d!==n){n=d;const g=JR(d);g>this.headerGroupRowCount&&(this.headerGroupRowCount=g)}}a+=c.actualWidth}return a}setLeftsLeftToRight(e){let t=0,o=!1;for(let r=0,i=e.length;r<i;++r){const a=e[r];o||(o=a.left!==t),a.oldLeft=a.reportedLeft,a.left=t,t+=a.actualWidth}return this.cellsMoved||(this.cellsMoved=o),t}getColBefore(e){const t=e.allColsIndex;return t>0?this.allCols[t-1]:null}getColAfter(e){const t=this.allCols,o=e.allColsIndex;return o<t.length-1?t[o+1]:null}getLeftStickyColumnContainerWidth(){return this.leftCols.length?$t(this.leftCols):this.leftWidth}getRightStickyColumnContainerWidth(){return this.rightCols.length?$t(this.rightCols):this.rightWidth}isColAtEdge(e,t){const o=this.allCols,r=o.length;if(!r)return!1;const i=t==="first",a=tt(e)?Mo(e,!0,!i):e;return a?(i?o[0]:o[r-1])===a:!1}},bi=(e,t,o)=>{if(e.isColumn){o.push(e);return}const r=e.isPadding()?t:e,i=r?.providedColumnGroup??null,a=i?.expandable,n=e.displayedChildren,s=n?.length??0;let l=null,c=0;const d=e.children;if(d!==null){const g=a&&i.expanded;for(let u=0,h=d.length;u<h;++u){const p=d[u];if(a){const f=p.getColumnGroupShow();if(f==="open"&&!g||f==="closed"&&g)continue;const m=o.length;if(bi(p,r,o),o.length===m)continue}else bi(p,r,o);l!==null?l.push(p):(c>=s||n[c]!==p)&&(n===null?l=[p]:(l=n.slice(0,c),l.push(p))),++c}}(l!==null||c!==s)&&(e.displayedChildren=l??n.slice(0,c))},JR=e=>{let t=e;for(;t;){const o=t.providedColumnGroup;if(!o.padding)return o.level+1;t=t.parent}return 0},Jm=(e,t)=>{for(let o=0,r=e.length;o<r;++o){const i=e[o];i.isAlive()&&i.dispatchLayoutEvents(t)}},Bc=e=>{for(let t=0,o=e.length;t<o;++t){const r=e[t];tt(r)&&r.setLeftFromChildren()}},Hc=e=>{for(let t=0,o=e.length;t<o;++t){const r=e[t];tt(r)&&r.dispatchLayoutEvents()}},XR=class extends x{constructor(){super(...arguments),this.beanName="agCompUtils"}adaptFunction(e,t){if(!e.supportsJsFunction)return null;class o{refresh(){return!1}getGui(){return this.eGui}init(i){const a=t(i),n=typeof a;if(n==="string"||n==="number"||n==="boolean"){this.eGui=Yn("<span>"+a+"</span>");return}if(a==null){this.eGui=G({tag:"span"});return}this.eGui=a}}return o}},$R={moduleName:"CellRendererFunction",version:R,beans:[XR]};function eF(e){return typeof e=="object"&&!!e.getComp}var tF=class extends I1{constructor(){super(...arguments),this.agGridDefaults={},this.agGridDefaultOverrides={},this.jsComps={},this.selectors={},this.icons={}}postConstruct(){const e=this.gos.get("components");if(e!=null)for(const t of Object.keys(e))this.jsComps[t]=e[t]}registerModule(e){const{icons:t,userComponents:o,dynamicBeans:r,selectors:i}=e;if(o){const a=(n,s,l,c)=>{this.agGridDefaults[n]=s,(l||c)&&(this.agGridDefaultOverrides[n]={params:l,processParams:c})};for(const n of Object.keys(o)){let s=o[n];if(eF(s)&&(s=s.getComp(this.beans)),typeof s=="object"){const{classImp:l,params:c,processParams:d}=s;a(n,l,c,d)}else a(n,s)}}this.registerDynamicBeans(r);for(const a of i??[])this.selectors[a.selector]=a;if(t)for(const a of Object.keys(t))this.icons[a]=t[a]}getUserComponent(e,t){const o=(s,l,c,d)=>({componentFromFramework:l,component:s,params:c,processParams:d}),{frameworkOverrides:r}=this.beans,i=r.frameworkComponent(t,this.gos.get("components"),e);if(i!=null)return o(i,!0);const a=this.jsComps[t];if(a){const s=r.isFrameworkComponent(a);return o(a,s)}const n=this.agGridDefaults[t];if(n){const s=this.agGridDefaultOverrides[t];return o(n,!1,s?.params,s?.processParams)}return this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),null}hasUserComponent(e,t){return this.jsComps[t]||this.agGridDefaults[t]||this.beans.frameworkOverrides.frameworkComponent(t,this.gos.get("components"),e)!=null?!0:(this.beans.validation?.missingUserComponent(e,t,this.agGridDefaults,this.jsComps),!1)}getSelector(e){return this.selectors[e]}getIcon(e){return this.icons[e]}createDynamicError(e,t){const o=this.beans.context.getId();return t?Ha(o,279,{name:e}):this.beans.validation?.missingDynamicBean(e)??Ha(o,256)}};function oF(e){return e?e.prototype&&"getGui"in e.prototype:!1}function rF(e,t,o,r){const{name:i}=o;let a,n,s,l,c,d;if(t){const g=t,u=g[i+"Selector"],h=u?u(r):null,p=f=>{typeof f=="string"?a=f:f!=null&&f!==!0&&(e.isFrameworkComponent(f)?s=f:n=f)};h?(p(h.component),l=h.params,c=h.popup,d=h.popupPosition):p(g[i])}return{compName:a,jsComp:n,fwComp:s,paramsFromSelector:l,popupFromSelector:c,popupPositionFromSelector:d}}var iF=class extends x{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.frameworkCompWrapper?.setGridId?.(e.context.getId()),this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,o,r=!1){return this.getCompDetails(this.gridOptions,e,t,o,r)}getCompDetails(e,t,o,r,i=!1){const{name:a,supportsJsFunction:n}=t;let{compName:s,jsComp:l,fwComp:c,paramsFromSelector:d,popupFromSelector:g,popupPositionFromSelector:u}=rF(this.beans.frameworkOverrides,e,t,r),h,p;const f=C=>{const b=this.registry.getUserComponent(a,C);b&&(l=b.componentFromFramework?void 0:b.component,c=b.componentFromFramework?b.component:void 0,h=b.params,p=b.processParams)};if(s!=null&&f(s),l==null&&c==null&&o!=null&&f(o),l&&n&&!oF(l)&&(l=this.agCompUtils?.adaptFunction(t,l)),!l&&!c){const{validation:C}=this.beans;i&&(s!==o||!o)?s?C?.isProvidedUserComp(s)||this.error(50,{compName:s}):o?C||this.error(260,{...this.gos.getModuleErrorParams(),propName:a,compName:o}):this.error(216,{name:a}):o&&!C&&this.error(146,{comp:o});return}const m=this.mergeParams(e,t,r,d,h,p),w=l==null,v=l??c;return{componentFromFramework:w,componentClass:v,params:m,type:t,popupFromSelector:g,popupPositionFromSelector:u,newAgStackInstance:()=>this.newAgStackInstance(v,w,m,t)}}newAgStackInstance(e,t,o,r){const i=!t;let a;i?a=new e:a=this.frameworkCompWrapper.wrap(e,r.mandatoryMethods,r.optionalMethods,r),this.createBean(a);const n=a.init?.(o);return n==null?oe.resolve(a):n.then(()=>a)}mergeParams(e,t,o,r=null,i,a){const n={...o,...i},l=e?.[t.name+"Params"];if(typeof l=="function"){const c=l(o);Ae(n,c)}else typeof l=="object"&&Ae(n,l);return Ae(n,r),a?a(n,this.beans):n}},Xm=["gridCtrl","gridBodyCtrl",...Wl,"fakeHScrollComp","fakeVScrollComp","gridHeaderCtrl","headerRowContainerCtrl"],aF=class extends x{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=this.params;for(let t=0,o=Xm.length;t<o;++t)if(!e[Xm[t]]?.isAlive()){this.ready=!1;return}this.ready=!0}whenReady(e,t){this.ready?t(this.params):this.readyCallbacks.push(t),e.addDestroyFunc(()=>{const o=this.readyCallbacks.indexOf(t);o>=0&&this.readyCallbacks.splice(o,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}getHeaderRowContainerCtrl(){return this.params.headerRowContainerCtrl}getScrollFeature(){return this.getGridBodyCtrl().scrollFeature}},nF='.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-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{flex:1 1 auto;height:100%;min-width:0;overflow:hidden;position:relative}:where(.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible))>.ag-body-horizontal-scroll-viewport,:where(.ag-body-vertical-scroll:not(.ag-scrollbar-invisible))>.ag-body-vertical-scroll-viewport{background-color:var(--ag-data-background-color)}:where(.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible))>.ag-body-horizontal-scroll-end-spacer,:where(.ag-body-horizontal-scroll:not(.ag-scrollbar-invisible))>.ag-body-horizontal-scroll-viewport{border-top:var(--ag-body-scrollbar-border)}.ag-scrollbar-probe,:where(.ag-body-vertical-scroll:not(.ag-scrollbar-invisible))>.ag-body-vertical-scroll-viewport{border-inline-start:var(--ag-body-scrollbar-border)}.ag-viewport{position:relative}.ag-grid-viewport{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;position:relative;-webkit-overflow-scrolling:touch;-ms-overflow-style:none!important;scrollbar-width:none!important}.ag-grid-viewport:where(.ag-pinned-columns-overflow){overflow-x:hidden}.ag-grid-viewport::-webkit-scrollbar{display:none!important}.ag-grid-scrollable-area{display:flex;flex-direction:column;min-height:100%;min-width:100%;position:relative}.ag-spanning-container{height:100%;pointer-events:none;position:absolute;top:0}.ag-grid-scrolling-container{display:block;isolation:isolate;min-height:100%;width:100%}.ag-body-horizontal-scroll-viewport{overflow-x:scroll}.ag-body-vertical-scroll-viewport{overflow-y:scroll;pointer-events:all}.ag-body-horizontal-scroll-container,.ag-body-vertical-scroll-container,.ag-grid-scrolling-container{position:relative}.ag-body-horizontal-scroll-container{height:100%}.ag-body-vertical-scroll-container{width:100%}.ag-full-width-anchor{height:100%;position:sticky;width:var(--ag-internal-grid-viewport-width,100%)}:where(.ag-ltr) .ag-full-width-anchor{left:0}:where(.ag-rtl) .ag-full-width-anchor{right:0}.ag-grid-scrolling-rows{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;&:where(.ag-scrollbar-invisible){bottom:0;position:absolute;z-index:2;&:where(.ag-apple-scrollbar){opacity:0;transition:opacity .4s;visibility:hidden;&:where(.ag-scrollbar-active),&:where(.ag-scrollbar-scrolling){opacity:1;visibility:visible}}}}.ag-body-horizontal-scroll{flex:none;width:100%;&:where(.ag-scrollbar-invisible){left:0;right:0}}.ag-body-horizontal-scroll-end-spacer{flex:0 0 auto;min-width:0;overflow:scroll}.ag-body-vertical-scroll{flex-direction:column;pointer-events:none;position:absolute;top:0;z-index:2}:where(.ag-ltr) .ag-body-vertical-scroll{right:0}:where(.ag-rtl) .ag-body-vertical-scroll{left:0}.ag-body-vertical-scroll-start-spacer{border-bottom:var(--ag-header-row-border);flex:none;opacity:0}:where(.ag-ltr .ag-has-right-pinned-cols),:where(.ag-rtl .ag-has-left-pinned-cols){.ag-body-vertical-scroll-start-spacer{background-color:var(--ag-background-color);background-image:linear-gradient(0deg,var(--ag-header-background-color),var(--ag-header-background-color));opacity:1;pointer-events:all}}: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-header-row,.ag-row:where(:not(.ag-full-width-row)),.ag-spanned-row,:where(.ag-row.ag-embedded-full-width-row){display:flex;width:100%}:where(.ag-header-row):after,:where(.ag-row.ag-embedded-full-width-row:after),:where(.ag-row:not(.ag-full-width-row)):after,:where(.ag-spanned-row):after{align-self:stretch;content:"";flex:1 0 0px}:where(.ag-row.ag-embedded-full-width-row:after),:where(.ag-row:not(.ag-header-row,.ag-full-width-row)):after{background-color:var(--ag-data-background-color)}:where(.ag-header-row):after{background-color:var(--ag-header-background-color)}.ag-header{border-bottom:var(--ag-header-row-border);left:0;position:absolute;right:0;top:0;z-index:1}.ag-grid-pinned-left-cells,.ag-grid-pinned-right-cells,.ag-grid-scrolling-cells{height:100%;position:relative;white-space:nowrap}.ag-grid-scrolling-cells{flex:0 0 auto;z-index:0}:where(.ag-row.ag-embedded-full-width-row)>.ag-grid-scrolling-cells{flex:1 0 auto;margin-right:var(--ag-internal-pinned-right-sticky-offset,0)}.ag-grid-pinned-left-cells,.ag-grid-pinned-right-cells{flex:0 0 auto;overflow:hidden;position:sticky;z-index:2}.ag-grid-pinned-left-cells{left:var(--ag-internal-pinned-left-sticky-offset,0)}.ag-grid-pinned-right-cells{right:var(--ag-internal-pinned-right-sticky-offset,0)}:where(.ag-header-row),:where(.ag-row.ag-embedded-full-width-row),:where(.ag-row:not(.ag-full-width-row)),:where(.ag-spanned-row){>.ag-grid-pinned-right-cells{order:1}}.ag-rtl{:where(.ag-header-row),:where(.ag-row.ag-embedded-full-width-row),:where(.ag-row:not(.ag-full-width-row)),:where(.ag-spanned-row){>:where(.ag-grid-scrolling-cells){order:1}}:where(.ag-row .ag-grid-scrolling-cells),:where(.ag-spanned-row .ag-grid-scrolling-cells){margin-left:var(--ag-internal-pinned-left-sticky-offset,0)}}.ag-spanning-container .ag-grid-scrolling-cells{z-index:1}.ag-spanning-container .ag-grid-pinned-left-cells,.ag-spanning-container .ag-grid-pinned-right-cells{overflow:visible;z-index:3}.ag-row-position-absolute{position:absolute}.ag-row-position-relative{position:relative}.ag-row-inline-editing{z-index:1}.ag-row-dragging{z-index:4}.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-spanning-container .ag-cell{pointer-events:auto}.ag-cell-value{flex:1 1 auto}.ag-cell-value:where(:not(.ag-allow-overflow)),.ag-group-value{overflow:hidden;text-overflow:ellipsis;:where(.ag-selectable) &{min-width:0;overflow:clip}}.ag-cell-wrap-text{overflow-wrap:break-word;white-space:normal}:where(.ag-cell) .ag-icon{display:inline-block;vertical-align:middle}.ag-grid-pinned-bottom-rows,.ag-grid-pinned-top-rows{background-color:var(--ag-data-background-color);position:sticky;width:100%;z-index:2}.ag-grid-pinned-top-rows{top:0;white-space:nowrap}.ag-grid-pinned-bottom-rows{border-bottom:none;bottom:0;box-sizing:content-box!important;white-space:nowrap}.ag-grid-pinned-bottom-rows-container,.ag-grid-pinned-top-rows-container,.ag-grid-sticky-bottom-rows-container,.ag-grid-sticky-top-rows-container{background-color:var(--ag-data-background-color);overflow:visible;position:absolute;white-space:nowrap;width:100%}.ag-grid-pinned-top-rows-container{border-bottom:var(--ag-pinned-row-border);display:flex;z-index:1}.ag-grid-pinned-bottom-rows-container{border-top:var(--ag-pinned-row-border);display:flex}.ag-extra-rows-container{position:absolute;width:100%}.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;:where(.ag-column-group-closed-icon),:where(.ag-column-group-opened-icon){cursor:pointer}}:where(.ag-ltr){direction:ltr;.ag-grid-pinned-bottom-rows,.ag-grid-pinned-bottom-rows-container,.ag-grid-pinned-top-rows,.ag-grid-pinned-top-rows-container,.ag-grid-scrolling-rows,.ag-grid-sticky-bottom-rows-container,.ag-grid-sticky-top-rows-container{flex-direction:row}.ag-header-row,.ag-row:where(.ag-embedded-full-width-row),.ag-row:where(:not(.ag-full-width-row)),.ag-spanned-row{flex-direction:row}}:where(.ag-rtl){direction:rtl;text-align:right;.ag-grid-pinned-bottom-rows,.ag-grid-pinned-bottom-rows-container,.ag-grid-pinned-top-rows,.ag-grid-pinned-top-rows-container,.ag-grid-scrolling-rows,.ag-grid-sticky-bottom-rows-container,.ag-grid-sticky-top-rows-container{flex-direction:row-reverse}.ag-header-row,.ag-row:where(.ag-embedded-full-width-row),.ag-row:where(:not(.ag-full-width-row)),.ag-spanned-row{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-show-values-as-inapplicable{opacity:.5}: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 var(--ag-internal-accessible-color-transition-mode)}.ag-value-change-value-highlight{background-color:var(--ag-value-change-value-highlight-background-color);transition:background-color .1s var(--ag-internal-accessible-color-transition-mode);@media (forced-colors:active){background-color:Mark;color:MarkText}}.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-cell-font-size);font-weight:var(--ag-cell-font-weight);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{height:var(--ag-row-height);width:100%;&.ag-row-editing-invalid{background-color:var(--ag-full-row-edit-invalid-background-color)}}.ag-row.ag-full-width-row:not(.ag-embedded-full-width-row){border-bottom:var(--ag-row-border)}.ag-row:where(.ag-embedded-full-width-row),.ag-row:where(:not(.ag-header-row,.ag-full-width-row)){>.ag-grid-pinned-left-cells,>.ag-grid-pinned-right-cells,>.ag-grid-scrolling-cells{border-bottom:var(--ag-row-border)}}:where(.ag-grid-pinned-bottom-rows-container){.ag-row-last:where(.ag-embedded-full-width-row),.ag-row-last:where(:not(.ag-header-row,.ag-full-width-row)){>.ag-grid-pinned-left-cells,>.ag-grid-pinned-right-cells,>.ag-grid-scrolling-cells{border-bottom:none}}}:where(.ag-grid-sticky-bottom-rows-container){.ag-row:where(.ag-embedded-full-width-row),.ag-row:where(:not(.ag-header-row,.ag-full-width-row)){>.ag-grid-pinned-left-cells,>.ag-grid-pinned-right-cells,>.ag-grid-scrolling-cells{border-bottom:none;border-top:var(--ag-row-border)}}}:where(.ag-row:not(.ag-header-row)){background-color:var(--ag-data-background-color);--ag-internal-row-overlay-color:transparent;--ag-internal-row-overlay-image:none}.ag-grid-container-wrapper{height:100%;width:100%}.ag-row:not(.ag-header-row){>.ag-grid-pinned-left-cells,>.ag-grid-pinned-right-cells{background-color:inherit;background-image:linear-gradient(var(--ag-data-background-color),var(--ag-data-background-color))}>.ag-grid-pinned-left-cells>.ag-grid-container-wrapper,>.ag-grid-pinned-right-cells>.ag-grid-container-wrapper{background-color:inherit}}.ag-body-vertical-content-no-gap .ag-has-bottom-pinned-rows{.ag-grid-pinned-bottom-rows .ag-grid-sticky-bottom-rows-container .ag-row-last,.ag-grid-scrolling-container .ag-row-last{>.ag-grid-pinned-left-cells,>.ag-grid-pinned-right-cells,>.ag-grid-scrolling-cells{border-bottom:none}}}.ag-grid-scrollable-area.ag-has-top-pinned-rows .ag-grid-pinned-top-rows>.ag-grid-pinned-top-rows-container>.ag-row.ag-row-last{>.ag-grid-pinned-left-cells,>.ag-grid-pinned-right-cells,>.ag-grid-scrolling-cells{border-bottom:none}}.ag-body-vertical-content-no-gap>.ag-grid-viewport>.ag-grid-scrollable-area>.ag-grid-scrolling-rows>.ag-grid-scrolling-container>.ag-row-last.ag-full-width-row{border-bottom-color:transparent}.ag-body-vertical-content-no-gap>.ag-grid-viewport>.ag-grid-scrollable-area>.ag-grid-scrolling-rows>.ag-grid-scrolling-container>.ag-row-last:not(.ag-full-width-row){>.ag-grid-pinned-left-cells,>.ag-grid-pinned-right-cells,>.ag-grid-scrolling-cells{border-bottom-color:transparent}}.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;@media (forced-colors:active){border-bottom-color:Canvas;border-left-color:Canvas;border-right-color:Canvas;border-top-color:Canvas;--ag-value-change-value-highlight-background-color:Mark;--ag-range-selection-highlight-color:Mark}}: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;@media (forced-colors:active){outline:2px solid var(--ag-internal-forced-colors-cell-focus-outline-color,Highlight);outline-offset:-2px}}.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)}.ag-drag-handle-disabled{opacity:.35;pointer-events:none}:where(.ag-ltr) .ag-group-child-count{margin-left:3px}:where(.ag-rtl) .ag-group-child-count{margin-right:3px}.ag-full-width-row:not(.ag-embedded-full-width-row):after,.ag-grid-pinned-left-cells:after,.ag-grid-pinned-right-cells:after,.ag-grid-scrolling-cells:after{background-color:var(--ag-row-drag-indicator-color);border-radius:calc(var(--ag-row-drag-indicator-width)/2);content:var(--ag-internal-row-highlight-content,none);height:var(--ag-row-drag-indicator-width);inset:var(--ag-internal-row-highlight-inset,auto);inset-inline-start:anchor(--ag-internal-row-highlight-label start,0);pointer-events:none;position:absolute}.ag-root-wrapper{--ag-internal-row-highlight-content:initial;--ag-internal-row-highlight-anchor:initial;anchor-scope:--ag-internal-row-highlight-label}.ag-row-highlight-above{--ag-internal-row-highlight-content:"";--ag-internal-row-highlight-inset:0 0 auto}.ag-row-highlight-below{--ag-internal-row-highlight-content:"";--ag-internal-row-highlight-inset:auto 0 0}.ag-row-highlight-indent{--ag-internal-row-highlight-anchor:--ag-internal-row-highlight-label}:where(.ag-group-cell-all-levels)>.ag-group-value{anchor-name:var(--ag-internal-row-highlight-anchor,none)}.ag-row-highlight-inside{&.ag-full-width-row:not(.ag-embedded-full-width-row):after,>.ag-grid-pinned-left-cells:after,>.ag-grid-pinned-right-cells:after,>.ag-grid-scrolling-cells:after{--ag-internal-row-highlight-content:"";background-color:var(--ag-selected-row-background-color);border:1px solid var(--ag-range-selection-border-color);border-radius:0;height:auto;inset:0}}.ag-grid-pinned-bottom-rows-container,.ag-grid-scrolling-rows{background-color:var(--ag-data-background-color)}.ag-row-odd{background-color:var(--ag-odd-row-background-color)}.ag-row-hover:not(.ag-full-width-row),.ag-row-selected{.ag-grid-pinned-left-cells:before,.ag-grid-pinned-right-cells:before,.ag-grid-scrolling-cells:before{background-color:var(--ag-internal-row-overlay-color);background-image:var(--ag-internal-row-overlay-image);content:"";display:block;inset:0;pointer-events:none;position:absolute}}.ag-row-hover.ag-full-width-row.ag-row-group:before,.ag-row-selected.ag-full-width-row:before{background-color:var(--ag-internal-row-overlay-color);background-image:var(--ag-internal-row-overlay-image);content:"";display:block;inset:0;pointer-events:none;position:absolute}.ag-row.ag-row-selected{--ag-internal-row-overlay-color:var(--ag-selected-row-background-color)}.ag-row-hover.ag-full-width-row.ag-row-group,.ag-row-hover:not(.ag-full-width-row){--ag-internal-row-overlay-color:var(--ag-row-hover-color)}.ag-row-hover.ag-row-selected{--ag-internal-row-overlay-color:var(--ag-row-hover-color);--ag-internal-row-overlay-image:linear-gradient(var(--ag-selected-row-background-color),var(--ag-selected-row-background-color))}@media (forced-colors:active){.ag-row.ag-row-selected{--ag-internal-row-overlay-color:SelectedItem}}:where(.ag-cell).ag-column-hover{background-color:var(--ag-column-hover-color);--ag-internal-column-hover-image:linear-gradient(var(--ag-column-hover-color),var(--ag-column-hover-color))}:where(.ag-header-cell).ag-column-hover{background-image:linear-gradient(var(--ag-column-header-hover-color),var(--ag-column-header-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-grid-scrolling-rows{min-height:var(--ag-auto-height-min-body-height)}}.ag-grid-viewport{--ag-internal-header-rows-height:0px;--ag-internal-top-rows-height:0px;--ag-internal-bottom-rows-height:0px}.ag-grid-viewport.ag-layout-auto-height{max-height:calc(var(--ag-auto-height-max-body-height) + var(--ag-internal-header-rows-height) + var(--ag-internal-top-rows-height) + var(--ag-internal-bottom-rows-height))}.ag-overlay-exporting-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{background-color:var(--ag-modal-overlay-background-color)}.ag-skeleton-container{align-content:center;height:100%;width:100%}.ag-skeleton-effect{background-color:var(--ag-row-loading-skeleton-effect-color);border-radius:.25rem;height:1em;width:100%;@media (prefers-reduced-motion:no-preference){animation:ag-skeleton-loading 1.5s ease-in-out .5s infinite}@media (forced-colors:active){animation-name:ag-skeleton-loading-forced-colors;background-color:CanvasText;opacity:.3}}: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)}}@keyframes ag-skeleton-loading-forced-colors{0%{opacity:.3}50%{opacity:.12}to{opacity:.3}}.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-header{color:var(--ag-header-text-color);font-family:var(--ag-header-font-family);font-size:var(--ag-header-font-size);font-weight:var(--ag-header-font-weight)}.ag-header-row{border-bottom:none;height:var(--ag-header-height);position:absolute;.ag-grid-scrolling-cells{background-color:var(--ag-header-background-color)}>.ag-grid-pinned-left-cells,>.ag-grid-pinned-right-cells{background-image:linear-gradient(var(--ag-background-color),var(--ag-background-color))}.ag-grid-container-wrapper{background-color:var(--ag-header-background-color);height:100%;width:100%}.ag-grid-pinned-left-cells,.ag-grid-pinned-right-cells{overflow:visible}}.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,:where(.ag-header-group-cell-selectable) .ag-header-cell-comp-wrapper{cursor:pointer}:where(.ag-ltr) .ag-header-expand-icon{margin-left:4px}:where(.ag-rtl) .ag-header-expand-icon{margin-right:4px}:where(.ag-header-row.ag-header-row-not-first){:where(.ag-header-cell:not(.ag-header-span-height.ag-header-span-total,.ag-header-parent-hidden)),:where(.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:visible}:where(.ag-grid-pinned-top-rows-container.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)):before,.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)}.ag-header-cell:where(:not(.ag-floating-filter)):where(:hover):before,.ag-header-group-cell:where(:hover):before{--ag-internal-hover-color:var(--ag-header-cell-hover-background-color)}.ag-header-cell:where(:not(.ag-floating-filter)):where(.ag-header-cell-moving):before,.ag-header-group-cell: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{overflow-wrap: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-header-cell:not(.ag-right-aligned-header)){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell:not(.ag-right-aligned-header)){.ag-calculated-column-icon,.ag-header-col-ref{margin-right:var(--ag-spacing)}.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-calculated-column-icon,.ag-header-col-ref{margin-left:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-right:var(--ag-spacing)}}:where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{color:var(--ag-subtle-text-color)}}:where(.ag-ltr) :where(.ag-header-cell.ag-right-aligned-header){.ag-header-col-ref{margin-left:var(--ag-spacing)}.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-col-ref{margin-right:var(--ag-spacing)}.ag-header-label-icon,.ag-header-menu-icon{margin-left:var(--ag-spacing)}}.ag-show-values-as-dormant{opacity:.35}.ag-header-cell:after,.ag-header-group-cell:after{content:"";height:var(--ag-header-column-border-height);position:absolute;top:calc(50% - var(--ag-header-column-border-height)*.5);z-index:1;@media (forced-colors:active){height:100%;top:0}}:where(.ag-ltr) .ag-header-cell:after,:where(.ag-ltr) .ag-header-group-cell:after{border-right:var(--ag-header-column-border);right:0;@media (forced-colors:active){border-right-color:currentcolor;border-right-style:solid;border-right-width:1px}}:where(.ag-rtl) .ag-header-cell:after,:where(.ag-rtl) .ag-header-group-cell:after{border-left:var(--ag-header-column-border);left:0;@media (forced-colors:active){border-left-color:currentcolor;border-left-style:solid;border-left-width:1px}}:where(.ag-ltr) :where(.ag-body-horizontal-content-no-gap){.ag-header-cell:where(.ag-column-last):after,.ag-header-group-cell:where(.ag-column-last):after{border-right-color:transparent}}:where(.ag-rtl) :where(.ag-body-horizontal-content-no-gap){.ag-header-cell:where(.ag-column-last):after,.ag-header-group-cell:where(.ag-column-last):after{border-left-color:transparent}}.ag-header-highlight-after:after,.ag-header-highlight-before:after{background-color:var(--ag-column-drag-indicator-color);border-radius:calc(var(--ag-column-drag-indicator-width)/2);content:"";height:100%;position:absolute;top:0;width:var(--ag-column-drag-indicator-width)}: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-grid-pinned-left-cells) &{right:1px}}:where(.ag-rtl) .ag-header-highlight-after:after{left:0;:where(.ag-grid-pinned-left-cells) &{left:1px}}.ag-header-cell-resize{align-items:center;cursor:col-resize;display:flex;height:100%;position:absolute;top:0;width:8px;z-index:2}:where(.ag-ltr) .ag-header-cell-resize{right:-3px}:where(.ag-rtl) .ag-header-cell-resize{left:-3px}.ag-header-cell-resize: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:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}:where(.ag-rtl) .ag-header-cell-resize: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-grid-scrolling-rows{display:block;height:unset}&.ag-root-wrapper{container-type:normal;display:inline-block}.ag-body-horizontal-scroll,.ag-body-vertical-scroll{display:none}.ag-full-width-anchor,.ag-grid-scrollable-area,.ag-grid-scrolling-container,.ag-header-row{width:auto!important}}@media print{.ag-root-wrapper.ag-layout-print{container-type:normal;display:table;.ag-body-horizontal-scroll-viewport,.ag-grid-scrolling-container,.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{background-color:var(--ag-wrapper-background-color);border:var(--ag-wrapper-border);border-radius:var(--ag-wrapper-border-radius);container-type:inline-size;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-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)}.ag-chart-menu-icon:hover,.ag-chart-settings-next:hover,.ag-chart-settings-prev:hover,.ag-column-group-icons:hover,.ag-column-select-header-icon:hover,.ag-filter-toolpanel-expand:hover,.ag-floating-filter-button-button:hover,.ag-group-title-bar-icon:hover,.ag-has-menu-open,.ag-header-cell-filter-button:hover,.ag-header-cell-menu-button:hover,.ag-header-expand-icon:hover,.ag-panel-title-bar-button-icon:hover,.ag-panel-title-bar-button:hover,.ag-set-filter-group-icons:hover,:where(.ag-group-contracted) .ag-icon:hover,:where(.ag-group-expanded) .ag-icon: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)}:where(.ag-filter-active),:where(.ag-filter-toolpanel-group-instance-header-icon),:where(.ag-filter-toolpanel-instance-header-icon){position:relative}:where(.ag-filter-active):after,:where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-filter-toolpanel-instance-header-icon):after{background-color:var(--ag-icon-button-active-indicator-color);border-radius:50%;content:"";height:6px;position:absolute;top:-1px;width:6px;@media (forced-colors:active){background-color:CanvasText}}:where(.ag-ltr) :where(.ag-filter-active):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-ltr) :where(.ag-filter-toolpanel-instance-header-icon):after{right:-1px}:where(.ag-rtl) :where(.ag-filter-active):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-group-instance-header-icon):after,:where(.ag-rtl) :where(.ag-filter-toolpanel-instance-header-icon):after{left:-1px}.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);: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)}}',$m={wrapperBorder:!0,bodyScrollbarBorder:!1,rowBorder:!0,headerRowBorder:!0,footerRowBorder:{ref:"rowBorder"},grandTotalRowBorder:!1,columnBorder:{style:"solid",width:1,color:"transparent"},headerColumnBorder:!1,headerColumnBorderHeight:"100%",pinnedColumnBorder:!0,pinnedRowBorder:!0,sidePanelBorder:!0,sideBarPanelWidth:250,sideBarPanelAnimationDuration:0,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:re,sideButtonSelectedTextColor:{ref:"sideButtonTextColor"},sideButtonBorder:"solid 1px transparent",sideButtonSelectedBorder:!0,sideButtonLeftPadding:{ref:"spacing"},sideButtonRightPadding:{ref:"spacing"},sideButtonVerticalPadding:{calc:"spacing * 3"},cellFontFamily:{ref:"fontFamily"},cellFontSize:{ref:"dataFontSize"},cellFontWeight:{ref:"fontWeight"},headerCellHoverBackgroundColor:"transparent",headerCellMovingBackgroundColor:{ref:"headerCellHoverBackgroundColor"},headerCellBackgroundTransitionDuration:"0.2s",cellTextColor:{ref:"textColor"},rangeSelectionBorderStyle:"solid",rangeSelectionBorderColor:ce,rangeSelectionBackgroundColor:De(.2),rangeSelectionChartBackgroundColor:"#0058FF1A",rangeSelectionChartCategoryBackgroundColor:"#00FF841A",rangeSelectionHighlightColor:De(.5),rangeHeaderHighlightColor:f1(.08),calculatedColumnHighlightColor:De(.12),columnHeaderEditHighlightColor:De(.12),calculatedColumnParentSuggestionColor:le(.75),calculatedColumnSuggestionListWidth:200,calculatedColumnReferenceColor:"#3269c6",calculatedColumnFunctionColor:"#007c1f",calculatedColumnOperatorColor:{ref:"foregroundColor"},calculatedColumnErrorUnderlineColor:{ref:"invalidColor"},rowNumbersSelectedColor:De(.5),rowHeaderHoverColor:{ref:"rowHoverColor"},columnHoverColor:De(.05),columnHeaderHoverColor:{ref:"columnHoverColor"},selectedRowBackgroundColor:De(.12),modalOverlayBackgroundColor:{ref:"backgroundColor",mix:.66},dataBackgroundColor:re,oddRowBackgroundColor:{ref:"dataBackgroundColor"},wrapperBackgroundColor:re,wrapperBorderRadius:8,cellHorizontalPadding:{calc:"spacing * 2 * cellHorizontalPaddingScale"},cellWidgetSpacing:{calc:"spacing * 1.5"},cellHorizontalPaddingScale:1,autoHeightMinBodyHeight:150,autoHeightMaxBodyHeight:"none",rowGroupIndentSize:{calc:"cellWidgetSpacing + iconSize"},valueChangeDeltaUpColor:"#43a047",valueChangeDeltaDownColor:"#e53935",valueChangeValueHighlightBackgroundColor:"#16a08580",rowHeight:{calc:"max(iconSize, cellFontSize) + spacing * 3.25 * rowVerticalPaddingScale"},rowVerticalPaddingScale:1,paginationPanelHeight:{calc:"pickerFieldHeight + spacing * 1.25"},dragHandleColor:le(.7),headerColumnResizeHandleHeight:"30%",headerColumnResizeHandleWidth:2,headerColumnResizeHandleColor:{ref:"borderColor"},iconButtonColor:{ref:"iconColor"},iconButtonBackgroundColor:"transparent",iconButtonBackgroundSpread:4,iconButtonBorderRadius:1,iconButtonHoverColor:{ref:"iconButtonColor"},iconButtonHoverBackgroundColor:le(.1),iconButtonActiveColor:ce,iconButtonActiveBackgroundColor:De(.28),iconButtonActiveIndicatorColor:ce,setFilterIndentSize:{ref:"iconSize"},chartMenuPanelWidth:260,chartMenuLabelColor:le(.8),cellEditingBorder:{color:ce},cellEditingShadow:{ref:"cardShadow"},fullRowEditInvalidBackgroundColor:{ref:"invalidColor",onto:"backgroundColor",mix:.25},cellBatchEditBackgroundColor:"rgba(220 181 139 / 16%)",cellBatchEditTextColor:"#422f00",rowBatchEditBackgroundColor:{ref:"cellBatchEditBackgroundColor"},rowBatchEditTextColor:{ref:"cellBatchEditTextColor"},columnSelectIndentSize:{ref:"iconSize"},toolbarBackgroundColor:{ref:"headerBackgroundColor"},toolbarTextColor:{ref:"headerTextColor"},toolbarSeparatorBorder:!0,toolPanelSeparatorBorder:!0,columnDropCellBackgroundColor:le(.07),columnDropCellTextColor:{ref:"textColor"},columnDropCellDragHandleColor:{ref:"textColor"},columnDropCellBorder:{color:le(.13)},selectCellBackgroundColor:le(.07),selectCellBorder:{color:le(.13)},advancedFilterBuilderButtonBarBorder:!0,advancedFilterBuilderIndentSize:{calc:"spacing * 2 + iconSize"},advancedFilterBuilderJoinPillColor:"#f08e8d",advancedFilterBuilderColumnPillColor:"#a6e194",advancedFilterBuilderOptionPillColor:"#f3c08b",advancedFilterBuilderValuePillColor:"#85c0e4",filterPanelApplyButtonColor:re,filterPanelApplyButtonBackgroundColor:ce,columnPanelApplyButtonColor:re,columnPanelApplyButtonBackgroundColor:ce,filterPanelCardSubtleColor:{ref:"textColor",mix:.7},filterPanelCardSubtleHoverColor:{ref:"textColor"},findMatchColor:Pe,findMatchBackgroundColor:"#ffff00",findActiveMatchColor:Pe,findActiveMatchBackgroundColor:"#ffa500",filterToolPanelGroupIndent:{ref:"spacing"},rowLoadingSkeletonEffectColor:le(.15),statusBarLabelColor:Pe,statusBarLabelFontWeight:500,statusBarValueColor:Pe,statusBarValueFontWeight:500,pinnedSourceRowTextColor:{ref:"textColor"},pinnedSourceRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedSourceRowFontWeight:600,pinnedRowFontWeight:600,pinnedRowBackgroundColor:{ref:"dataBackgroundColor"},pinnedRowTextColor:{ref:"textColor"},rowDragIndicatorColor:{ref:"rangeSelectionBorderColor"},rowDragIndicatorWidth:2,columnDragIndicatorColor:{ref:"accentColor"},columnDragIndicatorWidth:2,formulaToken1Color:"#3269c6",formulaToken1BackgroundColor:{ref:"formulaToken1Color",mix:.08},formulaToken1Border:{color:{ref:"formulaToken1Color"}},formulaToken2Color:"#c0343f",formulaToken2BackgroundColor:{ref:"formulaToken2Color",mix:.06},formulaToken2Border:{color:{ref:"formulaToken2Color"}},formulaToken3Color:"#8156b8",formulaToken3BackgroundColor:{ref:"formulaToken3Color",mix:.08},formulaToken3Border:{color:{ref:"formulaToken3Color"}},formulaToken4Color:"#007c1f",formulaToken4BackgroundColor:{ref:"formulaToken4Color",mix:.06},formulaToken4Border:{color:{ref:"formulaToken4Color"}},formulaToken5Color:"#b03e85",formulaToken5BackgroundColor:{ref:"formulaToken5Color",mix:.08},formulaToken5Border:{color:{ref:"formulaToken5Color"}},formulaToken6Color:"#b74900",formulaToken6BackgroundColor:{ref:"formulaToken6Color",mix:.06},formulaToken6Border:{color:{ref:"formulaToken6Color"}},formulaToken7Color:"#247492",formulaToken7BackgroundColor:{ref:"formulaToken7Color",mix:.08},formulaToken7Border:{color:{ref:"formulaToken7Color"}},noteIndicatorColor:{ref:"accentColor"},noteIndicatorSize:"8px",notePopupBackgroundColor:{ref:"menuBackgroundColor"},notePopupTextColor:{ref:"menuTextColor",mix:.75},notePopupInputTextColor:{ref:"inputTextColor"},notePopupInputBackgroundColor:{ref:"inputBackgroundColor"},notePopupBorder:{ref:"dialogBorder"},notePopupPadding:{calc:"spacing * 0.5"}},sF={warn:(...e)=>{uc(e[0],e[1])},error:(...e)=>{hc(e[0],e[1])},preInitErr:(...e)=>{Na(e[0],e[2],e[1])}},Ci=()=>R1(sF).withParams($m),_a=":where(.ag-button){background:none;border:none;color:inherit;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;&:focus-visible{box-shadow:var(--ag-focus-shadow);outline:var(--ag-internal-accessible-no-outline,revert)}}:where(.ag-button:not(:disabled)){cursor:pointer}.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);font-weight:var(--ag-button-font-weight);padding:var(--ag-button-vertical-padding) var(--ag-button-horizontal-padding)}.ag-standard-button:hover:where(:not(:disabled)){background-color:var(--ag-button-hover-background-color);border:var(--ag-button-hover-border);color:var(--ag-button-hover-text-color)}.ag-standard-button:active{background-color:var(--ag-button-active-background-color);border:var(--ag-button-active-border);color:var(--ag-button-active-text-color)}.ag-standard-button:disabled{background-color:var(--ag-button-disabled-background-color);border:var(--ag-button-disabled-border);color:var(--ag-button-disabled-text-color)}",ja={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"}},lF=()=>$({feature:"buttonStyle",params:ja,css:_a}),ev=lF(),cF=()=>$({feature:"buttonStyle",params:{...ja,buttonBackgroundColor:re,buttonBorder:!0,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBorder:{color:ce}},css:_a}),tv=cF(),dF=()=>$({feature:"buttonStyle",params:{...ja,buttonBackgroundColor:re,buttonBorder:{color:ce},buttonFontWeight:600,buttonTextColor:ce,buttonHoverBackgroundColor:{ref:"rowHoverColor"},buttonActiveBackgroundColor:ce,buttonActiveTextColor:re},css:_a}),ov=dF(),gF=()=>$({feature:"buttonStyle",params:{...ja,buttonBorder:{color:Pe,width:2,style:"outset"},buttonActiveBorder:{color:Pe,width:2,style:"inset"},buttonBackgroundColor:ae(.07),buttonHoverBackgroundColor:re,buttonVerticalPadding:{calc:"spacing * 0.5"}},css:_a}),rv=gF(),uF='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size)}.ag-checkbox-input,.ag-radio-button-input{display:block;height:var(--ag-icon-size);margin:0;width:var(--ag-icon-size)}.ag-checkbox-input:where(:not(:disabled)),.ag-radio-button-input:where(:not(:disabled)){cursor:pointer}@media not (forced-colors:active){.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);-webkit-print-color-adjust:exact;print-color-adjust:exact;&:where(.ag-checked){background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color)}&:where(.ag-checked):after{background-color:var(--ag-checkbox-checked-shape-color)}&:where(.ag-disabled){filter:grayscale();opacity:.5}}.ag-checkbox-input,.ag-radio-button-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.ag-checkbox-input-wrapper:after,.ag-radio-button-input-wrapper: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}.ag-checkbox-input-wrapper:where(:focus-within,:active),.ag-radio-button-input-wrapper:where(:focus-within,:active){box-shadow:var(--ag-focus-shadow)}.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)}&:where(.ag-indeterminate):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)}}:where(.ag-set-filter-item-missing) .ag-checkbox-input-wrapper{border-style:dashed;&:where(.ag-checked){background-color:color-mix(in srgb,var(--ag-checkbox-checked-background-color),transparent)}}.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)}}}',hF=()=>$({feature:"checkboxStyle",params:{checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:re,checkboxUncheckedBorderColor:ae(.3),checkboxCheckedBackgroundColor:ce,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:re,checkboxIndeterminateBackgroundColor:ae(.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:re,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:uF}),yi=hF(),pF=()=>$({feature:"colorScheme",params:mo}),fF=pF(),mF=()=>$({feature:"colorScheme",params:{...mo,foregroundColor:"#000000de",borderColor:"#60300026",chromeBackgroundColor:"#60300005"}}),vF=mF(),wF=()=>$({feature:"colorScheme",params:{...mo,foregroundColor:"#000",chromeBackgroundColor:"#f3f8f8"}}),bF=wF(),Nc=()=>({...mo,cellBatchEditTextColor:"#f3d0b3",backgroundColor:"hsl(217, 0%, 17%)",foregroundColor:"#FFF",chromeBackgroundColor:ae(.05),rowHoverColor:De(.15),selectedRowBackgroundColor:De(.2),menuBackgroundColor:ae(.1),browserColorScheme:"dark",popupShadow:"0 0px 20px #000A",cardShadow:"0 1px 4px 1px #000A",advancedFilterBuilderJoinPillColor:"#7a3a37",advancedFilterBuilderColumnPillColor:"#355f2d",advancedFilterBuilderOptionPillColor:"#5a3168",advancedFilterBuilderValuePillColor:"#374c86",filterPanelApplyButtonColor:Pe,columnPanelApplyButtonColor:Pe,findMatchColor:re,findActiveMatchColor:re,checkboxUncheckedBorderColor:ae(.4),toggleButtonOffBackgroundColor:ae(.4),rowBatchEditBackgroundColor:ae(.1),formulaToken1Color:"#4da3e5",formulaToken2Color:"#f55864",formulaToken3Color:"#b688f2",formulaToken4Color:"#24bb4a",formulaToken5Color:"#e772ba",formulaToken6Color:"#f69b5f",formulaToken7Color:"#a3e6ff",calculatedColumnReferenceColor:"#4da3e5",calculatedColumnFunctionColor:"#24bb4a"}),CF=()=>$({feature:"colorScheme",params:Nc()}),yF=CF(),SF=()=>$({feature:"colorScheme",params:{backgroundColor:"hsl(29, 10%, 17%)",foregroundColor:"#FFF",browserColorScheme:"dark"}}),iv=()=>({...Nc(),backgroundColor:"#1f2836"}),xF=SF(),kF=()=>$({feature:"colorScheme",params:iv()}),EF=kF(),RF=()=>$({feature:"colorScheme",params:mo,modeParams:{light:mo,dark:Nc(),"dark-blue":iv()}}),Si=RF(),FF=".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}",MF=".ag-column-drop-vertical-empty-message{color:var(--ag-subtle-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600;padding-top:var(--ag-spacing)}:where(.ag-ltr) .ag-column-drop-vertical-empty-message{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing));padding-right:var(--ag-spacing)}:where(.ag-rtl) .ag-column-drop-vertical-empty-message{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-icon-size) + var(--ag-spacing) + var(--ag-widget-horizontal-spacing))}",DF=()=>$({feature:"columnDropStyle",css:FF}),Gc=DF(),PF=()=>$({feature:"columnDropStyle",css:MF}),Wc=PF(),TF=`.ag-icon-aggregation: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%3Eaggregation%3C/title%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 0M7.006 4c-1.57.02-2.946 1.348-3.004 2.922-.078 6.078-.23 12.16.002 18.234.094 1.484 1.354 2.746 2.84 2.84 6.1.232 12.212.232 18.312 0 1.48-.094 2.746-1.35 2.84-2.84.232-6.1.232-12.212 0-18.312-.094-1.48-1.35-2.746-2.84-2.84C19.11 3.774 13.056 4 7.006 4M22 12h-2v-2h-8v.092c.056 1.352 3.426 2.598 4.472 4.404.682 1.174.438 2.754-.572 3.72C14.29 19.618 12 20.924 12 22h8v-2h2v4H10c0-1.586-.098-3.304 1.016-4.314 1.904-1.632 4.89-3.108 3.54-4.42-1.918-1.68-4.464-2.936-4.554-5.12L10 8h12z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='m6.414 17 2.294 2.292-1.416 1.416L2.586 16l4.706-4.708 1.416 1.416L6.414 15H15V6.414l-2.292 2.294-1.416-1.416L16 2.586l4.708 4.706-1.416 1.416L17 6.414V15h8.586l-2.294-2.292 1.416-1.416L29.414 16l-4.706 4.708-1.416-1.416L25.586 17H17v8.586l2.292-2.294 1.416 1.416L16 29.414l-4.708-4.706 1.416-1.416L15 25.586V17z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m15 10.621-4.292 4.294-1.416-1.416L16 6.793l6.708 6.706-1.416 1.416L17 10.621v14.586h-2z'/%3E%3C/svg%3E")}.ag-icon-aasc: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='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 4C9.378 4 4 9.378 4 16s5.378 12 12 12 12-5.378 12-12S22.622 4 16 4m0 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S6 21.52 6 16 10.48 6 16 6m0 8.586 5.292-5.294 1.416 1.416L17.414 16l5.294 5.292-1.416 1.416L16 17.414l-5.292 5.294-1.416-1.416L14.586 16l-5.294-5.292 1.416-1.416z'/%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%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%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.387H7.361zm18.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'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M14 25h-2V7h2zm6 0h-2V7h2zm6 0h-2V7h2zM8 25H6V7h2z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%3E%3Cpath d='M21.929 27.999h-7.828a5.09 5.09 0 0 1-5.086-5.086v-9.812a5.087 5.087 0 0 1 5.086-5.086h7.828a5.09 5.09 0 0 1 5.086 5.086v9.812a5.087 5.087 0 0 1-5.086 5.086m.16-17.984h-8.088a2.94 2.94 0 0 0-2.938 2.938v10.132a2.94 2.94 0 0 0 2.938 2.938h8.088a2.94 2.94 0 0 0 2.936-2.938V12.953a2.94 2.94 0 0 0-2.936-2.938M7.041 26.013h-2.05a4 4 0 0 1-.006-.228V9.065a5.07 5.07 0 0 1 5.064-5.064h12.812q.069 0 .134.002v2.012H9.915a2.876 2.876 0 0 0-2.874 2.874z'/%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' viewBox='4 4 24 24'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m16 14.586 5.292-5.294 1.416 1.416L17.414 16l5.294 5.292-1.416 1.416L16 17.414l-5.292 5.294-1.416-1.416L14.586 16l-5.294-5.292 1.416-1.416z'/%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='M14.703 15.096 6.215 4.719a1 1 0 1 1 1.548-1.267l13.058 15.965A5.001 5.001 0 0 1 28 23.916a5 5 0 0 1-4.999 4.999 5 5 0 0 1-4.999-4.999 4.98 4.98 0 0 1 1.23-3.283l-3.238-3.958-3.272 4.001a4.98 4.98 0 0 1 1.265 3.323 5 5 0 0 1-4.999 4.999 5 5 0 0 1-4.999-4.999 5 5 0 0 1 7.13-4.522zM8.991 20.8a3.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.1M23 20.8a3.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.1m-5.723-8.852 1.292 1.579 7.205-8.808a1 1 0 0 0-1.548-1.267z' style='fill-rule:nonzero'/%3E%3C/svg%3E")}.ag-icon-desc: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%3Edesc%3C/title%3E%3Cpath d='m17 21.379 4.292-4.294 1.416 1.416L16 25.207l-6.708-6.706 1.416-1.416L15 21.379V6.793h2z'/%3E%3C/svg%3E")}.ag-icon-adesc: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='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-document: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 stroke='currentColor' stroke-width='2' d='M5 28.667V3.333C5 2.597 5.597 2 6.333 2H19l8 8v18.667c0 .736-.597 1.333-1.333 1.333H6.333A1.333 1.333 0 0 1 5 28.667Z'/%3E%3Cpath stroke='currentColor' stroke-width='2' d='M27 12H17V2'/%3E%3C/svg%3E")}.ag-icon-down: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%3Edesc%3C/title%3E%3Cpath d='m17 21.379 4.292-4.294 1.416 1.416L16 25.207l-6.708-6.706 1.416-1.416L15 21.379V6.793h2z'/%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-pdf: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.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .308h.29v.08H.13Zm.21-.228h.08v.308H.34Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .66h.29v.08H.13Zm.21-.58h.08v.58H.34Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='M.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .308h.21v.08H.13Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%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 d='M9.304 7.89a15.2 15.2 0 0 1 6.404-1.638c.294-.002.292-.002.584 0 5.956.174 11.328 4.088 13.62 9.748 0 0-1.318 3.178-3.224 5.174a13.6 13.6 0 0 1-2.226 1.874L26.414 25 25 26.414l-2.336-2.336C17.866 26.396 11.776 26.15 7.36 22.96a14.9 14.9 0 0 1-4.168-4.612c-.41-.71-.694-1.336-1.104-2.348 0 0 .898-2.218 2.002-3.718a14.6 14.6 0 0 1 3.442-3.334L5.586 7 7 5.586zm-.3 2.528c-2.038 1.344-3.708 3.246-4.724 5.508L4.248 16c2.46 5.762 9.622 9.064 15.63 7.15q.688-.219 1.342-.516l-.912-.912a6.96 6.96 0 0 1-4.19 1.394c-3.862 0-7-3.136-7-7 0-1.57.52-3.022 1.394-4.19zm14.032 11.204a13.25 13.25 0 0 0 4.684-5.548l.032-.074c-1.984-4.646-6.834-7.798-12.006-7.748-1.712.05-3.386.458-4.922 1.158l1.102 1.102a6.97 6.97 0 0 1 4.192-1.396 7.003 7.003 0 0 1 5.606 11.192zm-11.09-8.262a5.003 5.003 0 0 0 6.928 6.928zm8.342 5.514a5.002 5.002 0 0 0-6.928-6.928z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16.292 6.32c5.956.174 11.328 4.086 13.62 9.746 0 0-1.318 3.18-3.224 5.176-4.862 5.088-13.534 5.97-19.328 1.784a14.9 14.9 0 0 1-4.168-4.612c-.41-.71-.694-1.336-1.104-2.348 0 0 .898-2.216 2.002-3.716 2.678-3.64 7.03-5.896 11.618-6.03.294-.004.292-.004.584 0m-.546 2c-4.896.142-9.458 3.202-11.466 7.672l-.032.074c2.46 5.762 9.622 9.066 15.63 7.152 3.458-1.102 6.342-3.738 7.842-7.076l.032-.076C25.768 11.42 20.918 8.27 15.746 8.32m.254.946c3.754 0 6.8 3.048 6.8 6.8 0 3.754-3.046 6.8-6.8 6.8s-6.8-3.046-6.8-6.8c0-3.752 3.046-6.8 6.8-6.8m5 6.768V16c0-2.76-2.24-5-5-5s-5 2.24-5 5v.066c0 2.76 2.24 5 5 5s5-2.24 5-5z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M26 8.184c-.066 2.658-4.058 5.154-6.742 7.974a1.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.184V6h20zM8 8c0 .304.06.612.258.842 2.716 2.854 6.682 5.548 6.742 7.974V21l2-1.5v-2.684c.066-2.658 4.058-5.154 6.742-7.974.198-.23.258-.538.258-.842z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.354 8.708 17.06 16l7.294 7.292-1.416 1.416L14.232 16l8.706-8.708zM9.646 8v16h-2V8z'/%3E%3C/svg%3E")}.ag-icon-fx: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='M17.251 5.705h-2.182a3 3 0 0 0-2.901 2.238l-1.1 4.19h4.077v2h-4.601L7.489 25.772A4.64 4.64 0 0 1 3 29.235v-2c1.2 0 2.25-.81 2.555-1.97l2.92-11.132H4.61v-2h4.391l1.232-4.697a5 5 0 0 1 4.836-3.73h2.182zM21.69 16.33l4.553-4.25h2.932l-6.416 5.987 4.093 6.653h-2.348l-3.237-5.261-5.636 5.26H12.7l7.496-6.997-3.471-5.643h2.348z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%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 0M7.006 4c-1.57.02-2.946 1.348-3.004 2.922-.078 6.078-.23 12.16.002 18.234.094 1.484 1.354 2.746 2.84 2.84 6.1.232 12.212.232 18.312 0 1.48-.094 2.746-1.35 2.84-2.84.232-6.1.232-12.212 0-18.312-.094-1.48-1.35-2.746-2.84-2.84C19.11 3.774 13.056 4 7.006 4M14 21h-4v-2h4zm12 0H16v-2h10zm-12-4h-4v-2h4zm12 0H16v-2h10zm-16-4H6v-2h4zm16 0H12v-2h14z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%3E%3Cpath d='m17.768 16-8.706 8.708-1.416-1.416L14.94 16 7.646 8.708l1.416-1.416zm6.586 8h-2V8h2z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%3E%3Cpath d='m17.621 11-2 2h12.586v6H15.621l2 2-4.414 4.414L3.793 16l9.414-9.414zm-11 5 6.586 6.586L14.793 21l-4-4h15.414v-2H10.793l4-4-1.586-1.586z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M17.138 13.418a1.03 1.03 0 0 0-.298.658s.125.096.226.178c1.372 1.114 2.033 3.039 1.582 4.796a4.7 4.7 0 0 1-1.205 2.123c-1.145 1.151-2.296 2.294-3.445 3.441-1.241 1.232-3.185 1.691-4.864 1.105-1.546-.54-2.756-1.938-3.048-3.572-.267-1.496.246-3.108 1.319-4.186l.578-.578-.03-.092a10.5 10.5 0 0 1-.452-2.3v-.005c-.776.775-1.621 1.489-2.275 2.396-1.817 2.522-1.643 6.323.706 8.669 1.813 1.811 4.708 2.462 7.171 1.517a6.75 6.75 0 0 0 2.336-1.518l3.427-3.424c1.939-1.954 2.533-5.126 1.294-7.674a6.8 6.8 0 0 0-2.071-2.481l-.003-.002zM21.265 4a6.8 6.8 0 0 0-4.734 1.964l-3.427 3.424c-1.961 1.977-2.52 5.092-1.32 7.619a6.8 6.8 0 0 0 2.098 2.537l.003.002c.32-.32.643-.637.96-.96.167-.172.27-.401.286-.64l-.204-.167c-1.603-1.287-2.215-3.68-1.316-5.616a4.7 4.7 0 0 1 .918-1.32c1.145-1.151 2.296-2.294 3.445-3.441 1.239-1.23 3.178-1.694 4.864-1.105 1.83.639 3.16 2.498 3.12 4.493a4.8 4.8 0 0 1-1.391 3.265l-.578.578.03.092c.235.743.387 1.519.452 2.3v.005c.732-.731 1.521-1.406 2.162-2.244 1.192-1.559 1.643-3.651 1.204-5.575a6.8 6.8 0 0 0-3.98-4.703 6.8 6.8 0 0 0-2.529-.506h-.061z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%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'/%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' viewBox='3 3 26 26'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='m7.54 17.4.1 6.98 6.96.1-2.24-2.24L16 18.6 13.4 16l-3.64 3.64zm16.92-2.8-.1-6.98-6.96-.1 2.24 2.24L16 13.4l2.6 2.6 3.64-3.64z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M26 23H6v-2h20zm0-6H6v-2h20zm0-6H6V9h20z'/%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'%3E%3Cpath fill='%23000' d='M16 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0-7a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4'/%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' viewBox='3 3 26 26'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='m14.8 24.26-.1-6.96-6.96-.1 2.24 2.24-3.64 3.64 2.6 2.6 3.64-3.64zm2.4-16.52.1 6.96 6.96.1-2.24-2.24 3.64-3.64-2.6-2.6-3.64 3.64z'/%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='M7.515 7.515c-4.683 4.682-4.683 12.288 0 16.97 4.682 4.683 12.288 4.683 16.97 0 4.683-4.682 4.683-12.288 0-16.97-4.682-4.683-12.288-4.683-16.97 0m1.414 1.414c3.903-3.903 10.239-3.903 14.142 0s3.903 10.239 0 14.142-10.239 3.903-14.142 0-3.903-10.239 0-14.142m-1.414 6.07h16.97v2.002H7.515z' 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' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%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%3Cpath d='m10.044 21.258 4.478-4.198L16 18.444 9 25l-7-6.556 1.478-1.384 4.478 4.198V7h2.088zm14 3.742h-2.088V10.742l-4.478 4.198L16 13.556 23 7q3.5 3.28 7 6.556l-1.478 1.384-4.478-4.198z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%3E%3Cpath d='M16.186 3.646c8.188.154 14.898 9.796 11.17 17.78-3.298 7.066-13.932 9.374-19.848 3.87-3.9-3.632-5.076-9.896-2.684-14.708 2.082-4.19 6.588-6.974 11.362-6.942m-.298 1.998c-6.922.132-12.578 8.308-9.33 15.052 3.342 6.934 15.246 7.646 18.932 0 3.076-6.386-1.988-15.1-9.602-15.052m7.596 6.422c2.864 5.33-1.744 13.186-8.306 12.536a8.6 8.6 0 0 1-3.232-.998l-1.266-.706L22.778 10.8q.351.633.706 1.266m-9.422 10.276c3.296 1.028 7.246-1.006 8.216-4.418a6.6 6.6 0 0 0-.056-3.742zm2.104-14.696a8.8 8.8 0 0 1 3.936 1.038l1.266.706L9.27 21.488c-3.018-5.41-.99-13.37 6.318-13.834q.289-.01.578-.008m-.31 2c-4.06.154-7.23 4.614-6.03 8.46l8.16-8.16a6.8 6.8 0 0 0-2.13-.3'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M20 6.5c0-1-1-3-4-3s-4 2-4 3H8c-2.21 0-4 1.79-4 4v14c0 2.21 1.79 4 4 4h16c2.21 0 4-1.79 4-4v-14c0-2.21-1.79-4-4-4zm-4 .546c.734 0 1.334.572 1.334 1.272S16.734 9.59 16 9.59s-1.334-.572-1.334-1.272.6-1.272 1.334-1.272M24 26.5H8a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h2v4h12v-4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2'/%3E%3C/svg%3E")}.ag-icon-values-as: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='M11.763 2.75c2.63 1.519 3.196 5.464 1.263 8.812s-5.632 4.831-8.263 3.312C2.133 13.356 1.567 9.41 3.5 6.062s5.633-4.83 8.263-3.312m-.5.866c-1.196-.69-3.508 1.076-5.165 3.946s-2.03 5.756-.835 6.446c1.196.69 3.508-1.076 5.165-3.946s2.03-5.756.835-6.446M27.163 17.05c2.63 1.519 3.196 5.464 1.263 8.812s-5.632 4.831-8.263 3.312c-2.63-1.518-3.196-5.464-1.263-8.812s5.633-4.83 8.263-3.312m-.5.866c-1.196-.69-3.508 1.076-5.165 3.946s-2.03 5.756-.835 6.446c1.196.69 3.508-1.076 5.165-3.946s2.03-5.756.835-6.446M22.704 2.388l1.732 1L9.294 29.615l-1.732-1z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%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'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%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.008c-1.358-.022-2.714-.026-4.07-.022v4.034h4.07z'/%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='M7.515 7.515c-4.683 4.682-4.683 12.288 0 16.97 4.682 4.683 12.288 4.683 16.97 0 4.683-4.682 4.683-12.288 0-16.97-4.682-4.683-12.288-4.683-16.97 0m1.414 1.414c3.903-3.903 10.239-3.903 14.142 0s3.903 10.239 0 14.142-10.239 3.903-14.142 0-3.903-10.239 0-14.142M15 15l-.001-7.485h2.002L17 15l7.485-.001v2.002L17 17l.001 7.485h-2.002L15 17l-7.485.001v-2.002z' 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' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%3E%3Cpath d='m28.207 16-9.414 9.414L14.379 21l2-2H3.793v-6h12.586l-2-2 4.414-4.414zm-11-5 4 4H5.793v2h15.414l-4 4 1.586 1.586L25.379 16l-6.586-6.586z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M24.708 12.355 16 21.061l-8.708-8.706 1.416-1.416L16 18.233l7.292-7.294z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M21.061 8.708 13.767 16l7.294 7.292-1.416 1.416L10.939 16l8.706-8.708z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='m24.708 19.645-1.416 1.416L16 13.767l-7.292 7.294-1.416-1.416L16 10.939z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='M24.708 10.855 13 22.561l-5.708-5.706 1.416-1.416L13 19.733 23.292 9.439z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m21.061 16-8.706 8.708-1.416-1.416L18.233 16l-7.294-7.292 1.416-1.416z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6 15h20v2H6z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M24.708 12.355 16 21.061l-8.708-8.706 1.416-1.416L16 18.233l7.292-7.294z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%3E%3Cpath d='M5.35 3.999a.2.2 0 0 0-.14.058c-.388.38-.768.768-1.152 1.152a.21.21 0 0 0-.002.288c7.459 7.506 14.965 14.965 22.447 22.447a.21.21 0 0 0 .288.002q.576-.574 1.151-1.151a.21.21 0 0 0 .002-.288C20.484 19.002 12.979 11.542 5.497 4.06a.2.2 0 0 0-.146-.061zm.611 12.548c-1.933 1.939-2.538 5.119-1.289 7.688a6.79 6.79 0 0 0 4.891 3.672 6.82 6.82 0 0 0 5.893-1.866l1.984-1.984-1.438-1.438-1.986 1.986c-1.486 1.476-3.993 1.81-5.834.629a4.73 4.73 0 0 1-2.024-2.853 4.76 4.76 0 0 1 1.241-4.393l1.986-1.986-1.438-1.438-1.984 1.984zM21.273 3.999a6.78 6.78 0 0 0-4.727 1.963l-1.984 1.984L16 9.384l1.985-1.985a4.74 4.74 0 0 1 2.776-1.338c1.974-.224 4.045.926 4.845 2.834.712 1.699.329 3.778-1.004 5.12L22.616 16l1.439 1.438q1-1 2-2c2.012-2.031 2.557-5.368 1.112-7.982-1.144-2.07-3.432-3.441-5.834-3.459h-.061z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%3E%3Cpath d='m15 10.621-4.292 4.294-1.416-1.416L16 6.793l6.708 6.706-1.416 1.416L17 10.621v14.586h-2z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%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'/%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='M23.182 5a3.82 3.82 0 0 1 2.83 6.383l-.131.137-2.09 2.088a1 1 0 0 1-.084.099 1 1 0 0 1-.098.084L12.533 24.869a3 3 0 0 1-1.245.746l-4.353 1.32-.003.002a1.5 1.5 0 0 1-1.87-1.867l.003-.004 1.32-4.352v-.003l.06-.174c.13-.344.321-.661.565-.936l.126-.135L18.209 8.39a1 1 0 0 1 .18-.181l2.092-2.09.137-.132A3.82 3.82 0 0 1 23.182 5M8.548 20.883a1 1 0 0 0-.25.415l-1.049 3.451 3.457-1.048.114-.042q.17-.076.301-.206l10.458-10.46-2.572-2.572zM23.182 7c-.482 0-.946.19-1.287.531v.001l-1.474 1.475 2.572 2.572 1.474-1.474.121-.133A1.82 1.82 0 0 0 23.182 7'/%3E%3C/svg%3E")}.ag-icon-search:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M11 2a9 9 0 1 0 0 18 9 9 0 1 0 0-18m0 2a7 7 0 1 1 0 14 7 7 0 1 1 0-14m10.71 16.29-4.35-4.35-1.42 1.42 4.35 4.35Z'/%3E%3C/svg%3E")}`,av=$({feature:"iconSet",css:TF}),AF=`.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-aasc: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='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%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{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-adesc: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='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-document: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 stroke='currentColor' stroke-width='2.5' d='M5.333 28.667V3.333C5.333 2.597 5.93 2 6.667 2h12l8 8v18.667c0 .736-.597 1.333-1.334 1.333H6.667a1.333 1.333 0 0 1-1.334-1.333Z'/%3E%3Cpath stroke='currentColor' stroke-width='2.5' d='M26 12H16V2'/%3E%3C/svg%3E")}.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-pdf: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.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .308h.29v.08H.13Zm.21-.228h.08v.308H.34Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .66h.29v.08H.13Zm.21-.58h.08v.58H.34Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='M.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .308h.21v.08H.13Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%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-fx: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.506 5.955h-2.182a2.75 2.75 0 0 0-2.659 2.052l-1.017 3.876h3.751v2.5H9.992L6.986 25.835a4.89 4.89 0 0 1-4.731 3.65v-2.5a2.39 2.39 0 0 0 2.313-1.784l2.838-10.818h-3.54v-2.5h4.196l1.184-4.51a5.25 5.25 0 0 1 5.078-3.918h2.182z'/%3E%3Cpath fill='currentColor' d='m20.997 15.938 4.135-3.859h3.665l-6.463 6.031 4.067 6.61h-2.936l-2.996-4.87-5.216 4.87h-3.664l7.543-7.041-3.446-5.6h2.936z'/%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-values-as: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='M11.763 2.75c2.63 1.519 3.196 5.464 1.263 8.812s-5.632 4.831-8.263 3.312C2.133 13.356 1.567 9.41 3.5 6.062s5.633-4.83 8.263-3.312m-.5.866c-1.196-.69-3.508 1.076-5.165 3.946s-2.03 5.756-.835 6.446c1.196.69 3.508-1.076 5.165-3.946s2.03-5.756.835-6.446M27.163 17.05c2.63 1.519 3.196 5.464 1.263 8.812s-5.632 4.831-8.263 3.312c-2.63-1.518-3.196-5.464-1.263-8.812s5.633-4.83 8.263-3.312m-.5.866c-1.196-.69-3.508 1.076-5.165 3.946s-2.03 5.756-.835 6.446c1.196.69 3.508-1.076 5.165-3.946s2.03-5.756.835-6.446M22.704 2.388l1.732 1L9.294 29.615l-1.732-1z'/%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")}.ag-icon-search:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M11 2a9 9 0 1 0 0 18 9 9 0 1 0 0-18m0 2a7 7 0 1 1 0 14 7 7 0 1 1 0-14m10.71 16.29-4.35-4.35-1.42 1.42 4.35 4.35Z'/%3E%3C/svg%3E")}`,nv=$({feature:"iconSet",css:AF}),IF=`.ag-icon-aggregation: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%3Eaggregation%3C/title%3E%3Cpath d='M24 5.333H8V8l8.667 8L8 24v2.667h16v-4h-9.333L21.334 16l-6.667-6.667H24z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d='M13.333 11.556h5.333V8h3.556L16 1.778 9.778 8h3.556zm-1.777 1.777H8V9.777l-6.222 6.222L8 22.221v-3.556h3.556zM30.222 16 24 9.778v3.556h-3.556v5.333H24v3.556l6.222-6.222zm-11.555 4.444h-5.333V24H9.778L16 30.222 22.222 24h-3.556z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%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.333z'/%3E%3C/svg%3E")}.ag-icon-aasc: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='%23000' d='M13.201 8.08q.65 0 1.135.222.487.222.759.618.27.396.279.919H14.19a.72.72 0 0 0-.293-.536q-.26-.191-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125q.382.086.701.229.32.143.554.35.234.21.362.49.131.284.134.648a1.6 1.6 0 0 1-.273.93q-.27.391-.777.608-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.642q-.29-.428-.305-1.058h1.194q.02.294.17.49.15.195.402.294.253.097.573.097.313 0 .544-.09a.84.84 0 0 0 .362-.255.6.6 0 0 0 .129-.374q0-.195-.117-.33a.9.9 0 0 0-.337-.228 3.4 3.4 0 0 0-.54-.171l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.927q.287-.396.79-.618a2.8 2.8 0 0 1 1.14-.223'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 14H4.489l-.432-1.332H1.948L1.515 14H.19l2.017-5.84h1.592zm-3.551-2.296h1.481l-.718-2.21H2.98zM8.452 8.16q.645 0 1.075.19.43.191.648.531a1.4 1.4 0 0 1 .217.775q0 .343-.137.602-.137.256-.376.422a1.6 1.6 0 0 1-.542.231v.057q.333.015.624.188.294.175.476.489.183.31.183.74 0 .466-.231.831a1.56 1.56 0 0 1-.676.573Q9.265 14 8.609 14H6.114V8.16zM7.35 12.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.29 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.396.64.64 0 0 0-.226-.511q-.223-.195-.633-.194H7.35z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M7.166.377a.75.75 0 0 1 .919.066l3.333 3a.75.75 0 0 1-1.003 1.115L7.609 2.033 5.113 4.53a.75.75 0 0 1-1.06-1.06l3-3z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecancel%3C/title%3E%3Cpath d='M16 2.667C8.627 2.667 2.667 8.627 2.667 16S8.627 29.333 16 29.333 29.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'/%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%3Cpath d='M6.667 12.267h4v13.067h-4zm7.466-5.6h3.733v18.667h-3.733zM21.6 17.333h3.733v8H21.6z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolor-picker%3C/title%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.387H7.361zm18.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'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecolumns%3C/title%3E%3Cpath d='M5.333 10.667h5.333V5.334H5.333zm8 16h5.333v-5.333h-5.333zm-8 0h5.333v-5.333H5.333zm0-8h5.333v-5.333H5.333zm8 0h5.333v-5.333h-5.333zm8-13.334v5.333h5.333V5.333zm-8 5.334h5.333V5.334h-5.333zm8 8h5.333v-5.333h-5.333zm0 8h5.333v-5.333h-5.333z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Econtracted%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecopy%3C/title%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'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Ecross%3C/title%3E%3Cpath d='m25.333 8.547-1.88-1.88L16 14.12 8.547 6.667l-1.88 1.88L14.12 16l-7.453 7.453 1.88 1.88L16 17.88l7.453 7.453 1.88-1.88L17.88 16z'/%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='m19 3-6 6 2 2 7-7V3m-10 9.5a.503.503 0 0 1-.5-.5c0-.274.226-.5.5-.5s.5.226.5.5-.226.5-.5.5M6 20c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2M6 8c-1.097 0-2-.903-2-2a2 2 0 0 1 2-2c1.097 0 2 .903 2 2a2 2 0 0 1-2 2m3.64-.36c.23-.5.36-1.05.36-1.64 0-2.194-1.806-4-4-4S2 3.806 2 6s1.806 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.194 0-4 1.806-4 4s1.806 4 4 4 4-1.806 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1z' style='fill-rule:nonzero' transform='translate(4 4)'/%3E%3C/svg%3E")}.ag-icon-desc: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%3Edesc%3C/title%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.667L26.668 16z'/%3E%3C/svg%3E")}.ag-icon-adesc: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='%23000' d='M10.387 11.47a.75.75 0 0 1 1.06 1.06l-3 3-.113.093a.75.75 0 0 1-.919-.065l-3.333-3a.75.75 0 0 1 1.003-1.116l2.806 2.525zM13.201 3.08q.65 0 1.135.222.487.223.759.619.27.396.279.918H14.19a.72.72 0 0 0-.293-.536q-.26-.192-.705-.192-.302.001-.51.086a.7.7 0 0 0-.32.23.56.56 0 0 0-.108.338.5.5 0 0 0 .065.273.7.7 0 0 0 .204.203q.127.083.295.146.168.06.36.102l.525.125a3.7 3.7 0 0 1 .701.229q.32.143.554.35.234.21.362.492.131.282.134.647a1.6 1.6 0 0 1-.273.93 1.74 1.74 0 0 1-.777.607q-.504.214-1.217.214-.708 0-1.232-.217a1.8 1.8 0 0 1-.816-.641q-.29-.429-.305-1.059h1.194q.02.294.17.49.15.195.402.294.253.098.573.098.313 0 .544-.092a.84.84 0 0 0 .362-.254.6.6 0 0 0 .129-.373.5.5 0 0 0-.117-.33.9.9 0 0 0-.337-.23 3.4 3.4 0 0 0-.54-.17l-.635-.16q-.738-.18-1.166-.562t-.426-1.03a1.53 1.53 0 0 1 .284-.926q.287-.396.79-.62a2.8 2.8 0 0 1 1.14-.222'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M5.813 9H4.489l-.432-1.332H1.948L1.515 9H.19l2.017-5.84h1.592zM2.262 6.704h1.481l-.718-2.21H2.98zM8.452 3.16q.645 0 1.075.19.43.192.648.53a1.4 1.4 0 0 1 .217.776q0 .342-.137.602a1.2 1.2 0 0 1-.376.423 1.6 1.6 0 0 1-.542.23v.058q.333.014.624.187.294.175.476.489.183.31.183.74 0 .465-.231.83a1.56 1.56 0 0 1-.676.574Q9.265 9 8.609 9H6.114V3.16zM7.35 7.99h1.006q.517 0 .753-.196a.66.66 0 0 0 .237-.531.8.8 0 0 0-.116-.428.8.8 0 0 0-.334-.291 1.15 1.15 0 0 0-.511-.106H7.349zm0-2.386h.916q.254 0 .45-.09a.75.75 0 0 0 .313-.256.67.67 0 0 0 .118-.397.64.64 0 0 0-.226-.51q-.223-.194-.633-.194H7.35z' clip-rule='evenodd'/%3E%3C/svg%3E")}.ag-icon-document: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 stroke='currentColor' stroke-miterlimit='3.994' stroke-width='2.5' d='M5.333 30V2h13.334l8 8v20z'/%3E%3Cpath stroke='currentColor' stroke-width='2.5' d='M26.5 12H16V2'/%3E%3C/svg%3E")}.ag-icon-down: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%3Edesc%3C/title%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.667L26.668 16z'/%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-pdf: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.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .308h.29v.08H.13Zm.21-.228h.08v.308H.34Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 7.122 25.977)'/%3E%3Cpath d='M.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .66h.29v.08H.13Zm.21-.58h.08v.58H.34Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 13.339 25.977)'/%3E%3Cpath d='M.05-.728h.08v.74H.05Zm.08 0h.29v.08H.13Zm0 .308h.21v.08H.13Z' style='fill-rule:nonzero' transform='matrix(8.39799 0 0 12.455 18.94 25.977)'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eexpanded%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%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 d='M21.106 15.088A5.19 5.19 0 0 0 16 10.814a5.17 5.17 0 0 0-3.668 1.522L9.866 9.868a12.2 12.2 0 0 1 6.133-1.646c5.186 0 9.614 3.225 11.408 7.778a12.34 12.34 0 0 1-5.276 6.133l-2.468-2.466a5.17 5.17 0 0 0 1.449-2.802h-2.123c-.148.508-.42.964-.782 1.33l-1.33-1.33h-2.514l2.196 2.196q-.272.049-.56.05a3.11 3.11 0 0 1-2.99-2.245h-2.123a5.19 5.19 0 0 0 7.3 3.836l2.247 2.247a12.2 12.2 0 0 1-4.434.828c-5.186 0-9.614-3.225-11.408-7.778a12.3 12.3 0 0 1 3.781-5.111l2.924 2.924a5.1 5.1 0 0 0-.404 1.275h4.206l-1.296-1.296a3.1 3.1 0 0 1 2.196-.903c1.404 0 2.587.924 2.976 2.199h2.13z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eeye%3C/title%3E%3Cpath d='M16 8.222c-5.186 0-9.614 3.225-11.408 7.778 1.794 4.553 6.222 7.778 11.408 7.778S25.614 20.553 27.408 16C25.614 11.447 21.186 8.222 16 8.222m0 12.964c-2.862 0-5.186-2.324-5.186-5.186s2.324-5.186 5.186-5.186 5.186 2.324 5.186 5.186-2.324 5.186-5.186 5.186m0-8.297c-1.721 0-3.111 1.39-3.111 3.111s1.39 3.111 3.111 3.111 3.111-1.39 3.111-3.111-1.39-3.111-3.111-3.111'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Efilter%3C/title%3E%3Cpath d='M13.333 24h5.333v-2.667h-5.333zM4 8v2.667h24V8zm4 9.333h16v-2.667H8z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Efirst%3C/title%3E%3Cpath d='M24.273 22.12 18.153 16l6.12-6.12L22.393 8l-8 8 8 8zM7.727 8h2.667v16H7.727z'/%3E%3C/svg%3E")}.ag-icon-fx: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.506 5.955h-2.182a2.75 2.75 0 0 0-2.659 2.052l-1.017 3.876h3.751v2.5H9.992L6.986 25.835a4.89 4.89 0 0 1-4.731 3.65v-2.5a2.39 2.39 0 0 0 2.313-1.784l2.838-10.818h-3.54v-2.5h4.196l1.184-4.51a5.25 5.25 0 0 1 5.078-3.918h2.182z'/%3E%3Cpath fill='currentColor' d='m20.997 15.938 4.135-3.859h3.665l-6.463 6.031 4.067 6.61h-2.936l-2.996-4.87-5.216 4.87h-3.664l7.543-7.041-3.446-5.6h2.936z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Egroup%3C/title%3E%3Cpath d='M18.667 21.333h8.889A3.555 3.555 0 0 1 24 24.889h-5.333zm8.888-7.111v3.556h-8.889v-3.556zM24 7.111a3.555 3.555 0 0 1 3.556 3.556h-16V7.111zm-8.889 17.778h-3.556v-3.556h3.556zm0-7.111h-3.556v-3.556h3.556zM8 10.667H4.444A3.555 3.555 0 0 1 8 7.111z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Elast%3C/title%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'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eleft%3C/title%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.227v-2.667z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Elinked%3C/title%3E%3Cpath d='M5.2 16a4.136 4.136 0 0 1 4.133-4.133h5.333V9.334H9.333c-3.68 0-6.667 2.987-6.667 6.667s2.987 6.667 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.333c2.28 0 4.133 1.853 4.133 4.133s-1.853 4.133-4.133 4.133h-5.333v2.533h5.333c3.68 0 6.667-2.987 6.667-6.667s-2.987-6.667-6.667-6.667z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eloading%3C/title%3E%3Cpath d='m17.778 11.708 3.25-3.251 2.516 2.516-3.251 3.25h4.597v3.556h-4.597l3.251 3.25-2.516 2.516-3.25-3.251v4.597h-3.556v-4.597l-3.25 3.251-2.516-2.516 3.251-3.25H7.11v-3.556h4.597l-3.251-3.25 2.516-2.516 3.25 3.251V7.111h3.556zm-3.251 7.847h2.944l2.084-2.084v-2.944l-2.084-2.084h-2.944l-2.084 2.084v2.944z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Emaximize%3C/title%3E%3Cpath d='M4 4h24v2.667H4z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Emenu%3C/title%3E%3Cpath d='M4 24h24v-2.667H4zm0-6.667h24v-2.667H4zM4 8v2.667h24V8z'/%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 26.667a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 24q0-1.1.784-1.883A2.57 2.57 0 0 1 16 21.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 16q0-1.1.784-1.883A2.57 2.57 0 0 1 16 13.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784m0-8a2.57 2.57 0 0 1-1.883-.784A2.57 2.57 0 0 1 13.333 8q0-1.1.784-1.883A2.57 2.57 0 0 1 16 5.333q1.1 0 1.883.784.784.783.784 1.883t-.784 1.883a2.57 2.57 0 0 1-1.883.784'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eminimize%3C/title%3E%3Cpath d='M8 25.333h16V28H8z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%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%3Cpath d='M4 24h16v-2.667H4zM4 8v2.667h24V8zm0 9.333h24v-2.667H4z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Enot-allowed%3C/title%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'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Epaste%3C/title%3E%3Cpath d='M25.333 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 4zM16 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'/%3E%3C/svg%3E")}.ag-icon-values-as: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='M25.414 8 8 25.414 6.586 24 24 6.586zM10 6a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4M22 18a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Epin%3C/title%3E%3Cpath d='m11.106 22.093-4.444 4.444-1.259-1.259 4.444-4.444zm5.872-16.63 9.618 9.62-.962.962-.962-.962-7.694 3.847 1.924 1.924-2.74 2.74-7.696-7.696 2.741-2.74 1.924 1.925 3.847-7.696-.962-.962z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Epivot%3C/title%3E%3Cpath d='M26.667 30.223H5.334a3.556 3.556 0 0 1-3.556-3.556V5.334a3.556 3.556 0 0 1 3.556-3.556h21.333a3.556 3.556 0 0 1 3.556 3.556v21.333a3.556 3.556 0 0 1-3.556 3.556m-16-8.89H5.334v5.333h5.333zm16-7.11H12.444v12.444h14.223zm-9.15 6.85-2.039 2.037 2.039 2.039-1.257 1.257-3.295-3.296 3.295-3.295q.63.628 1.257 1.257zm-6.85-6.85H5.334v5.333h5.333zm15.74 3.816-1.257 1.256-2.039-2.037-2.037 2.037-1.257-1.256 3.295-3.296zM10.667 5.333H5.334v5.333h5.333zm8.889 0h-7.112v5.333h7.112zm7.111 0h-5.333v5.333h5.333z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d='M20.94 9.88 19.06 8l-8 8 8 8 1.88-1.88L14.833 16z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eright%3C/title%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'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esave%3C/title%3E%3Cpath d='M25.333 16v9.333H6.666V16H3.999v9.333C3.999 26.8 5.199 28 6.666 28h18.667C26.8 28 28 26.8 28 25.333V16zm-8 .893 3.453-3.44 1.88 1.88L15.999 22l-6.667-6.667 1.88-1.88 3.453 3.44V4h2.667v12.893z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-down%3C/title%3E%3Cpath d='M9.333 12.667 16 19.334l6.667-6.667H9.334z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-left%3C/title%3E%3Cpath d='M19.333 9.333 12.666 16l6.667 6.667V9.334z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-right%3C/title%3E%3Cpath d='M12.667 22.667 19.334 16l-6.667-6.667v13.333z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Esmall-up%3C/title%3E%3Cpath d='M9.333 19.333 16 12.666l6.667 6.667H9.334z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Etick%3C/title%3E%3Cpath d='m11.727 21.167-5.56-5.56-1.893 1.88 7.453 7.453 16-16-1.88-1.88z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-closed%3C/title%3E%3Cpath d='m12.94 8-1.88 1.88L17.167 16l-6.107 6.12L12.94 24l8-8z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-indeterminate%3C/title%3E%3Cpath d='M6.667 14.667h18.667v2.667H6.667z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Etree-open%3C/title%3E%3Cpath d='M22.12 11.06 16 17.167 9.88 11.06 8 12.94l8 8 8-8z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Eunlinked%3C/title%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'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Easc%3C/title%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.333z'/%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' viewBox='0 0 32 32'%3E%3Ctitle%3Egrip%3C/title%3E%3Cpath d='M26.667 12H5.334v2.667h21.333zM5.333 20h21.333v-2.667H5.333z'/%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='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath 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 11'/%3E%3Cpath 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.904zm-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.28zM9.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.972z'/%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='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath 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.22M3.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-.536'/%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='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath 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-.22M12.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.536'/%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='M18.666 24h-5.333v-2.667h5.333zM24 17.333H8v-2.667h16zm3.59-9.344h3.221v2.657h-3.22v3.22h-2.656v-3.22h-3.221V7.989h3.22V4.77h2.657zm-8.582 2.678H4V8h15.008z'/%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")}.ag-icon-search:before{mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M11 2a9 9 0 1 0 0 18 9 9 0 1 0 0-18m0 2a7 7 0 1 1 0 14 7 7 0 1 1 0-14m10.71 16.29-4.35-4.35-1.42 1.42 4.35 4.35Z'/%3E%3C/svg%3E")}`,sv=$({feature:"iconSet",css:IF}),zF=e=>{const t=[];if(e.type==="image"){const{icons:o,mask:r}=e;for(const i of Object.keys(o)){const a=ps(o[i]);r?t.push(`.ag-icon-${i}::before { mask-image: ${a}; }`):t.push(`.ag-icon-${i}::before { background-image: ${a}; ${lv} }`)}}if(e.type==="font"){const{family:o,weight:r,color:i,icons:a}=e;let n=lv;o&&(n+=` font-family: ${hs(o)};`),r&&(n+=` font-weight: ${yu(r)};`),i&&(n+=` color: ${Ji(i)};`);for(const s of Object.keys(a))t.push(`.ag-icon-${s}::before { content: ${JSON.stringify(a[s])}; ${n} }`)}return $({css:t.join(`;
`),cssImports:e.cssImports})},lv="background-color: unset; mask-image: unset; -webkit-mask-image: unset;",cv={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"/>',pdf:'<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="M7 17V12h2.2a1.4 1.4 0 0 1 0 2.8H7"/><path d="M12 17v-5h1.4a2.5 2.5 0 0 1 0 5H12z"/><path d="M17 17v-5h3"/><path d="M17 14h2.5"/>',expanded:'<path d="m15 18-6-6 6-6"/>',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"/>',"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"/>',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"/>',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>',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"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>',"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"/>'},dv={aasc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.2012 8.07928C13.6346 8.0793 14.0128 8.15365 14.3359 8.30193C14.6609 8.45018 14.9141 8.65595 15.0947 8.9201C15.2754 9.18439 15.3683 9.49109 15.374 9.83904H14.1904C14.1676 9.60898 14.0695 9.4303 13.8965 9.30291C13.7235 9.1756 13.4889 9.1115 13.1924 9.1115C12.9909 9.1115 12.8204 9.1404 12.6816 9.19744C12.543 9.25255 12.4364 9.32917 12.3623 9.42791C12.2901 9.52678 12.2539 9.63933 12.2539 9.76482C12.2501 9.8692 12.272 9.9604 12.3193 10.0383C12.3688 10.1162 12.4369 10.1843 12.5225 10.2414C12.6079 10.2964 12.7064 10.3451 12.8184 10.3869C12.9304 10.4268 13.0505 10.4609 13.1777 10.4894L13.7031 10.6144C13.9578 10.6715 14.1914 10.7479 14.4043 10.8429C14.6173 10.938 14.8021 11.0547 14.958 11.1935C15.1138 11.3323 15.2348 11.4957 15.3203 11.6838C15.4077 11.8719 15.4522 12.088 15.4541 12.3312C15.4522 12.6885 15.3611 12.9986 15.1807 13.2609C15.0019 13.5214 14.7427 13.7248 14.4043 13.8693C14.0678 14.0118 13.6617 14.0832 13.1865 14.0832C12.7153 14.0832 12.3048 14.0107 11.9551 13.8664C11.6071 13.7219 11.3345 13.5071 11.1387 13.2238C10.9449 12.9387 10.8435 12.5862 10.834 12.1662H12.0283C12.0416 12.362 12.0984 12.5252 12.1973 12.6564C12.298 12.7857 12.4323 12.8838 12.5996 12.9504C12.7688 13.0149 12.96 13.047 13.1729 13.047C13.3817 13.047 13.563 13.0169 13.7168 12.9562C13.8727 12.8954 13.9935 12.8106 14.0791 12.7023C14.1647 12.5939 14.208 12.469 14.208 12.3283C14.2079 12.1974 14.1686 12.0875 14.0908 11.9982C14.0148 11.9089 13.9022 11.8324 13.7539 11.7697C13.6076 11.707 13.4276 11.6501 13.2148 11.5988L12.5791 11.4387C12.0869 11.3189 11.6982 11.1318 11.4131 10.8771C11.128 10.6224 10.9855 10.2793 10.9873 9.84783C10.9854 9.49418 11.0804 9.18439 11.2705 8.9201C11.4625 8.65603 11.7261 8.45015 12.0605 8.30193C12.3951 8.15369 12.7754 8.07928 13.2012 8.07928Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 14.0002H4.48926L4.05664 12.6681H1.94824L1.51465 14.0002H0.19043L2.20703 8.15935H3.79883L5.8125 14.0002ZM2.26172 11.7043H3.74316L3.02539 9.49334H2.98047L2.26172 11.7043Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 8.15935C8.88165 8.15935 9.24031 8.22251 9.52734 8.34978C9.81445 8.47717 10.0303 8.65477 10.1748 8.88103C10.3192 9.10536 10.3916 9.36368 10.3916 9.65642C10.3916 9.88452 10.3461 10.085 10.2549 10.258C10.1637 10.4289 10.0384 10.5696 9.87891 10.6799C9.72117 10.7882 9.54024 10.8657 9.33691 10.9113V10.9679C9.55917 10.9775 9.76716 11.0406 9.96094 11.1564C10.1568 11.2724 10.3158 11.4356 10.4375 11.6447C10.5591 11.8519 10.6201 12.099 10.6201 12.3859C10.6201 12.6958 10.5427 12.9727 10.3887 13.216C10.2366 13.4573 10.0113 13.6486 9.71289 13.7892C9.41443 13.9299 9.04655 14.0002 8.60938 14.0002H6.11426V8.15935H8.45215ZM7.34863 12.9904H8.35547C8.69943 12.9904 8.95057 12.9252 9.1084 12.7941C9.26621 12.661 9.34473 12.4834 9.34473 12.2629C9.34468 12.1014 9.30643 11.9587 9.22852 11.8351C9.15056 11.7116 9.03903 11.6145 8.89453 11.5441C8.75195 11.4738 8.58148 11.4387 8.38379 11.4387H7.34863V12.9904ZM7.34863 10.6037H8.26465C8.43369 10.6036 8.58376 10.5737 8.71484 10.5148C8.84793 10.454 8.95227 10.3683 9.02832 10.258C9.10628 10.1477 9.14551 10.0155 9.14551 9.8615C9.14546 9.65055 9.07008 9.48001 8.91992 9.35076C8.77165 9.22169 8.56064 9.15741 8.28711 9.1574H7.34863V10.6037Z" fill="black"/><path d="M7.16602 0.377127C7.44584 0.189493 7.82551 0.20905 8.08496 0.442557L11.418 3.44256C11.7257 3.71966 11.7507 4.19428 11.4736 4.50213C11.1966 4.80961 10.7228 4.83441 10.415 4.55779L7.60938 2.03338L5.11328 4.53045C4.82042 4.82326 4.34562 4.82322 4.05273 4.53045C3.75986 4.23757 3.75989 3.7628 4.05273 3.4699L7.05273 0.4699L7.16602 0.377127Z" fill="black"/></svg>',adesc:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.3867 11.4697C10.6796 11.1771 11.1544 11.1769 11.4473 11.4697C11.7399 11.7626 11.7399 12.2374 11.4473 12.5303L8.44727 15.5303L8.33398 15.623C8.05425 15.8106 7.67449 15.7909 7.41504 15.5576L4.08203 12.5576C3.77415 12.2805 3.74927 11.8059 4.02637 11.498C4.30342 11.1907 4.77722 11.1657 5.08496 11.4424L7.89062 13.9668L10.3867 11.4697Z" fill="black"/><path d="M13.2012 3.0791C13.6346 3.07912 14.0128 3.1535 14.3359 3.30176C14.6611 3.45006 14.9141 3.65661 15.0947 3.9209C15.2752 4.18513 15.3683 4.49104 15.374 4.83887H14.1904C14.1676 4.60882 14.0695 4.43012 13.8965 4.30273C13.7235 4.17546 13.4889 4.11133 13.1924 4.11133C12.9909 4.11133 12.8204 4.14023 12.6816 4.19727C12.5431 4.25236 12.4364 4.32902 12.3623 4.42773C12.2901 4.52659 12.2539 4.63919 12.2539 4.76465C12.2501 4.86901 12.272 4.96023 12.3193 5.03809C12.3688 5.11604 12.4369 5.18417 12.5225 5.24121C12.6079 5.29623 12.7064 5.34496 12.8184 5.38672C12.9304 5.42661 13.0505 5.46075 13.1777 5.48926L13.7031 5.61426C13.9578 5.67128 14.1914 5.74776 14.4043 5.84277C14.6172 5.93784 14.8021 6.05457 14.958 6.19336C15.1139 6.33216 15.2348 6.49633 15.3203 6.68457C15.4076 6.8727 15.4522 7.08885 15.4541 7.33203C15.4521 7.68929 15.3612 7.99944 15.1807 8.26172C15.0019 8.52216 14.7427 8.72465 14.4043 8.86914C14.0678 9.01165 13.6617 9.08301 13.1865 9.08301C12.7153 9.08299 12.3048 9.01057 11.9551 8.86621C11.6072 8.72173 11.3345 8.50786 11.1387 8.22461C10.9447 7.9394 10.8435 7.58622 10.834 7.16602H12.0283C12.0416 7.36176 12.0985 7.52509 12.1973 7.65625C12.298 7.78554 12.4323 7.88365 12.5996 7.9502C12.7688 8.01477 12.96 8.04785 13.1729 8.04785C13.3817 8.04781 13.5629 8.01678 13.7168 7.95605C13.8727 7.89522 13.9935 7.81051 14.0791 7.70215C14.1646 7.59387 14.2079 7.46965 14.208 7.3291C14.208 7.19796 14.1687 7.08739 14.0908 6.99805C14.0148 6.90868 13.9022 6.83228 13.7539 6.76953C13.6076 6.70685 13.4276 6.64993 13.2148 6.59863L12.5791 6.43848C12.0868 6.31871 11.6982 6.13163 11.4131 5.87695C11.1279 5.62221 10.9855 5.27916 10.9873 4.84766C10.9854 4.49404 11.0804 4.18517 11.2705 3.9209C11.4625 3.65661 11.7259 3.45006 12.0605 3.30176C12.3951 3.15353 12.7754 3.0791 13.2012 3.0791Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.8125 9H4.48926L4.05664 7.66797H1.94824L1.51465 9H0.19043L2.20703 3.15918H3.79883L5.8125 9ZM2.26172 6.7041H3.74316L3.02539 4.49414H2.98047L2.26172 6.7041Z" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8.45215 3.15918C8.88181 3.15918 9.24025 3.22322 9.52734 3.35059C9.81445 3.47798 10.0303 3.6546 10.1748 3.88086C10.3193 4.10518 10.3916 4.36351 10.3916 4.65625C10.3916 4.88432 10.3461 5.08484 10.2549 5.25781C10.1636 5.4289 10.0386 5.57039 9.87891 5.68066C9.72118 5.78898 9.54022 5.86549 9.33691 5.91113V5.96875C9.55913 5.9783 9.76719 6.04044 9.96094 6.15625C10.1568 6.27223 10.3158 6.43538 10.4375 6.64453C10.5591 6.85173 10.6201 7.09875 10.6201 7.38574C10.6201 7.69567 10.5427 7.97245 10.3887 8.21582C10.2366 8.45719 10.0113 8.64841 9.71289 8.78906C9.41442 8.9297 9.04658 8.99999 8.60938 9H6.11426V3.15918H8.45215ZM7.34863 7.99023H8.35547C8.69948 7.99023 8.95057 7.92504 9.1084 7.79395C9.26621 7.66085 9.34473 7.48325 9.34473 7.2627C9.34466 7.10125 9.3064 6.95844 9.22852 6.83496C9.15056 6.71143 9.03899 6.61427 8.89453 6.54395C8.75196 6.47365 8.58145 6.43848 8.38379 6.43848H7.34863V7.99023ZM7.34863 5.60352H8.26465C8.43369 5.60347 8.58376 5.57354 8.71484 5.51465C8.84791 5.45381 8.95228 5.36807 9.02832 5.25781C9.10623 5.14755 9.14551 5.01529 9.14551 4.86133C9.14542 4.65046 9.07002 4.48078 8.91992 4.35156C8.77163 4.22228 8.56087 4.15724 8.28711 4.15723H7.34863V5.60352Z" fill="black"/></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-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>',"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>',"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>',document:'<svg width="16" height="16" viewBox="0 0 16 16" class="ag-icon" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.66663 14.3333V1.66667C2.66663 1.29848 2.9651 1 3.33329 1H9.33329L13.3333 5V14.3333C13.3333 14.7015 13.0348 15 12.6666 15H3.33329C2.9651 15 2.66663 14.7015 2.66663 14.3333Z" stroke="currentColor" stroke-width="1.33333"/><path d="M12.6667 6H8V1" stroke="currentColor" stroke-width="1.33333"/></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>',"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>',"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>',"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>',"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>',"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>',fx:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.49158 3.12305H7.50623C6.93834 3.12323 6.44152 3.5064 6.29724 4.05566L5.87439 5.66797H7.48083V7.16797H5.48083L4.06775 12.5527C3.77958 13.6508 2.787 14.417 1.65173 14.417V12.917C2.10521 12.917 2.50147 12.6105 2.61658 12.1719L3.93005 7.16797H2.42419V5.66797H4.32361L4.84607 3.6748C5.16341 2.46608 6.25655 1.62323 7.50623 1.62305H8.49158V3.12305ZM10.6781 7.5293L12.4115 5.91211H14.6097L14.5648 5.9541L11.4808 8.83203L13.4301 12H11.6683L10.3617 9.87598L8.08728 12H5.88904L9.55994 8.57324L7.92224 5.91211H9.68396L10.6781 7.5293Z" fill="currentColor"/></svg>',"values-as":'<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.7631 2.75003C14.3937 4.26881 14.9593 8.21416 13.0263 11.5622C11.0933 14.9103 7.39373 16.3932 4.76312 14.8744C2.13251 13.3556 1.56698 9.41025 3.49998 6.0622C5.43297 2.71416 9.13251 1.23124 11.7631 2.75003ZM11.2631 3.61605C10.0674 2.9257 7.75491 4.69245 6.09805 7.5622C4.4412 10.432 4.06739 13.318 5.26312 14.0084C6.45885 14.6987 8.77133 12.932 10.4282 10.0622C12.085 7.19245 12.4588 4.30641 11.2631 3.61605Z" fill="currentColor"/><path d="M27.1631 17.05C29.7938 18.5688 30.3593 22.5142 28.4263 25.8622C26.4933 29.2103 22.7938 30.6932 20.1631 29.1744C17.5325 27.6556 16.967 23.7103 18.9 20.3622C20.833 17.0142 24.5325 15.5312 27.1631 17.05ZM26.6631 17.9161C25.4674 17.2257 23.1549 18.9924 21.4981 21.8622C19.8412 24.732 19.4674 27.618 20.6631 28.3084C21.8589 28.9987 24.1714 27.232 25.8282 24.3622C27.4851 21.4924 27.8589 18.6064 26.6631 17.9161Z" fill="currentColor"/><path d="M22.7042 2.38759L24.4363 3.38759L9.29419 29.6145L7.56214 28.6145L22.7042 2.38759Z" fill="currentColor"/></svg>'},LF=(e={})=>{let t="";for(const o of[...Object.keys(cv),...Object.keys(dv)]){const r=OF(o,e.strokeWidth);t+=`.ag-icon-${o}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(r)}'); }
`}return t},OF=(e,t=1.5)=>{const o=dv[e];if(o)return o;const r=cv[e];if(!r)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>`+r+"</svg>"},Ka=(e={})=>$({feature:"iconSet",css:()=>LF(e)}),VF=Ka({strokeWidth:1}),gv=Ka(),BF=Ka({strokeWidth:2}),qc=":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-clear-button{align-items:center;background:transparent;border:0;border-radius:var(--ag-border-radius);color:inherit;cursor:pointer;display:flex;height:var(--ag-icon-size);inset-inline-end:var(--ag-spacing);justify-content:center;padding:0;position:absolute;width:var(--ag-icon-size)}.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){border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);min-height:var(--ag-input-height);padding-inline:var(--ag-input-padding-start);&:where(.ag-input-field-input:not(.ag-input-frameless)){background-color:var(--ag-input-background-color);border:var(--ag-input-border);&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow)}&:where(.invalid),&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border)}}&:where(.ag-input-frameless){background-color:transparent;border:none;@media (forced-colors:active){outline:none}}&:where(:disabled){color:var(--ag-input-disabled-text-color)}&:where(:focus){color:var(--ag-input-focus-text-color)}&:where(.invalid),&:where(:invalid){color:var(--ag-input-invalid-text-color)}&::-moz-placeholder{color:var(--ag-input-placeholder-text-color)}&::placeholder{color:var(--ag-input-placeholder-text-color)}}.ag-input-field-search-icon{align-items:center;display:inline-flex;inset-inline-start:var(--ag-spacing);opacity:.5;pointer-events:none;position:absolute;--ag-icon-color:var(--ag-input-icon-color)}:where(.ag-input-field-search){.ag-number-field-input,.ag-text-field-input{padding-inline-start:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}}.ag-input-field-input-with-clear-button{padding-inline-end:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}",HF=".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){&:where(.ag-input-field-input:not(.ag-input-frameless)):focus{box-shadow:var(--ag-input-focus-shadow);&:where(.invalid),&:where(:invalid){box-shadow:var(--ag-focus-error-shadow)}}}",NF=".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){border-left:none;border-right:none;border-top:none}",Uc={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,pickerButtonBorderRadius:{ref:"borderRadius"},pickerButtonFocusBorder:{ref:"inputFocusBorder"},pickerButtonBackgroundColor:{ref:"backgroundColor"},pickerButtonFocusBackgroundColor:{ref:"backgroundColor"},pickerListBorder:!1,pickerListBackgroundColor:{ref:"backgroundColor"},colorPickerThumbSize:18,colorPickerTrackSize:12,colorPickerThumbBorderWidth:3,colorPickerTrackBorderRadius:12,colorPickerColorBorderRadius:4},GF=()=>$({feature:"inputStyle",params:Uc,css:qc}),WF=GF(),qF=()=>$({feature:"inputStyle",params:{...Uc,inputBackgroundColor:re,inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:ce},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:ae(.06),inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}},pickerButtonBorder:!0,pickerListBorder:!0},css:()=>qc+HF}),Ya=qF(),UF=()=>$({feature:"inputStyle",params:{...Uc,inputBackgroundColor:"transparent",inputBorder:{width:2,color:le(.3)},inputPaddingStart:{ref:"spacing"},inputFocusBorder:"solid 2px var(--ag-accent-color)",inputDisabledTextColor:{ref:"textColor",mix:.5},inputDisabledBorder:"solid 1px var(--ag-border-color)",inputInvalidBorder:{width:2,color:{ref:"invalidColor",mix:.3}}},css:()=>qc+NF}),uv=UF(),xi='.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}.ag-tab:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}.ag-tab.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color);@media (forced-colors:active){background-color:SelectedItem}}:where(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:first-of-type)){border-left-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(.ag-ltr) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-right-color:var(--ag-tab-selected-border-color)}:where(.ag-rtl) .ag-tab.ag-tab-selected:where(:not(:last-of-type)){border-left-color:var(--ag-tab-selected-border-color)}.ag-tab: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.ag-tab-selected:after{opacity:1}',_F=".ag-tab{border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;border-top:var(--ag-tab-selected-border-width) solid transparent;flex:none;&.ag-tab-selected{border-left-color:var(--ag-tab-selected-border-color);border-right-color:var(--ag-tab-selected-border-color);border-top-color:var(--ag-tab-selected-border-color);margin-bottom:-1px;padding-bottom:calc(var(--ag-tab-bottom-padding) + 1px)}}",ki={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},jF=()=>$({feature:"tabStyle",params:ki,css:xi}),KF=jF(),YF=()=>$({feature:"tabStyle",params:{...ki,tabBarBorder:!0,tabBarBackgroundColor:le(.05),tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:re},css:xi}),hv=YF(),QF=()=>$({feature:"tabStyle",params:{...ki,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabSelectedUnderlineColor:{ref:"primaryColor"},tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:0},css:xi}),pv=QF(),ZF=()=>$({feature:"tabStyle",params:{...ki,tabBarBorder:!0,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabHoverTextColor:ce,tabSelectedTextColor:ce,tabSelectedUnderlineColor:ce,tabSelectedUnderlineWidth:2,tabSelectedUnderlineTransitionDuration:"0.3s"},css:xi}),fv=ZF(),JF=()=>$({feature:"tabStyle",params:{...ki,tabBarBackgroundColor:{ref:"chromeBackgroundColor"},tabBarHorizontalPadding:{ref:"spacing"},tabBarTopPadding:{ref:"spacing"},tabBarBorder:!0,tabHorizontalPadding:{calc:"spacing * 2"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:{ref:"spacing"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:re},css:()=>xi+_F}),mv=JF(),XF=".ag-dnd-ghost,.ag-filter-toolpanel-header,.ag-filter-toolpanel-search,.ag-multi-filter-group-title-bar,.ag-panel-title-bar-title,.ag-status-bar{color:var(--ag-header-text-color);font-size:calc(var(--ag-font-size) - 1px);font-weight:600}.ag-column-drop-horizontal{background-color:color-mix(in srgb,var(--ag-background-color),var(--ag-foreground-color) 8%)}:where(.ag-toolbar) .ag-column-drop-horizontal{background-color:transparent}:where(.ag-toolbar) .ag-toolbar-panel{padding-inline:var(--ag-cell-horizontal-padding) 0}.ag-cell.ag-cell-inline-editing{background-color:var(--ag-background-color);background-image:linear-gradient(0deg,var(--ag-input-background-color),var(--ag-input-background-color));border:var(--ag-input-border)!important;border-width:1px!important;height:calc(var(--ag-row-height) + var(--ag-spacing)*3);padding:var(--ag-spacing);:where(.ag-row-last:not(.ag-row-first)) &{bottom:0}:where(.ag-has-focus) &{border:var(--ag-input-focus-border)!important;border-width:1px!important}}.ag-advanced-filter-builder-button,.ag-standard-button{text-transform:uppercase}.ag-status-bar{border:solid var(--ag-border-width) var(--ag-border-color)}.ag-list-item-hovered:after{background-color:var(--ag-primary-color)}.ag-pill-button:hover{color:var(--ag-primary-color)}.ag-filter-add-button,.ag-filter-add-button:hover{border-bottom:2px solid var(--ag-primary-color)}.ag-toolbar-button-wrapper{transition:background-color .2s,color .2s}.ag-toolbar-find,.ag-toolbar-input{border-left:none;border-right:none;border-top:none;box-shadow:none}.ag-toolbar-find:focus-within{border-left:none;border-right:none;border-top:none;box-shadow:none}.ag-toolbar-input-field{border-left:none;border-right:none;border-top:none}.ag-toolbar-input-field:focus{border-left:none;border-right:none;border-top:none;box-shadow:none}",$F=":where(.ag-number-field.ag-paging-number) .ag-input-field-input{padding-bottom:1px}",vv=()=>({fontFamily:[{googleFont:"IBM Plex Sans"},...gs()]}),e6=()=>$({feature:"styleQuartz",css:$F}),t6=e6(),o6=()=>Ci().withPart(tv).withPart(yi).withPart(Si).withPart(gv).withPart(hv).withPart(Ya).withPart(Gc).withPart(t6).withParams(vv()),wv=o6(),bv=()=>({accentColor:"#2196f3",selectedRowBackgroundColor:De(.3),inputFocusBorder:{color:De(.4)},focusShadow:{radius:2,spread:1.6,color:De(.4)},iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",checkboxUncheckedBorderColor:ae(.45),checkboxIndeterminateBackgroundColor:ae(.45),checkboxIndeterminateBorderColor:ae(.45),checkboxBorderWidth:2,checkboxBorderRadius:2,fontSize:13,dataFontSize:14,headerFontWeight:700,borderRadius:3,wrapperBorderRadius:3,tabSelectedUnderlineColor:ce,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sideButtonSelectedUnderlineColor:ce,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,sideButtonSelectedBorder:!1,sideButtonBarTopPadding:{calc:"spacing * 3"},sideButtonSelectedBackgroundColor:"transparent",sideButtonHoverTextColor:ce,iconButtonHoverColor:ce,toggleButtonWidth:28,toggleButtonHeight:18,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:ae(.45),colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2}),r6=()=>Ci().withPart(ov).withPart(yi).withPart(Si).withPart(nv).withPart(fv).withPart(Ya).withPart(Gc).withParams(bv()),i6=r6(),Cv=()=>({accentColor:"#0091ea",borderColor:le(.2),spacing:4,widgetVerticalSpacing:{calc:"max(8px, spacing)"},borderRadius:2,wrapperBorderRadius:2,headerColumnResizeHandleColor:"transparent",headerColumnBorder:!0,headerColumnBorderHeight:"50%",oddRowBackgroundColor:{ref:"chromeBackgroundColor",mix:.5},checkboxBorderRadius:2,checkboxBorderWidth:1,checkboxUncheckedBackgroundColor:re,checkboxUncheckedBorderColor:ae(.5),checkboxCheckedBackgroundColor:re,checkboxCheckedBorderColor:ce,checkboxCheckedShapeColor:ce,checkboxIndeterminateBackgroundColor:re,checkboxIndeterminateBorderColor:ae(.5),checkboxIndeterminateShapeColor:ae(.5),focusShadow:{radius:2,spread:1,color:ce},headerTextColor:le(.6),iconButtonHoverBackgroundColor:"transparent",iconButtonActiveBackgroundColor:"transparent",fontSize:12,tabSelectedBackgroundColor:re,headerFontWeight:"bold",toggleButtonWidth:32,toggleButtonHeight:16,toggleButtonSwitchInset:1,toggleButtonOffBackgroundColor:ae(.5),sideButtonBorder:!0,sideButtonBarTopPadding:{calc:"spacing * 4"},popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)",statusBarLabelColor:le(.54),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,panelTitleBarIconColor:Pe,toolbarTextColor:{ref:"headerTextColor"},colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2}),a6=()=>Ci().withPart(rv).withPart(yi).withPart(Si).withPart(av).withPart(mv).withPart(Ya).withPart(Wc).withParams(Cv()),n6=a6(),s6=()=>{const e={tabSelectedUnderlineColor:{ref:"primaryColor"},sideButtonSelectedUnderlineColor:{ref:"primaryColor"},buttonTextColor:{ref:"primaryColor"},rangeSelectionBackgroundColor:{ref:"primaryColor",mix:.2},rangeSelectionBorderColor:{ref:"primaryColor"},rangeSelectionHighlightColor:{ref:"primaryColor",mix:.5},rangeHeaderHighlightColor:{ref:"foregroundColor",mix:.08},rowNumbersSelectedColor:{ref:"primaryColor",mix:.5},inputFocusBorder:{width:2,color:{ref:"primaryColor"}},pickerButtonFocusBorder:{width:1,color:{ref:"primaryColor"}},cellEditingBorder:{color:{ref:"primaryColor"}},menuBackgroundColor:{ref:"backgroundColor"},sideButtonBarBackgroundColor:re,sideButtonSelectedBackgroundColor:"transparent",sideButtonBarTopPadding:{calc:"spacing * 4"},headerColumnResizeHandleColor:"none",headerBackgroundColor:{ref:"backgroundColor"},rowHoverColor:le(.08),columnHoverColor:le(.08),headerCellHoverBackgroundColor:le(.05),headerTextColor:le(.615),statusBarLabelColor:le(.63),statusBarLabelFontWeight:600,statusBarValueFontWeight:600,valueChangeValueHighlightBackgroundColor:"#00acc1",panelTitleBarIconColor:Pe,toolbarTextColor:Pe,advancedFilterBuilderButtonBarBorder:!1,filterPanelApplyButtonColor:{ref:"buttonTextColor"},filterPanelApplyButtonBackgroundColor:{ref:"buttonBackgroundColor"},columnPanelApplyButtonColor:{ref:"buttonTextColor"},columnPanelApplyButtonBackgroundColor:{ref:"buttonBackgroundColor"},colorPickerThumbSize:13,colorPickerTrackSize:11,colorPickerThumbBorderWidth:2,colorPickerTrackBorderRadius:2,colorPickerColorBorderRadius:2,rowDragIndicatorColor:{ref:"primaryColor"},columnDragIndicatorColor:{ref:"primaryColor"}},t={...e,primaryColor:"#3f51b5",foregroundColor:"#000D",accentColor:"#ff4081",checkboxUncheckedBorderColor:Pe,checkboxIndeterminateBackgroundColor:Pe,toggleButtonOffBackgroundColor:Pe,selectedRowBackgroundColor:"rgba(33, 150, 243, 0.3)"},o={...e,primaryColor:"#3f51b5",foregroundColor:"#fffD",accentColor:"#bb86fc",checkboxUncheckedBorderColor:ae(.5),checkboxIndeterminateBackgroundColor:ae(.5),toggleButtonOffBackgroundColor:ae(.5),selectedRowBackgroundColor:"#bb86fc33"};return $({feature:"styleMaterial",css:XF,params:t,modeParams:{light:t,dark:o,"dark-blue":o}})},yv=s6(),Sv=()=>({rowHeight:{calc:"max(iconSize, cellFontSize) + spacing * 3.75 * rowVerticalPaddingScale"},headerHeight:{calc:"max(iconSize, headerFontSize) + spacing * 4.75 * headerVerticalPaddingScale"},widgetVerticalSpacing:{calc:"spacing * 1.75"},cellHorizontalPadding:{calc:"spacing * 3"},buttonHorizontalPadding:{ref:"spacing"},widgetContainerHorizontalPadding:{calc:"spacing * 1.5"},widgetContainerVerticalPadding:{calc:"spacing * 2"},fontSize:13,iconSize:18,borderRadius:0,wrapperBorderRadius:0,wrapperBorder:!1,menuBorder:!1,dialogBorder:!1,panelTitleBarBorder:!1,tabSelectedBorderWidth:0,tabSelectedUnderlineTransitionDuration:.3,sidePanelBorder:!1,sideButtonSelectedBorder:!1,sideButtonSelectedUnderlineWidth:2,sideButtonSelectedUnderlineTransitionDuration:.3,sideButtonBorder:!1,buttonBorder:!1,buttonDisabledBorder:!1,focusShadow:{spread:4,color:le(.16)},fontFamily:[{googleFont:"Roboto"},...gs()],inputHeight:{calc:"max(iconSize, fontSize) + spacing * 3"},pickerButtonBorder:{width:1,color:"transparent"},headerFontWeight:600,headerFontSize:{calc:"fontSize - 1px"},checkboxBorderWidth:2,checkboxBorderRadius:2,toggleButtonWidth:34,toggleButtonSwitchInset:1,cardShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",popupShadow:"5px 5px 10px rgba(0, 0, 0, 0.3)"}),l6=()=>Ci().withPart(ev).withPart(yi).withPart(Si).withPart(sv).withPart(pv).withPart(uv).withPart(Wc).withPart(yv).withParams(Sv()),c6=l6(),zt=(e,t,o)=>({changeKey:e,type:t,defaultValue:o}),d6=zt("autoHeightMaxBodyHeight","length",1/0),g6=zt("cellHorizontalPadding","length",16),u6=zt("cellWidgetSpacing","length",12),h6=zt("iconSize","length",16),xv=zt("rowHeight","length",42),kv=zt("headerHeight","length",48),_c=zt("rowBorderWidth","border",1),Ev=zt("pinnedRowBorderWidth","border",1),p6=zt("headerRowBorderWidth","border",1);function Rv(e,t){for(const o of t.sort((r,i)=>r.moduleName.localeCompare(i.moduleName))){const r=o.css;r&&e.set(`module-${o.moduleName}`,r)}}var f6=class extends T1{initVariables(){this.addManagedPropertyListener("rowHeight",()=>this.refreshRowHeightVariable()),this.getSizeEl(xv),this.getSizeEl(kv),this.getSizeEl(_c),this.getSizeEl(Ev),this.refreshRowBorderWidthVariable()}getPinnedRowBorderWidth(){return this.getCSSVariablePixelValue(Ev)}getRowBorderWidth(){return this.getCSSVariablePixelValue(_c)}getHeaderRowBorderWidth(){return this.getCSSVariablePixelValue(p6)}getDefaultRowHeight(){return this.getCSSVariablePixelValue(xv)}getDefaultHeaderHeight(){return this.getCSSVariablePixelValue(kv)}getAutoHeightMaxBodyHeight(){const e=this.getCSSVariablePixelValue(d6);return e<1/0?e:null}getDefaultCellHorizontalPadding(){return this.getCSSVariablePixelValue(g6)}getDefaultCellWidgetSpacing(){return this.getCSSVariablePixelValue(u6)}getDefaultIconSize(){return this.getCSSVariablePixelValue(h6)}getDefaultColumnMinWidth(){return Math.min(36,this.getDefaultRowHeight())}refreshRowHeightVariable(){const{eRootDiv:e}=this,t=e.style.getPropertyValue("--ag-line-height").trim(),o=this.gos.get("rowHeight");if(o==null||Number.isNaN(Number(o))||!Number.isFinite(Number(o)))return t!==null&&e.style.setProperty("--ag-line-height",null),-1;const r=`${o}px`;return t!=r?(e.style.setProperty("--ag-line-height",r),o):t!=""?Number.parseFloat(t):-1}fireStylesChangedEvent(e){e==="rowBorderWidth"&&this.refreshRowBorderWidthVariable(),e!=="theme"&&this.checkLegacyThemeVariables(),super.fireStylesChangedEvent(e)}refreshRowBorderWidthVariable(){const e=this.getCSSVariablePixelValue(_c);this.eRootDiv.style.setProperty("--ag-internal-row-border-width",`${e}px`)}postProcessThemeChange(e,t){e&&getComputedStyle(this.getMeasurementContainer()).getPropertyValue("--ag-legacy-styles-loaded")?t?this.beans.log.error(106):this.beans.log.error(239):e&&this.checkLegacyThemeVariables()}checkLegacyThemeVariables(){this.beans.validation?.checkLegacyThemeVariables(this.eRootDiv)}getAdditionalCss(){const e=new Map;return e.set("core",[nF]),Rv(e,Array.from(vx())),e}getDefaultTheme(){return wv}varError(e,t){this.beans.log.warn(9,{variable:{cssName:e,defaultValue:t}})}themeError(e){this.beans.log.error(240,{theme:e})}shadowRootError(){this.beans.log.error(293)}},m6=class extends z1{postConstruct(){const{globalListener:e,globalSyncListener:t}=this.beans;e&&this.addGlobalListener(e,!0),t&&this.addGlobalListener(t,!1)}};function jc(e,t,o){const r=e.visibleCols.headerGroupRowCount;if(o>=r)return{column:t,headerRowIndex:o};let i=t.parent;for(;i&&i.getProvidedColumnGroup().getLevel()>o;)i=i.parent;const a=t.isSpanHeaderHeight();return!i||a&&i.isPadding()?{column:t,headerRowIndex:r}:{column:i,headerRowIndex:i.getProvidedColumnGroup().getLevel()}}var v6=class extends x{constructor(){super(...arguments),this.beanName="headerNavigation",this.currentHeaderRowWithoutSpan=-1}postConstruct(){const e=this.beans;e.ctrlsSvc.whenReady(this,o=>{this.gridBodyCon=o.gridBodyCtrl});const t=me(e);this.addManagedElementListeners(t,{mousedown:()=>{this.currentHeaderRowWithoutSpan=-1}})}onHeaderClicked(e){e.isSpanHeaderHeight()&&(this.currentHeaderRowWithoutSpan=(e.getFirstRealParent()?.getLevel()??-1)+1)}getHeaderPositionForColumn(e,t){let o;const{colModel:r,ctrlsSvc:i}=this.beans;if(typeof e=="string"?o=r.getCol(e)??r.colsGroupsById.get(e)?.displayInstances?.[0]??null:o=e,!o)return null;const n=i.getHeaderRowContainerCtrl()?.getAllCtrls(),s=pe(n??[]).type==="filter",l=Je(this.beans)-1;let c=-1,d=o;for(;d;)c++,d=d.parent;let g=c;return t&&s&&g===l-1&&g++,g===-1?null:{headerRowIndex:g,column:o}}navigateVertically(e,t){const{focusSvc:o,visibleCols:r}=this.beans,{focusedHeader:i}=o;if(!i)return!1;const{headerRowIndex:a}=i,n=i.column,s=Je(this.beans),l=this.getHeaderRowType(a),c=r.headerGroupRowCount;let{headerRowIndex:d,column:g,headerRowIndexWithoutSpan:u}=e==="UP"?w6(l,n,a):b6(n,a,c),h=!1;return d<0&&(d=0,g=n,h=!0),d>=s?(d=-1,this.currentHeaderRowWithoutSpan=-1):u!==void 0&&(this.currentHeaderRowWithoutSpan=u),!h&&!g?!1:o.focusHeaderPosition({headerPosition:{headerRowIndex:d,column:g},allowUserOverride:!0,event:t})}navigateHorizontally(e,t=!1,o){const{focusSvc:r,gos:i}=this.beans;if(!r.focusedHeader)return!1;const a={...r.focusedHeader};let n,s;this.currentHeaderRowWithoutSpan!==-1?a.headerRowIndex=this.currentHeaderRowWithoutSpan:this.currentHeaderRowWithoutSpan=a.headerRowIndex,e==="LEFT"!==i.get("enableRtl")?(s="Before",n=this.findHeader(a,s)):(s="After",n=this.findHeader(a,s));const l=i.getCallback("tabToNextHeader");if(t&&l){const c=r.focusHeaderPositionFromUserFunc({userFunc:l,headerPosition:n,direction:s});if(c){const{headerRowIndex:d}=r.focusedHeader||{};d!=null&&d!=a.headerRowIndex&&(this.currentHeaderRowWithoutSpan=d)}return c}return n||!t?r.focusHeaderPosition({headerPosition:n,direction:s,fromTab:t,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(a,s,o)}focusNextHeaderRow(e,t,o){const r=this.beans,i=e.headerRowIndex;let a,n;const s=Je(r),l=this.beans.visibleCols.allCols;if(t==="Before"){if(i<=0)return!1;a=pe(l),n=i-1,this.currentHeaderRowWithoutSpan-=1}else a=l[0],n=i+1,this.currentHeaderRowWithoutSpan<s?this.currentHeaderRowWithoutSpan+=1:this.currentHeaderRowWithoutSpan=-1;let{column:c,headerRowIndex:d}=jc(this.beans,a,n);return d>=s&&(d=-1),r.focusSvc.focusHeaderPosition({headerPosition:{column:c,headerRowIndex:d},direction:t,fromTab:!0,allowUserOverride:!0,event:o})}scrollToColumn(e,t="After"){if(e.pinnedLane!==1)return;let o;if(tt(e)){const r=e.getDisplayedLeafColumns();o=t==="Before"?pe(r):r[0]}else o=e;this.gridBodyCon.scrollFeature.ensureColumnVisible(o)}findHeader(e,t){const{visibleCols:o}=this.beans;let r=e.column;if(r instanceof ir){const s=r.getDisplayedLeafColumns();r=t==="Before"?s[0]:s[s.length-1]}const i=t==="Before"?o.getColBefore(r):o.getColAfter(r);if(!i)return;const a=o.headerGroupRowCount;if(e.headerRowIndex>=a)return{headerRowIndex:e.headerRowIndex,column:i};const n=Gh(i,e.headerRowIndex);return n?n.isPadding()&&i.isSpanHeaderHeight()?{headerRowIndex:o.headerGroupRowCount,column:i}:{headerRowIndex:e.headerRowIndex,column:n??i}:{headerRowIndex:i instanceof ko&&i.isSpanHeaderHeight()?o.headerGroupRowCount:e.headerRowIndex,column:i}}getHeaderRowType(e){const t=this.beans.ctrlsSvc.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)}};function w6(e,t,o){const r=o-1;if(e!=="filter"){const i=t instanceof ko&&t.isSpanHeaderHeight();let a=t.parent;for(;a&&(a.getProvidedColumnGroup().getLevel()>r||i&&a.isPadding());)a=a.parent;if(a)if(i){const n=a.getProvidedColumnGroup().getLevel();return{column:a,headerRowIndex:n,headerRowIndexWithoutSpan:n}}else return{column:a,headerRowIndex:r,headerRowIndexWithoutSpan:r}}return{column:t,headerRowIndex:r,headerRowIndexWithoutSpan:r}}function b6(e,t,o){const r=t+1,i={column:e,headerRowIndex:r,headerRowIndexWithoutSpan:r};if(e instanceof ir){if(r>=o)return{column:Mo(e,!0,!1),headerRowIndex:o,headerRowIndexWithoutSpan:r};let n=e.displayedChildren[0];if(n instanceof ir&&n.isPadding()){const l=Mo(n,!0,!1);l?.isSpanHeaderHeight()&&(n=l)}i.column=n,n instanceof ko&&n.isSpanHeaderHeight()&&(i.headerRowIndex=o,i.headerRowIndexWithoutSpan=r)}return i}var C6=class extends x{constructor(){super(...arguments),this.beanName="focusSvc",this.focusedCell=null,this.previousCellFocusParams=null,this.focusedHeader=null,this.elementToReveal=null,this.owedFocus=null,this.onActionWhileFocusOwed=e=>{(e.type==="focusin"?this.isFocusFreeForGrid():this.mayPressBeOnGrid(e))||this.dropOwedFocus()}}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(V1(this.beans))}destroy(){this.focusedCell=null,this.dropOwedFocus(),super.destroy()}oweFocus(e){const t=this.owedFocus;t?.header||this.setOwedFocus(void 0,e??t?.event,t?t.activeAtOwed:Wi(this.beans))}deferFocus(e){this.setOwedFocus(e,void 0,Wi(this.beans))}setOwedFocus(e,t,o){let r=this.owedFocus?.shadowRoots;if(!r){const i=me(this.beans);i.addEventListener("pointerdown",this.onActionWhileFocusOwed,!0),i.addEventListener("focusin",this.onActionWhileFocusOwed,!0);const a=[];for(let n=this.beans.eRootDiv.getRootNode();n instanceof ShadowRoot;n=n.host.getRootNode())n.addEventListener("pointerdown",this.onActionWhileFocusOwed,!0),n.addEventListener("focusin",this.onActionWhileFocusOwed,!0),a.push(n);r=a}this.owedFocus={header:e,event:t,activeAtOwed:o,shadowRoots:r}}takeOwedFocusEvent(){const e=this.owedFocus?.event;return e&&this.takeOwedFocus()?e:void 0}takeOwedFocus(){const e=this.owedFocus;return!e||e.header||(this.dropOwedFocus(),!e.event&&this.gos.get("suppressFocusAfterRefresh"))?!1:Wi(this.beans)===e.activeAtOwed||this.isFocusFreeForGrid()}dropOwedFocus(){const e=this.owedFocus;if(!e)return;this.owedFocus=null;const t=me(this.beans);t.removeEventListener("pointerdown",this.onActionWhileFocusOwed,!0),t.removeEventListener("focusin",this.onActionWhileFocusOwed,!0);const o=e.shadowRoots;for(let r=0,i=o.length;r<i;++r){const a=o[r];a.removeEventListener("pointerdown",this.onActionWhileFocusOwed,!0),a.removeEventListener("focusin",this.onActionWhileFocusOwed,!0)}}mayPressBeOnGrid(e){let t=this.beans.eRootDiv,o=t.getRootNode();for(;o!==e.currentTarget&&o instanceof ShadowRoot;){const r=o.host;t=o.mode==="closed"?r:t,o=r.getRootNode()}return e.composedPath().includes(t)}shouldTakeFocus(){return!this.gos.get("suppressFocusAfterRefresh")&&this.doesRowOrCellHaveBrowserFocus()}dropOwedHeaderFocus(e){this.owedFocus?.header===e&&this.dropOwedFocus()}takeOwedHeaderFocus(e){const t=this.owedFocus;return t?.header!==e?!1:(this.dropOwedFocus(),Wi(this.beans)===t.activeAtOwed||kr(this.beans))}isFocusFreeForGrid(){return kr(this.beans)||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(Z(this.beans),zl)?null:this.focusedHeader}doesRowOrCellHaveBrowserFocus(){const e=Z(this.beans);return!e||!this.gos.isElementInThisInstance(e)?!1:this.isDomDataPresentInHierarchy(e,Ra)?!0:this.isDomDataPresentInHierarchy(e,Ma)}isDomDataPresentInHierarchy(e,t){let o=e;for(;o;){if(Ps(this.gos,o,t))return!0;o=o.parentNode}return!1}getFocusedCell(){return this.focusedCell}getFocusEventParams(e){const{rowIndex:t,rowPinned:o,column:r}=e,i={rowIndex:t,rowPinned:o,column:r,isFullWidthCell:!1},a=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:o});return a&&(i.isFullWidthCell=a.isFullWidth()),i}clearFocusedCell(){if(this.focusedCell==null)return;const e=this.getFocusEventParams(this.focusedCell);this.focusedCell=null,this.owedFocus?.header||this.dropOwedFocus(),this.eventSvc.dispatchEvent({type:"cellFocusCleared",...e})}setFocusedCellOrSpan(e){const{rowIndex:t,rowPinned:o}=e,r=this.visibleCols.colSpanColCount!==0?this.colModel.getCol(e.column):null,i=r&&t!=null?We(this.beans,{rowIndex:t,rowPinned:o}):void 0,a=r&&i?this.rowRenderer.getSpanningCol(r,i):null;if(r&&a&&a!==r){this.setFocusedCell({...e,column:a}),this.navigation?.setCurrentColumnWithoutSpan(r);return}this.setFocusedCell(e)}setFocusedCell(e){this.dropOwedFocus();const{column:t,rowIndex:o,rowPinned:r,forceBrowserFocus:i=!1,preventScrollOnBrowserFocus:a=!1,sourceEvent:n}=e,s=this.colModel.getCol(t);if(!s){this.focusedCell=null;return}this.focusedCell={rowIndex:o,rowPinned:Nt(r),column:s};const l=this.getFocusEventParams(this.focusedCell);this.eventSvc.dispatchEvent({type:"cellFocused",...l,...this.previousCellFocusParams&&{previousParams:this.previousCellFocusParams},forceBrowserFocus:i,preventScrollOnBrowserFocus:a,sourceEvent:n}),this.previousCellFocusParams=l}isCellFocused(e){return this.focusedCell==null?!1:Sa(e,this.focusedCell)}isHeaderWrapperFocused(e){if(this.focusedHeader==null)return!1;const{column:t,rowCtrl:{rowIndex:o}}=e,{column:r,headerRowIndex:i}=this.focusedHeader;return t===r&&o===i}focusGridElement(e){const t=this.beans.colAnimation;if(!t?.isActive()){e.focus();return}e.focus({preventScroll:!0}),this.elementToReveal||t.executeLaterVMTurn(()=>this.revealElement()),this.elementToReveal=e}revealElement(){const e=this.elementToReveal;if(!e||!this.isAlive()||!e.contains(Z(this.beans))){this.elementToReveal=null;return}const t=this.beans.colAnimation;if(t?.isActive()){t.executeLaterVMTurn(()=>this.revealElement());return}const o=e.getAnimations?.().filter(y6);if(o?.length){Promise.allSettled(o.map(r=>r.finished)).then(()=>this.revealElement());return}this.elementToReveal=null,e.scrollIntoView({block:"nearest",inline:"nearest"})}focusHeaderPosition(e){if(this.dropOwedFocus(),Ve(this.beans))return!1;const{direction:t,fromTab:o,allowUserOverride:r,event:i,fromCell:a,rowWithoutSpanValue:n,scroll:s=!0}=e;let{headerPosition:l}=e;if(a&&this.filterManager?.isAdvFilterHeaderActive())return this.focusAdvancedFilter(l);if(r){const c=this.focusedHeader,d=Je(this.beans);if(o){const g=this.gos.getCallback("tabToNextHeader");g&&(l=this.getHeaderPositionFromUserFunc({userFunc:g,direction:t,currentPosition:c,headerPosition:l,headerRowCount:d}))}else{const g=this.gos.getCallback("navigateToNextHeader");if(g&&i){const u={key:i.key,previousHeaderPosition:c,nextHeaderPosition:l,headerRowCount:d,event:i},h=g(u);l=h===null?c:h}}}return l?this.focusProvidedHeaderPosition({headerPosition:l,direction:t,event:i,fromCell:a,rowWithoutSpanValue:n,scroll:s}):!1}focusHeaderPositionFromUserFunc(e){if(Ve(this.beans))return!1;const{userFunc:t,headerPosition:o,direction:r,event:i}=e,a=this.focusedHeader,n=Je(this.beans),s=this.getHeaderPositionFromUserFunc({userFunc:t,direction:r,currentPosition:a,headerPosition:o,headerRowCount:n});return!!s&&this.focusProvidedHeaderPosition({headerPosition:s,direction:r,event:i})}getHeaderPositionFromUserFunc(e){const{userFunc:t,direction:o,currentPosition:r,headerPosition:i,headerRowCount:a}=e,s=t({backwards:o==="Before",previousHeaderPosition:r,nextHeaderPosition:i,headerRowCount:a});return s===!0?r:s===!1?null:s}focusProvidedHeaderPosition(e){const{headerPosition:t,direction:o,fromCell:r,rowWithoutSpanValue:i,event:a,scroll:n=!0}=e,{column:s,headerRowIndex:l}=t,{filterManager:c,ctrlsSvc:d,headerNavigation:g}=this.beans;if(this.isDomDataPresentInHierarchy(Z(this.beans),zl)&&this.focusedHeader&&X2(e.headerPosition,this.focusedHeader))return!1;if(l===-1)return c?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(t):this.focusGridView({column:s,event:a});n&&g?.scrollToColumn(s,o);const p=d.getHeaderRowContainerCtrl()?.focusHeader(t.headerRowIndex,s,a)||!1;return g&&p&&(i!=null||r)&&(g.currentHeaderRowWithoutSpan=i??-1),p}focusFirstHeader(){if(this.overlays?.exclusive&&this.focusOverlay())return!0;const e=this.visibleCols.allCols[0];if(!e)return!1;const t=jc(this.beans,e,0);return this.focusHeaderPosition({headerPosition:t,rowWithoutSpanValue:0})}focusLastHeader(e){if(this.overlays?.exclusive&&this.focusOverlay(!0))return!0;const t=Je(this.beans)-1,o=pe(this.visibleCols.allCols);return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:o},rowWithoutSpanValue:-1,event:e})}focusPreviousFromFirstCell(e){return this.filterManager?.isAdvFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(e)}isAnyCellFocused(){return!!this.focusedCell}isRowFocused(e,t){return this.focusedCell==null?!1:this.focusedCell.rowIndex===e&&this.focusedCell.rowPinned===Nt(t)}focusOverlay(e){const t=this.overlays?.isVisible()&&this.overlays.eWrapper?.getGui();return!!t&&Ar(t,e)}getDefaultTabToNextGridContainerTarget(e){const{backwards:t,focusableContainers:o}=e,r=t?-1:1;let i;const a=()=>(i===void 0&&(i=this.getGridBodyTabTarget(t)),i);for(let n=e.nextIndex;n>=0&&n<o.length;n+=r){const s=j2(o[n],a);if(s)return s}return null}getGridBodyTabTarget(e){if(e)return this.getGridViewTabTarget({column:pe(this.visibleCols.allCols),backwards:!0});const t=this.visibleCols.allCols[0];return this.gos.get("headerHeight")===0||Ve(this.beans)?this.getGridViewTabTarget({column:t}):t?jc(this.beans,t,0):null}getGridViewTabTarget(e){const{backwards:t=!1}=e,o=e.column??this.focusedHeader?.column;if(!o||this.overlays?.exclusive)return null;if(ai(this.beans))return t&&!Ve(this.beans)?{headerRowIndex:Je(this.beans)-1,column:o}:null;const r=t?xl(this.beans):Sl(this.beans);if(r?.rowIndex==null){if(this.overlays?.isVisible())return null;if(t&&!Ve(this.beans)){const a=pe(this.visibleCols.allCols);if(a)return{headerRowIndex:Je(this.beans)-1,column:a}}return null}const i=We(this.beans,r);return!i||o.isSuppressNavigable(i)||t&&this.rowRenderer.getRowByPosition(r)?.isFullWidth()?null:{rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:o}}focusGridView(e){const{backwards:t=!1,canFocusOverlay:o=!0,event:r}=e;if(this.overlays?.exclusive)return o&&this.focusOverlay(t);if(ai(this.beans))return t&&!Ve(this.beans)?this.focusLastHeader():o&&this.focusOverlay(t)?!0:t?!1:Po(this.beans,t);const i=t?xl(this.beans):Sl(this.beans);if(i){const a=e.column??this.focusedHeader?.column,{rowIndex:n,rowPinned:s}=i,l=We(this.beans,i);if(!a||!l||n==null)return!1;if(a.isSuppressNavigable(l)){if(Rt(this.gos,l))return t&&!Ve(this.beans)?this.focusLastHeader():o&&this.focusOverlay(t);const c=this.gos.get("enableRtl");let d;return!r||r.key===y.TAB?d=c?y.LEFT:y.RIGHT:d=r.key,this.beans.navigation?.navigateToNextCell(null,d,{rowIndex:n,column:a,rowPinned:s||null},!0),!0}return this.navigation?.ensureCellVisible({rowIndex:n,column:a,rowPinned:s}),t&&this.rowRenderer.getRowByPosition(i)?.isFullWidth()&&this.navigation?.tryToFocusFullWidthRow(i,t)||(this.setFocusedCell({rowIndex:n,column:a,rowPinned:Nt(s),forceBrowserFocus:!0}),Le(a)||this.beans.rangeSvc?.setRangeToCell({rowIndex:n,rowPinned:s,column:a})),!0}return!!(o&&this.focusOverlay(t)||t&&this.focusLastHeader())}focusAdvancedFilter(e){return this.advFilterFocusColumn=e?.column,this.beans.advancedFilter?.getCtrl().focusHeaderComp()??!1}focusNextFromAdvancedFilter(e,t){const o=(t?void 0:this.advFilterFocusColumn)??this.visibleCols.allCols?.[0];return e?this.focusHeaderPosition({headerPosition:{column:o,headerRowIndex:Je(this.beans)-1}}):this.focusGridView({column:o})}clearAdvancedFilterColumn(){this.advFilterFocusColumn=void 0}};function y6(e){const t="transitionProperty"in e?e.transitionProperty:null;return t==="left"||t==="right"||t==="width"}var S6=class extends x{constructor(){super(...arguments),this.beanName="scrollVisibleSvc",this.refreshTimer=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colAnimation=e.colAnimation}destroy(){window.clearTimeout(this.refreshTimer),super.destroy()}postConstruct(){const{gos:e}=this;this.horizontalScrollShowing=!!e.get("alwaysShowHorizontalScroll"),this.verticalScrollShowing=!!e.get("alwaysShowVerticalScroll"),this.ctrlsSvc.whenReady(this,()=>this.measureScrollbar());const t=this.refresh.bind(this);this.addManagedEventListeners({displayedColumnsChanged:t,displayedColumnsWidthChanged:t,newColumnsLoaded:t,stylesChanged:o=>{o.themeChanged&&this.measureScrollbar()}})}refresh(){this.refreshImpl(),window.clearTimeout(this.refreshTimer),this.refreshTimer=window.setTimeout(()=>this.refreshImpl(),500)}isHorizontalScrollShowing(){return this.horizontalScrollShowing}isVerticalScrollShowing(){return this.verticalScrollShowing}refreshImpl(){const{colAnimation:e}=this;e?.isActive()?e.executeLaterVMTurn(()=>{e.executeLaterVMTurn(()=>this.refreshScrollState())}):this.refreshScrollState()}refreshScrollState(){const e=this.ctrlsSvc.getGridBodyCtrl();if(!this.isAlive()||!e||this.colAnimation?.isActive())return;const t=this.calculateScrollVisibilityState(e);this.applyScrollVisibility(t),this.applyScrollGap(this.calculateScrollGapState(e,t.verticalScrollShowing))}calculateScrollVisibilityState(e){const t=e.eGridViewport.clientHeight,o=this.calculateVerticalScrollShowing(e,!1,t),r=this.calculateHorizontalScrollShowing(e,o),i=o||r&&this.calculateVerticalScrollShowing(e,!0,t);return{horizontalScrollShowing:r,verticalScrollShowing:i}}calculateVerticalScrollShowing(e,t,o){if(this.gos.get("alwaysShowVerticalScroll"))return!0;if(!na(this.beans))return!1;const i=o+this.getAppliedHorizontalScrollbarLayoutHeight()-this.getHorizontalScrollbarLayoutHeight(t),a=e.getBodyViewportHeight(i);return(this.beans.rowContainerHeight.uiContainerHeight??0)-a>.5}getHorizontalScrollbarLayoutHeight(e){return!e||this.gos.get("suppressHorizontalScroll")||this.isInvisibleScrollbar()?0:this.getScrollbarWidth()||0}getAppliedHorizontalScrollbarLayoutHeight(){if(this.gos.get("suppressHorizontalScroll")||this.isInvisibleScrollbar())return 0;const e=Number.parseFloat(this.ctrlsSvc.get("fakeHScrollComp")?.getGui().style.height??"");return Number.isFinite(e)?e:0}calculateHorizontalScrollShowing(e,t){if(this.gos.get("alwaysShowHorizontalScroll"))return!0;const o=e.getReportedViewportWidth(),r=e.isPinnedWidthOverflowingViewport(o,t);return e.getHorizontalContentWidth(r,t)-o>.5}calculateScrollGapState(e,t){const{rowContainerHeight:o}=this.beans,r=e.getColumnsWidth(),i=e.getViewportWidthWithoutScrollbar(e.getReportedViewportWidth(),t),a=o.getAdjustedUiContainerHeight()??0,n=e.getBodyViewportHeight(e.eGridViewport.clientHeight);return{horizontalScrollGap:r<i-.5,verticalScrollGap:a<n-.5}}applyScrollGap({horizontalScrollGap:e,verticalScrollGap:t}){(this.horizontalScrollGap!==e||this.verticalScrollGap!==t)&&(this.horizontalScrollGap=e,this.verticalScrollGap=t,this.eventSvc.dispatchEvent({type:"scrollGapChanged"}))}applyScrollVisibility(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventSvc.dispatchEvent({type:"scrollVisibilityChanged"}))}getScrollbarWidth(){return this.scrollbarWidth==null&&this.measureScrollbar(),this.scrollbarWidth}isInvisibleScrollbar(){return this.invisibleScrollbar==null&&this.measureScrollbar(),this.invisibleScrollbar}measureScrollbar(){const e=this.measureScrollbarProbe();if(e==null)return;const{nativeWidth:t,borderWidth:o}=e,r=this.gos.get("scrollbarWidth"),i=typeof r=="number"&&r>=0,a=t===0,n=(i?r:t)+(a?0:o);(n!==this.scrollbarWidth||a!==this.invisibleScrollbar)&&(this.scrollbarWidth=n,this.invisibleScrollbar=a,this.eventSvc.dispatchEvent({type:"scrollbarWidthChanged"}))}measureScrollbarProbe(){const e=this.ctrlsSvc.getGridBodyCtrl()?.eGridBody;if(!e)return null;const t=G({tag:"div",cls:"ag-body-vertical-scroll-viewport ag-scrollbar-probe"}),o=t.style;o.width=o.height="100px",o.opacity="0",o.overflow="scroll",o.msOverflowStyle="scrollbar",o.position="absolute",e.appendChild(t);const r=t.clientWidth,i=t.offsetWidth-r,a=getComputedStyle(t),n=(Number.parseFloat(a.borderLeftWidth)||0)+(Number.parseFloat(a.borderRightWidth)||0);return t.remove(),i===0&&r===0?null:{nativeWidth:Math.max(0,i-n),borderWidth:n}}},x6=class extends x{constructor(){super(...arguments),this.beanName="gridDestroySvc",this.destroyCalled=!1}destroy(){if(this.destroyCalled)return;const{stateSvc:e,ctrlsSvc:t,context:o}=this.beans;try{this.eventSvc.dispatchEvent({type:"gridPreDestroyed",state:e?.getState()??{}})}finally{this.destroyCalled=!0,t.get("gridCtrl")?.destroyGridUi(),o.destroy(),super.destroy()}}},Qa=["columnEverythingChanged","newColumnsLoaded","columnPivotModeChanged","pivotMaxColumnsExceeded","columnRowGroupChanged","expandOrCollapseAll","columnPivotChanged","gridColumnsChanged","columnValueChanged","columnMoved","columnVisible","columnPinned","columnHeaderNameChanged","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","calculatedColumnCreated","calculatedColumnChanged","calculatedColumnExpressionChanged","calculatedColumnRemoved","calculatedColumnValidationStateChanged","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","issueRaised"],k6=["scrollbarWidthChanged","keyShortcutChangedCellStart","keyShortcutChangedCellEnd","pinnedHeightChanged","cellFocusCleared","fullWidthRowFocused","checkboxChanged","heightScaleChanged","suppressMovableColumns","suppressMenuHide","suppressFieldDotNotation","columnPanelItemDragStart","columnPanelItemDragEnd","bodyHeightChanged","gridViewportWidthChanged","columnContainerWidthChanged","displayedColumnsWidthChanged","scrollVisibilityChanged","scrollGapChanged","columnHoverChanged","flashCells","rowDragVisibilityChanged","paginationPixelOffsetChanged","displayedRowsChanged","leftPinnedWidthChanged","rightPinnedWidthChanged","rowContainerHeightChanged","headerHeightChanged","columnGroupHeaderHeightChanged","columnHeaderHeightChanged","stylesChanged","storeUpdated","filterDestroyed","filterHandlerDestroyed","rowDataUpdateStarted","rowCountReady","advancedFilterEnabledChanged","dataTypesInferred","fieldValueChanged","fieldPickerValueSelected","richSelectListRowSelected","sideBarUpdated","alignedGridScroll","alignedGridColumn","gridOptionsChanged","chartTitleEdit","recalculateRowBounds","stickyTopOffsetChanged","stickyBottomOffsetChanged","overlayExclusiveChanged","rowNodeDataChanged","cellEditValuesChanged","filterSwitched","filterClosed","headerRowsChanged","rowExpansionStateChanged","showRowGroupColsSetChanged","columnHeaderEditHighlightChanged","columnShowValuesAsChanged"],E6=()=>[...Qa,...k6],dr=new Set(["gridPreDestroyed","fillStart","pasteStart","issueRaised"]),Kc=Qa.reduce((e,t)=>(e[t]=nh(t),e),{});function R6(e){return e?.calculatedExpression!==void 0}function Fv(e){return e!=null&&e!==!1}function F6(e){return e===void 0?void 0:e??""}function Yc(e,t,o,r){r?e.deprecated(t,o):e.warn(t,o)}function q(e,t){return{errorId:e,emit:o=>Yc(o,e,t,!1)}}function Mv(e,t){return{errorId:e,emit:o=>Yc(o,e,t,!0)}}function Dv(e,t){typeof e=="string"?Yc(t,322,{message:e},!1):e.emit(t)}var M6=["__ob__","__v_skip","__metadata__"];function Pv(e,t,o){return new Set([...M6,...o??[],...Object.keys(t),...e])}var gr={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",agExportingOverlay:"Overlay",agNoRowsOverlay:"Overlay",agNoMatchingRowsOverlay:"Overlay",agFileInputOverlay:"FileInputOverlay",agErrorOverlay:"Validation",agTooltipComponent:"Tooltip",agReadOnlyFloatingFilter:"CustomFilter",agTextColumnFilter:"TextFilter",agNumberColumnFilter:"NumberFilter",agBigIntColumnFilter:"BigIntFilter",agDateColumnFilter:"DateFilter",agDateInput:"DateFilter",agTextColumnFloatingFilter:"TextFilter",agNumberColumnFloatingFilter:"NumberFilter",agBigIntColumnFloatingFilter:"BigIntFilter",agDateColumnFloatingFilter:"DateFilter",agFormulaCellEditor:"Formula",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",agButtonToolbarItem:"Toolbar",agFindToolbarItem:"Toolbar",agMenuToolbarItem:"Toolbar",agPivotPanelToolbarItem:"Toolbar",agQuickFilterToolbarItem:"Toolbar",agRowGroupPanelToolbarItem:"Toolbar"};function Tv(e){return`"${e}"`}var D6=()=>({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."},headerTooltipValueGetter:{version:"36.2",message:"Use `headerTooltip` with a callback instead."},tooltipField:{version:"36.2",message:"Use `tooltip` with a callback instead."},tooltipValueGetter:{version:"36.2",message:"Use `tooltip` with a callback instead."}}),P6={allowFormula:"Formula",calculatedExpression:"CalculatedColumns",calculatedColumnReadOnly:"CalculatedColumns",aggFunc:"SharedAggregation",showValuesAs:"ShowValuesAs",initialShowValuesAs:"ShowValuesAs",showValuesAsDef:"ShowValuesAs",enableShowValuesAs:"ShowValuesAs",autoHeight:"RowAutoHeight",cellClass:"CellStyle",cellClassRules:"CellStyle",cellEditor:({cellEditor:e,editable:t,groupRowEditable:o})=>!!t||!!o?typeof e=="string"?gr[e]??"CustomEditor":"CustomEditor":null,cellRenderer:({cellRenderer:e})=>typeof e!="string"?null:gr[e],cellStyle:"CellStyle",columnChooserParams:"ColumnMenu",contextMenuItems:"ContextMenu",dndSource:"DragAndDrop",dndSourceOnRowDrag:"DragAndDrop",editable:({editable:e,cellEditor:t})=>e&&!t?"TextEditor":null,groupRowEditable:({groupRowEditable:e,cellEditor:t})=>e?t?"RowGroupingEdit":["RowGroupingEdit","TextEditor"]:null,groupRowValueSetter:({groupRowValueSetter:e})=>e?"RowGroupingEdit":null,enableCellChangeFlash:"HighlightChanges",enablePivot:"SharedPivot",enableRowGroup:"SharedRowGrouping",enableValue:"SharedAggregation",filter:({filter:e})=>e&&typeof e!="string"&&typeof e!="boolean"?"CustomFilter":typeof e=="string"?gr[e]??"ColumnFilter":"ColumnFilter",floatingFilter:"ColumnFilter",getQuickFilterText:"QuickFilter",headerTooltip:"Tooltip",headerTooltipValueGetter:"Tooltip",mainMenuItems:"ColumnMenu",columnMenuItems:["ColumnMenu","ColumnsToolPanel"],menuTabs:e=>{const t=["columnsMenuTab","generalMenuTab"];return e.menuTabs?.some(o=>t.includes(o))?"ColumnMenu":null},pivot:"SharedPivot",pivotIndex:"SharedPivot",pivotSort:"SharedPivot",initialPivotSort:"SharedPivot",rowDrag:"RowDrag",rowGroup:"SharedRowGrouping",rowGroupIndex:"SharedRowGrouping",tooltip:"Tooltip",tooltipField:"Tooltip",tooltipValueGetter:"Tooltip",tooltipComponentSelector:"Tooltip",spanRows:"CellSpan",groupHierarchy:"SharedRowGrouping"},T6=()=>({autoHeight:{supportedRowModels:["clientSide","serverSide"],validate:(t,{paginationAutoPageSize:o})=>o?q(318,{feature:"`colDef.autoHeight`",conflictsWith:"`paginationAutoPageSize`"}):null},allowFormula:{supportedRowModels:["clientSide"]},showValuesAs:{supportedRowModels:["clientSide"]},initialShowValuesAs:{supportedRowModels:["clientSide"]},showValuesAsDef:{supportedRowModels:["clientSide"]},enableShowValuesAs:{supportedRowModels:["clientSide"]},calculatedExpression:{validate:(t,o)=>R6(t)?Fv(o.calculatedColumns)?t.pivotValueColumn?null:t.colId?t.field||t.valueGetter||t.valueSetter?"colDef.calculatedExpression is used as the value source and should not be combined with field, valueGetter or valueSetter.":t.editable?"colDef.calculatedExpression columns are read-only and should not be combined with editable.":null:q(319,{feature:"`colDef.calculatedExpression`",requirement:"`colId` to be set on the calculated column"}):q(319,{feature:"`colDef.calculatedExpression`",requirement:"`gridOptions.calculatedColumns` to be set to true or an options object"}):null},cellRendererParams:{validate:t=>(t.rowGroup!=null||t.rowGroupIndex!=null||t.cellRenderer==="agGroupCellRenderer")&&"checkbox"in t.cellRendererParams?Mv(306,{version:"33.0",name:"cellRendererParams.checkbox",message:'Use `rowSelection.checkboxLocation = "autoGroupColumn"` instead.'}):null},flex:{validate:(t,o)=>o.autoSizeStrategy?q(318,{feature:"`colDef.flex`",conflictsWith:"`gridOptions.autoSizeStrategy`"}):null},headerCheckboxSelection:{supportedRowModels:["clientSide","serverSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelection is only supported with rowSelection=multiple"},headerCheckboxSelectionCurrentPageOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionCurrentPageOnly is only supported with rowSelection=multiple"},headerCheckboxSelectionFilteredOnly:{supportedRowModels:["clientSide"],validate:(t,{rowSelection:o})=>o==="multiple"?null:"headerCheckboxSelectionFilteredOnly is only supported with rowSelection=multiple"},headerValueGetter:{validate:t=>{const o=t.headerValueGetter;return typeof o=="function"||typeof o=="string"?null:"headerValueGetter must be a function or a valid string expression"}},icons:{validate:({icons:t})=>{if(t){if(t.smallDown)return ao(262);if(t.smallLeft)return ao(263);if(t.smallRight)return ao(264)}return null}},sort:{validate:t=>Xt(t.sort)||At(t.sort)?null:`sort must be of type (SortDirection | SortDef), currently it is ${typeof t.sort=="object"?JSON.stringify(t.sort):dc(t.sort)}`},initialSort:{validate:t=>Xt(t.initialSort)||At(t.initialSort)?null:`initialSort must be of non-null type (SortDirection | SortDef), currently it is ${typeof t.initialSort=="object"?JSON.stringify(t.initialSort):dc(t.initialSort)}`},sortingOrder:{validate:t=>{const o=t.sortingOrder;if(Array.isArray(o)&&o.length>0){const r=o.filter(i=>!(Xt(i)||At(i)));if(r.length>0)return q(324,{property:"sortingOrder",invalidItems:r})}else if(!Array.isArray(o)||!o.length)return q(325,{property:"sortingOrder",value:o});return null}},type:{validate:t=>{const o=t.type;return o instanceof Array?o.some(i=>typeof i!="string")?"if colDef.type is supplied an array it should be of type 'string[]'":null:typeof o=="string"?null:q(321,{property:"colDef.type",expected:"of type `string` | `string[]`"})}},rowSpan:{validate:(t,{suppressRowTransform:o})=>o?null:q(319,{feature:"`colDef.rowSpan`",requirement:"`suppressRowTransform` to be enabled"})},spanRows:{dependencies:{editable:{required:[!1,void 0]},groupRowEditable:{required:[!1,void 0]},rowDrag:{required:[!1,void 0]},colSpan:{required:[void 0]},rowSpan:{required:[void 0]}},validate:(t,{rowSelection:o,cellSelection:r,enableCellSpan:i,rowDragEntireRow:a,enableCellTextSelection:n})=>typeof o=="object"&&o?.mode==="singleRow"&&o?.enableClickSelection?q(318,{feature:"`colDef.spanRows`",conflictsWith:"`rowSelection.clickSelection`"}):r?q(318,{feature:"`colDef.spanRows`",conflictsWith:"`cellSelection`"}):i?a?q(318,{feature:"`colDef.spanRows`",conflictsWith:"`rowDragEntireRow`"}):n?q(318,{feature:"`colDef.spanRows`",conflictsWith:"`enableCellTextSelection`"}):null:q(319,{feature:"`colDef.spanRows`",requirement:"`enableCellSpan` to be enabled"})},groupHierarchy:{validate(t,{groupHierarchyConfig:o={}},r){const i=new Set(["year","quarter","month","formattedMonth","day","hour","minute","second"]),a=[];for(const n of t.groupHierarchy??[]){if(typeof n=="object"){r.validation?.validateColDef(n);continue}!i.has(n)&&!(n in o)&&a.push(Tv(n))}if(a.length>0){const n=`The following parts of colDef.groupHierarchy are not recognised: ${a.join(", ")}.`,s=`Choose one of ${[...i].map(Tv).join(", ")}, or define your own parts in gridOptions.groupHierarchyConfig.`;return`${n}
${s}`}return null}}}),A6={headerName:void 0,headerNameEditable: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,tooltip: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,valueIndex:void 0,initialValueIndex:void 0,groupRowEditable:void 0,groupRowValueSetter:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,calculatedExpression:void 0,calculatedColumnReadOnly:void 0,showValuesAs:void 0,initialShowValuesAs:void 0,showValuesAsDef:void 0,enableShowValuesAs: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,pivotSort:void 0,initialPivotSort: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,columnMenuItems: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,allowFormula:void 0,suppressNoteActions:void 0},I6=()=>Object.keys(A6),Av,z6=()=>Av??(Av=(()=>{const e=I6(),t=D6();return{objectName:"colDef",allProperties:e,allValidNames:Pv(e,t),docsUrl:"column-properties/",deprecations:t,validations:T6()}})()),Iv=["overlayLoadingTemplate","overlayNoRowsTemplate","gridId","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","groupDisplayType","treeDataDisplayType","treeDataChildrenField","treeDataParentIdField","colResizeDefault","tooltipTrigger","noteTrigger","serverSidePivotResultFieldSeparator","columnMenu","tooltipShowMode","invalidEditValueMode","grandTotalRow","themeCssLayer","findSearchValue","styleNonce","renderingMode"],L6=["components","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","dragAndDropImageComponentParams","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","defaultPdfExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","activeOverlayParams","popupParent","themeStyleContainer","toolbar","statusBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef","dataTypeDefinitions","advancedFilterParent","advancedFilterBuilderParams","advancedFilterParams","formulaDataSource","formulaFuncs","notesDataSource","calculatedColumns","columnHeaderEdit","initialState","autoSizeStrategy","selectionColumnDef","findOptions","filterHandlers","groupHierarchyConfig"],O6=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass","paginationPageSizeSelector","paginationPanels","suppressOverlays"],Qc=["rowHeight","detailRowHeight","rowBuffer","stickyRowsMaxViewportRatio","headerHeight","groupHeaderHeight","groupLockGroupColumns","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","masterDefaultExpanded","pivotDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipSwitchShowDelay","tooltipHideDelay","noteShowDelay","noteHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDuration","cellFadeDuration","contentVisibilityAutoDelay","tabIndex","pivotMaxGeneratedColumns","rowDragInsertDelay"],V6=["theme","rowSelection"],Zc=["autoGenerateColumnDefs","cellSelection","sideBar","rowNumbers","loadingRows","suppressGroupChangesColumnVisibility","groupAggFiltering","suppressStickyTotalRow","groupHideParentOfSingleChild","enableRowPinning"],Jc=["loading","loadThemeGoogleFonts","suppressInputClearButton","enableInputAutoComplete","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","alwaysShowGrandTotalRow","suppressFocusAfterRefresh","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","enableCellSpan","suppressClickEdit","rowDragEntireRow","rowDragManaged","refreshAfterGroupEdit","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupHideColumnsUntilExpanded","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","includeHiddenColumnsInQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","suppressPdfExport","includeHiddenColumnsInAdvancedFilter","suppressMultiRangeSelection","enterNavigatesVerticallyAfterEdit","enterNavigatesVertically","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressContentVisibilityAuto","enableContentVisibilityAuto","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","includeHiddenColumnsInCharts","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","pivotPanelSuppressSort","allowShowChangeAfterFilter","enableAdvancedFilter","masterDetail","treeData","reactiveCustomComponents","applyQuickFilterBeforePivotOrAgg","suppressServerSideFullWidthLoadingRow","suppressAdvancedFilterEval","maintainColumnOrder","enableStrictPivotColumnOrder","suppressSetFilterByDefault","enableFilterHandlers","suppressStartEditOnTab","hidePaddedHeaderRows","ssrmExpandAllAffectsAllRows","animateColumnResizing"],zv=["doesExternalFilterPass","processPivotResultColDef","processPivotResultColGroupDef","processFileInput","getBusinessKeyForNode","isRowSelectable","rowDragText","groupRowRenderer","dragAndDropImageComponent","fullWidthCellRenderer","loadingCellRenderer","overlayComponent","loadingOverlayComponent","noRowsOverlayComponent","overlayComponentSelector","activeOverlay","detailCellRenderer","quickFilterParser","quickFilterMatcher","getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getFullRowEditValidationErrors","getContextMenuItems","getMainMenuItems","getColumnMenuItems","getColumnDropZoneMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","isFullWidthRow","sendToClipboard","focusGridInnerElement","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","tabToNextGridContainer","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processUnpinnedColumns","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","isMasterOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","chartMenuItems","groupTotalRow","alwaysPassFilter","isRowPinnable","isRowPinned","isRowValidDropPosition","processAutoGeneratedColumnDefs"],Lv=()=>[...O6,...L6,...Iv,...Qc,...zv,...Jc,...Zc,...V6],B6=()=>[...Iv,...Qc,...zv,...Jc,...Zc],H6=()=>({onCalculatedColumnExpressionChanged:{version:"36.3",message:"Use `onCalculatedColumnChanged` and check `event.changes.calculatedExpression` instead."},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."},suppressContentVisibilityAuto:{version:"36.1",message:"Use `enableContentVisibilityAuto` instead."},debug:{version:"36.3",message:"Use `enableDevValidations({ debug: true })` instead."}});function bt(e,t,o){return typeof t=="number"||t==null?t==null||t>=o?null:q(317,{property:String(e),min:o}):`${e}: value should be a number`}var N6={autoGenerateColumnDefs:"AutoGenerateColumns",processFileInput:"FileInputOverlay",alignedGrids:"AlignedGrids",alwaysShowGrandTotalRow:["CsrmHierarchy","ServerSideRowModel"],allowContextMenuWithControlKey:"ContextMenu",autoSizeStrategy:"ColumnAutoSize",calculatedColumns:"CalculatedColumns",columnHeaderEdit:"ColumnHeaderEdit",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",getColumnMenuItems:["ColumnMenu","ColumnsToolPanel"],getColumnDropZoneMenuItems:["RowGroupingPanel","ColumnsToolPanel"],getRowClass:"RowStyle",getRowStyle:"RowStyle",groupTotalRow:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"RowGrouping",grandTotalRow:["CsrmHierarchy","ServerSideRowModel"],initialState:"GridState",isExternalFilterPresent:"ExternalFilter",isMasterOpenByDefault:"MasterDetail",isRowPinnable:"PinnedRow",isRowPinned:"PinnedRow",localeText:"Locale",masterDefaultExpanded:"MasterDetail",masterDetail:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"MasterDetail",notesDataSource:"Notes",pagination:"Pagination",pinnedBottomRowData:"PinnedRow",pinnedTopRowData:"PinnedRow",pivotMode:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"Pivot",pivotPanelShow:"RowGroupingPanel",quickFilterText:"QuickFilter",rowClass:"RowStyle",rowClassRules:"RowStyle",rowData:"ClientSideRowModel",rowDragManaged:"RowDrag",refreshAfterGroupEdit:["RowGrouping","TreeData"],rowGroupPanelShow:"RowGroupingPanel",rowNumbers:"RowNumbers",rowSelection:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"RowSelection",rowStyle:"RowStyle",serverSideDatasource:"ServerSideRowModel",sideBar:"SideBar",statusBar:"StatusBar",treeData:(e,t)=>t.rowModelType==="serverSide"?"ServerSideRowModel":"TreeData",toolbar:"Toolbar",undoRedoCellEditing:"UndoRedoEdit",valueCache:"ValueCache",viewportDatasource:"ViewportRowModel"},G6=["isColumnReferenceable","getValidationErrors","processColDef"],W6=new Set(["columns","functions","operators"]);function q6(e){for(const a of G6){const n=e[a];if(n!=null&&typeof n!="function")return q(321,{property:`calculatedColumns.${a}`,expected:"a function"})}const{dataTypes:t,expressionPickers:o,applyMode:r,applyDebounce:i}=e;return t!=null&&(!Array.isArray(t)||t.some(a=>typeof a!="string"))?q(321,{property:"calculatedColumns.dataTypes",expected:"an array of strings"}):o!=null&&(!Array.isArray(o)||o.some(a=>!W6.has(a)))?"calculatedColumns.expressionPickers should contain only 'columns', 'functions' or 'operators'.":r!=null&&r!=="live"&&r!=="deferred"?q(320,{property:"calculatedColumns.applyMode",allowed:["live","deferred"]}):i!==void 0&&(!Number.isInteger(i)||i<0)?q(321,{property:"calculatedColumns.applyDebounce",expected:"a non-negative integer"}):null}var U6=()=>{const e={autoSizePadding:{validate({autoSizePadding:o}){return bt("autoSizePadding",o,0)}},calculatedColumns:{validate({calculatedColumns:o}){return o==null||typeof o=="boolean"?null:typeof o!="object"||Array.isArray(o)?q(321,{property:"calculatedColumns",expected:"a boolean or an object"}):q6(o)}},columnHeaderEdit:{validate({columnHeaderEdit:o}){if(o==null)return null;if(typeof o!="object"||Array.isArray(o))return q(321,{property:"columnHeaderEdit",expected:"an object"});const{applyMode:r}=o;return r!=null&&r!=="live"&&r!=="deferred"?q(320,{property:"columnHeaderEdit.applyMode",allowed:["live","deferred"]}):null}},cacheBlockSize:{supportedRowModels:["serverSide","infinite"],validate({cacheBlockSize:o}){return bt("cacheBlockSize",o,1)}},cacheOverflowSize:{validate({cacheOverflowSize:o}){return bt("cacheOverflowSize",o,1)}},datasource:{supportedRowModels:["infinite"]},domLayout:{validate:o=>{const r=o.domLayout,i=["autoHeight","normal","print"];return r&&!i.includes(r)?q(320,{property:"domLayout",allowed:i,value:r}):null}},enableFillHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableRangeHandle:{dependencies:{enableRangeSelection:{required:[!0]}}},enableCellSpan:{supportedRowModels:["clientSide","serverSide"]},enableRangeSelection:{dependencies:{rowDragEntireRow:{required:[!1,void 0]}}},enableRowPinning:{supportedRowModels:["clientSide"],validate({enableRowPinning:o,pinnedTopRowData:r,pinnedBottomRowData:i}){return o&&(r||i)?q(318,{feature:"Manual row pinning",conflictsWith:"pinned row data",advice:"Either set `enableRowPinning` to `false`, or remove `pinnedTopRowData` and `pinnedBottomRowData`."}):null}},isRowPinnable:{supportedRowModels:["clientSide"],validate({enableRowPinning:o,isRowPinnable:r,pinnedTopRowData:i,pinnedBottomRowData:a}){return r&&(i||a)?q(318,{feature:"Manual row pinning",conflictsWith:"pinned row data",advice:"Either remove `isRowPinnable`, or remove `pinnedTopRowData` and `pinnedBottomRowData`."}):!o&&r?q(319,{feature:"`isRowPinnable`",requirement:"`enableRowPinning` to be set"}):null}},isRowPinned:{supportedRowModels:["clientSide"],validate({enableRowPinning:o,isRowPinned:r,pinnedTopRowData:i,pinnedBottomRowData:a}){return r&&(i||a)?q(318,{feature:"Manual row pinning",conflictsWith:"pinned row data",advice:"Either remove `isRowPinned`, or remove `pinnedTopRowData` and `pinnedBottomRowData`."}):!o&&r?q(319,{feature:"`isRowPinned`",requirement:"`enableRowPinning` to be set"}):null}},groupDefaultExpanded:{supportedRowModels:["clientSide"]},masterDefaultExpanded:{supportedRowModels:["clientSide"]},isMasterOpenByDefault:{supportedRowModels:["clientSide"]},groupHideColumnsUntilExpanded:{supportedRowModels:["clientSide"],validate({groupHideColumnsUntilExpanded:o,groupHideOpenParents:r,groupDisplayType:i}){return o&&!r&&i!=="multipleColumns"?q(319,{feature:"`groupHideColumnsUntilExpanded = true`",requirement:"either `groupDisplayType = 'multipleColumns'` or `groupHideOpenParents = true`"}):null}},groupHideOpenParents:{supportedRowModels:["clientSide","serverSide"],dependencies:{groupTotalRow:{required:[void 0,"bottom"]},groupDisplayType:{required:[void 0,"multipleColumns"]},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:o={}},r,i){for(const a of Object.keys(o))i.validation?.validateColDef(o[a]);return null}},icons:{validate:({icons:o})=>{if(o){if(o.smallDown)return ao(262);if(o.smallLeft)return ao(263);if(o.smallRight)return ao(264)}return null}},infiniteInitialRowCount:{validate({infiniteInitialRowCount:o}){return bt("infiniteInitialRowCount",o,1)}},initialGroupOrderComparator:{supportedRowModels:["clientSide"]},ssrmExpandAllAffectsAllRows:{validate:o=>{if(typeof o.ssrmExpandAllAffectsAllRows=="boolean"){if(o.rowModelType!=="serverSide")return"'ssrmExpandAllAffectsAllRows' is only supported with the Server Side Row Model.";if(o.ssrmExpandAllAffectsAllRows&&typeof o.getRowId!="function")return q(319,{feature:"Server Side Row Model grouping",requirement:"the `getRowId` callback"})}return null}},keepDetailRowsCount:{validate({keepDetailRowsCount:o}){return bt("keepDetailRowsCount",o,1)}},paginationPageSize:{validate({paginationPageSize:o}){return bt("paginationPageSize",o,1)}},paginationPageSizeSelector:{validate:o=>{const r=o.paginationPageSizeSelector;return typeof r=="boolean"||r==null||r.length?null:`'paginationPageSizeSelector' cannot be an empty array.
                    If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},paginationPanels:{validate:({paginationPanels:o})=>{const r=new Set(["pageSize","rowSummary","pageSummary","pageNumbers"]);return o!=null&&!Array.isArray(o)?q(323,{validNames:Array.from(r)}):o?.some(i=>typeof i=="string"?!r.has(i):typeof i=="object"&&i!==null?!r.has(i.type):!0)?q(323,{validNames:Array.from(r)}):null}},pivotMode:{dependencies:{treeData:{required:[!1,void 0],reason:"Pivot Mode is not supported with Tree Data."}}},quickFilterText:{supportedRowModels:["clientSide"]},rowBuffer:{validate({rowBuffer:o}){return bt("rowBuffer",o,0)}},rowClass:{validate:o=>typeof o.rowClass=="function"?"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:o}){return o&&typeof o=="string"?Mv(306,{version:"32.2.1",name:'using `rowSelection` with the values "single" or "multiple"',message:"Use the object value instead."}):o&&typeof o!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":o&&o.mode!=="multiRow"&&o.mode!=="singleRow"?q(320,{property:"Selection mode",allowed:["singleRow","multiRow"],value:o.mode}):null}},rowStyle:{validate:o=>{const r=o.rowStyle;return r&&typeof r=="function"?"rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead":null}},loadingRows:{validate({loadingRows:o,rowModelType:r}){if(o==null||o===!1)return null;if(o!==!0&&(typeof o!="object"||Array.isArray(o)))return q(321,{property:"loadingRows",expected:"a boolean or an object"});if(r!=null&&r!=="clientSide")return"`loadingRows` is only supported with the Client-Side Row Model.";const i=typeof o=="object"?o.rowCount:void 0;return i!=null&&(!Number.isInteger(i)||i<1)?"loadingRows.rowCount: value should be an integer greater than or equal to 1":null}},notesDataSource:{validate:({getRowId:o})=>o?null:q(319,{feature:"Notes",requirement:"the `getRowId` callback"})},noteHideDelay:{validate:o=>o.noteHideDelay!=null&&o.noteHideDelay<0?q(317,{property:"noteHideDelay",min:0}):null},noteShowDelay:{validate:o=>o.noteShowDelay!=null&&o.noteShowDelay<0?q(317,{property:"noteShowDelay",min:0}):null},serverSideDatasource:{supportedRowModels:["serverSide"]},serverSideInitialRowCount:{supportedRowModels:["serverSide"],validate({serverSideInitialRowCount:o}){return bt("serverSideInitialRowCount",o,1)}},serverSideOnlyRefreshFilteredGroups:{supportedRowModels:["serverSide"]},serverSideSortAllLevels:{supportedRowModels:["serverSide"]},sortingOrder:{validate:o=>{const r=o.sortingOrder;if(Array.isArray(r)&&r.length>0){const i=r.filter(a=>!ze(a));if(i.length>0)return q(324,{property:"sortingOrder",invalidItems:i})}else if(!Array.isArray(r)||!r.length)return q(325,{property:"sortingOrder",value:r});return null}},stickyRowsMaxViewportRatio:{validate({stickyRowsMaxViewportRatio:o}){return o==null||typeof o=="number"&&o>=0&&o<=1?null:"stickyRowsMaxViewportRatio: value should be a number between 0 and 1"}},tooltipHideDelay:{validate:o=>o.tooltipHideDelay&&o.tooltipHideDelay<0?q(317,{property:"tooltipHideDelay",min:0}):null},tooltipShowDelay:{validate:o=>o.tooltipShowDelay&&o.tooltipShowDelay<0?q(317,{property:"tooltipShowDelay",min:0}):null},tooltipSwitchShowDelay:{validate:o=>o.tooltipSwitchShowDelay&&o.tooltipSwitchShowDelay<0?q(317,{property:"tooltipSwitchShowDelay",min:0}):null},treeData:{supportedRowModels:["clientSide","serverSide"],validate:o=>{const r=o.rowModelType??"clientSide";switch(r){case"clientSide":{const{treeDataChildrenField:i,treeDataParentIdField:a,getDataPath:n,getRowId:s}=o;if(!i&&!a&&!n)return q(319,{feature:"`treeData`",requirement:"either `treeDataChildrenField` or `treeDataParentIdField` or `getDataPath` in the `clientSide` row model"});if(i){if(n)return q(318,{feature:"`treeDataChildrenField`",conflictsWith:"`getDataPath`"});if(a)return q(318,{feature:"`treeDataChildrenField`",conflictsWith:"`treeDataParentIdField`"})}if(a){if(!s)return"getRowId callback not provided, tree data with parent id cannot be built.";if(n)return q(318,{feature:"`treeDataParentIdField`",conflictsWith:"`getDataPath`"})}return null}case"serverSide":{const i=`treeData requires 'isServerSideGroup' and 'getServerSideGroupKey' in the ${r} row model.`;return o.isServerSideGroup&&o.getServerSideGroupKey?null:i}}return null}},viewportDatasource:{supportedRowModels:["viewport"]},viewportRowModelBufferSize:{validate({viewportRowModelBufferSize:o}){return bt("viewportRowModelBufferSize",o,0)}},viewportRowModelPageSize:{validate({viewportRowModelPageSize:o}){return bt("viewportRowModelPageSize",o,1)}},rowDragEntireRow:{dependencies:{cellSelection:{required:[void 0]}}},autoGroupColumnDef:{validate({autoGroupColumnDef:o,showOpenedGroup:r}){return o?.field&&r?q(318,{feature:"`autoGroupColumnDef.field`",conflictsWith:"`showOpenedGroup`"}):o?.valueGetter&&r?q(318,{feature:"`autoGroupColumnDef.valueGetter`",conflictsWith:"`showOpenedGroup`"}):null}},renderingMode:{validate:o=>{const r=o.renderingMode,i=["default","legacy"];return r&&!i.includes(r)?q(320,{property:"renderingMode",allowed:i,value:r}):null}},autoSizeStrategy:{validate:({autoSizeStrategy:o})=>{if(!o)return null;const r=["fitCellContents","fitGridWidth","fitProvidedWidth"],i=o.type;return i!=="fitCellContents"&&i!=="fitGridWidth"&&i!=="fitProvidedWidth"?q(320,{property:"autoSizeStrategy",allowed:r,value:i}):i==="fitProvidedWidth"&&typeof o.width!="number"?`When using the 'fitProvidedWidth' auto-size strategy, must provide a numeric \`width\`. You provided ${o.width}`:o.shouldAutoSizeColumns!==void 0&&!o.continuous?"The `shouldAutoSizeColumns` auto-size option only applies when `continuous` is true.":null}}},t={};for(const o of Jc)t[o]={expectedType:"boolean"};for(const o of Qc)t[o]={expectedType:"number"};return Ae(t,e),t},Ov,_6=()=>Ov??(Ov=(()=>{const e=[...Lv(),...Object.values(Kc)],t=H6(),o=["api"];return{objectName:"gridOptions",allProperties:e,allValidNames:Pv(e,t,o),propertyExceptions:o,docsUrl:"grid-options/",deprecations:t,validations:U6()}})()),j6=0,K6=0,Vv="__ag_grid_instance",Y6=new Set(Qa.filter(e=>!dr.has(e))),Q6=class extends x{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.instanceId=K6++,this.gridReadyFired=!1,this.gridReadyStarted=!1,this.queueEvents=[],this.propEventSvc=new _e}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);const e=this.eventSvc,t=this.onGlobalEvent.bind(this);e.addGlobalListener(t,!0,Y6),e.addGlobalListener(t,!1,dr),this.propEventSvc.setFrameworkOverrides(this.beans.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:o})=>{this.updateGridOptions({options:o,force:!0,source:"optionsUpdated"})}})}destroy(){super.destroy(),this.queueEvents=[]}get(e){return this.gridOptions[e]??qu[e]}getCallback(e){return this.mergeGridCommonParams(this.gridOptions[e])}exists(e){return L(this.gridOptions[e])}mergeGridCommonParams(e){return e&&(o=>e(this.addCommon(o)))}updateGridOptions({options:e,force:t,source:o="api"}){const r={id:j6++,properties:[]},i=[],{gridOptions:a,validation:n}=this;for(const s of Object.keys(e)){const l=Lr.applyGlobalGridOption(s,e[s]);n?.warnOnInitialPropertyUpdate(o,s);const c=t||typeof l=="object"&&o==="api",d=a[s];if(c||d!==l){a[s]=l;const g={type:s,currentValue:l,previousValue:d,changeSet:r,source:o};i.push(g)}}this.validateGridOptions(this.gridOptions),r.properties=i.map(s=>s.type);for(const s of i)oo(this,`Updated property ${s.type} from`,s.previousValue," to ",s.currentValue),this.propEventSvc.dispatchEvent(s)}addPropertyEventListener(e,t){this.propEventSvc.addEventListener(e,t)}removePropertyEventListener(e,t){this.propEventSvc.removeEventListener(e,t)}onGlobalEvent(e,t){if(!this.isAlive())return;const o=e;if(this.gridReadyFired||o==="issueRaised"||o==="gridPreDestroyed"&&this.gridReadyStarted)this.callEventHandler(o,t);else if(o==="gridReady"){this.gridReadyStarted=!0,this.callEventHandler(o,t),this.gridReadyFired=!0;for(const r of this.queueEvents)this.callEventHandler(r.eventName,r.event);this.queueEvents=[]}else this.queueEvents.push({eventName:o,event:t})}callEventHandler(e,t){const o=this.gridOptions[Kc[e]];typeof o=="function"&&this.beans.frameworkOverrides.wrapOutgoing(()=>o(t))}getDomDataKey(){return this.domDataKey}addCommon(e){return e.api=this.api,e.context=this.gridOptionsContext,e}validateOptions(e,t,o=""){for(const r of Object.keys(e)){const i=e[r];if(i==null||i===!1)continue;let a=t[r];typeof a=="function"&&(a=a(e,this.gridOptions,this.beans)),a&&this.assertModuleRegistered(a,`\`${o}${r}\``)}}validateGridOptions(e){this.validateOptions(e,N6),this.validation?.processGridOptions(e)}validateColDef(e,t,o){(o||!this.beans.dataTypeSvc?.isColPendingInference(t))&&(this.validateOptions(e,P6,"colDef."),this.validation?.validateColDef(e))}assertModuleRegistered(e,t){const o=Array.isArray(e)?e.some(r=>this.isModuleRegistered(r)):this.isModuleRegistered(e);return o||Kf({...this.getModuleErrorParams(),moduleName:e,reasonOrId:t}),o}getModuleErrorParams(){return{gridId:this.gridId,gridScoped:If(),rowModelType:this.get("rowModelType"),isUmd:oc(),usesAgGridProvider:this.beans.frameworkOverrides.usesAgGridProvider??!1}}isModuleRegistered(e){return Af(e,this.gridId,this.get("rowModelType"))}setInstanceDomData(e){e[Vv]=this.instanceId}isElementInThisInstance(e){let t=e;for(;t;){const o=t[Vv];if(L(o))return o===this.instanceId;t=t.parentElement}return!1}};function Xc(e,t,o){e.addManagedElementListeners(t,{mousedown:i=>{i.button===0&&o()==="opened"&&i.preventDefault()},click:i=>{i.detail===0&&o()}});const r=new eo(t,!0);r.addEventListener("tap",o),e.addDestroyFunc(()=>r.destroy())}var Z6=class extends x{constructor(e,t){super(),this.column=e,this.eGui=t,this.lastMovingChanged=0}postConstruct(){this.addManagedElementListeners(this.eGui,{click:e=>e&&this.onClick(e)}),this.addManagedListeners(this.column,{movingChanged:()=>{this.lastMovingChanged=Date.now()}})}onClick(e){const{sortSvc:t,rangeSvc:o,gos:r}=this.beans;if(!(Qt(r)?e.altKey:!0))o?.handleColumnSelection(this.column,e);else if(this.column.isSortable()){const a=this.column.isMoving(),s=Date.now()-this.lastMovingChanged<50;a||s||t?.progressSortFromEvent(this.column,e)}}};function J6(e,t,o,r){const i={"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:i},{tag:"span",ref:"eFilterButton",cls:"ag-header-icon ag-header-cell-filter-button",attrs:i},{tag:"div",ref:"eLabel",cls:"ag-header-cell-label",role:"presentation",children:[e?{tag:"span",ref:"eColRef",cls:"ag-header-col-ref"}:null,t?{tag:"span",ref:"eCalculatedColumn",cls:"ag-header-icon ag-calculated-column-icon",attrs:i}:null,{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:i},r?{tag:"span",ref:"eShowValuesAs",cls:"ag-header-icon ag-header-label-icon ag-show-values-as-icon",attrs:i}:null,o?{tag:"ag-sort-indicator",ref:"eSortIndicator"}:null]}]}}var Bv=class extends X{constructor(){super(...arguments),this.eFilter=k,this.eShowValuesAs=k,this.eFilterButton=k,this.eSortIndicator=k,this.eMenu=k,this.eLabel=k,this.eText=k,this.eColRef=k,this.eCalculatedColumn=k,this.eSortOrder=k,this.eSortAsc=k,this.eSortDesc=k,this.eSortMixed=k,this.eSortNone=k,this.eSortAbsoluteAsc=k,this.eSortAbsoluteDesc=k,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||e.column.formulaRef!=this.currentRef||this.currentSuppressMenuHide!=null&&this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon)return!1;if(this.innerHeaderComponent){const o={...e};Ae(o,e.innerHeaderComponentParams),this.innerHeaderComponent.refresh?.(o)}else this.setDisplayName(e);return!0}workOutTemplate(e,t){const{formula:o,showValuesAsSvc:r}=this.beans,i=e.template;return i?i?.trim?i.trim():i:J6(!!o?.active,e.column.isCalculatedCol,t,!!r)}init(e){this.params=e;const{sortSvc:t,touchSvc:o,rowNumbersSvc:r,userCompFactory:i}=this.beans,a=t?.SortIndicatorSelector;this.currentTemplate=this.workOutTemplate(e,!!a),this.setTemplate(this.currentTemplate,a?[a]:void 0),this.eLabel&&(this.mouseListener??(this.mouseListener=this.createManagedBean(new Z6(e.column,this.eLabel)))),o?.setupForHeader(this),this.setMenu(),this.setupSort(),this.setupColumnRefIndicator(),this.setupCalculatedColumnIcon(),r?.setupForHeader(this),this.setupFilterIcon(),this.setupFilterButton(),this.setupShowValuesAsIcon(),this.workOutInnerHeaderComponent(i,e),this.setDisplayName(e)}workOutInnerHeaderComponent(e,t){const o=v2(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderComponent=r,this.eText&&this.eText.appendChild(r.getGui())):this.destroyBean(r))}))}setDisplayName(e){const{displayName:t}=e,o=this.currentDisplayName;this.currentDisplayName=t,!(!this.eText||o===t||this.innerHeaderComponent||this.isLoadingInnerComponent)&&(this.eText.textContent=vo(t))}addInIcon(e,t,o){const r=ue(e,this.beans,o);r&&t.appendChild(r)}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){Ge(this.eMenu),this.eMenu=void 0;return}const{gos:e,eMenu:t,params:o}=this,r=Ie(e);this.addInIcon(r?"menu":"menuAlt",t,o.column),t.classList.toggle("ag-header-menu-icon",!r);const i=this.shouldSuppressMenuHide();this.currentSuppressMenuHide=i,Xc(this,t,()=>this.toggleColumnMenu(t)),this.toggleMenuAlwaysShow(i)}toggleMenuAlwaysShow(e){this.eMenu?.classList.toggle("ag-header-menu-always-show",e)}showColumnMenu(e){const{currentSuppressMenuHide:t,params:o}=this;t||this.toggleMenuAlwaysShow(!0),o.showColumnMenu(e,()=>{t||this.toggleMenuAlwaysShow(!1)})}toggleColumnMenu(e){const{currentSuppressMenuHide:t,params:o}=this,r=this.beans.menuSvc?.toggleColumnMenu({column:o.column,buttonElement:e,getButtonElement:()=>lr(this.beans,o.column),positionBy:"button",onClosedCallback:()=>{t||this.toggleMenuAlwaysShow(!1)}})??"declined";return r==="opened"&&!t&&this.toggleMenuAlwaysShow(!0),r}onMenuKeyboardShortcut(e){const{params:t,gos:o,beans:r,eMenu:i,eFilterButton:a}=this,n=t.column,s=Ie(o);if(e&&!s){if(r.menuSvc?.isFilterMenuInHeaderEnabled(n))return t.showFilter(a??i??this.getGui()),!0}else if(t.enableMenu)return this.showColumnMenu(i??a??this.getGui()),!0;return!1}setupSort(){const{sortSvc:e}=this.beans;if(!e)return;const{enableSorting:t,column:o}=this.params;if(this.currentSort=t,!this.eSortIndicator){this.eSortIndicator=this.createBean(new e.SortIndicatorComp(!0));const{eSortIndicator:r,eSortOrder:i,eSortAsc:a,eSortDesc:n,eSortMixed:s,eSortNone:l,eSortAbsoluteAsc:c,eSortAbsoluteDesc:d}=this;r.attachCustomElements(i,a,n,s,l,c,d)}this.eSortIndicator.setupSort(o),this.currentSort&&e.setupHeader(this,o)}setupColumnRefIndicator(){const{eColRef:e,beans:{editModelSvc:t},params:o}=this;e&&(this.currentRef=o.column.formulaRef,e.textContent=this.currentRef,Q(e,!1),this.addManagedEventListeners({cellEditingStarted:()=>{const r=t?.getEditPositions(),i=!!this.currentRef&&!!r?.some(a=>a.column.allowFormula);Q(e,i)},cellEditingStopped:()=>{Q(e,!1)}}))}setupCalculatedColumnIcon(){const{eCalculatedColumn:e,params:t}=this;e&&this.addInIcon("calculatedColumnsHeader",e,t.column)}setupFilterIcon(){const{eFilter:e,params:t}=this;if(!e)return;const o=()=>{const r=t.column.isFilterActive();Q(e,r,{skipAriaHidden:!0})};this.configureFilter(t.enableFilterIcon,e,o,"filterActive")}setupShowValuesAsIcon(){const{eShowValuesAs:e,params:t}=this,{showValuesAsSvc:o}=this.beans;if(!e||!o)return;const r=t.column;this.addInIcon("showValuesAs",e,r);const i=()=>{const n=r.showValuesAs!=null&&!r.showValuesAsDef?.suppressHeaderIndicator;Q(e,n,{skipAriaHidden:!0}),n&&(e.classList.toggle("ag-show-values-as-dormant",!o.isApplying(r)),e.title=o.getActiveModeTooltip(r)??"")};this.addManagedListeners(r,{columnStateUpdated:i}),this.addManagedEventListeners({columnRowGroupChanged:i,columnPivotChanged:i,columnPivotModeChanged:i}),i()}setupFilterButton(){const{eFilterButton:e,params:t}=this;if(!e)return;this.configureFilter(t.enableFilterButton,e,this.onFilterChangedButton.bind(this),"filter")?Xc(this,e,()=>this.beans.menuSvc?.toggleFilterMenu({column:t.column,buttonElement:e,getButtonElement:()=>lr(this.beans,t.column,!0),containerType:"columnFilter",positionBy:"button"})??"declined"):this.eFilterButton=void 0}configureFilter(e,t,o,r){if(!e)return Ge(t),!1;const i=this.params.column;return this.addInIcon(r,t,i),this.addManagedListeners(i,{filterChanged:o}),o(),!0}onFilterChangedButton(){const e=this.params.column.isFilterActive();this.eFilterButton.classList.toggle("ag-filter-active",e)}getAnchorElementForMenu(e){const{eFilterButton:t,eMenu:o}=this;return e?t??o??this.getGui():o??t??this.getGui()}destroy(){super.destroy(),this.innerHeaderComponent=this.destroyBean(this.innerHeaderComponent),this.mouseListener=this.destroyBean(this.mouseListener)}},X6="calc(var(--ag-cell-horizontal-padding) + var(--ag-internal-pinned-left-width, 0px))",$6="calc(var(--ag-cell-horizontal-padding) + var(--ag-internal-pinned-right-width, 0px))",e4=class extends x{constructor(e,t){super(),this.eLabel=e,this.columnGroup=t,this.isSticky=!1,this.left=null,this.right=null}postConstruct(){const{columnGroup:e,beans:t}=this,{ctrlsSvc:o}=t;o.whenReady(this,()=>{const r=this.refreshPosition.bind(this);this.gos.get("enableRtl")?this.eLabel.style.setProperty("right",$6):this.eLabel.style.setProperty("left",X6),this.addManagedEventListeners({bodyScroll:i=>{i.direction==="horizontal"&&this.updateSticky(i.left)},columnResized:r}),this.addManagedListeners(e,{leftChanged:r,displayedChildrenChanged:r}),this.refreshPosition()})}refreshPosition(){const{columnGroup:e,beans:t}=this,o=e.getLeft(),r=e.getActualWidth();if(e.pinnedLane!==1||o==null||r===0){this.left=null,this.right=null,this.setSticky(!1);return}this.left=o,this.right=o+r;const i=t.colViewport.getScrollPosition();i!=null&&this.updateSticky(i)}updateSticky(e){const{left:t,right:o}=this;if(t==null||o==null){this.setSticky(!1);return}this.setSticky(t<e&&o>e)}setSticky(e){const{isSticky:t,eLabel:o}=this;t!==e&&(this.isSticky=e,o.classList.toggle("ag-sticky-label",e))}},t4={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"}]},o4=class extends X{constructor(){super(t4),this.agOpened=k,this.agClosed=k,this.agLabel=k,this.isLoadingInnerComponent=!1}init(e){const{userCompFactory:t,touchSvc:o}=this.beans;this.params=e,this.checkWarnings(),this.workOutInnerHeaderGroupComponent(t,e),this.setupLabel(e),this.addGroupExpandIcon(e),this.setupExpandIcons(),o?.setupForHeaderGroup(this)}refresh(e){const{innerHeaderGroupComponent:t,isLoadingInnerComponent:o}=this;if(o)return!1;if(t){if(!t.refresh)return!1;const i=t.refresh(e);return i&&(this.params=e),i}this.params=e;const{displayName:r}=e;return this.agLabel.textContent=L(r)?vo(r):"",!0}checkWarnings(){this.params.template&&this.beans.log.warn(89)}workOutInnerHeaderGroupComponent(e,t){const o=b2(e,t,t);o&&(this.isLoadingInnerComponent=!0,o.newAgStackInstance().then(r=>{this.isLoadingInnerComponent=!1,r&&(this.isAlive()?(this.innerHeaderGroupComponent=r,this.agLabel.appendChild(r.getGui())):this.destroyBean(r))}))}setupExpandIcons(){const{agOpened:e,agClosed:t,params:{columnGroup:o}}=this;this.addInIcon("columnGroupOpened",e),this.addInIcon("columnGroupClosed",t);const r=s=>{if(rt(s))return;const l=!o.isExpanded();Ur(this.beans,o.getProvidedColumnGroup(),l,"uiColumnExpanded")};this.addTouchAndClickListeners(t,r),this.addTouchAndClickListeners(e,r);const i=s=>{to(s)};this.addManagedElementListeners(t,{dblclick:i}),this.addManagedElementListeners(e,{dblclick:i}),this.addManagedElementListeners(this.getGui(),{dblclick:r}),this.updateIconVisibility();const a=o.getProvidedColumnGroup(),n=this.updateIconVisibility.bind(this);this.addManagedListeners(a,{expandedChanged:n,expandableChanged:n})}addTouchAndClickListeners(e,t){this.beans.touchSvc?.setupForHeaderGroupElement(this,e,t),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){const{agOpened:e,agClosed:t,params:{columnGroup:o}}=this;if(o.isExpandable()){const r=o.isExpanded();Q(e,r),Q(t,!r)}else Q(e,!1),Q(t,!1)}addInIcon(e,t){const o=ue(e,this.beans,null);o&&t.appendChild(o)}addGroupExpandIcon(e){if(!e.columnGroup.isExpandable()){const{agOpened:t,agClosed:o}=this;Q(t,!1),Q(o,!1)}}setupLabel(e){const{displayName:t,columnGroup:o}=e,{innerHeaderGroupComponent:r,isLoadingInnerComponent:i}=this,a=r??i;L(t)&&!a&&(this.agLabel.textContent=vo(t)),o.getColGroupDef()?.suppressStickyLabel||this.createManagedBean(new e4(this.getGui(),o))}destroy(){super.destroy(),this.innerHeaderGroupComponent&&(this.destroyBean(this.innerHeaderGroupComponent),this.innerHeaderGroupComponent=void 0)}},r4={moduleName:"ColumnHeaderComp",version:R,userComponents:{agColumnHeader:Bv},icons:{menu:"menu",menuAlt:"menu-alt"}},i4={moduleName:"ColumnGroupHeaderComp",version:R,userComponents:{agColumnGroupHeader:o4},icons:{columnGroupOpened:"expanded",columnGroupClosed:"contracted"}},a4=class extends x{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,this.onFrame=()=>{const{p1:e,p2:t,f1:o,destroyTasks:r}=this;try{this.runFrameTasks(60)}finally{e.list.length||t.list.length||o.list.length||r.length?Gt(this.beans,this.onFrame):this.ticking=!1}}}setScrollTop(e){this.scrollGoingDown=e>=this.lastScrollTop,e===0&&(this.scrollGoingDown=!0),this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame"),this.batchFrameworkComps=this.beans.frameworkOverrides.batchFrameworkComps}verify(){this.active===!1&&this.warn(92)}createTask(e,t,o,r,i=!1){this.verify();let a=o;r&&this.batchFrameworkComps&&(a="f1");const n={task:e,index:t,createOrder:++this.taskCount,deferred:i};this.addTaskToList(this[a],n),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((o,r)=>o.deferred!==r.deferred?o.deferred?-1:1:o.index!==r.index?t*(r.index-o.index):r.createOrder-o.createOrder),e.sorted=!0}addDestroyTask(e){this.verify(),this.destroyTasks.push(e),this.schedule()}runFrameTasks(e){const{p1:t,p2:o,f1:r,destroyTasks:i,beans:a}=this,{ctrlsSvc:n,frameworkOverrides:s}=a,l=t.list,c=o.list,d=r.list,g=Date.now();let u=0;const h=e<=0,p=n.getScrollFeature();for(;h||u<e;){if(!p.scrollGridIfNeeded())if(l.length)this.sortTaskList(t),l.pop().task();else if(c.length)this.sortTaskList(o),c.pop().task();else if(d.length)s.wrapOutgoing(()=>{for(;(h||u<e)&&!p.scrollGridIfNeeded();){if(d.length)this.sortTaskList(r),d.pop().task();else break;u=Date.now()-g}});else if(i.length)i.pop()();else break;u=Date.now()-g}}flushAllFrames(){this.active&&(this.runFrameTasks(-1),this.ticking=!1)}schedule(){this.active&&(this.ticking||(this.ticking=!0,Gt(this.beans,this.onFrame)))}isQueueEmpty(){return!this.ticking}},n4={moduleName:"AnimationFrame",version:R,beans:[a4]},s4=class extends x{constructor(){super(...arguments),this.beanName="iconSvc"}createIconNoSpan(e,t){return ue(e,this.beans,t?.column)}};function l4(e,t,o,r){if(!rt(r))switch(o){case"click":c4(e,t,r);break;case"pointerdown":case"mousedown":case"touchstart":d4(e,t,r);break;case"dblclick":Hv(e,t,r);break;case"mouseout":h4(e,t,r);break;case"mouseover":p4(e,t,r);break}}function c4(e,t,o){if(e.touchSvc?.handleCellDoubleClick(t,o))return;const{eventSvc:r,rangeSvc:i,editSvc:a,editModelSvc:n,frameworkOverrides:s,gos:l}=e,c=o.ctrlKey||o.metaKey,{column:d,cellPosition:g,rowNode:u}=t,h=li(l,d,u,o);i&&c&&!h&&i.getCellRangeCount(g)>1&&i.intersectLastRange(!0);const p=t.createEvent(o,"cellClicked");p.isEventHandlingSuppressed=h,r.dispatchEvent(p);const f=d.colDef;if(f.onCellClicked&&window.setTimeout(()=>{s.wrapOutgoing(()=>{f.onCellClicked(p)})},0),!h&&n?.getState(t)!=="editing"){const m=a?.isEditing(),w=a?.isRangeSelectionEnabledWhileEditing(),v=n?.getCellValidationModel().getCellValidationMap().size??0,C=n?.getRowValidationModel().getRowValidationMap().size??0;if(m&&(w||v>0||C>0))return;a?.shouldStartEditing(t,o)?a?.startEditing(t,{event:o}):a?.shouldStopEditing(t,o)&&(l.get("editType")==="fullRow"?a?.stopEditing(t,{event:o,source:"edit"}):a?.stopEditing(void 0,{event:o,source:"edit"}))}}function Hv(e,t,o){const{eventSvc:r,frameworkOverrides:i,editSvc:a,editModelSvc:n,gos:s}=e,{column:l}=t,c=li(s,t.column,t.rowNode,o),d=l.colDef,g=t.createEvent(o,"cellDoubleClicked");if(g.isEventHandlingSuppressed=c,r.dispatchEvent(g),typeof d.onCellDoubleClicked=="function"&&window.setTimeout(()=>{i.wrapOutgoing(()=>{d.onCellDoubleClicked(g)})},0),!c&&a?.shouldStartEditing(t,o)&&n?.getState(t)!=="editing"){const u=a?.isEditing(),h=a?.isRangeSelectionEnabledWhileEditing(),p=n?.getCellValidationModel().getCellValidationMap().size??0,f=n?.getRowValidationModel().getRowValidationMap().size??0;if(u&&(h||p>0||f>0))return;a?.startEditing(t,{event:o})}}function d4(e,t,o){const{shiftKey:r}=o,i=o.target,{eventSvc:a,rangeSvc:n,rowNumbersSvc:s,focusSvc:l,gos:c,editSvc:d}=e,{column:g,rowNode:u,cellPosition:h}=t,p=li(c,g,u,o),f=()=>{const C=t.createEvent(o,"cellMouseDown");C.isEventHandlingSuppressed=p,a.dispatchEvent(C)};if(p){f();return}if(g4(e,t,o))return;const m=n&&!n.isEmpty(),w=u4(i),v=Le(g);if(!(s&&v&&!s.handleMouseDownOnCell(h,o))){if(!r||!m){const C=d?.isEditing(t),S=c.get("enableCellTextSelection")&&o.defaultPrevented,E=(qt()||S)&&!C&&!Er(i)&&!w;t.focusCell({forceBrowserFocus:E,sourceEvent:o})}if(r&&m&&!l.isCellFocused(h)){o.preventDefault();const C=l.getFocusedCell();if(C){const{column:b,rowIndex:S,rowPinned:E}=C,F=!!d?.isRangeSelectionEnabledWhileEditing?.();d?.isEditing(C)&&!F&&d?.stopEditing(C),F||l.setFocusedCell({column:b,rowIndex:S,rowPinned:E,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,sourceEvent:o})}}w||(n?.handleCellMouseDown(o,h),f())}}function g4(e,t,o){const{rangeSvc:r}=e;if(r){const i=r.isCellInAnyRange(t.cellPosition),a=sh(e,o);if(i&&a)return!0}return!1}function u4(e){return uo(e,"ag-selection-checkbox",3)||uo(e,"ag-drag-handle",3)}function h4(e,t,o){if(Nv(t,o))return;const{eventSvc:r,colHover:i}=e;r.dispatchEvent(t.createEvent(o,"cellMouseOut")),i?.clearMouseOver()}function p4(e,t,o){if(Nv(t,o))return;const{eventSvc:r,colHover:i}=e;r.dispatchEvent(t.createEvent(o,"cellMouseOver")),i?.setMouseOver([t.column])}function Nv(e,t){if(!t.target||!t.relatedTarget)return!1;const o=e.eGui,r=o.contains(t.target),i=o.contains(t.relatedTarget);return r&&i}var f4=(e,t,o)=>t||e&&o,m4=class extends x{constructor(){super(...arguments),this.beanName="touchSvc"}mockBodyContextMenu(e,t){this.mockContextMenu(e,e.eGridViewport,t,{shouldHandleLongTap:()=>this.isBodyContextMenuEnabled()})}mockHeaderContextMenu(e,t){this.mockContextMenu(e,e.eGui,t,{shouldHandleLongTap:()=>!!this.beans.menuSvc?.isHeaderContextMenuEnabled()})}mockRowContextMenu(e){if(!Ut())return;const t=(o,r,i)=>{const{rowCtrl:a,cellCtrl:n}=e.getControlsForEventTarget(i?.target??null);this.beans.contextMenuSvc?.handleContextMenuMouseEvent(void 0,i,a,n)};this.mockContextMenu(e,e.element,t,{shouldHandleLongTap:()=>this.isBodyContextMenuEnabled(),onLongTapDetected:({touchEvent:o})=>{if(!Mr(this.beans,o))return;e.confirmPendingTouchDown(o.target);const{cellCtrl:r}=e.getControlsForEventTarget(o.target);r?.column&&r.dispatchCellContextMenuEvent(o)}})}handleCellDoubleClick(e,t){return(()=>{if(!Ut()||ji("dblclick"))return!1;const r=Date.now(),i=r-e.lastIPadMouseClickEvent<200;return e.lastIPadMouseClickEvent=r,i})()?(Hv(this.beans,e,t),t.preventDefault(),!0):!1}setupForHeader(e){const{gos:t,sortSvc:o,menuSvc:r}=this.beans;if(t.get("suppressTouch"))return;const{params:i,eMenu:a,eFilterButton:n}=e,s=new eo(e.getGui(),!0);e.addDestroyFunc(()=>s.destroy());const l=e.shouldSuppressMenuHide(),c=!!r?.isHeaderContextMenuEnabled(i.column),d=f4(i.enableMenu,c,Ie(t)),g=u=>i.showColumnMenuAfterMouseClick(u.touchStart);if(d&&e.addManagedListeners(s,{longTap:g}),i.enableSorting){const u=h=>{const p=h.touchStart.target;l&&(a?.contains(p)||n?.contains(p))||o?.progressSort(i.column,!1,"uiColumnSorted")};e.addManagedListeners(s,{tap:u})}}setupForHeaderGroup(e){const t=e.params;if(this.beans.menuSvc?.isHeaderContextMenuEnabled(t.columnGroup.getProvidedColumnGroup())){const o=new eo(t.eGridHeader,!0),r=i=>t.showColumnMenuAfterMouseClick(i.touchStart);e.addManagedListeners(o,{longTap:r}),e.addDestroyFunc(()=>o.destroy())}}setupForHeaderGroupElement(e,t,o){const r=new eo(t,!0);e.addManagedListeners(r,{tap:o}),e.addDestroyFunc(()=>r.destroy())}isBodyContextMenuEnabled(){return!!this.beans.contextMenuSvc&&!this.gos.get("suppressContextMenu")}mockContextMenu(e,t,o,r){if(!Ut())return;const i=new eo(t,r),a=n=>{Mr(this.beans,n.touchEvent)&&o(void 0,n.touchStart,n.touchEvent)};e.addManagedListeners(i,{longTap:a}),e.addDestroyFunc(()=>i.destroy())}},v4={moduleName:"Touch",version:R,beans:[m4]},w4=class extends x{constructor(){super(...arguments),this.beanName="cellNavigation"}getNextCellToFocus(e,t,o=!1){return o?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)}getNextCellToFocusWithCtrlPressed(e,t){const o=e===y.UP,r=e===y.DOWN,i=e===y.LEFT;let a,n;const{pageBounds:s,gos:l,visibleCols:c,pinnedRowModel:d}=this.beans,{rowPinned:g}=t;if(o||r)g&&d?o?n=0:n=g==="top"?d.getPinnedTopRowCount()-1:d.getPinnedBottomRowCount()-1:n=o?s.getFirstRow():s.getLastRow(),a=t.column;else{const u=l.get("enableRtl");n=t.rowIndex,a=(i!==u?c.allCols:[...c.allCols].reverse()).find(p=>!Le(p)&&this.isCellGoodToFocusOn({rowIndex:n,rowPinned:null,column:p}))}return a?{rowIndex:n,rowPinned:g,column:a}:null}getNextCellToFocusWithoutCtrlPressed(e,t){let o=t,r=!1;for(;!r;){switch(e){case y.UP:o=this.getCellAbove(o);break;case y.DOWN:o=this.getCellBelow(o);break;case y.RIGHT:o=this.gos.get("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case y.LEFT:o=this.gos.get("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,this.warn(8,{key:e});break}o?r=this.isCellGoodToFocusOn(o):r=!0}return o}isCellGoodToFocusOn(e){const t=e.column;let o;const{pinnedRowModel:r,rowModel:i}=this.beans;switch(e.rowPinned){case"top":o=r?.getPinnedTopRow(e.rowIndex);break;case"bottom":o=r?.getPinnedBottomRow(e.rowIndex);break;default:o=i.getRow(e.rowIndex);break}return o?!this.isSuppressNavigable(t,o):!1}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{beans:t}=this,o=t.rowSpanSvc?.getCellEnd(e)??e,r=El(t,o,!0);return r?{rowIndex:r.rowIndex,column:e.column,rowPinned:r.rowPinned}:null}getCellAbove(e){if(!e)return null;const{beans:t}=this,o=t.rowSpanSvc?.getCellStart(e)??e,r=ii(t,{rowIndex:o.rowIndex,rowPinned:o.rowPinned},!0);return r?{rowIndex:r.rowIndex,column:e.column,rowPinned:r.rowPinned}:null}getNextTabbedCell(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)}getNextTabbedCellForwards(e){const{visibleCols:t,pagination:o}=this.beans,r=t.allCols;let i=e.rowIndex,a=e.rowPinned,n=t.getColAfter(e.column);if(!n){n=r[0];const s=El(this.beans,e,!0);if(Me(s)||!s.rowPinned&&!(o?.isRowInPage(s.rowIndex)??!0))return null;i=s?s.rowIndex:null,a=s?s.rowPinned:null}return{rowIndex:i,column:n,rowPinned:a}}getNextTabbedCellBackwards(e){const{beans:t}=this,{visibleCols:o,pagination:r}=t,i=o.allCols;let a=e.rowIndex,n=e.rowPinned,s=o.getColBefore(e.column);if(!s){s=pe(i);const l=ii(t,{rowIndex:e.rowIndex,rowPinned:e.rowPinned},!0);if(Me(l)||!l.rowPinned&&!(r?.isRowInPage(l.rowIndex)??!0))return null;a=l?l.rowIndex:null,n=l?l.rowPinned:null}return{rowIndex:a,column:s,rowPinned:n}}isSuppressNavigable(e,t){if(Rt(this.gos,t))return!0;const{suppressNavigable:o}=e.colDef;if(typeof o=="boolean")return o;if(typeof o=="function"){const r=e.createColumnFunctionCallbackParams(t);return o(r)}return!1}};function b4(e){return e.focusSvc.getFocusedCell()}function C4(e){return e.focusSvc.clearFocusedCell()}function y4(e,t,o,r){e.focusSvc.setFocusedCellOrSpan({rowIndex:t,column:o,rowPinned:r,forceBrowserFocus:!0})}function S4(e,t){return e.navigation?.tabToNextCell(!1,t)??!1}function x4(e,t){return e.navigation?.tabToNextCell(!0,t)??!1}function k4(e,t,o=!1){const r=e.headerNavigation?.getHeaderPositionForColumn(t,o);r&&e.focusSvc.focusHeaderPosition({headerPosition:r})}function Za(e){return!!(e.rowPinned&&e.pinnedSibling)}function Xe(e,t,o,r){const i=t==="top";if(!o)return Xe(e,t,i?e.getPinnedTopRow(0):e.getPinnedBottomRow(0),r);if(!r){const l=i?e.getPinnedTopRowCount():e.getPinnedBottomRowCount();return Xe(e,t,o,i?e.getPinnedTopRow(l-1):e.getPinnedBottomRow(l-1))}let a=!1,n=!1;const s=[];return e.forEachPinnedRow(t,l=>{if(l===o&&!a){a=!0,s.push(l);return}if(a&&l===r){n=!0,s.push(l);return}a&&!n&&s.push(l)}),s}function Gv(e,t,o,{rowNode:r,column:i},a){return W(e.gos,{type:o,node:r,data:r.data,value:a,column:i,colDef:i.getColDef(),rowPinned:r.rowPinned,event:t,rowIndex:r.rowIndex})}function E4(e,t=!1){return e===y.DELETE?!0:!t&&e===y.BACKSPACE?pu():!1}function R4(e,t,o){const r=o.key;if(!(r===y.ENTER&&Le(t.column)&&e.rowNumbersSvc?.handleKeyDownOnCell(t.cellPosition,o)))switch(r){case y.ENTER:T4(e,t,o);break;case y.F2:I4(e,t,o);break;case y.ESCAPE:z4(e,t,o);break;case y.TAB:D4(e,t,o);break;case y.BACKSPACE:case y.DELETE:P4(e,t,r,o);break;case y.DOWN:case y.UP:case y.RIGHT:case y.LEFT:F4(e,t,o,r);break}}function F4(e,t,o,r){if(!e.editSvc?.isEditing(t,{withOpenEditor:!0})){if(o.shiftKey&&t.isRangeSelectionEnabled())M4(e,o);else{const i=t.getFocusedCellPosition();e.navigation?.navigateToNextCell(o,r,i,!0)}o.preventDefault()}}function M4(e,t){const{rangeSvc:o,navigation:r}=e;if(!o)return;const i=o.extendLatestRangeInDirection(t);i&&(t.key===y.LEFT||t.key===y.RIGHT?r?.ensureColumnVisible(i.column):r?.ensureRowVisible(i.rowIndex))}function D4(e,t,o){e.navigation?.onTabKeyDown(t,o)}function P4(e,t,o,r){const{rowNode:i}=t,{gos:a,rangeSvc:n,eventSvc:s,editSvc:l}=e;if(s.dispatchEvent({type:"keyShortcutChangedCellStart"}),E4(o,a.get("enableCellEditingOnBackspace"))&&!l?.isEditing(t,{withOpenEditor:!0})){if(n&&ft(a))n.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(t.isCellEditable()){const c=e.valueSvc.getDeleteValue(t.column,i);i.setDataValue(t.column,c,"cellClear")}}else l?.isEditing(t,{withOpenEditor:!0})||e.editSvc?.startEditing(t,{startedEdit:!0,event:r});s.dispatchEvent({type:"keyShortcutChangedCellEnd"})}function T4(e,t,o){const{editSvc:r,navigation:i}=e,a=r?.isEditing(t,{withOpenEditor:!0}),n=t.rowNode,s=r?.isRowEditing(n,{withOpenEditor:!0}),l=c=>{r?.startEditing(c,{startedEdit:!0,event:o,source:"edit"})&&o.preventDefault()};if(a||s){if(A4(o)){r?.applyBulkEdit(t,e?.rangeSvc?.getCellRanges()??[]);return}const c=r?.checkNavWithValidationAndCache(void 0,o);if(c?.result==="block-stop"){e.gos.get("editType")==="fullRow"&&r?.announceFullRowEditValidationErrors(n);return}r?.isEditing(t,{withOpenEditor:!0})?r?.stopEditing(t,{event:o,source:"edit"},c?.validationCache):s&&!t.isCellEditable()?r?.stopEditing({rowNode:n},{event:o,source:"edit"},c?.validationCache):l(t)}else if(e.gos.get("enterNavigatesVertically")){const c=o.shiftKey?y.UP:y.DOWN;i?.navigateToNextCell(null,c,t.cellPosition,!1)}else{if(r?.revalidateAndCheck())return;r?.checkValidated(t)&&r.revertSingleCellEdit(t,!0),l(t)}}function A4(e){return(e.ctrlKey||e.metaKey)&&e.key===y.ENTER}function I4(e,t,o){const{editSvc:r,notesSvc:i}=e,a=r?.isEditing();if(o.shiftKey&&i?.hasDataSource()&&!a){const n=i.getNoteAccess({rowNode:t.rowNode,column:t.column});if(n&&(!n.isSuppressed||n.canView)){i.showNote(n.params,!0),o.preventDefault();return}}a&&r?.checkNavWithValidation(void 0,o)==="block-stop"||r?.startEditing(t,{startedEdit:!0,event:o})}function z4(e,t,o){const{editSvc:r}=e;r?.isEditing()&&(o.preventDefault(),setTimeout(()=>{r?.stopEditing(t,{event:o,cancel:!0})}))}function L4(e,t,o){const i=o.target!==t.eGui,{editSvc:a}=e;if(i||a?.isEditing(t,{withOpenEditor:!0}))return;if(o.key===y.SPACE)O4(e,t,o);else if(a?.isCellEditable(t,"ui")){if(a?.revalidateAndCheck()&&!a.checkValidated(t))return;a?.startEditing(t,{startedEdit:!0,event:o,source:"api",editable:!0}),!t.editCompDetails?.params?.suppressPreventDefault&&o.preventDefault()}}function O4(e,t,o){const{gos:r,editSvc:i}=e,{rowNode:a}=t;!i?.isEditing(t,{withOpenEditor:!0})&&Ft(r)&&e.selectionSvc?.handleSelectionEvent(o,a,"spaceKey",t.column),o.preventDefault()}var V4="ag-cell",B4="ag-cell-auto-height",H4="ag-cell-normal-height",N4="ag-cell-focus",G4="ag-cell-first-right-pinned",W4="ag-cell-last-left-pinned",q4="ag-cell-not-inline-editing",U4="ag-cell-wrap-text",_4=0,ur=class extends x{constructor(e,t,o,r,i){super(),this.column=e,this.rowNode=t,this.rowCtrl=r,this.cellSpan=i,this.diffIndex=0,this.drawnPosition=null,this.drawnWidth=null,this.drawnComp=void 0,this.drawnAriaColIndex=-1,this.drawnAriaColSpan=1,this.compBean=void 0,this.lastIPadMouseClickEvent=0,this.colsSpanning=null,this.colsSpanningVersion=-1,this.legacyRowSpan=1,this.rangeFeature=void 0,this.rowResizeFeature=void 0,this.notesFeature=void 0,this.calculatedColumnCssApplied=!1,this.calculatedColumnHighlightedCssApplied=!1,this.hasActiveRenderer=!1,this.suppressRefreshCell=!1,this.pendingEditStart=null,this.hasBeenFocused=!1,this.tooltipFeature=void 0,this.editorTooltipFeature=void 0,this.rendererTooltipValue=void 0,this.rendererTooltipShouldDisplay=void 0,this.beans=o,this.gos=o.gos,this.editSvc=o.editSvc;const{colId:a}=e;this.instanceId=a+"-"+_4++,this.createCellPosition(),this.isClientSideLoadingCell()||this.updateAndFormatValue(!1),i===null&&(this.legacyRowSpan=e.getRowSpan(t))}isClientSideLoadingCell(){return Rt(this.gos,this.rowNode)}addFeatures(e){const{beans:t}=this;this.enableTooltipFeature();const{rangeSvc:o}=t;o&&ft(t.gos)&&(this.rangeFeature=o.createCellRangeFeature(this)),Le(this.column)&&(this.rowResizeFeature=this.beans.rowNumbersSvc.createRowNumbersRowResizerFeature(this)),this.notesFeature=this.beans.notesSvc?.createNotesFeature(this,e)}removeFeatures(){const e=this.beans.context;this.editorTooltipFeature=e.destroyBean(this.editorTooltipFeature),this.rangeFeature=e.destroyBean(this.rangeFeature),this.rowResizeFeature=e.destroyBean(this.rowResizeFeature),this.notesFeature=e.destroyBean(this.notesFeature),this.disableTooltipFeature()}enableTooltipFeature(){this.tooltipFeature=this.beans.tooltipSvc?.enableCellTooltipFeature(this)}disableTooltipFeature(){this.tooltipFeature=this.beans.context.destroyBean(this.tooltipFeature),this.rendererTooltipValue=void 0,this.rendererTooltipShouldDisplay=void 0}resetCellRendererTooltip(){this.rendererTooltipValue==null||!this.isAlive()||(this.rendererTooltipValue=void 0,this.rendererTooltipShouldDisplay=void 0,this.tooltipFeature?.refreshTooltip())}enableEditorTooltipFeature(e){this.editorTooltipFeature&&this.disableEditorTooltipFeature(),this.editorTooltipFeature=this.beans.tooltipSvc?.setupCellEditorTooltip(this,e),this.editSvc?.populateModelValidationErrors(this)}disableEditorTooltipFeature(){this.editorTooltipFeature=this.beans.context.destroyBean(this.editorTooltipFeature)}setComp(e,t,o,r,i,a,n){this.comp=e,this.eGui=t,this.drawnAriaColIndex=-1,this.drawnAriaColSpan=1,this.printLayout=i,n=cr(this,n),this.addDomData(n);const s=this.isClientSideLoadingCell();s||(this.addFeatures(n),n.addDestroyFunc(()=>this.removeFeatures())),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.setupFocus(),this.applyStaticCssClasses(),this.setWrapText(),this.refreshPinnedEdges(),this.onColumnHover(),s||this.setupControlComps(),this.setupAutoHeight(r,n),this.refreshFirstAndLastStyles(),s||this.checkFormulaError(),this.refreshAriaRowIndex(),this.refreshAriaColIndex(),this.refreshAriaColSpan(),J3(this.beans,this),s||(this.beans.cellStyles?.setupCellCustomStyle(this),this.editSvc?.applyCellEditStyles(this)),this.tooltipFeature?.refreshTooltip(),this.rangeFeature?.setComp(e),this.rowResizeFeature?.refreshRowResizer(),this.editSvc?.onCompAttached(this,a)||this.showValue(!1,!0),this.pendingEditStart&&this.editSvc.replayPendingStart(this)}checkFormulaError(){const e=this.beans.formula;!e||!e.active&&!this.isCalculatedColumn()||this.eGui.classList.toggle("formula-error",this.hasFormulaError())}hasFormulaError(){const e=this.beans.formula;return!e||!e.active&&!this.isCalculatedColumn()?!1:!!e.getFormulaError(this.column,this.rowNode)}hasCellValidationError(){const{editModelSvc:e}=this.beans;return e?e.getCellValidationModel().hasCellValidation(this):!1}setupAutoHeight(e,t){if(this.isClientSideLoadingCell()){this.isAutoHeight=!1;return}this.isAutoHeight=this.beans.rowAutoHeight?.setupCellAutoHeight(this,e,t)??!1}getCellAriaRole(){return this.column.colDef.cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.colDef;return e.cellRenderer!=null||e.cellRendererSelector!=null}hasActiveCellRenderer(){return this.hasActiveRenderer}getValueToDisplay(){return this.valueFormatted??this.value}getDeferLoadingCellRenderer(){const{beans:e,column:t}=this,{userCompFactory:o,ctrlsSvc:r,eventSvc:i}=e,a=t.colDef,n=this.createCellRendererParams();n.deferRender=!0;const s=Uh(o,a,n);if(r.getGridBodyCtrl()?.scrollFeature?.isScrolling()){let l;const c=new oe(g=>{l=g}),[d]=this.addManagedListeners(i,{bodyScrollEnd:()=>{l(),d()}});return{loadingComp:s,onReady:c}}return{loadingComp:s,onReady:oe.resolve()}}showValue(e,t){const{beans:o,column:r,rowNode:i,rangeFeature:a}=this,{userCompFactory:n}=o;let s=this.getValueToDisplay(),l;const c=i.stub&&i.groupData?.[r.getId()]==null,d=r.colDef;if(c||this.isCellRenderer()){const u=this.createCellRendererParams();!c||Le(r)?l=fl(n,d,u):l=Uh(n,d,u)}if(!l&&!c&&o.findSvc?.isMatch(i,r)){const u=this.createCellRendererParams();l=fl(n,{...r.colDef,cellRenderer:"agFindCellRenderer"},u)}const g=this.editSvc;if(g?.isBatchEditing()&&g.isRowEditing(i,{checkSiblings:!0})){const u=g.prepDetailsDuringBatch(this,{compDetails:l,valueToDisplay:s});u&&(u.compDetails?l=u.compDetails:u.valueToDisplay&&(s=u.valueToDisplay))}this.hasActiveRenderer=l!=null,this.comp.setRenderDetails(l,s,e),this.customRowDragComp?.refreshVisibility(),!t&&a&&a.scheduleRefreshRangeStyleAndHandle(),this.rowResizeFeature?.refreshRowResizer()}setupControlComps(){const e=this.column.colDef;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(){const e="ag-cell-value",t=this.column.colDef.cellRenderer==="agCheckboxCellRenderer";let o="";return t&&(o=" ag-allow-overflow"),`${e}${o}`}isIncludeControl(e,t=!1){return(this.rowNode.rowPinned==null||t&&Za(this.rowNode))&&!!e}isCheckboxSelection(e){const{rowSelection:t,groupDisplayType:o}=this.beans.gridOptions,r=Hr(t),i=$r(this.column);return o==="custom"&&r!=="selectionColumn"&&i?!1:e.checkboxSelection||i&&typeof t=="object"&&xo(t)}refreshShouldDestroy(){const e=this.column.colDef,t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e),!0),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource),i=this.isAutoHeight!=this.column.isAutoHeight();return t||o||r||i}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:o,rowNode:r,comp:i,eGui:a,beans:{valueSvc:n,gos:s,editSvc:l}}=this;return W(s,{value:e,valueFormatted:t,getValue:()=>n.getDisplayValue(o,r,"edit",this.shouldUseShowValuesAsValue()),setValue:d=>l?.setDataValue({rowNode:r,column:o},d)||r.setDataValue(o,d),formatValue:this.formatValue.bind(this),data:r.data,node:r,pinned:o.getPinned(),colDef:o.colDef,column:o,refreshCell:this.refreshCell.bind(this),eGridCell:a,eParentOfValue:i.getParentOfValue(),registerRowDragger:(d,g,u,h)=>this.registerRowDragger(d,g,h),setTooltip:(d,g)=>{s.assertModuleRegistered("Tooltip",3),this.rendererTooltipValue=d,this.rendererTooltipShouldDisplay=g,this.tooltipFeature?.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell()}refreshOrDestroyCell(e){if(this.isClientSideLoadingCell())return;this.refreshShouldDestroy()?this.rowCtrl?.recreateCell(this):this.refreshCell(e);const t=this.editSvc;t&&this.editCompDetails&&!this.comp?.getCellEditor()&&t.isEditing(this,{withOpenEditor:!0})&&t.startEditing(this,{startedEdit:!1,source:"api",silent:!0})}refreshCell(e){if(this.isClientSideLoadingCell())return;const{beans:{cellFlashSvc:t,filterManager:o,cellStyles:r},column:i,comp:a,suppressRefreshCell:n}=this;if(n)return;const s=i.enableCellChangeFlash,l=i.field==null&&i.valueGetter==null&&i.showRowGroup==null&&!i.isCalculatedCol,c=e?.newData??!1,d=l||e&&(e.force||c),g=!!a,u=this.updateAndFormatValue(g),h=d||u;if(g){if(h){this.showValue(!!c,!1);const p=o?.isSuppressFlashingCellsBecauseFiltering();!e?.suppressFlash&&!p&&s&&t?.flashCell(this),this.editSvc?.applyCellEditStyles(this),r?.applyCellUserStyles(this),r?.applyCellClassesFromColDef(this),this.editSvc?.applyRowEditStyles(this.rowCtrl),this.checkFormulaError()}this.tooltipFeature?.refreshTooltip(),this.refreshNoteState(),r?.applyCellClassRules(this)}}showNote(e=!1){this.notesFeature?.show({focusEditor:e})}refreshNoteState(){this.notesFeature?.refresh()}isNoteHoverSuppressed(){return!!this.editSvc?.isEditing(this)||this.hasFormulaError()||this.hasCellValidationError()}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){const t=this.beans.valueSvc,o=this.column,r=this.rowNode;if(this.shouldUseShowValuesAsValue()){const i=t.formatTransformedValue(o,r,e);if(i!==void 0)return i??e}return t.formatValue(o,r,e)??e}updateAndFormatValue(e){const t=this.value,o=this.valueFormatted,{value:r,valueFormatted:i}=this.beans.valueSvc.getValueForDisplay({column:this.column,node:this.rowNode,includeValueFormatted:!0,from:"edit",transformValues:this.shouldUseShowValuesAsValue()});return this.value=r,this.valueFormatted=i,e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=o:!0}shouldUseShowValuesAsValue(){return this.column.showValuesAs!=null&&!this.editSvc?.isEditing(this,{withOpenEditor:!0})}valuesAreEqual(e,t){const o=this.column.colDef;return o.equals?o.equals(e,t):e===t}addDomData(e){const t=this.eGui;Co(this.beans.gos,t,Ra,this),e.addDestroyFunc(()=>Co(this.beans.gos,t,Ra,null))}createEvent(e,t){const{rowNode:o,column:r,value:i,beans:a}=this;return Gv(a,e,t,{rowNode:o,column:r},i)}processCharacter(e){L4(this.beans,this,e)}onKeyDown(e){R4(this.beans,this,e)}onMouseEvent(e,t){l4(this.beans,this,e,t)}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles(),this.rangeFeature?.onDisplayedColumnsChanged())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:o}=this;jp(e,t,o.visibleCols)}refreshAriaColIndex(){const e=this.column.ariaColIndex;e!==this.drawnAriaColIndex&&(this.drawnAriaColIndex=e,Wg(this.eGui,e))}refreshAriaColSpan(){const{eGui:e,colsSpanning:t}=this;if(!e)return;const o=t?.[t.length-1],r=o?o.ariaColIndex-this.column.ariaColIndex+1:1;r!==this.drawnAriaColSpan&&(this.drawnAriaColSpan=r,qg(e,r>1?r:void 0))}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}onCellSelectionChanged(){this.comp&&this.rangeFeature?.onCellSelectionChanged()}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e){if(this.isClientSideLoadingCell())return;const{forceBrowserFocus:t=!1,preventScrollOnBrowserFocus:o=!1,sourceEvent:r}=e??{},i=this.editSvc?.allowedFocusTargetOnValidation(this);i&&i!==this||this.beans.focusSvc.setFocusedCell({...this.getFocusedCellPosition(),forceBrowserFocus:t,preventScrollOnBrowserFocus:o,sourceEvent:r})}restoreFocus(e=!1){const{beans:{editSvc:t,focusSvc:o},comp:r}=this;if(!r||t?.isEditing(this)||!this.isCellFocused())return;const i=o.takeOwedFocusEvent();if(i){this.onCellFocused(i);return}const a=o.shouldTakeFocus(),n=()=>{this.isAlive()&&this.isCellFocused()&&(o.takeOwedFocus()||a)&&o.isFocusFreeForGrid()&&r.getFocusableElement().focus({preventScroll:!0})};if(e){setTimeout(n,0);return}n()}onRowIndexChanged(){this.createCellPosition(),this.refreshAriaRowIndex(),this.onCellFocused(),this.restoreFocus(),this.rangeFeature?.onCellSelectionChanged(),this.rowResizeFeature?.refreshRowResizer()}onSuppressCellFocusChanged(e){const t=this.eGui;t&&Ee(t,"tabindex",e?void 0:-1)}refreshPinnedEdges(){const{comp:e,column:t}=this;e&&(e.toggleCss(G4,t.isFirstRightPinned()),e.toggleCss(W4,t.isLastLeftPinned()))}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()}onCellFocused(e){const{beans:t}=this;if(ai(t))return;if(!this.comp){e&&this.isCellFocused()&&t.focusSvc.oweFocus(e);return}const o=this.isCellFocused(),r=t.editSvc?.isEditing(this)??!1;if(this.comp.toggleCss(N4,o),o&&(e?.forceBrowserFocus||!this.hasBrowserFocus()&&this.beans.focusSvc.shouldTakeFocus())){let i=this.comp.getFocusableElement();if(r){const n=Qe(i,null,!0);n.length&&(i=n[0])}const a=e?e.preventScrollOnBrowserFocus:!0;i.focus({preventScroll:a}),Ly(t,i)}o&&e&&this.rowCtrl.announceDescription(this)}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:Nt(t),column:this.column}}applyStaticCssClasses(){const{comp:e}=this;e.toggleCss(V4,!0),e.toggleCss(q4,!0);const t=this.column.isAutoHeight();e.toggleCss(B4,t),e.toggleCss(H4,!t),this.setCalculatedColumnCss()}onColumnHover(){this.beans.colHover?.onCellColumnHover(this.column,this.comp)}onColDefChanged(){this.comp&&(this.tooltipFeature?.refreshTooltip(),this.setWrapText(),this.setCalculatedColumnCss(),this.editSvc?.isEditing(this)?this.editSvc?.handleColDefChanged(this):this.refreshOrDestroyCell({force:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.colDef.wrapText===!0;this.comp.toggleCss(U4,e)}setCalculatedColumnCss(){const e=this.beans.calculatedColsSvc,t=e!=null&&this.column.isCalculatedCol;(t||this.calculatedColumnCssApplied)&&(this.comp.toggleCss(Al,t),this.calculatedColumnCssApplied=t);const o=e!=null&&t&&e.isHighlightedColumn(this.column);(o||this.calculatedColumnHighlightedCssApplied)&&(this.comp.toggleCss(Up,o),this.calculatedColumnHighlightedCssApplied=o)}isCalculatedColumn(){return this.column.isCalculatedCol}refreshCalculatedColumnCss(){this.setCalculatedColumnCss()}dispatchCellContextMenuEvent(e){const t=this.column.colDef,o=this.createEvent(e,"cellContextMenu"),{beans:r}=this;r.eventSvc.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout(()=>{r.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(o)})},0)}getCellRenderer(){return this.comp?.getCellRenderer()??null}destroy(){this.editSvc?.onCellDestroyed(this),this.isCellFocused()&&this.hasBrowserFocus()&&this.beans.focusSvc.oweFocus(),ka(this),super.destroy()}hasBrowserFocus(e){const t=Z(this.beans),o=this.eGui;return e?o===t:o?.contains(t)??!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,o){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const r=this.createRowDragComp(e,t,o);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}),r.refreshVisibility())}createRowDragComp(e,t,o){const r=this.beans.rowDragSvc?.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,o);if(r)return this.beans.context.createBean(r),r}setFocusedCellPosition(e){}getFocusedCellPosition(){return this.cellPosition}refreshAriaRowIndex(){if(!Le(this.column)||!this.eGui)return;const{ariaRowIndex:e}=this.rowCtrl;e!=null&&Ni(this.eGui,e)}getRootElement(){return this.eGui}};function $c(e,t,o,r,i,a){if(o==null&&t==null)return;const n={},s={},l=(c,d)=>{for(const g of c.split(" "))g.trim()!=""&&d(g)};if(o){const c=Object.keys(o);for(let d=0;d<c.length;d++){const g=c[d],u=o[g];let h;typeof u=="string"?h=e?e.evaluate(u,r):!0:typeof u=="function"&&(h=u(r)),l(g,p=>{h?n[p]=!0:s[p]=!0})}}if(t&&a)for(const c of Object.keys(t))l(c,d=>{n[d]||(s[d]=!0)});a&&Object.keys(s).forEach(a),Object.keys(n).forEach(i)}function ed(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var j4=class extends x{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const o=this.gos,r=n=>{if(typeof n=="string")e.push(n);else if(Array.isArray(n))for(const s of n)e.push(s)},i=o.get("rowClass");i&&r(i);const a=o.getCallback("getRowClass");if(a){const n={data:t.data,node:t,rowIndex:t.rowIndex},s=a(n);r(s)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,o=>{e.push(o)},()=>{})}processRowClassRules(e,t,o){const{gos:r,expressionSvc:i}=this.beans,a=W(r,{data:e.data,node:e,rowIndex:e.rowIndex});$c(i,void 0,r.get("rowClassRules"),a,t,o)}processStylesFromGridOptions(e){const t=this.gos,o=t.get("rowStyle"),r=t.getCallback("getRowStyle");let i;if(r){const a={data:e.data,node:e,rowIndex:e.rowIndex};i=r(a)}if(i||o)return{...o,...i}}},K4=class extends x{constructor(e){super(),this.rowCtrl=e}initialiseComp(){const e=this.rowCtrl.getCurrentRowComp(),t=this.rowCtrl.getCurrentRowElement();if(!(!e||!t)){if(this.tooltips?.pruneStaleElements(),this.shouldCreateCellSections()&&e.showEmbeddedFullWidth)this.rowCtrl.isEmbeddedFullWidth=!0,this.rowCtrl.embeddedSectionHasContent={left:!0,center:!0,right:!0},e.showEmbeddedFullWidth({left:this.createFullWidthCompDetails(e.getPinnedLeftRowElement()??t,"left",!0),center:this.createFullWidthCompDetails(e.getScrollingRowElement()??t,null,!0),right:this.createFullWidthCompDetails(e.getPinnedRightRowElement()??t,"right",!0)}),this.rowCtrl.refreshPinnedCellGroupWidths();else{this.rowCtrl.isEmbeddedFullWidth=!1;const o=this.createFullWidthCompDetails(t,null,!0);e.showFullWidth(o),this.rowCtrl.refreshPinnedCellGroupWidths()}this.notesFeature?.destroy(),this.notesFeature=this.beans.notesSvc?.createFullWidthNotesFeature(this.rowCtrl)}}refreshRow(e){if(!this.refreshFullWidthComp()){this.rowCtrl.redrawThisRow();return}this.rowCtrl.onRowRefreshed(),this.notesFeature?.refresh()}refreshFullWidthComp(){const e=this.rowCtrl.getCurrentRowComp(),t=this.rowCtrl.getCurrentRowElement();return!e||!t?!0:(this.tooltips?.pruneStaleElements(),this.shouldCreateCellSections()&&e.refreshEmbeddedFullWidth?e.refreshEmbeddedFullWidth(o=>{const r=o==="left"?e.getPinnedLeftRowElement():o==="right"?e.getPinnedRightRowElement():e.getScrollingRowElement();return this.createFullWidthCompDetails(r??t,o).params}):e.refreshFullWidth(()=>this.createFullWidthCompDetails(t,null).params))}shouldCreateCellSections(){return this.rowCtrl.printLayout||this.gos.get("embedFullWidthRows")}getModeCellRenderers(){return this.rowCtrl.getCurrentRowComp()?.getFullWidthCellRenderers()}getAllCellCtrls(){return at}recreateCell(e){}destroyCells(){}onDisplayedColumnsChanged(){this.notesFeature?.refresh()}onVirtualColumnsChanged(){}onSpannedCellsUpdated(e){}createFullWidthCompDetails(e,t,o=!1){const{rowCtrl:r}=this,{gos:i}=this,{rowNode:a}=r,n=this.getTooltips(),s=n?.claimRenderer(e,o),l=W(i,{fullWidth:!0,data:a.data,node:a,value:a.key,valueFormatted:a.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:r.addEventListener.bind(r),registerRowDragger:(d,g,u,h)=>this.addFullWidthRowDragging(d,g,u,h),setTooltip:(d,g)=>{i.assertModuleRegistered("Tooltip",3),s&&n.setRendererTooltip(e,a,d,g,s)}}),c=this.beans.userCompFactory;switch(r.getRowType()){case"FullWidthDetail":return x2(c,l);case"FullWidthGroup":{const{value:d,valueFormatted:g}=this.beans.valueSvc.getValueForDisplay({node:a,includeValueFormatted:!0,from:"edit"});return l.value=d,l.valueFormatted=g,n?.setupGroupRowsTooltip(a,e),S2(c,l)}case"FullWidthLoading":return y2(c,l);default:return C2(c,l)}}setupDetailRowAutoHeight(e){this.rowCtrl.getRowType()==="FullWidthDetail"&&this.beans.masterDetailSvc?.setupDetailRowAutoHeight(this.rowCtrl,e)}getTooltips(){return this.tooltips??(this.tooltips=this.beans.tooltipSvc?.createFullWidthRowTooltips(this.rowCtrl))}addFullWidthRowDragging(e,t,o="",r){const{rowDragSvc:i,context:a}=this.beans;if(!i)return;const n=i.createRowDragComp(()=>o,this.rowCtrl.rowNode,void 0,e,t,r);this.createBean(n,a),this.addDestroyFunc(()=>{this.destroyBean(n,a)})}setupFocus(){this.restoreFullWidthFocus(!0),this.onRowFocused()}restoreFullWidthFocus(e=!1){const{focusSvc:t,editSvc:o}=this.beans,{rowCtrl:r}=this;if(o?.isEditing(r)||!this.isFocused())return;const i=t.takeOwedFocusEvent();if(i){this.onRowFocused(i);return}const a=t.shouldTakeFocus(),n=()=>{const s=r.getCurrentRowElement();s&&r.isAlive()&&this.isFocused()&&(t.takeOwedFocus()||a)&&t.isFocusFreeForGrid()&&s.focus({preventScroll:!0})};if(e){setTimeout(n,0);return}n()}isFocused(){const e=this.rowCtrl.rowNode;return this.beans.focusSvc.isRowFocused(e.rowIndex,e.rowPinned)}onRowFocused(e){const{focusSvc:t}=this.beans,{rowCtrl:o}=this,r=this.isFocused(),i=o.getCurrentRowElement();if(!r){i?.classList.remove("ag-full-width-focus");return}if(!i){e&&t.oweFocus(e);return}i.classList.add("ag-full-width-focus"),e?.forceBrowserFocus&&i.focus({preventScroll:!0})}onKeyboardNavigate(e){const{rowCtrl:t}=this,o=t.getCurrentRowElement();if(!o?.contains(e.target)||!(o===e.target))return;const i=t.rowNode,{focusSvc:a,navigation:n}=this.beans,s=a.getFocusedCell(),l={rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:s?.column??this.getNavigationColumn()},c=!!n?.isCtrlArrowJump(e);n?.navigateToNextCell(e,e.key,l,!0,c),e.preventDefault()}onTabKeyDown(e){if(e.defaultPrevented||rt(e))return;const{rowCtrl:t,beans:o}=this,r=t.getCurrentRowElement(),i=r?.contains(e.target)?r:null,a=i===e.target,n=Z(this.beans);let s=!1;i&&n&&(s=i.contains(n)&&n.classList.contains("ag-cell"));let l=null;!a&&!s&&(l=Xo({beans:o,rootNode:i,backwards:e.shiftKey})),(a||!l)&&this.beans.navigation?.onTabKeyDown(t,e)}getRowContentElement(){return this.rowCtrl.getCurrentRowElement()??null}getNavigationColumn(){return this.getDefaultTarget()?.column??this.getFirstDisplayedColumnForFullWidth()}onRowMouseDown(e){if(this.isSuppressMouseEvent(e))return;const{rangeSvc:t,focusSvc:o}=this.beans;t?.removeAllCellRanges();const{rowCtrl:r}=this,i=r.getCurrentRowElement();if(!i)return;const a=e.target;if(!i.contains(a))return;const n=this.getTarget(a)?.column;if(!n)return;const s=r.rowNode;let l=e.defaultPrevented||qt();i.contains(a)&&Er(a)&&(l=!1),o.setFocusedCell({rowIndex:s.rowIndex,column:n,rowPinned:s.rowPinned,forceBrowserFocus:l})}isSuppressMouseEvent(e){const{rowCtrl:t}=this,{gos:o}=this,r=t.getCurrentRowComp(),a=t.getCurrentRowElement()?.contains(e.target)&&r?r:void 0,n=Y4(a,e.target),s=a?.getFullWidthCellRendererParamsForPinned?.(n)??a?.getFullWidthCellRendererParams();return T3(o,s,t.rowNode,e)}getTargets(){const{rowCtrl:e}=this,t=e.getGui(),o=t?.rowComp,r=t?.element,i=t?.compBean;if(!o||!r||!i)return[];const a=o.getPinnedLeftRowElement(),n=o.getScrollingRowElement(),s=o.getPinnedRightRowElement();if(!a&&!n&&!s){const c=this.getFirstDisplayedColumnForFullWidth();return c?[{compBean:i,element:r,column:c,pinned:null}]:[]}const l=new Map;return this.addFullWidthTarget(l,a,i,this.getFirstColumnForFullWidthSection("left"),"left"),this.addFullWidthTarget(l,n??r,i,this.getFirstColumnForFullWidthSection(null),null),this.addFullWidthTarget(l,s,i,this.getFirstColumnForFullWidthSection("right"),"right"),[...l.values()]}getTarget(e){const t=e instanceof Node?e:void 0,o=this.getTargets();if(o.length)return t?o.find(r=>r.element.contains(t))??o[0]:o[0]}getDefaultTarget(){return this.getTargets()[0]}findInfoForEvent(e){const t=this.getTarget(e?.target);if(t)return{column:t.column,pinned:t.pinned}}addFullWidthTarget(e,t,o,r,i){!t||!r||e.has(t)||e.set(t,{compBean:o,element:t,column:r,pinned:i})}getFirstColumnForFullWidthSection(e){const{visibleCols:t}=this.beans;switch(e){case"left":return t.leftCols[0]??t.centerCols[0]??t.rightCols[0];case"right":return t.rightCols[0]??t.centerCols[0]??t.leftCols[0];default:return t.centerCols[0]??t.leftCols[0]??t.rightCols[0]}}getFirstDisplayedColumnForFullWidth(){return this.beans.visibleCols.allCols[0]}getNotesFeature(){return this.notesFeature}addInitialRowClasses(e){e.push("ag-full-width-row"),this.shouldCreateCellSections()&&e.push("ag-embedded-full-width-row")}destroy(){this.tooltips=this.destroyBean(this.tooltips,this.beans.context),this.notesFeature?.destroy(),this.notesFeature=void 0,super.destroy()}};function Y4(e,t){return!e||!(t instanceof HTMLElement)?null:e.getPinnedLeftRowElement()?.contains(t)?"left":e.getPinnedRightRowElement()?.contains(t)?"right":null}var Q4=0,Wv={},Ja=class extends x{constructor(e,t,o,r,i){super(),this.rowNode=e,this.useAnimationFrameForCreate=r,this.printLayout=i,this.diffIndex=0,this.drawnRowComp=void 0,this.compBean=void 0,this.mappedPinnedWidths=void 0,this.spannedRow=!1,this.active=!0,this.slideInAnimation=!1,this.fadeInAnimation=!1,this.rowDragComp=void 0,this.lastMouseDownOnDragger=!1,this.rowId=null,this.ariaRowIndex=null,this.businessKey=null,this.isEmbeddedFullWidth=!1,this.embeddedSectionHasContent={left:!0,center:!0,right:!0},this.beans=t,this.gos=t.gos,this.paginationPage=t.pagination?.getCurrentPage()??0,this.useTopPositioning=!!(this.gos.get("suppressRowTransform")||this.gos.get("enableCellSpan")),this.instanceId=e.id+"-"+Q4++,this.rowId=er(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=ed(this.rowNode),this.rowType=Xa(this.beans,this.rowNode),this.setAnimateFlags(o),this.rowStyles=this.processStylesFromGridOptions(),this.rowModeFeature=this.createRowModeFeature();try{this.addListeners(),this.rowModeFeature.prepareInitialCellCtrls?.()}catch(a){throw this.destroyFirstPass(!0),this.destroySecondPass(),a}}isClientSideLoadingRow(){return Rt(this.gos,this.rowNode)}createRowModeFeature(){const{context:e}=this.beans,t=this.isFullWidth()?new K4(this):new $3(this);return this.createBean(t,e),this.addDestroyFunc(()=>this.destroyBean(t,e)),t}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(this.isClientSideLoadingRow()||typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=er(e)}setComp(e,t,o){const r=this.beans.rowRenderer,i={rowComp:e,element:t,compBean:cr(this,o)};this.rowGui=i,this.initialiseRowComp();const a=this.rowNode,n=this.rowType==="FullWidthLoading"||a.stub,s=!a.data&&this.beans.rowModel.getType()==="infinite";!n&&!s&&!a.rowPinned&&r.dispatchFirstDataRenderedEvent(),this.rowModeFeature.setupFocus?.()}unsetComp(){this.destroyRowDragComp(),this.rowGui=void 0}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";this.rowGui?.element.style.setProperty("display",t)}initialiseRowComp(){const e=this.rowGui;if(!e)return;const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(!1),Ft(t)&&this.rowNode.selectable&&this.onRowSelected(),this.rowModeFeature.initialiseComp();const{rowComp:o,element:r,compBean:i}=e,a=this.getInitialRowClasses();for(const n of a)o.toggleCss(n,!0);this.beans.editSvc?.applyRowEditStyles(this),this.beans.rowDropHighlightSvc?.row===this.rowNode&&this.onRowNodeHighlightChanged(),this.executeSlideAndFadeAnimations(),this.rowNode.isExpandable()&&qn(r,!!this.rowNode.expanded),this.refreshAriaLevel(),this.setRowCompRowId(),this.setRowCompRowBusinessKey(),Co(t,r,Ma,this),i.addDestroyFunc(()=>Co(t,r,Ma,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"p2",!1):this.addHoverFunctionality(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&o.toggleCss("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(){this.businessKey!=null&&this.rowGui?.rowComp.setRowBusinessKey(this.businessKey)}setRowCompRowId(){const e=er(this.rowNode.id);this.rowId=e,e!=null&&this.rowGui?.rowComp.setRowId(e)}executeSlideAndFadeAnimations(){const e=this.rowGui;e&&(this.slideInAnimation&&(Yi(()=>{this.active&&this.onTopChanged()}),this.slideInAnimation=!1),this.fadeInAnimation&&(Yi(()=>{this.active&&e.rowComp.toggleCss("ag-opacity-zero",!1)}),this.fadeInAnimation=!1))}addRowDraggerToRow(){const e=this.rowGui;if(!e)return;const t=this.beans.rowDragSvc?.createRowDragCompForRow(this.rowNode,e.element);t&&(this.rowDragComp=this.createBean(t,this.beans.context))}destroyRowDragComp(){this.rowDragComp=this.destroyBean(this.rowDragComp,this.beans.context)}getModeCellRenderers(){return this.rowModeFeature.getModeCellRenderers?.()}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate"),t=this.rowGui;if(this.isClientSideLoadingRow()||!e||t===void 0)return;const{visibleCols:o}=this.beans,r=t.element,i={eRow:r,ePinnedLeftRow:o.leftCols.length?r:void 0,ePinnedRightRow:o.rightCols.length?r:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(i)}getNewCellCtrl(e){if(!this.beans.rowSpanSvc?.isCellSpanning(e,this.rowNode))return new ur(e,this.rowNode,this.beans,this,null)}isCorrectCtrlForSpan(e){return!this.beans.rowSpanSvc?.isCellSpanning(e.column,this.rowNode)}laneFor(e){return this.printLayout?1:e.pinnedLane}setEmbeddedSectionHasContent(e,t){this.embeddedSectionHasContent[e]=t}refreshPinnedCellGroupWidths(){const e=this.rowGui;e&&e.rowComp.refreshPinnedSections()}getMappedPinnedCellGroupWidths(){let{leftWidth:e,centerWidth:t,rightWidth:o}=this.getPinnedCellGroupWidths();if(this.isEmbeddedFullWidth){const s=this.embeddedSectionHasContent.left,l=this.embeddedSectionHasContent.right;t=t+(s?0:e)+(l?0:o),e=s?e:0,o=l?o:0}const r=this.isFullWidth(),i=e>0||r,a=o>0||r;let n=this.mappedPinnedWidths;return(n?.leftWidth!==e||n.centerWidth!==t||n.rightWidth!==o||n.renderLeft!==i||n.renderRight!==a)&&(n={leftWidth:e,centerWidth:t,rightWidth:o,renderLeft:i,renderRight:a},this.mappedPinnedWidths=n),n}getPinnedCellGroupWidths(){return Pl(this.beans.visibleCols,this.printLayout)}getInitialCellCtrls(e){return this.rowModeFeature.getInitialCellCtrls?.(e)}getDomOrder(){return this.gos.get("ensureDomOrder")||ke(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){this.rowNode.sticky||!e||(L(this.rowNode.oldRowTop)?this.slideInAnimation=!0:this.fadeInAnimation=!0)}isFullWidth(){return this.rowType!=="Normal"}onRowRefreshed(){er(this.rowNode.id)!==this.rowId&&this.setRowCompRowId();const e=this.businessKey;this.updateRowBusinessKey(),this.businessKey!==e&&this.setRowCompRowBusinessKey(),this.onRowSelected(),this.postProcessCss()}getCurrentRowComp(){return this.rowGui?.rowComp}getCurrentRowElement(){return this.rowGui?.element}redrawThisRow(){this.beans.rowRenderer.redrawRow(this.rowNode)}getRowType(){return this.rowType}getFullWidthAnchorRole(){return this.rowType==="FullWidthLoading"?"gridcell":"presentation"}shouldCreateCellSections(){return this.rowModeFeature.shouldCreateCellSections()}getNotesFeature(){return this.rowModeFeature.getNotesFeature?.()}addListeners(){const{beans:e,gos:t,rowNode:o}=this,{expansionSvc:r,eventSvc:i,rowSpanSvc:a}=e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...r?.getRowExpandedListeners(this)}),o.detail&&this.addManagedListeners(o.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(o,{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)});const n=()=>this.rowModeFeature.releaseKeptCells?.(!0);this.addManagedListeners(i,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),headerHeightChanged:this.onTopChanged.bind(this),headerRowsChanged:this.updateRowIndexes.bind(this),advancedFilterEnabledChanged:this.updateRowIndexes.bind(this),pinnedRowsChanged:this.onPinnedRowsChanged.bind(this),pinnedRowDataChanged:this.onPinnedRowsChanged.bind(this),stickyBottomOffsetChanged:this.onStickyBottomOffsetChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.refreshPinnedCellGroupWidths.bind(this),leftPinnedWidthChanged:this.refreshPinnedCellGroupWidths.bind(this),rightPinnedWidthChanged:this.refreshPinnedCellGroupWidths.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),cellEditingStopped:n,batchEditingStopped:n,cellEditValuesChanged:n,paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:()=>{this.refreshAriaLevel(),this.rowNode.rowPinned==="bottom"&&this.updateRowIndexes(),this.refreshFirstAndLastRowStyles()}}),a?.active&&this.addManagedListeners(a,{spannedCellsUpdated:({pinned:s})=>{this.rowModeFeature.onSpannedCellsUpdated(s)}}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(t.get("rowDragEntireRow")){this.addRowDraggerToRow();return}this.destroyRowDragComp()})}onRowPinned(){this.rowGui?.rowComp.toggleCss("ag-row-pinned-source",!!this.rowNode.pinnedSibling)}onRowNodeDataChanged(e){this.refreshRow({suppressFlash:!e.update,newData:!e.update})}refreshRow(e){if(Xa(this.beans,this.rowNode)!==this.rowType){this.beans.rowRenderer.redrawRow(this.rowNode);return}this.rowModeFeature.refreshRow(e??{})}refreshSpans(){this.rowModeFeature.refreshSpans?.()}getColSpans(){return this.rowModeFeature.getColSpans?.()}postProcessCss(){this.isClientSideLoadingRow()||(this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.beans.editSvc?.applyRowEditStyles(this),this.postProcessRowDragging())}onRowNodeHighlightChanged(){const{rowGui:e,beans:{rowDropHighlightSvc:t}}=this,o=t?.row===this.rowNode?t.position:"none",r=o==="above",i=o==="inside",a=o==="below",n=o!=="none",s=r||a,l=this.rowNode.uiLevel,c=s&&l>0,d=c?l.toString():"0";e?.rowComp.toggleCss("ag-row-highlight-above",r),e?.rowComp.toggleCss("ag-row-highlight-inside",i),e?.rowComp.toggleCss("ag-row-highlight-below",a),e?.rowComp.toggleCss("ag-row-highlight-indent",c),n?e?.element.style.setProperty("--ag-row-highlight-level",d):e?.element.style.removeProperty("--ag-row-highlight-level")}postProcessRowDragging(){const{rowNode:e,rowGui:t}=this,o=e.dragging;t?.rowComp.toggleCss("ag-row-dragging",o)}onDisplayedColumnsChanged(){this.rowModeFeature.onDisplayedColumnsChanged()}onVirtualColumnsChanged(){this.rowModeFeature.onVirtualColumnsChanged()}getRowPosition(){return{rowPinned:Nt(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}onKeyboardNavigate(e){this.rowModeFeature.onKeyboardNavigate?.(e)}onTabKeyDown(e){this.rowModeFeature.onTabKeyDown?.(e)}getRowContentElement(){return this.rowModeFeature.getRowContentElement?.()??null}getNavigationColumn(){return this.rowModeFeature.getNavigationColumn()}getRowYPosition(){const e=this.rowGui?.element;return e&&ho(e)?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:this.gos.get("tabIndex");this.rowGui&&Ee(this.rowGui.element,"tabindex",t)}onRowFocused(e){this.rowModeFeature.onRowFocused?.(e)}renderFocusedCell(){this.rowModeFeature.renderFocusedCell?.()}recreateCell(e){this.rowModeFeature.recreateCell(e)}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"pointerdown":case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:o}=this;return W(this.gos,{type:e,node:o,data:o.data,rowIndex:o.rowIndex,rowPinned:o.rowPinned,event:t})}createRowEventWithSource(e,t){const o=this.createRowEvent(e,t);return o.source=this,o}onRowDblClick(e){if(rt(e))return;const t=this.createRowEventWithSource("rowDoubleClicked",e);t.isEventHandlingSuppressed=this.isSuppressMouseEvent(e),this.beans.eventSvc.dispatchEvent(t)}findInfoForEvent(e){return this.rowModeFeature.findInfoForEvent?.(e)}getTargets(){return this.rowModeFeature.getTargets?.()??[]}getTarget(e){return this.rowModeFeature.getTarget?.(e)}onRowMouseDown(e){this.lastMouseDownOnDragger=uo(e.target,"ag-row-drag",3),this.rowModeFeature.onRowMouseDown?.(e)}isSuppressMouseEvent(e){return this.rowModeFeature.isSuppressMouseEvent(e)}onRowClick(e){if(rt(e)||this.lastMouseDownOnDragger)return;const o=this.isSuppressMouseEvent(e),{eventSvc:r,selectionSvc:i}=this.beans,a=this.createRowEventWithSource("rowClicked",e);a.isEventHandlingSuppressed=o,r.dispatchEvent(a),!o&&i?.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){this.rowModeFeature.setupDetailRowAutoHeight?.(e)}refreshAriaLevel(){const{rowGui:e,rowNode:t,beans:o,gos:r}=this;if(!e)return;let i;if(o.ctrlsSvc.get("gridBodyCtrl")?.isTreeGrid&&(i=1,!t.rowPinned)){i=Math.max(1,ed(t)+1);const a=Kt(r)&&r.get("groupAllowUnbalanced");for(let n=t.parent;n&&n.level>=0;n=n.parent)(n.childrenAfterGroup?.length===1&&Ls(r,n)||a&&n.group&&n.key==="")&&--i}vy(e.element,i)}onUiLevelChanged(){const e=ed(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;this.rowGui?.rowComp.toggleCss(t,!0),this.rowGui?.rowComp.toggleCss(o,!1)}this.rowLevel=e}isFirstRowOnPage(){const{rowNode:{rowIndex:e,rowPinned:t},beans:{pageBounds:o}}=this;return t?e===0:e===o.getFirstRow()}isLastRowOnPage(){const{rowNode:{rowIndex:e,rowPinned:t},beans:{pageBounds:o,pinnedRowModel:r}}=this;if(t){const i=t==="top"?r?.getPinnedTopRowCount():r?.getPinnedBottomRowCount();return i==null?!1:e===i-1}return e===o.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.rowGui?.rowComp.toggleCss("ag-row-first",e)),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.rowGui?.rowComp.toggleCss("ag-row-last",t))}getAllCellCtrls(){return this.rowModeFeature.getAllCellCtrls()}postProcessClassesFromGridOptions(){if(this.isClientSideLoadingRow())return;const e=[];if(this.beans.rowStyleSvc?.processClassesFromGridOptions(e,this.rowNode),!!e.length)for(const t of e)this.rowGui?.rowComp.toggleCss(t,!0)}postProcessRowClassRules(){this.isClientSideLoadingRow()||this.beans.rowStyleSvc?.processRowClassRules(this.rowNode,e=>this.rowGui?.rowComp.toggleCss(e,!0),e=>this.rowGui?.rowComp.toggleCss(e,!1))}setStylesFromGridOptions(e){if(e){const t=this.processStylesFromGridOptions();if(t===this.rowStyles)return;this.rowStyles=t}this.rowGui?.rowComp.setUserStyles(this.rowStyles)}getInitialRowClasses(){const{rowNode:e,beans:t}=this,o=[];if(o.push("ag-row",this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation&&o.push("ag-opacity-zero"),o.push(e.rowIndex%2===0?"ag-row-even":"ag-row-odd"),e.isRowPinned()&&(o.push("ag-row-pinned"),t.pinnedRowModel?.isManual()&&o.push("ag-row-pinned-manual")),!e.isRowPinned()&&e.pinnedSibling&&o.push("ag-row-pinned-source"),e.isSelected()&&o.push("ag-row-selected"),e.footer&&(o.push("ag-row-footer"),e.level===-1)){o.push("ag-row-grand-total");const i=e.rowPinned??tr(this.gos),a=i==="top"||i==="pinnedTop";o.push(`ag-row-grand-total-border-${a?"bottom":"top"}`)}o.push("ag-row-level-"+this.rowLevel),e.stub&&o.push("ag-row-loading"),this.rowModeFeature.addInitialRowClasses?.(o),t.expansionSvc?.addExpandedCss(o,e),e.dragging&&o.push("ag-row-dragging");const{rowStyleSvc:r}=t;return r&&!this.isClientSideLoadingRow()&&(r.processClassesFromGridOptions(o,e),r.preProcessRowClassRules(o,e)),o.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&o.push("ag-row-first"),this.isLastRowOnPage()&&o.push("ag-row-last"),o}processStylesFromGridOptions(){return this.isClientSideLoadingRow()?Wv:this.beans.rowStyleSvc?.processStylesFromGridOptions(this.rowNode)??Wv}onRowSelected(){this.beans.selectionSvc?.onRowCtrlSelected(this,()=>this.announceDescription())}announceDescription(e){const{selectionSvc:t,focusSvc:o}=this.beans,r=e?.column??(this.isFullWidth()?void 0:o.getFocusedCell()?.column);t?.announceAriaRowSelection(this.rowNode,r),this.announceNoteDescription(e)}announceNoteDescription(e){const{notesSvc:t,ariaAnnounce:o}=this.beans;if(!t||!o||!e&&!this.isFullWidth())return;const r={rowNode:this.rowNode},i=e?{column:e.column}:{location:"fullWidthRow"},a={...r,...i};if(t.getNoteAccess(a)?.canView){const s=this.getLocaleTextFunc();o.announceValue(s("ariaHasNote","This cell has a note."),"note")}}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:o}=e,{rowNode:r,beans:i,gos:a}=this;o.addManagedListeners(t,{pointerenter:n=>{n.pointerType==="mouse"&&r.dispatchRowEvent("mouseEnter")},pointerleave:n=>{n.pointerType==="mouse"&&r.dispatchRowEvent("mouseLeave")}}),o.addManagedListeners(r,{mouseEnter:()=>{!i.dragSvc?.dragging&&!a.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),r.setHovered(!0))},mouseLeave:()=>{this.resetHoveredStatus(t)}})}resetHoveredStatus(e){(e??this.rowGui?.element)?.classList.remove("ag-row-hover"),this.rowNode.setHovered(!1)}getGui(){return this.rowGui}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return bo(e,o,r)}isRowRendered(){return!!this.rowGui}onRowHeightChanged(){if(this.rowNode.rowHeight==null)return;const e=this.rowNode.rowHeight,t=this.beans.environment.getDefaultRowHeight(),r=Ds(this.gos)&&!this.isClientSideLoadingRow()?sa(this.beans,this.rowNode).height:void 0,i=r?`${Math.min(t,r)-2}px`:void 0;this.rowGui?.element.style.setProperty("height",`${e}px`),i&&this.rowGui?.element.style.setProperty("--ag-line-height",i)}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&yo(this.gos)&&!t.sticky)if(t.rowTop!=null){const i=this.roundRowTopToBounds(t.rowTop);this.setRowTop(i)}else this.rowGui?.rowComp.toggleCss("ag-opacity-zero",!0);this.isFullWidth()&&this.rowGui?.element.contains(Z(this.beans))&&this.beans.focusSvc.oweFocus(),t.setHovered(!1);const o=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(o),this.beans.eventSvc.dispatchEvent(o),this.destroyRowDragComp(),ka(this),super.destroy()}destroySecondPass(){this.rowGui=void 0,this.rowModeFeature.destroyCells()}setFocusedClasses(){const{rowGui:e}=this;e?.rowComp.toggleCss("ag-row-focus",this.rowFocused),e?.rowComp.toggleCss("ag-row-no-focus",!this.rowFocused)}onCellFocusChanged(){this.updateRowFocused(),this.rowModeFeature.releaseKeptCells?.(!1)}updateRowFocused(){const e=this.beans.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses())}onPinnedRowsChanged(){this.updateRowIndexes(),this.refreshFirstAndLastRowStyles()}onPaginationChanged(){const e=this.beans.pagination?.getCurrentPage()??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){const e=this.getCalculatedRowTop();L(e)&&this.setRowTop(e)}onPaginationPixelOffsetChanged(){this.onTopChanged()}onStickyBottomOffsetChanged(){this.rowNode.rowPinned==="bottom"&&this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const o=this.beans.pageBounds.getPixelOffset();return e+o*(t?1:-1)}setRowTop(e){this.printLayout||L(e)&&this.setRowTopStyle(`${this.calculateRowTopPx(e)}px`)}calculateRowTopPx(e){const{rowNode:t,beans:{rowContainerHeight:o}}=this,r=this.applyPaginationOffset(e);return t.isRowPinned()||t.sticky?r:o.getRealPixelPosition(r)}getInitialRowTop(){return this.useTopPositioning?this.getInitialRowTopShared():void 0}getInitialTransform(){return this.useTopPositioning?void 0:`translateY(${this.getInitialRowTopShared()})`}getInitialRowTopShared(){if(this.printLayout)return"";const{rowNode:e}=this;let t;if(e.sticky){const o=this.getCalculatedRowTop();t=L(o)?o:e.stickyRowTop}else t=this.slideInAnimation?this.roundRowTopToBounds(e.oldRowTop):e.rowTop;return`${this.calculateRowTopPx(t)}px`}getCalculatedRowTop(){const{sticky:e,rowTop:t,stickyRowTop:o}=this.rowNode;return e?o:t}setRowTopStyle(e){const{rowGui:t,useTopPositioning:o}=this;t&&(o?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`))}getCellCtrl(e){return this.rowModeFeature.getCellCtrl?.(e)}getOwnCellCtrl(e){return this.rowModeFeature.getOwnCellCtrl?.(e)}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.updateRowFocused(),this.updateRowIndexes(),this.postProcessCss(),this.refreshSpans(),this.beans.visibleCols.colSpanColCount===0&&this.rowModeFeature.releaseKeptCells?.(!1))}getAriaRowIndex(){const{rowNode:e,beans:t}=this,{rowIndex:o}=e;return o==null||e.getRowIndexString()===null?null:qv(t,e,o)}updateRowIndexes(){const{rowNode:e,rowGui:t,beans:o}=this,{rowIndex:r}=e;if(r==null)return;const i=e.getRowIndexString();if(i===null)return;const a=r%2===0,n=this.ariaRowIndex=qv(o,e,r);t&&(t.rowComp.setRowIndex(i),t.rowComp.toggleCss("ag-row-even",a),t.rowComp.toggleCss("ag-row-odd",!a),Ni(t.element,n))}};function qv(e,t,o){const r={rowIndex:o,rowPinned:t.rowPinned??null};return Rl(e)+kl(e,r)+1}var Z4=(e,t)=>{const o=e.gos;if(Rt(o,t))return!1;if(t.detail)return!0;const r=o.getCallback("isFullWidthRow");return r?r({rowNode:t}):!1},Xa=(e,t)=>{const o=e.gos,r=t.stub,i=r&&o.get("groupHideOpenParents"),a=r&&o.get("suppressServerSideFullWidthLoadingRow");return r&&!a&&!i&&e.rowModel.getType()==="serverSide"?"FullWidthLoading":t.detail&&o.get("masterDetail")?"FullWidthDetail":Z4(e,t)?"FullWidth":!(a&&!i)&&zs(o,t,e.colModel.pivotMode)?"FullWidthGroup":"Normal"},J4=class extends x{constructor(){super(),this.beanName="navigation",this.currentColumnWithoutSpan=null,this.hasColumnWithoutSpanListener=!1,this.onPageDown=lu(this.onPageDown,100),this.onPageUp=lu(this.onPageUp,100)}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCon=e.gridBodyCtrl})}handlePageScrollingKey(e,t=!1){const o=e.key,r=e.altKey,i=e.ctrlKey||e.metaKey,a=mm(this.gos,e);let n=!1;switch(o){case y.PAGE_HOME:case y.PAGE_END:!i&&!r&&(this.onHomeOrEndKey(o),n=!0);break;case y.LEFT:case y.RIGHT:case y.UP:case y.DOWN:if(!a)return!1;this.isCtrlArrowJump(e)&&(this.onCtrlUpDownLeftRight(o,a),n=!0);break;case y.PAGE_DOWN:case y.PAGE_UP:!i&&!r&&(n=this.handlePageUpDown(o,a,t));break}return n&&e.preventDefault(),n}isCtrlArrowJump(e){const t=e.ctrlKey||e.metaKey,o=!!this.beans.rangeSvc&&e.shiftKey;return t&&!e.altKey&&!o}handlePageUpDown(e,t,o){return o&&(t=this.beans.focusSvc.getFocusedCell()),t?(e===y.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0):!1}navigateTo({scrollIndex:e,scrollType:t,scrollColumn:o,focusIndex:r,focusColumn:i,isAsync:a,rowPinned:n}){const{scrollFeature:s}=this.gridBodyCon;L(o)&&!o.isPinned()&&s.ensureColumnVisible(o),L(e)&&s.ensureIndexVisible(e,t),a||s.ensureIndexVisible(r);const{focusSvc:l}=this.beans;l.setFocusedCell({rowIndex:r,column:i,rowPinned:n,forceBrowserFocus:!0}),this.setRangeToCellIfSupported({rowIndex:r,rowPinned:n,column:i})}onPageDown(e){const t=this.beans,o=td(t),r=this.getViewportHeight(),{pageBounds:i,rowModel:a,rowAutoHeight:n}=t,s=i.getPixelOffset(),l=o.top+r,c=a.getRowIndexAtPixel(l+s);n?.active?this.navigateToNextPageWithAutoHeight(e,c):this.navigateToNextPage(e,c)}onPageUp(e){const t=this.beans,o=td(t),{pageBounds:r,rowModel:i,rowAutoHeight:a}=t,n=r.getPixelOffset(),s=o.top,l=i.getRowIndexAtPixel(s+n);a?.active?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)}navigateToNextPage(e,t,o=!1){const{pageBounds:r,rowModel:i}=this.beans,a=this.getViewportHeight(),n=r.getFirstRow(),s=r.getLastRow(),l=r.getPixelOffset(),c=i.getRow(e.rowIndex),d=o?c?.rowHeight-a-l:a-l,g=c?.rowTop+d;let u=i.getRowIndexAtPixel(g+l);if(u===e.rowIndex){const v=o?-1:1;t=u=e.rowIndex+v}let h;o?(h="bottom",u<n&&(u=n),t<n&&(t=n)):(h="top",u>s&&(u=s),t>s&&(t=s)),this.isRowTallerThanView(i.getRow(u))&&(t=u,h="top");const p={rowIndex:u,column:e.column,rowPinned:null},f=this.getNormalisedPosition(p),{rowIndex:m,column:w}=f??p;this.navigateTo({scrollIndex:t,scrollType:h,scrollColumn:null,focusIndex:m,focusColumn:w})}navigateToNextPageWithAutoHeight(e,t,o=!1){this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout(()=>{const r=this.getNextFocusIndexForAutoHeight(e,o);this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column,isAsync:!0})},50)}getNextFocusIndexForAutoHeight(e,t=!1){const o=t?-1:1,r=this.getViewportHeight(),{pageBounds:i,rowModel:a}=this.beans,n=i.getLastRow();let s=0,l=e.rowIndex;for(;l>=0&&l<=n;){const c=a.getRow(l);if(c){const d=c.rowHeight??0;if(s+d>r)break;s+=d}l+=o}return bo(l,0,n)}getViewportHeight(){const e=this.beans,t=td(e),o=this.beans.scrollVisibleSvc.getScrollbarWidth()??0;let r=t.bottom-t.top;return e.scrollVisibleSvc.isHorizontalScrollShowing()&&(r-=o),r}isRowTallerThanView(e){if(!e)return!1;const t=e.rowHeight;return typeof t!="number"?!1:t>this.getViewportHeight()}onCtrlUpDownLeftRight(e,t){const o=this.beans.cellNavigation.getNextCellToFocus(e,t,!0);if(!o)return;const r=this.getNormalisedPosition(o),{rowIndex:i,rowPinned:a,column:n}=r??o,s=n;this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:s,focusIndex:i,focusColumn:s,rowPinned:a})}onHomeOrEndKey(e){const t=e===y.PAGE_HOME,{visibleCols:o,pageBounds:r,rowModel:i}=this.beans,a=o.allCols,n=t?r.getFirstRow():r.getLastRow(),s=i.getRow(n);if(!s)return;const l=(t?a:[...a].reverse()).find(c=>!c.isSuppressNavigable(s)&&!Le(c));l&&this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:l,focusIndex:n,focusColumn:l})}onTabKeyDown(e,t){const o=t.shiftKey,r=this.tabToNextCellCommon(e,o,t),i=this.beans,{ctrlsSvc:a,pageBounds:n,focusSvc:s,gos:l}=i;if(r!==!1){r?t.preventDefault():r===null&&a.get("gridCtrl")?.allowFocusForNextCoreContainer(o);return}if(o){const{rowIndex:c,rowPinned:d}=e.getRowPosition();(d?c===0:c===n.getFirstRow())&&(l.get("headerHeight")===0||Ve(i)?Po(i,!0,"force"):(t.preventDefault(),s.focusPreviousFromFirstCell(t)))}else e instanceof ur&&!e.hasBrowserFocus(!0)&&e.focusCell({forceBrowserFocus:!0}),(s.focusOverlay(!1)||Po(i,o))&&t.preventDefault()}tabToNextCell(e,t){const o=this.beans,{focusSvc:r,rowRenderer:i}=o,a=r.getFocusedCell();if(!a)return!1;let n=Do(o,a);return!n&&(n=i.getRowByPosition(a),!n?.isFullWidth())?!1:!!this.tabToNextCellCommon(n,e,t,"api")}tabToNextCellCommon(e,t,o,r="ui"){const{editSvc:i,focusSvc:a}=this.beans;let n;const s=e instanceof ur?e:e.getAllCellCtrls()?.[0],l=i?.isEditing();return l&&(n=i?.moveToNextCell(s,t,o,r)),(!l||n===!1&&!i?.isEditing())&&(n=this.moveToNextCellNotEditing(e,t)),n===null?n:n||!!a.focusedHeader}moveToNextCellNotEditing(e,t){const o=this.beans.visibleCols.allCols;let r;e instanceof Ja?(r={...e.getRowPosition(),column:t?o[0]:pe(o)},this.gos.get("embedFullWidthRows")&&(r.column=e.getNavigationColumn())):r=e.getFocusedCellPosition();const i=this.findNextCellToFocusOn(r,{backwards:t,startEditing:!1});if(i===!1)return null;if(i instanceof ur)i.focusCell({forceBrowserFocus:!0});else if(i)return this.tryToFocusFullWidthRow(i,t);return L(i)}findNextCellToFocusOn(e,{backwards:t,startEditing:o,skipToNextEditableCell:r}){let i=e;const a=this.beans,{cellNavigation:n,gos:s,focusSvc:l,rowRenderer:c}=a;for(;;){e!==i&&(e=i),t||(i=this.getLastCellOfColSpan(i)),i=n.getNextTabbedCell(i,t);const d=s.getCallback("tabToNextCell");if(L(d)){const f=d({backwards:t,editing:o,previousCellPosition:e,nextCellPosition:i??null});if(f===!0)i=e;else{if(f===!1)return!1;i={rowIndex:f.rowIndex,column:f.column,rowPinned:f.rowPinned}}}if(!i)return null;if(i.rowIndex<0){const p=Je(a);return l.focusHeaderPosition({headerPosition:{headerRowIndex:p+i.rowIndex,column:i.column},fromCell:!0}),null}const g=s.get("editType")==="fullRow";if(o&&(!g||r)&&!this.isCellEditable(i))continue;this.ensureCellVisible(i);const u=Do(a,i);if(!u){const p=c.getRowByPosition(i);if(!p||!p.isFullWidth()||o)continue;return{...p.getRowPosition(),column:i?.column}}if(n.isSuppressNavigable(u.column,u.rowNode))continue;u.setFocusedCellPosition(i);const h=u.getFocusedCellPosition();return h.column!==i.column&&this.ensureCellVisible(h),this.setRangeToCellIfSupported(i),u}}isCellEditable(e){const t=this.lookupRowNodeForCell(e);return t?e.column.isCellEditable(t):!1}lookupRowNodeForCell({rowIndex:e,rowPinned:t}){const{pinnedRowModel:o,rowModel:r}=this.beans;return t==="top"?o?.getPinnedTopRow(e):t==="bottom"?o?.getPinnedBottomRow(e):r.getRow(e)}navigateToNextCell(e,t,o,r,i=!1){const n=(t===y.UP||t===y.DOWN)&&this.currentColumnWithoutSpan?{...o,column:this.currentColumnWithoutSpan}:o,s=this.beans,{cellNavigation:l,focusSvc:c,gos:d}=s;let g=i?l.getNextCellToFocus(t,n,!0):n,u=!1;for(;!i&&g&&(g===n||!this.isValidNavigateCell(g));)d.get("enableRtl")?t===y.LEFT&&(g=this.getLastCellOfColSpan(g)):t===y.RIGHT&&(g=this.getLastCellOfColSpan(g)),g=l.getNextCellToFocus(t,g),u=Me(g);if(u&&e?.key===y.UP&&(g={rowIndex:-1,rowPinned:null,column:n.column}),r){const p=d.getCallback("navigateToNextCell");if(L(p)){const m=p({key:t,previousCellPosition:o,nextCellPosition:g??null,event:e});L(m)?g={rowPinned:m.rowPinned,rowIndex:m.rowIndex,column:m.column}:g=null}}if(!g)return;if(g.rowIndex<0){const p=Je(s);c.focusHeaderPosition({headerPosition:{headerRowIndex:p+g.rowIndex,column:g.column??o.column},event:e??void 0,fromCell:!0});return}const h=this.getNormalisedPosition(g);h?(this.focusPosition(h),g.column!==h.column&&this.setCurrentColumnWithoutSpan(g.column)):this.tryToFocusFullWidthRow(g)}setCurrentColumnWithoutSpan(e){if(!this.hasColumnWithoutSpanListener){const t=()=>{this.currentColumnWithoutSpan=null};this.addManagedEventListeners({cellFocused:t,headerFocused:t}),this.hasColumnWithoutSpanListener=!0}this.currentColumnWithoutSpan=e}getNormalisedPosition(e){if(!!this.beans.spannedRowRenderer?.getCellByPosition(e))return e;this.ensureCellVisible(e);const o=Do(this.beans,e);return o?(e=o.getFocusedCellPosition(),this.ensureCellVisible(e),e):null}tryToFocusFullWidthRow(e,t){const{visibleCols:o,rowRenderer:r,focusSvc:i,eventSvc:a}=this.beans,n=o.allCols;if(!r.getRowByPosition(e)?.isFullWidth())return!1;const l=i.getFocusedCell(),c={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?pe(n):n[0])};this.focusPosition(c);const d=t??(l!=null&&Ep(c,l));return a.dispatchEvent({type:"fullWidthRowFocused",rowIndex:c.rowIndex,rowPinned:c.rowPinned,column:c.column,isFullWidthCell:!0,fromBelow:d}),!0}focusPosition(e){const{focusSvc:t}=this.beans;t.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.setRangeToCellIfSupported(e)}setRangeToCellIfSupported(e){Le(e.column)||this.beans.rangeSvc?.setRangeToCell(e)}isValidNavigateCell(e){return!!We(this.beans,e)}getLastCellOfColSpan(e){const t=Do(this.beans,e)?.colsSpanning;return!t||t.length===1?e:{rowIndex:e.rowIndex,column:pe(t),rowPinned:e.rowPinned}}ensureCellVisible(e){const t=Ts(this.gos),o=this.beans.rowModel.getRow(e.rowIndex),r=t&&o?.sticky,{scrollFeature:i}=this.gridBodyCon;!r&&Me(e.rowPinned)&&i.ensureIndexVisible(e.rowIndex),e.column.isPinned()||i.ensureColumnVisible(e.column)}ensureColumnVisible(e){const t=this.gridBodyCon.scrollFeature;e.isPinned()||t.ensureColumnVisible(e)}ensureRowVisible(e){this.gridBodyCon.scrollFeature.ensureIndexVisible(e)}};function td(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}var Uv={moduleName:"KeyboardNavigation",version:R,beans:[J4,w4,v6],apiFunctions:{getFocusedCell:b4,clearFocusedCell:C4,setFocusedCell:y4,setFocusedHeader:k4,tabToNextCell:S4,tabToPreviousCell:x4}},X4=class extends x{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:o}=this.beans;t?t.calculatePages():e.calculateBounds(0,o.getRowCount()-1)}},$4=class extends x{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?0:Math.max(t.rowTop+t.rowHeight-e.rowTop,0)}getCurrentPagePixelRange(){const{topRowBounds:e,bottomRowBounds:t}=this,o=e?.rowTop??0,r=t?t.rowTop+t.rowHeight:0;return{pageFirstPixel:o,pageLastPixel:r}}calculateBounds(e,t){const{rowModel:o}=this.beans,r=o.getRowBounds(e);r&&(r.rowIndex=e),this.topRowBounds=r;const i=o.getRowBounds(t);i&&(i.rowIndex=t),this.bottomRowBounds=i,this.calculatePixelOffset()}getPixelOffset(){return this.pixelOffset}calculatePixelOffset(){const e=this.topRowBounds?.rowTop??0;this.pixelOffset!==e&&(this.pixelOffset=e,this.eventSvc.dispatchEvent({type:"paginationPixelOffsetChanged"}))}},eM=".ag-header-row .ag-grid-pinned-right-cells .ag-grid-container-wrapper{border-left:var(--ag-pinned-column-border)}.ag-header-row .ag-grid-pinned-left-cells .ag-grid-container-wrapper{border-right:var(--ag-pinned-column-border)}.ag-layout-print .ag-header-row .ag-grid-pinned-left-cells,.ag-layout-print .ag-header-row .ag-grid-pinned-right-cells{display:none}.ag-layout-print .ag-header-cell-last-left-pinned{border-right:var(--ag-pinned-column-border)}.ag-layout-print .ag-header-cell-first-right-pinned{border-left: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-grid-pinned-left-cells .ag-header-cell-resize:after{left:calc(50% - var(--ag-header-column-resize-handle-width))}.ag-grid-pinned-right-cells .ag-header-cell-resize:after{left:50%}.ag-grid-pinned-left-cells .ag-header-cell-resize{right:-3px}.ag-grid-pinned-right-cells .ag-header-cell-resize{left:-3px}",tM=class extends x{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 o of this.elements)o&&(Q(o,t),kt(o,e))}},$a=50,oM=new Set(["uiColumnResized","columnMenu","contextMenu","toolPanelUi"]),rM=class extends x{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,columnPinned:this.keepPinnedColumnsNarrowerThanViewport.bind(this)}),this.addManagedPropertyListener("domLayout",e)}checkContainerWidths(){const{gos:e,visibleCols:t,eventSvc:o}=this.beans,r=ke(e,"print"),i=r?0:t.getLeftStickyColumnContainerWidth(),a=r?0:t.getRightStickyColumnContainerWidth();i!=this.leftWidth&&(this.leftWidth=i,o.dispatchEvent({type:"leftPinnedWidthChanged"})),a!=this.rightWidth&&(this.rightWidth=a,o.dispatchEvent({type:"rightPinnedWidthChanged"}))}keepPinnedColumnsNarrowerThanViewport(){if(!this.gridBodyCtrl)return;const e=this.gridBodyCtrl.getViewportWidthWithoutScrollbar();if(e<=$a)return;const t=this.getPinnedColumnsOverflowingViewport(e-$a),o=this.gos.getCallback("processUnpinnedColumns"),{columns:r,hasLockedPinned:i}=t;let a=r;!a.length&&!i||(o&&(a=o({columns:a,viewportWidth:e})),a?.length&&(a=a.filter(n=>!Le(n)),this.setColsPinned(a,null,"viewportSizeFeature")))}createPinnedWidthFeature(e,...t){return new tM(e,t)}setColsPinned(e,t,o){const{colModel:r,visibleCols:i,gos:a,colAnimation:n}=this.beans;if(!r.ready||!e?.length)return;if(ke(a,"print")){this.warn(37);return}const s=_v(t);let l=null;r.beginColUpdate();try{for(let c=0,d=e.length;c<d;++c){const g=e[c],u=g?r.getCol(g):null;u&&u.pinned!==s&&(this.setColPinned(u,s,o),l??(l=[]),l.push(u))}if(l){n?.start();try{i.refresh(o,!1),vh(this.eventSvc,l,o)}finally{n?.finish()}}}finally{r.endColUpdate()}}initCol(e){const{pinned:t,initialPinned:o}=e.colDef;jv(e,t!==void 0?t:o)}setColPinned(e,t,o){jv(e,t),e.dispatchStateUpdatedEvent("pinned",o)}limitResize(e,t,o,r){const i=e.pinnedLane===1;if(!(i?o<0&&t&&this.isNextPinned(e):o>0&&!(t&&this.isNextPinned(e))))return o;const n=r===void 0?0:e.getActualWidth()-r;return i?Math.max(o,-this.getPinnedRoom(-n)):Math.min(o,this.getPinnedRoom(n))}limitsAutoSize(e){return oM.has(e)}getPinnedRoom(e){if(ke(this.gos,"print"))return 1/0;const t=this.gridBodyCtrl,o=t?t.getViewportWidthWithoutScrollbar(t.getReportedViewportWidth()):0;return Math.max(o-$a-this.leftWidth-this.rightWidth+e,0)}isNextPinned(e){const t=this.beans.visibleCols;if(Ys(e)){const r=Lh(t,e);return!!r&&r.pinnedLane!==1}const o=Wh(t,e);return!!o&&o.pinnedLane!==1&&o.isResizable()}getPinnedColumnsOverflowingViewport(e){const t=this.rightWidth??0,o=this.leftWidth??0,r=t+o;let i=!1;if(r<e)return{columns:[],hasLockedPinned:i};const{visibleCols:a}=this.beans,n=[...a.leftCols],s=[...a.rightCols];let l=0,c=0;const d=0,g=[];let u=r-d-e;for(;(c<n.length||l<s.length)&&u>0;){if(l<s.length){const h=s[l++];if(h.colDef.lockPinned){i=!0;continue}u-=h.actualWidth,g.push(h)}if(c<n.length&&u>0){const h=n[c++];if(h.colDef.lockPinned){i=!0;continue}u-=h.actualWidth,g.push(h)}}return{columns:g,hasLockedPinned:i}}},_v=e=>e===!0||e==="left"?"left":e==="right"?"right":null,jv=(e,t)=>{const o=_v(t);e.pinned=o,e.pinnedLane=cl(o)},iM={moduleName:"PinnedColumn",version:R,beans:[rM],css:[eM]},aM=class extends r1{},nM={moduleName:"Aria",version:R,beans:[aM]},sM=":where(.ag-delay-render){.ag-cell,.ag-header-cell,.ag-header-group-cell,.ag-row,.ag-spanned-cell-wrapper{visibility:hidden}}",Kv="ag-delay-render",lM=class extends x{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(Kv)}),this.hideRequested=!0))}revealColumns(e){this.alreadyRevealed||!this.isAlive()||!this.requesters.has(e)||(this.requesters.delete(e),this.revealWhenRendered())}revealWhenRendered(){if(this.alreadyRevealed||!this.isAlive()||this.requesters.size>0)return;const{renderStatus:e,ctrlsSvc:t}=this.beans;if(e){if(!e.areHeaderCellsRendered()&&this.timesRetried<5){this.timesRetried++,setTimeout(()=>this.revealWhenRendered());return}this.timesRetried=0}t.getGridBodyCtrl().eGridBody.classList.remove(Kv),this.alreadyRevealed=!0}},cM={moduleName:"ColumnDelayRender",version:R,beans:[lM],css:[sM]},hr=class extends X{constructor(){super()}},dM={tag:"div",cls:"ag-overlay-exporting-center",children:[{tag:"span",ref:"eExportingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eExportingText",cls:"ag-exporting-text"}]},gM=class extends hr{constructor(){super(...arguments),this.eExportingIcon=k,this.eExportingText=k}init(e){const{beans:t}=this;this.setTemplate(dM);const o=ue("overlayExporting",t,null);o&&this.eExportingIcon.appendChild(o);const r=e.exporting?.overlayText??this.getLocaleTextFunc()("exportingOoo","Exporting...");this.eExportingText.textContent=r,t.ariaAnnounce.announceValue(r,"overlay")}},uM={tag:"div",cls:"ag-overlay-loading-center",children:[{tag:"span",ref:"eLoadingIcon",cls:"ag-loading-icon"},{tag:"span",ref:"eLoadingText",cls:"ag-loading-text"}]},hM=class extends hr{constructor(){super(...arguments),this.eLoadingIcon=k,this.eLoadingText=k}init(e){const{beans:t,gos:o}=this,r=Nt(o.get("overlayLoadingTemplate")?.trim());if(this.setTemplate(r??uM),!r){const i=ue("overlayLoading",t,null);i&&this.eLoadingIcon.appendChild(i);const a=e.loading?.overlayText??this.getLocaleTextFunc()("loadingOoo","Loading...");this.eLoadingText.textContent=a,t.ariaAnnounce.announceValue(a,"overlay")}}},pM={tag:"span",cls:"ag-overlay-no-matching-rows-center"},fM=class extends hr{init(e){const{beans:t}=this;this.setTemplate(pM);const o=e.noMatchingRows?.overlayText??this.getLocaleTextFunc()("noMatchingRows","No Matching Rows");this.getGui().textContent=o,t.ariaAnnounce.announceValue(o,"overlay")}},mM={tag:"span",cls:"ag-overlay-no-rows-center"},vM=class extends hr{init(e){const{beans:t,gos:o}=this,r=Nt(o.get("overlayNoRowsTemplate")?.trim());if(this.setTemplate(r??mM),!r){const i=e.noRows?.overlayText??this.getLocaleTextFunc()("noRowsToShow","No Rows To Show");this.getGui().textContent=i,t.ariaAnnounce.announceValue(i,"overlay")}}};function wM(e){e.overlays?.showLoadingOverlay()}function bM(e){e.overlays?.showNoRowsOverlay()}function CM(e){e.overlays?.hideOverlay()}var yM=".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-no-matching-rows-wrapper,.ag-overlay-no-rows-wrapper{align-items:safe center}.ag-overlay-exporting-wrapper,.ag-overlay-file-input-wrapper,.ag-overlay-loading-wrapper,.ag-overlay-modal-wrapper{pointer-events:all}.ag-overlay-exporting-center,.ag-overlay-loading-center{padding:var(--ag-spacing)}.ag-overlay-exporting-center,.ag-overlay-file-input-center,.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);display:flex}.ag-overlay-file-input-center{align-items:center;flex-direction:column;gap:calc(var(--ag-spacing)*2);max-width:420px;padding:calc(var(--ag-spacing)*2)}.ag-file-input-error-banner{background:color-mix(in srgb,var(--ag-invalid-color) 10%,var(--ag-background-color));border-radius:var(--ag-border-radius);color:var(--ag-invalid-color);font-size:.9em;padding:calc(var(--ag-spacing)*.75) calc(var(--ag-spacing)*2);text-align:center;width:100%}.ag-file-input-drop-zone{align-items:center;border:dashed calc(var(--ag-border-width)*2) var(--ag-border-color);border-radius:var(--ag-border-radius);display:flex;flex-direction:column;gap:var(--ag-spacing);padding:calc(var(--ag-spacing)*4);width:100%}.ag-file-input-drop-zone-active{background:var(--ag-row-hover-color);border-color:var(--ag-accent-color)}.ag-file-input-processing{padding:calc(var(--ag-spacing)*4)}.ag-file-input-processing,.ag-file-input-text-row{align-items:center;display:flex;gap:calc(var(--ag-spacing)*.75)}.ag-file-input-text{font-weight:600}.ag-file-input-browse{background:transparent;border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);color:var(--ag-text-color);cursor:pointer;font:inherit;padding:calc(var(--ag-spacing)*.5) calc(var(--ag-spacing)*2)}",SM={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"}]}]},Yv=class extends X{constructor(){super(SM),this.eOverlayWrapper=k,this.activeOverlay=null,this.activePromise=null,this.activeCssClass=null,this.elToFocusAfter=null,this.overlayExclusive=!1,this.oldWrapperPadding=null,this.registerCSS(yM)}handleKeyDown(e){if(e.key!==y.TAB||e.defaultPrevented||rt(e))return;const{beans:t,eOverlayWrapper:o}=this;if(o&&Xo({beans:t,rootNode:o,backwards:e.shiftKey}))return;let i;e.shiftKey?i=t.focusSvc.focusGridView({column:pe(t.visibleCols.allCols),backwards:!0,canFocusOverlay:!1}):i=Po(t,!1),i&&e.preventDefault()}updateLayoutClasses(e,t){const o=this.eOverlayWrapper;if(!o)return;const r=o.classList,{AUTO_HEIGHT:i,NORMAL:a,PRINT:n}=it;r.toggle(i,t.autoHeight),r.toggle(a,t.normal),r.toggle(n,t.print)}postConstruct(){this.createManagedBean(new Vl(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.beans.overlays.setWrapperComp(this,!1),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)}),this.addManagedEventListeners({gridSizeChanged:this.refreshWrapperPadding.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper?.classList;if(!t){this.activeCssClass=null;return}this.activeCssClass&&t.toggle(this.activeCssClass,!1),this.activeCssClass=e,t.toggle(e,!0)}showOverlay(e,t,o){if(this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,this.overlayExclusive=o,!e)return this.refreshWrapperPadding(),oe.resolve();if(this.setWrapperTypeClass(t),this.setDisplayed(!0,{skipAriaHidden:!0}),this.refreshWrapperPadding(),o&&this.isGridFocused()){const r=Z(this.beans);r&&!kr(this.beans)&&(this.elToFocusAfter=r)}return e.then(r=>{const i=this.eOverlayWrapper;if(!i){this.destroyBean(r);return}if(this.activePromise!==e){this.activeOverlay!==r&&this.destroyBean(r);return}this.activePromise=null,r&&(this.activeOverlay!==r&&(i.appendChild(r.getGui()),this.activeOverlay=r),o&&this.isGridFocused()&&Ar(i))}),e}refreshWrapperPadding(){if(!this.eOverlayWrapper){this.oldWrapperPadding=null;return}const e=!!this.activeOverlay||!!this.activePromise;let t=0;e&&!this.overlayExclusive&&(t=this.beans.ctrlsSvc.get("gridHeaderCtrl")?.headerHeight||0),t!==this.oldWrapperPadding&&(this.oldWrapperPadding=t,this.eOverlayWrapper.style.setProperty("padding-top",`${t}px`))}destroyActiveOverlay(){this.activePromise=null;const e=this.activeOverlay;if(!e){this.overlayExclusive=!1,this.elToFocusAfter=null,this.refreshWrapperPadding();return}let t=this.elToFocusAfter;this.elToFocusAfter=null,this.activeOverlay=null,this.overlayExclusive=!1,t&&!this.isGridFocused()&&(t=null),this.destroyBean(e);const o=this.eOverlayWrapper;o&&Ce(o),t?.focus?.({preventScroll:!0}),this.refreshWrapperPadding()}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}isGridFocused(){const e=Z(this.beans);return!!e&&this.beans.eGridDiv.contains(e)}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.beans.overlays.setWrapperComp(this,!0),super.destroy(),this.eOverlayWrapper=null}},xM={selector:"AG-OVERLAY-WRAPPER",component:Yv},kM=Yo?150:300,EM=["refresh"],zo=e=>({name:e,optionalMethods:EM}),Lo={id:"agLoadingOverlay",overlayType:"loading",comp:zo("loadingOverlayComponent"),wrapperCls:"ag-overlay-loading-wrapper",exclusive:!0,compKey:"loadingOverlayComponent",paramsKey:"loadingOverlayComponentParams",isSuppressed:e=>{const t=e.get("loading");return t===!1||!!e.get("suppressLoadingOverlay")&&!t}},pr={id:"agNoRowsOverlay",overlayType:"noRows",comp:zo("noRowsOverlayComponent"),wrapperCls:"ag-overlay-no-rows-wrapper",compKey:"noRowsOverlayComponent",paramsKey:"noRowsOverlayComponentParams",isSuppressed:e=>e.get("suppressNoRowsOverlay")},od={id:"agNoMatchingRowsOverlay",overlayType:"noMatchingRows",comp:zo("noMatchingRowsOverlayComponent"),wrapperCls:"ag-overlay-no-matching-rows-wrapper"},en={id:"agExportingOverlay",overlayType:"exporting",comp:zo("exportingOverlayComponent"),wrapperCls:"ag-overlay-exporting-wrapper",exclusive:!0},tn={id:"agFileInputOverlay",overlayType:"fileInput",comp:zo("fileInputOverlayComponent"),wrapperCls:"ag-overlay-file-input-wrapper",exclusive:!0},on={id:"activeOverlay",comp:zo("activeOverlay"),wrapperCls:"ag-overlay-modal-wrapper",exclusive:!0},RM={id:"agErrorOverlay",comp:zo("agErrorOverlay"),wrapperCls:"ag-overlay-error-wrapper",exclusive:!1,noUserOverride:!0},FM=e=>e?{agLoadingOverlay:Lo,agNoRowsOverlay:pr,agNoMatchingRowsOverlay:od,agExportingOverlay:en,agFileInputOverlay:tn}[e]??on:null,MM=e=>e?{loading:Lo,noRows:pr,noMatchingRows:od,exporting:en,fileInput:tn}[e]:null,DM=class extends x{constructor(){super(...arguments),this.beanName="overlays",this.eWrapper=void 0,this.exclusive=!1,this.oldExclusive=!1,this.currentDef=null,this.showInitialOverlay=!0,this.userForcedNoRows=!1,this.exportsInProgress=0,this.devErrorOverlayActive=!1,this.newColumnsLoadedCleanup=null}postConstruct(){const e=this.gos;this.showInitialOverlay=ve(e);const t=()=>{this.userForcedNoRows||this.updateOverlay(!1)},[o,r,i,a]=this.addManagedEventListeners({newColumnsLoaded:t,rowCountReady:()=>{this.disableInitialOverlay(),t(),r()},rowDataUpdated:t,modelUpdated:t});this.newColumnsLoadedCleanup=o,this.addManagedPropertyListeners(["loading","loadingRows","activeOverlay","activeOverlayParams","overlayComponentParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","autoGenerateColumnDefs","processFileInput"],n=>this.onPropChange(new Set(n.changeSet?.properties)))}destroy(){this.doHideOverlay(),super.destroy(),this.eWrapper=void 0}setWrapperComp(e,t){this.isAlive()&&(t?this.eWrapper===e&&(this.eWrapper=void 0):this.eWrapper=e,this.updateOverlay(!1))}isVisible(){return!!this.currentDef}setDevErrorOverlay(e){this.devErrorOverlayActive!==e&&(this.devErrorOverlayActive=e,this.updateOverlay(!1))}showLoadingOverlay(){this.showInitialOverlay=!1;const e=this.gos;if(!this.eWrapper||e.get("activeOverlay")||this.devErrorOverlayActive||Ms(e)||this.isDisabled(Lo))return;const t=e.get("loading");!t&&t!==void 0||this.doShowOverlay(Lo)}showNoRowsOverlay(){this.showInitialOverlay=!1;const e=this.gos;!this.eWrapper||e.get("activeOverlay")||e.get("loading")||this.isDisabled(pr)||this.devErrorOverlayActive||(this.userForcedNoRows=!0,this.doShowOverlay(pr))}showExportOverlay(e){const t=this.gos;if(!this.eWrapper||t.get("activeOverlay")||t.get("loading")||this.isDisabled(en)||this.devErrorOverlayActive||this.userForcedNoRows&&this.currentDef===pr){e();return}const o=this.getDesiredDefWithOverride(en);if(!o){e();return}this.runWithExportOverlay(o,e)}async runWithExportOverlay(e,t){const o=this.beans;this.exportsInProgress++,this.focusedCell=o.focusSvc.getFocusedCell(),await this.doShowOverlay(e),await new Promise(i=>setTimeout(()=>i()));const r=Date.now();try{t()}finally{const i=Date.now()-r,a=Math.max(0,kM-i),n=()=>{this.exportsInProgress--,this.exportsInProgress===0&&(this.updateOverlay(!1),Pp(o,this.focusedCell),this.focusedCell=null)};a>0?setTimeout(()=>n(),a):n()}}hideOverlay(){const e=this.gos;this.showInitialOverlay=!1;const t=this.userForcedNoRows;if(this.userForcedNoRows=!1,e.get("loading")){this.warn(99);return}if(e.get("activeOverlay")){this.warn(296);return}if(this.currentDef===od){this.warn(297);return}this.doHideOverlay(),t&&this.getOverlayDef()!==pr&&this.updateOverlay(!1)}getOverlayWrapperSelector(){return xM}getOverlayWrapperCompClass(){return Yv}onPropChange(e){const t=e.has("activeOverlay");if((t||e.has("loading")||e.has("loadingRows"))&&this.updateOverlay(t))return;const o=this.currentDef,r=this.eWrapper?.activeOverlay;if(r&&o){const i=e.has("activeOverlayParams");if(o===on)i&&r.refresh?.(this.makeCompParams(!0));else{const a=o.paramsKey;(e.has("overlayComponentParams")||a&&e.has(a))&&r.refresh?.(this.makeCompParams(!1,a,o.overlayType))}}}updateOverlay(e){const t=this.eWrapper;if(!t)return this.currentDef=null,!1;const o=this.getDesiredDefWithOverride(),r=this.currentDef,i=o===on&&e;return o!==r?o?(this.doShowOverlay(o),!0):(this.disableInitialOverlay(),this.doHideOverlay()):i&&o?(t.hideOverlay(),this.doShowOverlay(o),!0):(o||this.disableInitialOverlay(),!1)}getDesiredDefWithOverride(e){const{gos:t}=this;let o=FM(t.get("activeOverlay"));return o||(o=e??this.getOverlayDef(),o&&this.isDisabled(o)&&(o=null)),o}getOverlayDef(){const{gos:e,beans:t}=this,{rowModel:o}=t;if(this.devErrorOverlayActive&&this.eWrapper)return RM;const r=e.get("loading");if(r!==void 0){if(this.disableInitialOverlay(),r)return Ms(e)?null:Lo}else if(this.showInitialOverlay){const n=!e.get("columnDefs")&&!e.get("autoGenerateColumnDefs"),s=!e.get("rowData");if(n||s){if(s&&e.get("processFileInput")&&!this.isDisabled(tn))return tn;if(!this.isDisabled(Lo))return Lo}this.disableInitialOverlay()}else this.disableInitialOverlay();const a=o.getOverlayType();return MM(a)}disableInitialOverlay(){this.showInitialOverlay=!1,this.newColumnsLoadedCleanup?.(),this.newColumnsLoadedCleanup=null}doShowOverlay(e){const{gos:t,beans:o}=this,{userCompFactory:r}=o;this.currentDef=e;const i=e!==on,a=!!e.exclusive;this.exclusive=a;let n;(e.paramsKey&&t.get(e.paramsKey)||e.compKey&&t.get(e.compKey))&&(n=e.paramsKey);let s;i&&!e.noUserOverride&&(t.get("overlayComponent")||t.get("overlayComponentSelector"))&&(s=r.getCompDetailsFromGridOptions({name:"overlayComponent",optionalMethods:["refresh"]},void 0,this.makeCompParams(!1,e.paramsKey,e.overlayType))),s??(s=r.getCompDetailsFromGridOptions(e.comp,i?e.id:void 0,this.makeCompParams(!i,n,e.overlayType),!1));const l=s?.newAgStackInstance()??null,c=this.eWrapper?this.eWrapper.showOverlay(l,e.wrapperCls,a):oe.resolve();return this.eWrapper?.refreshWrapperPadding(),this.setExclusive(a),c}makeCompParams(e,t,o){const{gos:r}=this,i=e?r.get("activeOverlayParams"):{...r.get("overlayComponentParams"),...t&&r.get(t)||null,overlayType:o};return W(r,i??{})}doHideOverlay(){let e=!1;this.currentDef&&(this.currentDef=null,e=!0),this.exclusive=!1;const t=this.eWrapper;return t&&(t.hideOverlay(),t.refreshWrapperPadding(),this.setExclusive(!1)),e}setExclusive(e){this.oldExclusive!==e&&(this.oldExclusive=e,this.eventSvc.dispatchEvent({type:"overlayExclusiveChanged"}))}isDisabled(e){const{gos:t}=this;return e.overlayType&&t.get("suppressOverlays")?.includes(e.overlayType)||e.isSuppressed?.(t)===!0}},Qv={moduleName:"Overlay",version:R,userComponents:{agLoadingOverlay:hM,agNoRowsOverlay:vM,agNoMatchingRowsOverlay:fM,agExportingOverlay:gM},apiFunctions:{showLoadingOverlay:wM,showNoRowsOverlay:bM,hideOverlay:CM},icons:{overlayLoading:"loading",overlayExporting:"loading"},beans:[DM]},PM=class extends x{constructor(){super(...arguments),this.beanName="rowContainerHeight",this.stickyBottomRowsHeight=0,this.scrollY=0,this.uiBodyHeight=0}postConstruct(){this.addManagedEventListeners({bodyHeightChanged:this.updateOffset.bind(this)}),this.maxDivHeight=d1(),oo(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;oo(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=typeof e=="number"?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventSvc.dispatchEvent({type:"heightScaleChanged"}))}setModelHeight(e){this.modelHeight=e,this.stretching=e!=null&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()}getRealPixelPosition(e){return e-this.divStretchOffset}getAdjustedUiContainerHeight(){return this.uiContainerHeight==null?null:this.uiContainerHeight-this.stickyBottomRowsHeight}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(),o=e/t;return this.maxScrollY*o}},TM=400,rn=0,an=1,nn=2,AM=class extends x{constructor(){super(...arguments),this.beanName="rowRenderer",this.listenedCols=[],this.rowCtrlsByRowIndex={},this.zombieRowCtrls={},this.allRowCtrls=[],this.topRowCtrls=[],this.bottomRowCtrls=[],this.drawState=rn,this.dataFirstRenderedFired=!1,this.setupRangeSelectionListeners=()=>{const e=()=>{const i=this.getAllRowCtrls();for(let a=0,n=i.length;a<n;++a){const s=i[a].getAllCellCtrls();for(let l=0,c=s.length;l<c;++l)s[l].onCellSelectionChanged()}},t=()=>{this.eventSvc.addListener("cellSelectionChanged",e)},o=()=>{this.eventSvc.removeListener("cellSelectionChanged",e)};this.addDestroyFunc(()=>o()),this.addManagedPropertyListeners(["enableRangeSelection","cellSelection"],()=>{ft(this.gos)?t():o()}),ft(this.gos)&&t()},this.onColDefChanged=e=>{const t=e.column,o=this.getAllRowCtrls();for(let r=0,i=o.length;r<i;++r)o[r].getOwnCellCtrl(t)?.onColDefChanged()}}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,this.visibleCols=e.visibleCols}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","stickyRowsMaxViewportRatio"],()=>this.redraw()),this.addManagedPropertyListener("suppressCellFocus",r=>this.onSuppressCellFocusChanged(r.currentValue)),this.addManagedPropertyListeners(["groupSuppressBlankHeader","getBusinessKeyForNode","fullWidthCellRenderer","fullWidthCellRendererParams","suppressStickyTotalRow","groupRowRenderer","groupRowRendererParams","loadingCellRenderer","loadingCellRendererParams","detailCellRenderer","detailCellRendererParams","enableRangeSelection","enableCellTextSelection"],()=>this.redrawRows()),this.addManagedPropertyListener("cellSelection",({currentValue:r,previousValue:i})=>{(!i&&r||i&&!r)&&this.redrawRows()});const{stickyRowSvc:e,gos:t,showRowGroupCols:o}=this.beans;if(o){const r=()=>{const i=o.columns;i.length&&this.refreshCells({columns:i,force:!0})};this.addManagedPropertyListener("showOpenedGroup",r),this.addManagedEventListeners({columnRowGroupChanged:r})}if(e)this.stickyRowFeature=e.createStickyRowFeature(this,this.createRowCon.bind(this),r=>this.destroyRowCtrls(r,!1));else{const r=this.gridBodyCtrl;r.setStickyTopHeight(0),r.setStickyBottomHeight(0)}this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=ke(t,"print"),this.embedFullWidthRows=this.printLayout||t.get("embedFullWidthRows"),this.redrawAfterModelUpdate()}initialiseCache(){if(this.gos.get("keepDetailRows")){const t=this.getKeepDetailRowsCount()??3;this.cachedRowCtrls=new IM(t)}}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),o=this.cachedRowCtrls?.getEntries()??[];t.length>0||o.length>0?this.allRowCtrls=[...e,...t,...o]:this.allRowCtrls=e}updateCellFocus(e){const t=this.getAllRowCtrls();for(let o=0,r=t.length;o<r;++o){const i=t[o].getAllCellCtrls();for(let a=0,n=i.length;a<n;++a)i[a].onCellFocused(e)}for(const o of this.getFullWidthRowCtrls())o.onRowFocused(e)}onCellFocusChanged(e){const t=e?.rowIndex;if(t!=null){const o=e.rowPinned??null,r=this.getRowByPosition({rowIndex:t,rowPinned:o}),i=this.beans.colModel.getCol(e.column);!r&&!o?this.redraw():r&&i&&!r.isFullWidth()&&!this.beans.spannedRowRenderer?.getCellByPosition({rowIndex:t,column:i,rowPinned:o})&&!r.getCellCtrl(i)&&r.renderFocusedCell()}this.updateCellFocus(e)}onSuppressCellFocusChanged(e){const t=this.getAllRowCtrls();for(let o=0,r=t.length;o<r;++o){const i=t[o].getAllCellCtrls();for(let a=0,n=i.length;a<n;++a)i[a].onSuppressCellFocusChanged(e)}for(const o of this.getFullWidthRowCtrls())o.onSuppressCellFocusChanged(e)}registerCellEventListeners(){this.addManagedEventListeners({cellFocused:e=>this.onCellFocusChanged(e),cellFocusCleared:()=>this.updateCellFocus(),flashCells:e=>{const{cellFlashSvc:t}=this.beans;if(t){const o=this.getAllRowCtrls();for(let r=0,i=o.length;r<i;++r){const a=o[r].getAllCellCtrls();for(let n=0,s=a.length;n<s;++n)t.onFlashCells(a[n],e)}}},columnHoverChanged:()=>{const e=this.getAllRowCtrls();for(let t=0,o=e.length;t<o;++t){const r=e[t].getAllCellCtrls();for(let i=0,a=r.length;i<a;++i)r[i].onColumnHover()}},displayedColumnsChanged:()=>{const e=this.getAllRowCtrls();for(let t=0,o=e.length;t<o;++t){const r=e[t].getAllCellCtrls();for(let i=0,a=r.length;i<a;++i)r[i].onDisplayedColumnsChanged()}}}),this.setupRangeSelectionListeners(),this.refreshListenersToColumnsForCellComps(),this.addManagedEventListeners({gridColumnsChanged:this.refreshListenersToColumnsForCellComps.bind(this)}),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))}removeGridColumnListeners(){const e=this.listenedCols;for(let t=0,o=e.length;t<o;++t)e[t].__removeEventListener("colDefChanged",this.onColDefChanged);this.listenedCols=[]}refreshListenersToColumnsForCellComps(){this.removeGridColumnListeners();const e=this.colModel.colsList.slice();for(let t=0,o=e.length;t<o;++t)e[t].__addEventListener("colDefChanged",this.onColDefChanged);this.listenedCols=e}refreshCellPositions(){const e=this.beans,t=this.getAllRowCtrls();for(let o=0,r=t.length;o<r;++o){const i=t[o].getAllCellCtrls();for(let a=0,n=i.length;a<n;++a)_l(e,i[a])}}refreshPinnedEdgeCells(e,t,o,r){const i=this.getAllRowCtrls();for(let a=0,n=i.length;a<n;++a){const s=i[a];sn(s,e),sn(s,t),sn(s,o),sn(s,r)}}onDomLayoutChanged(){const e=ke(this.gos,"print"),t=e||this.gos.get("embedFullWidthRows"),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})}datasourceChanged(){this.firstRenderedRow=0,this.lastRenderedRow=-1;const e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)}onPageLoaded(e){const t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)}getAllCellsNotSpanningForColumn(e){const t=[];for(const o of this.getAllRowCtrls()){const r=o.getOwnCellCtrl(e)?.eGui;r&&t.push(r)}return t}refreshPinnedRowComps(e=!0){this.topRowCtrls=this.refreshPinnedRows(this.topRowCtrls,"top",e),this.bottomRowCtrls=this.refreshPinnedRows(this.bottomRowCtrls,"bottom",e)}refreshPinnedRows(e,t,o){const{pinnedRowModel:r,beans:i,printLayout:a}=this,n=new Map;for(let d=0,g=e.length;d<g;++d){const u=e[d];n.set(u.rowNode,u)}const s=[],l=[];try{r?.forEachPinnedRow(t,(d,g)=>{const u=o?n.get(d):void 0;if(u)s[g]=u,n.delete(d);else{const h=new Ja(d,i,!1,!1,a);l.push(h),s[g]=h}})}catch(d){for(let g=0,u=l.length;g<u;++g){const h=l[g];h.destroyFirstPass(),h.destroySecondPass()}throw d}for(const d of n.values())d.destroyFirstPass(),d.destroySecondPass();const c=(t==="top"?r?.getPinnedTopRowCount():r?.getPinnedBottomRowCount())??0;return s.length=c,s}onPinnedRowDataChanged(){const e={recycleRows:!0};this.redrawAfterModelUpdate(e)}onPinnedRowsChanged(){this.redrawAfterModelUpdate({recycleRows:!0})}redrawRow(e,t=!1){try{if(e.sticky)this.stickyRowFeature?.refreshStickyNode(e);else if(this.cachedRowCtrls?.removeRow(e))this.updateAllRowCtrls();else{const o=r=>{const i=r[e.rowIndex];if(!i||i.rowNode!==e)return;const a=this.createRowCon(e,!1,!1);i.destroyFirstPass(),i.destroySecondPass(),r[e.rowIndex]=a};switch(e.rowPinned){case"top":this.topRowCtrls=this.topRowCtrls.slice(),o(this.topRowCtrls);break;case"bottom":this.bottomRowCtrls=this.bottomRowCtrls.slice(),o(this.bottomRowCtrls);break;default:o(this.rowCtrlsByRowIndex),this.updateAllRowCtrls()}}}catch(o){throw this.showDrawnRows(),o}t||this.dispatchDisplayedRowsChanged(!1)}redrawRows(e){const{editSvc:t}=this.beans;if(t?.isEditing()&&(t.isBatchEditing()?t.cleanupEditors():t.stopEditing(void 0,{source:"api"})),e!=null){for(const r of e??[])this.redrawRow(r,!0);this.dispatchDisplayedRowsChanged(!1);return}this.redrawAfterModelUpdate()}redrawAfterModelUpdate(e={}){const t=e.onlyBody&&this.drawState!==nn;this.getLockOnRefresh();try{const o=this.beans.focusSvc?.getFocusCellToUseAfterRefresh();this.updateContainerHeights(),this.scrollToTopIfNewData(e);const r=!e.domLayoutChanged&&!!e.recycleRows,i=e.animate&&yo(this.gos),a=r?this.getRowsToRecycle():null,{stickyRowFeature:n,gos:s}=this;try{if(r||this.removeAllRowComps(!i),this.workOutFirstAndLastRowsToRender(),n){n.checkStickyRows();const l=n.extraTopHeight+n.extraBottomHeight;l&&this.updateContainerHeights(l)}this.recycleRows(a,i)}finally{a&&this.destroyRowCtrls(Object.values(a),!!i&&!this.printLayout)}this.updateAllRowCtrls(),this.gridBodyCtrl.updateRowCount(),t||this.refreshPinnedRowComps(s.get("enableRowPinning")?r:void 0),this.dispatchDisplayedRowsChanged(),o!=null&&this.restoreFocusedCell(o),this.drawState=rn}finally{this.releaseLockOnRefresh()}this.beans.aggStage?.refreshAggregateDependentCells()}scrollToTopIfNewData(e){const t=e.newData||e.newPage,o=this.gos.get("suppressScrollOnNewData");t&&!o&&(this.gridBodyCtrl.scrollFeature.scrollToTop(),this.stickyRowFeature?.resetOffsets())}updateContainerHeights(e=0){const{rowContainerHeight:t}=this;if(this.printLayout){t.setModelHeight(null);return}const o=this.pageBounds.getCurrentPageHeight();t.setModelHeight(o+e)}getLockOnRefresh(){if(this.drawState===an)throw this.beans.log.errorToThrow(252);this.drawState=an,this.beans.frameworkOverrides.getLockOnRefresh?.()}releaseLockOnRefresh(){const e=this.drawState===an;e&&(this.drawState=nn),this.beans.frameworkOverrides.releaseLockOnRefresh?.(),e&&this.showDrawnRows()}showDrawnRows(){this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged()}isRefreshInProgress(){return this.drawState===an}restoreFocusedCell(e){if(!e)return;const t=this.beans.focusSvc,o=this.findPositionToFocus(e);if(!o){t.focusHeaderPosition({headerPosition:{headerRowIndex:Je(this.beans)-1,column:e.column}});return}if(e.rowIndex!==o.rowIndex||e.rowPinned!=o.rowPinned){t.setFocusedCellOrSpan({...o,preventScrollOnBrowserFocus:!0,forceBrowserFocus:!0});return}t.doesRowOrCellHaveBrowserFocus()||this.updateCellFocus(W(this.gos,{...o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,type:"cellFocused"}))}findPositionToFocus(e){const{pagination:t,pageBounds:o}=this.beans;let r=e;for(r.rowPinned==null&&t&&o&&!t.isRowInPage(r.rowIndex)&&(r={rowPinned:null,rowIndex:o.getFirstRow()});r;){if(r.rowPinned==null&&o)if(r.rowIndex<o.getFirstRow()){if(r=ii(this.beans,{rowPinned:null,rowIndex:0}),!r)return null}else r.rowIndex>o.getLastRow()&&(r={rowPinned:null,rowIndex:o.getLastRow()});const i=this.getRowByPosition(r);if(i?.isAlive())return{...i.getRowPosition(),column:e.column};r=ii(this.beans,r)}return null}getAllRowCtrls(){const e=[];return Ei(e,this.topRowCtrls),Ei(e,this.bottomRowCtrls),Ei(e,this.getStickyTopRowCtrls()),Ei(e,this.getStickyBottomRowCtrls()),this.beans.spannedRowRenderer?.pushAllCtrls(e),Ei(e,Object.values(this.rowCtrlsByRowIndex)),e}addRenderedRowListener(e,t,o){const r=this.getRowByPosition({rowIndex:t,rowPinned:null});r&&r.addEventListener(e,o)}refreshCells({rowNodes:e,columns:t,force:o,suppressFlash:r}={}){const i={force:o,newData:!1,suppressFlash:r};for(const a of this.getCellCtrls(e,t))a.refreshOrDestroyCell(i);if(e?.length)for(const a of this.getRowCtrls(e))a.isFullWidth()&&a.refreshRow(i)}refreshRows(e={}){for(const t of this.getRowCtrls(e.rowNodes))t.refreshRow(e)}getRowCtrlByNode(e){const t=this.getIndexedRowCtrlByNode(e);return t||e.rowPinned?t:this.getStickyRowCtrlByNode(e)}getIndexedRowCtrlByNode(e){const t=e.rowIndex;if(t==null)return;const o=e.rowPinned;if(o==="top"){const i=this.topRowCtrls[t];return i?.rowNode===e?i:void 0}if(o==="bottom"){const i=this.bottomRowCtrls[t];return i?.rowNode===e?i:void 0}const r=this.rowCtrlsByRowIndex[t];return r?.rowNode===e?r:void 0}getStickyRowCtrlByNode(e){const t=this.stickyRowFeature;if(t){for(const o of t.stickyTopRowCtrls)if(o.rowNode===e)return o;for(const o of t.stickyBottomRowCtrls)if(o.rowNode===e)return o}}refreshRowByNode(e){if(!e)return;const t=this.getIndexedRowCtrlByNode(e);t?.refreshRow();const o=e.rowPinned?void 0:this.getStickyRowCtrlByNode(e);o&&o!==t&&o.refreshRow(),this.beans.spannedRowRenderer?.refreshRowsOf(e)}getRowCtrls(e){const t=rd(e),o=this.getAllRowCtrls();return!e||!t?o:o.filter(r=>{const i=r.rowNode;return id(i,t)})}getCellCtrls(e,t){let o;if(L(t)){o=new Set;for(let i=0,a=t.length;i<a;++i){const n=this.colModel.getCol(t[i]);n&&o.add(n)}}const r=[];for(const i of this.getRowCtrls(e))for(const a of i.getAllCellCtrls())o&&!o.has(a.column)||r.push(a);return r}destroy(){this.removeAllRowComps(!0),super.destroy()}removeAllRowComps(e){const t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t,e),this.stickyRowFeature?.destroyStickyCtrls()}getRowsToRecycle(){const e=[];for(const o of Object.keys(this.rowCtrlsByRowIndex))this.rowCtrlsByRowIndex[o].rowNode.id==null&&e.push(o);this.removeRowCtrls(e);const t=Object.create(null);for(const o of Object.values(this.rowCtrlsByRowIndex)){const r=o.rowNode;t[r.id]=o}return this.rowCtrlsByRowIndex={},t}removeRowCtrls(e,t=!1){for(const o of e){const r=this.rowCtrlsByRowIndex[o];r&&(r.destroyFirstPass(t),r.destroySecondPass()),delete this.rowCtrlsByRowIndex[o]}}onBodyScroll(e){e.direction==="vertical"&&this.redraw({afterScroll:!0})}redraw(e={}){if(this.drawState===nn){this.redrawAfterModelUpdate({recycleRows:!0});return}const{focusSvc:t,animationFrameSvc:o}=this.beans,{afterScroll:r,force:i}=e;let a;const n=this.stickyRowFeature;n&&(a=t?.getFocusCellToUseAfterRefresh()??void 0);const s=this.firstRenderedRow,l=this.lastRenderedRow;try{this.workOutFirstAndLastRowsToRender();let c=!1;if(n){c=n.checkStickyRows();const g=n.extraTopHeight+n.extraBottomHeight;g&&this.updateContainerHeights(g)}const d=this.firstRenderedRow!==s||this.lastRenderedRow!==l;if(r&&!c&&!d&&!i)return;this.getLockOnRefresh();try{this.recycleRows(null,!1,r),this.updateAllRowCtrls(),this.drawState=rn}finally{this.releaseLockOnRefresh()}this.dispatchDisplayedRowsChanged(r&&!c)}catch(c){throw this.drawState===rn&&(this.drawState=nn,this.showDrawnRows()),c}if(a!=null){const c=t?.getFocusCellToUseAfterRefresh();a!=null&&c==null&&(o?.flushAllFrames(),this.restoreFocusedCell(a))}}removeRowCompsNotToDraw(e,t){const o={};for(const a of e)o[a]=!0;const i=Object.keys(this.rowCtrlsByRowIndex).filter(a=>!o[a]);this.removeRowCtrls(i,t)}calculateIndexesToDraw(e){const t=[];for(let n=this.firstRenderedRow;n<=this.lastRenderedRow;n++)t.push(n);const o=this.beans.pagination,r=this.beans.focusSvc?.getFocusedCell()?.rowIndex;r!=null&&(r<this.firstRenderedRow||r>this.lastRenderedRow)&&(!o||o.isRowInPage(r))&&r<this.rowModel.getRowCount()&&t.push(r);const i=n=>{const s=n.rowNode.rowIndex;s==null||s===r||(s<this.firstRenderedRow||s>this.lastRenderedRow)&&this.doNotUnVirtualiseRow(n)&&t.push(s)};for(const n of Object.values(this.rowCtrlsByRowIndex))i(n);if(e)for(const n of Object.values(e))i(n);t.sort((n,s)=>n-s);const a=[];for(let n=0;n<t.length;n++){const s=t[n],l=this.rowModel.getRow(s);l&&!l.sticky&&a.push(s)}return a}recycleRows(e,t=!1,o=!1){const r=this.calculateIndexesToDraw(e);(this.printLayout||o)&&(t=!1),this.removeRowCompsNotToDraw(r,!t);for(const i of r)this.createOrUpdateRowCtrl(i,e,t,o)}dispatchDisplayedRowsChanged(e=!1){this.eventSvc.dispatchEvent({type:"displayedRowsChanged",afterScroll:e})}onDisplayedColumnsChanged(){const e=this.visibleCols,t=e.leftCols.length>0,o=e.rightCols.length>0;(this.pinningLeft!==t||o!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=o,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())}redrawFullWidthEmbeddedRows(){const e=[];for(const t of this.getFullWidthRowCtrls()){const o=t.rowNode.rowIndex;e.push(o.toString())}this.refreshPinnedRowComps(),this.removeRowCtrls(e),this.redraw({afterScroll:!0,force:!0})}getFullWidthRowCtrls(e){const t=rd(e);return this.getAllRowCtrls().filter(o=>{if(!o.isFullWidth())return!1;const r=o.rowNode;return!(t!=null&&!id(r,t))})}createOrUpdateRowCtrl(e,t,o,r){let i,a=this.rowCtrlsByRowIndex[e];if(a||(i=this.rowModel.getRow(e),L(i)&&L(t)&&t[i.id]&&i.alreadyRendered&&(a=t[i.id],t[i.id]=null)),!a)if(i??(i=this.rowModel.getRow(e)),L(i))a=this.createRowCon(i,o,r);else return;i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=a}destroyRowCtrls(e,t){const o=[];for(let r=0,i=e.length;r<i;++r){const a=e[r];if(a){if(this.cachedRowCtrls&&a.isCacheable()){this.cachedRowCtrls.addRow(a);continue}if(a.destroyFirstPass(!t),t){const n=a.instanceId;this.zombieRowCtrls[n]=a,o.push(()=>{a.destroySecondPass(),delete this.zombieRowCtrls[n]})}else a.destroySecondPass()}}t&&(o.push(()=>{this.isAlive()&&(this.updateAllRowCtrls(),this.dispatchDisplayedRowsChanged())}),window.setTimeout(()=>{for(const r of o)r()},TM))}getRowBuffer(){return this.gos.get("rowBuffer")}getRowBufferInPixels(){const e=this.getRowBuffer(),t=pt(this.beans);return e*t}workOutFirstAndLastRowsToRender(){const{rowContainerHeight:e,pageBounds:t,rowModel:o}=this;e.updateOffset();let r,i;if(!o.isRowsToRender())r=0,i=-1;else if(this.printLayout)this.beans.environment.refreshRowHeightVariable(),this.ensureAllRowsInRangeHaveHeightsCalculated(0,1/0),r=t.getFirstRow(),i=t.getLastRow();else{const d=this.getRowBufferInPixels(),g=this.ctrlsSvc.getScrollFeature(),u=this.gos.get("suppressRowVirtualisation");let h,p,f;do{const b=t.getPixelOffset(),{pageFirstPixel:S,pageLastPixel:E}=t.getCurrentPagePixelRange(),F=e.divStretchOffset,P=g.getVScrollPosition(),z=P.top,V=P.bottom;u?(p=S+F,f=E+F):(p=Math.max(z+b-d,S)+F,f=Math.min(V+b+d,E)+F),this.firstVisibleVPixel=Math.max(z+b,S)+F,this.lastVisibleVPixel=Math.min(V+b,E)+F,h=this.ensureAllRowsInRangeHaveHeightsCalculated(p,f)}while(h);let m=o.getRowIndexAtPixel(p),w=o.getRowIndexAtPixel(f);const v=t.getFirstRow(),C=t.getLastRow();m<v&&(m=v),w>C&&(w=C),r=m,i=w}const a=ke(this.gos,"normal"),n=this.gos.get("suppressMaxRenderedRowRestriction"),s=Math.max(this.getRowBuffer(),500);a&&!n&&i-r>s&&(i=r+s);const l=r!==this.firstRenderedRow,c=i!==this.lastRenderedRow;(l||c)&&(this.firstRenderedRow=r,this.lastRenderedRow=i,this.eventSvc.dispatchEvent({type:"viewportChanged",firstRow:r,lastRow:i}))}dispatchFirstDataRenderedEvent(){this.dataFirstRenderedFired||(this.dataFirstRenderedFired=!0,Gt(this.beans,()=>{this.beans.eventSvc.dispatchEvent({type:"firstDataRendered",firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow})}))}ensureAllRowsInRangeHaveHeightsCalculated(e,t){const o=this.pinnedRowModel?.ensureRowHeightsValid(),r=this.stickyRowFeature?.ensureRowHeightsValid(),{pageBounds:i,rowModel:a}=this,n=a.ensureRowHeightsValid(e,t,i.getFirstRow(),i.getLastRow());return(n||r)&&this.eventSvc.dispatchEvent({type:"recalculateRowBounds"}),r||n||o?(this.updateContainerHeights(),!0):!1}doNotUnVirtualiseRow(e){const r=e.rowNode,i=this.focusSvc.isRowFocused(r.rowIndex,r.rowPinned),a=this.editSvc?.isEditing(e),n=r.detail;return i||a||n?!!this.isRowPresent(r):!1}isRowPresent(e){return this.rowModel.isRowPresent(e)?this.beans.pagination?.isRowInPage(e.rowIndex)??!0:!1}createRowCon(e,t,o){const r=this.cachedRowCtrls?.getRow(e)??null;if(r)return r;const i=o&&!this.printLayout&&!!this.beans.animationFrameSvc?.active;return new Ja(e,this.beans,t,i,this.printLayout)}getRenderedNodes(){const e=Object.values(this.rowCtrlsByRowIndex).map(r=>r.rowNode),t=this.getStickyTopRowCtrls().map(r=>r.rowNode),o=this.getStickyBottomRowCtrls().map(r=>r.rowNode);return[...t,...e,...o]}getSpanningCol(e,t){if(e.allColsIndex<0)return e;const o=this.getRowCtrlByNode(t);if(o?o.isFullWidth():Xa(this.beans,t)!=="Normal")return e;const i=this.visibleCols,a=e.pinnedLane;let n;a===1?n=i.centerCols:a===0?n=i.leftCols:n=i.rightCols;const s=e.allColsIndex-n[0].allColsIndex,l=o?.getColSpans();for(let c=0;c<s;){const d=c+Ul(t,n,c,l);if(d>s)return n[c];c=d}return e}getRowByPosition(e){let t;const{rowIndex:o}=e;switch(e.rowPinned){case"top":t=this.topRowCtrls[o];break;case"bottom":t=this.bottomRowCtrls[o];break;default:t=this.rowCtrlsByRowIndex[o]??this.getStickyTopRowCtrls().find(r=>r.rowNode.rowIndex===o)??this.getStickyBottomRowCtrls().find(r=>r.rowNode.rowIndex===o)??null;break}return t}isRangeInRenderedViewport(e,t){if(e==null||t==null)return!1;const r=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!r}},IM=class{constructor(e){this.entriesMap=new Map,this.entriesList=[],this.maxCount=e}addRow(e){if(this.entriesMap.set(e.rowNode,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){const t=this.entriesMap.get(e);return t?(this.removeFromCache(t),t.setCached(!1),t):null}removeRow(e){const t=this.entriesMap.get(e);return t?(t.destroyFirstPass(!0),t.destroySecondPass(),this.removeFromCache(t),!0):!1}removeFromCache(e){this.entriesMap.delete(e.rowNode),No(this.entriesList,e)}getEntries(){return this.entriesList}};function rd(e){if(!e)return;const t={top:new Set,bottom:new Set,normal:new Set};for(const o of e){const r=o.id;switch(o.rowPinned){case"top":t.top.add(r);break;case"bottom":t.bottom.add(r);break;default:t.normal.add(r);break}}return t}function id(e,t){const o=e.id;switch(e.rowPinned){case"top":return t.top.has(o);case"bottom":return t.bottom.has(o);default:return t.normal.has(o)}}var sn=(e,t)=>{t!==null&&e.getOwnCellCtrl(t)?.refreshPinnedEdges()},Ei=(e,t)=>{for(let o=0,r=t.length;o<r;++o)e.push(t[o])},zM=class extends x{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:o}=this.beans;t.setColumnDefs(e??[],"gridInitializing"),o.start()}gridReady(){const{eventSvc:e,gos:t}=this;e.dispatchEvent({type:"gridReady"}),oo(t,`initialised successfully, enterprise = ${t.isModuleRegistered("EnterpriseCore")}`)}setColumnDefs(e){const t=this.gos.get("columnDefs");if(t){if(this.waitingForColumns){this.waitingForColumns=!1,this.setColumnsAndData(t);return}this.beans.colModel.setColumnDefs(t,Fo(e.source))}}},LM=class extends x{constructor(){super(...arguments),this.beanName="log"}wireBeans(e){this.gridId=e.context.getId()}warn(...e){pc(this.gridId,e[0],e[1])}deprecated(...e){Ox(this.gridId,e[0],e[1])}error(...e){Zf(this.gridId,e[0],e[1])}errorToThrow(...e){return Ha(this.gridId,e[0],e[1])}};function OM(e){e.valueCache?.expire()}function VM(e,t){const{colKey:o,rowNode:r,useFormatter:i,from:a="edit",transformValues:n}=t,s=e.colModel.getCol(o);if(!s)return null;const l=e.valueSvc.getValueForDisplay({column:Jt(s,r),node:r,includeValueFormatted:i,from:a,transformValues:n});return i?l.valueFormatted??vo(l.value):l.value}var BM="paste",HM=class extends x{constructor(){super(...arguments),this.beanName="changeDetectionSvc",this.deferredDepth=0,this.batchedPath=null,this.batchedNodes=null}destroy(){super.destroy(),this.batchedPath=null,this.batchedNodes=null}postConstruct(){this.csrm=st(this.beans),this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this)})}beginDeferred(){this.deferredDepth++}endDeferred(){if(this.deferredDepth===0||--this.deferredDepth>0)return;const e=this.batchedPath,t=this.batchedNodes;this.batchedPath=null,this.batchedNodes=null,e&&this.csrm?.doAggregate(e);const{rowRenderer:o}=this.beans;if(t)for(const r of t)Zv(o,r);if(e){const r=e.getSortedRows();for(let i=0,a=r.length;i<a;++i)Zv(o,r[i])}this.beans.aggStage?.refreshAggregateDependentCells(t,e),(this.batchedPath||this.batchedNodes)&&(this.deferredDepth=1,this.endDeferred())}onCellValueChanged(e){const{gos:t,rowModel:o,changedPathFactory:r}=this.beans;if(e.source===BM||t.get("suppressChangeDetection")||!o.rootNode)return;const i=e.node.primaryRow;if(this.csrm){let a=this.batchedPath;a||(a=r?.newPath(t.get("aggregateOnlyChangedColumns"))??null,this.batchedPath=a);let n=i;i.group||((this.batchedNodes??(this.batchedNodes=new Set)).add(i),n=i.parent),a?.addCell(n,e.column.colId)}else(this.batchedNodes??(this.batchedNodes=new Set)).add(i);this.deferredDepth===0&&(this.deferredDepth=1,this.endDeferred())}},Zv=(e,t)=>{const{sibling:o,pinnedSibling:r}=t;e.refreshRowByNode(t),e.refreshRowByNode(o),e.refreshRowByNode(r),e.refreshRowByNode(o?.pinnedSibling),e.refreshRowByNode(r?.sibling)},NM=class extends x{constructor(){super(...arguments),this.beanName="expressionSvc",this.cache={}}evaluate(e,t){if(typeof e=="string")return this.evaluateExpression(e,t);this.error(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(o){return this.error(16,{expression:e,params:t,e:o}),null}}createExpressionFunction(e){const t=this.cache;if(t[e])return t[e];const o=this.createFunctionBody(e),r=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, getValue, column, columnGroup",o);return t[e]=r,r}createFunctionBody(e){return e.includes("return")?e:"return "+e+";"}},GM=class extends x{constructor(){super(...arguments),this.beanName="valueCache",this.cacheVersion=0,this.neverExpires=!1}postConstruct(){this.neverExpires=this.gos.get("valueCacheNeverExpires")}onDataChanged(){this.neverExpires||this.expire()}expire(){this.cacheVersion++}setValue(e,t,o){const r=this.cacheVersion;e.__cacheVersion!==r&&(e.__cacheVersion=r,e.__cacheData={}),e.__cacheData[t]=o}getValue(e,t){if(e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]}},Jv={moduleName:"ValueCache",version:R,beans:[GM],apiFunctions:{expireValueCache:OM}},WM={moduleName:"Expression",version:R,beans:[NM]},qM={moduleName:"ChangeDetection",version:R,beans:[HM]},Xv={moduleName:"CellApi",version:R,apiFunctions:{getCellValue:VM}},UM=class extends x{constructor(){super(...arguments),this.beanName="valueSvc",this.isTreeData=!1,this.isSsrm=!1,this.cellExpressions=!1,this.groupSuppressBlankHeader=!1,this.editSvc=void 0,this.valueCache=void 0,this.expressionSvc=void 0,this.dataTypeSvc=void 0,this.formula=void 0,this.showValuesAsSvc=void 0,this.formulaDataSvc=void 0,this.changeDetectionSvc=void 0,this.showRowGroupColValueSvc=void 0,this.rowGroupingEditValueSvc=void 0,this.frameworkOverrides=void 0,this.gridApi=void 0,this.gridOptions=void 0}wireBeans(e){this.expressionSvc=e.expressionSvc,this.colModel=e.colModel,this.valueCache=e.valueCache,this.dataTypeSvc=e.dataTypeSvc,this.editSvc=e.editSvc,this.formulaDataSvc=e.formulaDataSvc,this.formula=e.formula,this.showValuesAsSvc=e.showValuesAsSvc,this.changeDetectionSvc=e.changeDetectionSvc,this.showRowGroupColValueSvc=e.showRowGroupColValueSvc,this.rowGroupingEditValueSvc=e.rowGroupingEditValueSvc,this.frameworkOverrides=e.frameworkOverrides,this.gridApi=e.gridApi,this.gridOptions=e.gridOptions,this.init()}init(){const e=this.gos;this.isSsrm=Kt(e),this.cellExpressions=e.get("enableCellExpressions"),this.isTreeData=e.get("treeData"),this.groupSuppressBlankHeader=e.get("groupSuppressBlankHeader"),e.get("valueCache")||(this.valueCache=void 0)}postConstruct(){this.init();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),this.addManagedPropertyListener("groupSuppressBlankHeader",t=>this.groupSuppressBlankHeader=t.currentValue)}getValueForDisplay(e){const t=e.column,o=e.node,r=o.group,i=this.showRowGroupColValueSvc;if(i&&(!t&&r||t?.showRowGroup)&&(!this.isTreeData||o.footer)){const d=i.getGroupValue(o,t,r?this.displayIgnoresAggData(o):!1);return d==null?{value:null,valueFormatted:null}:{value:d.value,valueFormatted:e.includeValueFormatted?i.formatAndPrefixGroupColValue(d,t,e.exporting):null}}if(!t)return{value:o.key,valueFormatted:null};const n=r?this.displayIgnoresAggData(o):!1;let s=this.getValue(t,o,e.from,n),l=s;if(t.allowFormula){const d=this.formula;d?.isFormula(s)&&(e.useRawFormula?(s=d.normaliseFormula(s,!0),l=d.resolveValue(t,o)):(s=d.resolveValue(t,o),l=s))}const c=e.includeValueFormatted&&!(e.exporting&&t.colDef.useValueFormatterForExport===!1);if(e.transformValues){const d=this.showValuesAsSvc;if(d&&!n&&t.showValuesAs!=null){const g=d.isApplying(t),u=g?d.transform(t,o,l):l;return{value:u,valueFormatted:c?d.formatValue(t,o,u,l,!g):null}}}return{value:s,valueFormatted:c?this.formatValue(t,o,l):null}}getTransformedValue(e,t){const o=t.group?this.displayIgnoresAggData(t):!1,r=this.getValue(e,t,"edit",o);return this.resolveTransformed(e,t,r,o)}resolveTransformed(e,t,o,r){if(e.allowFormula){const a=this.formula;a?.isFormula(o)&&(o=a.resolveValue(e,t))}const i=this.transformingSvc(e,r);return i?i.transform(e,t,o):o}getDisplayValue(e,t,o,r){const i=t.group,a=this.showRowGroupColValueSvc;if(a&&(!e&&i||e?.showRowGroup)&&(!this.isTreeData||t.footer)){const c=a.getGroupValue(t,e,i?this.displayIgnoresAggData(t):!1);return c==null?null:c.value}if(!e)return t.key;const s=i?this.displayIgnoresAggData(t):!1,l=this.getValue(e,t,o,s);if(r)return this.resolveTransformed(e,t,l,s);if(e.allowFormula){const c=this.formula;if(c?.isFormula(l))return c.resolveValue(e,t)}return l}getValueFromData(e,t,o=!1){let i=e.isCalculatedCol&&!(e.aggregationActive&&t.group)?this.formula?.resolveValue(e,t):this.resolveCoreValue(e,t,o);if(this.cellExpressions&&iS(i)){const a=i.substring(1);i=this.executeValueGetter(a,t.data,e,t)}return i}getValue(e,t,o,r=!1){if(t){if(o!=="data"){const i=this.editSvc?.getPendingEditValue(t,e,o);if(i!==void 0)return i}return this.getValueFromData(e,t,r)}}displayIgnoresAggData(e){return e.footer||e.level===-1||!e.sibling||this.groupSuppressBlankHeader||e.leafGroup&&this.colModel.pivotMode?!1:!!e.expanded}transformingSvc(e,t){const o=this.showValuesAsSvc;return o&&!t&&e.showValuesAs&&o.isApplying(e)?o:void 0}resolveCoreValue(e,t,o){const r=t.group;if(!r&&e.allowFormula){const d=this.formula?.getDataSourceFormula(t,e);if(d!==void 0)return d}const i=t.data,a=this.isTreeData;if(r||a){const d=r&&!o?t.aggData:void 0,g=e.colId,u=d?.[g];if(a){if(u!==void 0)return u;const p=e.valueGetter;let f;if(p)f=this.executeValueGetter(p,i,e,t);else if(i){const m=e.field;if(m&&!e.fieldHasProtoKey){const w=e.fieldPath;f=w?Kr(i,w):i[m]}}if(f!==void 0)return f}const h=t.groupData;if(h&&g in h)return h[g];if(u!==void 0)return u}const n=e.valueGetter,s=o&&this.isSsrm&&!!e.aggFunc;if(r){const d=e.showRowGroup;if(n&&!s)return typeof d=="string"?$v(this.colModel,d,t.level):this.executeValueGetter(n,i,e,t);if(this.isSsrm&&i){const g=jM(t,i,d);if(g!==void 0)return g}if(typeof d=="string")return $v(this.colModel,d,t.level)}if(n)return s?void 0:this.executeValueGetter(n,i,e,t);const l=e.field;if(!l||!i||s||e.fieldHasProtoKey)return;const c=e.fieldPath;return c?Kr(i,c):i[l]}parseValue(e,t,o,r){const i=e.colDef;if(e.allowFormula&&this.formula?.isFormula(o))return o;const a=i.valueParser;if(a!=null&&a!==""){const n={api:this.gridApi,context:this.gridOptions.context,node:t,data:t?.data,oldValue:r,newValue:o,colDef:i,column:e};return typeof a=="function"?a(n):this.expressionSvc?.evaluate(a,n)}return o}getDeleteValue(e,t){const o=e.colDef.valueParser;return o!=null&&o!==""?this.parseValue(e,t,"",this.getDisplayValue(e,t,"edit",!1))??null:null}formatValue(e,t,o,r,i=!0){if(this.formula?.isFormulaErrorValue(e,t,o))return o;let a=null;const n=r??(i?e.valueFormatter:void 0);if(n){const s={api:this.gridApi,context:this.gridOptions.context,value:o,node:t,data:t?t.data:null,colDef:e.colDef,column:e};if(typeof n=="function")a=n(s);else{const l=this.expressionSvc;a=l?l.evaluate(n,s):null}}else{const s=e.refData;if(s)return s[o]||""}return a==null&&Array.isArray(o)&&(a=o.join(", ")),a}formatTransformedValue(e,t,o){if(!t)return;const r=this.showValuesAsSvc,i=t.group?this.displayIgnoresAggData(t):!1;if(!r||i||e.showValuesAs==null)return;const a=this.getValue(e,t,"edit",i);return r.formatValue(e,t,o,a,!r.isApplying(e))}setValue(e,t,o,r){const i=t.colDef;if(!e.data&&_M(e,i)&&(e.data={}),!this.isSetValueSupported(t,e,o,i))return!1;const a=this.getValueFromData(t,e),n=e.data,s={api:this.gridApi,context:this.gridOptions.context,node:e,data:n,oldValue:a,newValue:o,colDef:i,column:t};let l=!1;if(n){const d=this.handleExternalFormulaChange({column:t,eventSource:r,newValue:o,setterParams:s,rowNode:e});if(d!==null)return d;l=this.computeValueChange({column:t,rowNode:e,newValue:o,params:s,rowData:n,valueSetter:i.valueSetter,field:i.field})??!0}const c=this.changeDetectionSvc;c?.beginDeferred();try{if(e.group){const d=this.rowGroupingEditValueSvc?.setGroupDataValue(e,t,o,a,r,l||o!==a);if(d!==void 0)return!l&&!d?!1:this.finishValueChange(e,t,s,r,o)}return l?this.finishValueChange(e,t,s,r):!1}finally{c?.endDeferred()}}finishValueChange(e,t,o,r,i){e.resetQuickFilterAggregateText(),this.valueCache?.onDataChanged();const a=i===void 0?this.getValueFromData(t,e):i;this.dispatchCellValueChangedEvent(e,o,a,r);const n=e.pinnedSibling;return n&&this.dispatchCellValueChangedEvent(n,o,a,r),!0}isSetValueSupported(e,t,o,r){const{field:i,valueSetter:a}=r;if(e.isCalculatedCol)return!1;const n=this.formula,s=e.allowFormula&&n?.isFormula(o),l=!!this.formulaDataSvc?.hasDataSource(),c=i==null||i==="",d=a==null||a==="";return c&&d&&!(l&&s)?t.group&&(r.groupRowValueSetter||r.groupRowEditable)?!0:(this.warn(17),!1):this.dataTypeSvc&&!this.dataTypeSvc.checkType(e,o)?(this.warn(135),!1):!0}handleExternalFormulaChange(e){const{column:t,rowNode:o,newValue:r,eventSource:i,setterParams:a}=e,n=this.formula,s=this.formulaDataSvc;if(!t.allowFormula||!s?.hasDataSource())return null;const l=n?.isFormula(r),c=s.getFormula({column:t,rowNode:o});if(l){if(!(c!==r))return!1;s.setFormula({column:t,rowNode:o,formula:r});const g=n?.resolveValue(t,o),{valueSetter:u,field:h}=t.colDef;return(u!=null&&u!==""||h!=null&&h!=="")&&this.computeValueChange({column:t,rowNode:o,newValue:g,params:{...a,newValue:g},rowData:o.data,valueSetter:u,field:h}),this.finishValueChange(o,t,a,i)}return c!==void 0&&s.setFormula({column:t,rowNode:o,formula:void 0}),null}computeValueChange(e){const{valueSetter:t,params:o,rowData:r,field:i,column:a,newValue:n}=e;if(t!=null&&t!=="")return typeof t=="function"?t(o):this.expressionSvc?.evaluate(t,o);if(!r||!i||a.fieldHasProtoKey)return!1;const s=a.fieldPath;let l=!1;if(s===null)l=r[i]===n,l||(r[i]=n);else{let c=r;const d=s.length-1;for(let g=0;g<d&&c;++g){const u=s[g],h=c[u];if(h!=null&&typeof h!="object")return this.refuseFieldWrite(i,u);c=h}if(c){const g=s[d];l=c[g]===n,l||(c[g]=n)}}return!l}refuseFieldWrite(e,t){return this.beans.log.warn(339,{field:e,key:t}),!1}dispatchCellValueChangedEvent(e,t,o,r){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:o,newRawValue:t.newValue,value:o,source:r})}callColumnCellValueChangedHandler(e){const t=e.colDef.onCellValueChanged;typeof t=="function"&&this.frameworkOverrides.wrapOutgoing(()=>t(e))}executeValueGetter(e,t,o,r){const i=this.valueCache;if(i){const s=i.getValue(r,o.colId);if(s!==void 0)return s}const a={api:this.gridApi,context:this.gridOptions.context,data:t,node:r,column:o,colDef:o.colDef,getValue:s=>this.getValueCallback(r,s)},n=typeof e=="function"?e(a):this.expressionSvc?.evaluate(e,a);return i&&i.setValue(r,o.colId,n),n}getValueCallback(e,t){const o=this.colModel.getCol(t);return o?this.getValueFromData(Jt(o,e),e):null}getKeyForNode(e,t){let o=this.getValueFromData(e,t);const r=e.colDef,i=r.keyCreator;if(i){const a={api:this.gridApi,context:this.gridOptions.context,value:o,colDef:r,column:e,node:t,data:t.data};o=i(a)}return typeof o=="string"||o==null||(o=String(o),o==="[object Object]"&&this.warn(121)),o}},_M=(e,t)=>e.group?!(t.groupRowValueSetter!=null||t.groupRowEditable!=null||t.pivotValueColumn):!0,$v=(e,t,o)=>{const r=e.colsById[t];return r?.rowGroupActive&&r.rowGroupActiveIndex>o?null:void 0},jM=(e,t,o)=>{if(!e.footer)return;const r=e.field;if(!(!r||o!==!0&&o!==r))return r.includes(".")?Kr(t,r.split(".")):t[r]},KM={moduleName:"CommunityCore",version:R,beans:[LM,x6,Nx,tF,iF,PM,ZR,m6,Q6,XE,$4,X4,AM,UM,C6,f6,S6,aF,zM,jR,KR,s4],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:$f,getGridElement:_x,destroy:Gx,isDestroyed:Wx,getGridOption:qx,setGridOption:Ux,updateGridOptions:em,isModuleRegistered:jx},dependsOn:[xc,UR,Tm,AE,Sc,r4,Nm,i4,Qv,qM,n4,Uv,iM,nM,v4,$R,_R,WM,lR,cM]},ew=new WeakMap;function YM(e,t,o){ew.set(e,{packageName:t,version:o})}function tw(e){const t=[`ag-grid-community=${R}`],o=e.find(({moduleName:i})=>i==="EnterpriseCore");o&&t.push(`ag-grid-enterprise=${o.version}`);const r=new Set;for(const i of e){const a=ew.get(i);a&&r.add(`${a.packageName}=${a.version}`)}return t.push(...r),t.join(", ")}function ow(e,t){e&&yf(`Version: ${tw(t)}`)}var rw=e=>e(),iw=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.batchFrameworkComps=!1,this.usesAgGridProvider=void 0,this.wrapIncoming=rw,this.wrapOutgoing=rw,this.baseDocLink=`${Mf}/${this.frameworkName}-data-grid`,Cx(this.baseDocLink)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return this.baseDocLink+(e?"/"+e:"")}},ad=new WeakMap,nd=new WeakMap;function QM(e,t,o){if(!t)return hc(11),{};const[r,i]=du();return e.appendChild(r),new aw().create(r,i,t,n=>{const s=new ux(i);n.createBean(s)},void 0,o,()=>r.remove())}var ZM=1,aw=class{create(e,t,o,r,i,a,n){const s=Lr.applyGlobalGridOptions(o),l=s.gridId??String(ZM++),c=this.getRegisteredModules(a,l,s.rowModelType),d=tw(c),g=this.createBeansList(s.rowModelType,c,l),u=this.createProvidedBeans(t,s,d,a);if(!g){ow(ec(s.debug),c),Ex(e,d);return}const p={providedBeanInstances:u,beanClasses:g,id:l,beanInitComparator:W2,beanDestroyComparator:q2,derivedBeans:[N2],destroyCallback:()=>{nd.delete(m),ad.delete(e),fx(l),n?.()}},f=new Xy(p);ow(ec(s.debug),c),this.registerModuleFeatures(f,c),r(f),f.getBean("syncSvc").start(),i?.(f);const m=f.getBean("gridApi");return ad.set(e,m),nd.set(m,e),m}getRegisteredModules(e,t,o){return Ao(KM,void 0),e?.modules?.forEach(r=>Ao(r,t)),mx(t,nw(o))}registerModuleFeatures(e,t){const o=e.getBean("registry"),r=e.getBean("apiFunctionSvc");for(const i of t){o.registerModule(i);const a=i.apiFunctions;if(a){const n=Object.keys(a);for(const s of n)r?.addFunction(s,a[s])}}}createProvidedBeans(e,t,o,r){let i=r?r.frameworkOverrides:null;Me(i)&&(i=new iw);const a={gridOptions:t,eGridDiv:e,eRootDiv:e,globalListener:r?r.globalListener:null,globalSyncListener:r?r.globalSyncListener:null,frameworkOverrides:i,hasAncestorStyledRoot:r?.hasAncestorStyledRoot,agVersionsText:o};return r?.providedBeanInstances&&Object.assign(a,r.providedBeanInstances),a}createBeansList(e,t,o){const r={clientSide:"ClientSideRowModel",infinite:"InfiniteRowModel",serverSide:"ServerSideRowModel",viewport:"ViewportRowModel"},i=nw(e),a=r[i];if(!a){Na(201,{rowModelType:i},`Unknown rowModelType ${i}.`);return}if(!Af(a,o,i)){const s=oc(),l=`rowModelType = '${i}'`,c=s?`Unable to use ${l} as that requires the ag-grid-enterprise script to be included.
`:`Missing module ${a}Module for rowModelType ${i}.`;Na(200,{reasonOrId:l,moduleName:a,gridScoped:If(),gridId:o,rowModelType:i,isUmd:s},c);return}const n=new Set;for(const s of t)for(const l of s.beans??[])n.add(l);return Array.from(n)}};function nw(e){return e??"clientSide"}function JM(e){if(typeof e=="string")try{e=document.querySelector(`[grid-id="${e}"]`)??document.querySelector(e)??document.getElementById(e)}catch{e=null}for(e=e?.firstElementChild??e;e;){const t=ad.get(e);if(t)return t;e=e.parentElement}}function sw(e){return nd.get(e)}function lw(e,t=!1){const o=[],r=[],i=[],a=[],n=[],s=[],l=[],c=[],d=[],g=[],u=[],h=[];let p=0;for(let f=0;f<e.length;f++){const{colId:m,sort:w,sortType:v,sortIndex:C,rowGroup:b,rowGroupIndex:S,aggFunc:E,valueIndex:F,showValuesAs:P,pivot:z,pivotIndex:V,pivotSort:H,pinned:Se,hide:J,width:xe,flex:ee,headerName:U}=e[f];h.push(m),U!=null&&u.push({colId:m,headerName:U}),w&&(o[C??p++]={colId:m,sort:w,type:v??void 0}),b&&(r[S??0]=m),typeof E=="string"&&i.push({colId:m,aggFunc:E,valueIndex:F}),P!=null&&a.push({colId:m,showValuesAs:ia(P)}),z&&(n[V??0]=m,H!==void 0&&s.push({colId:m,sort:H})),Se&&(Se==="right"?c:l).push(m),J&&d.push(m),(ee!=null||xe)&&g.push({colId:m,flex:ee??void 0,width:xe===null?void 0:xe})}return{sort:o.length?{sortModel:sd(o)}:void 0,rowGroup:r.length?{groupColIds:sd(r)}:void 0,aggregation:i.length?{aggregationModel:XM(i)}:void 0,showValuesAs:a.length?{showValuesAsModel:a}:void 0,pivot:n.length||t?{pivotMode:t,pivotColIds:sd(n),pivotSortModel:s.length?s:void 0}:void 0,columnPinning:l.length||c.length?{leftColIds:l,rightColIds:c}:void 0,columnVisibility:d.length?{hiddenColIds:d}:void 0,columnSizing:g.length?{columnSizingModel:g}:void 0,columnOrder:h.length?{orderedColIds:h}:void 0,columnHeaderName:u.length?{columnHeaderNames:u}:void 0}}function sd(e){return e.filter(t=>t!=null)}function XM(e){return e.sort((t,o)=>(t.valueIndex??1/0)-(o.valueIndex??1/0)).map(t=>({colId:t.colId,aggFunc:t.aggFunc}))}function cw(e){const t=[],o=[];for(const{groupId:r,open:i,headerName:a}of e)i&&t.push(r),a!=null&&o.push({groupId:r,headerName:a});if(!(!t.length&&!o.length))return{openColumnGroupIds:t,headerNames:o.length?o:void 0}}function $M(e){return{columnGroup:cw(e)}}var eD=class extends x{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";return typeof e=="function"&&(e=e()),e.map(r=>{if(!r){this.error(18),t||this.error(20);return}if(this.isGridApi(r))return r;const i=r;return"current"in i?i.current?.api:(i.api||this.error(19),i.api)}).filter(r=>!!r&&!r.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){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}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":this.warn(21);break}})}processGroupOpenedEvent(e){const t=this.beans,o=t.colModel.colsGroupsById;for(const r of e.columnGroups){let i;r&&(i=o.get(r.getGroupId())),!(r&&!i)&&Ur(t,i,r.isExpanded(),"alignedGridChanged")}}processColumnEvent(e){const t=e.column;let o;const r=this.beans,{colResize:i,colModel:a,scrollVisibleSvc:n}=r;if(t&&(o=a.getNonPivotCol(t.getColId())),t&&!o)return;switch(e.type){case"columnMoved":{const c=e.api.getColumnState().map(d=>({colId:d.colId}));Pt(r,{state:c,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const c=e.api.getColumnState().map(d=>({colId:d.colId,hide:d.hide}));Pt(r,{state:c},"alignedGridChanged")}break;case"columnPinned":{const c=e.api.getColumnState().map(d=>({colId:d.colId,pinned:d.pinned}));Pt(r,{state:c},"alignedGridChanged")}break;case"columnResized":{const{flexColumns:l,finished:c}=e,d=e.columns,g=l!=null,u=g?d.length-l.length:0,h=[],p=[];let f=g?h:void 0;for(let m=0,w=d.length;m<w;++m){const v=d[m],C=ld(v),b=C&&m<u,S=C&&!b,E=v===t?o:a.getNonPivotCol(v.colId);if(E){if(b&&ld(E)){f===h&&(f=h.slice()),f.push(E);continue}tD(v,E,S,g)||(E.setUserSized(v.isUserSized()),E.flex=null,S&&f===h?f=h.slice():!S&&f!==h&&f?.push(E),h.push(E),p.push(v.actualWidth))}}i?.setClampedColumnWidths(h,p,c,"alignedGridChanged",f);break}}const s=n.isVerticalScrollShowing();for(const l of this.getAlignedGridApis())l.setGridOption("alwaysShowVerticalScroll",s)}};function ld(e){return(e.flex??0)>0&&e.pinnedLane===1}function tD(e,t,o,r){return o&&(r||t.flex===e.flex)&&ld(t)}var dw={moduleName:"AlignedGrids",version:R,beans:[eD],dependsOn:[Oc]};function oD(e,t={}){const o=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.redrawRows(o))}function gw(e,t,o,r,i){t&&(r&&t.parent&&t.parent.level!==-1&&gw(e,t.parent,o,r,i),t.setExpanded(o,void 0,i))}function rD(e,t){return e.rowModel.getRowNode(t)}function iD(e,t,o,r){e.rowRenderer.addRenderedRowListener(t,o,r)}function aD(e){return e.rowRenderer.getRenderedNodes()}function nD(e,t,o){e.rowModel.forEachNode(t,o)}function sD(e){return e.rowRenderer.firstRenderedRow}function lD(e){return e.rowRenderer.lastRenderedRow}function cD(e,t){return e.rowModel.getRow(t)}function dD(e){return e.rowModel.getRowCount()}function gD(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()}function uD(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()}function uw(e,t,o="auto"){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,o),"ensureVisible")}function hw(e,t,o){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,o),"ensureVisible")}function hD(e,t,o=null){e.frameworkOverrides.wrapIncoming(()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,o),"ensureVisible")}var pw={moduleName:"RowApi",version:R,apiFunctions:{redrawRows:oD,setRowNodeExpanded:gw,getRowNode:rD,addRenderedRowListener:iD,getRenderedNodes:aD,forEachNode:nD,getFirstDisplayedRowIndex:sD,getLastDisplayedRowIndex:lD,getDisplayedRowAtIndex:cD,getDisplayedRowCount:dD}},fw={moduleName:"ScrollApi",version:R,apiFunctions:{getVerticalPixelRange:gD,getHorizontalPixelRange:uD,ensureColumnVisible:uw,ensureIndexVisible:hw,ensureNodeVisible:hD}},pD={tag:"div",cls:"ag-overlay-file-input-center",children:[{tag:"div",ref:"eErrorBanner",cls:"ag-file-input-error-banner"},{tag:"div",ref:"eDropZone",cls:"ag-file-input-drop-zone"},{tag:"div",ref:"eProcessingState",cls:"ag-file-input-processing"}]},fD=class extends hr{constructor(){super(...arguments),this.eErrorBanner=k,this.eDropZone=k,this.eProcessingState=k,this.state="ready",this.dragCounter=0,this.processingToken=0}init(e){this.setTemplate(pD),this.buildDropZone(e),this.showState("ready"),this.setupDragListeners(),this.gos.get("processFileInput")||(this.beans.log.warn(305),this.showError("gridOptions.processFileInput is missing"))}buildDropZone(e){const{beans:t}=this,o=this.getLocaleTextFunc(),r=e.fileInput?.overlayText??o("fileInputOverlay","Drag & Drop file to import data"),i=ue("document",t,null),a={tag:"span",cls:"ag-file-input-text",children:r},n=G({tag:"div",cls:"ag-file-input-text-row",children:i?[()=>i,a]:[a]});this.eDropZone.appendChild(n),this.appendBrowseButton(this.eDropZone),t.ariaAnnounce.announceValue(r,"overlay")}updateProcessingState(e){const{beans:t}=this,o=this.getLocaleTextFunc();Ce(this.eProcessingState);const r=ue("overlayLoading",t,null);r&&(r.classList.add("ag-loading-icon"),this.eProcessingState.appendChild(r));const i=o("fileInputProcessing",`Processing ${e}`,[e]),a=G({tag:"span",cls:"ag-file-input-text",children:i});this.eProcessingState.appendChild(a),t.ariaAnnounce.announceValue(i,"overlay")}showError(e){this.eErrorBanner.textContent=e,this.showState("error"),this.beans.ariaAnnounce.announceValue(e,"overlay")}appendBrowseButton(e){const t=this.getLocaleTextFunc(),o=G({tag:"input",cls:"ag-file-input-input",attrs:{type:"file",style:"display:none"}});this.addManagedElementListeners(o,{change:()=>this.onFileInputChange(o)}),e.appendChild(o);const r=G({tag:"button",cls:"ag-file-input-browse",attrs:{type:"button"},children:t("fileInputOverlayBrowse","Browse files")});this.addManagedElementListeners(r,{click:()=>o.click()}),e.appendChild(r)}showState(e){this.state=e;const t=this.getGui();switch(Ce(t),e){case"error":t.appendChild(this.eErrorBanner),t.appendChild(this.eDropZone);break;case"processing":t.appendChild(this.eProcessingState);break;default:t.appendChild(this.eDropZone);break}}setupDragListeners(){const e=this.getGui();this.addManagedElementListeners(e,{dragenter:t=>{this.isFileDrag(t)&&(t.preventDefault(),this.dragCounter++,this.dragCounter===1&&this.eDropZone.classList.add("ag-file-input-drop-zone-active"))},dragover:t=>{this.isFileDrag(t)&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="copy"))},dragleave:t=>{this.isFileDrag(t)&&(t.preventDefault(),this.dragCounter--,this.dragCounter<=0&&(this.dragCounter=0,this.eDropZone.classList.remove("ag-file-input-drop-zone-active")))},drop:t=>{this.isFileDrag(t)&&(t.preventDefault(),this.dragCounter=0,this.eDropZone.classList.remove("ag-file-input-drop-zone-active"),this.handleFileList(t.dataTransfer?.files))}})}isFileDrag(e){return e.dataTransfer?.types?.includes("Files")??!1}onFileInputChange(e){this.handleFileList(e.files),e.value=""}handleFileList(e){e&&e.length>0&&this.handleFiles(Array.from(e))}handleFiles(e){if(this.state==="processing")return;const{gos:t}=this,o=t.get("processFileInput"),r=e[0].name;this.updateProcessingState(r),this.showState("processing");const i=++this.processingToken,a=s=>{if(!this.isAlive()||i!==this.processingToken)return;const l={rowData:s};t.get("activeOverlay")==="agFileInputOverlay"&&(l.activeOverlay=void 0),t.updateGridOptions({options:l,source:"api"})},n=s=>{if(!this.isAlive()||i!==this.processingToken)return;const l=this.getLocaleTextFunc(),c=s??l("fileInputProcessingFailed",`Error processing ${r}`,[r]);this.showError(c)};if(!o)n();else try{o(W(t,{files:e,success:a,fail:n}))}catch(s){n(s instanceof Error?s.message:void 0)}}},mw={moduleName:"FileInputOverlay",version:R,userComponents:{agFileInputOverlay:fD},icons:{document:"document"},dependsOn:[Qv]},mD=class extends x{constructor(){super(...arguments),this.beanName="autoGenColsSvc"}postConstruct(){this.generateColumns(!0),this.addManagedPropertyListener("rowData",()=>this.generateColumns(!1)),this.addManagedPropertyListener("autoGenerateColumnDefs",()=>this.generateColumns(!1))}generateColumns(e){const t=this.gos,o=t.get("autoGenerateColumnDefs");if(!o)return;const r=t.get("rowData")??[],i=typeof o=="object"?o:{};let a;for(let l=0,c=r.length;l<c;++l)if(ra(r[l])){a=r[l];break}if(!a){e||t.updateGridOptions({options:{columnDefs:[]},source:"optionsUpdated"});return}let n=cd(a,void 0,i,!t.get("suppressFieldDotNotation"));const s=t.getCallback("processAutoGeneratedColumnDefs");if(s){const l=s({columnDefs:n,rowData:r});Array.isArray(l)&&(n=l)}t.updateGridOptions({options:{columnDefs:n},source:"optionsUpdated"})}};function cd(e,t,o,r,i=new Set){const{objectValues:a="group",arrayValues:n="primitives",nullishValues:s="include"}=o,l=Object.keys(e),c=[];for(let d=0,g=l.length;d<g;++d){const u=l[d];if(Ks(u,r&&u.includes(".")?u.split("."):null))continue;const h=t?`${t}.${u}`:u,p=e[u];if(ra(p)){if(i.has(p))continue;if(i.add(p),a==="group"){const f=cd(p,h,o,r,i);f.length>0&&c.push({headerName:Cs(u)??u,children:f})}else if(a==="flatten"){const f=cd(p,h,o,r,i);c.push(...f)}continue}else if(Array.isArray(p)){if(n==="skip"||n==="primitives"&&!vD(p))continue;c.push(vw(h,u,t,!0));continue}else if(p==null){if(s!=="include")continue}else if(typeof p=="function")continue;c.push(vw(h,u,t))}return c}function vw(e,t,o,r){const i={field:e};return o&&(i.headerName=Cs(t)??t),r&&(i.cellDataType=!1),i}function vD(e){if(e.length===0)return!1;const t=e[0];return t!=null&&!Array.isArray(t)&&!ra(t)&&typeof t!="function"}var ww={moduleName:"AutoGenerateColumns",version:R,beans:[mD],dependsOn:[mw]};function wD(e,t){typeof t=="number"?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)}function bw({colAutosize:e,visibleCols:t},o,r){Array.isArray(o)?e?.autoSizeCols({colKeys:o,skipHeader:r,source:"api"}):e?.autoSizeCols({...o,colKeys:o.colIds??t.allCols,source:"api"})}function bD(e,t){t&&typeof t=="object"?bw(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}var CD=new Set(["autosizeColumns","sizeColumnsToFit"]),yD=new Set(["columnMenu","contextMenu"]),SD=150,xD=[0,100,500],kD=["dataChanged","columnsChanged","gridSizeChanged","viewportChanged"],ED=class extends x{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[],this.continuousStrategy=null,this.continuousRunning=!1,this.continuousFrameScheduled=!1,this.pendingReasons=null,this.continuousRetries=0,this.continuousRetryScheduled=!1,this.continuousEchoing=!1,this.gridSizeSettling=!1,this.runDebouncedContinuousAutoSize=se(this,()=>{this.gridSizeSettling=!1,this.scheduleContinuousAutoSize()},SD)}postConstruct(){const{gos:e}=this,t=e.get("autoSizeStrategy");if(t){let o=!1;const r=t.type;if(r==="fitGridWidth"||r==="fitProvidedWidth")o=!0;else if(r==="fitCellContents"){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered(t)});const i=e.get("rowData");o=i!=null&&i.length>0&&ve(e),o&&this.revealOnEmptyModel()}t.continuous&&this.initContinuousAutoSize(t),o&&this.beans.colDelayRenderSvc?.hideColumns(r)}}withUiActionStrategyParams(e){const{source:t}=e;if(!t||!yD.has(t))return e;const o=this.gos.get("autoSizeStrategy");return o?.type!=="fitCellContents"||!o.applyToUiActions?e:{...e,skipHeader:o.skipHeader??e.skipHeader,defaultMinWidth:o.defaultMinWidth??e.defaultMinWidth,defaultMaxWidth:o.defaultMaxWidth??e.defaultMaxWidth,columnLimits:o.columnLimits??e.columnLimits,scaleUpToFitGridWidth:o.scaleUpToFitGridWidth??e.scaleUpToFitGridWidth}}autoSizeCols(e){this.autoSizeColsAsync(this.withUiActionStrategyParams(e)).then(t=>this.dispatchAutoSized(t))}dispatchAutoSized(e){Zt(this.beans.eventSvc,Array.from(e),!0,"autosizeColumns")}autoSizeColsAsync(e){const{colModel:t}=this.beans;return Dt(this.beans,!0),this.innerAutoSizeCols(e).then(r=>{if(!e.scaleUpToFitGridWidth)return r;const i=dd(this.beans),a=e.colKeys.filter(n=>{const s=t.getCol(n);return!s||s.colDef.suppressAutoSize||s.colKind==="row-number"?!1:!(s.displayed&&s.pinnedLane!==1)});return this.sizeColumnsToFit(i,e.source,!0,{defaultMaxWidth:e.defaultMaxWidth,defaultMinWidth:e.defaultMinWidth,columnLimits:e.columnLimits?.map(n=>({...n,key:n.colId})),colKeys:a,onlyScaleUp:!0,animate:!1}),r}).finally(()=>Dt(this.beans,!1))}innerAutoSizeCols(e){return new Promise((t,o)=>{if(this.shouldQueueResizeOperations)return this.pushResizeOperation(()=>this.innerAutoSizeCols(e).then(t,o));const{colKeys:r,skipHeader:i,skipHeaderGroups:a,stopAtGroup:n,defaultMaxWidth:s,defaultMinWidth:l,columnLimits:c=[],source:d="api"}=e,{animationFrameSvc:g,renderStatus:u,colModel:h,autoWidthCalc:p,visibleCols:f,pinnedCols:m}=this.beans;if(g?.flushAllFrames(),this.timesDelayed<5&&u&&(!u.areHeaderCellsRendered()||!u.areCellsRendered())){this.timesDelayed++,setTimeout(()=>{this.isAlive()&&this.innerAutoSizeCols(e).then(t,o)});return}this.timesDelayed=0;const w=new Set;let v,C=-1;const b=Object.fromEntries(c.map(({colId:P,...z})=>[P,z])),S=i??this.gos.get("skipHeaderOnAutoSize"),E=a??S,F=m?.limitsAutoSize(d)?m:void 0;for(;C!==0;){C=0;const P=[],z=[];for(const V of r){if(!V)continue;const H=h.getCol(V);if(!H||w.has(H)||H.colDef.suppressAutoSize||ul(H))continue;const Se=p.getPreferredWidthForColumn(H,S);if(Se>0){const J=b[H.colId]??{};J.minWidth??(J.minWidth=l),J.maxWidth??(J.maxWidth=s),P.push(H),z.push(FD(H,Se,J)),w.add(H),C++}}RD(P,z,d,F)&&(v=f.refresh(d,!0))}if(v)for(let P=0,z=v.length;P<z;++P)w.add(v[P]);E||this.autoSizeColumnGroupsByColumns(r,d,n),t(w)})}autoSizeColumn(e,t,o){this.autoSizeCols({colKeys:[e],skipHeader:o,skipHeaderGroups:!0,source:t})}autoSizeColumnGroupsByColumns(e,t,o){const{colModel:r,ctrlsSvc:i}=this.beans,a=new Set;for(let s=0,l=e.length;s<l;++s){let d=r.getCol(e[s])?.parent;for(;d&&d!=o;)d.providedColumnGroup.padding||a.add(d),d=d.parent}const n=i.getHeaderRowContainerCtrl();if(n)for(const s of a)n.getHeaderCtrlForColumn(s)?.resizeLeafColumnsToFit(t)}autoSizeAllColumns(e){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.autoSizeAllColumns(e));return}this.autoSizeCols({colKeys:this.beans.visibleCols.allCols,...e})}addColumnAutosizeListeners(e,t){const o=this.gos.get("skipHeaderOnAutoSize"),r=()=>{this.autoSizeColumn(t,"uiColumnResized",o)};e.addEventListener("dblclick",r);const i=new eo(e);return i.addEventListener("doubleTap",r),()=>{e.removeEventListener("dblclick",r),i.destroy()}}addColumnGroupResize(e,t,o){const r=this.gos.get("skipHeaderOnAutoSize"),i=()=>{const a=[],n=t.getDisplayedLeafColumns();for(const s of n)s.colDef.suppressAutoSize||a.push(s.colId);a.length>0&&this.autoSizeCols({colKeys:a,skipHeader:r,stopAtGroup:t,source:"uiColumnResized"}),o()};return e.addEventListener("dblclick",i),()=>e.removeEventListener("dblclick",i)}sizeColumnsToFitGridBody(e,t){if(!this.isAlive())return;let o=dd(this.beans);if(o>0&&this.beans.visibleCols.centerCols.length===0&&(o=Math.max(o-$a,0)),o>0){this.sizeColumnsToFit(o,"sizeColumnsToFit",!1,e);return}t===void 0?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,100)},0):t===100?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,500)},100):t===500?window.setTimeout(()=>{this.sizeColumnsToFitGridBody(e,-1)},500):this.warn(29)}sizeColumnsToFit(e,t="sizeColumnsToFit",o,r){if(this.shouldQueueResizeOperations){this.pushResizeOperation(()=>this.sizeColumnsToFit(e,t,o,r));return}const i=r?.animate??!0;i&&Dt(this.beans,!0);try{this.fitColumnsToWidth(e,t,o,r)}finally{i&&Dt(this.beans,!1)}}fitColumnsToWidth(e,t,o,r){const i=Object.create(null);for(const{key:h,...p}of r?.columnLimits??[])i[typeof h=="string"?h:h.getColId()]=p;const a=this.beans.visibleCols.allCols;if(e<=0||!a.length)return;const n=$t(a);if(r?.onlyScaleUp&&n>e||e===n&&DD(a,i,r))return;const l=[],c=[];for(const h of a){const p=r?.colKeys?.some(f=>ID(h,f))??!0;h.colDef.suppressSizeToFit||!p?c.push(h):l.push(h)}const d=l.slice(0),g=PD(l,i,r,t);TD(e,l,c,g,i,r,t);const u=this.beans.visibleCols;u.updateBodyWidths(t,u.setLeftValues()),!o&&Zt(this.eventSvc,d,!0,t)}applyAutosizeStrategy(){const{gos:e,colDelayRenderSvc:t}=this.beans,o=e.get("autoSizeStrategy");o?.type!=="fitGridWidth"&&o?.type!=="fitProvidedWidth"||setTimeout(()=>{if(!this.isAlive())return;const r=o.type;if(this.continuousStrategy)this.runContinuousNow("dataChanged");else if(r==="fitGridWidth"){const{columnLimits:i,defaultMinWidth:a,defaultMaxWidth:n}=o,s=i?.map(({colId:l,minWidth:c,maxWidth:d})=>({key:l,minWidth:c,maxWidth:d}));this.sizeColumnsToFitGridBody({defaultMinWidth:a,defaultMaxWidth:n,columnLimits:s})}else this.sizeColumnsToFit(o.width,"sizeColumnsToFit");t?.revealColumns(r)})}revealOnEmptyModel(){const[e]=this.addManagedEventListeners({modelUpdated:()=>{this.beans.rowModel.getRowCount()>0||(e?.(),this.beans.colDelayRenderSvc?.revealColumns("fitCellContents"))}})}onFirstDataRendered(e){const{colIds:t,...o}=e;setTimeout(()=>{if(!this.isAlive())return;const r="autosizeColumns";this.continuousStrategy?this.runContinuousNow("dataChanged"):t?this.autoSizeCols({...o,source:r,colKeys:t}):this.autoSizeAllColumns({...o,source:r}),this.beans.colDelayRenderSvc?.revealColumns(o.type)})}initContinuousAutoSize(e){const t=e.type==="fitCellContents";if(t&&!MD(this.gos)){this.warn(328,{rowModel:this.gos.get("rowModelType")});return}this.continuousStrategy=e,this.addManagedEventListeners({modelUpdated:o=>{(t||o.newData)&&this.scheduleContinuousAutoSize("dataChanged")},paginationChanged:o=>{(o.newPage||o.newPageSize)&&this.scheduleContinuousAutoSize("dataChanged")},cellValueChanged:()=>this.scheduleContinuousAutoSize("dataChanged"),displayedColumnsChanged:o=>{CD.has(o.source)||this.scheduleContinuousAutoSize("columnsChanged")},newColumnsLoaded:()=>this.scheduleContinuousAutoSize("columnsChanged"),gridSizeChanged:()=>this.scheduleDebouncedContinuousAutoSize("gridSizeChanged"),scrollVisibilityChanged:()=>{this.isContinuousEcho()||(this.gridSizeSettling?this.scheduleDebouncedContinuousAutoSize("gridSizeChanged"):this.scheduleContinuousAutoSize("gridSizeChanged"))}}),this.addManagedEventListeners({rowNodeDataChanged:()=>this.scheduleContinuousAutoSize("dataChanged")}),!(!t||!e.shouldAutoSizeColumns)&&this.addManagedEventListeners({virtualColumnsChanged:()=>this.scheduleDebouncedContinuousAutoSize("viewportChanged"),viewportChanged:()=>this.scheduleDebouncedContinuousAutoSize("viewportChanged"),bodyScroll:o=>{o.direction==="horizontal"&&this.scheduleDebouncedContinuousAutoSize("viewportChanged")}})}scheduleDebouncedContinuousAutoSize(e){this.isContinuousEcho()||(e==="gridSizeChanged"&&(this.gridSizeSettling=!0),(this.pendingReasons??(this.pendingReasons=new Set)).add(e),this.runDebouncedContinuousAutoSize())}isContinuousEcho(){return this.continuousRunning||this.continuousEchoing}scheduleContinuousAutoSize(e){const t=this.pendingReasons??(this.pendingReasons=new Set);e&&t.add(e),!(this.continuousRunning||this.continuousFrameScheduled)&&(this.continuousFrameScheduled=!0,Gt(this.beans,()=>{this.continuousFrameScheduled=!1,this.isAlive()&&this.runContinuousAutoSize()}))}runContinuousAutoSize(){if(!this.pendingReasons?.size)return;const e=this.pendingReasons;this.pendingReasons=null,this.runContinuousNow(kD.find(t=>e.has(t)))}runContinuousNow(e){const t=this.continuousStrategy;if(!t||this.continuousRunning)return;if(t.type!=="fitProvidedWidth"&&dd(this.beans)<=0){this.retryContinuousWhenSized(e);return}this.continuousRetries=0;const o=this.getAutoSizeCandidates(t);if(!o.length)return;const r=t.shouldAutoSizeColumns;if(r){let i;try{i=r(W(this.gos,{reason:e,columns:o}))}catch(a){this.warn(329,{error:a});return}if(!i)return}this.continuousRunning=!0,this.reapplyStrategy(t,o).then(()=>this.onContinuousAutoSizeComplete(),()=>this.onContinuousAutoSizeComplete())}reapplyStrategy(e,t){const o=e.type;if(o==="fitCellContents"){const{skipHeader:r,defaultMinWidth:i,defaultMaxWidth:a,columnLimits:n,scaleUpToFitGridWidth:s}=e;return this.autoSizeColsAsync({colKeys:t,skipHeader:r,defaultMinWidth:i,defaultMaxWidth:a,columnLimits:n,scaleUpToFitGridWidth:s,source:"autosizeColumns"}).then(l=>this.dispatchAutoSized(l))}if(o==="fitProvidedWidth")this.sizeColumnsToFit(e.width,"sizeColumnsToFit",!1,{colKeys:t});else{const{defaultMinWidth:r,defaultMaxWidth:i,columnLimits:a}=e;this.sizeColumnsToFitGridBody({defaultMinWidth:r,defaultMaxWidth:i,colKeys:t,columnLimits:a?.map(({colId:n,minWidth:s,maxWidth:l})=>({key:n,minWidth:s,maxWidth:l}))})}return Promise.resolve()}retryContinuousWhenSized(e){const t=xD[this.continuousRetries];t===void 0||this.continuousRetryScheduled||(this.continuousRetries++,this.continuousRetryScheduled=!0,window.setTimeout(()=>{this.continuousRetryScheduled=!1,this.isAlive()&&this.runContinuousNow(e)},t))}onContinuousAutoSizeComplete(){if(this.continuousRunning=!1,this.continuousEchoing=!0,Gt(this.beans,()=>{this.continuousEchoing=!1}),this.pendingReasons?.size&&this.isAlive()){const e=this.pendingReasons;this.pendingReasons=null;for(const t of e)this.scheduleContinuousAutoSize(t)}}getAutoSizeCandidates(e){const{colModel:t,visibleCols:o}=this.beans,r=e.type==="fitCellContents",i=r?e.colIds:void 0,a=i?i.map(s=>t.getCol(s)):o.allCols,n=[];for(let s=0,l=a.length;s<l;++s){const c=a[s];if(!c||c.isUserSized()||ul(c))continue;const d=c.colDef;if(r?d.suppressAutoSize:d.suppressSizeToFit)continue;const g=c.flex;g!=null&&g>0||n.push(c)}return n}processResizeOperations(){this.shouldQueueResizeOperations=!1;const e=this.resizeOperationQueue;this.resizeOperationQueue=[];for(let t=0,o=e.length;t<o;++t)e[t]()}pushResizeOperation(e){this.resizeOperationQueue.push(e)}destroy(){this.continuousStrategy=null,this.pendingReasons=null,this.resizeOperationQueue.length=0,super.destroy()}};function RD(e,t,o,r){let i=!1,a=0;for(let s=0,l=e.length;s<l;++s){const c=e[s],d=c.actualWidth,g=t[s],u=r!==void 0&&c.pinnedLane!==1;if(u&&g>d)continue;c.setActualWidth(g,o);const h=c.actualWidth-d;i||(i=h!==0),a-=u?h:0}if(!r)return i;let n=r.getPinnedRoom(a);for(let s=0,l=e.length;s<l;++s){const c=e[s],d=c.actualWidth,g=t[s];if(c.pinnedLane===1||g<=d)continue;c.setActualWidth(d+Math.min(g-d,n),o);const u=c.actualWidth-d;i||(i=u!==0),n-=u}return i}function FD(e,t,o={}){const r=o.minWidth??e.minWidth;t<r&&(t=r);const i=o.maxWidth??e.maxWidth;return t>i&&(t=i),t}function MD(e){return e.get("rowModelType")!=="viewport"}function dd({ctrlsSvc:e,scrollVisibleSvc:t}){const o=e.getGridBodyCtrl(),i=t.isVerticalScrollShowing()?t.getScrollbarWidth()??0:0;return Go(o.eGridBody)-i}function DD(e,t,o){return e.every(r=>{if(r.colDef.suppressSizeToFit)return!0;const i=t?.[r.colId],a=i?.minWidth??o?.defaultMinWidth,n=i?.maxWidth??o?.defaultMaxWidth,s=r.actualWidth;return(a==null||s>=a)&&(n==null||s<=n)})}function PD(e,t,o,r){const i=Object.create(null);for(const a of e){o?.onlyScaleUp&&(i[a.colId]=a.actualWidth),a.resetActualWidth(r);const n=t?.[a.colId],s=n?.minWidth??o?.defaultMinWidth??-1/0,l=n?.maxWidth??o?.defaultMaxWidth??1/0,c=a.actualWidth,d=bo(c,s,l);d!=c&&a.setActualWidth(d,r)}return i}function TD(e,t,o,r,i,a,n){let s=!1;for(;!s;)s=AD(e,t,o,r,i,a,n)}function AD(e,t,o,r,i,a,n){const s=e-$t(o);if(s<=0){for(const u of t){const h=i?.[u.colId]?.minWidth??a?.defaultMinWidth??u.minWidth;u.setActualWidth(h,n)}return!0}const l=u=>{No(t,u),o.push(u)};let c=!0;const d=s/$t(t);let g=s;for(let u=t.length-1;u>=0;u--){const h=t[u],p=h.colId,f=r[p],m=i?.[p],w=m?.minWidth??a?.defaultMinWidth??f,v=m?.maxWidth??a?.defaultMaxWidth,C=Math.max(w??-1/0,h.minWidth),b=Math.min(v??1/0,h.maxWidth);let S=Math.round(h.actualWidth*d);S<C?(S=C,l(h),c=!1):S>b?(S=b,l(h),c=!1):u===0&&(S=g),h.setActualWidth(S,n),g-=S}return c}function ID(e,t){return e===t||e.colId==t||e.colDef===t}var Cw={moduleName:"ColumnAutoSize",version:R,beans:[ED],apiFunctions:{sizeColumnsToFit:wD,autoSizeColumns:bw,autoSizeAllColumns:bD},dependsOn:[Am]};function zD(e,t){return!!e.colHover?.isHovered(t)}var LD=class extends x{constructor(e,t){super(),this.columns=e,this.element=t,this.destroyManagedListeners=[],this.enableFeature=o=>{const{beans:r,gos:i,element:a,columns:n}=this,s=r.colHover;if(o??!!i.get("columnHoverHighlight"))this.destroyManagedListeners=this.addManagedElementListeners(a,{mouseover:s.setMouseOver.bind(s,n),mouseout:s.clearMouseOver.bind(s)});else{for(const c of this.destroyManagedListeners)c();this.destroyManagedListeners=[]}}}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{this.enableFeature(e)}),this.enableFeature()}destroy(){super.destroy(),this.destroyManagedListeners=null}},OD="ag-column-hover",VD=class extends x{constructor(){super(...arguments),this.beanName="colHover"}postConstruct(){this.addManagedPropertyListener("columnHoverHighlight",({currentValue:e})=>{e||this.clearMouseOver()})}setMouseOver(e){this.updateState(e.filter(t=>!Le(t)))}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,o){const r=()=>{const i=this.isHovered(o);t.toggleCss("ag-column-hover",i)};e.addManagedEventListeners({columnHoverChanged:r}),r()}onCellColumnHover(e,t){if(!t)return;const o=this.isHovered(e);t.toggleCss(OD,o)}addHeaderFilterColumnHoverListener(e,t,o,r){this.createHoverFeature(e,[o],r);const i=()=>{const a=this.isHovered(o);t.toggleCss("ag-column-hover",a)};e.addManagedEventListeners({columnHoverChanged:i}),i()}createHoverFeature(e,t,o){e.createManagedBean(new LD(t,o))}updateState(e){this.selectedColumns=e,this.eventSvc.dispatchEvent({type:"columnHoverChanged"})}},yw={moduleName:"ColumnHover",version:R,beans:[VD],apiFunctions:{isColumnHovered:zD}};function BD(e,t,o,r,i){const a=[];Sw(e,a);const n=UD(a,o),s=HD(n,r,t.length);return ND(s,a,t,n,r,i),r&&GD(s,t,n,i),qD(s,t.length),s.rows}function HD(e,t,o){const r=e+(t?1:0),i=[],a=[];for(let n=0;n<r;n++)i.push({cells:[],grouping:n<e}),a.push(new Array(o).fill(!1));return{rows:i,occupied:a}}function ND(e,t,o,r,i,a){const n=new Map;for(let s=0;s<o.length;s++)n.set(o[s],s);for(const s of t){const l=s.getProvidedColumnGroup(),c=l.getLevel();if(c>=r)continue;const d=[];for(const g of s.getLeafColumns()){const u=n.get(g);if(u==null)continue;l.isPadding()&&i&&a&&g.isSpanHeaderHeight()||d.push(u)}_D(e.rows[c].cells,e.occupied[c],s,d)}}function GD(e,t,o,r){const{rows:i,occupied:a}=e;for(let n=0;n<t.length;n++){const s=t[n],l=r?WD(s,o):o;i[l].cells.push({type:"column",column:s,columnIndex:n,columnSpan:1,rowSpan:o-l+1}),a[l][n]=!0;for(let c=l+1;c<=o;c++)a[c][n]||(i[c].cells.push({type:"covered",columnIndex:n,columnSpan:1,rowSpan:1}),a[c][n]=!0)}}function WD(e,t){if(!e.isSpanHeaderHeight())return t;let o=t,r=e.getOriginalParent();for(;r;){const i=r.getLevel();r.isPadding()&&i<o&&(o=i),r=r.getOriginalParent()}return o}function qD(e,t){const{rows:o,occupied:r}=e;for(let i=0;i<o.length;i++){const a=o[i];for(let n=0;n<t;n++)r[i][n]||a.cells.push({type:"padding",columnIndex:n,columnSpan:1,rowSpan:1});a.cells.sort((n,s)=>n.columnIndex-s.columnIndex)}}function Sw(e,t){for(const o of e)tt(o)&&(t.push(o),Sw(o.children??[],t))}function UD(e,t){let o=0;for(const r of e){const i=r.getProvidedColumnGroup();(!t||!i.isPadding())&&(o=Math.max(o,i.getLevel()+1))}return o}function _D(e,t,o,r){r.sort((a,n)=>a-n);let i=0;for(;i<r.length;){let a=i;for(;a+1<r.length&&r[a+1]===r[a]+1;)a+=1;const n=r[i],s=r[a]-n+1;e.push({type:o.isPadding()?"padding":"group",column:o,columnIndex:n,columnSpan:s,rowSpan:1});for(let l=n;l<n+s;l++)t[l]=!0;i=a+1}}var jD=class extends x{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:o,columnKeys:r,skipRowGroups:i,exportRowNumbers:a}=t,n=this.getColumnsToExport({allColumns:o,skipRowGroups:i,columnKeys:r,exportRowNumbers:a});return[this.prepareSession(n),this.prependContent(t),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t)].reduce((s,l)=>l(s),e).parse()}processRow(e,t,o,r){const a=t.rowPositions!=null||!!t.onlySelected,n=this.gos.get("groupHideOpenParents")&&!a,s=this.colModel.pivotMode?r.leafGroup:!r.group,l=!!r.footer,c=Zu(this.gos,r);if(!s&&!l&&(t.skipRowGroups||c||n)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&r.rowPinned==="top"||t.skipPinnedBottom&&r.rowPinned==="bottom"||r.stub||r.level===-1&&!s&&!l||t.shouldRowBeSkipped?.(W(this.gos,{node:r})))return;const g=e.onNewBodyRow(r);for(let u=0,h=o.length;u<h;++u)g.onColumn(o[u],u,r);if(t.getCustomContentBelowRow){const u=t.getCustomContentBelowRow(W(this.gos,{node:r}));u&&e.addCustomContent(u)}}appendContent(e){return t=>{const o=e.appendContent;return o&&t.addCustomContent(o),t}}prependContent(e){return t=>{const o=e.prependContent;return o&&t.addCustomContent(o),t}}prepareSession(e){return t=>(t.prepare(e),t)}exportHeaders(e,t){return o=>{if(e.skipColumnGroupHeaders&&e.skipColumnHeaders)return o;let r=[];e.skipColumnGroupHeaders||(r=this.beans.colGroupSvc.createGroups(t,new Zm,null,void 0,!0));const i=BD(r,t,o.useGridHeaderLayout&&!!this.gos.get("hidePaddedHeaderRows"),!e.skipColumnHeaders,o.isSpanColumnHeader());for(const a of i){const n=a.grouping?o.onNewHeaderGroupingRow():o.onNewHeaderRow();for(const s of a.cells)n.onCell(this.withCollapsibleGroupRanges(s,t))}return o}}processPinnedTopRows(e,t){return o=>{const r=this.processRow.bind(this,o,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="top").sort((i,a)=>i.rowIndex-a.rowIndex).map(i=>this.pinnedRowModel?.getPinnedTopRow(i.rowIndex)).forEach(r):this.pinnedRowModel?.forEachPinnedRow("top",r),o}}processRows(e,t){return o=>{const r=this.rowModel,i=ve(this.gos,r),a=Kt(this.gos,r),n=!i&&e.onlySelected,s=this.processRow.bind(this,o,e,t),l=this.pinnedRowModel,c=g=>{if(!e.skipPinnedRowDuplicates){s(g);return}const u=g.pinnedSibling,h=u?.rowPinned;l?.isManual()&&u?.id!=null&&h&&l.getPinnedRowById(u.id,h)===u||s(g)},{exportedRows:d="filteredAndSorted"}=e;if(e.rowPositions)e.rowPositions.filter(g=>g.rowPinned==null).sort((g,u)=>g.rowIndex-u.rowIndex).map(g=>r.getRow(g.rowIndex)).filter(g=>g!=null).forEach(c);else if(this.colModel.pivotMode)i?r.forEachPivotNode(c,!0,d==="filteredAndSorted"):a?r.forEachNodeAfterFilterAndSort(c,!0):r.forEachNode(c);else if(e.onlySelectedAllPages||n){const g=this.beans.selectionSvc?.getSelectedNodes()??[],u=[];for(let h=0,p=g.length;h<p;++h){const f=g[h],m=f.level===-1&&f.sibling?.footer?f.sibling:f;(!m.pinnedSibling||m.displayed||m.level!==-1)&&u.push(m)}this.replicateSortedOrder(u),u.forEach(c)}else d==="all"?r.forEachNode(c):i||a?r.forEachNodeAfterFilterAndSort(c,!0):r.forEachNode(c);return o}}replicateSortedOrder(e){const{sortSvc:t,rowNodeSorter:o}=this.beans;if(!t||!o)return;const r=t.getSortOptions(),i=(a,n)=>a.rowIndex!=null&&n.rowIndex!=null?a.rowIndex-n.rowIndex:a.level===n.level?a.parent?.id===n.parent?.id?o.compareRowNodes(r,a,n)||(a.rowIndex??-1)-(n.rowIndex??-1):i(a.parent,n.parent):a.level>n.level?i(a.parent,n):i(a,n.parent);e.sort(i)}processPinnedBottomRows(e,t){return o=>{const r=this.processRow.bind(this,o,e,t);return e.rowPositions?e.rowPositions.filter(i=>i.rowPinned==="bottom").sort((i,a)=>i.rowIndex-a.rowIndex).map(i=>this.pinnedRowModel?.getPinnedBottomRow(i.rowIndex)).forEach(r):this.pinnedRowModel?.forEachPinnedRow("bottom",r),o}}getColumnsToExport(e){const{allColumns:t=!1,skipRowGroups:o=!1,exportRowNumbers:r=!1,columnKeys:i}=e,{colModel:a,gos:n,visibleCols:s}=this,l=a.pivotMode,c=u=>$r(u)?!1:!Le(u)||r;if(i?.length){const u=[];for(let h=0,p=i.length;h<p;++h){const f=a.getCol(i[h]);f&&c(f)&&u.push(f)}return u}const d=n.get("treeData");let g;return t&&!l?g=a.colsList:g=s.allCols,g=g.filter(u=>c(u)&&(o&&!d?!gl(u):!0)),g}withCollapsibleGroupRanges(e,t){if(e.type!=="group"||!e.column?.isExpandable())return e;const o=[];let r=-1;for(let i=0;i<=e.columnSpan;i++){const n=(i<e.columnSpan?t[e.columnIndex+i]:void 0)?.getColumnGroupShow()==="open";n&&r<0?r=i:!n&&r>=0&&(o.push([r,i-1]),r=-1)}return{...e,collapsibleGroupRanges:o}}},xw={moduleName:"SharedExport",version:R,beans:[jD]},kw=class extends x{getFileName(e){const t=this.getDefaultFileExtension();return e?.length||(e=this.getDefaultFileName()),e.includes(".")?e:`${e}.${t}`}resolveFileName(e){const{fileName:t}=e,o=typeof t=="function"?t(W(this.gos,{})):t;return this.getFileName(o)}runExport(e){const{overlays:t}=this.beans;t?t.showExportOverlay(e):e()}getData(e){return this.beans.gridSerializer.serialize(this.createSerializingSession(e),e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},Ew=class{constructor(e){this.useGridHeaderLayout=!1;const{colModel:t,rowGroupColsSvc:o,colNames:r,valueSvc:i,gos:a,log:n,processCellCallback:s,processHeaderCallback:l,processGroupHeaderCallback:c,processRowGroupCallback:d,valueFrom:g,transformValues:u}=e;this.colModel=t,this.rowGroupColsSvc=o,this.colNames=r,this.valueSvc=i,this.gos=a,this.log=n,this.processCellCallback=s,this.processHeaderCallback=l,this.processGroupHeaderCallback=c,this.processRowGroupCallback=d,this.valueFrom=g||"data",this.transformValues=u??!0}isSpanColumnHeader(){return this.useGridHeaderLayout}prepare(e){}extractHeaderValue(e){return this.getHeaderName(this.processHeaderCallback,e)??""}extractGroupHeaderValue(e){return(this.processGroupHeaderCallback?this.processGroupHeaderCallback(W(this.gos,{columnGroup:e})):this.colNames.getDisplayNameForColumnGroup(e,"header"))??""}extractRowCellValue(e){const{column:t,node:o,currentColumnIndex:r,accumulatedRowIndex:i,type:a,useRawFormula:n}=e,s=r===0&&zs(this.gos,o,this.colModel.pivotMode);if(this.processRowGroupCallback&&(this.gos.get("treeData")||o.group)&&(t.isRowGroupDisplayed(o.rowGroupColumn?.colId??"")||s))return{value:this.processRowGroupCallback(W(this.gos,{column:t,node:o}))??""};const l=this.valueSvc;if(this.processCellCallback){const p=this.valueFrom;return{value:this.processCellCallback(W(this.gos,{accumulatedRowIndex:i,column:t,node:o,value:l.getDisplayValue(t,o,p,this.transformValues),type:a,parseValue:f=>l.parseValue(t,o,f,l.getValue(t,o,p)),formatValue:f=>(this.transformValues?l.formatTransformedValue(t,o,f):void 0)??l.formatValue(t,o,f)??f}))??""}}const c=this.gos.get("treeData"),d=o.level===-1&&o.footer,g=t.showRowGroup===!0&&(o.group||c);if(!d&&(s||g)){let p="",f=o;for(;f&&f.level!==-1;){const{value:m,valueFormatted:w}=l.getValueForDisplay({column:s?void 0:t,node:f,includeValueFormatted:!0,exporting:!0,from:this.valueFrom,transformValues:this.transformValues});p=` -> ${w??m??""}${p}`,f=f.parent}return{value:p,valueFormatted:p}}const{value:u,valueFormatted:h}=l.getValueForDisplay({column:t,node:o,includeValueFormatted:!0,exporting:!0,useRawFormula:n,from:this.valueFrom,transformValues:this.transformValues});return{value:u??"",valueFormatted:h}}getHeaderName(e,t){return e?e(W(this.gos,{column:t})):this.colNames.getDisplayNameForColumn(t,"csv",!0)}},Rw=`\r
`,KD=class extends Ew{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:o}=e;this.suppressQuotes=t,this.columnSeparator=o}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,Rw),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((o,r)=>{r!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(o.data.value||""),o.mergeAcross&&this.appendEmptyCells(o.mergeAcross)})}))}onNewHeaderRow(){return this.beginNewLine(),{onCell:this.onNewHeaderCell.bind(this)}}onNewHeaderGroupingRow(){return this.onNewHeaderRow()}onNewHeaderCell(e){e.columnIndex!=0&&(this.result+=this.columnSeparator);let t="";e.type==="column"?t=this.extractHeaderValue(e.column):e.type!=="covered"&&e.column&&(t=this.extractGroupHeaderValue(e.column)),this.result+=this.putInQuotes(t),this.appendEmptyCells(e.columnSpan-1)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,o){t!=0&&(this.result+=this.columnSeparator);const r=this.extractRowCellValue({column:e,node:o,currentColumnIndex:t,accumulatedRowIndex:t,type:"csv",useRawFormula:!1});this.result+=this.putInQuotes(r.valueFormatted??r.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(this.log.warn(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=Rw),this.isFirstLine=!1}},YD=class extends kw{constructor(){super(...arguments),this.beanName="csvCreator"}getMergedParams(e){return{...this.gos.get("defaultCsvExportParams"),...e}}export(e){if(this.isExportSuppressed()){this.warn(51);return}this.runExport(()=>{const t=this.getMergedParams(e),o=this.getData(t),r=new Blob(["\uFEFF",o],{type:"text/plain"});dS(this.resolveFileName(t),r)})}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const o=t?{...e}:this.getMergedParams(e);return this.getData(o)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:o,rowGroupColsSvc:r,valueSvc:i,gos:a,log:n}=this.beans,{processCellCallback:s,processHeaderCallback:l,processGroupHeaderCallback:c,processRowGroupCallback:d,suppressQuotes:g,columnSeparator:u,valueFrom:h,transformValues:p}=e;return new KD({colModel:t,colNames:o,valueSvc:i,gos:a,log:n,processCellCallback:s??void 0,processHeaderCallback:l??void 0,processGroupHeaderCallback:c??void 0,processRowGroupCallback:d??void 0,suppressQuotes:g||!1,columnSeparator:u||",",rowGroupColsSvc:r,valueFrom:h,transformValues:p})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function QD(e,t){return e.csvCreator?.getDataAsCsv(t)}function ZD(e,t){e.csvCreator?.exportDataAsCsv(t)}var Fw={moduleName:"CsvExport",version:R,beans:[YD],apiFunctions:{getDataAsCsv:QD,exportDataAsCsv:ZD},dependsOn:[xw]},JD=class extends K1{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl")?.getGui()??me(this.beans).body}callPostProcessPopup(e,t,o,r,i){const a=this.gos.getCallback("postProcessPopup");if(a){const{column:n,rowNode:s,tooltipLocation:l}=e??{};a({column:n,rowNode:s,tooltipLocation:l,ePopup:o,type:t,eventSource:r,mouseEvent:i})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return rt(e)}},Ri={moduleName:"Popup",version:R,beans:[JD]},XD=".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);overflow-wrap:break-word;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-calculated-column-expression-tooltip),&:where(.ag-cell-editor-tooltip),&:where(.ag-cell-formula-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-calculated-column-expression-tooltip{white-space:pre-line}.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}}",gd=/\p{Sentence_Terminal}(?:["']|\p{Pe}|\p{Pf})*$/u,Ct=(e,t,o)=>{const r=t("tooltipValidationErrorSeparator",". ");if(o==="inline")return e.join(r);const i=[];for(let s=0,l=e.length;s<l;++s){const c=e[s].trim();c.length>0&&i.push(c)}const a=r.trimEnd();if(!gd.test(a)){const s=i.join(r);return s.length>0&&!gd.test(s)?`${s}.`:s}const n=r.slice(a.length);for(let s=0,l=i.length;s<l;++s)gd.test(i[s])||(i[s]+=a);return i.join(n)};function ud(e){return e?.tooltip===!1?void 0:e}function Mw(e){return!e||e.headerTooltip===!1?void 0:e}function ln(e){return e.get("tooltipShowMode")==="whenTruncated"}function $D(e,t){return ln(e)?Uo(t):void 0}function cn(e,t){if(e===!0)return t.valueFormatted??t.value;if(!(e===!1||e==null))return typeof e=="function"?e(t):e}function Dw(e,t,o){if(e.tooltip!==void 0)return cn(e.tooltip,t);if(L(e.tooltipField)){const i=o();if(i.resolved)return i.value}const r=e.tooltipValueGetter;return r?.(t)}function Pw(e,t,o){if(e.tooltip!==void 0)return cn(e.tooltip,t);const r=e.tooltipValueGetter;if(r)return r(t);if(L(e.tooltipField)){const i=o();if(i.resolved)return i.value}}function Tw(e,t,o){if(o!=null)return o;const r=e?.headerTooltip,i=e?.headerTooltipValueGetter;return i&&(r===void 0||typeof r=="string")?i(t)??cn(r,t):cn(r,t)}function dn(e){return e.tooltip!==void 0?e.tooltip!==!1:L(e.tooltipField)||e.tooltipValueGetter!=null}function hd(e,t,o){if(e!=null)return o?hS(e,t):e[t]}function eP(e){const{colDef:t}=e;e.setTooltipEnabled(t.tooltip!==!1&&(dn(t)||t.tooltipComponent!=null||t.tooltipComponentSelector!=null))}var tP=(e,t)=>e.getTranslatedMessage?.(t)??e.message,pd=(e,t,o)=>{const r=e.editModelSvc?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,i=e.editModelSvc?.getRowValidationModel().getRowValidation(t)?.errorMessages,a=r?.length?r:i;return a?.length?Ct(a,o,"inline"):void 0},Aw=e=>{const t=e.eGui;return t.children.length===0?t:t.querySelector(".ag-cell-value")},oP=(e,t)=>{if(!ln(e.gos))return;if(!t.isCellRenderer())return Uo(()=>Aw(t));const o=t.column.colDef;return!!o.showRowGroup||o.cellRenderer==="agGroupCellRenderer"?Uo(()=>{const i=t.eGui;return i.querySelector(".ag-group-value")??i.querySelector(".ag-cell-value")??i}):t.hasActiveCellRenderer()?void 0:Uo(()=>Aw(t))},Iw=(e,t,o)=>{if(e.editSvc?.isEditing(t,{withOpenEditor:!0}))return!1;const r=oP(e,t);return r?(!o||t.column.isTooltipEnabled())&&r():!0},rP=(e,t,o)=>{const r=t.colDef.tooltipField;if(!r)return{resolved:!1};if(o.group&&(!o.data||!e.valueSvc.displayIgnoresAggData(o)&&o.aggData?.[t.colId]!==void 0))return{resolved:!0,value:e.valueSvc.getValueForDisplay({column:t,node:o,from:"edit",transformValues:!1}).value};const a=o.data;if(!L(a))return{resolved:!1};const n=e.colModel.getCol(r);if(n){const s=e.editSvc?.getPendingEditValue(o,n,"batch");if(s!==void 0)return{resolved:!0,value:s}}return{resolved:!0,value:hd(a,r,t.isTooltipFieldContainsDots())}},iP=(e,t,o)=>{const{column:r,rowNode:i}=t,{editSvc:a,formula:n}=e;if(r.allowFormula&&n?.active||r.isCalculatedCol&&n){const c=n.getFormulaError(r,i);if(c)return{value:tP(c,o),location:"cellFormula",componentDefinition:r.colDef,shouldDisplay:()=>!!n.getFormulaError(r,i)}}if(!a?.isEditing(t)){const c=pd(e,t,o);if(c)return{value:c,location:"cellEditor",componentDefinition:r.colDef,shouldDisplay:()=>!a?.isEditing(t)&&!!pd(e,t,o)}}if(t.rendererTooltipValue!=null)return{value:t.rendererTooltipValue,location:"cell",componentDefinition:r.colDef,shouldDisplay:t.rendererTooltipShouldDisplay??(()=>Iw(e,t,!1))};const s=r.colDef;if(!dn(s))return null;const l=W(e.gos,{location:"cell",colDef:s,column:r,rowIndex:t.cellPosition.rowIndex,node:i,data:i.data,value:t.value,valueFormatted:t.valueFormatted});return{value:Dw(s,l,()=>rP(e,r,i)),location:"cell",componentDefinition:ud(s),shouldDisplay:()=>Iw(e,t,!0)}};function aP(e,t){const o=fo(e.localeSvc);let r=null;const i=()=>r=iP(e,t,o);return{getGui:()=>t.eGui,getTooltipComponentDefinition:()=>(r??i())?.componentDefinition,getTooltipValue:()=>i()?.value,getLocation:()=>r?.location??"cell",shouldDisplayTooltip:()=>{const a=r??i();return!!a&&(a.shouldDisplay?.()??!0)},getAdditionalParams:()=>({column:t.column,colDef:t.column.colDef,rowIndex:t.cellPosition.rowIndex,node:t.rowNode,data:t.rowNode.data,valueFormatted:t.valueFormatted})}}function nP(e,t,o){const r=o.getValidationElement?.(!0)??(!o.isPopup?.()&&t.eGui);if(!r)return;const i=fo(e.localeSvc);return{getGui:()=>r,getTooltipComponentDefinition:()=>t.column.colDef,getTooltipValue:()=>pd(e,t,i),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const a=e.editModelSvc?.getRowValidationModel()?.getRowValidationMap(),n=e.editModelSvc?.getCellValidationModel()?.getCellValidationMap();return!!a?.size||!!n?.size},getAdditionalParams:()=>({column:t.column,colDef:t.column.colDef,rowIndex:t.cellPosition.rowIndex,node:t.rowNode,data:t.rowNode.data})}}var sP=class extends x{constructor(e){super(),this.rowCtrl=e,this.tooltipFeatures=new Map,this.rendererGuards=new Map}claimRenderer(e,t){const{rendererGuards:o}=this;let r=o.get(e);return r||(r=new Ea,o.set(e,r)),t?r.claim():r.provisionalClaim()}pruneStaleElements(){const{tooltipFeatures:e,rendererGuards:t,rowCtrl:o}=this;if(e.size===0&&t.size===0)return;const r=o.getCurrentRowComp(),i=new Set([o.getCurrentRowElement()??void 0,r?.getPinnedLeftRowElement(),r?.getScrollingRowElement(),r?.getPinnedRightRowElement()]);for(const[a,n]of e)i.has(a)||(this.destroyBean(n.feature,this.beans.context),e.delete(a));for(const[a,n]of t)i.has(a)||(n.invalidate(),t.delete(a))}setRendererTooltip(e,t,o,r,i){if(!this.isAlive()||!i.isCurrent())return;const a=this.rowCtrl.getRowType()==="FullWidthGroup";if(o==null){this.clearTooltip(e),a&&this.setupGroupRowsTooltip(t,e);return}const n=a?t.rowGroupColumn:void 0,s=a?this.getGroupColDef(t):void 0;this.setupTooltip(e,()=>o,r,()=>({colDef:s,column:n,rowIndex:t.rowIndex??0,node:t,data:t.data}),()=>s,!0)}setupGroupRowsTooltip(e,t){if(this.tooltipFeatures.get(t)?.fromRenderer)return;const o=e.rowGroupColumn,{gos:r}=this,i=this.getGroupColDef(e);if(!i){this.clearTooltip(t);return}const a=dn(i),n=i.tooltip!==!1&&!a&&!!(i.tooltipComponent||i.tooltipComponentSelector);if(!a&&!n){this.clearTooltip(t);return}const{valueSvc:s}=this.beans;let l;const c=()=>{const d=s.getValueForDisplay({node:e,includeValueFormatted:!0,from:"edit"});return l=d.valueFormatted,d};this.setupTooltip(t,()=>{const{value:d,valueFormatted:g}=c(),u=W(r,{location:"fullWidthRow",colDef:i,column:o,rowIndex:e.rowIndex??0,node:e,data:e.data,value:d,valueFormatted:g??void 0});return a?Pw(i,u,()=>{const h=i.tooltipField;if(!h)return{resolved:!1};const p=e.data;if(!p)return{resolved:!0,value:d};const f=o?o.isTooltipFieldContainsDots():!r.get("suppressFieldDotNotation")&&h.includes(".");return{resolved:!0,value:hd(p,h,f)}}):d},void 0,()=>({colDef:i,column:o,rowIndex:e.rowIndex??0,node:e,data:e.data,valueFormatted:l??void 0}),()=>ud(i),!1)}getGroupColDef(e){return e.rowGroupColumn?.colDef??this.gos.get("autoGroupColumnDef")}setupTooltip(e,t,o,r,i,a){const{tooltipFeatures:n,rowCtrl:s,beans:l}=this;if(!s.getCurrentRowElement())return;const c={getGui:()=>e,getTooltipComponentDefinition:i,getTooltipValue:t,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:o,...r?{getAdditionalParams:r}:{}},d=l.tooltipSvc.registerTooltip(this,c,n.get(e)?.feature);d?n.set(e,{feature:d,fromRenderer:a}):n.delete(e)}clearTooltip(e){const{tooltipFeatures:t}=this,o=t.get(e)?.feature;o&&this.destroyBean(o,this.beans.context),t.delete(e)}destroy(){const{context:e}=this.beans,{tooltipFeatures:t,rendererGuards:o}=this;for(const r of t.values())this.destroyBean(r.feature,e);t.clear();for(const r of o.values())r.invalidate();o.clear(),super.destroy()}};function zw(e){const{beans:t,eGui:o,location:r,column:i,getColDef:a,getComponentTooltip:n,getDisplayName:s}=e;let l;const c=Uo(()=>o.querySelector(e.overflowElementSelector)),d=()=>{const g=s(),u=a();return l=g,W(t.gos,{location:r,colDef:u,column:i,value:g,valueFormatted:g})};return{getGui:()=>o,getTooltipComponentDefinition:()=>{const g=a()??void 0;return n().value!=null?g:Mw(g)},getLocation:()=>r,getTooltipValue:()=>{const{value:g}=n();return Tw(a(),d(),g)},shouldDisplayTooltip:()=>{const g=n().shouldDisplay;return g?g():!ln(t.gos)||e.hasCustomHeader()||c()},getAdditionalParams:()=>{const g=a();return{column:i,...g?{colDef:g}:{},valueFormatted:l}}}}function lP(e,t,o,r){if(!t.isAlive())return o;const{column:i,eGui:a}=t,n=zw({beans:e,eGui:a,location:"header",column:i,getColDef:()=>i.colDef,getComponentTooltip:r,getDisplayName:()=>e.colNames.getDisplayNameForColumn(i,"header",!0),overflowElementSelector:".ag-header-cell-text",hasCustomHeader:()=>!!i.colDef.headerComponent});return e.tooltipSvc.registerTooltip(t,n,o)}function cP(e,t,o,r){if(!t.isAlive())return o;const{column:i,eGui:a}=t,n=zw({beans:e,eGui:a,location:"headerGroup",column:i,getColDef:()=>i.getColGroupDef(),getComponentTooltip:r,getDisplayName:()=>e.colNames.getDisplayNameForColumnGroup(i,"header"),overflowElementSelector:".ag-header-group-text",hasCustomHeader:()=>!!i.getColGroupDef()?.headerGroupComponent});return e.tooltipSvc.registerTooltip(t,n,o)}var dP=class extends x{constructor(){super(...arguments),this.beanName="tooltipSvc"}createTooltip(e){const{beans:t}=this;return t.registry.createDynamicBean("tooltipFeature",!1,e,t)}createHighlightTooltip(e,t){const{beans:o}=this;return o.registry.createDynamicBean("highlightTooltipFeature",!1,e,t,o)}registerTooltip(e,t,o){const{beans:r}=this;e.destroyBean(o,r.context);const i=this.createTooltip(t);return i?e.createBean(i,r.context):void 0}initCol(e){eP(e)}setupHeaderTooltip(e,t,o){return lP(this.beans,e,t,o)}setupHeaderGroupTooltip(e,t,o){return cP(this.beans,e,t,o)}enableCellTooltipFeature(e){return this.createTooltip(aP(this.beans,e))}setupCellEditorTooltip(e,t){const o=nP(this.beans,e,t);return o?this.registerTooltip(e,o):void 0}createFullWidthRowTooltips(e){return this.createBean(new sP(e))}},gP=class extends eS{postConstruct(){super.postConstruct();const e=this.beans.tooltipTouchSvc?.registerSource(this.tooltipCtrl.getGui(),()=>this.canShowTooltip(),t=>this.prepareToShowTooltip(t,0));e&&this.addDestroyFunc(e)}onMouseEnter(e){this.beans.tooltipTouchSvc?.isCompatibilityMouseEvent(this.tooltipCtrl.getGui())||super.onMouseEnter(e)}createTooltipComp(e,t){const o=this.tooltipCtrl;R2(this.beans.userCompFactory,e,o.getTooltipComponentDefinition?.())?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}getPopupPositionParams(){const e=this.tooltipCtrl.getAdditionalParams?.(),t=e?.column;return{column:t&&Ys(t)?t:void 0,rowNode:e?.node,tooltipLocation:this.tooltipCtrl.getLocation?.()??"UNKNOWN"}}},uP=800,hP=class extends x{constructor(){super(...arguments),this.beanName="tooltipTouchSvc",this.targets=new Map,this.lastTouchEventTime=0}postConstruct(){const e=this.beans.eRootDiv.ownerDocument,t=new eo(e,{capture:!0,yieldsLongTap:!0,shouldTrackTouch:i=>this.startTracking(i),getLongTapTarget:i=>this.resolveLongTapTarget(i)});t.addEventListener("longTap",({touchStart:i})=>{const a=this.selectedTarget;this.selectedTarget=void 0,a?.active&&a.show(i)});const o=i=>{!this.gos.get("suppressTouch")&&this.getCandidates(i).length&&this.recordTouchAt(i)},r={capture:!0,passive:!0};e.addEventListener("touchend",o,r),e.addEventListener("touchcancel",o,r),this.addDestroyFunc(()=>{t.destroy(),e.removeEventListener("touchend",o,!0),e.removeEventListener("touchcancel",o,!0)})}registerSource(e,t,o){const r={element:e,canShow:t,show:o,active:!0},i=this.targets.get(e);return i?i.push(r):this.targets.set(e,[r]),()=>this.unregisterSource(r)}isCompatibilityMouseEvent(e){const t=this.lastTouchTarget;return!t||Date.now()-this.lastTouchEventTime>=uP?!1:e.contains(t)||t.contains(e)}recordTouchAt(e){this.lastTouchEventTime=Date.now();const t=this.getEventPath(e)[0];this.lastTouchTarget=t instanceof Node?t:void 0}startTracking(e){if(this.selectedTarget=void 0,this.gos.get("suppressTouch"))return!1;const t=this.getCandidates(e).length>0;return t&&this.recordTouchAt(e),t}resolveLongTapTarget(e){for(const t of this.getCandidates(e))if(t.canShow())return this.selectedTarget=t,t.element;this.selectedTarget=void 0}getCandidates(e){const t=[];for(const o of this.getEventPath(e)){const r=this.targets.get(o);if(r)for(let i=r.length-1;i>=0;i--)r[i].active&&t.push(r[i])}return t}getEventPath(e){const t=e.composedPath?.();if(t?.length)return t;const o=[];let r=e.target;for(;r;)o.push(r),r=r.parentNode;return o}unregisterSource(e){e.active=!1;const t=this.targets.get(e.element);if(!t)return;const o=t.indexOf(e);o>=0&&t.splice(o,1),t.length===0&&this.targets.delete(e.element)}destroy(){this.targets.clear(),this.selectedTarget=void 0,this.lastTouchTarget=void 0,super.destroy()}},fd={moduleName:"Tooltip",version:R,beans:[dP,hP],dynamicBeans:{tooltipFeature:Vu,highlightTooltipFeature:tS,tooltipStateManager:gP},userComponents:{agTooltipComponent:aS},dependsOn:[Ri],css:[XD]},fr=class{constructor(e){this.cellValueChanges=e}},md=class extends fr{constructor(e,t,o,r){super(e),this.initialRange=t,this.finalRange=o,this.ranges=r}},pP=10,Lw=class{constructor(e){this.actionStack=[],this.maxStackSize=e||pP,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){return e.cellValueChanges.length?(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e),!0):!1}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},fP=class extends x{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},o=this.activeCellEdit!==null&&Sa(this.activeCellEdit,t),r=this.activeRowEdit!==null&&Rp(this.activeRowEdit,t);if(!(o||r||this.isPasting||this.isRangeInAction))return;const{rowPinned:a,rowIndex:n,column:s,oldValue:l,value:c}=e,d={rowPinned:a,rowIndex:n,columnId:s.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const o=e.get("undoRedoCellEditingLimit");if(o<=0)return;this.undoStack=new Lw(o),this.redoStack=new Lw(o),this.addListeners();const r=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:i=>{i.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:r,newColumnsLoaded:r,columnGroupOpened:r,columnRowGroupChanged:r,columnMoved:r,columnPinned:r,columnVisible:r,rowDragEnd:r}),t.whenReady(this,i=>{this.gridBodyCtrl=i.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:o,redoStack:r}=this;t.dispatchEvent({type:"undoStarted",source:e});const i=this.undoRedo(o,r,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:i})}redo(e){const{eventSvc:t,undoStack:o,redoStack:r}=this;t.dispatchEvent({type:"redoStarted",source:e});const i=this.undoRedo(r,o,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:i})}undoRedo(e,t,o,r,i){if(!e)return!1;const a=e.pop();return a?.cellValueChanges?(this.processAction(a,n=>n[r],i),a instanceof md?this.processRange(a.ranges??[a[o]]):this.processCell(a.cellValueChanges),t.push(a),!0):!1}processAction(e,t,o){const{changeDetectionSvc:r,editSvc:i}=this.beans;i?.beginBulkWrite();try{r?.beginDeferred();for(const a of e.cellValueChanges){const{rowIndex:n,rowPinned:s,columnId:l}=a,c={rowIndex:n,rowPinned:s},d=We(this.beans,c);d?.displayed&&d.setDataValue(l,t(a),o)}}finally{r?.endDeferred(),i?.endBulkWrite()}}processRange(e){let t;const o=this.beans.rangeSvc;o.removeAllCellRanges(!0),e.forEach((r,i)=>{if(!r)return;const a=r.startRow,n=r.endRow;i===e.length-1&&(t={rowPinned:a.rowPinned,rowIndex:a.rowIndex,columnId:r.startColumn.getColId()},this.setLastFocusedCell(t,!1));const s={rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,rowEndIndex:n.rowIndex,rowEndPinned:n.rowPinned,columnStart:r.startColumn,columns:r.columns};o.addCellRange(s)})}processCell(e){const t=e[0],{rowIndex:o,rowPinned:r}=t,i={rowIndex:o,rowPinned:r},a=We(this.beans,i),n={rowPinned:t.rowPinned,rowIndex:a.rowIndex,columnId:t.columnId};this.setLastFocusedCell(n,!0)}setLastFocusedCell(e,t){const{rowIndex:o,columnId:r,rowPinned:i}=e,{colModel:a,focusSvc:n,rangeSvc:s}=this.beans,l=a.getCol(r);if(!l)return;const{scrollFeature:c}=this.gridBodyCtrl;c.ensureIndexVisible(o),c.ensureColumnVisible(l);const d={rowIndex:o,column:l,rowPinned:i};n.setFocusedCellOrSpan({...d,forceBrowserFocus:!0}),t&&s?.setRangeToCell(n.getFocusedCell()??d)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new fr(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 o=new fr(this.cellValueChanges);this.pushActionsToUndoStack(o)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new fr(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new md(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:o}=this.beans;t&&ft(o)?e=new md(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new fr(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){e==="bulkEditing"?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if(e==="bulkEditing"&&!this.bulkEditing||e==="batchEditing"&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;const o=new fr(t??[]);this.pushActionsToUndoStack(o)}pushActionsToUndoStack(e){this.cellValueChanges=[],(this.undoStack.push(e)||this.batchEditing)&&this.redoStack.clear()}},mP="@media (forced-colors:active){:where(.ag-cell-editing-error,.ag-cell-editor-input-invalid) .ag-input-field-input{outline-color:Mark}}.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,&.ag-cell-editor-input-invalid{border-color:var(--ag-invalid-color)!important;@media (forced-colors:active){--ag-invalid-color:Mark;--ag-internal-forced-colors-cell-focus-outline-color:Mark;--ag-input-invalid-border:1px solid Mark}}}: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) .ag-text-area-input{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}",vP={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},wP=class extends oi{constructor(){super(vP,[qa]),this.eEditor=k,this.seededValue=this}initialiseEditor(e){this.agSetEditValue(e.value),this.eEditor.getInputElement().setAttribute("tabindex","-1"),this.addManagedListeners(this.eEditor,{fieldValueChanged:o=>this.setAriaLabel(o.selected)})}agSetEditValue(e){this.params.value=e;const t=e??void 0;this.eEditor.setValue(t,!0),this.seededValue=this.eEditor.getValue(),this.setAriaLabel(t)}getValue(){const e=this.eEditor.getValue();return e===this.seededValue?this.params.value:e}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),o=Gi(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${r} (${o})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,o=this.getValue();return t?t({value:o,internalErrors:null,cellEditorParams:e}):null}},bP=new Set(["number","text"]),Lt=class extends It{constructor(e,t="ag-text-field",o="text"){super(e,t,o),this.clearButtonEnabled=!1}postConstruct(){super.postConstruct();const{clearButton:e,onValueClear:t,searchIcon:o}=this.config;e&&this.setClearButtonEnabled(!0),t&&this.onValueClear(t),o&&this.setSearchIcon(!0),this.addManagedPropertyListener("suppressInputClearButton",()=>this.refreshClearButton())}setInputType(e){super.setInputType(e),this.refreshClearButton()}setValue(e,t){const o=this.eInput;return o.value!==e&&(o.value=L(e)?e:""),this.refreshClearButton(),super.setValue(e,t)}setClearButtonEnabled(e){return this.clearButtonEnabled=e,e&&!this.eClearButton&&this.createClearButton(),this.refreshClearButton(),this}onValueClear(e){return this.addManagedListeners(this,{fieldValueCleared:e}),this}setSearchIcon(e){this.toggleCss("ag-input-field-search",e),e&&!this.eSearchIcon&&this.createSearchIcon();const{eSearchIcon:t}=this;return t&&Q(t,e,{skipAriaHidden:!0}),this}setFrameless(e){return this.eInput.classList.toggle("ag-input-frameless",e),this}setDisabled(e){return super.setDisabled(e),this.refreshClearButton(),this}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,o=e.length>0;t.setCustomValidity(e),o&&t.reportValidity(),Gn(t,o)}clearInput(){const{eInput:e}=this;e.focus(),e.value&&(this.setValue("",!0),this.dispatchLocalEvent({type:"fieldValueCleared"}))}createClearButton(){const e=gt({tag:"button",cls:"ag-input-field-clear-button",attrs:{type:"button"}}),t=this.beans.iconSvc.createIconNoSpan("cancel");t&&e.appendChild(t),Ht(e,this.getLocaleTextFunc()("ariaLabelInputClear","Clear")),this.addManagedElementListeners(e,{mousedown:o=>o.preventDefault(),click:()=>this.clearInput()}),this.eWrapper.appendChild(e),this.eClearButton=e}createSearchIcon(){const e=this.beans.iconSvc.createIconNoSpan("search");if(!e)return;const t=gt({tag:"span",cls:"ag-input-field-search-icon",attrs:{"aria-hidden":"true"}});t.appendChild(e),this.eWrapper.insertBefore(t,this.eWrapper.firstChild),this.eSearchIcon=t}refreshClearButton(){const{eClearButton:e,eInput:t}=this;if(!e||!t)return;const r=this.clearButtonEnabled&&!this.gos.get("suppressInputClearButton")&&bP.has(t.type)&&!this.isDisabled();t.classList.toggle("ag-input-field-input-with-clear-button",r),Q(e,r&&!!t.value)}},Fi={selector:"AG-INPUT-TEXT-FIELD",component:Lt},Ow=class extends Lt{constructor(e){super(e,"ag-date-field","date"),this.includeTime=!1}postConstruct(){super.postConstruct();const e=qt();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}});const{includeTime:t,min:o,max:r,step:i}=this.config;t!=null&&this.setIncludeTime(t),typeof o=="string"&&this.setMin(o),typeof r=="string"&&this.setMax(r),typeof i=="number"?this.setStep(i):this.eInput.step="any"}onWheel(e){Z(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Te(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,Ee(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Te(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,Ee(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,Ee(this.eInput,"step",e),this)}setIncludeTime(e){return this.includeTime===e?this:(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1),this)}flushPendingSegment(){Dr()&&Z(this.beans)===this.eInput&&CP(this.eInput)}getDate(){if(this.eInput.validity.valid)return he(this.getValue())??void 0}setDate(e,t){this.setValue(Te(e??null,this.includeTime),t)}},gn=e=>e.stopImmediatePropagation(),CP=e=>{e.addEventListener("focusout",gn,!0),e.addEventListener("focusin",gn,!0);try{e.blur(),e.focus({preventScroll:!0})}finally{e.removeEventListener("focusout",gn,!0),e.removeEventListener("focusin",gn,!0)}},vd={selector:"AG-INPUT-DATE-FIELD",component:Ow},wd="ag-cell-editor-input-invalid";function Vw(e,t){const o=e.getInputElement(),r=()=>un(t,o);e.addManagedElementListeners(o,{input:r,change:r,keyup:r,focus:r,blur:r}),e.addDestroyFunc(()=>t.classList.remove(wd)),r()}function un(e,t){e.classList.toggle(wd,!t.validity.valid)}var hn=class extends oi{constructor(e){super(),this.cellEditorInput=e,this.seededText=this,this.eEditor=k}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:o}=this,{cellStartedEdit:r,eventKey:i,suppressPreventDefault:a}=e;o.getInputElement().setAttribute("title",""),t.init(o,e);let n,s=!0,l=!1;r?(this.focusAfterAttached=!0,i===y.BACKSPACE||i===y.DELETE?n="":i?.length===1?a?s=!1:n=i:(n=t.getStartValue(),l=!0,i!==y.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,n=t.getStartValue(),l=!0),s&&n!=null&&o.setStartValue(n),this.seededText=l?o.getInputElement().value:this,this.addGuiEventListener("keydown",c=>{const{key:d}=c;(d===y.PAGE_UP||d===y.PAGE_DOWN)&&c.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;qt()||t.getFocusableElement().focus();const o=t.getInputElement();this.highlightAllOnFocus?o.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()}agFlushInput(){this.cellEditorInput.flushInput?.()}isUntouched(){return this.eEditor.getInputElement().value===this.seededText}getValue(){return this.isUntouched()?this.params.value:this.cellEditorInput.getValue()}agSetEditValue(e){this.params.value=e;const t=this.cellEditorInput.getStartValue();this.eEditor.setStartValue(t??null),this.seededText=this.eEditor.getInputElement().value}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors(this.isUntouched())}},yP={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},SP=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return yP}getAgComponents(){return[vd]}init(e,t){this.eEditor=e,this.params=t;const{browserAutoComplete:o,min:r,max:i,step:a,colDef:n}=t;e.setAutoComplete(o),r!=null&&e.setMin(r),i!=null&&e.setMax(i),a!=null&&e.setStep(a),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(e){const t=this.eEditor.getInputElement(),o=he(t.value),{params:r}=this,{getValidationErrors:i}=r,a=this.getInternalValidationErrors(o);if(i){const n=e?r.value:o;return i({value:n,cellEditorParams:r,internalErrors:a})}return a}getInternalValidationErrors(e){if(!e)return null;const{min:t,max:o}=this.params,r=this.getLocaleTextFunc(),i=[];if(t){const a=t instanceof Date?t:he(t);if(a&&e<a){const n=a.toLocaleDateString();i.push(r("minDateValidation",`Date must be after ${n}`,[n]))}}if(o){const a=o instanceof Date?o:he(o);if(a&&e>a){const n=a.toLocaleDateString();i.push(r("maxDateValidation",`Date must be before ${n}`,[n]))}}return i.length?i:null}flushInput(){this.eEditor.flushPendingSegment()}getValue(){const{eEditor:e,params:t}=this,o=e.getDate();return!L(o)&&!L(t.value)?t.value:o??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return Te(e,this.includeTime??!1)}},xP=class extends hn{constructor(){super(new SP(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}initialiseEditor(e){super.initialiseEditor(e),Vw(this.eEditor,e.eGridCell)}agSetEditValue(e){super.agSetEditValue(e),un(this.params.eGridCell,this.eEditor.getInputElement())}},kP={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},EP=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t,this.cachedRaw=this}getTemplate(){return kP}getAgComponents(){return[vd]}init(e,t){this.eEditor=e,this.params=t;const{browserAutoComplete:o,min:r,max:i,step:a,colDef:n}=t;e.setAutoComplete(o),r!=null&&e.setMin(r),i!=null&&e.setMax(i),a!=null&&e.setStep(a),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(n.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(e){const{eEditor:t,params:o}=this,r=he(t.getInputElement().value)??void 0,i=this.formatDate(r),a=this.getInternalValidationErrors(r);return o.getValidationErrors?o.getValidationErrors({value:e?o.value:this.parseEditorValue(i),cellEditorParams:o,internalErrors:a}):a}flushInput(){this.eEditor.flushPendingSegment()}getValue(){const e=this.formatDate(this.eEditor.getDate());return this.parseEditorValue(e)}parseEditorValue(e){const{params:t}=this;if(Object.is(this.cachedRaw,e))return this.cachedParsed;let o;return!L(e)&&!L(t.value)?o=t.value:o=t.parseValue(e??""),this.cachedRaw=e,this.cachedParsed=o,o}getStartValue(){return Te(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}getInternalValidationErrors(e){if(!e)return null;const{min:t,max:o}=this.params,r=this.getLocaleTextFunc(),i=[];if(t){const a=t instanceof Date?t:he(t);if(a&&e<a){const n=a.toLocaleDateString();i.push(r("minDateValidation",`Date must be after ${n}`,[n]))}}if(o){const a=o instanceof Date?o:he(o);if(a&&e>a){const n=a.toLocaleDateString();i.push(r("maxDateValidation",`Date must be before ${n}`,[n]))}}return i.length?i:null}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):he(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):Te(e??null,this.includeTime??!1)??void 0}},RP=class extends hn{constructor(){super(new EP(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}initialiseEditor(e){super.initialiseEditor(e),Vw(this.eEditor,e.eGridCell)}agSetEditValue(e){super.agSetEditValue(e),un(this.params.eGridCell,this.eEditor.getInputElement())}},Bw=class extends It{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const o=super.setValue(e,t);return this.eInput.value=e,o}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},Hw={selector:"AG-INPUT-TEXT-AREA",component:Bw},FP={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},MP=class extends oi{constructor(){super(FP,[Hw]),this.eEditor=k,this.cachedRaw=this,this.seededText=this}initialiseEditor(e){const{eEditor:t}=this,{browserAutoComplete:o,cellStartedEdit:r,eventKey:i,maxLength:a,cols:n,rows:s}=e;this.focusAfterAttached=r,t.getInputElement().setAttribute("title",""),t.setAutoComplete(o).setMaxLength(a||200).setCols(n||60).setRows(s||10);let l,c=!1;r?(this.focusAfterAttached=!0,i===y.BACKSPACE||i===y.DELETE?l="":i?.length===1?l=i:(l=this.getStartValue(e),c=!0,i!==y.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,l=this.getStartValue(e),c=!0),l!=null&&t.setValue(l,!0),this.seededText=c?t.getValue():this,this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}agSetEditValue(e){this.params.value=e;const t=this.getStartValue(this.params);this.eEditor.setValue(t??"",!0),this.seededText=this.eEditor.getValue()}onKeyDown(e){const t=e.key;(t===y.LEFT||t===y.UP||t===y.RIGHT||t===y.DOWN||e.shiftKey&&t===y.ENTER)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:o}=this,r=this.getLocaleTextFunc();e.setInputAriaLabel(r("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),o&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:o}=t,r=e.getValue();if(r===this.seededText||!L(r)&&!L(o))return o;if(Object.is(this.cachedRaw,r))return this.cachedParsed;const i=t.parseValue(r);return this.cachedRaw=r,this.cachedParsed=i,i}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:o}=e,r=this.getLocaleTextFunc(),i=this.getValue();let a=[];return t!=null&&bs(i,t)&&a.push(r("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),a.length||(a=null),o?o({value:i,internalErrors:a,cellEditorParams:e}):a}},pn=class extends Lt{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const a=Number.parseFloat(e.value),n=Number.isNaN(a)?"":this.normalizeBlurValue(a.toString());this.value!==n&&this.setValue(n)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:o,max:r,step:i}=this.config;typeof t=="number"&&this.setPrecision(t),typeof o=="number"&&this.setMin(o),typeof r=="number"&&this.setMax(r),typeof i=="number"&&this.setStep(i)}onWheel(e){Z(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}normalizeBlurValue(e){return this.isScientificNotation(e)?this.adjustPrecision(e,!0):this.normalizeValue(e)}adjustPrecision(e,t){const o=this.precision;if(o==null)return e;if(t){const i=Number.parseFloat(e).toFixed(o);return Number.parseFloat(i).toString()}const r=String(e).split(".");if(r.length>1){if(r[1].length<=o)return e;if(o>0)return`${r[0]}.${r[1].slice(0,o)}`}return r[0]}setMin(e){return this.min===e?this:(this.min=e,Ee(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Ee(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Ee(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(o=>super.setValue(o,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,o){if(L(o)){let r=this.isScientificNotation(o);if(r&&this.eInput.validity.valid)return e(o);if(!r){o=this.adjustPrecision(o);const i=this.normalizeValue(o);r=o!=i}if(r)return t(o)}return e(o)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const o=t.value;return this.isScientificNotation(o)?this.adjustPrecision(o,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},bd={selector:"AG-INPUT-NUMBER-FIELD",component:pn},DP={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},PP=class{constructor(e){this.getLocaleTextFunc=e,this.cachedRaw=this}getTemplate(){return DP}getAgComponents(){return[bd]}init(e,t){this.eEditor=e,this.params=t;const{browserAutoComplete:o,max:r,min:i,precision:a,step:n}=t;e.setAutoComplete(o),r!=null&&e.setMax(r),i!=null&&e.setMin(i),a!=null&&e.setPrecision(a),n!=null&&e.setStep(n);const s=e.getInputElement();t.preventStepping?e.addManagedElementListeners(s,{keydown:this.preventStepping}):t.showStepperButtons&&s.classList.add("ag-number-field-input-stepper")}getValidationErrors(e){const{params:t}=this,{min:o,max:r,getValidationErrors:i}=t,n=this.eEditor.getInputElement().valueAsNumber,s=this.getLocaleTextFunc();let l=[];return typeof n=="number"&&(o!=null&&n<o&&l.push(s("minValueValidation",`Must be greater than or equal to ${o}.`,[String(o)])),r!=null&&n>r&&l.push(s("maxValueValidation",`Must be less than or equal to ${r}.`,[String(r)]))),l.length||(l=null),i?i({value:e?t.value:this.parseRaw(this.eEditor.getValue(!0)),cellEditorParams:t,internalErrors:l}):l}preventStepping(e){(e.key===y.UP||e.key===y.DOWN)&&e.preventDefault()}getValue(){return this.parseRaw(this.eEditor.getValue(!0))}parseRaw(e){const{params:t}=this;if(!L(e)&&!L(t.value))return t.value;if(Object.is(this.cachedRaw,e))return this.cachedParsed;const o=t.parseValue(e);let r;if(o==null)r=o;else if(typeof o=="string")if(o==="")r=null;else{const i=Number(o);r=Number.isNaN(i)?null:i}else r=Number.isNaN(o)?null:o;return this.cachedRaw=e,this.cachedParsed=r,r}getStartValue(){return this.params.value}setCaret(){qt()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},TP=class extends hn{constructor(){super(new PP(()=>this.getLocaleTextFunc()))}},AP=".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);@media (forced-colors:active){background-color:SelectedItem}}}",IP="ag-active-item",zP=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",cls:`ag-list-item-text ag-${e}-list-item-text`,ref:"eText",children:t}]}),LP=class extends Ko{constructor(e,t,o){super(zP(e,t)),this.label=t,this.value=o,this.eText=k}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(IP,e),Ug(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const o=this.getGui();Cy(o,e),by(o,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getTooltipComponentDefinition:()=>{},getLocation:()=>"listItem",shouldDisplayTooltip:()=>eu(this.eText)},t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,e,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)}))}},OP=class extends Ko{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(AP)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case y.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const o=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(o)}break;case y.DOWN:case y.UP:e.preventDefault(),this.navigate(t);break;case y.PAGE_DOWN:case y.PAGE_UP:case y.PAGE_HOME:case y.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:o}=e,r=o??t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();Ce(this.getGui()),this.listItems=[],this.refreshAriaRole()}updateOptions(e){const t=this.options!==e;return t&&(this.clearOptions(),this.addOptions(e)),t}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const o=this.options.findIndex(r=>r.value===e);if(o!==-1){const r=this.options[o];this.value=r.value,this.displayValue=r.text,this.highlightItem(this.listItems[o]),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);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!ho(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const o=this.getGui(),{scrollTop:r,clientHeight:i}=o,{offsetTop:a,offsetHeight:n}=t;(a+n>r+i||a<r)&&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 o=new LP(this.cssIdentifier,t,e);o.setParentComponent(this);const r=this.createManagedBean(o);this.listItems.push(r),this.getGui().appendChild(r.getGui())}navigate(e){const t=e===y.DOWN;let o;const{listItems:r,highlightedItem:i}=this;if(!i)o=t?r[0]:pe(r);else{let n=r.indexOf(i)+(t?1:-1);n=Math.max(0,Math.min(n,r.length-1)),o=r[n]}this.highlightItem(o)}navigateToPage(e){const{listItems:t,highlightedItem:o}=this;if(!o||t.length===0)return;const r=t.indexOf(o),i=this.options.length-1,a=t[0].getHeight(),n=Math.floor(this.getGui().clientHeight/a);let s=-1;e===y.PAGE_HOME?s=0:e===y.PAGE_END?s=i:e===y.PAGE_DOWN?s=Math.min(r+n,i):e===y.PAGE_UP&&(s=Math.max(r-n,0)),s!==-1&&this.highlightItem(t[s])}refreshAriaRole(){xt(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((o,r)=>{o.setIndex(r+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},VP=".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:var(--ag-picker-button-border-radius);min-height:var(--ag-picker-field-height);overflow:hidden;&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}.ag-picker-field-wrapper:where(.ag-picker-has-focus),.ag-picker-field-wrapper: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)}@media (forced-colors:active){outline:2px solid Highlight}}.ag-picker-field-wrapper:disabled{opacity:.5}",BP={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"}}]}]},Nw=class extends _m{constructor(e){if(super(e,e?.template??BP,e?.agComponents??[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=k,this.eWrapper=k,this.eDisplayField=k,this.eIcon=k,this.registerCSS(VP),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:o,variableWidth:r,minPickerWidth:i,maxPickerWidth:a}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!r,o!=null&&this.setPickerMaxHeight(o),i!=null&&this.setPickerMinWidth(i),a!=null&&this.setPickerMaxWidth(a)}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:o,inputWidth:r}=this.config;if(o){const i=this.beans.iconSvc.createIconNoSpan(o);i&&this.eIcon.appendChild(i)}r!=null&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),qn(e,!1),this.ariaRole&&xt(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case y.UP:case y.DOWN:case y.ENTER:case y.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case y.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}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:o,pickerAriaLabelValue:r,modalPicker:i=!0},maxPickerHeight:a,minPickerWidth:n,maxPickerWidth:s,variableWidth:l,beans:c,eWrapper:d}=this,g={modal:i,eChild:e,closeOnEsc:!0,closedCallback:()=>{const f=kr(c);this.beforeHidePicker(),f&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(o,r),anchorToElement:d};e.style.position="absolute";const u=c.popupSvc,h=u.addPopup(g);l?(n&&(e.style.minWidth=n),e.style.width=Qn(Ui(d)),s&&(e.style.maxWidth=s)):_i(e,s??Ui(d));const p=a??`${Kn(u.getPopupParent())}px`;return e.style.setProperty("max-height",p),this.alignPickerToComponent(),h.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:o,gos:r},eWrapper:i,pickerComponent:a}=this,n=r.get("enableRtl")?"right":"left";o.positionPopupByComponent({type:t,eventSource:i,ePopup:a.getGui(),position:"under",alignSide:n,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;const t=this.getAriaElement();qn(t,e),this.ariaControlsId!=null&&Fy(t,e?this.ariaControlsId:null);const o=this.eWrapper.classList;o.toggle("ag-picker-expanded",e),o.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 _i(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setAriaControlsId(e){this.ariaControlsId=e}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},HP=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}.ag-select:where(:not(.ag-cell-editor,.ag-label-align-top)){min-height:var(--ag-list-item-height)}:where(.ag-select-readonly) .ag-picker-field-wrapper{--ag-picker-button-background-color:var(--ag-input-disabled-background-color);--ag-picker-button-focus-background-color:var(--ag-input-disabled-background-color);--ag-picker-button-border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}:where(.ag-select-readonly) .ag-picker-field-display{cursor:text;-webkit-user-select:text;-moz-user-select:text;user-select:text}:where(.ag-select){.ag-picker-field-wrapper{cursor:default;padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}.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(.ag-ltr) .ag-select-list-item{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-select-list-item{padding-right:var(--ag-spacing)}.ag-select-list-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",fn=class extends Nw{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.readOnly=!1,this.registerCSS(HP)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:Uo(()=>this.eDisplayField),getGui:()=>this.getGui(),getTooltipComponentDefinition:()=>{},getLocation:()=>"select"})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:o,readOnly:r}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),o&&t==null&&(this.eDisplayField.textContent=o),r!=null&&this.setReadOnly(r),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new OP("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),o=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",o),yr(t,this.getAriaElement().id),this.setAriaControlsId(o),e.addManagedElementListeners(e.getGui(),{mousedown:r=>{r?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem",keyboardEvent:this.commitKeyboardEvent})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}setReadOnly(e){return this.readOnly=e,wy(this.getAriaElement(),e),this.toggleCss("ag-select-readonly",e),e&&this.hidePicker(),this}onLabelOrWrapperMouseDown(e){if(this.readOnly){this.eWrapper.focus();return}super.onLabelOrWrapperMouseDown(e)}onKeyDown(e){if(this.readOnly){(e.ctrlKey||e.metaKey)&&e.code===y.A&&(e.preventDefault(),this.eDisplayField.ownerDocument.getSelection()?.selectAllChildren(this.eDisplayField));return}const{key:t}=e;switch(t===y.TAB&&this.hidePicker(),t){case y.ENTER:case y.UP:case y.DOWN:case y.PAGE_UP:case y.PAGE_DOWN:case y.PAGE_HOME:case y.PAGE_END:e.preventDefault(),this.isPickerDisplayed?(this.commitKeyboardEvent=t===y.ENTER?e:void 0,this.listComponent?.handleKeyDown(e),this.commitKeyboardEvent=void 0):super.onKeyDown(e);break;case y.ESCAPE:super.onKeyDown(e);break;case y.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;this.readOnly||!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}updateOptions(e){return this.listComponent?.updateOptions(e)&&this.setValue(void 0,!0),this}setValue(e,t,o){const{listComponent:r,config:{placeholder:i},eDisplayField:a,tooltipFeature:n}=this;if(this.value===e||!r)return this;if(o||r.setValue(e,!0),r.getValue()===this.getValue())return this;let l=r.getDisplayValue();return l==null&&i&&(l=i),a.textContent=l,n?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},Gw={selector:"AG-SELECT",component:fn},NP={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},GP=class extends oi{constructor(){super(NP,[Gw]),this.eEditor=k,this.startedByEnter=!1,this.seededValue=this,this.picked=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:o,gos:r}=this,{values:i,value:a,eventKey:n}=e;if(Me(i)){this.beans.log.warn(58);return}this.startedByEnter=n!=null?n===y.ENTER:!1;let s=!1;i.forEach(u=>{const h={value:u},p=o.formatValue(e.column,null,u),f=p!=null;h.text=f?p:u,t.addOption(h),s=s||a===u}),s?t.setValue(e.value??void 0,!0):e.values.length&&t.setValue(e.values[0],!0),this.seededValue=t.getValue();const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:d}=e;l!=null&&t.setPickerGap(l),d!=null&&t.setPickerMaxHeight(d),c!=null&&t.setPickerMaxWidth(c);const g=r.get("editType")!=="fullRow";this.addManagedListeners(this.eEditor,{selectedItem:u=>{this.picked=!0,g&&e.stopEditing(u.keyboardEvent==null,u.keyboardEvent)}})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}agSetEditValue(e){this.params.value=e,this.eEditor.setValue(e??void 0,!0),this.seededValue=this.eEditor.getValue(),this.picked=!1}getValue(){const e=this.eEditor.getValue();return!this.picked&&e===this.seededValue?this.params.value:e}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:o}=e,r=this.getValue();let i=[];if(t&&r!=null&&!t.includes(r)){const a=this.getLocaleTextFunc();i.push(a("invalidSelectionValidation","Invalid selection."))}else i=null;return o?o({value:r,internalErrors:i,cellEditorParams:e}):i}},WP={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},qP=class{constructor(e){this.getLocaleTextFunc=e,this.cachedRaw=this}getTemplate(){return WP}getAgComponents(){return[Fi]}init(e,t){this.eEditor=e,this.params=t;const{maxLength:o,browserAutoComplete:r}=t;e.setAutoComplete(r),o!=null&&e.setMaxLength(o)}getValidationErrors(e){const{params:t}=this,{maxLength:o,getValidationErrors:r}=t,i=e?t.value:this.getValue(),a=this.getLocaleTextFunc();let n=[];return o!=null&&bs(i,o)&&n.push(a("maxLengthValidation",`Must be ${o} characters or fewer.`,[String(o)])),n.length||(n=null),r?r({value:i,cellEditorParams:t,internalErrors:n}):n}getValue(){const{eEditor:e,params:t}=this,o=e.getValue();if(!L(o)&&!L(t.value))return t.value;if(Object.is(this.cachedRaw,o))return this.cachedParsed;const r=t.parseValue(o);return this.cachedRaw=o,this.cachedParsed=r,r}getStartValue(){const e=this.params;return e.useFormatter?e.formatValue(e.value):e.value}setCaret(){qt()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),o=L(t)&&t.length||0;o&&e.getInputElement().setSelectionRange(o,o)}},Ww=class extends hn{constructor(){super(new qP(()=>this.getLocaleTextFunc()))}};function yt(e){const t=e;return t?.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var UP=class extends x{constructor(){super(...arguments),this.beanName="editModelSvc",this.edits=new Map,this.editingCount=0,this.cellValidations=new qw,this.rowValidations=new Uw,this.suspendEdits=!1}suspend(e){this.suspendEdits=e}hasOpenEditors(){return this.editingCount>0}removeEdits({rowNode:e,column:t}){if(!this.hasEdits({rowNode:e})||!e)return;const o=this.getEditRow(e);t?(o.get(t)?.state==="editing"&&this.editingCount--,o.delete(t)):(o.forEach(r=>{r.state==="editing"&&this.editingCount--}),o.clear()),o.size===0&&this.edits.delete(e)}getEditRow(e,t){if(this.suspendEdits||this.edits.size===0)return;const o=e&&this.edits.get(e);if(o)return o;if(t){const r=e.pinnedSibling;if(r)return this.getEditRow(r)}}getEditRowDataValue(e){if(!e||this.edits.size===0)return;const t=this.getEditRow(e),o=e.pinnedSibling,r=o?this.getEditRow(o):void 0;if(!t&&!r)return;const i={...e.data};return t&&_w(t,i),r&&_w(r,i),i}getEdit(e={}){return this.getCellEdit(e.rowNode,e.column)}getCellEdit(e,t){const o=this.edits;if(!(o.size===0||this.suspendEdits||!e||!t))return o.get(e)?.get(t)}getCellEditWithSibling(e,t){return this.getCellEdit(e,t)??this.getCellEdit(e?.pinnedSibling,t)}getEditMap(){return this.suspendEdits?null:this.edits}getEditMapCopy(){const e=new Map;return this.suspendEdits||this.edits.forEach((t,o)=>{const r=new Map;t.forEach(({editorState:i,...a},n)=>r.set(n,{...a})),e.set(o,r)}),e}setEditMap(e){const t=new Map;let o=0;e.forEach((i,a)=>{const n=new Map;i.forEach((s,l)=>{s.state==="editing"&&o++,n.set(l,{...s})}),t.set(a,n)});const r=this.edits;r.clear(),t.forEach((i,a)=>r.set(a,i)),this.editingCount=o}setEdit(e,t){const{rowNode:o,column:r}=e,i=this.edits;let a=i.get(o);a||(a=new Map,i.set(o,a));const n=a.get(r),s=this.suspendEdits?void 0:n,l={editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0},...s,...t},c=n?.state==="editing",d=l.state==="editing";return c!==d&&(this.editingCount+=d?1:-1),a.set(r,l),l}clearEditValue(e){const{rowNode:t,column:o}=e;if(!t)return;const r=a=>{a.state==="editing"&&this.editingCount--,a.editorValue=void 0,a.pendingValue=a.sourceValue,a.state="changed"};if(!o){this.getEditRow(t)?.forEach(r);return}const i=this.getEdit(e);i&&r(i)}getState(e){if(!this.suspendEdits)return this.getEdit(e)?.state}getEditPositions(e){if(this.suspendEdits||(e??this.edits).size===0)return[];const t=[];return(e??this.edits).forEach((o,r)=>{for(const i of o.keys()){const{editorState:a,...n}=o.get(i);t.push({rowNode:r,column:i,...n})}}),t}hasRowEdits(e,t){return this.suspendEdits||this.edits.size===0?!1:!!this.getEditRow(e,t)}hasEdits(e={},t={}){if(this.suspendEdits||this.edits.size===0)return!1;const{rowNode:o,column:r}=e,{withOpenEditor:i}=t;if(o){const a=this.getEditRow(o,t.checkSiblings);return a?r?i?this.getEdit(e)?.state==="editing":a.has(r):a.size!==0?i?Array.from(a.values()).some(({state:n})=>n==="editing"):!0:!1:!1}return i?this.hasOpenEditors():this.edits.size>0}start(e){const{rowNode:t,column:o}=e;let r=this.edits.get(t);r||(r=new Map,this.edits.set(t,r)),o&&!r.has(o)&&(r.set(o,{editorValue:void 0,pendingValue:ye,sourceValue:this.beans.valueSvc.getValueFromData(o,t),state:"editing",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}}),this.editingCount++)}stop(e,t,o){if(this.hasEdits(e))if(t){const r=this.getEditRow(e.rowNode)?.get(e.column);r&&(r.pendingValue===ye||r.pendingValue===r.sourceValue)?this.removeEdits(e):r&&o&&(r.editorValue=void 0)}else this.removeEdits(e)}clear(){for(const e of this.edits.values())e.clear();this.edits.clear(),this.editingCount=0}hasValidationErrors(e){return this.rowValidations.hasRowValidation(e)||this.cellValidations.hasCellValidation(e)}getCellValidationModel(){return this.cellValidations}getRowValidationModel(){return this.rowValidations}setCellValidationModel(e){this.cellValidations=e}setRowValidationModel(e){this.rowValidations=e}destroy(){super.destroy(),this.clear()}},qw=class{constructor(){this.cellValidations=new Map}getCellValidation(e){const{rowNode:t,column:o}=e??{};return this.cellValidations?.get(t)?.get(o)}hasCellValidation(e){const t=e?.rowNode;return t?e.column?!!this.getCellValidation(e):this.cellValidations.has(t):this.cellValidations.size>0}setCellValidation(e,t){const{rowNode:o,column:r}=e;this.cellValidations.has(o)||this.cellValidations.set(o,new Map),this.cellValidations.get(o).set(r,{errorMessages:[...t.errorMessages]})}clearCellValidation(e){const{rowNode:t,column:o}=e,r=this.cellValidations,i=r.get(t);i&&(i.delete(o),i.size===0&&r.delete(t))}setCellValidationMap(e){this.cellValidations=e}getCellValidationMap(){return this.cellValidations}clearCellValidationMap(){this.cellValidations.clear()}},Uw=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,{errorMessages:[...t.errorMessages]})}clearRowValidation({rowNode:e}){this.rowValidations.delete(e)}setRowValidationMap(e){this.rowValidations=e}getRowValidationMap(){return this.rowValidations}clearRowValidationMap(){this.rowValidations.clear()}},_w=(e,t)=>{e.forEach(({editorValue:o,pendingValue:r},i)=>{const a=o===void 0?r:o;a!==ye&&(t[i.getColId()]=a)})};function Oo(e,t={}){const{rowIndex:o,rowId:r,rowCtrl:i,rowPinned:a}=t;if(i)return i;const{rowModel:n,rowRenderer:s}=e;let{rowNode:l}=t;return l||(r?l=U2(e,r,a):o!=null&&(l=n.getRow(o))),l?s.getRowCtrlByNode(l):void 0}function K(e,t={}){const{cellCtrl:o,colId:r,columnId:i,column:a}=t;if(o)return o;const n=e.colModel.getCol(r??i??Cd(a));if(!n)return;const s=t.rowCtrl??Oo(e,t),l=s?.getCellCtrl(n);if(l)return l;const c=t.rowNode??s?.rowNode;if(c)return e.rowRenderer.getCellCtrls([c],[n])?.[0]}function jw(e){const{editSvc:t}=e;t?.isBatchEditing()?t.stopBatchEditors(!1):t?.stopEditing(void 0,{source:"api"})}function _P(e,t,o){const{gos:r,popupSvc:i}=t;if(!r.get("stopEditingWhenCellsLoseFocus"))return;const a=n=>{const s=n.relatedTarget;if(Zi(s)===null){jw(t);return}let l=o.some(c=>c.contains(s))&&r.isElementInThisInstance(s);l||(l=!!i&&(i.getActivePopups().some(c=>c.contains(s))||i.isElementWithinCustomPopup(s))),l||jw(t)};for(const n of o)e.addManagedElementListeners(n,{focusout:a})}function Cd(e){if(e)return typeof e=="string"?e:e.getColId()}var yd=(e,t,{previous:o}={})=>{const r=[];for(const[a,n]of t.cell.getCellValidationMap())for(const[s,{errorMessages:l}]of n){const c=Ct(l,e,"announcement"),d=o?.cell.getCellValidation({rowNode:a,column:s})?.errorMessages;c.length>0&&(!d||c!==Ct(d,e,"announcement"))&&r.push({rowNode:a,column:s,message:c})}const i=[];for(const[a,{errorMessages:n}]of t.row.getRowValidationMap()){const s=Ct(n,e,"announcement"),l=o?.row.getRowValidation({rowNode:a})?.errorMessages;s.length>0&&(!l||s!==Ct(l,e,"announcement"))&&i.push({rowNode:a,message:s})}return{cells:r,rows:i}},jP=(e,t,o)=>{for(const[r,i]of t.cell.getCellValidationMap())for(const[a,{errorMessages:n}]of i){const s=Ct(n,e,"announcement"),l=o.cell.getCellValidation({rowNode:r,column:a})?.errorMessages??[];if(s.length>0&&Ct(l,e,"announcement").length===0)return!0}for(const[r,{errorMessages:i}]of t.row.getRowValidationMap()){const a=Ct(i,e,"announcement"),n=o.row.getRowValidation({rowNode:r})?.errorMessages??[];if(a.length>0&&Ct(n,e,"announcement").length===0)return!0}return!1},KP=(e,t)=>e.colNames.getDisplayNameForColumn(t,"header",!0)||t.getColId(),YP=(e,t)=>{const{rowIndex:o,rowPinned:r}=t;if(o==null)return;const i={rowIndex:o,rowPinned:r??null};return Rl(e)+kl(e,i)+1},Kw=(e,t)=>e("ariaRowIndex",`Row ${t}`,[String(t)]),Yw=(e,t,{cells:o,rows:r},i,a)=>{const n=new Map,s=e.visibleCols.allCols;for(let c=0,d=s.length;c<d;++c)n.set(s[c],c);const l=[];for(let c=0,d=o.length;c<d;++c){const{rowNode:g,column:u,message:h}=o[c],p=i?.get(g),f=p==null?"":`${Kw(t,p)}, `;l.push({rowNode:g,columnOrder:n.get(u)??Number.MAX_SAFE_INTEGER,rowError:!1,message:`${f}${KP(e,u)}: ${h}`})}for(let c=0,d=r.length;c<d;++c)l.push({rowNode:r[c].rowNode,columnOrder:Number.MAX_SAFE_INTEGER,rowError:!0,message:QP(t,r[c],i)});if(l.sort((c,d)=>{const g=(i?.get(c.rowNode)??Number.MAX_SAFE_INTEGER)-(i?.get(d.rowNode)??Number.MAX_SAFE_INTEGER);return g!==0?g:c.rowError!==d.rowError?c.rowError?1:-1:c.columnOrder-d.columnOrder}),a){const c=l.find(({rowError:d})=>!d);c&&(c.message=`${a} ${c.message}`)}return l.map(({message:c})=>c).join(" ")},QP=(e,{rowNode:t,message:o},r)=>{const i=e("ariaFullRowValidationError",`Full Row Validation: ${o}`,[o]),a=r?.get(t);return a==null?i:`${Kw(e,a)}, ${i}`},Qw=(e,{cells:t,rows:o},r,i=!1)=>{const a=new Set;for(let s=0,l=t.length;s<l;++s)a.add(t[s].rowNode);for(let s=0,l=o.length;s<l;++s)a.add(o[s].rowNode);if(a.size===0||!i&&a.size===1&&(!r||a.has(r)))return;const n=new Map;for(const s of a){const l=YP(e,s);l!=null&&n.set(s,l)}return n},Zw=(e,t,{cells:o,rows:r})=>{const i=Qw(e,{cells:o,rows:r}),a=o.length>0?t("ariaValidationErrorPrefix","Cell Editor Validation"):void 0;return Yw(e,t,{cells:o,rows:r},i,a)},Jw=(e,t,o)=>{const r=fo(e.localeSvc),i=yd(r,o,{previous:t}),a=Zw(e,r,i);if(a.length>0)e.ariaAnnounce.announceValue(a,"editorValidation");else if(jP(r,t,o)){const n=yd(r,o);e.ariaAnnounce.announceValue(Zw(e,r,n),"editorValidation")}},Xw=(e,t)=>{const{editModelSvc:o,ariaAnnounce:r,localeSvc:i}=e;if(!o)return;const a=fo(i),{cells:n,rows:s}=yd(a,{cell:o.getCellValidationModel(),row:o.getRowValidationModel()}),l=Qw(e,{cells:n,rows:s},t,!t&&(e.editSvc?.isBatchEditing()??!1)),c=Yw(e,a,{cells:n,rows:s},l);if(c.length===0)return;const d=a("ariaFullRowEditValidationFailed",`Cannot complete row edit. ${c}`,[c]);r.announceValue(d,"editorValidation")},ye=Symbol("unedited"),ZP=(e,t={})=>{const o=e.rowRenderer.getCellCtrls(t.rowNodes,t.columns),r=new Array(o.length);let i=0;for(let a=0,n=o.length;a<n;++a){const l=o[a].comp?.getCellEditor();l&&(r[i++]=yt(l))}return r.length=i,r};function JP(e,t,o,r,i,a){t.length===0&&o?.rowNode&&o?.column&&Vo(e,o,{key:r,event:i,cellStartedEdit:a});const{valueSvc:n,editSvc:s,editModelSvc:l}=e,{rowNode:c,column:d}=o??{},g=new Map;for(const u of t){const{rowNode:h,column:p}=u,f=K(e,u);if(!f){if(h&&p){const w=n.getValueFromData(p,h),b=(o?.rowNode===h&&o?.column===p&&r||void 0)??s?.getCellDataValue(u)??n.getDisplayValue(p,h,"edit",!1)??w??ye;l?.setEdit(u,{pendingValue:mr(e,b,!1,p),sourceValue:w,state:"editing"})}continue}const m=a&&c===f.rowNode&&f.column===d;s.withEditorAttachValidationCache(g,f,()=>Vo(e,{rowNode:c,column:f.column},{key:m?r:null,event:m?i:null,cellStartedEdit:m&&a}))}}function lt({pendingValue:e,sourceValue:t}){return e===ye&&(e=t),e!==t}function XP(e){const t=new Map;for(const[o,r]of e){const i=new Map;for(const[a,n]of r)lt(n)&&i.set(a,n);i.size>0&&t.set(o,i)}return t}function Vo(e,t,o){const{key:r,event:i,cellStartedEdit:a,silent:n}=o??{},{editModelSvc:s,gos:l,userCompFactory:c}=e,d=K(e,t),g=d?.comp?.getCellEditor(),u=eb(e,t,r,a&&!n),h=s?.getEdit(t),p=u.value??h?.sourceValue;if(g){s?.setEdit(t,{editorValue:mr(e,p,!0,t.column),state:"editing"}),g.refresh?.(u);return}const f=t.column.getColDef(),m=_h(c,f,u);if(!m)return;const{popupFromSelector:w,popupPositionFromSelector:v}=m,C=w??!!f.cellEditorPopup,b=v??f.cellEditorPopupPosition;if(rb(m.params,i),!d)return;const{rowCtrl:S,comp:E}=d,{cellStartedEditing:F,cellStoppedEditing:P}=(n?h?.editorState:void 0)??{};s?.setEdit(t,{editorValue:mr(e,p,!0,t.column),state:"editing",editorState:{cellStartedEditing:F,cellStoppedEditing:P}}),d.editCompDetails=m,e.editSvc?.invalidateEditorsValidation(),E?.setEditDetails(m,C,b,l.get("reactiveCustomComponents")),S?.refreshRow({suppressFlash:!0}),d.refreshNoteState(),$P(e,t,i,p,n)}function $P(e,t,o,r,i){const{editSvc:a,editModelSvc:n}=e,s=n?.getEdit(t);!i&&s?.state==="editing"&&!s?.editorState?.cellStartedEditing&&(a?.dispatchCellEvent(t,o,"cellEditingStarted",{value:r}),n?.setEdit(t,{editorState:{cellStartedEditing:!0}}))}function $w(e,t,o,r){const i={editorValueExists:!1};if(o?.isCancelling||(r===void 0&&e.editSvc.hasValidationRules()&&(r=(t.getValidationErrors?.()?.length??0)>0),r))return i;if(o?.isStopping){const n=t.isCancelAfterEnd?.();if(n)return{...i,isCancelAfterEnd:n}}return{editorValue:t.getValue(),editorValueExists:!0}}function eb(e,t,o,r){const{valueSvc:i,gos:a,editSvc:n}=e,s=e.gos.get("enableGroupEdit"),l=K(e,t),c=t.rowNode?.rowIndex??void 0,d=n?.isBatchEditing(),g=e.colModel.getCol(t.column),{rowNode:u,column:h}=t,p=l.comp?.getCellEditor(),f=n?.getCellDataValue(t),m=f===void 0&&p?$w(e,p)?.editorValue:f,w=m===ye?i.getDisplayValue(g,u,"edit",!1):m;let v=s?m:w;return g.allowFormula&&e.formula?.isFormula(v)&&(v=e.formula?.normaliseFormula(v,!0)??v),W(a,{value:v,eventKey:o??null,column:h,colDef:h.getColDef(),rowIndex:c,node:u,data:u.data,cellStartedEdit:!!r,onKeyDown:l?.onKeyDown.bind(l),stopEditing:(C,b)=>{n.stopEditing(t,{source:d?"ui":"api",suppressNavigateAfterEdit:C,event:b}),n.cellEditingInvalidCommitBlocks()&&e.editModelSvc?.hasValidationErrors({rowNode:u})||St(e,t,{})},eGridCell:l?.eGui,parseValue:C=>i.parseValue(g,u,C,l?.value),formatValue:l?.formatValue.bind(l),validate:()=>{cb(e)}})}function tb(e,t,o,r,i){!i&&(r.state==="editing"||r.pendingValue===ye)||lt(r)||e.removeEdits({rowNode:t,column:o})}function Sd(e,t){const{editModelSvc:o}=e;o?.getEditMap()?.forEach((r,i)=>{r.forEach((a,n)=>tb(o,i,n,a,t))})}function ob(e,t,o){const{editModelSvc:r}=e;if(!r)return;const i=r.getEdit(t);i&&tb(r,t.rowNode,t.column,i,o)}function eT(e,t){const o=t.comp?.getCellEditor();if(!o?.refresh)return;const{eventKey:r,cellStartedEdit:i}=t.editCompDetails.params,{column:a}=t,n=eb(e,t,r,i),s=a.getColDef(),l=_h(e.userCompFactory,s,n);o.refresh(rb(l.params,r))}function rb(e,t){return t instanceof KeyboardEvent&&e.column.getColDef().cellEditor==="agNumberCellEditor"?e.suppressPreventDefault=["-","+",".","e"].includes(t?.key??"")||e.suppressPreventDefault:t?.preventDefault?.(),e}function mn(e){const t=e.editModelSvc;if(!t?.hasOpenEditors())return;const o={};t.getEditMap()?.forEach((r,i)=>{o.rowNode=i;for(const a of r.keys()){o.column=a;const n=K(e,o)?.comp?.getCellEditor();n&&yt(n).agFlushInput?.()}})}var tT=(e,t)=>{if(mn(e),!e.editSvc.cellEditingInvalidCommitBlocks()){const r=t.comp?.getCellEditor();let i;return r&&e.editSvc.hasValidationRules()&&(i=new Map,ib(i,r,yt(r))),{revertBlockedInvalid:!1,validationCache:i}}const o=no(e);return{revertBlockedInvalid:!!e.editModelSvc?.getCellValidationModel().hasCellValidation(t),validationCache:o}},oT=(e,t,o)=>{const r=e.editSvc;if(!r?.isEditing(t,{withOpenEditor:!0}))return;const i=o instanceof KeyboardEvent,a=o instanceof MouseEvent,n=i&&o.key===y.ESCAPE,s=e.gos.get("editType")==="fullRow",l=n?void 0:tT(e,t),c=l?.revertBlockedInvalid??!1,d=l?.validationCache,g=r.isBatchEditing(),{rowNode:u,column:h}=t;if(!n&&s&&r.isRowEditing(u,{checkSiblings:!0})){c?r.revertCellEdit({rowNode:u,column:h},d):r.closeCellEditor({rowNode:u,column:h},d);return}if(c&&g){r.revertCellEdit({rowNode:u,column:h},d);return}r.stopEditing(t,{source:g?"ui":"api",cancel:n||c,event:i||a?o:void 0},d),n&&t.focusCell({forceBrowserFocus:!0,sourceEvent:o})},ib=(e,t,o)=>{let r=e.get(t);return r===void 0&&(r=[...o.getValidationErrors?.()??[]],e.set(t,r)),r},ab=(e,t,o=new Map)=>{for(const r of e.rowRenderer.getCellCtrls()){const i=r.comp?.getCellEditor();if(!i)continue;const a=yt(i),n=ib(o,i,a);t?.(r,a,n)}return o},rT=e=>ab(e),Bo=(e,t,o)=>{const r={};e.editModelSvc?.getEditMap()?.forEach((i,a)=>{r.rowNode=a;for(const n of i.keys())r.column=n,nb(e,r,t,o)})},nb=(e,t,o,r)=>{const i=K(e,t)?.comp?.getCellEditor();if(!i)return;const a=r?.get(i),n=a===void 0?void 0:a.length>0,{editorValue:s,editorValueExists:l,isCancelAfterEnd:c}=$w(e,i,o,n);if(c){const{cellStartedEditing:d,cellStoppedEditing:g}=e.editModelSvc?.getEdit(t)?.editorState??{};e.editModelSvc?.setEdit(t,{editorState:{isCancelAfterEnd:c,cellStartedEditing:d,cellStoppedEditing:g}})}sb(e,t,s,!l,o)};function Mi(e,t,o,r){sb(e,t,o,!1,r)}function sb(e,t,o,r,i){const{editModelSvc:a,valueSvc:n}=e;if(!a)return;const{rowNode:s,column:l}=t;let c=a.getEdit(t);if(c?.sourceValue===void 0){const d=c?mr(e,c.editorValue,!1,l):ye,g={sourceValue:n.getValueFromData(l,s),pendingValue:d};i?.persist&&(g.state="changed"),c=a.setEdit(t,g)}a.setEdit(t,{editorValue:r?mr(e,c.sourceValue,!0,l):o}),i?.persist&&iT(e,t)}function mr(e,t,o,r){const{formula:i}=e;return r.allowFormula&&i?.isFormula(t)?i?.normaliseFormula(t,o)??t:t}function iT(e,t){const{editModelSvc:o}=e,r=o?.getEdit(t),a={pendingValue:mr(e,r?.editorValue,!1,t.column)};!r?.editorState?.cellStoppedEditing&&r?.state!=="editing"&&(a.state="changed"),o?.setEdit(t,a)}function vn(e,t,o={},r){for(let i=0,a=t.length;i<a;++i)St(e,t[i],o,void 0,r)}function St(e,t,o,r=K(e,t),i){const a=e.editModelSvc;r&&e.editSvc?.clearPendingEditorAttachValidation(r);const n=a?.getEdit(t);let s;if(n&&n.state!=="editing"&&n.editorState?.cellStoppedEditing?s=n.state:s="changed",!r){if(n){a?.getCellValidationModel().clearCellValidation(t),a?.setEdit(t,{state:s}),xd(e,t,n,o);const d=Oo(e,{rowNode:t.rowNode});d&&e.editSvc?.applyRowEditStyles(d)}return}const l=r.comp,c=l?.getCellEditor();if(l&&!c){r?.refreshCell(),n&&(a?.setEdit(t,{state:s}),xd(e,t,n,o));return}if(!o.cancel&&e.editSvc.hasValidationRules()){const d=c?i?.get(c):void 0,g=n&&(d??c?.getValidationErrors?.()),u=a?.getCellValidationModel();g?.length?u?.setCellValidation(t,{errorMessages:g}):u?.clearCellValidation(t)}n&&a?.setEdit(t,{state:s}),l?.setEditDetails(),l?.refreshEditStyles(!1,!1),r?.refreshCell({force:!0,suppressFlash:!0}),xd(e,t,n,o)}function aT(e,t){const{sourceValue:o,pendingValue:r}=e;let i;return!t&&r!==ye&&(i=r),{valueChanged:!t&&lt(e),newValue:i,oldValue:o,value:o}}function nT(e,t,o){if(o||e.editorState.isCancelAfterEnd)return{valueChanged:!1,newValue:void 0,oldValue:e.sourceValue};let r=e.editorValue;return(r==null||r===ye)&&(r=t?.pendingValue),r===ye&&(r=void 0),{valueChanged:lt(e),newValue:r,oldValue:e.sourceValue}}var xd=(e,t,o,r)=>{const i=e.editModelSvc?.getEdit(t);if(!i||i.state==="editing")return;const a=r?.cancel,n=e.gos.get("enableGroupEdit")?aT(i,a):nT(i,o,a);sT(e,t,n,r)};function sT(e,t,o,{silent:r,event:i}={}){const{editSvc:a,editModelSvc:n}=e,s=n?.getEdit(t),{editorState:l}=s??{},{isCancelBeforeStart:c,cellStartedEditing:d,cellStoppedEditing:g}=l??{};!r&&!c&&d&&!g&&(a?.dispatchCellEvent(t,i,"cellEditingStopped",o),n?.setEdit(t,{editorState:{cellStoppedEditing:!0}}))}function lT(e){const t=e.rowRenderer.getCellCtrls();for(let o=0,r=t.length;o<r;++o){const a=t[o].comp?.getCellEditor();if(a){const n=yt(a);if(n.getValidationElement||n.getValidationErrors)return!0}}return!1}function no(e,t,o){const r=e.editSvc;if(!(t||r?.hasValidationRules()||e.editModelSvc?.hasValidationErrors()))return new Map;const i=new qw,{editModelSvc:a}=e,n=a?.getCellValidationModel(),s=a?.getRowValidationModel(),l=fo(e.localeSvc),c=new Set;o=ab(e,(d,g,u)=>{const{rowNode:h,column:p}=d,f=u.length>0,m=g.getValidationElement?.(!1)??(!g.isPopup?.()&&d.eGui);if(m){const w=f?Ct(u,l,"inline"):"";if(Gn(m,f),m instanceof HTMLInputElement){m.setCustomValidity(w);const v=d.eGui;v.classList.contains(wd)&&un(v,m)}else m.classList.toggle("invalid",f)}f&&i.setCellValidation({rowNode:h,column:p},{errorMessages:u}),c.add(d.rowCtrl)},o),Bo(e,{persist:!1},o),a?.setCellValidationModel(i),lb(e),a&&n&&s&&Jw(e,{cell:n,row:s},{cell:i,row:a.getRowValidationModel()});for(const d of c.values()){r?.applyRowEditStyles(d);for(const g of d.getAllCellCtrls())g.tooltipFeature?.refreshTooltip(!0),g.editorTooltipFeature?.refreshTooltip(!0),r?.applyCellEditStyles(g)}return o}var lb=e=>{e.gos.get("editType")==="fullRow"&&e.editModelSvc?.setRowValidationModel(cT(e))},cT=e=>{const t=new Uw,o=e.gos.get("getFullRowEditValidationErrors"),r=e.editModelSvc?.getEditMap();if(!o||!r)return t;for(const[i,a]of r){const n=[],{rowIndex:s,rowPinned:l}=i;for(const[d,g]of a){const{editorValue:u,pendingValue:h,sourceValue:p}=g,f=u??(h===ye?void 0:h)??p;n.push({column:d,colId:d.getColId(),rowIndex:s,rowPinned:l,oldValue:p,newValue:f})}const c=o({editorsState:n})??[];c.length>0&&t.setRowValidation({rowNode:i},{errorMessages:c})}return t};function cb(e){return no(e,!0),db(e)}function db(e){const t=e.editModelSvc?.getCellValidationModel().getCellValidationMap();if(!t)return null;const o=[];return t.forEach((r,i)=>{r.forEach(({errorMessages:a},n)=>{o.push({column:n,rowIndex:i.rowIndex,rowPinned:i.rowPinned,messages:a??null})})}),o}function dT(e){e.undoRedo?.undo("api")}function gT(e){e.undoRedo?.redo("api")}function uT(e,t){return e.editModelSvc?.getEditRowDataValue(t)}function hT(e){const t=e.editModelSvc?.getEditMap(),o=[];return t?.forEach((r,i)=>{r.forEach((a,n)=>{const s=a.state==="editing",l=!s&&lt(a);if(s||l){const c=n.colId;let d=a.editorValue??a.pendingValue;d===ye&&(d=void 0),o.push({newValue:d,oldValue:a.sourceValue,state:a.state,column:n,colId:c,colKey:c,rowIndex:i.rowIndex,rowPinned:i.rowPinned})}})}),o}function pT(e,t=!1){const{editSvc:o}=e;o?.isBatchEditing()?o.stopBatchEditors(t):o?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function fT(e,t){const o=We(e,t);return!!o&&!!e.editSvc?.isEditing({rowNode:o,column:t.column})}function mT(e,t){const{key:o,colKey:r,rowIndex:i,rowPinned:a}=t,{editSvc:n,colModel:s}=e,l=s.getCol(r);if(!l){e.log.warn(12,{colKey:r});return}const d=We(e,{rowIndex:i,rowPinned:a||null,column:l});if(!d){e.log.warn(290,{rowIndex:i,rowPinned:a});return}if(!n?.isCellEditable({rowNode:d,column:l},"api"))return;a==null&&hw(e,i),uw(e,r),n?.startEditing({rowNode:d,column:l},{event:o?new KeyboardEvent("keydown",{key:o}):void 0,source:"api",editable:!0})}function vT(e){return mn(e),cb(e)}var wT=db;function bT(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function CT(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var yT={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},ST=class extends ws{constructor(e){super(yT),this.params=e}postConstruct(){Co(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,o=r=>{Gl(this.gos,r,t.node,t.column,!0)||t.onKeyDown(r)};this.addManagedElementListeners(e,{keydown:o})}};function xT(e,{column:t},o,r,i="ui"){if(o instanceof KeyboardEvent&&(o.key===y.TAB||o.key===y.ENTER||o.key===y.F2||o.key===y.BACKSPACE&&r))return!0;if(o?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const n=t?.getColDef(),s=kT(e.gos,n),l=o?.type;return l==="click"&&o?.detail===1&&s===1||l==="dblclick"&&o?.detail===2&&s===2?!0:i==="api"?!!r:!1}function kT(e,t){return e.get("suppressClickEdit")?0:e.get("singleClickEdit")||t?.singleClickEdit?1:2}function kd(e,t){return e.editModelSvc?.hasEdits(t,{withOpenEditor:!0})??!1}function Ed(e,t){const o=t.column,r=t.rowNode,i=o.getColDef();if(o.isCalculatedCol)return!1;if(!r)return kd(e,t);if(Rt(e.gos,r))return!1;const a=i.editable;return r.group&&i.groupRowEditable!=null?e.rowGroupingEditValueSvc?.isGroupCellEditable(r,o)?!0:kd(e,t):o.isColumnFunc(r,a)?!0:kd(e,t)}function ET(e,t,o="ui"){const r=Ed(e,t);if(r||o==="ui")return r;const{rowNode:i,column:a}=t;for(const n of e.colModel.colsList)if(n!==a&&Ed(e,{rowNode:i,column:n}))return!0;return!1}var wn=(e,t=!1)=>{if(e!==void 0)return lt(e)||t&&e.state==="editing"};function gb(e,t,o=!1){return wn(e.editModelSvc?.getEdit(t),o)}var ub=(e,t,o)=>{if(e)for(let r=0,i=e.length;r<i;++r){const a=e[r];if(a.data&&(wn(t?.getCellEdit(a,o))||wn(t?.getCellEdit(a.pinnedSibling,o)))||ub(a.childrenAfterGroup,t,o))return!0}};function hb(e,t){const{column:o,rowNode:r}=t;return e.gos.get("groupTotalRow")&&!r?.footer?!1:ub(r?.childrenAfterGroup,e.editModelSvc,o)}function pb(e,{rowNode:t,column:o}){if(t=t.pinnedSibling,!!t)return wn(e.editModelSvc?.getCellEdit(t,o))}function Rd(e,t){if(!t.comp)return;const{editSvc:o,editModelSvc:r}=e;if(o?.isBatchEditing()&&o.isEditing()){const a=gb(e,t)||hb(e,t)||pb(e,t);fb(e,t,a)}else fb(e,t,!1);const i=!!r?.getCellValidationModel().hasCellValidation(t);t.comp.toggleCss("ag-cell-editing-error",i)}function fb(e,t,o){t.comp.toggleCss("ag-cell-editing",o??!1),t.comp.toggleCss("ag-cell-batch-edit",(o&&e.editSvc?.isBatchEditing())??!1)}function RT(e,t){const o=e.editModelSvc;let r=t.rowNode,i=o?.getEditRow(r);const a=o?.getRowValidationModel().hasRowValidation({rowNode:r});if(!i&&r.pinnedSibling&&(r=r.pinnedSibling,i=o?.getEditRow(r)),i){const n=Array.from(i.keys()).some(s=>{const l={rowNode:r,column:s};return gb(e,l,!0)||hb(e,l)||pb(e,l)});mb(e,t,a,n);return}mb(e,t,a)}function mb(e,t,o=!1,r=!1){const i=!!e.editSvc?.isBatchEditing(),a=e.gos.get("editType")==="fullRow",n=t.getGui()?.rowComp;n&&(n.toggleCss("ag-row-editing",a&&r),n.toggleCss("ag-row-batch-edit",a&&r&&i),n.toggleCss("ag-row-inline-editing",r),n.toggleCss("ag-row-not-inline-editing",!r),n.toggleCss("ag-row-editing-invalid",a&&r&&o))}var FT=e=>()=>{const t=e.editModelSvc?.getEditMap();if(!t?.size)return;const o=e.pinnedRowModel;let r;t.forEach((i,a)=>{const n=a.rowPinned,s=a.id;if(!a.pinnedSibling&&!(n==null||s==null||o?.getPinnedRowById(s,n)===a))for(const l of i.keys())r??(r=[]),r.push({rowNode:a,column:l})}),r&&Fd(e,r)},Fd=(e,t)=>{const o=e.editModelSvc,r=e.editSvc,i={cancel:!0},a=o.getCellValidationModel(),n=new Set;for(let d=0,g=t.length;d<g;++d){const u=t[d];St(e,u,i),a.clearCellValidation(u),o.removeEdits(u),n.add(u.rowNode)}const s=new Set,l=o.getRowValidationModel();let c=!1;for(const d of n)o.getEditRow(d)?.size?c=!0:(s.add(d),l.clearRowValidation({rowNode:d}));c&&no(e);for(const d of n){const g=Oo(e,{rowNode:d});g&&r.applyRowEditStyles(g)}s.size&&r.releasePurgedRows(s)},MT=new Set(["undo","redo","paste","bulk","rangeSvc"]),DT=new Set(["ui","api"]),vb={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},PT=new Set(Object.keys(vb)),TT=new Set(["paste","rangeSvc","cellClear","redo","undo"]),Md={cancel:!0,source:"api"},AT={cancel:!1,source:"api"},Dd={checkSiblings:!0},so={force:!0,suppressFlash:!0},IT={force:!0};function zT(e,t){const o=e.formulaRowIndex,r=t.formulaRowIndex;return o==null||r==null?1:r-o}var LT=class extends x{constructor(){super(...arguments),this.beanName="editSvc",this.committing=!1,this.csrm=!1,this.batch=!1,this.batchStartDispatched=!1,this.stopping=!1,this.rangeSelectionWhileEditing=0,this.stopBlockRejected=!1,this.validationConfigVersion=-1,this.validationConfigResult=!1,this.pendingEditorAttachValidation=new WeakMap,this.pendingEditorFocus=null,this.pendingEditorFocusCell=!1,this.bulkWriteDepth=0,this.bulkWriteTouched=[]}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.csrm=ve(this.gos,e.rowModel),this.addManagedPropertyListener("getFullRowEditValidationErrors",()=>{this.validationConfigVersion=-1}),this.addManagedPropertyListener("editType",({currentValue:r})=>{this.stopEditing(void 0,Md),this.createStrategy(r)});const t=FT(e),o=()=>{if(!this.isEditing())return;const r=this.revalidate();this.checkValidated()?this.stopEditing(void 0,Md,r):this.batch?vn(e,this.model.getEditPositions(),{},r):this.stopEditing(void 0,AT,r)};this.addManagedEventListeners({pinnedRowsChanged:t,pinnedRowDataChanged:t,sortChanged:o,filterChanged:o,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}startBatchEditing(){this.batch||(this.batch=!0,this.batchStartDispatched=!1,this.stopEditing(void 0,Md))}stopBatchEditing(e){this.batch&&(e&&(this.stopEditing(void 0,e),e.commit&&this.stopBlockRejected)||(this.batchStartDispatched&&this.dispatchBatchStopped(new Map,!1),this.batch=!1,this.batchStartDispatched=!1))}stopBatchEditors(e){const{beans:t,model:o}=this;let r;if(e){const i=o.getEditPositions();this.strategy?.stopCancelled(!1);for(let a=0,n=i.length;a<n;++a)this.bulkRefreshCell(i[a],{force:!0,suppressFlash:!0});this.clearValidationIfNoOpenEditors();return}else{if(this.cellEditingInvalidCommitBlocks()){if(r=this.revalidate(),this.checkValidated())return}else this.hasValidationRules()&&(r=rT(t));Bo(t,{persist:!0},r)}vn(t,o.getEditPositions(),{cancel:e},r),this.clearValidationIfNoOpenEditors()}ensureBatchStarted(){!this.batch||this.batchStartDispatched||(this.batchStartDispatched=!0,this.dispatchBatchEvent("batchEditingStarted",new Map))}createStrategy(e){const{beans:t,gos:o,strategy:r}=this,i=wb(o,e);if(r){if(r.beanName===i)return r;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(i,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,o,r="ui"){const i=xT(this.beans,e,t,o,r);return i&&(this.strategy??(this.strategy=this.createStrategy())),i}shouldStopEditing(e,t,o="ui"){return this.strategy?.shouldStop(e,t,o)??null}shouldCancelEditing(e,t,o="ui"){return this.strategy?.shouldCancel(e,t,o)??null}isEditing(e,t){return this.model.hasEdits(e??void 0,t??Dd)}isRowEditing(e,t){return!!e&&this.model.hasRowEdits(e,t?.checkSiblings)}enableRangeSelectionWhileEditing(){this.beans.rangeSvc&&this.gos.get("cellSelection")&&this.rangeSelectionWhileEditing++}disableRangeSelectionWhileEditing(){this.rangeSelectionWhileEditing=Math.max(0,this.rangeSelectionWhileEditing-1)}isRangeSelectionEnabledWhileEditing(){return this.rangeSelectionWhileEditing>0}startEditing(e,t){const{startedEdit:o=!0,event:r=null,source:i="ui",ignoreEventKey:a=!1,silent:n}=t;if(this.strategy??(this.strategy=this.createStrategy()),!(t.editable??this.isCellEditable(e,"api")))return;const l=K(this.beans,e);if(l&&!l.rowCtrl.isAlive())return;if(l&&!l.comp){t.editable=void 0,l.pendingEditStart=t;return}const c=this.shouldStartEditing(e,r,o,i);if(!c&&i!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,i)&&!t.continueEditing&&this.stopEditing(void 0,{source:i}),c&&this.ensureBatchStarted(),this.strategy.start({position:e,event:r,source:i,ignoreEventKey:a,startedEdit:o,silent:n})}stopEditing(e,t,o){this.stopping||(this.stopBlockRejected=!1);const r=this.prepareStopContext(e,t);if(!r)return!1;this.stopping=!0;let i=!1;try{const a=this.processStopRequest(r,o);return i||(i=a.res),this.finishStopEditing({...r,edits:a.edits,params:t,position:e,res:i}),i}finally{this.rangeSelectionWhileEditing=0,this.stopping=!1}}prepareStopContext(e,t){const{event:o=null,cancel:r=!1,source:i="ui",forceCancel:a=!1,forceStop:n=!1,commit:s=!1}=t??{};if(PT.has(i)&&this.batch)return e?.rowNode&&e?.column&&this.bulkRefreshCell(e),null;const l=this.committing?vb[i]:i;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,Dd))||!this.strategy||this.stopping)return null;this.pendingEditorFocus=null;const d=K(this.beans,e),g=!r&&(!!this.shouldStopEditing(e,o,l)||(this.committing||i==="paste")&&!this.batch)||n,u=r&&!!this.shouldCancelEditing(e,o,l)||a;return{cancel:r,cellCtrl:d,edits:this.model.getEditMapCopy(),event:o??null,forceCancel:a,forceStop:n,commit:s,position:e,source:i,treatAsSource:l,willCancel:u,willStop:g}}processStopRequest(e,t){const{event:o,position:r,willCancel:i,willStop:a}=e;return a||i?this.handleStopOrCancel(e,t):this.shouldHandleMidBatchKey(o,r)?{res:!1,edits:this.handleMidBatchKey(o,r,e,t)}:(Bo(this.beans,{persist:!0},t),this.batch&&this.strategy?.cleanupEditors(r,void 0,t),{res:!1,edits:this.model.getEditMapCopy()})}handleStopOrCancel(e,t){const{model:o}=this,{cancel:r,commit:i,edits:a,event:n,forceCancel:s,source:l,willCancel:c,willStop:d}=e,{blockRejected:g,skipAllCommits:u,validationCache:h}=this.resolveStopValidation(e,t),p=(!this.batch||!c)&&!g;Bo(this.beans,{persist:p,isCancelling:c||r,isStopping:d},h);const f=o.getEditMapCopy(),w=!c&&(!this.batch||i)?this.processEdits(f,l,u):[];return r?this.strategy?.stopCancelled(s,h):g||this.strategy?.stopCommitted(n,i,h),this.cleanupAfterStop(a,f,w),{res:d&&!g,edits:f}}resolveStopValidation(e,t){const{beans:o,model:r}=this,{cancel:i,willCancel:a}=e,n=!a&&!i;let s=t;return n&&(mn(o),s??(s=no(o))),{...this.applyInvalidEditPolicy(e,n,r.hasValidationErrors()),validationCache:s}}applyInvalidEditPolicy(e,t,o){const{beans:r}=this,{commit:i,position:a,willStop:n}=e,s=this.cellEditingInvalidCommitBlocks(),l=o&&!s&&this.batch&&i;l&&this.revertInvalidEdits();const c=o&&s&&n&&t;return this.stopBlockRejected=c,c&&this.gos.get("editType")==="fullRow"&&Xw(r,a?.rowNode??this.getOpenEditorRowNode()),{blockRejected:c,skipAllCommits:o&&!l}}cleanupAfterStop(e,t,o){const{beans:r,model:i}=this;this.clearValidationIfNoOpenEditors();for(const a of o)i.clearEditValue(a);this.bulkRefreshMap(e);for(const a of i.getEditPositions(t)){const n=K(r,a),s=lt(a);n?.refreshCell({force:!0,suppressFlash:!s})}}getOpenEditorRowNode(){const e=this.beans.rowRenderer.getCellCtrls();for(let t=0,o=e.length;t<o;++t){const r=e[t];if(r.comp?.getCellEditor())return r.rowNode}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,o,r){const{beans:i,model:a}=this,{edits:n}=o,{key:s}=e,l=s===y.ENTER,c=s===y.ESCAPE,d=s===y.TAB;return l||d||c?(l||d?Bo(i,{persist:!0},r):this.strategy?.stopCancelled(!1),!c&&this.batch?this.strategy?.cleanupEditors(void 0,void 0,r):this.batch||vn(i,a.getEditPositions(),{event:e,cancel:c},r),e.preventDefault(),this.bulkRefreshMap(n,{suppressFlash:!0}),a.getEditMapCopy()):n}finishStopEditing({cellCtrl:e,edits:t,params:o,position:r,res:i,commit:a,forceCancel:n,willCancel:s}){const l=this.beans;i&&r&&(!this.batch||a)&&this.model.removeEdits(r),this.stopBlockRejected||this.navigateAfterEdit(o,e?.cellPosition),Sd(l),this.clearValidationIfNoOpenEditors();const{rowRenderer:c,formula:d}=l;if(s&&c.refreshRows({rowNodes:Array.from(t.keys())}),this.batch){d?d.refreshFormulas(!0):c.refreshRows({suppressFlash:!0,force:!0});const g=i&&a;(g||s&&n)&&this.dispatchBatchStopped(t,g)}}dispatchBatchStopped(e,t){let o;t&&(o=XP(e),o.size>0&&this.ensureBatchStarted()),this.batchStartDispatched&&(this.batchStartDispatched=!1,this.dispatchBatchEvent("batchEditingStopped",o??new Map))}clearValidationIfNoOpenEditors(){this.model.hasEdits(void 0,{withOpenEditor:!0})||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap())}navigateAfterEdit(e,t){if(!e||!t)return;const{event:o,suppressNavigateAfterEdit:r}=e;if(!(o instanceof KeyboardEvent)||r)return;const{key:a,shiftKey:n}=o,s=this.gos.get("enterNavigatesVerticallyAfterEdit");if(a!==y.ENTER||!s)return;const l=n?y.UP:y.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}revertInvalidEdits(){const e=this.model,t=e.getEditPositions(),o=[];for(let r=0,i=t.length;r<i;++r){const a=t[r];e.hasValidationErrors(a)&&o.push(a)}for(let r=0,i=o.length;r<i;++r)this.revertCellEdit(o[r])}closeCellEditor(e,t){const o=this.beans;nb(o,e,{persist:!0,isStopping:!0},t),St(o,e,{},void 0,t)}revertCellEdit(e,t){const o=this.beans;St(o,e,{cancel:!0},void 0,t);const r=this.model,i=r.getRowValidationModel();r.stop(e,!0,!0),r.getCellValidationModel().clearCellValidation(e),lb(o);const a=r.getCellValidationModel();Jw(o,{cell:a,row:i},{cell:a,row:r.getRowValidationModel()});const n=Oo(o,e);n&&this.applyRowEditStyles(n),K(o,e)?.refreshCell(so)}processEdits(e,t,o){const r=Array.from(e.keys()),i=[],{changeDetectionSvc:a}=this.beans;a?.beginDeferred();try{for(const n of r){const s=e.get(n);for(const l of s.keys()){const c=s.get(l),d={rowNode:n,column:l};if(lt(c)&&!o){const g=K(this.beans,d);this.setNodeDataValue(n,l,c.pendingValue,g,t)||i.push(d)}}}}finally{a?.endDeferred()}return i}setNodeDataValue(e,t,o,r,i="edit"){const a=DT.has(i)?"edit":i;r&&(r.suppressRefreshCell=!0),this.committing=!0;try{return e.setDataValue(t,o,a)}finally{this.committing=!1,r&&(r.suppressRefreshCell=!1)}}syncEditAfterCommit(e,t){const o=this.model.getEdit(e);o&&o.state!=="editing"&&(t?this.model.setEdit(e,{sourceValue:o.pendingValue}):this.model.clearEditValue(e))}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefreshMap(e);let o=so;if(t?.forceRefreshOfEditCellsOnly){const r=[],i=new Set;e.forEach((a,n)=>{r.push(n);for(const s of a.keys())i.add(s)}),o={rowNodes:r,columns:Array.from(i),...so}}this.beans.rowRenderer.refreshCells(o)}dispatchEditValuesChanged(e,t,o={}){const{pendingValue:r,sourceValue:i}=o,{rowIndex:a,rowPinned:n,data:s}=e;this.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:a,rowPinned:n,column:t,source:"api",data:s,newValue:r,oldValue:i,value:r,colDef:t.getColDef()})}beginBulkWrite(){this.bulkWriteDepth++}endBulkWrite(){--this.bulkWriteDepth===0&&this.flushBulkWrite()}flushBulkWrite(){const e=this.bulkWriteTouched;if(this.bulkWriteTouched=[],!this.batch||e.length===0||(this.model.hasOpenEditors()&&this.cleanupEditors(),!this.csrm))return;const t=new Map,o=new Map;for(let r=0,i=e.length;r<i;++r){const a=e[r],{rowNode:n,column:s}=a;bb(t,n,s)&&this.refCell(n,s,this.model.getCellEdit(n,s),void 0,o)}}bulkRefreshCell(e,t){if(this.csrm){const{rowNode:o,column:r}=e;this.refCell(o,r,this.model.getCellEdit(o,r),t)}}bulkRefreshMap(e,t){this.csrm&&e.forEach((o,r)=>{for(const i of o.keys())this.refCell(r,i,o.get(i),t)})}refCell(e,t,o,r={},i){const{beans:a,gos:n}=this,s=e.pinnedSibling;this.dispatchEditValuesChanged(e,t,o),s&&this.dispatchEditValuesChanged(s,t,o),K(a,{rowNode:e,column:t})?.refreshCell(r),s&&K(a,{rowNode:s,column:t})?.refreshCell(r);const l=this.batch,c=e.sibling;c&&Cb(a,c,t,r,l,i);let d=e.parent;if(!d)return;const g=n.get("groupTotalRow"),u=n.get("grandTotalRow");for(;d;){const h=d.sibling,p=h&&(h.footer&&g||!d.parent&&u)?h:d;Cb(a,p,t,r,l,i),d=d.parent}}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{gos:o,beans:r}=this,i=e.rowNode;if(i.group&&e.column.getColDef().groupRowEditable==null){if(o.get("treeData")){if(!i.data&&!o.get("enableGroupEdit"))return!1}else if(!o.get("enableGroupEdit"))return!1}const a=wb(o)==="fullRow"?ET(r,e,t):Ed(r,e);return a&&(this.strategy??(this.strategy=this.createStrategy())),a}hasValidationRules(){return this.hasConfiguredValidation()||this.editorsRequireValidation()}hasConfiguredValidation(){const e=this.beans.colModel,t=e.colDefsVersion;if(this.validationConfigVersion===t)return this.validationConfigResult;this.validationConfigVersion=t;let o=!!this.gos.get("getFullRowEditValidationErrors");const r=e.colDefList;for(let i=0,a=r.length;!o&&i<a;++i){const n=r[i].colDef,s=n.cellEditorParams;!s||!n.editable&&!n.groupRowEditable||(o=typeof s=="function"||s.minLength!==void 0||s.maxLength!==void 0||s.getValidationErrors!==void 0||s.min!==void 0||s.max!==void 0)}return this.validationConfigResult=o,o}editorsRequireValidation(){return this.model.hasOpenEditors()?(this.editorsValidation??(this.editorsValidation=lT(this.beans)),this.editorsValidation):!1}invalidateEditorsValidation(){this.editorsValidation=void 0}releasePurgedRows(e){this.strategy?.releaseRows(e)}releaseRowEdits(e){const t=this.model.getEditRow(e);if(!t?.size||this.beans.gridDestroySvc.destroyCalled)return;const o=[];for(const r of t.keys())o.push({rowNode:e,column:r});Fd(this.beans,o)}releaseColumnsLeaving(e){const t=this.model?.getEditMap();if(!t?.size)return;const o=new Set;for(const i of t.values())for(const a of i.keys())o.add(a);for(let i=0,a=e.length;o.size>0&&i<a;++i)o.delete(e[i]);if(!o.size)return;const r=[];t.forEach((i,a)=>{for(const n of i.keys())o.has(n)&&r.push({rowNode:a,column:n})}),Fd(this.beans,r)}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,o=!0){return this.checkNavWithValidationAndCache(e,t,o).result}checkNavWithValidationAndCache(e,t,o=!0){const r=this.revalidate();if(this.checkValidated(e)){const i=K(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),o&&(i&&!i.hasBrowserFocus()&&i.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()),{result:"block-stop",validationCache:r}):(i&&this.revertSingleCellEdit(i),{result:"revert-continue",validationCache:r})}return{result:"continue",validationCache:r}}withEditorAttachValidationCache(e,t,o){if(this.pendingEditorAttachValidation.delete(t),!e){o();return}const r=t.editCompDetails,i=this.editorAttachValidationCache,a=e;this.editorAttachValidationCache=a;try{o()}finally{this.editorAttachValidationCache=i}const n=t.editCompDetails;return n&&n!==r&&!t.comp?.getCellEditor()&&this.pendingEditorAttachValidation.set(t,{compDetails:n,validationCache:a}),a}populateModelValidationErrors(e){let t=this.editorAttachValidationCache;if(!t&&e){const o=this.pendingEditorAttachValidation.get(e);this.pendingEditorAttachValidation.delete(e),o&&o.compDetails===e.editCompDetails&&(t=o.validationCache)}no(this.beans,!1,t)}clearPendingEditorAttachValidation(e){this.pendingEditorAttachValidation.delete(e)}hasPendingEditorAttachValidation(e){const t=this.pendingEditorAttachValidation.get(e);return t&&t.compDetails===e.editCompDetails?!0:(this.pendingEditorAttachValidation.delete(e),!1)}announceFullRowEditValidationErrors(e){Xw(this.beans,e)}onCompAttached(e,t){const o=t?e.isCellEditable():void 0,r=!!o||this.isEditing(e,{withOpenEditor:!0});return r&&this.startEditing(e,{startedEdit:!1,source:"api",silent:!0,continueEditing:!0,editable:o}),r}replayPendingStart(e){const t=e.pendingEditStart;e.pendingEditStart=null,this.startEditing(e,t)}onCellDestroyed(e){this.pendingEditorAttachValidation.delete(e),this.pendingEditorFocus===e&&(this.pendingEditorFocus=null),e.comp?.getCellEditor()&&this.invalidateEditorsValidation()}focusEditorOnAttach(e,t){this.pendingEditorFocus=e,this.pendingEditorFocusCell=t}onEditorAttached(e){if(this.invalidateEditorsValidation(),e.rangeFeature?.unsetComp(),this.pendingEditorFocus!==e)return;const t=this.pendingEditorFocusCell;this.pendingEditorFocus=null,t&&e.focusCell({forceBrowserFocus:!0}),e.comp?.getCellEditor()?.focusIn?.()}onPopupEditorClosed(e,t){oT(this.beans,e,t)}revertSingleCellEdit(e,t=!1){const o=K(this.beans,e);o?.comp?.getCellEditor()&&(St(this.beans,e,{silent:!0}),this.model.clearEditValue(e),Vo(this.beans,e,{silent:!0}),no(this.beans),o?.refreshCell(so),t&&(o?.focusCell(),o?.comp?.getCellEditor()?.focusIn?.()))}revalidateAndCheck(e){return this.revalidate(),this.checkValidated(e)}revalidate(){return mn(this.beans),no(this.beans)}checkValidated(e){const t=K(this.beans,e);return t&&(t.refreshCell(so),this.applyRowEditStyles(t.rowCtrl)),this.model.hasValidationErrors(e)}moveToNextCell(e,t,o,r="ui"){let i;const a=this.isEditing(),n=a?this.checkNavWithValidationAndCache(void 0,o):void 0,s=n?.result==="block-stop";return e instanceof ur&&a&&(i=this.strategy?.moveToNextEditingCell(e,t,o,r,s,n?.validationCache)),i===null||(i=i||!!this.beans.focusSvc.focusedHeader,!i&&!s&&this.stopEditing(void 0,void 0,n?.validationCache)),i}getPendingEditValue(e,t,o){const r=this.batch;if(o==="batch"&&!r)return;const i=this.model.getCellEditWithSibling(e,t);if(!i||this.stopping&&!r&&!i.editorState?.cellStartedEditing)return;if(o==="edit"){const n=i.editorValue;if(n!=null&&n!==ye)return n}const a=i.pendingValue;if(a!==ye)return a}getCellDataValue(e){const t=this.model.getCellEditWithSibling(e.rowNode,e.column);if(t){const o=t.pendingValue;if(o!==ye)return o;const r=t.sourceValue;if(r!=null)return r}return this.valueSvc.getValueFromData(e.column,e.rowNode)}addStopEditingWhenGridLosesFocus(e){_P(this,this.beans,e)}createPopupEditorWrapper(e){return new ST(e)}batchResetToSourceValue(e){if(!this.batch)return!1;const t=this.model.getEdit(e);if(!t)return!1;const{pendingValue:o,sourceValue:r,state:i}=t;return o===r||i==="editing"?!1:(this.dispatchEditValuesChanged(e.rowNode,e.column,{...t,pendingValue:r}),this.model.removeEdits(e),K(this.beans,e)?.refreshCell(so),!0)}setDataValue(e,t,o){try{const r=this.batch,i=this.isEditing(r?void 0:e);if((!i||this.committing)&&!r&&!TT.has(o)||!i&&!r&&o==="paste"||o==="batch"&&!r)return;if(o==="edit"){if(i&&this.applyEditorValue(e,t))return!0;if(!r)return}if(this.strategy??(this.strategy=this.createStrategy()),o==="batch"||o==="edit")return this.applyDirectValue(e,t,o);const a=this.beans;let n;if(r?n="ui":this.committing?n=o??"api":n="api",!o||MT.has(o))return this.applyDirectValue(e,t,o);const s=this.applyExistingEdit(e,t,o,n);return s!==void 0?s:(Mi(a,e,t,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:n,suppressNavigateAfterEdit:!0}),!0)}finally{this.committing=!1}}applyExistingEdit(e,t,o,r){const i=this.model.getEdit(e);if(i)return i.pendingValue===t?!1:i.sourceValue!==t?(Mi(this.beans,e,t,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:r,suppressNavigateAfterEdit:!0}),!0):(this.model.removeEdits(e),this.ensureBatchStarted(),this.dispatchEditValuesChanged(e.rowNode,e.column,{...i,pendingValue:t}),!0)}applyEditorValue(e,t){const o=this.beans,r=K(o,e),i=r?.comp?.getCellEditor();return!r||!i?!1:(Mi(o,e,t,{persist:!0}),Rd(o,r),"agSetEditValue"in i?(i.agSetEditValue(t),!0):i.refresh&&r.editCompDetails?(i.refresh({...r.editCompDetails.params,value:t}),!0):(r.hasBrowserFocus()&&this.focusEditorOnAttach(r,!0),St(o,e,{silent:!0,cancel:!0}),Vo(o,e,{silent:!0}),no(o),K(o,e)?.refreshCell(so),!0))}applyDirectValue(e,t,o){const r=this.beans;if(this.batch){const n=this.bulkWriteDepth>0;if(o==="batch"&&K(r,e)?.comp?.getCellEditor()){const{editModelSvc:s,valueSvc:l}=r,{rowNode:c,column:d}=e;s?.getEdit(e)?.sourceValue===void 0&&s?.setEdit(e,{sourceValue:l.getValueFromData(d,c)}),s?.setEdit(e,{pendingValue:t})}else Mi(r,e,t,{persist:!0}),o!=="batch"&&!n&&this.cleanupEditors();return ob(r,e),this.ensureBatchStarted(),n?this.bulkWriteTouched.push(e):this.bulkRefreshCell(e),!0}Mi(r,e,t,{persist:!0});const i=K(r,e),a=this.setNodeDataValue(e.rowNode,e.column,t,i,o);return this.syncEditAfterCommit(e,a),ob(r,e),K(r,e)?.refreshCell(a?IT:so),a}handleColDefChanged(e){eT(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:o}=this;if(!this.batch||!o.hasRowEdits(e.rowNode,!0))return;const{rowNode:i}=e,{compDetails:a,valueToDisplay:n}=t;if(a){const{params:s}=a;return s.data=o.getEditRowDataValue(i),{compDetails:a}}return{valueToDisplay:n}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,o,r){this.strategy?.dispatchCellEvent(e,t,o,r)}dispatchBatchEvent(e,t){const o=W(this.gos,{type:e,...e==="batchEditingStopped"?{changes:this.toEventChangeList(t)}:{}});this.eventSvc.dispatchEvent(o)}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},o){if(!o||o.length===0)return;const{beans:r}=this,{formula:i}=r;Bo(r,{persist:!0});const a=this.model.getEditMapCopy(),n=a.get(e)?.get(t)?.pendingValue;let s=!1;this.batch||(this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),s=!0);const l=i?.isFormula(n)??!1;let c={value:n};for(let g=0,u=o.length;g<u;++g)c=this.applyBulkEditToRange(o[g],a,l,c);if(this.setEditMap(a),this.batch)this.cleanupEditors(),Sd(r),this.ensureBatchStarted();else{this.committing=!0;try{this.stopEditing(void 0,{source:"bulk"})}finally{this.committing=!1,s&&this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(a)})}}const d=K(r,{rowNode:e,column:t});d&&d.focusCell({forceBrowserFocus:!0})}applyBulkEditToRange(e,t,o,r){const{beans:i,rangeSvc:a}=this,{formula:n}=i,s=e.columns,l=o&&s.some(u=>u?.allowFormula);let{value:c,lastRowNode:d}=r,g=!0;return a?.forEachRowInRange(e,u=>{const h=We(i,u);if(h===void 0)return;const p=d?.rowIndex;let f=d?1:0;l&&d&&(!g||p!=null&&h.rowPinned===d.rowPinned&&h.rowIndex===p+1)&&(f=zT(d,h));const m=f===0?c:n?.updateFormulaByOffset({value:c,rowDelta:f});this.applyBulkEditToRow(h,s,t,m,o),g=!1,l&&(c=m,d=h)}),{value:c,lastRowNode:d}}applyBulkEditToRow(e,t,o,r,i){const{beans:a,valueSvc:n}=this,{formula:s}=a,l=o.get(e)??new Map;let c=r;for(const d of t)if(d){if(this.isCellEditable({rowNode:e,column:d},"api")){const g=n.getValueFromData(d,e,!0);let u=n.parseValue(d,e,c,g);Number.isNaN(u)&&(u=null),l.set(d,{editorValue:void 0,pendingValue:u,sourceValue:g,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}i&&d.allowFormula&&(c=s?.updateFormulaByOffset({value:c,columnDelta:1}))}l.size>0&&o.set(e,l)}applyCellEditStyles(e){Rd(this.beans,e)}applyRowEditStyles(e){RT(this.beans,e)}setEditingCells(e,t){const{beans:o}=this,{colModel:r,valueSvc:i}=o,a=new Map;for(let{colId:n,column:s,colKey:l,rowIndex:c,rowPinned:d,newValue:g,state:u}of e){const h=n?r.colsById[n]:l?r.getCol(l):s;if(!h)continue;const p=We(o,{rowIndex:c,rowPinned:d});if(!p)continue;const f=i.getValueFromData(h,p,!0);if(!t?.forceRefreshOfEditCellsOnly&&!lt({pendingValue:g,sourceValue:f})&&u!=="editing")continue;let m=a.get(p);m||(m=new Map,a.set(p,m)),g===void 0&&(g=ye),m.set(h,{editorValue:void 0,pendingValue:g,sourceValue:f,state:u??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(a,t)}onCellFocused(e){const t=K(this.beans,e);if(!t||!this.isEditing(t,Dd))return;const o=this.model.getEdit(t);if(!o||!lt(o))return;const i=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(i,"pendingChange")}allowedFocusTargetOnValidation(e){return K(this.beans,e)}};function wb(e,t){return t??e.get("editType")??"singleCell"}var bb=(e,t,o)=>{let r=e.get(t);return r||(r=new Set,e.set(t,r)),r.has(o)?!1:(r.add(o),!0)},Cb=(e,t,o,r,i,a)=>{if(a&&!bb(a,t,o))return;const n=K(e,{rowNode:t,column:o});n&&(n.refreshCell(r),!r.force&&i&&Rd(e,n))},yb=class extends x{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 o=e.previousParams,{editSvc:r,beans:i}=this,a=e.type==="cellFocused"?e.sourceEvent:null;o&&(t=K(i,o));const{gos:n,editModelSvc:s}=i,l=e.type==="cellFocusCleared";if(r.isEditing(void 0,{withOpenEditor:!0})){const{column:c,rowIndex:d,rowPinned:g}=e,u={column:c,rowNode:We(i,{rowIndex:d,rowPinned:g})},h=n.get("invalidEditValueMode")==="block";if(h)return;const p=!h,f=!!s?.getCellValidationModel().hasCellValidation(u),m=p&&f;!(o||l)||r.stopEditing(void 0,{cancel:m,source:l&&p?"api":void 0,event:a})||(r.isBatchEditing()?r.cleanupEditors():r.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stopCancelled(e,t){const o=this.editSvc.isBatchEditing()&&!e;for(const r of this.model.getEditPositions())St(this.beans,r,{cancel:!0},K(this.beans,r),t),this.model.stop(r,o,!0);return!0}stopCommitted(e,t,o){const r=this.model.getEditPositions(),i={all:[],pass:[],fail:[]};for(const s of r)i.all.push(s),(this.model.getCellValidationModel().getCellValidation(s)?.errorMessages?.length??0)>0?i.fail.push(s):i.pass.push(s);const a=this.processValidationResults(i),n=this.editSvc.isBatchEditing()&&!t;for(const s of a.destroy)St(this.beans,s,{event:e},K(this.beans,s),o),this.model.stop(s,n,!1);for(const s of a.keep){const l=K(this.beans,s);!this.editSvc.cellEditingInvalidCommitBlocks()&&l&&this.editSvc.revertSingleCellEdit(l)}return!0}cleanupEditors({rowNode:e}={},t,o){Bo(this.beans,{persist:!1},o);const r=this.model.getEditPositions(),i=[];if(e)for(const a of r)a.rowNode!==e&&i.push(a);else for(const a of r)i.push(a);vn(this.beans,i,{},o),Sd(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}focusFirstInvalidCell(e,t){const o=OT(this.beans,this.model,e.rowNode)??e;o.focusCell({forceBrowserFocus:!0,sourceEvent:t}),o.isCellEditable()&&this.setFocusInOnEditor(o)}setFocusInOnEditor(e){const o=e.comp?.getCellEditor();if(o?.focusIn)o.focusIn();else{const r=this.beans.gos.get("editType")==="fullRow";e.focusCell({forceBrowserFocus:r}),this.editSvc.focusEditorOnAttach(e,!1)}}setupEditors(e){const{event:t,ignoreEventKey:o=!1,startedEdit:r,position:i,cells:a=this.model.getEditPositions()}=e,n=t instanceof KeyboardEvent&&!o&&t.key||void 0;JP(this.beans,a,i,n,t,r)}dispatchCellEvent(e,t,o,r){const{beans:i}=this,a=K(i,e),n=a?a.value:i.valueSvc.getDisplayValue(e.column,e.rowNode,"edit",!1);this.eventSvc.dispatchEvent({...Gv(i,t??null,o,e,n),...r})}dispatchRowEvent(e,t,o){if(o)return;const r=Oo(this.beans,e);this.eventSvc.dispatchEvent(r?r.createRowEvent(t):bl(e.rowNode,this.gos,t))}shouldStop(e,t,o="ui"){const r=this.editSvc.isBatchEditing();return r&&o==="api"?!0:r&&(o==="ui"||o==="edit")?!1:o==="api"?!0:t instanceof KeyboardEvent&&!r?t.key===y.ENTER:null}shouldCancel(e,t,o="ui"){const r=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!r&&t.key===y.ESCAPE||r&&o==="api"||o==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const o=[];e.forEach((i,a)=>{i.forEach((n,s)=>{n.state==="editing"&&o.push({...n,rowNode:a,column:s})})});let r=e;if(t?.update){const i=new Map(e);this.model.getEditMap()?.forEach((a,n)=>{i.has(n)||i.set(n,a)}),r=i}if(this.model?.setEditMap(r),o.length>0){const i=o.at(-1),a=i.pendingValue===ye?void 0:i.pendingValue;this.start({position:i,event:new KeyboardEvent("keydown",{key:a}),source:"api"});const n=K(this.beans,i);n&&this.setFocusInOnEditor(n)}}destroy(){this.cleanupEditors(),super.destroy()}},OT=(e,t,o)=>{const r=t.getCellValidationModel().getCellValidationMap().get(o);if(!r)return;const i=e.visibleCols.allCols;let a;for(let s=0,l=i.length;s<l;++s){const c=i[s];if(r.has(c)){a=c;break}}if(!a)return;const n=K(e,{rowNode:o,column:a});return n||(e.navigation?.ensureColumnVisible(a),K(e,{rowNode:o,column:a}))},VT=class extends yb{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=new Set}shouldStop(e,t,o="ui"){const{rowNode:r,beans:i}=this,{rowNode:a}=e??{};if(!Oo(i,{rowNode:r}))return!0;const s=super.shouldStop({rowNode:r},t,o);return s!==null?s:r?a!==r:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:o,startedEdit:r,event:i,ignoreEventKey:a}=e,{rowNode:n}=t,{beans:s,model:l,startedRows:c}=this;this.rowNode!==n&&super.cleanupEditors(t);const d=s.visibleCols.allCols,g=[],u=[];for(const h of d)h.isCellEditable(n)&&u.push(h);if(u.length!=0){c.has(n)||(this.dispatchRowEvent({rowNode:n},"rowEditingStarted",o),c.add(n));for(const h of u){const p={rowNode:n,column:h};g.push(p),l.start(p)}this.rowNode=n,this.setupEditors({cells:g,position:t,startedEdit:r,event:i,ignoreEventKey:a})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e,t){const{rowNode:o,model:r}=this;return o&&!r.hasEdits()?!1:(super.stopCancelled(e,t),this.cleanupEditors({rowNode:o},!0,t),this.rowNode=void 0,!0)}stopCommitted(e,t,o){const{rowNode:r,model:i,editSvc:a}=this;if(r&&!i.hasEdits())return!1;const n=[];if(i.getEditMap()?.forEach((s,l)=>{if(!(!s||s.size===0)){for(const c of s.values())if(lt(c)){n.push(l);break}}}),super.stopCommitted(e,t,o),t||!a.isBatchEditing())for(const s of n)this.dispatchRowEvent({rowNode:s},"rowValueChanged");return this.cleanupEditors({rowNode:r},!0,o),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,o=e.previousParams;if(o?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const{beans:r,gos:i,model:a}=this;if(r.editSvc?.isRangeSelectionEnabledWhileEditing())return;const n=K(r,o);i.get("invalidEditValueMode")==="block"&&n&&(a.getCellValidationModel().getCellValidation(n)||a.getRowValidationModel().getRowValidation(n))||super.onCellFocusChanged(e)}releaseRows(e){const{startedRows:t}=this;for(const o of e)t.delete(o)&&this.dispatchRowEvent({rowNode:o},"rowEditingStopped"),this.rowNode===o&&(this.rowNode=void 0)}cleanupEditors(e={},t,o){super.cleanupEditors(e,t,o);const{startedRows:r}=this;for(const i of r)this.dispatchRowEvent({rowNode:i},"rowEditingStopped"),this.destroyEditorsForRow(i,o);r.clear()}destroyEditorsForRow(e,t){const o=Oo(this.beans,{rowNode:e});if(!o)return;const r={};for(const i of o.getAllCellCtrls())i.comp?.getCellEditor()&&St(this.beans,i,r,i,t)}moveToNextEditingCell(e,t,o,r="ui",i=!1,a){const{beans:n,model:s,gos:l,editSvc:c}=this,d=e.cellPosition;let g;s.suspend(!0);try{g=n.navigation?.findNextCellToFocusOn(d,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{s.suspend(!1)}if(g===!1)return null;if(g==null)return i?(c.announceFullRowEditValidationErrors(e.rowNode),this.focusFirstInvalidCell(e,o),!0):!1;const u=g.cellPosition,h=e.isCellEditable(),p=g.isCellEditable(),f=d.rowIndex===u?.rowIndex&&d.rowPinned===u.rowPinned;h&&this.setFocusOutOnEditor(e),a=this.restoreEditors(a);const m=l.get("suppressStartEditOnTab");return p&&!i?m?g.focusCell({forceBrowserFocus:!0,sourceEvent:o}):(!g.comp?.getCellEditor()&&!(f&&c.hasPendingEditorAttachValidation(g))&&(a=c.withEditorAttachValidationCache(a,g,()=>Vo(n,g,{event:o,cellStartedEdit:!0}))),this.setFocusInOnEditor(g),g.focusCell({sourceEvent:o})):i&&!f?(c.announceFullRowEditValidationErrors(e.rowNode),this.focusFirstInvalidCell(e,o)):(g.focusCell({forceBrowserFocus:!0,sourceEvent:o}),p&&this.setFocusInOnEditor(g)),!f&&!i&&(c.stopEditing({rowNode:e.rowNode},{event:o,forceStop:!0},a),c.isRowEditing(e.rowNode,{withOpenEditor:!0})&&this.cleanupEditors(g,!0,a),m?g.focusCell({forceBrowserFocus:!0,sourceEvent:o}):c.startEditing(g,{startedEdit:!0,event:o,source:r,ignoreEventKey:!0,editable:p||void 0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(e){const{beans:t,editSvc:o,model:r}=this;return r.getEditMap()?.forEach((i,a)=>i.forEach(({state:n},s)=>{if(n!=="editing")return;const l=K(t,{rowNode:a,column:s});l&&!l.comp?.getCellEditor()&&(e=o.withEditorAttachValidationCache(e,l,()=>Vo(t,l,{silent:!0})))})),e}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.clear()}},BT=class extends yb{constructor(){super(...arguments),this.beanName="singleCell"}releaseRows(e){this.rowNode&&e.has(this.rowNode)&&(this.rowNode=void 0,this.column=void 0)}shouldStop(e,t,o="ui"){const r=super.shouldStop(e,t,o);if(r!==null)return r;const i=e?.rowNode,a=e?.column,n=this.rowNode,s=this.column;return(!n||!s)&&i&&a?null:n!==i||s!==a?!0:!n&&!s?this.model.hasEdits(void 0,{withOpenEditor:!0}):!1}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:o,event:r,ignoreEventKey:i}=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:o,event:r,ignoreEventKey:i})}dispatchRowEvent(e,t,o){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e,t){return super.stopCancelled(e,t),this.clearPosition()}stopCommitted(e,t,o){return super.stopCommitted(e,t,o),this.clearPosition()}clearPosition(){return this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:o}=this.beans,{rowIndex:r,column:i,rowPinned:a}=e,n=We(this.beans,{rowIndex:r,rowPinned:a}),s=Cd(i),l=t.getCol(s),c=e.previousParams;if(c){const d=Cd(c.column);if(c?.rowIndex===r&&d===s&&c?.rowPinned===a)return}e.type=="cellFocused"&&(o?.isRangeSelectionEnabledWhileEditing()||o?.isEditing({rowNode:n,column:l},{withOpenEditor:!0}))||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,o,r="ui",i=!1,a){const n=this.beans.focusSvc.getFocusedCell();n&&(e=Do(this.beans,n)??e);const s=e.cellPosition;let l;const c=this.beans.gos.get("editType")==="fullRow";c&&this.model.suspend(!0),i||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:o},a));try{l=this.beans.navigation?.findNextCellToFocusOn(s,{backwards:t,startEditing:!0})}finally{c&&this.model.suspend(!1)}if(l===!1)return null;if(l==null)return!1;const d=l.cellPosition,g=e.isCellEditable(),u=l.isCellEditable(),h=s.rowIndex===d?.rowIndex&&s.rowPinned===d.rowPinned;g&&!i&&this.setFocusOutOnEditor(e);const p=this.gos.get("suppressStartEditOnTab");let f=!1;if(!h&&!i&&(super.cleanupEditors(l,!0,a),p?l.focusCell({forceBrowserFocus:!0,sourceEvent:o}):(f=!0,this.editSvc.startEditing(l,{startedEdit:!0,event:o,source:r,ignoreEventKey:!0,editable:u}))),u&&!i){if(l.focusCell({sourceEvent:o}),p)l.focusCell({forceBrowserFocus:!0,sourceEvent:o});else if(!l.comp?.getCellEditor()){if(!f){const m=this.editSvc?.isEditing(l,{withOpenEditor:!0});Vo(this.beans,l,{event:o,cellStartedEdit:!0,silent:m})}this.setFocusInOnEditor(l),this.cleanupEditors(l,void 0,a)}}else i?this.focusFirstInvalidCell(e,o):l.focusCell({forceBrowserFocus:!0,sourceEvent:o});return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},Ot={moduleName:"EditCore",version:R,beans:[UP,LT],apiFunctions:{getEditingCells:hT,getEditRowValues:uT,getCellEditorInstances:ZP,startEditingCell:mT,stopEditing:pT,isEditing:fT,validateEdit:vT,getEditValidationErrors:wT},dynamicBeans:{singleCell:BT,fullRow:VT},dependsOn:[Ri,fd],css:[mP]},Sb={moduleName:"UndoRedoEdit",version:R,beans:[fP],apiFunctions:{undoCellEditing:dT,redoCellEditing:gT,getCurrentUndoSize:bT,getCurrentRedoSize:CT},dependsOn:[Ot]},xb={moduleName:"TextEditor",version:R,userComponents:{agCellEditor:Ww,agTextCellEditor:Ww},dependsOn:[Ot]},kb={moduleName:"NumberEditor",version:R,userComponents:{agNumberCellEditor:{classImp:TP}},dependsOn:[Ot]},Eb={moduleName:"DateEditor",version:R,userComponents:{agDateCellEditor:xP,agDateStringCellEditor:RP},dependsOn:[Ot]},Rb={moduleName:"CheckboxEditor",version:R,userComponents:{agCheckboxCellEditor:wP},dependsOn:[Ot]},Fb={moduleName:"SelectEditor",version:R,userComponents:{agSelectCellEditor:GP},dependsOn:[Ot]},Mb={moduleName:"LargeTextEditor",version:R,userComponents:{agLargeTextCellEditor:MP},dependsOn:[Ot]},Db={moduleName:"CustomEditor",version:R,dependsOn:[Ot]},Pb={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agBigIntColumnFilter:"agBigIntColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},HT=new Set(Object.values(Pb));function lo(e,t){const o=e.filterUi;if(!o)return null;if(o.created)return o.promise;if(t)return null;const r=o.create(o.refreshed),i=o;return i.created=!0,i.promise=r,r}function Di(e,t){return t?t.isFilterActive?t.isFilterActive():(e.log.warn(67),!1):!1}function Tb(e,t,o,r,i,a,n){return t.refresh?.({...o,model:r,source:a,additionalEventAttributes:n}),e().then(s=>{if(s){const{filter:l,filterParams:c}=s;Pd(l,c,r,i,a,n)}})}function Pd(e,t,o,r,i,a){e?.refresh?.({...t,model:o,state:r,source:i,additionalEventAttributes:a})}function Ab(e,t,o,r){const i=e();i?.created&&i.promise.then(a=>{const n=t();Pd(a,i.filterParams,n,o()??{model:n},"ui",r)})}function Td(e){let t,o=!1,r;const{action:i,filterParams:a,getFilterUi:n,getModel:s,getState:l,updateState:c,updateModel:d,processModelToApply:g}=e;switch(i){case"apply":{const u=l();r=u?.model??null,g&&(r=g(r)),t={state:u?.state,model:r},o=!0;break}case"clear":{t={model:null},a?.buttons?.includes("apply")||(o=!0,r=null);break}case"reset":{t={model:null},o=!0,r=null;break}case"cancel":{t={model:s()};break}}c(t),o?d(r):Ab(n,s,l,{fromAction:i})}function we(e,t){return e[t]??null}var NT=new Set(["checkbox","button","submit","reset","image","color","file"]);function GT(e){switch(e.tagName){case"INPUT":return!NT.has(e.type);case"TEXTAREA":case"SELECT":return!0;default:return e.isContentEditable}}var WT=class extends Ll{wireComp(e,t,o,r,i){this.comp=e;const a=cr(this,i);this.eButtonShowMainFilter=o,this.eFloatingFilterBody=r,this.setGui(t,a),this.setupActive(),this.refreshHeaderStyles(),this.setupCalculatedColumnCssClasses(),e.toggleCss("ag-row-number-floating-filter",Le(this.column)),this.setupPosition(),this.setupHover(a),this.setupFocus(a),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(a),this.setupUi(),Xc(a,this.eButtonShowMainFilter,()=>this.toggleParentFilter()),this.setupFilterChangedListener(a);const n=()=>this.onColDefChanged(a);a.addManagedListeners(this.column,{colDefChanged:n}),a.addManagedEventListeners({columnPinned:({columns:s})=>{s?.includes(this.column)&&this.refreshHeaderStyles()},filterSwitched:({column:s})=>{s===this.column&&n()}}),a.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.userHeaderClasses?.clear(),this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,o=e.colDef;return W(t.gos,{colDef:o,column:e,floatingFilter:!0})}setupActive(){const e=this.column.colDef,t=!!e.filter,o=!!e.floatingFilter;this.active=t&&o}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.eButtonShowMainFilter.firstElementChild)return;const e=ue("filter",this.beans,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}setupFocus(e){e.createManagedBean(new ni(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();Ht(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(Z(t)===this.eGui)return;const i=Xo({beans:t,rootNode:this.eGui,backwards:e.shiftKey});if(i){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),i.focus();return}const a=this.findNextColumnWithFloatingFilter(e.shiftKey);a&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:a},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let o=this.column;do if(o=e?t.getColBefore(o):t.getColAfter(o),!o)break;while(!o.colDef.filter||!o.colDef.floatingFilter);return o}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case y.UP:case y.DOWN:case y.LEFT:case y.RIGHT:if(t)return;to(e),GT(e.target)||e.preventDefault();case y.ENTER:t&&Ar(this.eGui)&&e.preventDefault();break;case y.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),r=!!e.relatedTarget&&uo(e.relatedTarget,"ag-floating-filter");if(o&&r&&e.target===this.eGui){const i=this.lastFocusEvent,a=i?.key===y.TAB;if(i&&a){const n=i.shiftKey;Ar(this.eGui,n)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!Ie(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setupCalculatedColumnCssClasses(){this.refreshCalculatedColumnCssClasses()}refreshCalculatedColumnCssClasses(){const e=_p(this.column,this.beans.calculatedColsSvc);this.userHeaderClasses=Kp(this.comp,this.userHeaderClasses,e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}getAnchorElementForMenu(){return this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter}showParentFilter(){const{beans:e,column:t}=this;e.menuSvc?.showFilterMenu({column:t,buttonElement:this.getAnchorElementForMenu(),getButtonElement:()=>Lp(e,t),containerType:"floatingFilter",positionBy:"button"})}toggleParentFilter(){const{beans:e,column:t}=this;return e.menuSvc?.toggleFilterMenu({column:t,buttonElement:this.eButtonShowMainFilter,getButtonElement:()=>Lp(e,t),containerType:"floatingFilter",positionBy:"button"})??"declined"}setupSyncWithFilter(e){if(!this.active)return;const t=this.column;[this.destroySyncListener]=e.addManagedListeners(t,{filterChanged:o=>this.syncWithFilter(o)}),this.beans.colFilter?.isFilterActive(t)&&this.syncWithFilter(null)}syncWithFilter(e){const{beans:{colFilter:t},column:o,gos:r}=this;if(e?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const i=this.comp.getFloatingFilterComp();i&&i.then(a=>{if(a){if(r.get("enableFilterHandlers")){const l=e;let c="filter";l?.afterFloatingFilter?c="ui":l?.afterDataChange?c="dataChanged":e?.source==="api"&&(c="api"),this.updateFloatingFilterParams(this.userCompDetails,c);return}const n=t?.getCurrentFloatingFilterParentModel(o),s=e?{...e,columns:e.columns??[],source:e.source==="api"?"api":"columnFilter"}:null;a.onParentModelChanged(n,s)}})}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(),this.refreshCalculatedColumnCssClasses();const o=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const r=this.beans.colFilter,i=this.active?r?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,a=this.comp.getFloatingFilterComp();!a||!i?this.updateCompDetails(e,i,o):a.then(n=>{!n||r?.areFilterCompsDifferent(this.userCompDetails??null,i)?this.updateCompDetails(e,i,o):this.updateFloatingFilterParams(i,"colDef")})}updateCompDetails(e,t,o){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),o?(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)):t&&this.beans.colFilter?.isFilterActive(this.column)&&this.syncWithFilter(null))}updateFloatingFilterParams(e,t){if(!e)return;let o=e.params;this.comp.getFloatingFilterComp()?.then(r=>{typeof r?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(o={...o,model:we(this.beans.colFilter?.model??{},this.column.colId),source:t}),r.refresh(o))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function qT(e,t){const o=e.colModel.getCol(t);if(!o){e.log.error(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:o,positionBy:"auto"})}function UT(e){e.menuSvc?.hidePopupMenu()}var Ad="ag-has-menu-open",_T=class extends x{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}destroy(){this.setActiveButtonMenu(),super.destroy()}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){this.showColumnMenuCommon(zd(this.beans),e,e.containerType,!0)}toggleColumnMenu(e){return this.toggleMenu(this.activeMenuFactory,e,"columnMenu")}toggleFilterMenu(e){return this.toggleMenu(zd(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,o,r){this.setActiveButtonMenu(),this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,o,r)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){zd(this.beans)?.hideActiveMenu()}toggleMenu(e,t,o,r){if(!e)return"declined";const{activeButtonMenu:i}=this,{buttonElement:a}=t;return i?.menuFactory===e&&i.getButtonElement()===a?(this.setActiveButtonMenu(),e.hideActiveMenu(),"closed"):(this.setActiveButtonMenu(),this.hidePopupMenu(),this.hideFilterMenu(),this.showButtonMenu(e,t,o,{filtersOnly:r,suppressCloseOnEventSource:!0})?"opened":"declined")}showButtonMenu(e,t,o,r){if(!e)return!1;const{getButtonElement:i}=t,a={};let n=t.buttonElement;const s=()=>{if(!n.isConnected){const g=i?.();g?.isConnected&&(n=g,this.activeButtonMenu?.token===a&&n.classList.add(Ad))}return n};let l=!1;const c=g=>{l=!0;const u=s();this.activeButtonMenu?.token===a&&this.setActiveButtonMenu(),g instanceof KeyboardEvent&&u.isConnected&&u.focus({preventScroll:!0}),t.onClosedCallback?.()};return!e.showMenuAfterButtonClick(t.column,n,o,c,{...r,getEventSource:s})||l?!1:(this.setActiveButtonMenu({getButtonElement:s,menuFactory:e,token:a}),!0)}setActiveButtonMenu(e){this.activeButtonMenu?.getButtonElement().classList.remove(Ad),this.activeButtonMenu=e,e?.getButtonElement().classList.add(Ad)}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.colDef;return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(Ie(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.colDef.suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){const t=e?.isColumn?e.colDef:e?.getColGroupDef();return!!this.beans.enterpriseMenuFactory&&!t?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(Ut()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!Ie(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!Ie(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 Ie(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,o,r){const{positionBy:i,onClosedCallback:a}=t,n=t.column;if(i==="button")this.setActiveButtonMenu(),this.showButtonMenu(e,t,o,{filtersOnly:r,suppressCloseOnEventSource:!0});else if(i==="mouse"){this.setActiveButtonMenu();const{mouseEvent:s,getEventSource:l}=t;e?.showMenuAfterMouseEvent(n,s,o,a,r,l)}else if(n){this.setActiveButtonMenu();const s=this.beans;s.ctrlsSvc.getScrollFeature().ensureColumnVisible(n,"auto"),Gt(s,()=>{const c=lr(s,n,r);c&&this.showButtonMenu(e,{column:n,buttonElement:c,getButtonElement:()=>lr(s,n,r),onClosedCallback:a},o,{filtersOnly:r,suppressCloseOnEventSource:!0})})}}};function Id(e,t,o){e.isMenuVisible()!==t&&(e.setMenuVisible(t),e.dispatchColEvent("menuVisibleChanged",o))}function zd(e){const{enterpriseMenuFactory:t,filterMenuFactory:o,gos:r}=e;return t&&Ie(r)?t:o}var Ib={moduleName:"SharedMenu",version:R,beans:[_T],apiFunctions:{showColumnMenu:qT,hidePopupMenu:UT}},jT=".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-missing-content{-moz-column-gap:var(--ag-spacing);column-gap:var(--ag-spacing);display:flex}.ag-set-filter-item-missing-value{min-width:0;overflow:hidden;text-overflow:ellipsis}.ag-set-filter-item-missing-label{flex:none}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;:where(.ag-set-filter-group-closed-icon),:where(.ag-set-filter-group-indeterminate-icon),:where(.ag-set-filter-group-opened-icon){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{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%;margin:0 calc(var(--ag-spacing)*-.5);overflow:hidden;padding:0 calc(var(--ag-spacing)*.5);width:100%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>:where(.ag-date-floating-filter-wrapper),>:where(.ag-floating-filter-input),>:where(.ag-input-field){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(.ag-input-field-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-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:max(200px,100%)}.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;gap:var(--ag-widget-vertical-spacing);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:var(--ag-widget-container-vertical-padding);: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)}",KT=new Set(["agSetColumnFilterHandler","agMultiColumnFilterHandler","agGroupColumnFilterHandler"]);function YT(e,t,o,r){const i={displayHandlerName:e,displayHandler:t,rowHandler:o,init:s=>{t.init?.(s),o.init?.(s)},refresh:s=>{const l=t.refresh?.(s);return o.refresh?.(s)===!1||l===!1?!1:void 0},doesFilterPass:s=>o.doesFilterPass(s),getModelAsString:(s,l)=>t.getModelAsString?.(s,l)??o.getModelAsString?.(s,l)??"",onAnyFilterChanged:()=>{t.onAnyFilterChanged?.(),o.onAnyFilterChanged?.()},onNewRowsLoaded:()=>{t.onNewRowsLoaded?.(),o.onNewRowsLoaded?.()},destroy:()=>{r(t),r(o)}},a=t.processModelToApply?.bind(t),n=o.processModelToApply?.bind(o);return(a||n)&&(i.processModelToApply=s=>{const l=a?a(s):s;return n?n(l):l}),i}var Ld=e=>e&&"displayHandler"in e?e:void 0;function Od(e){return Ld(e)?.displayHandler??e}function zb(e){return Ld(e)?.rowHandler??e}var QT=e=>Ld(e)?.displayHandlerName;function ZT(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function JT(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function XT(e,t){const o=e.colModel.getCol(t);if(o)return e.colFilter?.destroyFilter(o,"api")}function $T(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function eA(e){return e.filterManager?.getFilterModel()??{}}function tA(e,t,o){const{gos:r,colModel:i,colFilter:a}=e;o&&!r.get("enableFilterHandlers")&&(e.log.warn(288),o=!1);const n=i.getCol(t);return n?a?.getLatestModelForColumn(n,o)??null:null}function oA(e,t,o){return e.filterManager?.setColumnFilterModel(t,o)??Promise.resolve()}function rA(e,t){const o=e.colModel.getCol(t);if(!o){e.log.error(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:o,containerType:"columnFilter",positionBy:"auto"})}function iA(e){e.menuSvc?.hideFilterMenu()}function aA(e,t){const o=e.colModel.getCol(t);if(!o){e.log.error(12,{colKey:t});return}return zb(e.colFilter?.getHandler(o,!0))}function nA(e,t){const{colId:o,action:r}=t;if(r==="clearPreservedValues"||r==="clearUnselectedPreservedValues"){e.gos.assertModuleRegistered("SetFilter","api.doFilterAction")&&e.setFilterSvc?.clearPreservedValues(o,r==="clearUnselectedPreservedValues");return}if(!e.gos.get("enableFilterHandlers")){e.log.warn(287);return}if(!o)e.colFilter?.updateAllModels(r);else if(typeof o=="string")Lb(e,o,r);else for(let i=0,a=o.length;i<a;++i)Lb(e,o[i],r)}function Lb(e,t,o){const r=e.colModel.colsById[t];r&&e.colFilter?.updateModel(r,o)}var sA=1,bn=null,lA=()=>{if(bn!=null)return bn;let e;const t=typeof navigator>"u"?void 0:navigator.languages?.[0]??navigator.language;if(t&&typeof Intl<"u"&&typeof Intl.Locale=="function")try{e=new Intl.Locale(t).getWeekInfo?.()?.firstDay}catch{e=void 0}return bn=e==null?sA:e%7,bn},$e=e=>(e.setHours(0,0,0,0),e),Vd=e=>{const t=e.getDay(),o=lA(),r=(t-o+7)%7;return e.setDate(e.getDate()-r),$e(e)},Cn=(e,t=1)=>(e.setDate(e.getDate()-t),e),ct=e=>(e.setDate(e.getDate()+1),$e(e)),cA=e=>(Vd(e),e.setDate(e.getDate()+6),ct(e)),Bd=e=>(e.setDate(1),$e(e)),Ob=e=>(e.setDate(1),e.setMonth(e.getMonth()+1),$e(e)),Vb=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3),Bd(e)},dA=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3+2),Ob(e)},Bb=e=>(e.setMonth(0,1),$e(e)),gA=e=>(e.setMonth(12,0),ct(e)),Pi=e=>Cn(e),Hb=e=>Pi(Vd(e)),Nb=e=>Pi(Bd(e)),Gb=e=>Pi(Vb(e)),Hd=(e,t)=>[$e(e),ct(t)],uA=(e,t)=>Hd(Pi(e),Pi(t)),Nd=(e,t)=>[Vd(e),cA(t)],hA=(e,t)=>Nd(Hb(e),Hb(t)),Gd=(e,t)=>[Bd(e),Ob(t)],pA=(e,t)=>Gd(Nb(e),Nb(t)),Wd=(e,t)=>[Vb(e),dA(t)],fA=(e,t)=>Wd(Gb(e),Gb(t)),qd=(e,t)=>[Bb(e),gA(t)],mA=(e,t)=>[Bb(e),ct(t)],vA=(e,t)=>[$e(Cn(e,7)),ct(t)],wA=(e,t)=>[$e(Cn(e,30)),ct(t)],bA=(e,t)=>[$e(Cn(e,90)),ct(t)],CA=(e,t)=>(e.setFullYear(e.getFullYear()-1),e.setMonth(e.getMonth()+6),[$e(e),ct(t)]),yA=(e,t)=>(e.setFullYear(e.getFullYear()-1),[$e(e),ct(t)]),SA=(e,t)=>(e.setFullYear(e.getFullYear()-2),[$e(e),ct(t)]),xA=(e,t)=>(e.setFullYear(e.getFullYear()-1),t.setFullYear(t.getFullYear()-1),qd(e,t)),kA=(e,t)=>(e.setFullYear(e.getFullYear()+1),t.setFullYear(t.getFullYear()+1),qd(e,t)),EA=(e,t)=>(e.setMonth(e.getMonth()+3),t.setMonth(t.getMonth()+3),Wd(e,t)),RA=(e,t)=>(e.setMonth(e.getMonth()+1),t.setMonth(t.getMonth()+1),Gd(e,t)),FA=(e,t)=>(e.setDate(e.getDate()+7),t.setDate(t.getDate()+7),Nd(e,t)),MA=(e,t)=>(e.setDate(e.getDate()+1),t.setDate(t.getDate()+1),Hd(e,t)),Ud={today:Hd,yesterday:uA,tomorrow:MA,thisWeek:Nd,lastWeek:hA,nextWeek:FA,thisMonth:Gd,lastMonth:pA,nextMonth:RA,thisQuarter:Wd,lastQuarter:fA,nextQuarter:EA,thisYear:qd,lastYear:xA,nextYear:kA,yearToDate:mA,last7Days:vA,last30Days:wA,last90Days:bA,last6Months:CA,last12Months:yA,last24Months:SA},Wb=Object.keys(Ud),qb=class{constructor(){this.ranges=new Map}getRange(e,t){const o=this.ranges,r=Date.now();let i=o.get(e);if(i&&i.expires<=r&&(i=void 0),!i){const[a,n]=t(new Date(r),new Date(r)),s=ct(new Date(r)).getTime();i={fromTime:a.getTime(),toTime:n.getTime(),expires:s},o.set(e,i)}return i}};function vr(e,t,o){return W(e,{column:t,colDef:t.getColDef(),source:o})}function Ti(e,t,o,r){return e&&o?i=>e(i,vr(t,o,r)):void 0}function _d(e){return e<1||Number.isNaN(e)}function DA(e){return typeof e!="number"?null:_d(e)?1:Math.floor(e)}function Ai(e,t,o){return o==null?e.splice(t):e.splice(t,o)}function Ii(e){if(typeof e=="string"){const t=e.codePointAt(0)??0;return t>32&&t<160?!1:!e.trim()}return e==null}function Ub(e){return!Ii(e)}function PA(e){return e==="AND"||e==="OR"?e:"AND"}function TA(e,t,o,r,i){const a=e?.predicate;if(a!=null&&!t.some(n=>n==null))return a(t,o,vr(r,i,"columnFilter"))}function AA(e,t,o){let r=t.length;return r>o&&(t.splice(o),e.warn(78),r=o),r}var IA=new Set(["empty","notBlank","blank",...Wb]),zA=["displayKey","displayName","predicate"],_b={isAnyOf:!0,isNoneOf:!0,true:!0,false:!0};function jb(e,t,o){const r=new Map,i=new Map;for(let a=0,n=e.length;a<n;++a){const s=e[a];if(s!=null)if(typeof s=="string"){if(o&&Sr(o,s))continue;r.set(s,r.get(s)??s)}else{const l=zA.filter(d=>s[d]==null);if(l.length){t(l);continue}const c=s.displayKey;r.set(c,s),i.set(c,s)}}return{offered:r,customOptions:i}}function Kb(e,t){const o=String(e.displayKey);return t(o,e.displayName).trim()||o.trim()}function jd(e){const t=Math.trunc(e.numberOfInputs??1);return t>0?Math.min(t,2):0}function co(e,t){const o=t.getCustomOption(e);return o?jd(o):e&&IA.has(e)?0:e==="inRange"?2:1}function Yb(e,t,o){return e==null||t==null?!1:o?e>t:e>=t}function Kd(e,t,o,r){return Yb(e,t,r)?e instanceof Date?r?o?"maxDateInclusiveValidation":"minDateInclusiveValidation":o?"maxDateValidation":"minDateValidation":r?o?"maxValueValidation":"minValueValidation":o?"strictMaxValueValidation":"strictMinValueValidation":null}var Qb={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},Zb=["january","february","march","april","may","june","july","august","september","october","november","december"];function LA(e,t){return e==null?-1:t==null?1:Number.parseFloat(e)-Number.parseFloat(t)}function OA(e,t){if(e==null)return-1;if(t==null)return 1;const o=Oe(e),r=Oe(t);return o!=null&&r!=null?o===r?0:o>r?1:-1:String(e).localeCompare(String(t))}function Jb(e){return e instanceof Date&&!Number.isNaN(e.getTime())}var Xb=new WeakSet;function Yd(e){return Xb.add(e),e}var VA=Yd(Jb);function BA(e){return typeof e=="function"&&Xb.has(e)}var yn=["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>t===!1,numberOfInputs:0}];function HA(e){if(!Array.isArray(e)||e.length!==yn.length)return!1;for(let t=0,o=yn.length;t<o;++t)if(e[t]!==yn[t])return!1;return!0}var Qd={number:()=>{},bigint:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:[...yn]}),date:()=>({isValidDate:VA}),dateString:({dataTypeDefinition:e})=>({comparator:Yd((t,o)=>{const r=e.dateParser(o);return o==null||r<t?-1:r>t?1:0}),isValidDate:Yd(t=>typeof t=="string"&&Jb(e.dateParser(t)))}),dateTime:e=>Qd.date(e),dateTimeString:e=>Qd.dateString(e),object:()=>{},text:()=>{}};function $b(e,t){return e instanceof Date?Ss(e,t):null}var Zd={number:()=>({comparator:LA}),bigint:()=>({comparator:OA}),boolean:({t:e})=>({valueFormatter:t=>{const o=t.value;return Ii(o)?e("blanks","(Blanks)"):e(String(o),o?"True":"False")}}),date:({formatValue:e,t})=>({valueFormatter:o=>e(o)||t("blanks","(Blanks)"),treeList:!0,treeListFormatter:(o,r)=>{if(o==="NaN")return t("invalidDate","Invalid Date");if(r===1&&o!=null){const i=Zb[Number(o)-1];return t(i,Qb[i])}return o??t("blanks","(Blanks)")},treeListPathGetter:o=>$b(o,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:o})=>({valueFormatter:r=>e(r)||o("blanks","(Blanks)"),treeList:!0,treeListPathGetter:r=>Ss(t.dateParser(r??void 0),!1),treeListFormatter:(r,i)=>{if(i===1&&r!=null){const a=Zb[Number(r)-1];return o(a,Qb[a])}return r??o("blanks","(Blanks)")}}),dateTime:e=>{const t=Zd.date(e);return t.treeListPathGetter=o=>$b(o),t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,o=Zd.dateString(e);return o.treeListPathGetter=r=>Ss(t(r??void 0)),o},object:({formatValue:e,t})=>({valueFormatter:o=>e(o)||t("blanks","(Blanks)")}),text:()=>{}};function eC(e,t,o,r,i,a,n){let s=o;const l=e==="agSetColumnFilter",c=r.baseDataType;if(!s&&c==="object"&&!l&&(s=a.dataTypeSvc?.objectFilterValueGetter),typeof t=="function")return{filterParams:t,filterValueGetter:s};const g=(l?Zd:Qd)[c],u=g({dataTypeDefinition:r,formatValue:i,t:n});return{filterParams:typeof t=="object"?{...u,...t}:u,filterValueGetter:s}}var NA={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",bigint:"agBigIntColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"};function tC(e){return NA[e??"text"]}function Sn(e,t,o=t.colDef,r=oC(e,t),i){const a=e.selectableFilter?.getFilterDef(t,o),n=WA(e,GA(e,t,a??o)),s=n.filter,l=typeof s=="object"&&s!=null?s.component:s;let c;l===!0?c=r:typeof l=="string"&&(c=l);const d=n.filterValueGetter||(i?i.filterValueGetter:t.colDef.filterValueGetter),g=c==="agSetColumnFilter"&&d===e.dataTypeSvc?.objectFilterValueGetter?void 0:d;return{def:qA(e,t,n,c,g,!!a),defaultFilter:r,key:c,filterValueGetter:g}}function GA(e,t,o){const r=o.filter;return!ar(r)||e.gos.get("enableFilterHandlers")?o:r.handler||r.doesFilterPass?(e.log.warn(335,{colId:t.getColId()}),{...o,filter:!0}):{...o,filter:r.component}}function WA(e,t){const o=t.filter;return Jd(e,o)?{...t,filter:!0}:typeof o=="object"&&o!=null&&Jd(e,o.component)?{...t,filter:{...o,component:!0}}:t}function Jd(e,t){return typeof t!="string"||e.gos.get("filterHandlers")?.[t]||t==="agSelectableColumnFilter"&&e.selectableFilter?!1:!e.registry.hasUserComponent("filter",t)}function qA(e,t,o,r,i,a){const n=o.filterParams,s=typeof n=="function";if(typeof r!="string"||!(a||s))return o;const l=e.dataTypeSvc,c=l?.getDataTypeDefinition(t),d=t.colDef.cellDataType,g=typeof d=="string"?l?.getFormatValue(d):void 0;if(!c||!g)return o;const u=h=>iC(e,r,h,i,c,g);return s?{...o,filterParams:h=>u(n(h)).filterParams}:{...o,...u(n)}}function oC(e,t){return rC(e,e.dataTypeSvc?.getBaseDataType(t))}function rC(e,t){return ih(e.gos)?"agSetColumnFilter":tC(t)}function iC(e,t,o,r,i,a){return t!=="agMultiColumnFilter"?eC(t,o,r,i,a,e,fo(e.localeSvc)):typeof o=="function"?{filterParams:o}:e.multiFilter?.getParamsForDataType(o,r,i,a)??{}}function UA(e,t){return ar(t)&&!!(t.handler||t.doesFilterPass)&&!e.gos.get("enableFilterHandlers")}function aC(e,t,o){const r=ar(t)?t.component:t;return r===!0||Jd(e,r)||UA(e,t)?o:typeof r=="string"?r:void 0}function _A(e,t,o,r){const i=rC(e,o.baseDataType),a=aC(e,t.filter,i);if(a===void 0)return;const{filterParams:n,filterValueGetter:s}=iC(e,a,t.filterParams,t.filterValueGetter,o,r);t.filterParams=n,s&&(t.filterValueGetter=s)}var jA={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agBigIntColumnFilter:"agBigIntColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},nC=e=>e===void 0?void 0:Sr(jA,e),sC=()=>({doesFilterPass:()=>!0}),KA={filterHandler:sC,handlerGenerator:sC,displayHandlerName:void 0};function lC(e,t,o,r){if(!e.isPrimary())return!0;const a=!o;return!e.isValueActive()||!a?!1:t?!0:r}function cC(e,t,o){if(!t)return!1;for(let r=0,i=t.length;r<i;++r){const a=t[r];if((o||a.data)&&e(a)||cC(e,a.childrenAfterGroup,o))return!0}return!1}var YA=e=>ar(e)&&!e.handler?e.doesFilterPass:void 0,QA=(e,t)=>ar(e)?e.handler||(t?()=>({doesFilterPass:t}):void 0):typeof e=="string"?e:void 0,dC=(e,t,o,r)=>{if(!o?.isFilterAllowed())return;const i=o.colId;t.has(i)||(t.add(i),r!=null&&(e[i]=r))},ZA=class extends x{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.paramsColDefsVersion=0,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.state=new Map,this.handlerMap={...Pb},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:()=>{this.beans.setFilterSvc?.createPreservingFilters(),this.processFilterModelUpdateQueue()}}),this.addManagedPropertyListener("pivotMode",this.onPivotModeChanged.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",o){const{colModel:r,dataTypeSvc:i,filterManager:a}=this.beans;if(i?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const n=[],s=this.getModel(!0);if(e){const l=new Set(Object.keys(e));this.allColumnFilters.forEach((c,d)=>{const g=e[d];n.push(this.setModelOnFilterWrapper(c,g)),l.delete(d)}),l.forEach(c=>{const d=r.colsById[c];if(!d){this.warn(62,{colId:c});return}if(!d.isFilterAllowed()){this.warn(63,{colId:c});return}const g=this.getOrCreateFilterWrapper(d,!0);if(!g){this.warn(64,{colId:c});return}n.push(this.setModelOnFilterWrapper(g,e[c],!0))})}else this.model={},this.allColumnFilters.forEach(l=>{n.push(this.setModelOnFilterWrapper(l,null))});oe.all(n).then(()=>{const l=this.getModel(!0),c=[];this.allColumnFilters.forEach((d,g)=>{const u=s?s[g]:null,h=l?l[g]:null;xr(u,h)||c.push(d.column)}),c.length>0?a?.onFilterChanged({columns:c,source:t}):o&&this.updateActive("filterChanged")})}getLatestModel(){return this.modelUpdates.length?this.getQueuedModel():this.getModel()}getModel(e){const t={},{allColumnFilters:o,initialModel:r,beans:{colModel:i}}=this;if(o.forEach((a,n)=>{const s=this.getModelFromFilterWrapper(a);L(s)&&(t[n]=s)}),!e)for(const a of Object.keys(r)){const n=r[a];L(n)&&!o.has(a)&&i.colsById[a]?.colDef.filter&&(t[a]=n)}return t}getQueuedModel(){const e=this.beans.colModel,t=this.modelUpdates,o={},r=new Set;for(let n=t.length-1;n>=0;--n){const s=t[n];if(s.resolve){dC(o,r,e.getNonPivotCol(s.key),s.model);continue}const l=s.model;if(!l)return o;const c=e.colsById,d=Object.keys(l);for(let g=0,u=d.length;g<u;++g){const h=d[g];dC(o,r,c[h],l[h])}return o}const i=this.getModel(),a=Object.keys(i);for(let n=0,s=a.length;n<s;++n){const l=a[n];r.has(l)||(o[l]=i[l])}return o}setState(e,t,o="api"){if(this.state.clear(),t)for(const r of Object.keys(t)){const i=t[r];this.state.set(r,{model:we(this.model,r),state:i})}this.setModel(e,o,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let o=!1;return e.forEach((r,i)=>{const a=r.state;a!=null&&(o=!0,t[i]=a)}),o?t:void 0}getModelFromFilterWrapper(e){const o=e.column.getColId();if(e.isHandler)return we(this.model,o);const r=e.filter;return r?typeof r.getModel!="function"?(this.warn(66),null):r.getModel():we(this.initialModel,o)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const e=this.modelUpdates;this.modelUpdates=[];for(let o=0,r=e.length;o<r;++o)e[o].resolve?.();const{allColumnFilters:t}=this;return t.size?(t.forEach(o=>this.disposeFilterWrapper(o,"advancedFilterEnabled")),!0):!1}updateActiveFilters(){const e=this.beans,{colModel:t,gos:o}=e,r=!!Vr(o),i=[],a=[],n=(l,c,d)=>{c&&(lC(l,t.pivotMode,t.isPivotActive(),r)?i.push(d):a.push(d))},s=[];return this.allColumnFilters.forEach(l=>{const c=l.column,d=c.getColId();if(l.isHandler)s.push(oe.resolve().then(()=>{n(c,this.isHandlerActive(c),{colId:d,isHandler:!0,handler:l.handler,handlerParams:l.handlerParams})}));else{const g=lo(l);g&&s.push(g.then(u=>{n(c,Di(e,u),{colId:d,isHandler:!1,comp:u})}))}}),oe.all(s).then(()=>{this.activeAggregateFilters=i,this.activeColumnFilters=a})}updateFilterFlagInColumns(e,t){const o=[];return this.allColumnFilters.forEach(r=>{const i=r.column;if(r.isHandler)o.push(oe.resolve().then(()=>{this.setColFilterActive(i,this.isHandlerActive(i),e,t)}));else{const a=lo(r);a&&o.push(a.then(n=>{this.setColFilterActive(i,Di(this.beans,n),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),oe.all(o)}doFiltersPass(e,t,o){const{data:r,aggData:i}=e,a=o?this.activeAggregateFilters:this.activeColumnFilters,n=o?i:r,s=this.model;for(let l=0;l<a.length;l++){const c=a[l],{colId:d,isHandler:g}=c;if(d!==t)if(g){const{handler:u,handlerParams:h}=c;if(!u.doesFilterPass({node:e,data:n,model:we(s,d),handlerParams:h}))return!1}else{const u=c.comp;if(typeof u.doesFilterPass!="function"){this.error(91);continue}if(!u.doesFilterPass({node:e,data:n}))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:o}=this.beans,r=()=>{this.isAlive()&&o?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(r,0):r()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:o}=e,r=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",o).then(()=>{this.allColumnFilters.forEach(i=>{const{column:a,isHandler:n}=i;r!==a.getColId()&&(n&&i.handler.onAnyFilterChanged?.(),lo(i,n)?.then(s=>{typeof s?.onAnyFilterChanged=="function"&&s.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(o=>{const r=o.isHandler;r&&o.handler.onNewRowsLoaded?.();const i=lo(o,r);i&&t.push(i.then(a=>{a.onNewRowsLoaded?.()}))}),oe.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e){const{filterValueSvc:t,colModel:o}=this.beans;return(r,i)=>{const a=i?o.getCol(i):e;return a?t.getValue(a,r):void 0}}createHandlerGetValue(e,t){const{filterValueSvc:o,colModel:r}=this.beans;return(i,a)=>{const n=a?r.getCol(a):e;return n===e?o.getValueWithGetter(e,i,t):n?o.getValue(n,i):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const o=t?.filter;return o?Di(this.beans,o):we(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=L(we(this.model,e.getColId()));if(t)return t;const o=this.beans.groupFilter;return o?.isGroupFilter(e)?o.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?lo(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const o=lo(t);return o?o.then(r=>({comp:r,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const o=this.getOrCreateFilterWrapper(e,t);return o?.isHandler?o.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let o=this.cachedFilter(e);return!o&&t&&(o=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,o)),o}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}createFilterComp(e,t,o,r,i){const a=()=>{const l=this.createFilterCompParams(e,r,i),c=o(l,r);return jh(this.beans.userCompFactory,t.def,c,t.defaultFilter)},n=a();return n?{compDetails:n,createFilterUi:l=>(l?a():n).newAgStackInstance()}:null}createFilterInstance(e,t,o){const{handler:r,handlerParams:i,handlerGenerator:a}=this.createHandler(e,t)??{},n=this.createFilterComp(e,t,o,!!r,"init");if(!n)return{compDetails:null,createFilterUi:null,handler:r,handlerGenerator:a,handlerParams:i};const{compDetails:s,createFilterUi:l}=n;return this.isGlobalButtons&&(s.params?.buttons?.length||this.warn(281,{colId:e.getColId()})),{compDetails:s,handler:r,handlerGenerator:a,handlerParams:i,createFilterUi:l}}createDoesRowPassOtherFilter(e,t){const o=this.beans,r=o.filterManager,i=e.getColId(),a=n=>(!r||r.doesRowPassFilter(n,i))&&(!t||t(n));return n=>{const s=n;if(a(s))return!0;if(!o.groupStage?.treeData)return!1;const l=!this.gos.get("excludeChildrenWhenTreeDataFiltering");if(l){for(let c=s.parent;c&&c.level>=0;c=c.parent)if(a(c))return!0}return cC(a,s.childrenAfterGroup,l)}}createBaseFilterParams(e,t){return W(this.gos,{column:e,colDef:e.colDef,getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:this.createDoesRowPassOtherFilter(e,void 0),rowModel:this.beans.rowModel})}createFilterCompParams(e,t,o,r){const i=this.filterChangedCallbackFactory(e),a=this.createBaseFilterParams(e,r);if(a.filterChangedCallback=i,a.filterModifiedCallback=r?()=>{}:n=>this.filterModified(e,n),t){const n=a,s=e.getColId(),l=we(this.model,s);n.model=l,n.state=this.state.get(s)??{model:l},n.onModelChange=this.createOnModelChange(e,"ui"),n.onStateChange=c=>{this.updateState(e,c),this.updateOrRefreshFilterUi(e)},n.onAction=(c,d,g)=>{this.updateModel(e,c,d),this.dispatchLocalEvent({type:"filterAction",column:e,action:c,event:g})},n.getHandler=()=>Od(this.getHandler(e,!0)),n.onUiChange=c=>this.filterUiChanged(e,c),n.source=o}return a}createFilterUiForHandler(e,t,o){return t?{created:!1,refreshed:o,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,o){const r=t(),i={created:!0,create:t,filterParams:e.params,compDetails:e,promise:r};return r.then(o),i}createFilterWrapper(e){const{compDetails:t,handler:o,handlerGenerator:r,handlerParams:i,createFilterUi:a}=this.createFilterInstance(e,Sn(this.beans,e),s=>s),n=e.getColId();if(o)return delete this.initialModel[n],o.init?.({...i,source:"init",model:we(this.model,n)}),{column:e,isHandler:!0,handler:o,handlerGenerator:r,handlerParams:i,filterUi:this.createFilterUiForHandler(t,a)};if(a){const s={column:e,filterUi:null,isHandler:!1};return s.filterUi=this.createFilterUiLegacy(t,a,l=>{s.filter=l??void 0,delete this.initialModel[n]}),s}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t){const o=this.gos,r=o.get("enableFilterHandlers"),i=t.def.filter,a=r?YA(i):void 0,n=r?QA(i,a):void 0,l=this.handlerMap[t.key];let c,d;if(typeof n!="string"?c=n:(c=o.get("filterHandlers")?.[n],c==null&&HT.has(n)&&(d=n)),c||(d??(d=l),d&&(c=this.createProvidedHandlerFunc(d))),!c)return this.getMissingHandlerFunc(e,r);const g=a??d??c;return n&&l&&l!==d&&KT.has(l)?{filterHandler:this.pairWithDisplayHandler(l,c),handlerGenerator:g,displayHandlerName:l}:{filterHandler:c,handlerGenerator:g,displayHandlerName:void 0}}createProvidedHandlerFunc(e){return()=>this.createBean(this.beans.registry.createDynamicBean(e,!0))}getMissingHandlerFunc(e,t){if(t)return ve(this.gos)&&this.warn(277,{colId:e.getColId()}),KA}pairWithDisplayHandler(e,t){const o=this.createProvidedHandlerFunc(e);return r=>YT(e,o(r),t(r),i=>this.destroyBean(i))}createHandler(e,t){const o=this.createHandlerFunc(e,t);if(!o)return;const r=this.createHandlerFilterParams(e,t.def,"init");return{...this.createHandlerFromFunc(e,t,o.filterHandler,r),handlerGenerator:o.handlerGenerator}}createHandlerParamsForDef(e,t){const o=this.createHandlerFilterParams(e,t.def,"colDef");return this.createHandlerParams(e,t,o)}resolveFilterParams(e,t){const o=t.filterParams;return typeof o=="function"?o(this.createFilterCompParams(e,!!this.gos.get("enableFilterHandlers"),"init")):o}createHandlerFilterParams(e,t,o){return ma(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,o))}createHandlerFromFunc(e,t,o,r){const i=e.getColDef(),a=o(W(this.gos,{column:e,colDef:i})),n=this.createHandlerParams(e,t,r);return{handler:a,handlerParams:n}}createHandlerParams(e,t,o){const r=e.getColDef(),i=t.filterValueGetter;return W(this.gos,{colDef:r,column:e,filterValueGetter:i,getValue:this.createHandlerGetValue(e,i),doesRowPassOtherFilter:this.createDoesRowPassOtherFilter(e,void 0),onModelChange:this.createOnModelChange(e,"handler"),onModelAsStringChange:()=>{e.dispatchColEvent("filterChanged","filterChanged"),this.dispatchLocalEvent({type:"filterModelAsStringChanged",column:e})},filterParams:o})}onColumnsChanged(){const e=[],t=[],{filterManager:o,groupFilter:r}=this.beans;this.allColumnFilters.forEach(n=>{this.isCurrentColumn(n.column)||(e.push(n.column),t.push(this.disposeFilterWrapper(n,"columnChanged")))});const i=r&&e.every(n=>r.isGroupFilter(n));e.length>0&&!i&&o?.onFilterChanged({columns:e,source:"api"});const a=this.beans.setFilterSvc;a&&oe.all(t).then(()=>{this.isAlive()&&a.createPreservingFilters()})}hasFilter(e){return this.allColumnFilters.has(e.getColId())}isCurrentColumn(e){const t=this.beans.colModel,o=e.getColId();return(e.primary?t.getNonPivotColById(o):t.colsById[o])===e}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const o=this.beans.groupFilter;return o?.isGroupFilter(e)?o.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const o=this.beans,{userCompFactory:r,gos:i}=o,a=h=>{this.getOrCreateFilterUi(e)?.then(f=>{h(yt(f))})},n=e.getColDef(),s=Sn(o,e),l=s.def,c=nC(s.key)??"agReadOnlyFloatingFilter",d=i.get("enableFilterHandlers"),g=ma(r,l,this.createFilterCompParams(e,d,"init",!0)),u=W(i,{column:e,filterParams:g,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:a,showParentFilter:t});if(d){const h=u;h.onUiChange=p=>this.floatingFilterUiChanged(e,p),h.model=we(this.model,e.getColId()),h.onModelChange=this.createOnModelChange(e,"floating"),h.getHandler=()=>Od(this.getHandler(e,!0)),h.source="init"}return Kh(r,n,u,c)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,o,r){const i="paramsUpdated";if(e.isHandler){const a=t.getColId();delete this.initialModel[a],this.state.delete(a);const n=e.filterUi,s=this.createFilterUiForHandler(o,r,!0);e.filterUi=s;const l=this.eventSvc;n?.created?n.promise.then(c=>{this.destroyBean(c),l.dispatchEvent({type:"filterDestroyed",source:i,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:i,column:t})}else this.destroyFilter(t,i)}destroyFilter(e,t="api"){const o=e.getColId(),r=this.allColumnFilters.get(o);delete this.initialModel[o],r&&this.disposeFilterWrapper(r,t).then(i=>{this.isAlive()&&(i&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"}),this.beans.setFilterSvc?.createPreservingFilters(e))})}disposeFilterWrapper(e,t){let o=!1;const{column:r,isHandler:i,filterUi:a}=e,n=r.getColId();i&&(o=this.isHandlerActive(r),this.destroyBean(e.handler),delete this.model[n],this.state.delete(n));const s=()=>{this.setColFilterActive(r,!1,"filterDestroyed"),this.allColumnFilters.delete(n),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:r})};if(a){if(a.created)return a.promise.then(l=>(o=i?o:Di(this.beans,l),this.destroyBean(l),s(),o));s()}return oe.resolve(o)}createOnModelChange(e,t){const o=e.getColId(),r=this.filterChangedCallbackFactory(e);return(i,a)=>{this.updateStoredModel(o,i),this.refreshHandlerAndUi(e,i,t,t==="floating",a).then(()=>r({...a,source:"columnFilter"}))}}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}refreshOrRecreateHandler(e,t,o,r,i){const a=e.column,n=a.getColId(),s=o.handlerGenerator,l=we(this.model,n);let c=e.handlerGenerator!=s||QT(e.handler)!==o.displayHandlerName;if(!c){const h=this.createHandlerParams(a,t,r);e.handlerParams=h,c=e.handler.refresh?.({...h,source:"colDef",model:l})===!1}if(!c)return!1;const d=e.handler,{handler:g,handlerParams:u}=this.createHandlerFromFunc(a,t,o.filterHandler,r);return e.handler=g,e.handlerParams=u,e.handlerGenerator=s,delete this.model[n],this.state.delete(n),g.init?.({...u,source:"init",model:null}),this.destroyBean(d),l!=null&&this.beans.filterManager?.onFilterChanged({columns:[a],source:i}),!0}hasRedefinedFilters(){return this.paramsColDefsVersion!==this.beans.colModel.colDefsVersion}refreshRedefinedFilters(){const e=this.beans.colModel.colDefsVersion;e!==this.paramsColDefsVersion&&(this.allColumnFilters.forEach((t,o)=>{t.column.takeFilterRedefined()&&this.filterParamsChanged(o)}),this.paramsColDefsVersion=e)}filterParamsChanged(e,t="api"){const o=this.allColumnFilters.get(e);if(!o)return;const r=this.beans,i=o.column,a=i.isFilterAllowed(),n=Sn(r,i),s=a?this.createHandlerFunc(i,n):void 0,l=!!s,c=o.isHandler;if(c!=l){this.destroyFilter(i,"paramsUpdated");return}const{compDetails:d,createFilterUi:g}=(a?this.createFilterComp(i,n,f=>f,l,"colDef"):null)??{compDetails:null,createFilterUi:null},u=d?.params??ma(r.userCompFactory,n.def,this.createFilterCompParams(i,l,"colDef"));let h=!1;c&&(h=this.refreshOrRecreateHandler(o,n,s,u,t));const p=o.filterUi;if(c&&p&&d&&!p.created){o.filterUi=this.createFilterUiForHandler(d,g,h);return}if(h||this.areFilterCompsDifferent(p?.compDetails??null,d)||!p||!d){this.destroyFilterUi(o,i,d,g);return}p.filterParams=u,lo(o,c)?.then(f=>{(f?.refresh?f.refresh(u):!0)===!1?this.destroyFilterUi(o,i,d,g):this.dispatchLocalEvent({type:"filterParamsChanged",column:i,params:u})})}refreshHandlerAndUi(e,t,o,r,i){const a=this.cachedFilter(e);if(!a)return r&&this.getOrCreateFilterWrapper(e,!0),oe.resolve();if(!a.isHandler)return oe.resolve();const{filterUi:n,handler:s,handlerParams:l}=a,c=e.getColId(),d=this.state.get(c);return Tb(()=>{if(n&&this.state.get(c)===d){const{created:g,filterParams:u}=n;if(g)return n.promise.then(h=>h?{filter:h,filterParams:u}:void 0);n.refreshed=!0}return oe.resolve(void 0)},s,l,t,d??{model:t},o,i)}setColumnFilterWrapper(e,t){const o=e.getColId();this.allColumnFilters.set(o,t),e.takeFilterRedefined()}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:o}=e,{componentClass:r}=t;return!(o===r||o?.render&&r?.render&&o.render===r.render)}hasFloatingFilters(){return this.beans.colModel.colsList.some(t=>t.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getCol(e);if(!t)return Promise.resolve(void 0);const o=this.getOrCreateFilterUi(t);return o?new Promise(r=>{o.then(i=>{r(yt(i))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){const e=this.modelUpdates;this.modelUpdates=[];for(let t=0,o=e.length;t<o;++t){const r=e[t];r.resolve?this.setModelForColumn(r.key,r.model).then(r.resolve):this.setModel(r.model,r.source)}}getLatestModelForColumn(e,t){const o=this.modelUpdates;if(o.length&&e.isFilterAllowed()){const r=this.beans.colModel;for(let i=o.length-1;i>=0;--i){const a=o[i];if(!a.resolve)return a.model?.[e.colId]??null;if(r.getNonPivotCol(a.key)===e)return a.model??null}}return this.getModelForColumn(e,t)}getModelForColumn(e,t){if(t){const{state:r,model:i}=this,a=e.getColId(),n=r.get(a);return n?n.model??null:we(i,a)}const o=this.cachedFilter(e);return o?this.getModelFromFilterWrapper(o):null}setModelForColumn(e,t){return this.beans.dataTypeSvc?.isPendingInference?new Promise(o=>{this.modelUpdates.push({key:e,model:t,resolve:o})}):new Promise(o=>{this.setModelForColumnLegacy(e,t).then(r=>o(r))})}getStateForColumn(e){return this.state.get(e)??{model:we(this.model,e)}}setModelForColumnLegacy(e,t){const o=this.beans.colModel.getNonPivotCol(e),r=o?this.getOrCreateFilterWrapper(o,!0):null;return r?this.setModelOnFilterWrapper(r,t):oe.resolve()}setColDefPropsForDataType(e,t,o){_A(this.beans,e,t,o)}setColFilterActive(e,t,o,r){e.isFilterActive()!==t&&(e.setFilterActive(t),e.dispatchColEvent("filterActiveChanged",o)),e.dispatchColEvent("filterChanged",o,r)}setModelOnFilterWrapper(e,t,o){return new oe(r=>{if(e.isHandler){const a=e.column,n=a.getColId(),s=this.model[n];if(this.updateStoredModel(n,t),o&&t===s){r();return}this.refreshHandlerAndUi(a,t,"api").then(()=>r());return}const i=lo(e);if(i){i.then(a=>this.setModelOnFilterComp(a,t,r));return}r()})}setModelOnFilterComp(e,t,o){if(typeof e?.setModel!="function"){this.warn(65),o();return}const r=e.setModel(t);r!=null&&sy(r)?r.then(()=>o()):o()}updateStoredModel(e,t){L(t)?this.model[e]=t:delete this.model[e];const o=this.state.get(e),r={model:t,state:o?.state};this.state.set(e,r)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(o=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:o,...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,o){const r=e.getColId(),i=this.cachedFilter(e),a=()=>i?.filterUi;Td({action:t,filterParams:i?.filterUi?.filterParams,getFilterUi:a,getModel:()=>we(this.model,r),getState:()=>this.state.get(r),updateState:n=>this.updateState(e,n),updateModel:n=>a()?.filterParams?.onModelChange(n,{...o,fromAction:t}),processModelToApply:i?.isHandler?i.handler.processModelToApply?.bind(i.handler):void 0})}updateAllModels(e,t){const o=[];this.allColumnFilters.forEach((r,i)=>{const a=this.beans.colModel.getNonPivotColById(i);a&&Td({action:e,filterParams:r.filterUi?.filterParams,getFilterUi:()=>r.filterUi,getModel:()=>we(this.model,i),getState:()=>this.state.get(i),updateState:n=>this.updateState(a,n),updateModel:n=>{this.updateStoredModel(i,n),this.dispatchLocalEvent({type:"filterAction",column:a,action:e}),o.push(this.refreshHandlerAndUi(a,n,"ui"))},processModelToApply:r?.isHandler?r.handler.processModelToApply?.bind(r.handler):void 0})}),o.length&&oe.all(o).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();Ab(()=>this.cachedFilter(e)?.filterUi,()=>we(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:o}=this;for(const i of o)if(i.source==="COLUMN_MENU")return!1;let r=!1;for(const i of e.keys()){const a=e.get(i);if(a.valid===!1)return!1;(a.model??null)!==we(t,i)&&(r=!0)}return r}hasUnappliedModel(e){const{model:t,state:o}=this;return(o.get(e)?.model??null)!==we(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const o=this.beans.filterPanelSvc;return o?.isActive?!!o.getState(e.getColId()):!1}onPivotModeChanged(e){const{colModel:t,pivotColsSvc:o}=this.beans,r=!!Vr(this.gos),i=e.currentValue,a=i?this.activeColumnFilters:this.activeAggregateFilters,n=i?this.activeAggregateFilters:this.activeColumnFilters,s=[];for(const l of a){const c=t.colsById[l.colId],d=i&&!!o?.columns.length;c&&i===lC(c,i,d,r)&&(n.push(l),s.push(l))}gy(a,s)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.state.clear(),this.activeFilterComps.clear()}};function JA(e){return!!e.filterManager?.isAnyFilterPresent()}function XA(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var $A=class extends x{constructor(){super(...arguments),this.beanName="filterManager"}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:this.onPivotColumnsChanged.bind(this),columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:r})=>this.onAdvFilterEnabledChanged(r)}),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:({source:r})=>this.onFilterChanged({source:r??"quickFilter"})});const{gos:o}=this;this.alwaysPassFilter=o.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=o.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterState(e,t,o="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,o)}setFilterModel(e,t="api",o){if(this.beans.stateSvc?.applyInitialFilterState(),this.isAdvFilterEnabled()){o||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getLatestModel()??{}}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(){Vr(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onPivotColumnsChanged(){this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:o,columns:r=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):oe.resolve()).then(()=>{const i={source:t,type:"filterChanged",columns:r};o&&Ae(i,o),this.eventSvc.dispatchEvent(i),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!Vr(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.pivotMode)&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e,t){return this.alwaysPassFilter?.(e)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(e)||this.externalFilterPresent&&!this.doesExternalFilterPass(e)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(e,t)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(e))}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getLatestModel():null}setAdvFilterModel(e,t="api"){this.isAdvFilterEnabled()&&(this.beans.stateSvc?.applyInitialFilterState(),this.advancedFilter.setModelOrDefer(e??null,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()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){this.warn(68)}mountAdvFilterTopSectionComp(e){this.advancedFilter?.getCtrl().mountTopSectionComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}setColumnFilterModel(e,t){return this.beans.stateSvc?.applyInitialFilterState(),this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}};function e5(e){return{tag:"div",cls:e}}var Xd=class extends X{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(e5(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const o=this.buttons;if(this.buttons=e,o===e)return;const r=this.getGui();Ce(r);let i;this.destroyListeners();const a=document.createDocumentFragment(),n=this.className,s=({type:c,label:d})=>{const g=w=>{this.dispatchLocalEvent({type:c,event:w})};["apply","clear","reset","cancel"].includes(c)||this.beans.log.warn(75);const u=c==="apply",p=G({tag:"button",attrs:{type:u&&t?"submit":"button"},ref:`${c}FilterButton`,cls:`ag-button ag-standard-button ${n}-button${u?" "+n+"-apply-button":""}`,children:d});this.activateTabIndex([p]),u&&(i=p);const f=w=>{w.key===y.ENTER&&(w.preventDefault(),g(w))},m=this.listeners;p.addEventListener("click",g),m.push(()=>p.removeEventListener("click",g)),p.addEventListener("keydown",f),m.push(()=>p.removeEventListener("keydown",f)),a.append(p)};for(const c of e)s(c);this.eApply=i;const l=this.validationTooltipFeature;if(i&&!l){const c=i;this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.tooltipSvc?.createTooltip({getGui:()=>this.eApply??c,getTooltipComponentDefinition:()=>{},getLocation:()=>"filter",getTooltipShowDelayOverride:()=>1e3}))}else!i&&l&&(this.validationTooltipFeature=this.destroyBean(l));r.append(a)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const o=this.eApply;o&&(Rr(o,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},t5={selector:"AG-FILTER-BUTTON",component:Xd},gC=class extends X{constructor(e,t,o,r,i,a){super(),this.column=e,this.wrapper=t,this.eventParent=o,this.updateModel=r,this.isGlobalButtons=i,this.enableGlobalButtonCheck=a,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,o=t,r=o.useForm,i=r?"form":"div";this.setTemplate({tag:i,cls:"ag-filter-wrapper"}),r&&this.addManagedElementListeners(this.getGui(),{submit:a=>{a?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=o,this.resetButtonsPanel(o),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:a,params:n})=>{a===this.column&&this.resetButtonsPanel(n,this.params)},filterStateChanged:({column:a,state:n})=>{a===this.column&&this.eButtons?.updateValidity(n.valid!==!1)},filterAction:({column:a,action:n,event:s})=>{a===this.column&&this.afterAction(n,s)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:a})=>{if(a!==this.isGlobalButtons){this.isGlobalButtons=a;const n=this.params;this.resetButtonsPanel(n,n,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,o){const{buttons:r,readOnly:i}=t??{},{buttons:a,readOnly:n,useForm:s}=e;if(!o&&i===n&&xr(r,a))return;const l=a&&a.length>0&&!e.readOnly&&!this.isGlobalButtons;let c=this.eButtons;if(l){const d=a.map(g=>{const u=`${g}Filter`;return{type:g,label:ot(this,u)}});if(this.applyActive=nr(this.params),!c){c=this.createBean(new Xd),this.appendChild(c.getGui());const g=this.column,u=h=>({event:p})=>{this.updateModel(g,h,{fromButtons:!0}),this.afterAction(h,p)};c?.addManagedListeners(c,{apply:u("apply"),clear:u("clear"),reset:u("reset"),cancel:u("cancel")}),this.eButtons=c}c.updateButtons(d,s)}else this.applyActive=!1,c&&(Ge(c.getGui()),this.eButtons=this.destroyBean(c))}close(e){const t=this.hidePopup;if(!t)return;const o=e,r=o?.key;let i;(r===y.ENTER||r===y.SPACE)&&(i={keyboardEvent:o}),t(i),this.hidePopup=null}afterAction(e,t){const{params:o,applyActive:r}=this,i=o?.closeOnApply;switch(e){case"apply":{t?.preventDefault(),i&&r&&this.close(t);break}case"reset":{i&&r&&this.close();break}case"cancel":{i&&this.close(t);break}}}handleKeyDown(e){!e.defaultPrevented&&e.key===y.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},o5=":where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}",r5={tag:"div",cls:"ag-filter"},uC=class extends X{constructor(e,t,o){super(r5),this.column=e,this.source=t,this.enableGlobalButtonCheck=o,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return this.wrapper!=null}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??oe.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:o,beans:{colFilter:r}}=this,i=r.getFilterUiForDisplay(t)??null;this.wrapper=i,i?.then(a=>{if(!a)return;const{isHandler:n,comp:s}=a;let l;if(n){const c=!!this.enableGlobalButtonCheck,d=this.createBean(new gC(t,a,r,r.updateModel.bind(r),c&&r.isGlobalButtons,c));this.comp=d,l=d.getGui()}else this.registerCSS(o5),l=s.getGui(),L(l)||this.beans.log.warn(69,{guiFromFilter:l});this.appendChild(l),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:o,eGui:this.getGui()}):s.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:o}=e;(t==="api"||t==="paramsUpdated")&&o.getId()===this.column.getId()&&this.beans.colModel.getNonPivotCol(this.column)&&(Ce(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()}},i5=class extends x{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,o,r,i,a){e&&!e.isColumn||this.showPopup({column:e,positionCallback:n=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:o,mouseEvent:t,ePopup:n})},containerType:o,eventSource:t.target,isLegacyMenuEnabled:Ie(this.gos),onClosedCallback:r,getEventSource:a})}showMenuAfterButtonClick(e,t,o,r,i){if(e&&!e.isColumn)return!1;let a=-1,n="left";const s=Ie(this.gos);!s&&this.gos.get("enableRtl")&&(a=1,n="right");const l=s?void 0:4*a,c=s?void 0:4;return this.showPopup({column:e,positionCallback:d=>{this.popupSvc?.positionPopupByComponent({type:o,eventSource:i?.getEventSource?.()??t,ePopup:d,nudgeX:l,nudgeY:c,alignSide:n,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},containerType:o,eventSource:t,isLegacyMenuEnabled:s,onClosedCallback:r,suppressCloseOnEventSource:i?.suppressCloseOnEventSource,getEventSource:i?.getEventSource})}showPopup({column:e,positionCallback:t,containerType:o,eventSource:r,isLegacyMenuEnabled:i,onClosedCallback:a,suppressCloseOnEventSource:n,getEventSource:s}){const l=e?this.createBean(new uC(e,"COLUMN_MENU")):void 0;if(!l?.hasFilter()||!e)return this.destroyBean(l),this.error(57),!1;const c=l.createManagedBean(new X({tag:"div",cls:`ag-menu${i?"":" ag-filter-menu"}`,role:"presentation"})),d=c.getGui(),g=l.getGui();d.appendChild(g),c.createManagedBean(new vs(c,sr)).initialiseTabGuard({focusTrapActive:"native"});let h;const p=()=>l?.afterGuiDetached(),f=s??(r?()=>r:void 0),m=ah(this.gos)?f??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,w=S=>{Id(e,!1,"contextMenu");const F=S instanceof KeyboardEvent?f?.():void 0;F&&ho(F)&&Du(F)?.focus({preventScroll:!0}),p(),this.destroyBean(l),this.activeMenu===l&&(this.activeMenu=void 0,this.hidePopup=void 0),this.dispatchVisibleChangedEvent(!1,o,e),a?.(S)},v=this.getLocaleTextFunc(),C=i&&o!=="columnFilter"?v("ariaLabelColumnMenu","Column Menu"):v("ariaLabelColumnFilter","Column Filter"),b=this.popupSvc?.addPopup({modal:!0,eChild:d,closeOnEsc:!0,closedCallback:w,positionCallback:()=>t(d),anchorToElement:m,eventSourceToIgnore:n?f:void 0,ariaLabel:C});return b?(this.activeMenu=l,this.hidePopup=h=b.hideFunc,l.afterInit().then(()=>{t(d),l.afterGuiAttached({container:o,hidePopup:h})}),Id(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,o,e),!0):(this.destroyBean(l),!1)}dispatchVisibleChangedEvent(e,t,o){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:o??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.colDef.menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}};function a5(e,t){const o=[t||void 0,e.calculatedExpression,e.valueGetter||void 0,e.field||void 0],r=o.findIndex(i=>i!==void 0);return{kind:r,source:o[r],readsFormula:r!==0&&r!==1&&!!e.allowFormula}}var n5=class extends x{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t){return this.getValueWithGetter(e,t,this.beans.selectableFilter?.getFilterValueGetter(e.colId)??e.colDef.filterValueGetter)}getValueWithGetter(e,t,o){const r=e.colDef,i=this.beans,a=i.valueSvc;if(o){const s=typeof o=="function",l=i.expressionSvc;if(!s&&!l)return;const c=i.colModel,d={api:i.gridApi,context:i.gridOptions.context,data:t.data,node:t,column:e,colDef:r,getValue:g=>{const u=c.getCol(g);return u?a.getValueFromData(Jt(u,t),t):null}};return s?o(d):l.evaluate(o,d)}const n=a.getValueFromData(e,t);if(e.allowFormula){const s=i.formula;if(s?.isFormula(n))return s.resolveValue(e,t)}return n}};function $d(e,t,o){return`${e.colNames.getDisplayNameForColumn(t,"header",!0)} ${o("ariaFilterInput","Filter Input")}`}var s5={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},l5=class extends X{constructor(){super(s5,[Fi]),this.eFloatingFilterText=k}init(e){if(this.params||this.addManagedListeners(e.column,{headerNameChanged:()=>this.refreshAriaLabel()}),this.params=e,this.eFloatingFilterText.setDisabled(!0),this.refreshAriaLabel(),this.gos.get("enableFilterHandlers")){const t=e,o=t.getHandler();if(o.getModelAsString){const r=o.getModelAsString(t.model);this.eFloatingFilterText.setValue(r)}}}refreshAriaLabel(){this.eFloatingFilterText.setInputAriaLabel($d(this.beans,this.params.column,this.getLocaleTextFunc()))}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const o=t.getModelAsString(e);this.eFloatingFilterText.setValue(o)}})}refresh(e){this.init(e)}},eg=(e,t,o)=>{if(!t)return;const r=t.startsWith("[")&&t.endsWith("]");let i;try{i=new RegExp(r?t:`[${t}]`)}catch{o.log.warn(327,{pattern:t});return}e.addManagedElementListeners(e.getInputElement(),{beforeinput:a=>{const n=a.inputType;if(!n?.startsWith("insert")||n==="insertCompositionText")return;const s=a.data||a.dataTransfer?.getData("text/plain");if(!(!s||!a.cancelable)){for(const l of s)if(!i.test(l)){a.preventDefault();return}}}})},tg=class extends wi{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)}},c5={selector:"AG-RADIO-BUTTON",component:tg},og=class{init(e,t,o){this.configuredOptions=t.filterOptions??o,this.buildOptions(e,o),this.defaultOption=this.getDefaultItem(e,t.defaultOption)}refresh(e,t,o){const r=t.filterOptions??o;this.configuredOptions!==r&&(this.configuredOptions=r,this.buildOptions(e,o)),this.defaultOption=this.getDefaultItem(e,t.defaultOption)}buildOptions(e,t){this.collectUsableOptions(e,this.configuredOptions),this.filterOptions.length||(e.warn(74),this.collectUsableOptions(e,t))}collectUsableOptions(e,t){const{offered:o,customOptions:r}=jb(t,i=>e.warn(72,{keys:i}),_b);this.offeredOptions=o,this.filterOptions=[...o.values()],this.customFilterOptions=r}getDefaultItem(e,t){const o=this.filterOptions[0];if(o!=null){if(t!=null){if(this.hasOption(t))return t;e.warn(326,{defaultOption:t})}return typeof o=="string"?o:o.displayKey}}hasOption(e){return e!=null&&this.offeredOptions.has(e)}getCustomOption(e){return e==null?void 0:this.customFilterOptions.get(e)}},rg=class extends tp{constructor(e,t,o){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=o,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.typeListener=()=>{this.refreshInputValidation(),this.onUiChanged()},this.lastUiCompletePosition=null,this.joinOperatorId=0}refreshInputValidation(e){for(let t=0,o=this.getNumConditions();t<o;++t)this.refreshPositionValidation(t,!1,e)}refreshPositionValidation(e,t,o){}conditionNumberOfInputs(e){return co(this.getConditionType(e),this.optionsFactory)}setParams(e){super.setParams(e);const t=new og;this.optionsFactory=t,t.init(this.beans.log,e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(this.beans.log,e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e),this.refreshInputValidation(),this.updateUiVisibility()}commonUpdateSimpleParams(e){this.setNumConditions(e),this.forEachInput(t=>{t instanceof It&&t.setAutoComplete(e.browserAutoComplete)}),this.defaultJoinOperator=PA(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),Ee(this.getGui(),"tabindex",this.isReadOnly()?"-1":null)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.refreshInputValidation(),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,o)=>{const r=o===0?e:this.optionsFactory.defaultOption;t.setValue(r,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionType(e){return this.eTypes[e]?.getValue()??null}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areNonNullModelsEqual(e,t){const o=!e.operator,r=!t.operator;if(!o&&r||o&&!r)return!1;let a;if(o){const n=e,s=t;a=this.areSimpleModelsEqual(n,s)}else{const n=e,s=t;a=n.operator===s.operator&&je(n.conditions,s.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return a}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),oe.resolve();if(e.operator){const r=e;let i=r.conditions;i==null&&(i=[],this.beans.log.warn(77));const a=AA(this.beans.log,i,this.maxNumConditions),n=this.getNumConditions();a<n?this.removeConditionsForModel(a):a>n&&this.createConditionsUpTo(a);const s=r.operator==="OR";this.eJoinAnds.forEach(l=>l.setValue(!s,!0)),this.eJoinOrs.forEach(l=>l.setValue(s,!0)),i.forEach((l,c)=>{this.eTypes[c].setValue(l.type,!0),this.setConditionIntoUi(l,c)})}else{const r=e;this.getNumConditions()>1&&this.removeConditionsForModel(1),this.createConditionsUpTo(1),this.eTypes[0].setValue(r.type,!0),this.setConditionIntoUi(r,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.refreshInputValidation(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),oe.resolve()}setNumConditions(e){let t=Math.floor(e.maxNumConditions??2);_d(t)&&(this.beans.log.warn(79),t=1),this.maxNumConditions=t;let o=Math.floor(e.numAlwaysVisibleConditions??1);_d(o)&&(this.beans.log.warn(80),o=1),o>t&&(this.beans.log.warn(81),o=t),this.numAlwaysVisibleConditions=o}createOption(){const e=this.getGui(),t=this.createManagedBean(new fn);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const o=this.createEValue();this.eConditionBodies.push(o),e.appendChild(o),this.putOptionsIntoDropdown(t),this.resetType(t);const r=this.getNumConditions()-1;this.forEachPositionInput(r,i=>this.resetInput(i)),this.addChangedListeners(t,r)}createJoinOperatorPanel(){const e=G({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),o=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const r=this.eJoinPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,i),this.resetJoinOperatorOr(o,r,i),this.isReadOnly()||(t.onValueChange(this.listener),o.onValueChange(this.listener))}createJoinOperator(e,t,o){const r=this.createManagedBean(new tg);e.push(r);const i="ag-filter-condition-operator";return r.addCss(i),r.addCss(`${i}-${o}`),t.appendChild(r.getGui()),r}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const o of t)e.addOption(o);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){const t=Jh(e)?this.translate(e):this.getLocaleTextFunc()(e,e);return{value:e,text:t}}createCustomListOption(e){const t=e.displayKey;return{value:t,text:$h(this,this.optionsFactory,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 o=0;o<this.getNumConditions();o++)this.isConditionUiComplete(o)?e=o:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createConditionsUpTo(this.getNumConditions()+1);else{const o=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<o){const r=this.removeConditionsAndOperators(o+1),i=e+1,a=o-i;a>0&&this.removeConditionsAndOperators(i,a),this.createMissingConditionsAndOperators(),r||(e=o)}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((r,i)=>{const a=this.isConditionDisabled(i,e);r.setDisabled(a||this.filterListOptions.length<=1),i===1&&(Rr(this.eJoinPanels[0],a),this.eJoinAnds[0].setDisabled(a),this.eJoinOrs[0].setDisabled(a))}),this.eConditionBodies.forEach((r,i)=>{Q(r,this.isConditionBodyVisible(i))});const o=(t??this.getJoinOperator())==="OR";for(const r of this.eJoinAnds)r.setValue(!o,!0);for(const r of this.eJoinOrs)r.setValue(o,!0);this.forEachInput((r,i,a,n)=>{this.setElementDisplayed(r,i<n),this.setElementDisabled(r,this.isConditionDisabled(a,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){return this.hasInvalidInputs()?!1:(this.removeConditionsForModel(e,t),!0)}removeConditionsForModel(e,t){if(e>=this.getNumConditions())return;const{eTypes:o,eConditionBodies:r,eJoinPanels:i,eJoinAnds:a,eJoinOrs:n}=this;this.removeComponents(o,e,t),this.removeElements(r,e,t),this.removeEValues(e,t);const s=Math.max(e-1,0);this.removeElements(i,s,t),this.removeComponents(a,s,t),this.removeComponents(n,s,t)}removeElements(e,t,o){const r=Ai(e,t,o);for(const i of r)Ge(i)}removeComponents(e,t,o){const r=Ai(e,t,o);for(const i of r)Ge(i.getGui()),this.destroyBean(i)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const o=this.getInputs(0)[0];o instanceof It&&this.isConditionBodyVisible(0)?t=o.getInputElement():t=this.eTypes[0]?.getFocusableElement()}(t??this.getGui()).focus({preventScroll:!0})}this.onGuiAttached(e),this.refreshInputValidation(!0)}onGuiAttached(e){}shouldKeepInvalidInputState(){return!Dr()&&this.hasInvalidInputs()}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column)||this.shouldKeepInvalidInputState())return;e.onStateChange({model:e.model});let t=-1,o=-1,r=!1;const i=this.getJoinOperator();for(let n=this.getNumConditions()-1;n>=0;n--)if(this.isConditionUiComplete(n))t===-1&&(t=n,o=n);else{const s=n>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(n-1),l=n<t;if(s||l){const c=this.removeConditionsAndOperators(n,1);r||(r=c),c&&l&&o--}}let a=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),a=!0),this.shouldAddNewConditionAtEnd(o===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),a=!0),a&&this.updateConditionStatusesAndValues(o,i),r&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=o}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:o}=this;this.forEachInput((r,i,a,n)=>{if(!(r instanceof It))return;const s=i===0&&n>1?"inRangeStart":i===0?"filterOoo":"inRangeEnd",l=i===0&&n>1?e("ariaFilterFromValue","Filter from value"):i===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),c=o[a].getValue(),d=ep(this,t,s,c,this.optionsFactory);r.setInputPlaceholder(d),r.setInputAriaLabel(l)})}setElementValue(e,t,o){e instanceof It&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){es(e)&&Q(e.getGui(),t)}setElementDisabled(e,t){es(e)&&Rr(e.getGui(),t)}attachElementOnChange(e,t){e instanceof It&&e.onValueChange(t),e instanceof Lt&&e.onValueClear(()=>this.onUiCleared())}forEachInput(e){for(let t=0,o=this.getNumConditions();t<o;++t)this.forEachPositionTypeInput(t,this.getConditionType(t),e)}forEachPositionInput(e,t){const o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,t)}forEachPositionTypeInput(e,t,o){const r=co(t,this.optionsFactory),i=this.getInputs(e);for(let a=0;a<i.length;a++){const n=i[a];n!=null&&o(n,a,e,r)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){return this.conditionNumberOfInputs(e)>0}isConditionUiComplete(e){if(e>=this.getNumConditions())return!1;const t=this.getConditionType(e);return!(!t||t==="empty"||this.getValues(e).some(o=>o==null)||this.positionHasInvalidInputs(e))}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(){this.isReadOnly()||this.createConditionsUpTo(this.numAlwaysVisibleConditions)}createConditionsUpTo(e){for(let t=this.getNumConditions();t<e;t++)t>0&&this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsForModel(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinAnds.forEach((t,o)=>this.resetJoinOperatorAnd(t,o,this.joinOperatorId+o)),this.eJoinOrs.forEach((t,o)=>this.resetJoinOperatorOr(t,o,this.joinOperatorId+o)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.refreshInputValidation(),this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const o=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(o).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,o){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),o)}resetJoinOperatorOr(e,t,o){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),o)}resetJoinOperator(e,t,o,r,i){this.updateJoinOperatorDisabled(e.setValue(o,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${i}`).setLabel(r),t)}updateJoinOperatorsDisabled(){const e=(t,o)=>this.updateJoinOperatorDisabled(t,o);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 o=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((r,i,a)=>{a===t&&this.setElementValue(r,o[i]??null)})}setValueFromFloatingFilter(e){this.forEachInput((t,o,r)=>{this.setElementValue(t,o===0&&r===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.typeListener),this.attachInputsOnChange(t))}attachInputsOnChange(e){this.isReadOnly()||this.forEachPositionInput(e,t=>{this.attachElementOnChange(t,this.listener)})}isInputInvalid(e){return!1}isInputValueSettled(e){return!0}hasInvalidInputs(){for(let e=0,t=this.getNumConditions();e<t;++e)if(this.positionHasInvalidInputs(e,!0))return!0;return!1}positionHasInvalidInputs(e,t){let o=!1;return this.forEachPositionInput(e,(r,i,a,n)=>{o||(o=i<n&&(!t||this.isInputValueSettled(r))&&this.isInputInvalid(r))}),o}canApply(e){return!this.hasInvalidInputs()}isReadOnly(){return!!this.params.readOnly}},hC=class extends rg{constructor(){super(...arguments),this.eValuesFrom=[],this.eValuesTo=[],this.renderedValues=new WeakMap,this.defaultDebounceMs=500}isInputInvalid(e){return!e.getInputElement().validity.valid}refreshPositionValidation(e,t=!1){const[o,r]=this.getInputs(e);o&&r&&this.refreshInputPairValidation(o,r,t,this.conditionNumberOfInputs(e))}createTextInput(){return this.createBean(new Lt({clearButton:!0,searchIcon:!0,autoComplete:this.params.browserAutoComplete}))}buildInput(e){const t=this.createInputWidget();return eg(t,this.params.allowedCharPattern,this.beans),t.addCss(`ag-filter-${e}`),t.addCss("ag-filter-filter"),t}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=this.renderedWith;this.renderedWith=e;const o=this.getRenderChange(e,t);o&&this.refreshInputElements(o==="rebuild",t)}destroy(){this.destroyBeans(this.eValuesFrom),this.destroyBeans(this.eValuesTo),super.destroy()}createEValue(){const e=G({tag:"div",cls:"ag-filter-body",role:"presentation"}),t=this.buildInput("from"),o=this.buildInput("to");return this.eValuesFrom.push(t),this.eValuesTo.push(o),e.appendChild(t.getGui()),e.appendChild(o.getGui()),this.attachInputPairListeners(t,o),e}removeEValues(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)}getInputs(e){const t=this.eValuesFrom;return e>=0&&e<t.length?[t[e],this.eValuesTo[e]]:[null,null]}getValues(e){const t=[];return this.forEachPositionInput(e,(o,r,i,a)=>{r<a&&t.push(this.readValue(o))}),t}readValue(e,t){const o=this.getRenderedValue(e);return o?o.value:this.parseText(e.getValue(t),this.params)}setElementValue(e,t,o){const r=t,i=this.getValueFormatter(),a=!o&&i?i(r):t;super.setElementValue(e,a,o);const n=e.getInputElement().value;o||n===""&&r!==null?this.renderedValues.delete(e):this.renderedValues.set(e,{text:n,value:r}),(r===null||a===null)&&e.setCustomValidity("")}getRenderedValue(e){const t=this.renderedValues.get(e);return t?.text===e.getInputElement().value?t:void 0}attachInputPairListeners(e,t){this.attachInputListeners(e,!0),this.attachInputListeners(t,!1)}attachInputListeners(e,t){const o=t?this.eValuesFrom:this.eValuesTo,r=()=>this.refreshPositionValidation(o.indexOf(e),t);e.onValueChange(()=>{this.renderedValues.delete(e),r()}),e.addGuiEventListener("focusin",r)}refreshInputElements(e,t){const o=this.eValuesFrom,r=o.length;if(!r)return;const i=this.eValuesTo;for(let a=0;a<r;++a)this.refreshInputElement(a,"from",e,t),this.refreshInputElement(a,"to",e,t),e&&(this.attachInputPairListeners(o[a],i[a]),this.attachInputsOnChange(a))}refreshInputElement(e,t,o,r){const i=t==="from"?this.eValuesFrom:this.eValuesTo,a=i[e],n=a.getValue(!0),s=this.getRenderedValue(a),l=s?s.value:this.parseText(n,r),c=!s&&n!=null&&n!=="";let d=a,g;if(o&&(g=this.takeCaret(a),d=this.buildInput(t),a.getGui().replaceWith(d.getGui()),this.destroyBean(a),i[e]=d),c&&(d.setValue(n,!0),d.getInputElement().value===n)){this.restoreCaret(d,g);return}this.setElementValue(d,l),this.restoreCaret(d,g)}takeCaret(e){const t=e.getInputElement();if(Z(this.beans)===t)return{start:t.selectionStart,end:t.selectionEnd}}restoreCaret(e,t){if(!t)return;const o=e.getInputElement();o.focus(),t.start!=null&&o.selectionStart!=null&&o.setSelectionRange(t.start,t.end)}},ig=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function xn(e){return e?.allowedCharPattern??null}function pC(e,t,o,r){return t==null||t.trim()===""?null:e?e(t,vr(o,r,"columnFilter")):Oe(t)}function fC(e,t){const{filter:o,filterTo:r,type:i}=e??{};return[Oe(o),Oe(r)].slice(0,co(i,t))}var d5=class extends hC{constructor(){super("bigintFilter",fC,ig),this.filterType="bigint"}getRenderChange(e,t){if(xn(e)!==xn(t))return"rebuild";if(e.bigintParser!==t?.bigintParser||e.bigintFormatter!==t?.bigintFormatter)return"rerender"}parseText(e,t){return pC(t?.bigintParser,e,this.gos,this.params.column)}getValueFormatter(){return Ti(this.params.bigintFormatter,this.gos,this.params.column,"columnFilter")}createInputWidget(){return this.createTextInput()}refreshInputPairValidation(e,t,o,r){const i=r>=2,a=r>0?this.readValue(e,!0):null,n=i?this.readValue(t,!0):null,s=r>0&&this.isInvalidValue(e,a),l=i&&this.isInvalidValue(t,n),c=o||!i,d=c?e:t,g=c?t:e,u=c?s:l,h=c?l:s;let p="";if(u)p=this.getLocaleTextFunc()("invalidBigInt","Invalid BigInt");else if(i&&!h){const f=Kd(a,n,o,this.params.inRangeInclusive);f&&(p=this.translate(f,[String(g.getValue())]))}d.setCustomValidity(p),h||g.setCustomValidity(""),p.length>0&&this.beans.ariaAnnounce.announceValue(p,"filterValidation")}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(o.filter=String(r[0])),r.length>1&&(o.filterTo=String(r[1])),o}isInvalidValue(e,t){const o=e.getValue();return o!=null&&String(o).trim()!==""&&t===null}},mC=class extends x{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t,this.warnedKeys=new Set}isNullValue(e){return e==null}warnUnexpectedFilterType(e){this.optionsFactory.getCustomOption(e)||this.warnedKeys.has(e)||(this.warnedKeys.add(e),this.warn(76,{filterModelType:e}))}init(e){const t=e.filterParams,o=new og;this.optionsFactory=o,o.init(this.beans.log,t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(this.createModelFormatter(o,t,e.column)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,o=this.optionsFactory;o.refresh(this.beans.log,t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:o,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(t==null)return!0;const{operator:o}=t,r=[];if(o){const n=t;r.push(...n.conditions??[])}else r.push(t);if(!r.length)return!0;const i=o&&o==="OR"?"some":"every",a=this.params.getValue(e.node);return r[i](n=>this.individualConditionPasses(e,n,a))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{maxNumConditions:o}}=e;if(t==null)return;const r=ml(t);let i=(r?t.conditions:[t])??[];const a=this.filterType;let n=t.filterType!==a;const s=DA(o);s!==null&&i.length>s&&(i=i.slice(0,s),n=!0);const l=[];for(let c=0,d=i.length;c<d;++c){const g=i[c],u=this.toOwnCondition(g,t.filterType);if(u===null){this.params={...e,model:null},e.onModelChange(null);return}u!==g&&(n=!0),l.push(u)}if(i=l,n){let c;i.length===1?c={...i[0],filterType:a}:(c={...t,filterType:a},r&&t.conditions&&(c.conditions=i)),this.params={...e,model:c},e.onModelChange(c)}}toOwnCondition(e,t){const o=this.optionsFactory,r=e.type;if(!o.hasOption(r))return null;const i=this.filterType,a=e.filterType??t;if(a==null||a===i)return e.filterType===i?e:{...e,filterType:i};const n=e,s=co(r,o);if(s===0)return{...e,filterType:i};const l=this.toOwnModelValue(n.filter);if(l===null)return null;if(s===1)return{...e,filterType:i,filter:l};const c=this.toOwnModelValue(n.filterTo);return c===null?null:{...e,filterType:i,filter:l,filterTo:c}}individualConditionPasses(e,t,o){const r=this.optionsFactory,i=this.mapValuesFromModel(t,r),a=r.getCustomOption(t.type),n=TA(a,i,o,this.beans.gos,this.params.column);return n??(this.isNullValue(o)?this.evaluateNullValue(t.type):this.evaluateNonNullValue(i,o,t,e))}},ag=class extends mC{isNullValue(e){return Ii(e)}evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:o,includeBlanksInGreaterThan:r,includeBlanksInLessThan:i,includeBlanksInRange:a}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(o)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(r)return!0;break;case"lessThan":case"lessThanOrEqual":if(i)return!0;break;case"inRange":if(a)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,o){const r=o.type;if(!this.isValid(t))return r==="notEqual"||r==="notBlank";if(r==="blank")return!1;if(r==="notBlank")return!0;const i=this.comparator(),a=e[0]!=null?i(e[0],t):0;switch(r){case"equals":return a===0;case"notEqual":return a!==0;case"greaterThan":return a>0;case"greaterThanOrEqual":return a>=0;case"lessThan":return a<0;case"lessThanOrEqual":return a<=0;case"inRange":{const n=i(e[1],t);return this.params.filterParams.inRangeInclusive?a>=0&&n<=0:a>0&&n<0}default:return this.warnUnexpectedFilterType(r),!0}}},ng={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},g5={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},kn=class extends x{constructor(e,t,o){super(),this.optionsFactory=e,this.filterParams=t,this.column=o}getValueFormatter(){}getModelAsString(e,t){const o=this.getLocaleTextFunc(),r=t==="filterToolPanel";if(!e)return r?ot(this,"filterSummaryInactive"):null;if(e.operator!=null){const a=e,s=(a.conditions??[]).map(c=>this.getModelAsString(c,t)),l=a.operator==="AND"?"andCondition":"orCondition";return s.join(` ${ot(this,l)} `)}else{if(e.type==="blank"||e.type==="notBlank")return r?ot(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):o(e.type,e.type);{const a=e,n=this.optionsFactory.getCustomOption(a.type),s=n?jd(n):void 0;return n&&s===0?Kb(n,o):this.conditionToString(a,r,a.type==="inRange"||s===2,n?.displayKey,n?.displayName)}}}updateParams(e){const{optionsFactory:t,filterParams:o}=e;this.optionsFactory=t,this.filterParams=o}conditionForToolPanel(e,t,o,r,i,a){let n;const s=this.getTypeKey(e);return s&&(n=ot(this,s)),i&&a&&(n=this.getLocaleTextFunc()(i,a)),n!=null?t?`${n} ${ot(this,"filterSummaryInRangeValues",[o(),r()])}`:`${n} ${o()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.getValueFormatter();return t?t(e??null)??"":String(e)}},vC=class extends kn{constructor(){super(...arguments),this.filterTypeKeys=ng}getValueFormatter(){return Ti(this.filterParams.bigintFormatter,this.gos,this.column,"columnFilter")}conditionToString(e,t,o,r,i){const{filter:a,filterTo:n,type:s}=e,l=this.formatValue.bind(this),c=Oe(a),d=Oe(n);if(t){const g=this.conditionForToolPanel(s,o,()=>l(c),()=>l(d),r,i);if(g!=null)return g}return o?`${l(c)}-${l(d)}`:a!=null?l(c):`${s}`}},u5=class extends ag{constructor(){super(fC,ig),this.filterType="bigint"}createModelFormatter(e,t,o){return new vC(e,t,o)}comparator(){return(e,t)=>{const o=Oe(t);return e===o?0:e<o?1:-1}}isValid(e){return Oe(e)!==null}toOwnModelValue(e){const t=typeof e!="number"||Number.isSafeInteger(e)?Oe(e):null;return t===null?null:String(t)}},sg=class extends x{constructor(e){super(),this.onInputCreated=e,this.eInput=k,this.onValueChanged=()=>{},this.onValueCleared=()=>{}}setupGui(e){const t=this.createManagedBean(new Lt({clearButton:!0,onValueClear:()=>this.onValueCleared()}));this.eInput=t,this.onInputCreated?.(t);const o=t.getGui();e.appendChild(o);const r=i=>this.onValueChanged(i);this.addManagedListeners(o,{input:r,keydown:r})}setEditable(e){this.eInput.setDisabled(!e)}isFocused(){return Z(this.beans)===this.eInput.getInputElement()}getValue(){return this.eInput.getValue()}getInputText(){return this.eInput.getInputElement().value}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setValueClearedListener(e){this.onValueCleared=e}setParams({ariaLabel:e,autoComplete:t,placeholder:o}){const{eInput:r}=this;this.setAriaLabel(e),r.setAutoComplete(t),r.setSearchIcon(!!o),r.setInputPlaceholder(o)}setAriaLabel(e){this.eInput.setInputAriaLabel(e)}},wC=e=>e==null?null:e.toString().toLowerCase(),lg={contains:(e,t)=>e.includes(t),notContains:(e,t)=>!e.includes(t),equals:(e,t)=>e===t,notEqual:(e,t)=>e!=t,startsWith:(e,t)=>e.startsWith(t),endsWith:(e,t)=>e.endsWith(t)};function En(e){const t=e?.trim();return t===""?e:t}function bC(e,t){const{filter:o,filterTo:r,type:i}=e??{};return[o||null,r||null].slice(0,co(i,t))}var CC=class extends X{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let o;t?o=e.conditions?.[0]:o=e,this.lastType=o?o.type:this.optionsFactory.defaultOption}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const o=e;return this.isTypeEditable(o.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),this.addManagedListeners(e.column,{headerNameChanged:()=>this.refreshAriaLabel()}),t){const o=e;this.onModelUpdated(o.model)}}setParams(e){const t=new og;this.optionsFactory=t,t.init(this.beans.log,e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(this.createModelFormatter(t,e.filterParams,e.column)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const o=this.optionsFactory.defaultOption;t||(this.lastType=o),this.readOnly=!!e.filterParams.readOnly;const r=this.isTypeEditable(o);this.setEditable(r)}refresh(e){this.params=e;const t=e,o=this.reactive;if((!o||t.source==="colDef")&&this.updateParams(e),o){const{source:r,model:i}=t;if(r==="dataChanged"||r==="ui")return;this.onModelUpdated(i)}}updateParams(e){const t=this.optionsFactory;t.refresh(this.beans.log,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)}isTypeEditable(e){return!!e&&!this.readOnly&&co(e,this.optionsFactory)===1}getAriaLabel(e){return $d(this.beans,e,this.getLocaleTextFunc())}},h5={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},cg=class extends CC{constructor(){super(...arguments),this.eFloatingFilterInputContainer=k,this.pendingEdit=!1,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(h5)}onModelUpdated(e){const{inputSvc:t}=this;this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),!(t.isFocused()&&this.pendingEdit)&&(t.setValue(this.filterModelFormatter.getModelAsString(e)),this.pendingEdit=!1)}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{inputSvc:t,defaultDebounceMs:o,readOnly:r}=this,{filterPlaceholder:i,column:a,browserAutoComplete:n,filterParams:s}=e,l=this.lastType??this.optionsFactory.defaultOption,c=e.filterParams.filterPlaceholder,d=i===!0?ep(this,c,"filterOoo",l,this.optionsFactory):i||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(a),autoComplete:n??s.browserAutoComplete,placeholder:d}),this.applyActive=nr(s),!r){const g=vl(this.beans.log,s,o),u=se(this,this.syncUpWithParentFilter.bind(this),g);let h;t.setValueChangedListener(p=>{this.pendingEdit=!0,h=u(p)}),t.setValueClearedListener(()=>{clearTimeout(h),this.syncUpWithParentFilter()})}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const t=this.inputSvc,o=t.getInputText();Ce(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),this.inputSvc.setValue(o,!0)}syncUpWithParentFilter(e){const t=e?.key===y.ENTER,o=this.reactive;if(o&&this.params.onUiChange(),this.applyActive&&!t)return;this.pendingEdit=!1;const{inputSvc:r,params:i,lastType:a}=this;let n=r.getValue();if(i.filterParams.trimInput&&(n=En(n),r.setValue(n,!0)),o){const s=i,l=s.model,c=this.convertValue(n),d=c==null?null:{...l??{filterType:this.filterType,type:a??this.optionsFactory.defaultOption},filter:c};s.onModelChange(d,{afterFloatingFilter:!0})}else i.parentFilterInstance(s=>{s?.onFloatingFilterChanged(a||null,n||null)})}convertValue(e){return e||null}refreshAriaLabel(){this.inputSvc.setAriaLabel(this.getAriaLabel(this.params.column))}setEditable(e){this.inputSvc.setEditable(e)}},p5=class extends cg{constructor(){super(...arguments),this.filterType="bigint",this.defaultOptions=ig}createModelFormatter(e,t,o){return new vC(e,t,o)}updateParams(e){const t=e.filterParams;xn(t)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),this.bigintParser=t?.bigintParser,super.updateParams(e)}createFloatingFilterInputService(e){const t=e.filterParams,o=xn(t);return this.allowedCharPattern=o,this.bigintParser=t?.bigintParser,this.createManagedBean(new sg(r=>eg(r,o,this.beans)))}convertValue(e){const{gos:t,params:o}=this;return pC(this.bigintParser,e,t,o.column)}},yC=".ag-input-field-input",f5=Yo?0:500,SC=class{constructor(e,t,o,r,i,a){this.context=e,this.eParent=i,this.alive=!0,this.debouncedReport=se({isAlive:()=>this.alive},xC,f5),this.timeoutHandle=null,this.lastValidityMessage=null,E2(t,o,r)?.newAgStackInstance().then(s=>{if(!this.alive){e.destroyBean(s);return}if(this.dateComp=s,!s)return;i.appendChild(s.getGui()),s?.afterGuiAttached?.();const{tempValue:l,disabled:c}=this;l&&s.setDate(l),c!=null&&s.setDisabled?.(c),a?.(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){Q(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)}setCustomValidity(e,t="immediate"){const o=this.dateComp?.getGui().querySelector(yC);if(o&&"setCustomValidity"in o){const r=e.length>0,i=e!==this.lastValidityMessage;this.lastValidityMessage=e,o.setCustomValidity(e),r?t==="immediate"?xC(o):(t==="debounce"||i)&&(this.timeoutHandle=this.debouncedReport(o)):this.timeoutHandle&&window.clearTimeout(this.timeoutHandle),Gn(o,r)}}getValidity(){return this.dateComp?.getGui().querySelector(yC)?.validity}};function xC(e){e.reportValidity()}var dg=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function kC(e,t){const{dateFrom:o,dateTo:r,type:i}=e??{};return[o&&he(o,void 0,!0)||null,r&&he(r,void 0,!0)||null].slice(0,co(i,t))}var EC=1e3,RC=1/0,m5=class extends rg{constructor(){super("dateFilter",kC,dg),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=EC,this.maxValidYear=RC,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}onGuiAttached(e){this.dateConditionFromComps[0]?.afterGuiAttached(e)}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(l,c)=>{const d=e[l];if(d!=null)if(Number.isNaN(Number(d)))this.beans.log.warn(82,{param:l});else return d==null?c:Number(d);return c},o=t("minValidYear",EC),r=t("maxValidYear",RC);this.minValidYear=o,this.maxValidYear=r,o>r&&this.beans.log.warn(83);const{minValidDate:i,maxValidDate:a}=e,n=i instanceof Date?i:he(i);this.minValidDate=n;const s=a instanceof Date?a:he(a);this.maxValidDate=s,n&&s&&n>s&&this.beans.log.warn(84)}refreshPositionValidation(e,t=!1,o){this.refreshInputPairValidation(e,t,o?"immediate":"debounceIfChanged")}refreshInputPairValidation(e,t,o){const[r,i]=this.getInputs(e);if(!r||!i)return;const a=r.getDate(),n=i.getDate(),l=this.conditionNumberOfInputs(e)>=2?Kd(a,n,t,this.params.inRangeInclusive):null,c=l?this.translate(l,[String(t?n:a)]):"",d=Dr()?"immediate":o;(t?r:i).setCustomValidity(c,d),(t?i:r).setCustomValidity("",d),c.length>0&&this.beans.ariaAnnounce.announceValue(c,"filterValidation")}createDateCompWrapper(e,t){const{beans:{userCompFactory:o,context:r,gos:i},params:a}=this,n=t==="from",s=n?this.eConditionPanelsFrom:this.eConditionPanelsTo,l=c=>this.refreshInputPairValidation(s.indexOf(e),n,c);return new SC(r,o,a.colDef,W(i,{onDateChanged:()=>{l("debounce"),this.onUiChanged()},onDateCleared:()=>{l("immediate"),this.onUiCleared()},onFocusIn:()=>l("debounceIfChanged"),filterParams:a,location:"filter"}),e)}destroy(){this.removeDateComps(this.dateConditionFromComps,0),this.removeDateComps(this.dateConditionToComps,0),super.destroy()}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}setElementValue(e,t){e.setDate(t),t||e.setCustomValidity("")}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=G({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,o,r){const i=G({tag:"div",cls:`ag-filter-${r} ag-filter-date-${r}`});t.push(i),e.appendChild(i),o.push(this.createDateCompWrapper(i,r))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),Ai(this.eConditionPanelsFrom,e,t),Ai(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,o){const r=Ai(e,t,o);for(const i of r)i.destroy()}isValidDateValue(e){if(e===null)return!1;const{minValidDate:t,maxValidDate:o,minValidYear:r,maxValidYear:i}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<r)return!1;if(o){if(e>o)return!1}else if(e.getUTCFullYear()>i)return!1;return!0}isInputInvalid(e){return!(e.getValidity()?.valid??!0)}isInputValueSettled(e){return e.getDate()!=null}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachPositionInput(e,(o,r,i,a)=>{!t||r>=a||t&&(t=this.isValidDateValue(o.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),o={},{params:r,filterType:i,beans:a}=this,n=a.dataTypeSvc,s=this.getValues(e),l=r.includeTime??n?.getDateIncludesTimeFlag(r.colDef.cellDataType)??!0,c=r.useIsoSeparator?"T":" ";return s.length>0&&(o.dateFrom=Te(s[0],l,c)),s.length>1&&(o.dateTo=Te(s[1],l,c)),{dateFrom:null,dateTo:null,filterType:i,type:t,...o}}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput(r=>{r.setInputPlaceholder(t),r.setInputAriaLabel(o)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:o}=this;return e<0||e>=t.length?[null,null]:[t[e],o[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(o,r,i,a)=>{r<a&&t.push(o.getDate())}),t}translate(e,t){let o=e;return e==="lessThan"?o="before":e==="greaterThan"&&(o="after"),super.translate(o,t)}},FC=class extends kn{constructor(){super(...arguments),this.filterTypeKeys=ng}formatValue(e=null){const{dataTypeSvc:t,valueSvc:o}=this.beans,r=this.filterParams.column,i=t?.getDateFormatterFunction(r),a=i?i(e??void 0):e;return o.formatValue(r,null,a)??""}conditionToString(e,t,o,r,i){const{type:a}=e,n=he(e.dateFrom),s=he(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,c=t?this.formatValue.bind(this):u=>lS(u,l),d=()=>n!==null?c(n):"null",g=()=>s!==null?c(s):"null";if(n==null&&s==null)return Xh(this,a);if(t){const u=this.conditionForToolPanel(a,o,d,g,r,i);if(u!=null)return u}return o?`${d()}-${g()}`:n!=null?c(n):`${a}`}};function v5(e,t){const o=t;return o<e?-1:o>e?1:0}var w5=class extends ag{constructor(){super(kC,dg),this.filterType="date",this.rangeCache=new qb}createModelFormatter(e,t,o){return new FC(e,t,o)}comparator(){return this.params.filterParams.comparator??v5}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}toOwnModelValue(){return null}evaluateNonNullValue(e,t,o){const r=o.type;if(!this.isValid(t))return r==="notEqual"||r==="notBlank";const i=r==null?void 0:Sr(Ud,r);if(i){const{fromTime:a,toTime:n}=this.rangeCache.getRange(r,i),s=this.params.filterParams.comparator;if(s)return s(new Date(a),t)>=0&&s(new Date(n),t)<0;const l=+t;return l>=a&&l<n}return super.evaluateNonNullValue(e,t,o)}},b5={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"}]},C5=class extends CC{constructor(){super(b5,[Fi]),this.eReadOnlyText=k,this.eDateWrapper=k,this.filterType="date",this.defaultOptions=dg}createModelFormatter(e,t,o){return new FC(e,t,o)}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 o=e?he(e.dateFrom):null;this.dateComp.setDate(o),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}refreshAriaLabel(){this.dateComp.setInputAriaLabel(this.getAriaLabel(this.params.column))}setEditable(e){Q(this.eDateWrapper,e),Q(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 o=t.model,r=Te(e),i=r==null?null:{...o??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:r};t.onModelChange(i,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=vl(this.beans.log,e,this.defaultDebounceMs),o=se(this,this.onDateChanged.bind(this),t);let r;return W(this.gos,{onDateChanged:()=>{r=o()},onDateCleared:nr(e)?void 0:()=>{clearTimeout(r),this.onDateChanged()},filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:o,params:{column:r}}=this;this.dateComp=new SC(e,t,r.getColDef(),this.getDateComponentParams(),o,i=>{i.setInputAriaLabel(this.getAriaLabel(r))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},y5={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},S5=class extends X{constructor(){super(y5,[Fi]),this.eDateInput=k,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.eDateInput.setClearButtonEnabled(!0).setSearchIcon(!0).onValueClear(()=>this.params.onDateCleared?.()),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),focusin:this.handleFocusIn.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}handleFocusIn(){this.params.onFocusIn?.()}setParams(e){this.eDateInput.setAutoComplete(e.filterParams?.browserAutoComplete);const t=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=o&&qt();const{minValidYear:r,maxValidYear:i,minValidDate:a,maxValidDate:n,buttons:s}=e.filterParams||{},l=this.includesTime(e);o?l?(this.eDateInput.setInputType("datetime-local"),t.step="1"):this.eDateInput.setInputType("date"):this.eDateInput.setInputType("text");const c=MC(this.beans.log,a,r,!0),d=MC(this.beans.log,n,i,!1);c&&d&&c.getTime()>d.getTime()&&this.beans.log.warn(87),c&&(t.min=Te(c,l)),d&&(t.max=Te(d,l)),this.isApply=e.location==="floatingFilter"&&!!s?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return he(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(Te(e,this.includesTime(this.params)))}includesTime(e){const{includeTime:t,colDef:o}=e.filterParams||{};return t??this.beans.dataTypeSvc?.getDateIncludesTimeFlag?.(o?.cellDataType)??!1}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}};function MC(e,t,o,r){return t&&o&&e.warn(r?85:86),t instanceof Date?t:t?he(t):o?he(`${o}-${r?"01-01":"12-31"}`):null}var gg=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function Rn(e){return e?.allowedCharPattern??null}function zi(e){const t=e?.filterInputType;return t?t==="text":e?.allowedCharPattern!=null||e?.numberFormatter!=null}function DC(e,t,o,r){if(typeof t=="number")return t;const i=t?.trim()??"",a=i===""?null:t??null;return e?e(a,vr(o,r,"columnFilter")):a==null||i==="-"?null:Number.parseFloat(a)}function Fn(e){return e==null||Number.isNaN(Number(e))?null:e}function PC(e,t){const{filter:o,filterTo:r,type:i}=e??{};return[Fn(o),Fn(r)].slice(0,co(i,t))}var x5=class extends hC{constructor(){super("numberFilter",PC,gg),this.filterType="number"}getRenderChange(e,t){if(zi(e)!==zi(t)||Rn(e)!==Rn(t))return"rebuild";if(e.numberParser!==t?.numberParser||e.numberFormatter!==t?.numberFormatter)return"rerender"}parseText(e,t){return Fn(DC(t?.numberParser,e,this.gos,this.params.column))}getValueFormatter(){return Ti(this.params.numberFormatter,this.gos,this.params.column,"columnFilter")}createInputWidget(){const e=this.params;return zi(e)?this.createTextInput():this.createBean(new pn({clearButton:!0,searchIcon:!0,autoComplete:e.browserAutoComplete}))}refreshInputPairValidation(e,t,o,r){let i="";if(r>=2){const a=this.readValue(e,!0),n=this.readValue(t,!0),s=Kd(a,n,o,this.params.inRangeInclusive);i=s?this.translate(s,[String(o?n:a)]):""}(o?e:t).setCustomValidity(i),(o?t:e).setCustomValidity(""),i.length>0&&this.beans.ariaAnnounce.announceValue(i,"filterValidation")}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o}},TC=class extends kn{constructor(){super(...arguments),this.filterTypeKeys=ng}getValueFormatter(){return Ti(this.filterParams.numberFormatter,this.gos,this.column,"columnFilter")}conditionToString(e,t,o,r,i){const{filter:a,filterTo:n,type:s}=e,l=this.formatValue.bind(this);if(t){const c=this.conditionForToolPanel(s,o,()=>l(a),()=>l(n),r,i);if(c!=null)return c}return o?`${l(a)}-${l(n)}`:a!=null?l(a):`${s}`}},k5=class extends ag{constructor(){super(PC,gg),this.filterType="number"}createModelFormatter(e,t,o){return new TC(e,t,o)}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!Number.isNaN(Number(e))}toOwnModelValue(e){if(typeof e!="string")return typeof e=="number"&&Number.isFinite(e)?e:null;const t=e.trim(),o=E5.test(t)?Number(t):Number.NaN;if(!Number.isFinite(o))return null;const r=AC(t);return r===""||r.length<=100&&AC(o.toPrecision(r.length),!1)===r?o:null}},E5=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,AC=(e,t=!0)=>{const o=e.replace(/e.*/i,"");let r=o.length;if(t&&o.includes("."))for(;o[r-1]==="0";)r--;return o.slice(0,r).replace(/\D/g,"").replace(/^0+/,"")},R5=class extends x{constructor(e){super(),this.onInputCreated=e,this.onValueChanged=()=>{},this.onValueCleared=()=>{},this.numberInputActive=!0}setupGui(e){const t=this.createManagedBean(new pn({clearButton:!0,onValueClear:()=>this.onValueCleared()}));this.eNumberInput=t,this.onInputCreated?.(t);const o=this.createManagedBean(new Lt({clearButton:!0,onValueClear:()=>this.onValueCleared()}));this.eTextInput=o,o.setDisabled(!0);const r=t.getGui(),i=o.getGui();e.appendChild(r),e.appendChild(i),this.setupListeners(r,a=>this.onValueChanged(a)),this.setupListeners(i,a=>this.onValueChanged(a))}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)}isFocused(){return Z(this.beans)===this.getActiveInputElement().getInputElement()}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}getInputText(){return this.getActiveInputElement().getInputElement().value}setValueChangedListener(e){this.onValueChanged=e}setValueClearedListener(e){this.onValueCleared=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams({ariaLabel:e,autoComplete:t,placeholder:o}){this.setAriaLabel(e),this.setAutoComplete(t),this.setPlaceholder(this.eNumberInput,o),this.setPlaceholder(this.eTextInput,o)}setPlaceholder(e,t){e.setSearchIcon(!!t),e.setInputPlaceholder(t)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},F5=class extends cg{constructor(){super(...arguments),this.filterType="number",this.defaultOptions=gg}createModelFormatter(e,t,o){return new TC(e,t,o)}updateParams(e){const t=e.filterParams;(Rn(t)!==this.allowedCharPattern||zi(t)!==this.isTextInput)&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){const t=e.filterParams,o=Rn(t);this.allowedCharPattern=o;const r=zi(t);this.isTextInput=r;const i=a=>eg(a,o,this.beans);return this.createManagedBean(r?new sg(i):new R5(i))}convertValue(e){const{gos:t,params:o}=this,r=o.filterParams?.numberParser;return Fn(DC(r,e,t,o.column))}},ug=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],M5=class extends rg{constructor(){super("textFilter",bC,ug),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),o={filterType:this.filterType,type:t},r=this.getValues(e);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:o}=this;return e>=t.length?[null,null]:[t[e],o[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(o,r,i,a)=>{r<a&&t.push(Nt(o.getValue()))}),t}createEValue(){const e=G({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:o}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,o,"to"),e}createFromToElement(e,t,o){const r=this.createManagedBean(new Lt({clearButton:!0,searchIcon:!0,autoComplete:this.params.browserAutoComplete}));r.addCss(`ag-filter-${o}`),r.addCss("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())}removeEValues(e,t){const o=a=>this.removeComponents(a,e,t),{eValuesFrom:r,eValuesTo:i}=this;o(r),o(i)}},IC=class extends kn{constructor(){super(...arguments),this.filterTypeKeys=g5}conditionToString(e,t,o,r,i){const{filter:a,filterTo:n,type:s}=e;if(t){const l=d=>()=>ot(this,"filterSummaryTextQuote",[d]),c=this.conditionForToolPanel(s,o,l(a),l(n),r,i);if(c!=null)return c}return o?`${a}-${n}`:a!=null?`${a}`:`${s}`}},zC=({filterOption:e,value:t,filterText:o})=>{if(o==null||t==null)return!1;const r=e==null?void 0:Sr(lg,e);return r?r(t,o):!1},D5=e=>e,P5=class extends mC{constructor(){super(bC,ug),this.filterType="text"}createModelFormatter(e,t,o){return new IC(e,t,o)}updateParams(e){super.updateParams(e);const t=e.filterParams,o=t.textFormatter;this.matcher=t.textMatcher??zC,this.textFormatter=o&&(r=>r==null?null:o(r,vr(this.beans.gos,e.column,"columnFilter"))),this.formatter=this.textFormatter??(t.caseSensitive?D5:wC)}isUnmatchable(e){return this.matcher===zC&&(e==null||!Sr(lg,e))}evaluateNullValue(e){return e!=="blank"&&e!=="notBlank"&&this.isUnmatchable(e)?(this.warnUnexpectedFilterType(e),!1):e==="notEqual"||e==="notContains"||e==="blank"}evaluateNonNullValue(e,t,o,r){const i=e.map(h=>this.formatter(h))||[],a=this.formatter(t),{api:n,colDef:s,column:l,context:c}=this.params,d=o.type;if(d==="blank")return Ii(t);if(d==="notBlank")return Ub(t);if(this.isUnmatchable(d))return this.warnUnexpectedFilterType(d),!1;const g=this.matcher,u={api:n,colDef:s,column:l,context:c,node:r.node,data:r.data,filterOption:d,value:a,textFormatter:this.textFormatter,source:"columnFilter"};return i.some(h=>g({...u,filterText:h}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=o=>{const r={...o},{filter:i,filterTo:a}=o;return i&&(r.filter=En(i)??null),a&&(r.filterTo=En(a)??null),r};return ml(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}toOwnModelValue(e){return typeof e=="string"?e===""?null:e:typeof e=="number"&&Number.isFinite(e)||typeof e=="bigint"?String(e):null}},T5=class extends cg{constructor(){super(...arguments),this.filterType="text",this.defaultOptions=ug}createModelFormatter(e,t,o){return new IC(e,t,o)}createFloatingFilterInputService(){return this.createManagedBean(new sg)}};function A5(e){return!!e.quickFilter?.isFilterPresent()}function I5(e){return e.quickFilter?.getText()}function z5(e){e.quickFilter?.resetCache()}var L5=class extends x{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",o=>this.setFilter(o.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:o,pivotResultCols:r}=this.beans,i=t.pivotMode,a=e?.columns,n=t.colDefList;let s=(i&&!o.get("applyQuickFilterBeforePivotOrAgg")?r?.pivotCols:n)??[];a?.length&&(s=s.concat(a)),this.colsToUse=o.get("includeHiddenColumnsInQuickFilter")?s:s.filter(l=>l.visible||l.rowGroupActive)}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(o=>t?this.doesRowPassCache(e,o):this.doesRowPassNoCache(e,o))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}getState(){const e=this.getText()||void 0;return e?{text:e}:void 0}setState({text:e},t){if(e!==void 0){this.stateSource=t;try{this.gos.updateGridOptions({options:{quickFilterText:e}})}finally{this.stateSource=void 0}}}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return L(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){this.warn(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged",source:this.stateSource}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),o=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,o&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(o=>{const r=this.getTextForColumn(o,e);return L(r)&&r.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let o;e?(this.checkGenerateAggText(t),o=t.quickFilterAggregateText):o=this.getAggText(t);const{quickFilterParts:r,matcher:i}=this;return i(r,o)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let o=this.beans.filterValueSvc.getValue(e,t);const r=e.colDef;if(r.getQuickFilterText){const i=W(this.gos,{value:o,node:t,data:t.data,column:e,colDef:r});o=r.getQuickFilterText(i)}return L(o)?o.toString().toUpperCase():null}getAggText(e){const t=[];for(const o of this.colsToUse){const r=this.getTextForColumn(o,e);L(r)&&t.push(r)}return t.join(`
`)}},Mn={moduleName:"FilterCore",version:R,beans:[$A],apiFunctions:{isAnyFilterPresent:JA,onFilterChanged:XA},css:[jT]},hg={moduleName:"FilterValue",version:R,beans:[n5]},wr={moduleName:"ColumnFilter",version:R,beans:[ZA,i5],dynamicBeans:{headerFilterCellCtrl:WT},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:ZT,getColumnFilterInstance:JT,destroyFilter:XT,setFilterModel:$T,getFilterModel:eA,getColumnFilterModel:tA,setColumnFilterModel:oA,showColumnFilter:rA,hideColumnFilter:iA,getColumnFilterHandler:aA,doFilterAction:nA},dependsOn:[Mn,Ri,hg,Ib]},LC={moduleName:"CustomFilter",version:R,userComponents:{agReadOnlyFloatingFilter:l5},dependsOn:[wr]},OC={moduleName:"TextFilter",version:R,dependsOn:[wr],userComponents:{agTextColumnFilter:{classImp:M5,params:{useForm:!0}},agTextColumnFloatingFilter:T5},dynamicBeans:{agTextColumnFilterHandler:P5}},VC={moduleName:"NumberFilter",version:R,dependsOn:[wr],userComponents:{agNumberColumnFilter:{classImp:x5,params:{useForm:!0}},agNumberColumnFloatingFilter:F5},dynamicBeans:{agNumberColumnFilterHandler:k5}},BC={moduleName:"BigIntFilter",version:R,dependsOn:[wr],userComponents:{agBigIntColumnFilter:{classImp:d5,params:{useForm:!0}},agBigIntColumnFloatingFilter:p5},dynamicBeans:{agBigIntColumnFilterHandler:u5}},HC={moduleName:"DateFilter",version:R,dependsOn:[wr],userComponents:{agDateColumnFilter:{classImp:m5,params:{useForm:!0}},agDateInput:S5,agDateColumnFloatingFilter:C5},dynamicBeans:{agDateColumnFilterHandler:w5}},O5={moduleName:"QuickFilterCore",version:R,rowModels:["clientSide"],beans:[L5],dependsOn:[Mn,hg]},NC={moduleName:"QuickFilter",version:R,apiFunctions:{isQuickFilterPresent:A5,getQuickFilter:I5,resetQuickFilter:z5},dependsOn:[O5]},GC={moduleName:"ExternalFilter",version:R,dependsOn:[Mn]},V5=class extends x{constructor(e,t,o){super(),this.id=e,this.parentCache=t,this.params=o,this.state="needsLoading",this.version=0,this.startRow=e*o.blockSize,this.endRow=this.startRow+o.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,o){this.successCommon(e,{rowData:t,rowCount:o})}isRequestMostRecentAndLive(e){const t=e===this.version,o=this.isAlive();return t&&o}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:o,beans:r,rowNodes:i}=this;for(let a=0;a<e;a++){const n=o+a,s=new vt(r);s.setRowHeight(t),s.uiLevel=0,s.setRowIndex(n),s.setRowTop(t*n),i.push(s)}}getBlockStateJson(){const{id:e,startRow:t,endRow:o,state:r}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:o,pageStatus:r}}}setDataAndId(e,t,o){L(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0),this.beans.selectionSvc?.updateRowSelectable(e)}loadFromDatasource(){const e=this.createLoadParams();if(Me(this.params.datasource.getRows)){this.warn(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:o,params:{sortModel:r,filterModel:i},gos:a}=this;return W(a,{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,o),failCallback:this.pageLoadFailed.bind(this,o),sortModel:r,filterModel:i})}forEachNode(e,t,o){this.rowNodes.forEach((r,i)=>{this.startRow+i<o&&e(r,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const o=e-this.startRow;return this.rowNodes[o]}processServerResult(e){const{rowNodes:t,beans:o}=this;t.forEach((i,a)=>{const n=e.rowData?e.rowData[a]:void 0;!i.id&&i.alreadyRendered&&n&&(t[a]=new vt(o),t[a].setRowIndex(i.rowIndex),t[a].setRowTop(i.rowTop),t[a].setRowHeight(i.rowHeight),i._destroy(!0)),this.setDataAndId(t[a],n,this.startRow+a)});const r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)}destroy(){const e=this.rowNodes;for(let t=0,o=e.length;t<o;t++)e[t]._destroy(!1);e.length=0,super.destroy()}},B5=2,H5=class extends x{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const o=Math.floor(e/this.params.blockSize);let r=this.blocks[o];if(!r){if(t)return;r=this.createBlock(o)}return r.getRow(e)}createBlock(e){const t=this.params,o=this.createBean(new V5(e,this,t));return this.blocks[o.id]=o,this.blockCount++,this.purgeBlocksIfNeeded(o),t.rowNodeBlockLoader.addBlock(o),o}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}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()&&(oo(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(n=>n!=e),o=(n,s)=>s.lastAccessed-n.lastAccessed;t.sort(o);const r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,a=B5-1;t.forEach((n,s)=>{const l=n.state==="needsLoading"&&s>=a,c=r?s>=i:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(n)||this.isBlockFocused(n))return;this.removeBlockFromCache(n)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:o,endRow:r}=e;return t.rowIndex>=o&&t.rowIndex<r}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:o}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,o-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:o,overflowSize:r}=this.params,a=(e.id+1)*o+r;this.rowCount<a&&(this.rowCount=a)}}setRowCount(e,t){this.rowCount=e,L(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const o of this.getBlocksInOrder())o.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(o,r)=>o.id-r.id;return Object.values(this.blocks).sort(e)}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,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const o=[];let r=-1,i=!1;const a={value:0};let n=!1;for(const l of this.getBlocksInOrder())if(!n){if(i&&r+1!==l.id){n=!0;continue}r=l.id,l.forEachNode(c=>{const d=c===e||c===t;(i||d)&&o.push(c),d&&(i=!i)},a,this.rowCount)}return n||i?[]:o}},N5=class extends x{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.hierarchical=!1,this.rowCountReady=!1}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get("rowModelType")!=="infinite")return;const e=this.beans,t=new vt(e);this.rootNode=t,t.level=-1,this.rowHeight=pt(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)}),Or(this,()=>this.refreshRowHeight()),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache())}refreshRowHeight(){const e=pt(this.beans);e!==this.rowHeight&&(this.rowHeight=e,this.cacheParams&&(this.cacheParams.rowHeight=e),this.updateRowHeights())}onColumnEverything(){let e;this.cacheParams?e=!xr(this.cacheParams.sortModel,yc(this.beans.sortSvc)):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getOverlayType(){return this.infiniteCache?.getRowCount()===0?this.beans.filterManager?.isAnyFilterPresent()?"noMatchingRows":"noRows":null}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;So(this.beans)!=null||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:o,rowNodeBlockLoader:r,eventSvc:i,gos:a}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:yc(o),rowNodeBlockLoader:r,initialRowCount:a.get("infiniteInitialRowCount"),maxBlocksInCache:a.get("maxBlocksInCache"),rowHeight:pt(e),overflowSize:a.get("cacheOverflowSize"),blockSize:a.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new H5(this.cacheParams)),this.rowCountReady||(this.rowCountReady=!0,i.dispatchEvent({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(o=>{o.id===e&&(t=o)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return t>o?o: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(){this.beans.pinnedRowModel?.ensureRowHeightsValid()}};function G5(e){Ga(e)?.refreshCache()}function W5(e){Ga(e)?.purgeCache()}function q5(e){return Ga(e)?.getRowCount()}var U5=class extends x{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=Ju(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=se(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){No(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(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){oo(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(o=>o.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length;for(const o of t)o.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:o,state:r}=t.getBlockStateJson();e[o]=r}),e}printCacheStatus(){oo(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},_5={moduleName:"InfiniteRowModelCore",version:R,rowModels:["infinite"],beans:[N5,U5]},WC={moduleName:"InfiniteRowModel",version:R,apiFunctions:{refreshInfiniteCache:G5,purgeInfiniteCache:W5,getInfiniteRowCount:q5},dependsOn:[_5,im]},j5=class extends x{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.globalListeners=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){if(typeof t!="function")return;const o=this.wrapSvc?.wrap(e,t)??t,r=!dr.has(e),i=r?this.asyncListeners:this.syncListeners;i.has(e)||i.set(e,new Set),i.get(e).add(o),this.eventSvc.addListener(e,o,r)}removeListener(e,t){const o=this.wrapSvc?.unwrap(e,t)??t,i=!!this.asyncListeners.get(e)?.delete(o);i||this.syncListeners.get(e)?.delete(o),this.eventSvc.removeListener(e,o,i)}addGlobalListener(e){if(typeof e!="function")return;const t=this.globalListeners;if(t.has(e))return;const o=this.wrapSvc?.wrapGlobal(e)??e;t.set(e,o);const r=this.eventSvc;r.addGlobalListener(o,!1,dr),r.addGlobalListener(o,!0,void 0,dr)}removeGlobalListener(e){const t=this.globalListeners,o=t.get(e);if(o){const r=this.eventSvc;r.removeGlobalListener(o,!1),r.removeGlobalListener(o,!0),t.delete(e)}}destroyEventListeners(e,t){e.forEach((o,r)=>{o.forEach(i=>this.eventSvc.removeListener(r,i,t)),o.clear()}),e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0);const{globalListeners:e,eventSvc:t}=this;e.forEach(o=>{t.removeGlobalListener(o,!1),t.removeGlobalListener(o,!0)}),e.clear()}};function K5(e,t,o){e.apiEventSvc?.addListener(t,o)}function Y5(e,t,o){e.apiEventSvc?.removeListener(t,o)}function Q5(e,t){e.apiEventSvc?.addGlobalListener(t)}function Z5(e,t){e.apiEventSvc?.removeGlobalListener(t)}var qC={moduleName:"EventApi",version:R,apiFunctions:{addEventListener:K5,addGlobalListener:Q5,removeEventListener:Y5,removeGlobalListener:Z5},beans:[j5]},UC=class extends x{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");return t?_y(t):jy(e.get("localeText"))}},_C={moduleName:"Locale",version:R,beans:[UC]},jC=class extends x{constructor(){super(...arguments),this.beanName="userColumnSvc",this.entries=new Map,this.owners=[],this.ownedProperties=null,this.declaredDefs=new Map}registerOwner(e,t){this.owners.push(e);const o=this.ownedProperties??new Set;for(let r=0,i=t.length;r<i;++r)o.add(t[r]);this.ownedProperties=o}isActive(){const e=this.owners;for(let t=0,o=e.length;t<o;++t)if(e[t]())return!0;return!1}getDeclaredDef(e){const t=this.beans.colModel.colDefs??null;if(this.declaredDefsSource!==t){const o=new Map;X5(t,o),this.declaredDefs=o,this.declaredDefsSource=t}return this.declaredDefs.get(e)}isDeclared(e){return this.getDeclaredDef(e)!==void 0}getEntry(e){return this.entries.get(e)}forEachEntry(e){this.entries.forEach(e)}hasEntries(){return this.entries.size>0}setCreatedColumn(e,t,o,r){this.entries.set(e,{properties:t,parentGroupId:o,created:!0,calculatedExpressionError:r})}setOverride(e,t,o){this.entries.set(e,{properties:t,calculatedExpressionError:o})}removeColumn(e,t){t?this.entries.set(e,{removed:!0}):this.entries.delete(e)}clearColumn(e){this.entries.delete(e)}clear(){const{entries:e}=this;return this.declaredDefsSource=void 0,e.size?(e.clear(),!0):!1}overrideFor(e){const t=e.colId??e.field;if(t==null)return;const o=this.entries.get(t);if(o!==void 0&&this.isActive()){if(o.removed)return null;if(!o.created)return o.properties?{...e,...o.properties}:void 0}}getState(){const e=this.entries;if(!e.size)return;const t=[];return e.forEach((o,r)=>{if(o.removed){t.push({colId:r,type:"calculated",removed:!0});return}const{parentGroupId:i,created:a,calculatedExpressionError:n}=o,s=a?{colId:r,type:"calculated",created:a,parentGroupId:i??null,properties:KC(o.properties)}:{colId:r,type:"calculated",properties:KC(o.properties)};n&&(s.calculatedExpressionError=n),t.push(s)}),t}setState(e){const t=this.entries,o=new Map;for(let r=0,i=e?.length??0;r<i;++r){const a=e[r],{colId:n}=a;n!=null&&(a.removed?o.set(n,{removed:!0}):a.created?o.set(n,{properties:this.acceptProperties(a.properties),parentGroupId:a.parentGroupId??null,created:!0,calculatedExpressionError:a.calculatedExpressionError}):this.isDeclared(n)&&o.set(n,{properties:this.acceptProperties(a.properties),calculatedExpressionError:a.calculatedExpressionError}))}return J5(t,o)?!1:(t.clear(),o.forEach((r,i)=>t.set(i,r)),!0)}acceptProperties(e){const t=this.ownedProperties,o={};for(let r=0,i=e?.length??0;r<i;++r){const{property:a,value:n}=e[r];(t?t.has(a)&&typeof n!="function":a!=null)&&(o[a]=n)}return o}},KC=e=>{if(!e)return[];const t=Object.keys(e),o=[];for(let r=0,i=t.length;r<i;++r){const a=t[r],n=e[a];typeof n!="function"&&o.push({property:a,value:n})}return o},J5=(e,t)=>{if(e.size!==t.size)return!1;for(const[o,r]of e){const i=t.get(o);if(i===void 0||!!r.removed!=!!i.removed||!!r.created!=!!i.created||r.parentGroupId!==i.parentGroupId||!wo(r.calculatedExpressionError,i.calculatedExpressionError)||!wo(r.properties??{},i.properties??{}))return!1}return!0},X5=(e,t)=>{e&&hl(e,o=>{const r=o.colId??o.field;r!=null&&!t.has(r)&&t.set(r,o)})};function $5(e){return e.stateSvc?.getState()??{}}function eI(e,t,o){return e.stateSvc?.setState(t,o)}function YC(e){return e={...e},e.version||(e.version="32.1.0"),e.version==="32.1.0"&&(e=tI(e)),e.version=R,e}function tI(e){return e.cellSelection=oI(e,"rangeSelection"),e}function oI(e,t){if(e&&typeof e=="object")return e[t]}var rI=class extends x{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=se(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=se(this,()=>this.updateGroupExpansionState(),0),this.onRowSelectedDebounced=se(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:o}=this.beans;this.isClientSideRowModel=ve(e);const r=YC(e.get("initialState")??{}),i=r.partialColumnState;delete r.partialColumnState,this.cachedState=r,this.initialFilterState=r.filter;const a=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>a(()=>this.setupStateOnGridReady(r))),(r.columnOrder||r.columnVisibility||r.columnSizing||r.columnPinning||r.columnGroup)&&o?.hideColumns("columnState");const[n,s,l]=this.addManagedEventListeners({newColumnsLoaded:({source:c})=>{c==="gridInitializing"&&(n(),a(()=>{this.setupStateOnColumnsInitialised(r,!!i),o?.revealColumns("columnState")}))},rowCountReady:()=>{s?.(),a(()=>this.setupStateOnRowCountReady(r))},firstDataRendered:()=>{l?.(),a(()=>this.setupStateOnFirstDataRendered(r))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const o=YC(e);delete o.partialColumnState,this.cachedState=o,this.startSuppressEvents(),this.applyInitialFilterState();const r="api",i=t?new Set(t):void 0;this.setGridReadyState(o,r,i),this.setColumnsInitialisedState(o,r,!!i,i),this.setRowCountState(o,r,i),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(o,r,i),this.stopSuppressEvents(r)})}setGridReadyState(e,t,o){t==="api"&&!o?.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","columnHeaderName","pivot","rowGroup","showValuesAs","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState()),this.updateCachedState("userColumns",this.beans.userColumnSvc.getState())}setColumnsInitialisedState(e,t,o,r){this.setUserColumnsState(e,t,r),this.applyColumnGridState(e,t,o,r),this.setColumnGroupState(e,t,r),this.updateColumnAndGroupState()}setUserColumnsState(e,t,o){if(o?.has("userColumns")||!e.userColumns&&t!=="api")return;const{userColumnSvc:r,calculatedColsSvc:i,colModel:a}=this.beans,n=r.setState(e.userColumns),s=i?.adoptUserColumns()??!1;!n&&!s||(i?i.refreshDynamicColumns(t):a.rebuildCols(t))}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const o=r=>()=>this.updateColumnState([r]);this.addManagedEventListeners({columnValueChanged:o("aggregation"),columnMoved:o("columnOrder"),columnPinned:o("columnPinning"),columnResized:o("columnSizing"),columnVisible:o("columnVisibility"),columnPivotChanged:o("pivot"),columnPivotModeChanged:o("pivot"),columnRowGroupChanged:o("rowGroup"),columnShowValuesAsChanged:o("showValuesAs"),sortChanged:o("sort"),newColumnsLoaded:({source:r})=>{this.updateColumnAndGroupState(),r!=="gridInitializing"&&this.isClientSideRowModel&&this.onRowGroupOpenedDebounced()},columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState()),columnHeaderNameChanged:()=>{this.updateColumnState(["columnHeaderName"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}})}setRowCountState(e,t,o){const{filter:r,quickFilter:i,rowGroupExpansion:a,ssrmRowGroupExpansion:n,rowSelection:s,pagination:l,rowPinning:c}=e,d=(u,h)=>!o?.has(u)&&(h||t==="api");d("filter",r)&&this.setFilterStateDeferringPivot(r,t),d("quickFilter",i)&&this.setQuickFilterState(i,t),(d("rowGroupExpansion",a)||d("ssrmRowGroupExpansion",n))&&this.setRowGroupExpansionState(n,a,t),d("rowSelection",s)&&this.setRowSelectionState(s,t),d("pagination",l)&&this.setPaginationState(l,t),d("rowPinning",c)&&this.setRowPinningState(c);const g=this.updateCachedState.bind(this);g("filter",this.getFilterState()),g("quickFilter",this.getQuickFilterState()),this.updateGroupExpansionState(),g("rowSelection",this.getRowSelectionState()),g("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.applyInitialFilterState(),this.setRowCountState({...e,filter:void 0},"gridInitializing");const t=this.updateCachedState.bind(this),o=()=>{this.updateRowGroupExpansionStateTimer=0,this.updateGroupExpansionState()},r=()=>t("filter",this.getFilterState());this.addManagedPropertyListener("quickFilterText",()=>t("quickFilter",this.getQuickFilterState()));const{gos:i,colFilter:a,selectableFilter:n}=this.beans;this.addManagedEventListeners({filterChanged:r,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:o,columnRowGroupChanged:o,rowDataUpdated:()=>{(i.get("groupDefaultExpanded")!==0||i.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(o)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:s=>{(s.newPage||s.newPageSize)&&t("pagination",this.getPaginationState())},pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())}),a&&this.addManagedListeners(a,{filterStateChanged:r}),n&&this.addManagedListeners(n,{selectedFilterChanged:r})}setFirstDataRenderedState(e,t,o){const{scroll:r,cellSelection:i,find:a,focusedCell:n,columnOrder:s}=e,l=(u,h)=>!o?.has(u)&&(h||t==="api");l("focusedCell",n)&&this.setFocusedCellState(n),l("cellSelection",i)&&this.setCellSelectionState(i),this.setColumnPivotState(!!s?.orderedColIds,t);const c=this.deferredFilterState;c&&(this.deferredFilterState=void 0,this.setFilterState(c,t)),l("find",a)&&this.setFindState(a,t),l("scroll",r)&&this.setScrollState(r);const d=this.updateCachedState.bind(this);d("sideBar",this.getSideBarState()),d("focusedCell",this.getFocusedCellState());const g=this.getRangeSelectionState();d("rangeSelection",g),d("cellSelection",g),d("scroll",this.getScrollState()),d("find",this.getFindState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),o=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:o,cellFocusCleared:o,cellSelectionChanged:r=>{if(r.finished){const i=this.getRangeSelectionState();t("rangeSelection",i),t("cellSelection",i)}},bodyScrollEnd:()=>t("scroll",this.getScrollState()),findChanged:()=>t("find",this.getFindState())})}getColumnGridState(){const e=this.beans;return lw(kh(e),e.colModel.pivotMode)}applyColumnGridState(e,t,o,r){const{sort:i,rowGroup:a,aggregation:n,showValuesAs:s,pivot:l,columnPinning:c,columnVisibility:d,columnSizing:g,columnOrder:u,columnHeaderName:h}=e;let p=!1;const f=(U,_)=>{const de=!r?.has(U)&&!!(_||t==="api");return p||(p=de),de},m=Object.create(null),w=U=>{let _=m[U];return _||(_={colId:U},m[U]=_,_)},v=f("sort",i),C=f("rowGroup",a),b=f("aggregation",n),S=f("showValuesAs",s),E=f("pivot",l),F=f("columnPinning",c),P=f("columnVisibility",d),z=f("columnSizing",g),V=f("columnHeaderName",h),H=U=>U||!o?null:void 0,Se={sort:H(v),sortIndex:H(v),rowGroup:H(C),rowGroupIndex:H(C),aggFunc:H(b),valueIndex:H(b),showValuesAs:H(S),pivot:H(E),pivotIndex:H(E),pinned:H(F),hide:H(P),flex:H(z),headerName:H(V),sortType:void 0,width:void 0,pivotSort:void 0};if(v&&i){const U=i.sortModel;for(let _=0,de=U.length;_<de;++_){const{colId:fe,sort:D,type:T}=U[_],O=w(fe);O.sort=D,O.sortIndex=_,O.sortType=T}}if(C&&a){const U=a.groupColIds;for(let _=0,de=U.length;_<de;++_){const fe=w(U[_]);fe.rowGroup=!0,fe.rowGroupIndex=_}}if(b&&n){const U=n.aggregationModel;for(let _=0,de=U.length;_<de;++_){const{colId:fe,aggFunc:D}=U[_],T=w(fe);T.aggFunc=D,T.valueIndex=_}}if(S&&s){const U=s.showValuesAsModel;for(let _=0,de=U.length;_<de;++_){const{colId:fe,showValuesAs:D}=U[_];w(fe).showValuesAs=ia(D)}}if(E&&l){const U=l.pivotColIds;for(let _=0,de=U.length;_<de;++_){const fe=w(U[_]);fe.pivot=!0,fe.pivotIndex=_}for(const{colId:_,sort:de}of l.pivotSortModel??[])w(_).pivotSort=de;this.gos.updateGridOptions({options:{pivotMode:!!l.pivotMode},source:t})}if(F){for(const U of c?.leftColIds??[])w(U).pinned="left";for(const U of c?.rightColIds??[])w(U).pinned="right"}if(P)for(const U of d?.hiddenColIds??[])w(U).hide=!0;if(z)for(const{colId:U,flex:_,width:de}of g?.columnSizingModel??[]){const fe=w(U);fe.flex=_??null,fe.width=de}if(V)for(const{colId:U,headerName:_}of h?.columnHeaderNames??[])w(U).headerName=_;const J=u?.orderedColIds,xe=!!J?.length&&!r?.has("columnOrder"),ee=xe?J.map(U=>w(U)):Object.values(m);(ee.length||p)&&(this.columnStates=ee,Pt(this.beans,{state:ee,applyOrder:xe,defaultState:Se},t))}setColumnPivotState(e,t){const o=this.columnStates;this.columnStates=void 0;const r=this.columnGroupStates;this.columnGroupStates=void 0;const i=this.beans,{pivotResultCols:a,colModel:n}=i;if(a?.pivotCols){if(o){const s=[];for(const l of o)n.colsById[l.colId]?.colDef.pivotKeys!=null&&s.push(l);Pt(i,{state:s,applyOrder:e},t)}r&&_r(i,r,t)}}getColumnGroupState(){const e=Ws(this.beans);return cw(e)}setColumnGroupState(e,t,o){if(o?.has("columnGroup")||t!=="api"&&!Un(e,"columnGroup"))return;const r=new Set(e.columnGroup?.openColumnGroupIds),i=new Map((e.columnGroup?.headerNames??[]).map(({groupId:s,headerName:l})=>[s,l])),n=Ws(this.beans).map(({groupId:s})=>{const l=r.has(s);return l&&r.delete(s),{groupId:s,open:l,headerName:i.get(s)??null}});for(const s of r)n.push({groupId:s,open:!0,headerName:i.get(s)??null});n.length&&(this.columnGroupStates=n),_r(this.beans,n,t)}getFilterState(){const{filterManager:e,selectableFilter:t}=this.beans;let o=e?.getFilterModel();o&&Object.keys(o).length===0&&(o=void 0);const r=e?.getFilterState(),i=e?.getAdvFilterModel()??void 0,a=t?.getState();return o||i||r||a?{filterModel:o,columnFilterState:r,advancedFilterModel:i,selectableFilters:a}:void 0}setFilterState(e,t="api"){const{filterManager:o,selectableFilter:r}=this.beans,{filterModel:i,columnFilterState:a,advancedFilterModel:n,selectableFilters:s}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null,selectableFilters:null};s!==void 0&&r?.setState(s??void 0);const l=t==="api";if(i!==void 0||a!==void 0){const c=l?"api":"columnFilter";o?.setFilterState(i??null,a??null,c)}if(n!==void 0){const c=l?"api":"advancedFilter";o?.setAdvFilterModel(n??null,c)}}isToolbarStateManaged(e){return!!this.beans.toolbar?.hasItem(e)}getQuickFilterState(){return this.isToolbarStateManaged("agQuickFilterToolbarItem")?this.beans.quickFilter?.getState():void 0}setQuickFilterState(e,t="api"){if(!this.isToolbarStateManaged("agQuickFilterToolbarItem"))return;const{text:o}=e??{};this.beans.quickFilter?.setState({text:t==="api"?o??"":o},t==="api"?"api":void 0)}applyInitialFilterState(){const e=this.initialFilterState;e&&(this.initialFilterState=void 0,this.setFilterStateDeferringPivot(e,"gridInitializing"))}setFilterStateDeferringPivot(e,t){const{colModel:o,pivotResultCols:r}=this.beans,i=e?.filterModel;if(i&&t==="gridInitializing"&&o.pivotMode&&!r?.pivotCols){const a=o.colsById,n=Object.keys(i);for(let s=0,l=n.length;s<l;++s)if(a[n[s]]==null){this.deferredFilterState=e;return}}this.setFilterState(e,t)}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:o,type:r,startRow:i,endRow:a,columns:n,startColumn:s}=t;return{id:o,type:r,startRow:i,endRow:a,colIds:n.map(l=>l.getColId()),startColId:s.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:o,colModel:r,visibleCols:i}=this.beans;if(!ft(t)||!o)return;const a=[];for(const n of e?.cellRanges??[]){const s=[];for(const c of n.colIds){const d=r.colsById[c];d&&s.push(d)}if(!s.length)continue;let l=r.colsById[n.startColId];if(!l){const c=i.allCols,d=new Set(s);l=c.find(g=>d.has(g))}a.push({...n,columns:s,startColumn:l})}o.setCellRanges(a)}getFindState(){return this.isToolbarStateManaged("agFindToolbarItem")?this.beans.findSvc?.getState():void 0}setFindState(e,t="api"){if(!this.isToolbarStateManaged("agFindToolbarItem"))return;const{searchValue:o,activeMatch:r}=e??{};this.beans.findSvc?.setState({searchValue:t==="api"?o??"":o,activeMatch:r})}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:o}=e?.getVScrollPosition()??{top:0};return o||t?{top:o,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:o}=e??{top:0,left:0},{frameworkOverrides:r,rowRenderer:i,animationFrameSvc:a,ctrlsSvc:n}=this.beans;r.wrapIncoming(()=>{n.whenReady(this,()=>{const s=n.getScrollFeature();s?.setHorizontalScrollPosition(o),s?.setVerticalScrollPosition(t),i.redraw({afterScroll:!0}),a?.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:o,rowPinned:r}=e;return{colId:t.getColId(),rowIndex:o,rowPinned:r}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:o}=this.beans;if(!e){t.clearFocusedCell();return}const{colId:r,rowIndex:i,rowPinned:a}=e;t.setFocusedCellOrSpan({column:o.colsById[r]??null,rowIndex:i,rowPinned:a,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const o=e.getCurrentPage(),r=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!o&&!r))return{page:o,pageSize:r}}setPaginationState(e,t){const{pagination:o,gos:r}=this.beans;if(!o)return;const{pageSize:i,page:a}=e??{page:0,pageSize:r.get("paginationPageSize")},n=t==="gridInitializing";i&&!r.get("paginationAutoPageSize")&&o.setPageSize(i,n?"initialState":"pageSizeSelector"),typeof a=="number"&&(n?o.setPage(a):o.goToPage(a))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&("selectAll"in t?!t.selectAll:t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t==="api")}updateGroupExpansionState(){const{expansionSvc:e,gos:t}=this.beans,o=e?.getExpansionState(),r=t.get("ssrmExpandAllAffectsAllRows");this.updateCachedState("ssrmRowGroupExpansion",r?o:void 0),this.updateCachedState("rowGroupExpansion",r?void 0:o)}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){this.beans.pinnedRowModel?.setPinnedState(e??{top:[],bottom:[]})}setRowGroupExpansionState(e,t,o){const r=e??t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};this.beans.expansionSvc?.setExpansionState(r,o)}updateColumnState(e){const t=this.getColumnGridState();let o=!1;const r=this.cachedState;for(const i of Object.keys(t)){const a=t[i];xr(a,r[i])||(o=!0)}this.cachedState={...r,...t},o&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const o=this.cachedState[e];this.setCachedStateValue(e,t),xr(t,o)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)t==="rowSelection"&&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")}},QC={moduleName:"GridState",version:R,beans:[rI,jC],apiFunctions:{getState:$5,setState:eI}};function iI(e){return e.rowModel.isLastRowIndexKnown()}function aI(e){return e.pagination?.getPageSize()??100}function nI(e){return e.pagination?.getCurrentPage()??0}function sI(e){return e.pagination?.getTotalPages()??1}function lI(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function cI(e){e.pagination?.goToNextPage()}function dI(e){e.pagination?.goToPreviousPage()}function gI(e){e.pagination?.goToFirstPage()}function uI(e){e.pagination?.goToLastPage()}function hI(e,t){e.pagination?.goToPage(t)}var pI=class extends x{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.scrollingRowsCtrl=e.scrolling;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")||this.scrollingRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.scrollingRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,o=()=>{const r=Math.max(pt(t),1),i=Math.floor(e/r);t.pagination.setPageSize(i,"autoCalculated")};this.isBodyRendered?se(this,o,50)():(o(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},pg="paginationPageSizeSelector",fI={tag:"span",cls:"ag-paging-page-size"},mI=class extends X{constructor(e){super(fI),this.panelParams=e,this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const t=this.selectPageSizeComp.getValue();if(!t)return;const o=Uu(t);o==null||o<1||o===this.pagination.getPageSize()||(this.pagination.setPageSize(o,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}getPageSizeSelectorOption(){return this.panelParams?.paginationPageSizeSelector??this.gos.get(pg)}postConstruct(){this.addManagedPropertyListener(pg,()=>{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(),this.selectPageSizeComp)}reset(){Ce(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return!this.gos.get("paginationAutoPageSize")&&this.getPageSizeSelectorOption()!==!1}updateVisibility(){const e=this.shouldShowPageSizeSelector();this.toggleSelectDisplay(e),this.setDisplayed(e)}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),o=!t||!e.includes(t);if(o){const i=this.panelParams?.paginationPageSize!=null||this.gos.exists("paginationPageSize"),a=this.getPageSizeSelectorOption()!==!0;this.beans.log.warn(94,{pageSizeSet:i,pageSizesSet:a,pageSizeOptions:e,paginationPageSizeOption:t}),a||this.beans.log.warn(95,{paginationPageSizeOption:t,paginationPageSizeSelector:pg}),e.unshift("")}const r=String(o?"":t);this.selectPageSizeComp?(je(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(r,!0)):this.createPageSizeSelectorComp(e,r),this.hasEmptyOption=o}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const o=this.getLocaleTextFunc(),r=o("pageSizeSelectorLabel","Page Size:"),i=o("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new fn).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(i).setLabel(r).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.getPageSizeSelectorOption();return!Array.isArray(t)||!t?.length?e:[...t].sort((o,r)=>o-r)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}};function fg(e,t,o){const r=t.getCallback("paginationNumberFormatter");return r?r({value:e}):_u(e,o)}var vI=class extends X{constructor(e,t){super(),this.btFirst=k,this.btPrevious=k,this.btNext=k,this.btLast=k,this.lbCurrentInput=k,this.lbCurrentStatic=k,this.lbTotal=k,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.ariaStatus="",this.idPrefix=e,this.suppressPageInput=t??!1}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination}postConstruct(){const e=this.getLocaleTextFunc();this.setTemplate(wI(this.idPrefix,this.suppressPageInput,e),this.suppressPageInput?[]:[bd]),bI(this.gos.get("enableRtl"),this.beans,this.btFirst,this.btPrevious,this.btNext,this.btLast),this.initNavButtons(),this.suppressPageInput||this.initPageInput(),this.refresh()}initNavButtons(){const{btFirst:e,btPrevious:t,btNext:o,btLast:r}=this;this.activateTabIndex([e,t,o,r]);for(const{el:i,fn:a}of[{el:e,fn:this.onBtFirst.bind(this)},{el:t,fn:this.onBtPrevious.bind(this)},{el:o,fn:this.onBtNext.bind(this)},{el:r,fn:this.onBtLast.bind(this)}])this.addManagedListeners(i,{click:a,keydown:n=>{(n.key===y.ENTER||n.key===y.SPACE)&&(n.preventDefault(),a())}})}initPageInput(){const{lbCurrentInput:e,pagination:t}=this,o=e.getInputElement();xt(o,"spinbutton"),this.addManagedListeners(o,{keydown:r=>{const{key:i}=r;if(i!==y.ENTER&&i!==y.ESCAPE&&i!==y.UP&&i!==y.DOWN)return;r.preventDefault();let a=null;const n=t.getCurrentPage(),s=t.getTotalPages();switch(i){case y.ENTER:this.commitPageInput();break;case y.ESCAPE:e.setValue(String(this.getDisplayPageNumber()),!0),o.blur();break;case y.UP:n+2<=s&&(a=n+2);break;case y.DOWN:n!==0&&(a=n);break}a!==null&&(e.setValue(String(a),!0),this.commitPageInput())},blur:()=>this.commitPageInput()})}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}commitPageInput(){const{pagination:e,lbCurrentInput:t}=this,o=t.getValue(!0);if(!o?.trim()){t.setValue(String(this.getDisplayPageNumber()),!0);return}const r=Number(o),i=e.getTotalPages();if(!(Number.isFinite(r)&&Number.isInteger(r)&&r>=1&&r<=i)){t.setValue(String(this.getDisplayPageNumber()),!0);return}e.goToPage(r-1)}getDisplayPageNumber(){const{rowModel:e,pagination:t}=this;return t.getTotalPages()>0?t.getCurrentPage()+1:e.isLastRowIndexKnown()?0:1}refresh(){this.enableOrDisableButtons(),this.updateLabels()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),o=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const r=t&&o===0,i=e===o-1;this.nextButtonDisabled=i||r,this.lastButtonDisabled=!t||r||i,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){Gg(e,t),e.classList.toggle("ag-disabled",t)}updateLabels(){const{rowModel:e,pagination:t,lbCurrentInput:o,lbCurrentStatic:r,lbTotal:i}=this,a=e.isLastRowIndexKnown(),n=t.getTotalPages(),s=this.getLocaleTextFunc();let l;a?l=this.formatNumber(n):l=s("more","more"),i.textContent=l;const c=this.getDisplayPageNumber(),d=this.formatNumber(c);if(this.suppressPageInput)r.textContent=d;else{const h=Math.max(c,n);o.setMin(Math.min(1,c)),o.setMax(h),o.getInputElement().style.width=`${Math.floor(Math.log10(Math.max(1,h)))+3.5}ch`,o.setValue(c.toString());const p=o.getInputElement();Ht(p,`${s("page","Page")} ${s("number","number")}, ${c} ${s("of","of")} ${l}`),p.setAttribute("aria-valuenow",String(c)),p.setAttribute("aria-valuemin",String(Math.min(1,c))),p.setAttribute("aria-valuemax",String(h))}const g=s("page","Page"),u=s("of","of");this.ariaStatus=`${g} ${d} ${u} ${l}`}formatNumber(e){return fg(e,this.gos,this.getLocaleTextFunc.bind(this))}};function wI(e,t,o){const r={cls:"ag-paging-number",attrs:{id:`${e}-start-page-number`},tag:t?"span":"ag-input-number-field",ref:t?"lbCurrentStatic":"lbCurrentInput"};return{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":o("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":o("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${e}-start-page`},children:o("page","Page")},r,{tag:"span",attrs:{id:`${e}-of-page`},children:o("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${e}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":o("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":o("lastPage","Last Page")}}]}}function bI(e,t,o,r,i,a){o.insertAdjacentElement("afterbegin",ue(e?"last":"first",t)),r.insertAdjacentElement("afterbegin",ue(e?"next":"previous",t)),i.insertAdjacentElement("afterbegin",ue(e?"previous":"next",t)),a.insertAdjacentElement("afterbegin",ue(e?"first":"last",t))}var CI=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;height:var(--ag-pagination-panel-height);overflow:auto hidden;scrollbar-width:var(--ag-scrollbar-width,thin)}.ag-paging-panel-content{align-items:center;display:flex;flex:0 0 auto;gap:calc(var(--ag-spacing)*4);justify-content:flex-end;min-width:100%;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}}:where(.ag-number-field).ag-paging-number{display:inline-block}:where(.ag-number-field.ag-paging-number) .ag-input-field-input{text-align:end}.ag-paging-number,.ag-paging-row-summary-panel-number{font-variant-numeric:tabular-nums;font-weight:500}.ag-paging-description{line-height:0}.ag-paging-row-summary-panel{display:inline-grid}.ag-paging-row-summary-panel:before{content:var(--ag-internal-pagination-width-string);font-variant-numeric:tabular-nums;font-weight:500;grid-area:1/1;visibility:hidden}.ag-paging-row-summary-content{grid-area:1/1;justify-self:center}",yI=class extends X{constructor(e){super(),this.lbFirstRowOnPage=k,this.lbLastRowOnPage=k,this.lbRecordCount=k,this.ariaStatus="",this.idPrefix=e}wireBeans(e){this.pagination=e.pagination}postConstruct(){const e=this.idPrefix,t=this.getLocaleTextFunc();this.setTemplate({tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",cls:"ag-paging-row-summary-content",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${e}-first-row`}},{tag:"span",attrs:{id:`${e}-to`},children:t("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${e}-last-row`}},{tag:"span",attrs:{id:`${e}-of`},children:t("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${e}-row-count`}}]}]}),this.refresh()}isZeroPages(){return this.beans.rowModel.isLastRowIndexKnown()&&this.pagination.getTotalPages()===0}refresh(){const{pagination:e,beans:{rowModel:t},gos:o}=this,r=t.isLastRowIndexKnown(),i=e.getMasterRowCount(),a=r?i:null,n=e.getCurrentPage(),s=e.getPageSize(),l=this.getLocaleTextFunc();let c,d;this.isZeroPages()?c=d=0:(c=s*n+1,d=c+s-1,r&&d>a&&(d=a));const g=c+s-1,u=!r&&i<g,h=b=>fg(b,o,this.getLocaleTextFunc.bind(this)),p=h(c);this.lbFirstRowOnPage.textContent=p;let f;u?f=l("pageLastRowUnknown","?"):f=h(d),this.lbLastRowOnPage.textContent=f;let m;r?m=h(a):m=l("more","more"),this.lbRecordCount.textContent=m;const w=l("to","to"),v=l("of","of");this.ariaStatus=`${p} ${w} ${f} ${v} ${m}`;const C=b=>b.replace(/\\/g,"\\\\").replace(/'/g,String.raw`\'`).replace(/\s+/g," ");this.getGui().style.setProperty("--ag-internal-pagination-width-string",`'${m} ${C(w)} ${m} ${C(v)} ${m}'`.replaceAll(/\d/g,"0"))}},SI=["pageSize","rowSummary","pageSummary"],xI=class extends tc{constructor(){super(),this.eContent=k,this.hasVisiblePanel=!1,this.allowFocusInnerElement=!1,this.lastAriaAnnounced={paginationRow:"",paginationPage:"",paginationPageNumbers:""},this.registerCSS(CI)}postConstruct(){const e=`ag-${this.getCompId()}`;this.setTemplate({tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:e},children:[{tag:"div",cls:"ag-paging-panel-content",ref:"eContent"}]}),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:t=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(t):Dp(this.beans,t),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.buildComponents(e),this.addManagedPropertyListeners(["pagination","suppressPaginationPanel"],()=>this.onPaginationChanged()),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.addManagedPropertyListener("paginationPanels",()=>this.rebuildComponents(e)),this.addManagedEventListeners({paginationChanged:()=>this.onPaginationEvent()}),Mp(this.beans,this,this.getGui()),this.addManagedElementListeners(this.getGui(),{focusin:t=>{const o=t.target;o&&N1(o)}}),this.onPaginationChanged(),this.announceAriaStatus()}setAllowFocus(e){this.allowFocusInnerElement=e}getFocusableContainerName(){return"pagination"}buildComponents(e){const t=this.gos.get("paginationPanels")??SI,o=new Set;for(const r of t){const i=typeof r=="string"?r:r.type;if(!o.has(i)){if(o.add(i),i==="pageSize"){const a=typeof r=="object"&&r.type==="pageSize"?r:void 0;this.pageSizeComp=this.createManagedBean(new mI(a)),this.pageSizeComp.updateVisibility(),this.eContent.appendChild(this.pageSizeComp.getGui())}else if(i==="rowSummary")this.rowSummaryComp=this.createManagedBean(new yI(e)),this.eContent.appendChild(this.rowSummaryComp.getGui());else if(i==="pageSummary"){const a=typeof r=="object"&&r.type==="pageSummary"?r.suppressPageInput:void 0;this.pageSummaryComp=this.createManagedBean(new vI(e,a)),this.eContent.appendChild(this.pageSummaryComp.getGui())}else if(i==="pageNumbers"){const a=this.beans.registry.createDynamicBean("pageNumbers",!0,e);a&&(this.pageNumbersComp=this.createManagedBean(a),this.eContent.appendChild(this.pageNumbersComp.getGui()))}}}this.updateHasVisiblePanel()}updateHasVisiblePanel(){this.hasVisiblePanel=this.rowSummaryComp!=null||this.pageSummaryComp!=null||this.pageNumbersComp!=null||this.pageSizeComp?.shouldShowPageSizeSelector()===!0}rebuildComponents(e){for(const t of[this.pageSizeComp,this.rowSummaryComp,this.pageSummaryComp,this.pageNumbersComp])t&&Ge(t.getGui());this.pageSizeComp=this.destroyBean(this.pageSizeComp),this.rowSummaryComp=this.destroyBean(this.rowSummaryComp),this.pageSummaryComp=this.destroyBean(this.pageSummaryComp),this.pageNumbersComp=this.destroyBean(this.pageNumbersComp),this.buildComponents(e),this.onPaginationChanged(),this.announceAriaStatus()}onPaginationChanged(){const e=this.hasVisiblePanel&&this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(e)}onPageSizeRelatedOptionsChange(){this.pageSizeComp?.updateVisibility(),this.updateHasVisiblePanel(),this.onPaginationChanged()}onPaginationEvent(){this.rowSummaryComp?.refresh(),this.pageSummaryComp?.refresh(),this.pageNumbersComp?.refresh(),this.announceAriaStatus()}announceAriaStatus(){!this.gos.get("pagination")||this.gos.get("suppressPaginationPanel")||(this.announceIfChanged(this.rowSummaryComp,"paginationRow"),this.announceIfChanged(this.pageSummaryComp,"paginationPage"),this.announceIfChanged(this.pageNumbersComp,"paginationPageNumbers"))}announceIfChanged(e,t){if(!e)return;const o=e.ariaStatus;o!==this.lastAriaAnnounced[t]&&(this.lastAriaAnnounced[t]=o,this.beans.ariaAnnounce?.announceValue(o,t))}},kI={selector:"AG-PAGINATION",component:xI},EI=100,RI=class extends x{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.pageSizeFromPanel=this.getPanelPageSize(),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPanels",this.onPanelsChanged.bind(this))}getPaginationSelector(){return kI}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}getPanelPageSize(){const e=this.gos.get("paginationPanels");if(e)for(let t=0,o=e.length;t<o;++t){const r=e[t];if(typeof r=="object"&&r.type==="pageSize")return r.paginationPageSize}}onPanelsChanged(){const e=this.getPanelPageSize();e!==this.pageSizeFromPanel&&this.setPageSize(e,"panel")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||typeof t!="number")return;const{editSvc:o}=this.beans;o?.isEditing()&&(o.isBatchEditing()?o.cleanupEditors():o.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:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){this.goToPage(Math.max(0,this.totalPages-1))}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){const{pageSizeAutoCalculated:e,pageSizeFromInitialState:t,pageSizeFromPanel:o,pageSizeFromGridOptions:r,pageSizeFromPageSizeSelector:i,gos:a}=this;return(a.get("paginationAutoPageSize")?e:void 0)??i??t??o??r??EI}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const o=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"panel":this.pageSizeFromPanel=e,this.applyExplicitPageSize(e);break;case"gridOptions":this.pageSizeFromGridOptions=e,this.applyExplicitPageSize(e);break}o!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}applyExplicitPageSize(e){e!==void 0&&(this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage())}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;(!Number.isFinite(Number(t))||Number.isNaN(Number(t))||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const o=this.pageSize,r=t-1;this.totalPages=Math.floor(r/o)+1,this.adjustCurrentPageIfInvalid();const i=this.currentPage,a=o*i;let n=o*(i+1)-1;if(n>r&&(n=r),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(a),n===r)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const s=e.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=s-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const t=this.pageSize,o=e-1;this.totalPages=Math.floor(o/t)+1,this.adjustCurrentPageIfInvalid();const r=this.currentPage;this.topDisplayedRowIndex=t*r,this.bottomDisplayedRowIndex=t*(r+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:o=!1,newPageSize:r=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:o,newPageSize:r,keepRenderedRows:t})}},mg={moduleName:"Pagination",version:R,beans:[RI,pI],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:iI,paginationGetPageSize:aI,paginationGetCurrentPage:nI,paginationGetTotalPages:sI,paginationGetRowCount:lI,paginationGoToNextPage:cI,paginationGoToPreviousPage:dI,paginationGoToFirstPage:gI,paginationGoToLastPage:uI,paginationGoToPage:hI},dependsOn:[Ri]},FI=5,Dn=3,Li=5;function ZC(e){const t=[];for(let o=0,r=e.length;o<r;++o){const i=e[o];if(o>0){const a=i-e[o-1];a===2?t.push(i-1):a>2&&t.push("ellipsis")}t.push(i)}return t}function MI(e,t,o){const r=Math.max(t,1),i=Math.min(Math.max(e+1,1),r);if(!o){const d=new Set([1]),g=Math.max(i-Math.floor(Dn/2),1);for(let h=0;h<Dn;++h){const p=g+h;p<=r&&d.add(p)}const u=ZC([...d].sort((h,p)=>h-p));return u.push("ellipsis"),u}if(t<=1)return[1];if(t<=FI){const d=[];for(let g=1;g<=t;++g)d.push(g);return d}const a=i<=Li-1,n=i>=t-(Li-2);let s,l;a?(s=1,l=Li):n?(s=t-Li+1,l=Li):(s=i-Math.floor(Dn/2),l=Dn);const c=new Set([1,t]);for(let d=0;d<l;++d)c.add(s+d);return ZC([...c].sort((d,g)=>d-g))}var DI=".ag-paging-page-numbers-panel{align-items:center;display:flex;gap:calc(var(--ag-spacing)*1.5)}.ag-paging-page-numbers{align-items:center;display:flex;gap:calc(var(--ag-spacing)*.5)}.ag-paging-page-number{align-items:center;border-radius:var(--ag-border-radius);cursor:pointer;display:flex;font-variant-numeric:tabular-nums;justify-content:center;min-width:var(--ag-icon-size);padding:var(--ag-spacing)}.ag-paging-page-number:hover{background-color:var(--ag-row-hover-color)}.ag-paging-page-number:focus-visible{box-shadow:var(--ag-focus-shadow)}.ag-paging-page-number-current{background-color:color-mix(in srgb,var(--ag-background-color),var(--ag-foreground-color) 5%);cursor:default;font-weight:600}.ag-paging-page-number-ellipsis{align-items:center;display:flex;font-variant-numeric:tabular-nums;justify-content:center;min-width:var(--ag-icon-size);padding:var(--ag-spacing);pointer-events:none}",vg="data-page",PI=class extends X{constructor(e){super(),this.eNumbers=k,this.btFirst=k,this.btPrevious=k,this.btNext=k,this.btLast=k,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.ariaStatus="",this.idPrefix=e,this.registerCSS(DI)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination}postConstruct(){const e=this.getLocaleTextFunc(),t=(r,i,a)=>({tag:"div",ref:r,cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e(i,a)}});this.setTemplate({tag:"div",cls:"ag-paging-page-numbers-panel",children:[t("btFirst","firstPage","First Page"),t("btPrevious","previousPage","Previous Page"),{tag:"div",ref:"eNumbers",cls:"ag-paging-page-numbers"},t("btNext","nextPage","Next Page"),t("btLast","lastPage","Last Page")]});const o=this.gos.get("enableRtl");this.btFirst.insertAdjacentElement("afterbegin",ue(o?"last":"first",this.beans)),this.btPrevious.insertAdjacentElement("afterbegin",ue(o?"next":"previous",this.beans)),this.btNext.insertAdjacentElement("afterbegin",ue(o?"previous":"next",this.beans)),this.btLast.insertAdjacentElement("afterbegin",ue(o?"first":"last",this.beans)),this.initNavButton(this.btFirst,()=>this.onBtFirst()),this.initNavButton(this.btPrevious,()=>this.onBtPrevious()),this.initNavButton(this.btNext,()=>this.onBtNext()),this.initNavButton(this.btLast,()=>this.onBtLast()),this.addManagedListeners(this.eNumbers,{click:r=>this.onPageActivated(r.target),keydown:r=>{(r.key===y.ENTER||r.key===y.SPACE)&&(r.preventDefault(),this.onPageActivated(r.target))}}),this.refresh()}initNavButton(e,t){this.activateTabIndex([e]),this.addManagedListeners(e,{click:t,keydown:o=>{(o.key===y.ENTER||o.key===y.SPACE)&&(o.preventDefault(),t())}})}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}onPageActivated(e){const t=e?.closest(`[${vg}]`);if(!t)return;const o=Number(t.getAttribute(vg));Number.isInteger(o)&&this.pagination.goToPage(o)}refresh(){const e=this.pagination,t=e.getCurrentPage(),o=e.getTotalPages(),r=this.getLocaleTextFunc(),i=MI(t,o,this.rowModel.isLastRowIndexKnown()),{eNumbers:a}=this,n=a.contains(Z(this.beans));a.replaceChildren();const s=r("page","Page");let l;for(let u=0,h=i.length;u<h;++u){const p=i[u];p==="ellipsis"?a.appendChild(this.createEllipsis(u)):p===t+1?(l=this.createCurrentPage(p,s),a.appendChild(l)):a.appendChild(this.createPageButton(p,s))}n&&l?.focus(),this.updateArrows(t,o);const c=r("of","of"),d=this.formatNumber(o>0?t+1:1),g=this.formatNumber(Math.max(o,1));this.ariaStatus=`${s} ${d} ${c} ${g}`}updateArrows(e,t){const o=this.rowModel.isLastRowIndexKnown(),r=o&&t===0,i=e===t-1;this.previousAndFirstButtonsDisabled=e===0||r,this.nextButtonDisabled=i||r,this.lastButtonDisabled=!o||r||i,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){Gg(e,t),e.classList.toggle("ag-disabled",t)}createPageButton(e,t){const o=G({tag:"div",cls:"ag-paging-page-number",role:"button",attrs:{[vg]:String(e-1),"aria-label":`${t} ${e}`}});return o.textContent=this.formatNumber(e),this.activateTabIndex([o]),o}createCurrentPage(e,t){const o=G({tag:"div",cls:"ag-paging-page-number ag-paging-page-number-current",role:"button",attrs:{"aria-current":"page","aria-disabled":"true","aria-label":`${t} ${e}`}});return o.textContent=this.formatNumber(e),this.activateTabIndex([o]),o}createEllipsis(e){const t=G({tag:"span",cls:"ag-paging-page-number-ellipsis",attrs:{id:`${this.idPrefix}-page-ellipsis-${e}`,"aria-hidden":"true"}});return t.textContent="\u2026",t}formatNumber(e){return fg(e,this.gos,this.getLocaleTextFunc.bind(this))}},JC={moduleName:"PaginationPageNumbers",version:R,dynamicBeans:{pageNumbers:PI},dependsOn:[mg]},TI=".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{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function AI(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function II(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function zI(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function LI(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function OI(e,t,o){return e.pinnedRowModel?.forEachPinnedRow(t,o)}var XC={moduleName:"PinnedRow",version:R,beans:[bp],css:[TI],apiFunctions:{getPinnedTopRowCount:AI,getPinnedBottomRowCount:II,getPinnedTopRow:zI,getPinnedBottomRow:LI,forEachPinnedRow:OI},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},VI="\u2191",BI="\u2193",HI={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},NI=class extends X{constructor(){super(HI),this.eValue=k,this.eDelta=k,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const o=Math.abs(t),r=e.formatValue(o),i=L(r)?r:o,a=t>=0,n=this.eDelta;a?n.textContent=VI+i:n.textContent=BI+i,n.classList.toggle("ag-value-change-delta-up",a),n.classList.toggle("ag-value-change-delta-down",!a)}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"),Ce(this.eDelta)}refresh(e,t=!1){const{value:o,valueFormatted:r}=e,{eValue:i,lastValue:a,beans:n}=this;if(o===a||(L(r)?i.textContent=r:L(o)?i.textContent=o:Ce(i),n.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const s=o&&typeof o=="object"&&"toNumber"in o?o.toNumber():o,l=a&&typeof a=="object"&&"toNumber"in a?a.toNumber():a;if(s===l)return!1;if(typeof s=="number"&&typeof l=="number"){const c=s-l;this.showDelta(e,c)}return a&&i.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=o,!0}},GI=".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}",WI={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},qI=class extends X{constructor(){super(WI),this.eCurrent=k,this.refreshCount=0,this.registerCSS(GI)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:o}=this,r=G({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=r,r.textContent=o.textContent,this.getGui().insertBefore(r,o),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 o=e.value;if(Me(o)&&(o=""),o===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=o;const r=this.eCurrent;return L(e.valueFormatted)?r.textContent=e.valueFormatted:L(e.value)?r.textContent=o:Ce(r),!0}},UI=class extends x{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,o=this.beans.gos.get("cellFlashDuration"),r=this.beans.gos.get("cellFadeDuration")){const i=this.animations[t];if(i.delete(e),!e.comp)return;const a=Date.now(),n=a+o,s=a+o+r,l={phase:"flash",flashEndTime:n,fadeEndTime:s};i.set(e,l);const c=`ag-cell-${t}`,d=`${c}-animation`,{comp:g,eGui:{style:u}}=e;g.toggleCss(c,!0),g.toggleCss(d,!1),u.removeProperty("transition"),u.removeProperty("transition-delay"),this.nextAnimationTime&&n+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),o)}),this.nextAnimationTime=n)}advanceAnimations(){const e=Date.now();let t=null;for(const o of Object.keys(this.animations)){const r=this.animations[o],i=`ag-cell-${o}`,a=`${i}-animation`;for(const[n,s]of r){if(!n.isAlive()||!n.comp){r.delete(n);continue}const{phase:l,flashEndTime:c,fadeEndTime:d}=s,g=l==="flash"?c:d;if(!(e+15>=g)){t=Math.min(g,t??1/0);continue}const{comp:h,eGui:{style:p}}=n;switch(l){case"flash":h.toggleCss(i,!1),h.toggleCss(a,!0),p.transition=`background-color ${d-c}ms var(--ag-internal-accessible-color-transition-mode)`,p.transitionDelay=`${c-e}ms`,t=Math.min(d,t??1/0),s.phase="fade";break;case"fade":h.toggleCss(i,!1),h.toggleCss(a,!1),p.removeProperty("transition"),p.removeProperty("transition-delay"),r.delete(n);break}}}t==null?(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 o=kp(e.cellPosition);t.cells[o]&&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()}};function _I(e,t={}){const{cellFlashSvc:o}=e;o&&e.frameworkOverrides.wrapIncoming(()=>{for(const r of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))o.flashCell(r,t)})}var $C={moduleName:"HighlightChanges",version:R,beans:[UI],userComponents:{agAnimateShowChangeCellRenderer:NI,agAnimateSlideCellRenderer:qI},apiFunctions:{flashCells:_I}};function jI(e,t,o){if(!t)return;const r=e.ctrlsSvc.getGridBodyCtrl().eGridViewport,i=`aria-${t}`;o===null?r.removeAttribute(i):r.setAttribute(i,o)}function KI(e,t={}){e.frameworkOverrides.wrapIncoming(()=>{const{visibleCols:o,rowRenderer:r}=e;if(o.colSpanColCount!==0||o.rowSpanCols.length!==0){const i=r.getRowCtrls(t.rowNodes);for(let a=0,n=i.length;a<n;++a)i[a].refreshSpans()}r.refreshCells(t)})}function YI(e){e.frameworkOverrides.wrapIncoming(()=>{e.ctrlsSvc.getHeaderRowContainerCtrl()?.refresh()})}function QI(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function ZI(e){e.animationFrameSvc?.flushAllFrames()}function JI(e){return{rowHeight:pt(e),headerHeight:si(e)}}function XI(e,t={}){const o=[];for(const a of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const n=a.getCellRenderer();n!=null&&o.push(yt(n))}if(t.columns?.length)return o;const r=[],i=rd(t.rowNodes);for(const a of e.rowRenderer.getAllRowCtrls()){if(i&&!id(a.rowNode,i))continue;const n=a.getModeCellRenderers();if(n!==void 0)for(let s=0,l=n.length;s<l;++s){const c=n[s];c!=null&&r.push(yt(c))}}return r.length===0?o:r.concat(o)}var e0={moduleName:"RenderApi",version:R,apiFunctions:{setGridAriaProperty:jI,refreshCells:KI,refreshHeader:YI,isAnimationFrameQueueEmpty:QI,flushAllAnimationFrames:ZI,getSizesForCurrentTheme:JI,getCellRendererInstances:XI}},$I=class extends x{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.measured=!1,this._debouncedCalculateRowHeights=se(this,this.calculateRowHeights.bind(this),1)}wireBeans(e){this.visibleCols=e.visibleCols}get active(){return this.visibleCols.autoHeightCols.length!==0}requestCheckAutoHeight(){this.measured&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const e=this.visibleCols.autoHeightCols;if(e.length===0){this.releaseRowHeights();return}const{rowModel:t,pinnedRowModel:o}=this.beans;let r=!1;const i=a=>{if(Rt(this.gos,a))return;const n=this.getRowContentHeight(a,e);if(n===void 0)return;a.__autoContentHeight=n;const s=Math.max(n,sa(this.beans,a).height);s!==a.rowHeight&&(a.setRowHeight(s),r=!0)};o?.forEachPinnedRow?.("top",i),o?.forEachPinnedRow?.("bottom",i),t.forEachDisplayedNode?.(i),r&&t.onRowHeightChanged?.()}releaseRowHeights(){this.measured=!1;const{rowModel:e,pinnedRowModel:t}=this.beans;let o=!1;const r=a=>{if(a?.__autoContentHeight===void 0)return;a.__autoContentHeight=void 0;const n=Yt(this.beans,a).height;n!==a.rowHeight&&(a.setRowHeight(n),o=!0)},i=a=>{r(a),r(a.sibling),r(a.pinnedSibling)};t?.forEachPinnedRow?.("top",r),t?.forEachPinnedRow?.("bottom",r),e.forEachDisplayedNode?.(r),e.forEachNode(i),o&&e.onRowHeightChanged?.()}getMeasuredRowHeight(e){const t=this.visibleCols.autoHeightCols;if(t.length===0)return;let o=this.getRowContentHeight(e,t);if(!(o===void 0&&(o=e.__autoContentHeight,o===void 0||Xa(this.beans,e)!=="Normal")))return Math.max(o,sa(this.beans,e).height)}getRowContentHeight(e,t){const o=this.beans;let r=0;for(let i=0,a=t.length;i<a;++i){const n=t[i],s=o0(o,n,e);if(s!==null){if(s===void 0){if(this.visibleCols.colSpanColCount!==0&&t0(o.rowRenderer.getRowCtrlByNode(e),n))continue;return}r=Math.max(s,r)}}return r}setRowAutoHeight(e,t,o){e.__autoHeights??(e.__autoHeights={});const r=e.__autoHeights,i=o.colId,a=r[i];if(t==null){delete r[i],a!==void 0&&this.visibleCols.colSpanColCount!==0&&this.requestCheckAutoHeight();return}r[i]=t,this.measured=!0,a!==t&&this.requestCheckAutoHeight()}setupCellAutoHeight(e,t,o){if(Rt(this.gos,e.rowNode)||!e.column.isAutoHeight()||!t)return!1;const r=t.parentElement,{rowNode:i,column:a}=e,n=this.beans,s=d=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!o.isAlive())return;const g=Qg(r),h=t.offsetHeight+g;if(d<5){const p=!t.isConnected,f=h==0;if(p||f){window.setTimeout(()=>s(d+1),0);return}}this.setRowAutoHeight(i,h,a)},l=()=>s(0);l();const c=Et(n,t,l);return o.addDestroyFunc(()=>{c(),this.setRowAutoHeight(i,void 0,a)}),!0}areRowsMeasured(){if(!this.active)return!0;const e=this.beans,t=e.rowRenderer.getAllRowCtrls();for(let o=0,r=t.length;o<r;++o){const i=t[o];if(!i.spannedRow&&!e8(e,i))return!1}return!0}},e8=(e,t)=>{const{autoHeightCols:o,colSpanColCount:r}=e.visibleCols,i=t.rowNode,a=i.rowHeight;for(let n=0,s=o.length;n<s;++n){const l=o[n];if(l.pinnedLane!==1)continue;const c=o0(e,l,i);if(c===void 0){if(r===0||!t0(t,l))return!1}else if(c!==null&&a<c)return!1}return!0},t0=(e,t)=>{const o=e?.getCellCtrl(t);return o!=null&&o.column!==t},o0=(e,t,o)=>{const r=e.rowSpanSvc?.getCellSpan(t,o);return r?r.getRowAutoHeight(o):o.__autoHeights?.[t.colId]},r0={moduleName:"RowAutoHeight",version:R,beans:[$I]},t8=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?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getRowAutoHeight(e){if(e!==this.lastNode)return null;const t=this.firstNode.__autoHeights?.[this.col.colId];if(t==null)return;let o=0;for(const r of this.spannedNodes)r!==this.lastNode&&(o+=r.rowHeight);return t-o}},o8=class{constructor(e,t){this.beans=e,this.column=t,this.centerValueNodeMap=null,this.topValueNodeMap=null,this.bottomValueNodeMap=null}buildCache(e){const{gos:t,pinnedRowModel:o,rowModel:r,valueSvc:i,pagination:a}=this.beans,n=this.column,s=n.colDef,l=this.getNodeMap(e),c=new Map,d=t.getCallback("isFullWidthRow"),g=s.equals,u=s.spanRows,h=typeof u=="function";let p=null,f=null,m;const w=(C,b)=>{p=C,f=null,m=b},v=C=>{if(Rt(t,C)){w(null,null);return}const b=!C.isExpandable()&&!C.group&&!C.detail&&(d?!d({rowNode:C}):!0);if(C.rowIndex==null||!b){w(null,null);return}if(C.level!==p?.level||C.footer||f&&C.rowIndex-1!==f?.getLastNode().rowIndex){w(C,i.getValueFromData(n,C));return}const S=i.getValueFromData(n,C);if(h){const E=W(t,{valueA:m,nodeA:p,valueB:S,nodeB:C,column:n,colDef:s});if(!u(E)){w(C,S);return}}else if(g?!g(m,S):m!==S){w(C,S);return}if(!f){const E=l?.get(p);E?.firstNode===p?(E.reset(),f=E):f=new t8(n,p),c.set(p,f)}f.addSpannedNode(C),c.set(C,f)};switch(e){case"center":r.forEachDisplayedNode?.(C=>{(!a||a.isRowInPage(C.rowIndex))&&v(C)}),this.centerValueNodeMap=c;break;case"top":o?.forEachPinnedRow("top",v),this.topValueNodeMap=c;break;case"bottom":o?.forEachPinnedRow("bottom",v),this.bottomValueNodeMap=c;break}}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}}},r8=class extends x{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.active=!1,this.spanningColumns=null,this.debouncePinnedEvent=se(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=se(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){if(!this.gos.get("enableCellSpan"))return;this.active=!0;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){let t=this.spanningColumns;if(!t)t=new Map,this.spanningColumns=t;else if(t.has(e))return;const o=new o8(this.beans,e);t.set(e,o),this.buildCache(o)}columnRowSpanChanged(e){if(!this.active)return;const t=this.spanningColumns?.get(e);if(e.colDef.spanRows){if(!t){this.register(e);return}this.buildCache(t)}else t&&this.deregister(e)}refreshCols(){if(this.active){const e=this.beans.colModel.colsList;for(let t=0,o=e.length;t<o;++t){const r=e[t];r.colDef.spanRows&&this.register(r)}}}buildCache(e){e.buildCache("top"),e.buildCache("bottom"),e.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.isAlive()&&this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns?.delete(e)}onRowDataUpdated({node:e}){const t=this.beans.spannedRowRenderer;if(e.rowPinned){this.pinnedTimeout??(this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0));return}this.modelTimeout??(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.clearModelTimeout();const e=this.spanningColumns;if(e)for(const t of e.values())t.buildCache("center");this.debounceModelEvent()}buildPinnedCaches(){this.clearPinnedTimeout();const e=this.spanningColumns;if(e)for(const t of e.values())t.buildCache("top"),t.buildCache("bottom");this.debouncePinnedEvent()}isCellSpanning(e,t){return!!this.spanningColumns?.get(e)?.getCellSpan(t)}getCellSpanByPosition(e){const{column:t,rowIndex:o}=e,r=this.spanningColumns?.get(t);if(!r)return;const{pinnedRowModel:i,rowModel:a}=this.beans;let n;switch(e.rowPinned){case"top":n=i?.getPinnedTopRow(o);break;case"bottom":n=i?.getPinnedBottomRow(o);break;default:n=a.getRow(o)}return n&&r.getCellSpan(n)}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){return this.spanningColumns?.get(e)?.getCellSpan(t)}forEachSpannedColumn(e,t){const o=this.spanningColumns;if(o)for(const r of o.values()){const i=r.getCellSpan(e);i&&t(r.column,i)}}clearModelTimeout(){const e=this.modelTimeout;e!=null&&(this.modelTimeout=null,clearTimeout(e))}clearPinnedTimeout(){const e=this.pinnedTimeout;e!=null&&(this.pinnedTimeout=null,clearTimeout(e))}destroy(){super.destroy(),this.active=!1,this.spanningColumns=null,this.clearPinnedTimeout(),this.clearModelTimeout()}},i8=class extends ur{constructor(e,t,o){super(e.col,e.firstNode,o,t,e),this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell";const r=this.refreshSpan.bind(this);this.addManagedListeners(o.eventSvc,{paginationChanged:r,recalculateRowBounds:r,pinnedHeightChanged:r})}setComp(e,t,o,r,i,a,n){this.eWrapper=o,super.setComp(e,t,o,r,i,a,n),this.refreshSpan()}refreshAriaRowIndex(){const{eGui:e,rowCtrl:t}=this,o=t.getAriaRowIndex();!e||o==null||Ni(e,o)}refreshSpan(){const e=this.eGui;if(!e)return;const t=this.cellSpan;e.style.height=`${t.getCellHeight()}px`,xy(e,t.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(ai(t)){this.focusedCellPosition=void 0;return}const o=this.isCellFocused();o||(this.focusedCellPosition=void 0),e&&o&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},a8=class extends Ja{constructor(){super(...arguments),this.spannedRow=!0}getInitialRowClasses(){const{rowNode:e,beans:t}=this,o=["ag-spanned-row",this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"];return e.isRowPinned()?(o.push("ag-row-pinned"),t.pinnedRowModel?.isManual()&&o.push("ag-row-pinned-manual")):e.pinnedSibling&&o.push("ag-row-pinned-source"),o}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new i8(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.cellSpan===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},n8=class extends x{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,o=this.getCtrlsMap(e),r=this.getAllRelevantRowControls(e),i=new Map;let a=!1;try{for(const s of r)s.isAlive()&&t?.forEachSpannedColumn(s.rowNode,(l,c)=>{if(i.has(c.firstNode))return;const d=o.get(c.firstNode);if(d){i.set(c.firstNode,d);return}a=!0;const g=new a8(c.firstNode,this.beans,!1,!1,!1);i.set(c.firstNode,g)})}catch(s){throw i0(i,o),s}this.setCtrlsMap(e,i);const n=i.size===o.size;!a&&n||(i0(o,i),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,o=t?.getCellSpanByPosition(e);if(!o)return;const r=this.getCtrlsMap(e.rowPinned).get(o.firstNode);if(r)return r.getOwnCellCtrl(o.col)}refreshRowsOf(e){this.topCtrls.get(e)?.refreshRow(),this.bottomCtrls.get(e)?.refreshRow(),this.centerCtrls.get(e)?.refreshRow()}getCtrls(e){return[...this.getCtrlsMap(e).values()]}pushAllCtrls(e){for(const t of this.topCtrls.values())e.push(t);for(const t of this.bottomCtrls.values())e.push(t);for(const t of this.centerCtrls.values())e.push(t)}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;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}};function i0(e,t){for(const o of e.values())t.get(o.rowNode)!==o&&(o.destroyFirstPass(!0),o.destroySecondPass())}var a0={moduleName:"CellSpan",version:R,beans:[r8,n8]},n0=class extends x{constructor(){super(...arguments),this.column=null}destroy(){this.destroyColumn(),super.destroy()}refreshCols(){const e=this.isEnabled(),t=this.column;if(e&&!t){const o=this.createColDef(),r=o.colId;this.gos.validateColDef(o,r,!0);const i=new ko(o,null,r,!1,this.colKind);return this.beans.context.createBean(i),this.column=i,i}return!e&&t?(this.destroyColumn(),null):t}refreshColDef(e){const t=this.column;if(!t)return;const o=this.beans,r=o.colModel;r.beginColUpdate();try{const i=t.colDef.width,a=this.createColDef();if(!t.setColDef(a,null,e))return;const n=Vh(o,a,t.colId),s=n.flex;s!=null&&s<=0&&(n.flex=null);const l=n.width;((s===void 0?t.flex:s)??0)>0?n.width=void 0:l==null||this.keepsColDefWidth(t,l,i)?n.width=Math.max(t.actualWidth,t.minWidth):(n.width=Math.max(l,t.minWidth),t.resetWidthOwnership()),Pt(o,{state:[n]},e,!0)}finally{r.endColUpdate()}}keepsColDefWidth(e,t,o){return!1}destroyColumn(){const e=this.column;e&&(this.column=null,e.isAlive()&&e.destroy())}},s8=class extends n0{constructor(){super(...arguments),this.beanName="selectionColSvc",this.colKind="selection"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,Fo(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}updateColumns(e){this.refreshColDef(Fo(e.source))}isEnabled(){const{gos:e,beans:t}=this,o=e.get("rowSelection");if(typeof o!="object"||!Ft(e)||o.checkboxLocation==="autoGroupColumn"&&t.autoColSvc?.columns.length)return!1;const r=!!xo(o),i=Br(o);return r||i}createColDef(){const{gos:e}=this,t=e.get("selectionColumnDef"),o=e.get("enableRtl"),{rowSpan:r,spanRows:i,...a}=t??{};return{initialWidth:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:o?"right":"left",comparator:l8,editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,...a,colId:ha,chartDataType:"excluded"}}onSelectionOptionsChanged(e,t,o){const r=t&&typeof t!="string"?xo(t):void 0,i=e&&typeof e!="string"?xo(e):void 0,a=r!==i,n=t&&typeof t!="string"?Br(t):void 0,s=e&&typeof e!="string"?Br(e):void 0,l=n!==s,c=Hr(e),d=Hr(t);(a||l||c!==d)&&this.beans.colModel.refreshAll(o)}},l8=(e,t,o,r)=>{const i=o.isSelected(),a=r.isSelected();return i===a?0:i?1:-1},c8=':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper:where(:not(.ag-disabled)){cursor:pointer}:where(.ag-selection-checkbox) .ag-checkbox-input-wrapper:before{content:"";inset:-8px;position:absolute}';function d8(e,t){const o=t.nodes.filter(n=>!!n);if(!o.length||!o.every(n=>n.rowPinned&&!Za(n)?(e.log.warn(59),!1):n.id===void 0?(e.log.warn(60),!1):!0))return;const{source:i,newValue:a}=t;e.selectionSvc?.setNodesSelected({nodes:o,source:i??"api",newValue:a})}function g8(e,t,o="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:o,selectAll:t})}function u8(e,t,o="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:o,selectAll:t})}function h8(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function p8(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function f8(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function m8(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function v8(e){return e.selectionSvc?.getSelectedNodes()??[]}function w8(e){return e.selectionSvc?.getSelectedRows()??[]}var s0=(e,t)=>{for(let o=0,r=e.length;o<r;++o){const i=e[o],a=i.childrenAfterGroup;a!==null&&(s0(a,t),t(i))}},Pn=(e,t,o,r)=>{if(o!=null){const a=o.getSortedRows();for(let n=0,s=a.length;n<s;++n){const l=a[n];l.childrenAfterGroup!==null&&!l.destroyed&&r(l)}return}if(e==null)return;const i=e.childrenAfterGroup;i!==null&&(t&&s0(i,r),r(e))},b8={clickToggleSelection:!0,spaceKeyFollowsClickSelection:!0,grandTotalRowUnselectable:!0};function Tn(e,t){const o=e.internalFeatureFlags?.flags[t];return o!==void 0?o:!!e.studio&&b8[t]}var C8={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},y8=class extends X{constructor(){super(C8,[qa]),this.eCheckbox=k}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:o}=this,r=t.isSelected(),i=Gi(e,r),[a,n]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],s=e(a,n);o.setValue(r,!0),o.setInputAriaLabel(`${s} (${i})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:to,click:a=>{to(a),!this.eCheckbox.isDisabled()&&this.beans.selectionSvc?.handleSelectionEvent(a,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:a,previousValue:n})=>{const s=typeof a=="object"?Os(a):void 0,l=typeof n=="object"?Os(n):void 0;s!==l&&this.onSelectableChanged()}),la(this.gos)??typeof this.getIsVisible()=="function"){const a=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:a}),this.addManagedListeners(this.rowNode,{dataChanged:a,cellChanged:a}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1");const{rowNode:r,beans:i}=this;i.selectionSvc?.registerCheckbox(r,this),this.addDestroyFunc(()=>i.selectionSvc?.unregisterCheckbox(r,this))}isEnabledIn(e){return this.column===e&&this.isDisplayed()&&!this.eCheckbox.isDisabled()}showOrHideSelect(){const{column:e,rowNode:t,overrides:o,gos:r}=this,i=t.selectable,a=this.getIsVisible();let n;if(typeof a=="function"){const g=o?.callbackParams;if(!e)n=a({...g,node:t,data:t.data});else{const u=e.createColumnFunctionCallbackParams(t);n=a({...g,...u})}}else n=a??!1;const s=i&&!n||!i&&n,l=i||n,c=r.get("rowSelection"),d=c&&typeof c!="string"?!Os(c):!!e?.colDef.showDisabledCheckboxes;this.setVisible(l&&(s?d:!0)),this.setDisplayed(l&&(s?d:!0)),l&&this.eCheckbox.setDisabled(s),o?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?xo(t):this.column?.colDef?.checkboxSelection}},S8=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null}reset(){this.rootId=null,this.endId=null}setRoot(e){this.rootId=e.id,this.endId=null}setEndRange(e){this.endId=e.id}getRange(){const e=this.getRoot(),t=this.getEnd();return e==null||t==null?[]:this.getNodesInRange(e,t)??[]}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(e){if(this.rootId)return this.getRowNode(this.rootId);if(e)return this.setRoot(e),e}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:o,pinnedRowModel:r}=this;return t??(t=o.getRowNode(e)),r?.isManual()&&(t??(t=r.getPinnedRowById(e,"top")),t??(t=r.getPinnedRowById(e,"bottom"))),t}isRangeStartTheRoot(e){const{rootId:t}=this;return t===null?!1:e.id===t?!0:Cl(this.getRowNode(t))?.id===e.id}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const o=this.isRangeStartTheRoot(t[0]),r=t.findIndex(i=>i.id===e.id);if(r>-1){const i=t.slice(0,r),a=t.slice(r+1);return this.setEndRange(e),o?{keep:i,discard:a}:{keep:a,discard:i}}else return{keep:t,discard:[]}}extend(e,t=!1){const o=this.getRoot();if(o==null){const i=this.getRange().slice();return t&&e.depthFirstSearch(a=>!a.group&&i.push(a)),i.push(e),this.setRoot(e),{keep:i,discard:[]}}const r=this.getNodesInRange(o,e);if(!r)return this.setRoot(e),{keep:[e],discard:[]};if(r.some(i=>i.id===this.endId))return this.setEndRange(e),{keep:r,discard:[]};{const i=this.getRange().slice();return this.setEndRange(e),{keep:r,discard:i}}}getNodesInRange(e,t){const{pinnedRowModel:o,rowModel:r}=this;if(!o?.isManual())return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned){const i=Xe(o,"top",e,void 0),a=r.getNodesInRangeForSelection(r.getRow(0),t);return a===null?null:i.concat(a)}if(e.rowPinned==="bottom"&&!t.rowPinned){const i=Xe(o,"bottom",void 0,e),a=r.getRowCount(),n=r.getRow(a-1),s=r.getNodesInRangeForSelection(t,n);return s===null?null:s.concat(i)}if(!e.rowPinned&&!t.rowPinned)return r.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return Xe(o,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const i=Xe(o,"top",t,void 0),a=Xe(o,"bottom",void 0,e),n=r.getRow(0),s=r.getRow(r.getRowCount()-1),l=r.getNodesInRangeForSelection(n,s);return l===null?null:i.concat(l).concat(a)}if(!e.rowPinned&&t.rowPinned==="top"){const i=Xe(o,"top",t,void 0),a=r.getNodesInRangeForSelection(r.getRow(0),e);return a===null?null:i.concat(a)}if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const i=Xe(o,"top",e,void 0),a=Xe(o,"bottom",void 0,t),n=r.getRow(0),s=r.getRow(r.getRowCount()-1),l=r.getNodesInRangeForSelection(n,s);return l===null?null:i.concat(l).concat(a)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return Xe(o,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const i=Xe(o,"bottom",void 0,t),a=r.getRow(r.getRowCount()-1),n=r.getNodesInRangeForSelection(e,a);return n===null?null:n.concat(i)}return null}},x8=class extends x{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(Z(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new wi);this.cbSelectAll=t,t.addCss("ag-header-select-all"),xt(t.getGui(),"presentation"),this.showOrHideSelectAll();const o=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:o,paginationChanged:o,modelUpdated:o}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:i})=>{const a=n=>typeof n=="string"||!n||n.mode==="singleRow"?void 0:n.selectAll;a(r)!==a(i)&&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(e.source==="uiColumnMoved")}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,o=this.cbSelectAll,r=t.getSelectAllState(e);o.setValue(r);const i=t.hasNodesToSelect(e);o.setDisabled(!i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:o,cbSelectAll:r,cbSelectAllVisible:i}=this,a=r.getValue(),n=Gi(t,a),s=t("ariaRowSelectAll","Press Space to toggle all rows selection");o.setAriaDescriptionProperty("selectAll",i?`${s} (${n})`:null),r.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||o.announceAriaDescription()}checkSelectionType(e){return or(this.gos)?!0:(this.warn(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:o}=this.beans;return ve(t)||Kt(t)?!0:(this.warn(129,{feature:e,rowModel:o.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let o="uiSelectAll";t==="currentPage"?o="uiSelectAllCurrentPage":t==="filtered"&&(o="uiSelectAllFiltered");const r={source:o,selectAll:t},i=this.beans.selectionSvc;e?i.selectAllRowNodes(r):i.deselectAllRowNodes(r)}isCheckboxSelection(){const{column:e,gos:t,beans:o}=this,a=typeof t.get("rowSelection")=="object"?"headerCheckbox":"headerCheckboxSelection";return l0(o,e)&&this.checkRightRowModelType(a)&&this.checkSelectionType(a)}getSelectAllMode(){const e=oh(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:o}=this.column.colDef;return t?"currentPage":o?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function l0({gos:e,selectionColSvc:t},o){const r=e.get("rowSelection"),i=o.colDef,{headerCheckboxSelection:a}=i;let n=!1;if(typeof r=="object"){const l=$r(o),c=gl(o);(Hr(r)==="autoGroupColumn"&&c||l&&t?.isEnabled())&&(n=Br(r))}else typeof a=="function"?n=a(W(e,{column:o,colDef:i})):n=!!a;return n}var c0=class extends x{constructor(){super(...arguments),this.checkboxes=new Map}postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new S8(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const r=la(e);r!==this.isRowSelectable&&(this.isRowSelectable=r,this.updateSelectable())}),this.isRowSelectable=la(e);const o=t.rowModel;this.addManagedEventListeners({cellValueChanged:r=>this.updateRowSelectable(r.node),rowNodeDataChanged:r=>{o.refreshingData||this.updateRowSelectable(r.node)}})}destroy(){super.destroy(),this.selectionCtx.reset(),this.checkboxes.clear()}createCheckboxSelectionComponent(){return new y8}registerCheckbox(e,t){if(!Tn(this.beans,"spaceKeyFollowsClickSelection"))return;const o=this.checkboxes;let r=o.get(e);r||(r=new Set,o.set(e,r)),r.add(t)}unregisterCheckbox(e,t){const o=this.checkboxes.get(e);o?.delete(t)&&o.size===0&&this.checkboxes.delete(e)}createSelectAllFeature(e){if(l0(this.beans,e))return new x8(e)}isMultiSelect(){return or(this.gos)}onRowCtrlSelected(e,t){const o=e.getGui();if(!o)return;const r=!!e.rowNode.isSelected();o.rowComp.toggleCss("ag-row-selected",r);const i=o.element;Ug(i,r),i.contains(Z(this.beans))&&t()}announceAriaRowSelection(e,t){if(this.isRowSelectionBlocked(e))return;const{beans:o}=this,r=e.isSelected(),i=o.editSvc?.isEditing({rowNode:e});if(!e.selectable||i||this.isSpaceKeyBlocked(e,t,!r))return;const n=this.getLocaleTextFunc()(r?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${r?"deselect":"select"} this row`);o.ariaAnnounce?.announceValue(n,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!Za(e)||!Ft(this.gos)||!!e.footer&&e.level===-1&&Tn(this.beans,"grandTotalRowUnselectable")}updateRowSelectable(e,t){const o=e.pinnedSibling,r=e.rowPinned&&o?o.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,r,t),r}setRowSelectable(e,t,o){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),o)return;if(rr(this.gos)){const i=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:i??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,o=!1;const r=e.childrenAfterGroup;if(!r?.length)return e.selectable?e.__selected:null;for(let i=0,a=r.length;i<a;i++){const n=r[i];let s=n.isSelected();if(!n.selectable){const l=this.calculateSelectedFromChildren(n);if(l===null)continue;s=l}switch(s){case!0:t=!0;break;case!1:o=!0;break;default:return}}if(!(t&&o))return t?!0:o?!1:e.selectable?e.__selected:null}selectRowNode(e,t,o,r="api"){if(t&&e.destroyed)return!1;const i=!e.selectable&&t,a=e.__selected===t;if(i||a)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const n=e.sibling;n&&n.footer&&n.__localEventService&&n.dispatchRowEvent("rowSelected");const s=e.pinnedSibling;return s?.rowPinned&&s.__localEventService&&s.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...bl(e,this.gos,"rowSelected"),event:o??null,source:r}),!0}isCellCheckboxSelection(e,t){const o=this.gos.get("rowSelection");if(o&&typeof o!="string"){const r=$r(e)&&xo(o);return e.isColumnFunc(t,r)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,o,r,i){const{gos:a,selectionCtx:n}=this,s=e.isSelected(),l=rr(a),c=eh(a),d=th(a),g=Tn(this.beans,"clickToggleSelection"),u=this.isMultiSelect(),h=r==="rowClicked",p=h||this.isSpaceKeyClickGated(r,e,i);if(p&&!(c||d))return null;const f=m=>p&&(m?!c:!d);if(t&&o&&u){const m=n.getRoot();if(m)if(m.isSelected()){const w=n.isInRange(e)?n.truncate(e):n.extend(e,l);return{deselect:w.discard,select:w.keep,reset:!1}}else{const w=n.extend(e,l);return{select:[],deselect:w.keep,reset:!1}}else return null}else if(t&&u){const m=n.selectAll?this.beans.rowModel.getRow(0):void 0,w=n.getRoot(m),v=n.isInRange(e)?n.truncate(e):n.extend(e,l);return{select:v.keep,deselect:v.discard,reset:n.selectAll||!!(w&&!w.isSelected())}}else if(o){const m=!s;return f(m)?null:(n.setRoot(e),{node:e,newValue:m,clearSelection:!h&&!u})}else{n.setRoot(e);const m=xS(a),w=Gr(a)==="filteredDescendants",v=h&&(!m||!c);if(w&&s===void 0&&ve(a))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!u||v};if(h){const b=s?!(m||g&&this.isSoleSelection(e.primaryRow)):c;return b===s&&!v||f(b)?null:{node:e,newValue:b,clearSelection:!u||v,keepDescendants:e.group&&l}}const C=!s;return f(C)?null:{node:e,newValue:C,clearSelection:!u||v}}}isSpaceKeyBlocked(e,t,o){const{gos:r}=this;return this.isSpaceKeyClickGated("spaceKey",e,t)&&(o?!eh(r):!th(r))}isSpaceKeyClickGated(e,t,o){return e==="spaceKey"&&Tn(this.beans,"spaceKeyFollowsClickSelection")&&!this.isSelectionCheckboxShown(t,o)}isSelectionCheckboxShown(e,t){for(const o of this.checkboxes.get(e)??[])if(o.isEnabledIn(t))return!0;return!1}},k8=class extends c0{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1,this.selectionBatchDepth=0,this.pendingSelectionChanged=!1,this.pendingSelectionSource=null}postConstruct(){super.postConstruct();const{gos:e}=this;this.csrm=st(this.beans),this.mode=Nr(e),this.groupSelectsDescendants=rr(e),this.groupSelectsFiltered=Gr(e)==="filteredDescendants",this.masterSelectsDetail=rh(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=rr(e),o=Nr(e),r=Gr(e)==="filteredDescendants";this.masterSelectsDetail=rh(e)==="detail",(t!==this.groupSelectsDescendants||r!==this.groupSelectsFiltered||o!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=r,this.mode=o)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,o,r){if(this.isRowSelectionBlocked(t))return 0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,o,r);if(i==null)return 0;if(this.selectionCtx.selectAll=!1,"select"in i)return i.reset?this.resetNodes(e):this.selectRange(i.deselect,!1,o,e),this.selectRange(i.select,!0,o,e);{const a=i.checkFilteredNodes?u0(i.node):i.newValue;return this.setNodesSelected({nodes:[i.node],newValue:a,clearSelection:i.clearSelection,keepDescendants:i.keepDescendants,event:e,source:o})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:o,nodes:r,event:i,source:a,keepDescendants:n=!1}){const s=r.length;if(s===0)return 0;const{gos:l}=this;if(!Ft(l)&&e)return this.warn(132),0;const c=this.isMultiSelect();if(s>1&&!c)return this.warn(130),0;let d=0;for(let g=0;g<s;g++){const h=r[g].primaryRow;if(h.rowPinned&&!Za(h)){this.warn(59);continue}if(h.id===void 0){this.warn(60);continue}if(e&&h.destroyed)continue;this.groupSelectsFiltered&&h.group&&!l.get("treeData")||this.selectRowNode(h,e,i,a)&&(this.detailSelection.delete(h.id),d++),this.groupSelectsDescendants&&h.childrenAfterGroup?.length&&(d+=this.selectChildren(h,e,a,i))}return o||(s===1&&a==="api"&&this.selectionCtx.setRoot(r[0].primaryRow),e&&(t||!c)&&(d+=this.clearOtherNodes(r[0].primaryRow,n,a)),d>0&&(this.updateGroupsFromChildrenSelections(a,void 0,i),this.dispatchSelectionChanged(a))),d}selectRange(e,t,o,r){let i=0;for(let a=0,n=e.length;a<n;++a){const s=e[a].primaryRow;s.group&&this.groupSelectsDescendants||this.selectRowNode(s,t,r,o)&&i++}return i>0&&(this.updateGroupsFromChildrenSelections(o,void 0,r),this.dispatchSelectionChanged(o)),i}selectChildren(e,t,o,r){const i=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return i?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:o,event:r,nodes:i}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];for(const t of this.selectedNodes.values()){const o=t.data;o!=null&&e.push(o)}return e}getSelectionCount(){return this.selectedNodes.size}isSoleSelection(e){const{selectedNodes:t}=this;if(e.isSelected()!==!0)return!1;if(!this.groupSelectsDescendants)return t.size===1&&t.get(e.id)===e;for(const o of t.values())if(o!==e&&!g0(e,o))return!1;return!0}removeFromSelection(e,t){const o=e.id,r=this.selectedNodes;e.__selected&&r.get(o)===e&&(r.delete(o),this.detailSelection.delete(o),e.__selected=!1,this.pendingSelectionChanged=!0,this.pendingSelectionSource??(this.pendingSelectionSource=t))}updateGroupsFromChildrenSelections(e,t,o){return this.rollUpGroupSelection(e,t,o,!1)}rollUpGroupSelection(e,t,o,r){if(!this.groupSelectsDescendants)return!1;const i=this.csrm;if(!i)return!1;const a=i.rootNode;if(!a)return!1;let n=!1;const s=this.selectedNodes,l=r&&this.gos.get("treeData"),c=this.detailSelection,d=g=>{if(l){const u=g.childrenAfterGroup;for(let h=0,p=u.length;h<p;++h){const f=u[h],m=f.__selected;m!==!1&&!f.group&&!(m===void 0&&c.has(f.id))&&s.get(f.id)!==f&&(n=this.selectRowNode(f,!1,o,e)||n)}}if(g!==a){const u=g.id;r&&s.get(u)===g&&(s.delete(u),n=!0);const h=this.calculateSelectedFromChildren(g);n=this.selectRowNode(g,h===null?!1:h,o,e)||n}};return Pn(a,i.hierarchical,t,d),n}clearOtherNodes(e,t,o){const r=new Map;let i=0;for(const a of this.selectedNodes.values()){const n=a.id==e.id;(!t||!g0(e,a))&&!n&&(i+=this.setNodesSelected({nodes:[a],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:o}),this.groupSelectsDescendants&&a.parent&&r.set(a.parent.id,a.parent))}for(const a of r.values()){const n=this.calculateSelectedFromChildren(a);this.selectRowNode(a,n===null?!1:n,void 0,o)}return i}selectRowNode(e,t,o,r="api"){const i=super.selectRowNode(e,t,o,r);if(i&&!(this.groupSelectsDescendants&&e.group)){const a=this.selectedNodes;e.isSelected()?a.set(e.id,e):a.delete(e.id)}return i}syncInRowNode(e,t){const o=this.selectedNodes,r=t?.id;r!=null&&r!==e.id&&o.get(r)===e&&o.set(r,t);const i=e.id,a=o.has(i);e.__selected=a,a&&o.set(i,e)}createDaemonNode(e){if(!e.id)return;const t=new vt(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}reset(e){this.selectedNodes.size&&(this.resetNodes(),this.dispatchSelectionChanged(e))}resetNodes(e){const t=this.selectedNodes;for(const o of t.values())this.selectRowNode(o,!1,e);t.clear()}getBestCostNodeSelection(){const e=this.csrm;if(!e)return;const t=e.getTopLevelNodes();if(t===null)return;const o=[];function r(i){for(let a=0,n=i.length;a<n;a++){const s=i[a];s.isSelected()?o.push(s):s.group&&s.childrenAfterGroup&&r(s.childrenAfterGroup)}}return r(t),o}isEmpty(){return this.selectedNodes.size===0}deselectAllRowNodes({source:e,selectAll:t}){const o=this.csrm;let r=!1;const i=a=>{this.selectRowNode(a.primaryRow,!1,void 0,e)&&(r=!0)};if(t==="currentPage"||t==="filtered"){if(!o){this.error(102);return}const a=this.getNodesToSelect(t);for(let n=0,s=a.length;n<s;++n)i(a[n])}else this.selectedNodes.forEach(i),this.selectedNodes.clear();if(this.selectionCtx.selectAll=!1,o&&this.groupSelectsDescendants){const a=this.updateGroupsFromChildrenSelections(e);r||(r=a)}r&&this.dispatchSelectionChanged(e)}getSelectAllState(e){let t=0,o=0;const r=this.getNodesToSelect(e);for(let i=0,a=r.length;i<a;++i){const n=r[i];this.groupSelectsDescendants&&n.group||(n.isSelected()?t++:n.selectable&&o++)}return d0(t,o)??null}hasNodesToSelect(e){const t=this.getNodesToSelect(e);for(let o=0,r=t.length;o<r;++o)if(t[o].selectable)return!0;return!1}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],o=i=>t.push(i);if(e==="currentPage")return this.forEachNodeOnPage(i=>{if(!i.group){o(i);return}if(!i.footer&&!i.expanded){const a=n=>{o(n);const s=n.childrenAfterFilter;if(s)for(let l=0,c=s.length;l<c;++l)a(s[l])};a(i);return}this.groupSelectsDescendants||o(i)}),t;const r=this.beans.rowModel;return e==="filtered"?(r.forEachNodeAfterFilter(o),t):(r.forEachNode(o),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:o}=this.beans,r=t.getFirstRow(),i=t.getLastRow();for(let a=r;a<=i;a++){const n=o.getRow(a);n&&e(n)}}selectAllRowNodes(e){const{gos:t,selectionCtx:o}=this;if(!Ft(t)){this.warn(132);return}if(Xu(t)&&!or(t)){this.warn(130);return}if(!this.canSelectAll())return;const{source:r,selectAll:i}=e;let a=!1;const n=this.getNodesToSelect(i);for(let s=0,l=n.length;s<l;++s)a=this.selectRowNode(n[s].primaryRow,!0,void 0,r)||a;if(o.selectAll=!0,this.csrm&&this.groupSelectsDescendants){const s=this.updateGroupsFromChildrenSelections(r);a||(a=s)}a&&this.dispatchSelectionChanged(r)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,o){if(e??(e=[]),!Array.isArray(e)){this.error(103);return}const r=[],i=this.csrm,a=new Set(e);if(i)for(const n of a){const s=i.getRowNode(n);s&&r.push(s)}else this.beans.rowModel.forEachNode(n=>{a.has(n.id)&&r.push(n)});o&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:r,source:t})}canSelectAll(){return!!this.csrm}recomputeSelectable(e){const t=this.updateRowSelectable(e,!0);return!t&&e.isSelected()&&this.selectRowNode(e,!1,void 0,"selectableChanged")&&(this.detailSelection.delete(e.id),this.dispatchSelectionChanged("selectableChanged")),t}updateSelectable(e,t){const{gos:o,rowModel:r}=this.beans;if(!Ft(o))return;const i=this.csrm,a=!!i&&this.groupSelectsDescendants,n=i?i.rootNode:null,s=t?.adds,l=t?.updates;++this.selectionBatchDepth;try{if(!i)r.forEachNode(c=>this.recomputeSelectable(c));else if(a)Pn(n,r.hierarchical,e,c=>{let d=!1;const g=c.childrenAfterGroup;for(let u=0,h=g.length;u<h;++u){const p=g[u],f=!p.group&&(!s||s.has(p)||l.has(p))?this.recomputeSelectable(p):p.selectable;d||(d=f)}this.setRowSelectable(c,d,!0)});else if(e||!s)Pn(n,r.hierarchical,e,c=>{c!==n&&this.recomputeSelectable(c);const d=c.childrenAfterGroup;for(let g=0,u=d.length;g<u;++g){const h=d[g];!h.group&&(!s||s.has(h)||l.has(h))&&this.recomputeSelectable(h)}});else{for(const c of s)this.recomputeSelectable(c);for(const c of l)this.recomputeSelectable(c)}!e&&a&&this.updateGroupsFromChildrenSelections?.("selectableChanged")}finally{this.endSelectionBatch()}}updateSelectableAfterGrouping(e,t){++this.selectionBatchDepth;try{this.isRowSelectable&&this.updateSelectable(e,t),this.groupSelectsDescendants&&this.rollUpGroupSelection("rowGroupChanged",e,void 0,!0)&&this.dispatchSelectionChanged("rowGroupChanged")}finally{this.endSelectionBatch()}}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail||!e.expanded)return;const o=e.detailNode?.detailGridInfo?.api;if(!o)return;const r=o.getDisplayedRowCount();if(r===0&&e.isSelected()===void 0)return;const i=E8(o);e.isSelected()!==i&&this.selectRowNode(e,i,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),!i&&r>0&&this.detailSelection.set(e.id,new Set(o.getSelectedNodes().map(n=>n.id)))}setDetailSelectionState(e,t,o){if(!this.masterSelectsDetail)return;if(!or(t)){this.warn(269);return}const r=this.detailSelection.get(e.id),i=()=>{if(!r?.size)return!1;const a=[];for(const n of r){const s=o.getRowNode(n);s&&a.push(s)}return a.length?(o.setNodesSelected({nodes:a,newValue:!0,source:"masterDetail"}),!0):!1};switch(e.isSelected()){case!0:{o.selectAll();break}case!1:{o.deselectAll();break}case void 0:{i();break}default:break}}dispatchSelectionChanged(e){if(this.selectionBatchDepth>0){this.pendingSelectionChanged=!0,this.pendingSelectionSource??(this.pendingSelectionSource=e);return}this.pendingSelectionChanged=!1,this.pendingSelectionSource=null,this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}flushPendingSelectionChanged(){this.selectionBatchDepth===0&&this.pendingSelectionChanged&&this.dispatchSelectionChanged(this.pendingSelectionSource)}endSelectionBatch(){--this.selectionBatchDepth===0&&this.flushPendingSelectionChanged()}};function E8(e){let t=0,o=0;return e.forEachNode(r=>{r.isSelected()?++t:r.selectable&&++o}),d0(t,o)}function d0(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function g0(e,t){let o=t.parent;for(;o;){if(o===e)return!0;o=o.parent}return!1}function u0(e){if(e.isSelected()===!1)return!0;const t=e.childrenAfterFilter;if(t){for(let o=0,r=t.length;o<r;++o)if(u0(t[o]))return!0}return!1}var h0={moduleName:"SharedRowSelection",version:R,beans:[s8],css:[c8],apiFunctions:{setNodesSelected:d8,selectAll:g8,deselectAll:u8,selectAllFiltered:h8,deselectAllFiltered:p8,selectAllOnCurrentPage:f8,deselectAllOnCurrentPage:m8,getSelectedNodes:v8,getSelectedRows:w8}},p0={moduleName:"RowSelection",version:R,rowModels:["clientSide","infinite","viewport"],beans:[k8],dependsOn:[h0]};function R8(e,t){m0(e,t),f0(e,t),v0(e,t)}function f0(e,t){const{column:o,comp:r}=t,i=o.colDef,a=i.cellClassRules,n=wg(e,t,i);$c(e.expressionSvc,a===t.customStyleClassRules?void 0:t.customStyleClassRules,a,n,s=>r.toggleCss(s,!0),s=>r.toggleCss(s,!1)),t.customStyleClassRules=a}function m0(e,t){const o=t.column.colDef,r=o.cellStyle;if(!r)return;let i;typeof r=="function"?i=r(wg(e,t,o)):i=r,i&&t.comp.setUserStyles(i)}function v0(e,t){const{column:o,comp:r}=t,i=o.colDef,a=wg(e,t,i),n=t.customStyleStaticClasses;if(n)for(const l of n)r.toggleCss(l,!1);const s=e.cellStyles.getStaticCellClasses(i,a);t.customStyleStaticClasses=s;for(const l of s)r.toggleCss(l,!0)}function wg(e,t,o){const{value:r,rowNode:i,column:a}=t;return W(e.gos,{value:r,data:i.data,node:i,colDef:o,column:a,rowIndex:i.rowIndex})}var F8=class extends x{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,o,r){$c(this.beans.expressionSvc,void 0,e.cellClassRules,t,o,r),this.processStaticCellClasses(e,t,o)}getStaticCellClasses(e,t){const{cellClass:o}=e;if(!o)return[];let r;return typeof o=="function"?r=o(t):r=o,typeof r=="string"&&(r=[r]),Array.isArray(r)?r:[]}setupCellCustomStyle(e){R8(this.beans,e)}applyCellUserStyles(e){m0(this.beans,e)}applyCellClassesFromColDef(e){v0(this.beans,e)}applyCellClassRules(e){f0(this.beans,e)}processStaticCellClasses(e,t,o){this.getStaticCellClasses(e,t).forEach(i=>{o(i)})}},w0={moduleName:"CellStyle",version:R,beans:[F8]},b0={moduleName:"RowStyle",version:R,beans:[j4]},C0={moduleName:"AllCommunity",version:R,dependsOn:[xc,Fw,WC,xb,kb,Eb,Rb,Fb,Mb,Db,Sb,OC,VC,BC,HC,LC,NC,GC,QC,dw,mg,JC,Oc,pw,fw,e0,Cw,Cm,XC,p0,Jv,w0,yw,b0,qC,Xv,$C,fd,_C,r0,bm,fm,a0,ww]},M8=["deprecation","warning","error"],Oi={throwOn:[],showOverlayOn:[...M8],suppress:[],debug:!1},y0=Oi.showOverlayOn;function S0(){return y0}function D8(e){qf({capture:!0,throwOn:e?.throwOn??Oi.throwOn,suppress:e?.suppress??Oi.suppress,debug:e?.debug??Oi.debug}),y0=e?.showOverlayOn??Oi.showOverlayOn}function P8(){qf({capture:!0})}var x0={AdvancedFilter:1,AiToolkit:1,AllEnterprise:1,BatchEdit:1,CalculatedColumns:1,CellSelection:1,Clipboard:1,ColumnHeaderEdit: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,PdfExport:1,Pivot:1,RangeSelection:1,RichSelect:1,RowNumbers:1,RowGrouping:1,RowGroupingEdit:1,RowGroupingPanel:1,ServerSideRowModelApi:1,ServerSideRowModel:1,SetFilter:1,ShowValuesAs:1,SideBar:1,Sparklines:1,StatusBar:1,Toolbar:1,TreeData:1,ViewportRowModel:1,Formula:1,Notes:1},bg=["TextFilter","NumberFilter","BigIntFilter","DateFilter","SetFilter","MultiFilter","GroupFilter","CustomFilter"],T8={EditCore:["TextEditor","NumberEditor","DateEditor","CheckboxEditor","LargeTextEditor","SelectEditor","RichSelect","CustomEditor"],CheckboxCellRenderer:["AllCommunity"],CsrmHierarchy:["RowGrouping","Pivot","TreeData"],CsrmGroupStages:["RowGrouping","Pivot","TreeData"],ColumnFilter:bg,ColumnGroupHeaderComp:["AllCommunity"],ColumnGroup:["AllCommunity"],ColumnHeaderComp:["AllCommunity"],ColumnMove:["AllCommunity"],ColumnResize:["AllCommunity"],CommunityCore:["AllCommunity"],CsrmSsrmSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],RowModelSharedApi:["ClientSideRowModelApi","ServerSideRowModelApi"],EnterpriseCore:["AllEnterprise"],FilterCore:[...bg,"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:[...bg,"ColumnMenu","ContextMenu"],SharedPivot:["Pivot","ServerSideRowModel"],SharedRowGrouping:["RowGrouping","ServerSideRowModel"],SharedRowSelection:["RowSelection","ServerSideRowModel"],SkeletonCellRenderer:["ServerSideRowModel"],Sort:["AllCommunity"],SsrmInfiniteSharedApi:["InfiniteRowModel","ServerSideRowModelApi"],SharedTreeData:["TreeData","ServerSideRowModel"]},A8={InfiniteRowModel:"infinite",ClientSideRowModelApi:"clientSide",ClientSideRowModel:"clientSide",ServerSideRowModelApi:"serverSide",ServerSideRowModel:"serverSide",ViewportRowModel:"viewport"};function I8(e,t){const o=[];for(const r of Array.isArray(e)?e:[e]){const i=T8[r];if(i)for(const a of i){const n=A8[a];(!n||n===t)&&o.push(a)}else o.push(r)}return o}var z8=(e,t,o)=>{const r=Object.entries(e.reduce((i,{name:a,source:n})=>({...i,[n]:(i[n]||[]).concat(a)}),{})).map(([i,a])=>`import { ${a.join(", ")} } from '${i}';`);return o?`${["import { AgGridProvider, AgGridReact } from 'ag-grid-react';",...r].join(` 
`)}

const modules = [ ${t} ];

function App() {
    return (
        <AgGridProvider modules={modules}>
            <AgGridReact /* ... props */ />
        </AgGridProvider>
    );
}`:`${r.join(` 
`)}

ModuleRegistry.registerModules([ ${t} ]);`},L8=(e,t)=>{const o=e.map(a=>({name:Vi(a),source:x0[a]?"ag-grid-enterprise":"ag-grid-community"}));e.some(a=>a==="IntegratedCharts"||a==="Sparklines")&&o.push({name:"AgChartsEnterpriseModule",source:"ag-charts-enterprise"});const i=e.map(a=>Vi(a,!0)).join(", ");return t||o.unshift({name:"ModuleRegistry",source:"ag-grid-community"}),`${z8(o,i,t)}

For more info see: ${gi()}/modules/`};function Vi(e,t=!1){return t&&(e==="IntegratedCharts"||e==="Sparklines")?`${e}Module.with(AgChartsEnterpriseModule)`:`${e}Module`}function O8(e,t){const o=t.filter(a=>a==="IntegratedCharts"||a==="Sparklines");let r="";return!globalThis?.agCharts&&o.length>0?r=`Unable to use ${e} as either the \`ag-charts-community\` or \`ag-charts-enterprise\` script needs to be included alongside \`ag-grid-enterprise\`.
`:t.some(a=>x0[a])&&(r=r+`Unable to use ${e} as that requires the \`ag-grid-enterprise\` script to be included.
`),r}function V8(e){if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return}}var B8=(e,t,o,r)=>{const i=t.filter(l=>l==="IntegratedCharts"||l==="Sparklines"),a=i.map(l=>Vi(l)).join(),n=i.length>0?`${a} must be initialised with an AG Charts module. One of \`AgChartsCommunityModule\` / \`AgChartsEnterpriseModule\`.`:"",s=t.length>1?"one of "+t.map(l=>`\`${Vi(l)}\``).join(", "):`\`${Vi(t[0])}\``;return`Unable to use ${e} as ${s} is not registered${o?" for gridId: "+r:""}. ${n}`.trim()},Cg=({reasonOrId:e,moduleName:t,reports:o,gridScoped:r,gridId:i,rowModelType:a,additionalText:n,isUmd:s,usesAgGridProvider:l})=>{const d=(Array.isArray(o)&&o.length?o.map(V8).filter(m=>m!=null):[{reasonOrId:e,moduleName:t,additionalText:n}]).map(m=>({reason:typeof m.reasonOrId=="string"?m.reasonOrId:G8[m.reasonOrId],resolvedModuleNames:I8(m.moduleName,a),additionalText:m.additionalText}));if(s)return d.map(m=>O8(m.reason,m.resolvedModuleNames)).join("");const g=[...new Set(d.flatMap(m=>m.resolvedModuleNames))],h=`${d.map(m=>B8(m.reason,m.resolvedModuleNames,r,i)).join(`
`)}${d.length==1?" ":`
`}Check if you have registered the module${g.length==1?"":"s"}:
`,p=[...new Set(d.map(m=>m.additionalText).filter(Boolean))],f=p.length>0?` 

${p.join(`
`)}`:"";return`${h}
${L8(g,l)}`+f},yg=e=>`${e} must be initialised with an AG Charts module. One of \`AgChartsCommunityModule\` / \`AgChartsEnterpriseModule\`.

import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
import { ModuleRegistry } from 'ag-grid-community';
import { ${e} } from 'ag-grid-enterprise';
    
ModuleRegistry.registerModules([${e}.with(AgChartsEnterpriseModule)]);
    `,H8=e=>`Unable to use the Clipboard API (\`navigator.clipboard.${e}()\`). The reason why it could not be used has been logged on the web development console. 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.`,N8={1:()=>"`rowData` must be an array",2:({nodeId:e})=>`Duplicate node id \`${e}\` detected from \`getRowId\` callback, this could cause issues in your grid.`,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:o})=>["Processing of the expression failed","Expression = ",e,"Params = ",t,"Exception = ",o],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.
 Either clear local references to the grid api, when it is destroyed, or check \`gridApi.isDestroyed()\` to avoid calling methods against a destroyed grid.
 To run logic when the grid is about to be destroyed use the \`gridPreDestroyed\` 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"],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:({type: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:({error:e,method:t})=>`${e}
${H8(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,inferred:t,colId:o})=>{const r=t?" (inferred)":"",i=o?` for column "${o}"`:"";return`Cell data type is \`object\`${r} but no Value \`${e}\` has been provided${i}. Please either provide an object data type definition with a Value \`${e}\`, or set:
  - \`colDef.value${e}\`${t&&e==="Parser"?"\n  - `colDef.cellDataType = 'object'`":""}`},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 is missing ",e],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 one.",80:()=>"`filterParams.numAlwaysVisibleConditions` must be greater than or equal to one.",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:o,pageSizeOptions:r})=>`\`paginationPageSize=${e}\`${t?"":" (default value)"}, but ${e} is not included in${o?"":" the default"} \`paginationPageSizeSelector=[${r?.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 UI when the `loading` grid option is set. Set `loading=false` instead.",101:({propertyName:e,componentName:t,suggestions:o})=>[`Could not find \`${t}\` component. It was configured as "${e}: \`${t}\`" but it wasn't found in the list of registered components.`,o?.length?`
         Did you mean: \`[${o.slice(0,3)}]\`?
`:"","If using a custom component check it has been registered correctly."].join(`
`),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: ${gi()}/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 o=Es({inputValue:e,allSuggestions:t,hideIrrelevant:!0,maxSuggestions:4}).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.`,o.length>0?`
         Did you mean: \`[${o.slice(0,3)}]\`?
`:"","If using a custom aggregation function check it has been registered correctly."].join(`
`)},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.
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:o})=>["duplicate group keys for row data, keys should be unique",e,t,...o??[]],187:({rowId:e,firstData:t,secondData:o})=>[`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",o],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:Cg,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 ${gi()}/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,validKeys:t})=>`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${(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}`,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.",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})=>`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:()=>yg("IntegratedChartsModule"),258:()=>yg("SparklinesModule"),259:({part:e})=>`the argument to \`theme.withPart\` must be a Theming API part object, received: ${e}`,260:({propName:e,compName:t,gridScoped:o,gridId:r,rowModelType:i,usesAgGridProvider:a})=>Cg({reasonOrId:`AG Grid \`${e}\` component: \`${t}\``,moduleName:gr[t],gridId:r,gridScoped:o,rowModelType:i,usesAgGridProvider:a}),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 ${gi()}/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.`,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.";break}return t},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.`,293:()=>"The grid was initialised detached from the DOM and was then inserted into a Shadow Root. Theme styles are probably broken. Pass the `themeStyleContainer` grid option to let the grid know where in the document to insert theme CSS.",294:()=>"When using the `agRichSelectCellEditor` setting `filterListAsync = true` requires `allowTyping = true` and the `values()` callback must return a Promise of filtered values.",295:({blockedService:e})=>`\`colDef.allowFormula\` is not supported with ${e}. Formulas has been turned off.`,296:()=>"Since v35, `api.hideOverlay()` does not hide the overlay when `activeOverlay` is set. Set `activeOverlay=null` instead.",297:()=>'`api.hideOverlay()` does not hide the no matching rows overlay as it is only controlled by grid state. Set `suppressOverlays=["noMatchingRows"] to not show it.',298:()=>"Columns Tool Panel `cancel` button has no effect without the `apply` button.",301:({key:e})=>`Toolbar item \`${e}\` is missing the \`toolbarItem\` property and will not be rendered.`,302:({itemName:e,moduleName:t,gridScoped:o,gridId:r,rowModelType:i})=>Cg({reasonOrId:`Toolbar item \`${e}\``,moduleName:t,gridId:r,gridScoped:o,rowModelType:i,additionalText:"The item will not be rendered."}),303:({key:e})=>`Multiple toolbar items share the explicit key \`${e}\`. Only the first item is rendered.`,304:({dataType:e})=>`Invalid \`calculatedColumns.dataTypes\` entry \`${e}\` - it must be a built-in data type or registered via \`dataTypeDefinitions\`. It has been ignored.`,305:()=>"The file input overlay is shown but no `processFileInput` is configured. The overlay will not work without a `processFileInput`.",306:({version:e,name:t,message:o})=>`As of v${e}, \`${t}\` is deprecated. ${o??""}`,307:({objectName:e,name:t,suggestions:o,hasContext:r})=>{let i=`Invalid \`${e}\` property \`${t}\` did you mean any of these: ${(o??[]).slice(0,8).map(a=>`\`${a}\``).join(", ")}.`;return r&&(i+=`
If you are trying to annotate \`${e}\` with application data, use the \`${e}.context\` property instead.`),i},308:({version:e,apiMethod:t,replacement:o,message:r})=>{const i=o?`Please use \`${o}\` instead. `:"";return`Since ${e} \`api.${t}\` is deprecated. ${i}${r??""}`},309:({name:e,rowModel:t,supportedRowModels:o})=>`\`${e}\` is not supported with the \`${t}\` row model. It is only valid with: ${(o??[]).join(", ")}.`,310:({objectName:e,url:t})=>`One or more \`${e}\` properties are not recognised. For more info see: ${t}`,311:({functionName:e,rowModels:t})=>`\`api.${e}\` can only be called when \`gridOptions.rowModelType\` is ${(t??[]).join(" or ")}.`,312:({chartType:e,renamedChartType:t})=>`The chart type \`${e}\` has been deprecated. Please use \`${t}\` instead.`,313:({paramsType:e,property:t})=>`Unexpected property supplied. \`${e}\` does not contain: \`${t}\`.`,314:({key:e,expectedType:t,actualType:o,value:r})=>`\`${e}\` should be of type \`${t}\` but received \`${o}\` (${String(r)}).`,315:({key:e,failedKey:t,required:o,reason:r})=>`\`${e}\` requires \`${t}\` to be one of \`[${(o??[]).join(", ")}]\`. ${r??""}`,316:({property:e,value:t,expectedType:o})=>`Unable to update chart as invalid params supplied: \`${e}: ${String(t)}\`, expected \`${o}\`.`,317:({property:e,min:t})=>`\`${e}\` should not be lower than ${t}.`,318:({feature:e,conflictsWith:t,advice:o})=>{const r=o?` ${o}`:"";return`${e} is not supported with ${t}.${r}`},319:({feature:e,requirement:t})=>`${e} requires ${t}.`,320:({property:e,allowed:t,value:o})=>{const r=o!==void 0?`, currently it's ${String(o)}`:"";return`\`${e}\` must be one of \`[${(t??[]).join(", ")}]\`${r}.`},321:({property:e,expected:t})=>`\`${e}\` should be ${t}.`,322:({message:e})=>e??"",323:({validNames:e})=>`\`paginationPanels\` expects an array of panel names or config objects: \`[${(e??[]).join(", ")}]\``,324:({property:e,invalidItems:t})=>{const o=(t??[]).map(r=>typeof r=="string"||r==null?dc(r):JSON.stringify(r)).join(", ");return`\`${e}\` must be an array of type \`(SortDirection | SortDef)[]\`, incorrect items are: \`[${o}]\``},325:({property:e,value:t})=>`\`${e}\` must be an array with at least one element, currently it is \`[${String(t)}]\``,326:({defaultOption:e})=>`ignoring \`defaultOption\` \`${e}\` as it is not one of the filter's \`filterOptions\``,327:({pattern:e})=>`ignoring \`filterParams.allowedCharPattern\` \`${e}\` as it does not compile to a character pattern`,328:({rowModel:e})=>`continuous \`fitCellContents\` auto-sizing is not supported by the '${e}' row model, so it has been ignored`,329:({error:e})=>["`shouldAutoSizeColumns` threw, so the auto-size was skipped:",e],330:({fontFamily:e,registeredFamilies:t})=>`PDF font family "${e}" is not registered. Registered families: ${(t??[]).join(", ")}.`,331:({rowId:e})=>`Row ID \`${e}\` is reserved by AG Grid and should not be returned from \`getRowId\`.`,332:({replacements:e})=>`Legacy theme CSS variables are set on the grid, but the Theming API is in use and ignores them, so they have no effect: ${(e??[]).join(", ")}. Either set the equivalent Theming API variable, or pass the string \`legacy\` to the \`theme\` grid option to keep using v32 style themes. See the migration guide: ${gi()}/theming-migration/`,333:({error:e})=>["`onIssueRaised` threw:",e],334:()=>`\`GridChartsModule\` was deprecated in v33 \u2014 use \`IntegratedChartsModule\` instead.

${yg("IntegratedChartsModule")}`,335:({colId:e})=>`Column \`${e}\` sets \`filter.handler\` or \`filter.doesFilterPass\`, which need \`enableFilterHandlers\`, so the default filter is used, as \`filter: true\` does.`,336:({colId:e,properties:t})=>`\`calculatedColumns.processColDef\` returned \`${(t??[]).join("`, `")}\` for calculated column \`${e}\`. These properties are always overridden for calculated columns and have been ignored.`,337:({colId:e})=>`\`setFilterCards\` on the New Filters Tool Panel was passed \`${e}\`, which is not a column in the grid, so no card is shown for it.`,338:()=>"`success()` or `fail()` was called more than once for the same Server-Side Row Model request, so the later call was ignored.",339:({field:e,key:t})=>`The value for field \`${e}\` was not set, as \`${t}\` on that path is not an object. Use a \`valueSetter\` to set this value.`,340:({field:e})=>`Field \`${e}\` contains \`__proto__\`, which field paths do not support, so the column shows no value and its edits are refused. Use a \`valueGetter\` and \`valueSetter\` instead.`};function k0(e,t){const o=N8[e];if(!o)return[`Missing error text for error id ${e}!`];const r=o(t),a=`
See ${Ba(e,t)}`;return Array.isArray(r)?[...r,a]:[r,a]}var G8={1:"Charting Aggregation",2:"`pivotResultFields`",3:"`setTooltip`",4:"the `isAnyOf` / `isNoneOf` filter options in the Advanced Filter"},W8=/(?<!\s)\s*(See|Visit) https?:\/\/\S+/g,E0=/(?<!\s)\s*For more info see:\s*(https?:\/\/\S+)/,q8=/^\s*import\s/,U8=/^(import |const |let |function |class |ModuleRegistry|<|>|\}|\))/,Sg=/https?:\/\/\S+/g,_8=/(?<![.,;:)\]])[.,;:)\]]+$/,j8="`";function K8(e){return`This ${e} may not have originated from this grid`}function Y8(e){if(typeof e=="string")return e;if(e==null)return"";let t;try{t=JSON.stringify(e)}catch{t=String(e)}return`\`${t}\``}function Q8(e){const{id:t,params:o,defaultMessage:r}=e;return k0(t,o).map(Y8).join(" ").trim()||r||""}function Z8(e){const t=E0.exec(e)?.[1],o=e.replace(W8,"").replace(E0,"").trim();return{...X8(o),docLink:t}}function R0(e){return Z8(Q8(e))}function J8(e){const t=e.trim();return t===""?!1:U8.test(t)||/[;{(]$/.test(t)||t.includes("=>")}function X8(e){const t=e.split(`
`);let o=-1;for(let s=0,l=t.length;s<l;++s)if(q8.test(t[s])){o=s;break}if(o===-1)return{message:e};let r=o;for(let s=o,l=t.length;s<l&&(t[s].trim()===""||J8(t[s]));++s)r=s;const i=t.slice(0,o).join(`
`).trim(),a=t.slice(o,r+1).join(`
`).trim(),n=t.slice(r+1).join(`
`).trim();return{message:i,code:a,note:n||void 0}}function $8(e,t){const o=t.split(j8);for(let r=0,i=o.length;r<i;++r){const a=o[r];if(a!=="")if(r%2===1){const n=G({tag:"code",cls:"ag-overlay-error-inline-code"});n.textContent=a,e.appendChild(n)}else e7(e,a)}}function e7(e,t){let o=0;Sg.lastIndex=0;let r;for(;(r=Sg.exec(t))!==null;){r.index>o&&e.appendChild(document.createTextNode(t.slice(o,r.index)));let i=r[0];const a=_8.exec(i)?.[0]??"";a&&(i=i.slice(0,i.length-a.length)),e.appendChild(xg(i,i)),a&&e.appendChild(document.createTextNode(a)),o=Sg.lastIndex}o<t.length&&e.appendChild(document.createTextNode(t.slice(o)))}function F0(e){return e.replace(/^[a-z]/,t=>t.toUpperCase())}function M0(e){const t=G({tag:"div",cls:"ag-overlay-error-message"});return $8(t,e),t}function xg(e,t){const o=G({tag:"a",cls:"ag-overlay-error-link"});return o.href=e,o.target="_blank",o.rel="noopener noreferrer",o.textContent=t,o}function t7(e,t,o,r,i=!1){const a=G({tag:"div",cls:`ag-overlay-error-item ag-overlay-error-item-${e}`}),{message:n,code:s,note:l,docLink:c}=t;if(i){const g=G({tag:"div",cls:"ag-overlay-error-unattributed"});g.textContent=K8(e),a.appendChild(g)}if(n&&a.appendChild(M0(F0(n))),s){const g=G({tag:"pre",cls:"ag-overlay-error-code"});g.textContent=s,a.appendChild(g)}l&&a.appendChild(M0(l));const d=G({tag:"div",cls:"ag-overlay-error-links"});return d.appendChild(xg(o,r)),c&&d.appendChild(xg(c,"Documentation")),a.appendChild(d),a}function o7(e,t={}){return t7(e.severity,R0(e),Ba(e.id,e.params),`AG Grid #${e.id}`,!!t.showsUnattributedOrigin&&e.gridId===void 0)}var An=["error","warning","deprecation"],r7={error:"Errors",warning:"Warnings",deprecation:"Deprecations"};function i7(e,t,o){const r=G({tag:"div",cls:`ag-overlay-error-section ag-overlay-error-section-${e}`}),i=G({tag:"div",cls:"ag-overlay-error-section-header"});i.textContent=`${r7[e]} (${t.length})`,r.appendChild(i);for(let a=0,n=t.length;a<n;++a)r.appendChild(o7(t[a],o));return r}function D0(e,t={}){const o=[];for(let r=0,i=An.length;r<i;++r){const a=An[r],n=e.filter(s=>s.severity===a);n.length!==0&&(o.length>0&&o.push(G({tag:"hr",cls:"ag-overlay-error-divider"})),o.push(i7(a,n,t)))}return o}function a7(e,t,o,r){const{message:i,code:a,note:n,docLink:s}=o,c=[`### [${e[0].toUpperCase()+e.slice(1)}] AG Grid #${t}`];return i&&c.push(F0(i)),a&&c.push("```",a,"```"),n&&c.push(n),s&&c.push(`Documentation: ${s}`),c.push(`More info: ${r}`),c.join(`
`)}function n7(e){return a7(e.severity,e.id,R0(e),Ba(e.id,e.params))}function P0(e,t){return[`Version: ${t}`,...e.map(n7)].join(`

`)}var kg="Copy",s7="Copied",l7=1500;function T0(e){return e.textContent=s7,window.setTimeout(()=>{e.textContent=kg},l7)}function A0(e){if(navigator.clipboard?.writeText){navigator.clipboard.writeText(e).catch(()=>I0(e));return}I0(e)}function I0(e){const t=G({tag:"textarea"});t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch{}t.remove()}var c7=["box-sizing: border-box","display: flex","flex-direction: column","width: 100%","height: 100%","min-height: 120px","overflow: auto","background: #fff","color: #181d1f","border: 2px solid color-mix(in srgb, #cc222f 60%, #babfc7)","font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif","font-size: 13px","line-height: 1.5"].join(";"),d7=["display: flex","align-items: center","justify-content: space-between","gap: 12px","padding: 12px 16px","border-bottom: 1px solid #babfc7"].join(";"),g7=["display: flex","flex-direction: column","gap: 16px","padding: 12px 16px"].join(";"),u7=["font-weight: 600","font-size: 14px","color: #cc222f"].join(";"),h7=["flex: none","padding: 8px 16px","border-top: 1px solid #babfc7","color: #68686e","font-size: 12px"].join(";"),p7=["flex: none","cursor: pointer","padding: 2px 10px","border: 1px solid #babfc7","border-radius: 4px","background: #f8f8f8","color: inherit","font: inherit","font-size: 12px"].join(";"),z0="ui-monospace, sfmono-regular, menlo, consolas, 'Liberation Mono', monospace",L0="ag-overlay-error-bootstrap-styles",f7=`
.ag-overlay-error-bootstrap-panel .ag-overlay-error-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ag-overlay-error-bootstrap-panel .ag-overlay-error-section-header {
    margin: 0;
    font-weight: 700;
}
.ag-overlay-error-bootstrap-panel .ag-overlay-error-divider {
    margin: 0;
    border: none;
    border-top: 1px solid #babfc7;
}
.ag-overlay-error-bootstrap-panel .ag-overlay-error-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-inline-start: solid 3px #babfc7;
    padding-inline-start: 8px;
}
.ag-overlay-error-bootstrap-panel .ag-overlay-error-item-error { border-inline-start-color: #cc222f; }
.ag-overlay-error-bootstrap-panel .ag-overlay-error-item-warning { border-inline-start-color: #d98300; }
.ag-overlay-error-bootstrap-panel .ag-overlay-error-item-deprecation { border-inline-start-color: #81878b; }
.ag-overlay-error-bootstrap-panel .ag-overlay-error-message {
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.ag-overlay-error-bootstrap-panel .ag-overlay-error-inline-code {
    font-family: ${z0};
    background: rgba(129, 135, 139, 0.18);
    border-radius: 4px;
    padding: 0 0.3em;
}
.ag-overlay-error-bootstrap-panel .ag-overlay-error-code {
    margin: 0;
    font-family: ${z0};
    font-size: 0.85em;
    background: #f3f4f5;
    border: 1px solid #babfc7;
    border-radius: 4px;
    padding: 8px;
    max-height: 50vh;
    overflow: auto;
    white-space: pre-wrap;
}
.ag-overlay-error-bootstrap-panel .ag-overlay-error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}`;function m7(){if(document.getElementById(L0))return;const e=G({tag:"style"});e.id=L0,e.textContent=f7,document.head.appendChild(e)}function v7(e){const t=new Set,o=[];for(let r=0,i=e.length;r<i;++r){const a=e[r],n=Nf(a,r);t.has(n)||(t.add(n),o.push(a))}return o}function w7(e,t,o){const r=e.querySelectorAll(".ag-overlay-error-bootstrap-panel");for(let h=0,p=r.length;h<p;++h)r[h].remove();const i=S0();if(i.length===0)return;const n=v7(t).filter(h=>ac(h.severity,i));if(n.length===0)return;m7();const s=G({tag:"div",cls:"ag-overlay-error-bootstrap-panel"});s.style.cssText=c7;const l=G({tag:"div"});l.style.cssText=d7;const c=G({tag:"span"});c.style.cssText=u7,c.textContent="AG Grid failed to initialise",l.appendChild(c);const d=G({tag:"button"});d.type="button",d.textContent=kg,d.title="Copy diagnostics to the clipboard",d.style.cssText=p7,d.addEventListener("click",()=>{A0(P0(n,o)),T0(d)}),l.appendChild(d),s.appendChild(l);const g=G({tag:"div"});g.style.cssText=g7,g.append(...D0(n)),s.appendChild(g);const u=G({tag:"div"});u.style.cssText=h7,u.textContent=o,s.appendChild(u),e.appendChild(s)}var b7='.ag-overlay-error-panel{--ag-internal-overlay-mono:ui-monospace,sfmono-regular,menlo,consolas,"Liberation Mono",monospace;background:var(--ag-background-color);border:solid calc(var(--ag-border-width)*2) color-mix(in srgb,var(--ag-invalid-color) 60%,var(--ag-border-color));border-radius:var(--ag-border-radius);box-shadow:var(--ag-popup-shadow);color:var(--ag-text-color);display:flex;flex-direction:column;margin:calc(var(--ag-spacing)*2);max-height:calc(100% - var(--ag-spacing)*4);max-width:640px;overflow:hidden;pointer-events:all;text-align:start}.ag-overlay-error-header{align-items:center;border-bottom:solid var(--ag-border-width) var(--ag-border-color);color:var(--ag-invalid-color);display:flex;flex:none;gap:calc(var(--ag-spacing)*.5);padding:var(--ag-spacing) calc(var(--ag-spacing)*1.5)}.ag-overlay-error-title{flex:1;font-weight:700}.ag-overlay-error-button{align-items:center;background:var(--ag-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);color:var(--ag-text-color);cursor:pointer;display:flex;font:inherit;height:calc(var(--ag-spacing)*3.5);justify-content:center;padding:0 calc(var(--ag-spacing)*.75)}.ag-overlay-error-button:hover{background:var(--ag-row-hover-color)}.ag-overlay-error-dismiss{background:transparent;border:none;padding:0;width:calc(var(--ag-spacing)*3.5)}.ag-overlay-error-body{display:flex;flex:1 1 auto;flex-direction:column;gap:calc(var(--ag-spacing)*2);min-height:0;overflow:auto;padding:calc(var(--ag-spacing)*1.5)}.ag-overlay-error-section{display:flex;flex-direction:column;gap:calc(var(--ag-spacing)*2)}.ag-overlay-error-section-header{font-weight:700;margin:0}.ag-overlay-error-divider{border:none;border-top:solid var(--ag-border-width) var(--ag-border-color);margin:0}.ag-overlay-error-item{border-inline-start:solid calc(var(--ag-border-width)*3) var(--ag-border-color);display:flex;flex-direction:column;gap:var(--ag-spacing);padding-inline-start:var(--ag-spacing)}.ag-overlay-error-item-error{border-inline-start-color:var(--ag-invalid-color)}.ag-overlay-error-item-warning{border-inline-start-color:#d98300}.ag-overlay-error-item-deprecation{border-inline-start-color:var(--ag-subtle-text-color)}.ag-overlay-error-code,.ag-overlay-error-message{line-height:1.5;margin:0;overflow-wrap:anywhere;-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre-wrap}.ag-overlay-error-unattributed{align-self:start;background:color-mix(in srgb,var(--ag-border-color) 35%,transparent);border-radius:500px;color:var(--ag-subtle-text-color);font-size:.85em;font-weight:600;padding:calc(var(--ag-spacing)*.25) var(--ag-spacing)}.ag-overlay-error-inline-code{background:color-mix(in srgb,var(--ag-border-color) 35%,transparent);border-radius:var(--ag-border-radius);font-family:var(--ag-internal-overlay-mono);padding:0 .3em}.ag-overlay-error-code{background:var(--ag-header-background-color);border:solid var(--ag-border-width) var(--ag-border-color);border-radius:var(--ag-border-radius);font-family:var(--ag-internal-overlay-mono);font-size:.85em;max-height:50vh;overflow:auto;padding:var(--ag-spacing)}.ag-overlay-error-links{display:flex;flex-wrap:wrap;gap:calc(var(--ag-spacing)*1.5)}.ag-overlay-error-versions{border-top:solid var(--ag-border-width) var(--ag-border-color);flex:none;font-size:.85em;opacity:.7;padding:calc(var(--ag-spacing)*.75) calc(var(--ag-spacing)*1.5)}',C7={tag:"div",cls:"ag-overlay-error-panel",children:[{tag:"div",cls:"ag-overlay-error-header",children:[{tag:"span",ref:"eTitle",cls:"ag-overlay-error-title"},{tag:"button",ref:"eCopy",cls:"ag-overlay-error-button ag-overlay-error-copy",attrs:{type:"button",title:"Copy diagnostics to the clipboard"},children:kg},{tag:"button",ref:"eDismiss",cls:"ag-overlay-error-button ag-overlay-error-dismiss",attrs:{type:"button",title:"Dismiss","aria-label":"Dismiss"}}]},{tag:"div",ref:"eBody",cls:"ag-overlay-error-body"},{tag:"div",ref:"eVersions",cls:"ag-overlay-error-versions"}]},y7=class extends hr{constructor(){super(...arguments),this.eTitle=k,this.eCopy=k,this.eDismiss=k,this.eBody=k,this.eVersions=k}init(){const{beans:e}=this;this.setTemplate(C7),this.addManagedElementListeners(this.eCopy,{click:()=>this.copyDiagnostics()});const t=ue("cancel",e,null);t?this.eDismiss.appendChild(t):this.eDismiss.textContent="\u2715",this.addManagedElementListeners(this.eDismiss,{click:()=>e.errorOverlay?.dismiss()}),this.eVersions.textContent=e.agVersionsText,this.renderBody();const o=e.errorOverlay?.addUpdateListener(()=>this.renderBody());o&&this.addDestroyFunc(o)}destroy(){this.copyResetTimeout!==void 0&&window.clearTimeout(this.copyResetTimeout),super.destroy()}renderBody(){const e=this.beans.errorOverlay?.getDiagnostics()??[];this.eTitle.textContent=x7(e),this.eBody.replaceChildren(...D0(e,{showsUnattributedOrigin:!0})),this.beans.ariaAnnounce?.announceValue(this.eTitle.textContent??"","overlay")}copyDiagnostics(){const e=this.beans.errorOverlay?.getDiagnostics()??[];e.length&&(A0(P0(e,this.beans.agVersionsText)),this.copyResetTimeout!==void 0&&window.clearTimeout(this.copyResetTimeout),this.copyResetTimeout=T0(this.eCopy))}},S7={error:"error",warning:"warning",deprecation:"deprecation"};function x7(e){const t={error:0,warning:0,deprecation:0};for(let r=0,i=e.length;r<i;++r)t[e[r].severity]++;const o=[];for(let r=0,i=An.length;r<i;++r){const a=An[r],n=t[a];n>0&&o.push(`${n} ${S7[a]}${n>1?"s":""}`)}return o.length?`AG Grid found ${o.join(", ")}`:"AG Grid"}var k7=class extends x{constructor(){super(...arguments),this.beanName="errorOverlay",this.overlaySeverities=[],this.diagnostics=[],this.seenKeys=new Set,this.updateListeners=new Set,this.keySeed=0}wireBeans(e){this.overlays=e.overlays}postConstruct(){const e=S0();e.length!==0&&(this.overlaySeverities=e,this.addDestroyFunc(Uf(this.beans.context.getId(),t=>this.onDiagnostic(t))))}getDiagnostics(){return this.diagnostics}addUpdateListener(e){return this.updateListeners.add(e),()=>{this.updateListeners.delete(e)}}dismiss(){this.overlays?.setDevErrorOverlay(!1)}onDiagnostic(e){if(!ac(e.severity,this.overlaySeverities))return;const t=this.getKey(e);if(!this.seenKeys.has(t)){this.seenKeys.add(t),this.diagnostics.push(e),this.overlays?.setDevErrorOverlay(!0);for(const o of this.updateListeners)o()}}getKey(e){return Nf(e,this.keySeed++)}},E7=class extends x{constructor(){super(...arguments),this.beanName="issueEvents",this.dispatching=!1}postConstruct(){this.addDestroyFunc(Uf(this.beans.context.getId(),e=>this.onDiagnostic(e)))}onDiagnostic(e){if(!this.dispatching){this.dispatching=!0;try{this.eventSvc.dispatchEvent({type:"issueRaised",id:e.id,severity:e.severity,message:Ix(e),attributedToThisGrid:e.gridId!==void 0})}catch(t){ro(ao(333,{error:t}))}finally{this.dispatching=!1}}}},R7={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,overlayComponent:!0,suppressOverlays:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!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,suppressContentVisibilityAuto:!0,enableContentVisibilityAuto:!0,contentVisibilityAutoDelay:!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},Be="clientSide",Fe="serverSide",br="infinite",F7={onGroupExpandedOrCollapsed:[Be],refreshClientSideRowModel:[Be],isRowDataEmpty:[Be],forEachLeafNode:[Be],forEachNodeAfterFilter:[Be],forEachNodeAfterFilterAndSort:[Be],resetRowHeights:[Be,Fe],applyTransaction:[Be],applyTransactionAsync:[Be],flushAsyncTransactions:[Be],getBestCostNodeSelection:[Be],getServerSideSelectionState:[Fe],setServerSideSelectionState:[Fe],applyServerSideTransaction:[Fe],applyServerSideTransactionAsync:[Fe],applyServerSideRowData:[Fe],retryServerSideLoads:[Fe],flushServerSideAsyncTransactions:[Fe],refreshServerSide:[Fe],getServerSideGroupLevelState:[Fe],refreshInfiniteCache:[br],purgeInfiniteCache:[br],getInfiniteRowCount:[br],isLastRowIndexKnown:[br,Fe],expandAll:[Be,Fe],collapseAll:[Be,Fe],onRowHeightChanged:[Be,Fe],setRowCount:[br,Fe],getCacheBlockState:[br,Fe]},M7={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")'}};function D7(e,t,o){const r=M7[e];if(r){const{version:a,new:n,old:s,message:l}=r,c=s??e;return(...d)=>(o.log.deprecated(308,{version:a,apiMethod:c,replacement:n,message:l}),t.apply(t,d))}const i=F7[e];return i?(...a)=>{const n=o.rowModel.getType();if(!i.includes(n)){o.log.error(311,{functionName:e,rowModels:i});return}return t.apply(t,a)}:t}var P7={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",pageNumbers:"PaginationPageNumbers",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agBigIntColumnFilterHandler:"BigIntFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},T7={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,pdf:1,document:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,aasc:1,adesc: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,search:1,fx:1,"values-as":1},A7={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"],calculatedColumnAdd:"CalculatedColumns",calculatedColumnEdit:"CalculatedColumns",calculatedColumnRemove:"CalculatedColumns",columnHeaderEdit:"ColumnHeaderEdit",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",overlayLoading:"Overlay",overlayExporting:"Overlay",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuMoveLeft:"ColumnMenu",menuMoveRight:"ColumnMenu",menuMoveUp:["ColumnsToolPanel","ColumnMenu"],menuMoveDown:["ColumnsToolPanel","ColumnMenu"],menuValue:"MenuCore",showValuesAs:"ShowValuesAs",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",pdfExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",richSelectLoading:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortAbsoluteAscending:["MenuCore","Sort"],sortAbsoluteDescending:["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",search:"Find",document:"FileInputOverlay",calculatedColumnsHeader:"CalculatedColumns"},I7=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),O0={"--ag-grid-size":"--ag-spacing","--ag-active-color":"--ag-accent-color","--ag-alpine-active-color":"--ag-accent-color","--ag-balham-active-color":"--ag-accent-color","--ag-material-primary-color":"--ag-accent-color","--ag-header-foreground-color":"--ag-header-text-color","--ag-control-panel-background-color":"--ag-chrome-background-color","--ag-cell-horizontal-border":"--ag-column-border","--ag-header-column-separator-color":"--ag-header-column-border"};function z7(e){const t=getComputedStyle(e),o=[];for(const r of Object.keys(O0))t.getPropertyValue(r).trim()&&o.push(`${r} (use ${O0[r]})`);return o}var L7=class extends x{constructor(){super(...arguments),this.beanName="validation",this.propertyNameCache=new Map}wireBeans(e){this.gridOptions=e.gridOptions,bx(k0)}warnOnInitialPropertyUpdate(e,t){e==="api"&&R7[t]&&this.warn(22,{key:t})}processGridOptions(e){this.processOptions(e,_6())}validateApiFunction(e,t){return D7(e,t,this.beans)}missingUserComponent(e,t,o,r){this.checkUserComponent(e,t,o,r)}checkUserComponent(e,t,o,r){const i=gr[t];if(i){this.gos.assertModuleRegistered(i,`AG Grid \`${e}\` component: \`${t}\``);return}const a=[...Object.keys(o??{}).filter(s=>!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(s)),...Object.keys(r??{}).filter(s=>!!r[s])],n=Es({inputValue:t,allSuggestions:a,hideIrrelevant:!0,maxSuggestions:4}).values;this.warn(101,{propertyName:e,componentName:t,suggestions:n})}missingDynamicBean(e){const t=P7[e];return t?this.beans.log.errorToThrow(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:`\`${e}\``}):void 0}checkLegacyThemeVariables(e){if(this.gos.get("theme")==="legacy")return;const t=z7(e);t.length>0&&this.warn(332,{replacements:t})}checkRowEvents(e){O7.has(e)&&this.warn(10,{eventType:e})}validateIcon(e){this.checkIcon(e)}checkIcon(e){if(I7.has(e)&&this.warn(43,{iconName:e}),T7[e])return;const t=A7[e];if(t){Kf({...this.gos.getModuleErrorParams(),reasonOrId:`icon \`${e}\``,moduleName:t,additionalText:"Alternatively, use the CSS icon name directly."});return}this.warn(134,{iconName:e})}isProvidedUserComp(e){return!!gr[e]}validateColDef(e){this.processOptions(e,z6())}processOptions(e,t){const{validations:o,deprecations:r,allProperties:i,allValidNames:a,objectName:n,docsUrl:s}=t,l=this.beans.log,c=Object.keys(e);let d=this.propertyNameCache.get(n);d||(d=new Map,this.propertyNameCache.set(n,d));const g=this.gridOptions.suppressPropertyNamesCheck!==!0;let u=!1;for(const f of c){if(d.has(f))continue;const m=r[f];if(m){const{message:C,version:b}=m;l.deprecated(306,{version:b,name:f,message:C})}const w=o[f],v=this.gridOptions.rowModelType??"clientSide";if(w?.supportedRowModels&&!w.supportedRowModels.includes(v)){const C=e[f];if(C==null||C===!1)continue;l.warn(309,{name:f,rowModel:v,supportedRowModels:w.supportedRowModels}),d.set(f,!1);continue}if(!a.has(f)){if(g){const C=Es({inputValue:f,allSuggestions:i}).values.slice(0,8);l.warn(307,{objectName:n,name:f,suggestions:C,hasContext:a.has("context")})}u=!0,d.set(f,!1);continue}d.set(f,!0)}if(u&&s&&g){const f=this.beans.frameworkOverrides.getDocLink(s);l.warn(310,{objectName:n,url:f})}const h=new Set,p=[];if(c.forEach(f=>{if(d.get(f)===!1)return;const m=e[f];if(m==null||m===!1)return;const w=o[f];if(!w)return;const{dependencies:v,validate:C,expectedType:b}=w;if(b){const S=typeof m;if(S!==b){p.push(q(314,{key:String(f),expectedType:b,actualType:S,value:m}));return}}if(v){const S=this.checkForRequiredDependencies(f,v,e);if(S.length>0){p.push(...S);return}}if(C){const S=C(e,this.gridOptions,this.beans);if(S){typeof S=="string"?h.add(S):p.push(S);return}}}),h.size>0)for(const f of h)Dv(f,l);for(let f=0,m=p.length;f<m;++f)p[f].emit(l)}checkForRequiredDependencies(e,t,o){return Object.entries(t).filter(([a,n])=>{const s=o[a];return!n.required.includes(s)}).map(([a,n])=>{const s=n.required.map(l=>l===null?"null":l===void 0?"undefined":String(l));return q(315,{key:String(e),failedKey:a,required:s,reason:n.reason})})}},O7=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]);function V7(){P8(),kx(w7)}var Eg={moduleName:"Validation",version:R,beans:[L7,k7,E7],userComponents:{agErrorOverlay:y7},css:[b7],onRegister:V7,with:e=>(D8(e),Eg)};function B7(e){Ao(Eg.with(e),void 0)}function A(e,t={}){const o=Object.keys(t).map(r=>{const i=t[r];return i!=null?`${r}=${i}`:null}).filter(Boolean).join(";");return[e,o].filter(r=>r.length>0).join(":")}var M={grid(e){return A("ag-grid-root",{gridId:e})},headerGroupCell(e){return A("ag-header-group-cell",{colId:e})},headerCell(e){return A("ag-header-cell",{colId:e})},headerCheckbox(e){return A("ag-header-selection-checkbox",{colId:e})},headerFilterButton(e){return A("ag-header-cell-filter-button",{colId:e})},floatingFilter(e){return A("ag-floating-filter",{colId:e})},floatingFilterButton(e){return A("ag-floating-filter-button",{colId:e})},headerCellMenuButton(e){return A("ag-header-cell-menu-button",{colId:e})},headerResizeHandle(e){return A("ag-header-cell-resize",{colId:e})},filterInstancePickerDisplay(e){return A(`ag-${e.source}-picker-display`,In(e))},numberFilterInstanceInput(e){return A(`ag-${e.source}-number-input`,In(e))},textFilterInstanceInput(e){return A(`ag-${e.source}-text-input`,In(e))},dateFilterInstanceInput(e){return A(`ag-${e.source}-date-input`,In(e))},setFilterInstanceMiniFilterInput(e){return A(`ag-${e.source}-set-filter-mini-filter-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceItem(e,t){return A(`ag-${e.source}-set-filter-item`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,itemLabel:t}:{colId:e.colId,itemLabel:t})},setFilterApplyPanelButton(e,t){return A(`ag-${e.source}-set-filter-apply-panel-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},filterConditionRadioButton(e,t){return A(`ag-${e.source}-filter-condition-radio-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},advancedFilterInput(){return A("ag-advanced-filter-input")},advancedFilterButton(e){return A("ag-advanced-filter-button",{label:e})},advancedFilterBuilderButton(){return A("ag-advanced-filter-builder-button")},advancedFilterPanelMaximiseButton(){return A("ag-advanced-filter-builder-panel-maximise")},advancedFilterPanelCloseButton(){return A("ag-advanced-filter-builder-panel-close")},advancedFilterPill(e){return A("ag-advanced-filter-builder-pill",{label:e})},advancedFilterBuilderAddItemButton(){return A("ag-advanced-filter-builder-add-item-button")},rowNode(e){return A("ag-row",{"row-id":e})},cell(e,t){return A("ag-cell",{"row-id":e,colId:t})},autoGroupCell(e){return M.cell(e,Ro)},checkbox(e,t){return A("ag-selection-checkbox",{"row-id":e,colId:t})},selectionColumnCheckbox(e){return M.checkbox(e,ha)},autoGroupColumnCheckbox(e){return M.checkbox(e,Ro)},dragHandle(e,t){return A("ag-drag-handle",{"row-id":e,colId:t})},groupContracted(e,t){return A("ag-group-contracted",{"row-id":e,colId:t})},groupExpanded(e,t){return A("ag-group-expanded",{"row-id":e,colId:t})},autoGroupContracted(e){return M.groupContracted(e,Ro)},autoGroupExpanded(e){return M.groupExpanded(e,Ro)},rowNumber(e){return M.cell(e,Oh)},menu(){return A("ag-menu")},menuOption(e){return A("ag-menu-option",{option:e})},sideBar(){return A("ag-side-bar")},sideBarButton(e){return A("ag-side-button",{label:e})},columnToolPanel(){return A("ag-column-panel")},pivotModeSelect(){return A("ag-pivot-mode-select")},columnPanelSelectHeaderCheckbox(){return A("ag-column-panel-select-header-checkbox")},columnPanelSelectHeaderFilter(){return A("ag-column-panel-select-header-filter")},columnSelectListItemGroupClosedIcon(e){return A("ag-column-select-list-item-group-closed-icon",{label:e})},columnSelectListItemCheckbox(e){return A("ag-column-select-list-item-checkbox",{label:e})},columnSelectListItemDragHandle(e){return A("ag-column-select-list-item-drag-handle",{label:e})},columnDropCellDragHandle(e,t,o){return A("ag-column-drop-cell-drag-handle",{source:e,area:t,label:o})},columnDropCellCancelButton(e,t,o){return A("ag-column-drop-cell-cancel",{source:e,area:t,label:o})},columnDropArea(e,t){return A("ag-column-drop-area",{source:e,name:t})},filterToolPanel(){return A("ag-filter-panel")},filterToolPanelAddFilterButton(){return A("ag-filter-panel-add-filter-button")},filterToolPanelFilterTypeSelector(e){return A("ag-filter-panel-filter-type-selector",{colLabel:e})},filterToolPanelSearchInput(){return A("ag-filter-toolpanel-search-input")},filterToolPanelGroup(e){return A("ag-filter-toolpanel-group",{title:e})},filterToolPanelGroupCollapsedIcon(e){return A("ag-filter-toolpanel-group-collapsed-icon",{title:e})},statusBarTotalAndFilteredRowCount(){return A("ag-status-bar-total-and-filtered-row-count")},statusBarTotalRowCount(){return A("ag-status-bar-total-row-count")},statusBarFilteredRowCount(){return A("ag-status-bar-filtered-row-count")},statusBarSelectedRowCount(){return A("ag-status-bar-selected-row-count")},statusBarAggregations(){return A("ag-status-bar-aggregations")},paginationPanelSizePickerDisplay(e){return A("ag-pagination-page-size-picker-field-display",{value:e})},paginationPanelFirstRowOnPage(e){return A("ag-paging-row-summary-panel-first-row-on-page",{value:e})},paginationPanelLastRowOnPage(e){return A("ag-paging-row-summary-panel-last-row-on-page",{value:e})},paginationPanelRecordCount(e){return A("ag-paging-row-summary-panel-record-count",{value:e})},paginationSummaryPanelButton(e){return A("ag-paging-page-summary-panel-btn",{label:e})},paginationSummaryPanelCurrentPage(e){return A("ag-paging-page-summary-panel-current-page",{value:e})},paginationSummaryPanelTotalPage(e){return A("ag-paging-page-summary-panel-total-page",{value:e})},paginationPageNumber(e){return A("ag-paging-page-number",{value:e})},fillHandle(){return A("ag-fill-handle")},columnChooserCloseButton(){return A("ag-column-chooser-close-button")},columnChooserSearchBarCheckbox(){return A("ag-column-chooser-header-checkbox")},columnChooserSearchBarFilter(){return A("ag-column-chooser-searchbar-filter")},columnChooserListItemGroupClosedIcon(e){return A("ag-column-chooser-list-item-group-closed-icon",{label:e})},columnChooserListItemCheckbox(e){return A("ag-column-chooser-list-item-checkbox",{label:e})},columnChooserListItemDragHandle(e){return A("ag-column-chooser-list-item-drag-handle",{label:e})},overlay(){return A("ag-overlay")}},H7=e=>{const t={},o=Object.keys(M);for(const r of o)t[r]=(...i)=>e(M[r](...i));return t};function N7(e,t){const o={};for(const r of Object.keys(e))t[r]!==null&&(o[t[r]??r]=e[r]);return o}function G7(e){return e.source!=="floating-filter"?{index:0,...e}:e}function In(e){return N7(G7(e),{colLabel:"label"})}var V0="data-testid";function I(e,t){e?.setAttribute(V0,t)}function W7(e){V0=e}var B0={"ag-column-drop-rowgroup":"Row Groups","ag-column-drop-aggregation":"Values","ag-column-drop-pivot":"Column Labels"};function q7(e){const t=Object.keys(B0);for(let o=0,r=t.length;o<r;++o)if(e.classList.contains(t[o]))return B0[t[o]]}var U7=class extends x{constructor(){super(...arguments),this.beanName="testIdSvc"}postConstruct(){const e=se(this,()=>this.setupAllTestIds(),500),t=se(this,()=>{this.setupAllTestIds(),e()},0);this.addManagedEventListeners({firstDataRendered:t,displayedRowsChanged:t,displayedColumnsChanged:t,displayedColumnsWidthChanged:t,virtualColumnsChanged:t,columnMenuVisibleChanged:t,contextMenuVisibleChanged:t,advancedFilterBuilderVisibleChanged:t,fieldPickerValueSelected:t,modelUpdated:t,sideBarUpdated:t,pinnedHeightChanged:t,gridReady:t,overlayExclusiveChanged:t,rowGroupOpened:t,paginationChanged:t,scrollVisibilityChanged:t,gridSizeChanged:t,filterOpened:t,filterChanged:t,filterModified:t,filterUiChanged:t,cellSelectionChanged:t});const o=Ye(this.beans),r=se(this,()=>this.setupAllTestIds(),100),i=a=>{const n=a.target;n instanceof HTMLElement&&n.classList.contains("ag-virtual-list-viewport")&&(n.closest(".ag-column-panel")||n.closest(".ag-panel"))&&r()};o.addEventListener("scroll",i,{capture:!0}),this.addDestroyFunc(()=>o.removeEventListener("scroll",i,{capture:!0})),this.headerObserver=new MutationObserver(t),this.addDestroyFunc(()=>this.headerObserver?.disconnect()),this.popupObserver=new MutationObserver(t),this.addDestroyFunc(()=>this.popupObserver?.disconnect())}observePopupParent(){const e=this.beans.popupSvc?.getPopupParent();!e||e===this.observedPopupParent||(this.popupObserver?.disconnect(),this.popupObserver?.observe(e,{childList:!0}),this.observedPopupParent=e)}observeHeader(e){const t=e?.querySelector(".ag-header");!t||t===this.observedHeader||(this.headerObserver?.disconnect(),this.headerObserver?.observe(t,{childList:!0,subtree:!0}),this.observedHeader=t)}setupAllTestIds(){const e=Ye(this.beans),t=$f(this.beans),o=e.querySelector(`[grid-id="${t}"]`);I(o,M.grid(t)),this.observeHeader(o),this.observePopupParent(),e.querySelectorAll(".ag-header-group-cell").forEach(a=>{I(a,M.headerGroupCell(a.getAttribute("col-id")))}),e.querySelectorAll(".ag-header-cell").forEach(a=>{const n=a.getAttribute("col-id"),l=a.classList.contains("ag-floating-filter")?M.floatingFilter(n):M.headerCell(n);I(a,l),I(a.querySelector(".ag-header-cell-filter-button"),M.headerFilterButton(n)),I(a.querySelector(".ag-header-cell-menu-button"),M.headerCellMenuButton(n)),I(a.querySelector(".ag-header-cell-resize"),M.headerResizeHandle(n)),I(a.querySelector(".ag-checkbox input[type=checkbox]"),M.headerCheckbox(n)),I(a.querySelector(".ag-floating-filter-button button"),M.floatingFilterButton(n)),this.setupFilterInstance(a.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:n})});const r=e.querySelector(".ag-filter-menu");this.setupFilterInstance(r,{source:"column-filter"}),I(e.querySelector(".ag-advanced-filter input[type=text]"),M.advancedFilterInput()),e.querySelectorAll(".ag-advanced-filter-buttons button").forEach(a=>{I(a,M.advancedFilterButton(a.textContent))}),I(e.querySelector("button.ag-advanced-filter-builder-button"),M.advancedFilterBuilderButton()),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach((a,n)=>{I(a,n===0?M.advancedFilterPanelMaximiseButton():M.advancedFilterPanelCloseButton())}),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach(a=>{I(a,M.advancedFilterPill(a.querySelector(".ag-picker-field-display")?.textContent))}),I(e.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),M.advancedFilterBuilderAddItemButton()),e.querySelectorAll(".ag-row[row-id]").forEach(a=>{const n=a.getAttribute("row-id");I(a,M.rowNode(n)),a.querySelectorAll(".ag-cell").forEach(s=>{const l=s.getAttribute("col-id");I(s,M.cell(n,l)),I(s.querySelector(".ag-selection-checkbox input[type=checkbox]"),M.checkbox(n,l)),I(s.querySelector(".ag-drag-handle"),M.dragHandle(n,l)),I(s.querySelector(".ag-group-contracted"),M.groupContracted(n,l)),I(s.querySelector(".ag-group-expanded"),M.groupExpanded(n,l))})}),e.querySelectorAll(".ag-menu-list").forEach(a=>{I(a,M.menu()),a.querySelectorAll(".ag-menu-option").forEach(n=>{I(n,M.menuOption(n.querySelector(".ag-menu-option-text")?.textContent))})}),e.querySelectorAll(".ag-side-bar").forEach(a=>{I(a,M.sideBar()),a.querySelectorAll(".ag-side-button button").forEach(n=>{I(n,M.sideBarButton(n.querySelector(".ag-side-button-label")?.textContent))}),a.querySelectorAll(".ag-column-panel").forEach(n=>{I(n,M.columnToolPanel()),I(n.querySelector(".ag-pivot-mode-select input[type=checkbox]"),M.pivotModeSelect()),I(n.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),M.columnPanelSelectHeaderCheckbox()),I(n.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),M.columnPanelSelectHeaderFilter()),n.querySelectorAll(".ag-column-select-list").forEach(s=>{s.querySelectorAll(".ag-column-select-virtual-list-item").forEach(l=>{const c=l.getAttribute("aria-label");I(l.querySelector(".ag-column-group-closed-icon"),M.columnSelectListItemGroupClosedIcon(c)),I(l.querySelector(".ag-column-select-checkbox input[type=checkbox]"),M.columnSelectListItemCheckbox(c)),I(l.querySelector(".ag-drag-handle"),M.columnSelectListItemDragHandle(c))})}),this.setupColumnDropArea(n,"toolbar")}),a.querySelectorAll(".ag-filter-panel").forEach(n=>{I(n,M.filterToolPanel()),I(n.querySelector("button.ag-filter-add-button"),M.filterToolPanelAddFilterButton()),n.querySelectorAll(".ag-filter-card").forEach(s=>{const l=s.querySelector(".ag-filter-card-title")?.textContent,c=s.querySelector(".ag-filter-type-select");I(c,M.filterToolPanelFilterTypeSelector(l)),s.querySelectorAll(".ag-filter").forEach(d=>this.setupFilterInstance(d,{source:"filter-toolpanel",colLabel:l}))})}),a.querySelectorAll(".ag-filter-toolpanel").forEach(n=>{I(n.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),M.filterToolPanelSearchInput()),n.querySelectorAll(".ag-filter-toolpanel-group").forEach(s=>{const l=s.querySelector(".ag-filter-toolpanel-group-title")?.textContent;I(s,M.filterToolPanelGroup(l)),I(s.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),M.filterToolPanelGroupCollapsedIcon(l));const c=s.querySelector(".ag-filter-toolpanel-instance-filter");c&&this.setupFilterInstance(c,{source:"filter-toolpanel",colLabel:l})})})}),I(e.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),M.statusBarTotalAndFilteredRowCount()),I(e.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),M.statusBarTotalRowCount()),I(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),M.statusBarFilteredRowCount()),I(e.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),M.statusBarSelectedRowCount()),I(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),M.statusBarAggregations()),e.querySelectorAll(".ag-paging-panel").forEach(a=>{I(a.querySelector(".ag-paging-page-size .ag-picker-field-display"),M.paginationPanelSizePickerDisplay(a.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent)),a.querySelectorAll(".ag-paging-row-summary-panel-number").forEach(n=>{switch(n.dataset.ref){case"lbFirstRowOnPage":I(n,M.paginationPanelFirstRowOnPage(n.textContent));break;case"lbLastRowOnPage":I(n,M.paginationPanelLastRowOnPage(n.textContent));break;case"lbRecordCount":I(n,M.paginationPanelRecordCount(n.textContent));break}}),a.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach(n=>{I(n,M.paginationSummaryPanelButton(n.getAttribute("aria-label")?.toLowerCase()))}),a.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach(n=>{switch(n.dataset.ref){case"lbCurrentStatic":I(n,M.paginationSummaryPanelCurrentPage(n.textContent));break;case"lbCurrentInput":{const l=n.querySelector("input")?.value??n.textContent;I(n,M.paginationSummaryPanelCurrentPage(l));break}case"lbTotal":I(n,M.paginationSummaryPanelTotalPage(n.textContent));break}}),a.querySelectorAll(".ag-paging-page-number").forEach(n=>{I(n,M.paginationPageNumber(n.textContent))})}),I(e.querySelector(".ag-fill-handle"),M.fillHandle()),e.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach(a=>{I(a.querySelector(".ag-panel-title-bar-button-icon"),M.columnChooserCloseButton()),I(a.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),M.columnChooserSearchBarCheckbox()),I(a.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),M.columnChooserSearchBarFilter()),a.querySelectorAll(".ag-column-select-list").forEach(n=>{n.querySelectorAll(".ag-column-select-virtual-list-item").forEach(s=>{const l=s.getAttribute("aria-label");I(s.querySelector(".ag-column-group-closed-icon"),M.columnChooserListItemGroupClosedIcon(l)),I(s.querySelector(".ag-column-select-checkbox input[type=checkbox]"),M.columnChooserListItemCheckbox(l)),I(s.querySelector(".ag-drag-handle"),M.columnChooserListItemDragHandle(l))})})}),I(e.querySelector(".ag-overlay-wrapper"),M.overlay());const i=e.querySelector(".ag-column-drop-wrapper");i&&this.setupColumnDropArea(i,"panel")}setupFilterInstance(e,t){if(!e)return;e.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach(i=>{I(i,M.filterInstancePickerDisplay(t))});const o=t.source==="floating-filter"?".ag-floating-filter-body":".ag-filter-body";e.querySelectorAll(`${o} .ag-input-field:not(.ag-hidden) input[type="number"]`).forEach((i,a,n)=>{const l=n.length>1?{...t,index:a}:t;I(i,M.numberFilterInstanceInput(l))}),e.querySelectorAll(`${o} .ag-input-field:not(.ag-hidden) input[type="text"]`).forEach((i,a,n)=>{const l=n.length>1?{...t,index:a}:t;I(i,M.textFilterInstanceInput(l))}),e.querySelectorAll(`${o} .ag-input-field:not(.ag-hidden) input[type="date"], ${o} .ag-input-field:not(.ag-hidden) input[type="datetime-local"]`).forEach((i,a,n)=>{const l=n.length>1?{...t,index:a}:t;I(i,M.dateFilterInstanceInput(l))});const r=e.querySelector('.ag-mini-filter input[type="text"]');I(r,M.setFilterInstanceMiniFilterInput(t)),e.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach(i=>{const a=i.querySelector(".ag-checkbox-label")?.textContent?.trim(),n=i.querySelector('input[type="checkbox"]');I(n,M.setFilterInstanceItem(t,a))}),e.querySelectorAll(".ag-filter-apply-panel button").forEach(i=>{I(i,M.setFilterApplyPanelButton(t,i.textContent))}),e.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach(i=>{const a=i.querySelector(".ag-radio-button-label")?.textContent;I(i.querySelector("input[type=radio]"),M.filterConditionRadioButton(t,a))})}setupColumnDropArea(e,t){e.querySelectorAll(".ag-column-drop").forEach(o=>{const r=q7(o);I(o,M.columnDropArea(t,r)),o.querySelectorAll(".ag-column-drop-cell").forEach(i=>{const a=i.querySelector(".ag-column-drop-cell-text")?.textContent;I(i.querySelector(".ag-drag-handle"),M.columnDropCellDragHandle(t,r,a)),I(i.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),M.columnDropCellCancelButton(t,r,a))})})}},_7={moduleName:"Testing",version:R,beans:[U7]};function j7({testIdAttribute:e}={}){e&&W7(e),rc.registerModules([_7])}var K7=class{setGridId(e){this.gridId=e}wrap(e,t,o,r){const i=this.createWrapper(e,r);for(const a of t??[])this.createMethod(i,a,!0);for(const a of o??[])this.createMethod(i,a,!1);return i}createMethod(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))}createMethodProxy(e,t,o){const r=this.gridId;return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&pc(r,49,{methodName:t}),null)}}},Y7=class extends Tu{constructor(e){super(e,sr)}},Q7=class extends vs{constructor(e){super(e,sr)}},Z7=".ag-field-set{align-items:center;display:flex}.ag-field-set-wrapper{display:flex}.ag-field-set-wrapper-horizontal{flex-direction:row}.ag-field-set-wrapper-vertical{flex-direction:column}",J7={tag:"div",cls:"ag-field-set",role:"group",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-field-set-wrapper ag-field-set-wrapper-horizontal"}]},H0=class extends Ic{constructor(e){super(e,J7),this.eLabel=k,this.eWrapper=k,this.registerCSS(Z7)}postConstruct(){super.postConstruct(),this.addCss("ag-field-set"),this.getGui().setAttribute("aria-labelledby",this.getLabelId())}addItems(e){for(const t of e)this.addItem(t)}addItem(e){const t=es(e)?e.getGui():e;this.eWrapper.appendChild(t)}setDirection(e){const t=this.eWrapper;return t.classList.toggle("ag-field-set-wrapper-horizontal",e==="horizontal"),t.classList.toggle("ag-field-set-wrapper-vertical",e==="vertical"),this}},X7={selector:"AG-FIELD-SET",component:H0},$7='.ag-toggle-button{flex:none;min-width:unset;width:unset}.ag-toggle-button-input-wrapper{flex:none;height:var(--ag-toggle-button-height);max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width);position:relative;:where(.ag-toggle-button-input){cursor:pointer;display:block;height:var(--ag-toggle-button-height);margin:0;max-width:var(--ag-toggle-button-width);min-width:var(--ag-toggle-button-width)}}@media not (forced-colors:active){.ag-toggle-button-input-wrapper{background-color:var(--ag-toggle-button-off-background-color);border-radius:calc(var(--ag-toggle-button-height)*.5);transition:background-color .1s;:where(.ag-toggle-button-input){-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}&.ag-checked{background-color:var(--ag-toggle-button-on-background-color)}&.ag-disabled{opacity:.5}}.ag-toggle-button-input-wrapper:before{background-color:var(--ag-toggle-button-switch-background-color);border-radius:100%;content:"";display:block;height:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2);left:var(--ag-toggle-button-switch-inset);pointer-events:none;position:absolute;top:var(--ag-toggle-button-switch-inset);transition:left .1s;width:calc(var(--ag-toggle-button-height) - var(--ag-toggle-button-switch-inset)*2)}.ag-toggle-button-input-wrapper.ag-checked:before{left:calc(100% - var(--ag-toggle-button-height) + var(--ag-toggle-button-switch-inset))}.ag-toggle-button-input-wrapper:focus-within{box-shadow:var(--ag-focus-shadow)}}',N0=class extends wi{constructor(e){super(e,"ag-toggle-button"),this.registerCSS($7)}setValue(e,t){return super.setValue(e,t),this.toggleCss("ag-selected",this.getValue()),this}},ez={selector:"AG-TOGGLE-BUTTON",component:N0};function tz(e){const t=Object.freeze({...e});class o extends x{constructor(){super(...arguments),this.beanName="internalFeatureFlags",this.flags=t}}return{moduleName:"InternalFeatureFlags",version:R,beans:[o]}}return zf(),rc.registerModules([C0]),Cr!=Ho&&(Ln.exports=Ho),Ln.exports});