ag-grid-enterprise
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
5 lines • 2.58 MB
JavaScript
(function(tr,gn){typeof exports=="object"&&typeof module<"u"?module.exports=gn():typeof define=="function"&&define.amd?define("agGrid",gn):tr.agGrid=gn()})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:this,function(){var tr={},gn=tr,Zd={exports:tr};if(typeof Tie>"u")var Tie=function(t){throw new Error("Unknown module: "+t)};var Qd=Object.defineProperty,oP=Object.getOwnPropertyDescriptor,rP=Object.getOwnPropertyNames,nP=Object.prototype.hasOwnProperty,aP=(e,t)=>{for(var s in t)Qd(e,s,{get:t[s],enumerable:!0})},lP=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rP(t))!nP.call(e,o)&&o!==s&&Qd(e,o,{get:()=>t[o],enumerable:!(i=oP(t,o))||i.enumerable});return e},cP=e=>lP(Qd({},"__esModule",{value:!0}),e),qm={};aP(qm,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>Jn,AdvancedFilterModule:()=>d1,AgAbstractCellEditor:()=>Lo,AgAbstractInputField:()=>mi,AgAbstractLabel:()=>$n,AgCheckbox:()=>$i,AgCheckboxSelector:()=>fs,AgColumn:()=>hi,AgColumnGroup:()=>yr,AgContentEditableField:()=>Bp,AgContentEditableFieldSelector:()=>yN,AgFieldSet:()=>C0,AgFieldSetSelector:()=>v0,AgFilterButtonSelector:()=>by,AgInputDateField:()=>Lr,AgInputNumberField:()=>ra,AgInputNumberFieldSelector:()=>kr,AgInputTextArea:()=>_S,AgInputTextAreaSelector:()=>Tc,AgInputTextField:()=>Ct,AgInputTextFieldSelector:()=>Nt,AgPickerField:()=>Ac,AgPromise:()=>q,AgProvidedColumnGroup:()=>vr,AgRadioButton:()=>rp,AgRadioButtonSelector:()=>oV,AgSelect:()=>Et,AgSelectSelector:()=>Ci,AgToggleButton:()=>Wo,AgToggleButtonSelector:()=>w0,AggregationModule:()=>kf,AiToolkitModule:()=>f1,AlignedGridsModule:()=>FS,AllCommunityModule:()=>h0,AllEnterpriseModule:()=>eP,AutoGenerateColumnsModule:()=>LS,BaseComponentWrapper:()=>CN,BaseCreator:()=>Ug,BaseGridSerializingSession:()=>$g,BaseSelectionService:()=>Lp,BatchEditModule:()=>NF,BeanStub:()=>F,BigIntFilterModule:()=>$y,CalculatedColumnsModule:()=>YF,CellApiModule:()=>mS,CellRangeType:()=>hw,CellSelectionModule:()=>yd,CellSpanModule:()=>r0,CellStyleModule:()=>Gp,CheckboxEditorModule:()=>cy,ClientSideRowModelApiModule:()=>sb,ClientSideRowModelModule:()=>cg,ClipboardModule:()=>eR,ColumnApiModule:()=>Kn,ColumnAutoSizeModule:()=>VS,ColumnHoverModule:()=>BS,ColumnMenuModule:()=>Tf,ColumnsToolPanelModule:()=>$1,Component:()=>D,ContextMenuModule:()=>Af,CsvExportModule:()=>Kg,CustomEditorModule:()=>hy,CustomFilterModule:()=>_y,DETAIL_ROW_ID_PREFIX:()=>Zl,DateEditorModule:()=>ly,DateFilterModule:()=>Ky,DragAndDropModule:()=>rb,DragSourceType:()=>Jv,EventApiModule:()=>Tp,ExcelExportModule:()=>cx,ExternalFilterModule:()=>qy,FakeHScrollComp:()=>kw,FakeVScrollComp:()=>Gw,FileInputOverlayModule:()=>DS,FilterButtonComp:()=>Vr,FilterComp:()=>Br,FilterWrapperComp:()=>op,FiltersToolPanelModule:()=>oR,FindModule:()=>BF,FormulaModule:()=>fm,GRAND_TOTAL_ROW_ID:()=>zi,GROUP_AUTO_COLUMN_ID:()=>es,GROUP_HIERARCHY_COLUMN_ID_PREFIX:()=>Wv,GROUP_TOTAL_ROW_ID_PREFIX:()=>Do,GridBodyCtrl:()=>Bw,GridChartsModule:()=>Eie,GridCoreCreator:()=>bS,GridCtrl:()=>Kw,GridHeaderCtrl:()=>yw,GridStateModule:()=>Jy,GroupFilterModule:()=>Qx,HeaderRowContainerCtrl:()=>Iw,HighlightChangesModule:()=>Dp,InfiniteRowModelModule:()=>Yy,IntegratedChartsModule:()=>Km,KeyCode:()=>S,LargeTextEditorModule:()=>uy,LicenseManager:()=>Np,LocaleModule:()=>Zy,LocaleService:()=>Xy,ManagedFocusFeature:()=>gi,MasterDetailModule:()=>aR,MenuModule:()=>FU,ModuleRegistry:()=>Il,MultiFilterModule:()=>gx,NewFiltersToolPanelModule:()=>rR,NotesModule:()=>EF,NumberEditorModule:()=>ay,NumberFilterModule:()=>Uy,PaginationModule:()=>t0,PinnedRowModel:()=>dw,PinnedRowModule:()=>s0,PivotModule:()=>bR,PositionableFeature:()=>Ql,ProvidedFilter:()=>In,QuickFilterModule:()=>jy,ROOT_NODE_ID:()=>An,ROW_NUMBERS_COLUMN_ID:()=>gh,RangeSelectionModule:()=>Iq,RenderApiModule:()=>i0,RichSelectModule:()=>X1,RowApiModule:()=>TS,RowAutoHeightModule:()=>o0,RowContainerCtrl:()=>Ww,RowDragModule:()=>nb,RowGroupingEditModule:()=>QF,RowGroupingModule:()=>Hf,RowGroupingPanelModule:()=>Zx,RowNode:()=>mt,RowNumbersModule:()=>Wf,RowSelectionModule:()=>d0,RowStyleModule:()=>u0,SELECTION_COLUMN_ID:()=>ql,STRUCTURED_SCHEMA_FEATURES:()=>sw,ScrollApiModule:()=>AS,SelectEditorModule:()=>dy,ServerSideRowModelApiModule:()=>PR,ServerSideRowModelModule:()=>ER,ServerSideTransactionResultStatus:()=>uw,SetFilterModule:()=>ex,ShowValuesAsModule:()=>OF,SideBarModule:()=>Ra,SparklinesModule:()=>mm,StatusBarModule:()=>sx,TabGuardComp:()=>Vo,TabGuardCtrl:()=>vN,TabGuardFeature:()=>wN,TextEditorModule:()=>ny,TextFilterModule:()=>Wy,ToolbarModule:()=>ax,TooltipModule:()=>oa,TouchListener:()=>os,TreeDataModule:()=>xR,UndoRedoEditModule:()=>ry,ValidationModule:()=>f0,ValueCacheModule:()=>fS,VanillaFrameworkOverrides:()=>vS,ViewportRowModelModule:()=>Jx,_AgColorPicker:()=>Qp,_AgColorPickerSelector:()=>H9,_AgContextMenuService:()=>Y0,_AgDialog:()=>Zp,_AgGroupComponent:()=>ti,_AgGroupComponentSelector:()=>Me,_AgInputRange:()=>K0,_AgInputRangeSelector:()=>j0,_AgMenuItemComponent:()=>id,_AgMenuItemRenderer:()=>X0,_AgMenuList:()=>od,_AgPanel:()=>Xp,_AgSlider:()=>Yt,_AgSliderSelector:()=>Ht,_AgTabbedLayout:()=>ef,_AgVirtualList:()=>U0,_AgVirtualListDragFeature:()=>$0,_BOOLEAN_MIXED_GRID_OPTIONS:()=>Ig,_BaseSingleColService:()=>Ip,_ChangedRowNodes:()=>No,_ColumnFilterModule:()=>Is,_ColumnGroupModule:()=>fg,_ColumnMoveModule:()=>pc,_CsrmSsrmSharedApiModule:()=>eg,_DATA_TYPE_DERIVED_COL_DEF_PROPERTIES:()=>Sb,_DragModule:()=>gc,_EditCoreModule:()=>Ds,_EmptyBean:()=>KA,_FilterCoreModule:()=>ha,_FilterValueModule:()=>$c,_GET_ALL_EVENTS:()=>bk,_GET_ALL_GRID_OPTIONS:()=>nS,_GET_SHALLOW_GRID_OPTIONS:()=>Ik,_HeaderComp:()=>cS,_HorizontalResizeModule:()=>ug,_KeyboardNavigationModule:()=>ea,_PUBLIC_EVENTS:()=>Tg,_PUBLIC_EVENT_HANDLERS_MAP:()=>wc,_PopupModule:()=>Cs,_ROW_ID_PREFIX_BOTTOM_PINNED:()=>tc,_ROW_ID_PREFIX_ROW_GROUP:()=>xh,_ROW_ID_PREFIX_TOP_PINNED:()=>ec,_RowModelSharedApiModule:()=>tg,_STOP_PROPAGATION_CALLBACKS:()=>_i,_SharedDragAndDropModule:()=>Ui,_SharedExportModule:()=>Wg,_SharedMenuModule:()=>ep,_SharedRowSelectionModule:()=>kp,_SortModule:()=>uc,_SsrmInfiniteSharedApiModule:()=>sg,_addAdditionalCss:()=>eS,_addColumnDefaultAndTypes:()=>ui,_addFocusableContainerListener:()=>Oo,_addGridCommonParams:()=>H,_applyColumnState:()=>Vt,_applyHeaderWrapperHidden:()=>Tw,_applyHeaderWrapperMaxHeight:()=>Aw,_areCellsEqual:()=>Fr,_attemptToRestoreCellFocus:()=>Ih,_buildColumnTree:()=>mg,_canSkipShowingRowGroup:()=>mv,_clamp:()=>Je,_combineAttributesAndGridOptions:()=>RT,_consoleError:()=>pr,_convertColumnEventSourceType:()=>Xs,_coreThemeDefaults:()=>Pb,_createCellId:()=>pi,_createElement:()=>J,_createGlobalRowEvent:()=>Rh,_createIcon:()=>Qs,_createIconNoSpan:()=>W,_createRowNodeSibling:()=>Fh,_createUserColumn:()=>Wl,_csrmFirstLeaf:()=>Wi,_csrmReorderAllLeafs:()=>ig,_destroyColumnTreeAll:()=>Xl,_destroyColumnTreeUnused:()=>fh,_dispatchColumnChangedEvent:()=>$l,_doDeltaSort:()=>ag,_errMsg:()=>kt,_error:()=>re,_findEnterpriseCoreModule:()=>rv,_focusGridInnerElement:()=>Dh,_focusNextGridCoreContainer:()=>Zs,_forEachChangedGroupDepthFirst:()=>ls,_formatNumberCommas:()=>ci,_getAbsoluteRowIndex:()=>ic,_getCallbackForEvent:()=>yv,_getCellByPosition:()=>gs,_getCellCtrlForEventTarget:()=>_n,_getCellPositionForEvent:()=>dg,_getCellRendererDetails:()=>Io,_getCheckboxLocation:()=>Cr,_getCheckboxes:()=>Gi,_getClientSideRowModel:()=>is,_getColumnStateFromColDef:()=>ph,_getDefaultFloatingFilterType:()=>ip,_getDefaultSimpleFilter:()=>Oc,_getDisplaySortForColumn:()=>hh,_getEditorRendererDetails:()=>Ch,_getEnableColumnSelection:()=>di,_getFillHandle:()=>zl,_getFilterDetails:()=>vh,_getFilterModel:()=>qe,_getFilterParamsForDataType:()=>Gc,_getFirstRow:()=>ko,_getFloatingFilterCompDetails:()=>wh,_getFloatingFiltersHeight:()=>oc,_getGlobalGridOption:()=>Yu,_getGrandTotalPinnedFloat:()=>Vl,_getGrandTotalRow:()=>Ms,_getGridOption:()=>ET,_getGridRegisteredModules:()=>iv,_getGroupAggFiltering:()=>ki,_getGroupSelection:()=>Pn,_getGroupSelectsDescendants:()=>Oi,_getGroupTotalRowCallback:()=>Eo,_getHeaderCheckbox:()=>En,_getHeaderClassesFromColDef:()=>nc,_getHeaderRowCount:()=>Lh,_getInnerCellRendererDetails:()=>Dn,_getIsRowSelectable:()=>_l,_getLastRow:()=>Go,_getMaxConcurrentDatasourceRequests:()=>sh,_getNormalisedMousePosition:()=>Un,_getPinnedSectionWidths:()=>Oh,_getRowAbove:()=>rs,_getRowBelow:()=>ot,_getRowContainerClass:()=>zw,_getRowContainerOptions:()=>Wn,_getRowCtrlForEventTarget:()=>Yh,_getRowHeightAsNumber:()=>Gt,_getRowHeightForNode:()=>et,_getRowIdCallback:()=>qs,_getRowNode:()=>Oe,_getRowSelectionMode:()=>Po,_getRowSpanContainerClass:()=>_w,_getServerSideRowModel:()=>Rr,_getShouldDisplayTooltip:()=>ia,_getSortModel:()=>Er,_getSuppressMultiRanges:()=>vv,_getToolPanelClassesFromColDef:()=>zh,_getValueUsingDotPath:()=>Pc,_getViewportRowModel:()=>wA,_interpretAsRightClick:()=>Mn,_isAnimateRows:()=>Fo,_isCalculatedColumnsEnabled:()=>Ag,_isCellSelectionEnabled:()=>Ft,_isClientSideRowModel:()=>fe,_isColumnMenuAnchoringEnabled:()=>nh,_isColumnsSortingCoupledToGroup:()=>js,_isDomLayout:()=>$e,_isFiniteNumber:()=>Di,_isFullWidthGroupRow:()=>Nl,_isGetRowHeightFunction:()=>Ol,_isGroupHideColumnsUntilExpanded:()=>th,_isGroupMultiAutoColumn:()=>mr,_isGroupRowsSticky:()=>Fn,_isGroupUseEntireRow:()=>Bl,_isHeaderFocusSuppressed:()=>ns,_isLegacyMenuEnabled:()=>Ke,_isMultiRowSelection:()=>Ys,_isProtoPollutionKey:()=>ju,_isRowBefore:()=>je,_isRowNumbers:()=>Li,_isRowSelection:()=>jt,_isSameRow:()=>Re,_isServerSideRowModel:()=>Rt,_isSetFilterByDefault:()=>rh,_isShowTooltipWhenTruncated:()=>Dr,_isStopPropagationForAgGrid:()=>Bt,_isUseApplyButton:()=>xr,_isUsingNewCellSelectionAPI:()=>Cv,_isUsingNewRowSelectionAPI:()=>Hl,_logPreInitWarn:()=>hv,_mergeDeep:()=>We,_mergedEqual:()=>hr,_normaliseCalculatedExpression:()=>bc,_normalizeSortType:()=>hs,_partitionByPinned:()=>Sw,_preInitErrMsg:()=>Gl,_prevOrNextDisplayedRow:()=>Ln,_processOnChange:()=>FT,_refreshFilterUi:()=>ca,_refreshHandlerAndUi:()=>Lc,_registerModule:()=>xo,_resetColumnState:()=>lh,_resolvePivotColumnForRow:()=>Vi,_resolveSortOptions:()=>rg,_selectAllCells:()=>Zh,_setColMenuVisible:()=>da,_setColsVisible:()=>br,_setUmd:()=>ov,_shouldUpdateColVisibilityAfterGroup:()=>ih,_skipFocusableContainerListenerForAgGrid:()=>Cw,_stopPropagationForAgGrid:()=>Ge,_suppressCellMouseEvent:()=>zn,_themeAlpineParams:()=>jb,_themeBalhamParams:()=>qb,_themeMaterialParams:()=>Xb,_themeQuartzParams:()=>$b,_toFiniteNumber:()=>Xu,_translateForFilter:()=>ss,_unwrapUserComp:()=>vs,_updateFilterModel:()=>kc,_updatePinnedSectionWidths:()=>bw,_updateRowNodeAfterSort:()=>lg,_warn:()=>E,_warnOnce:()=>ft,agTestIdFor:()=>$,buttonStyleAlpine:()=>Ab,buttonStyleBalham:()=>Db,buttonStyleBase:()=>Mb,buttonStyleQuartz:()=>Tb,checkboxStyleDefault:()=>Yn,colorSchemeDark:()=>vL,colorSchemeDarkBlue:()=>yL,colorSchemeDarkWarm:()=>bL,colorSchemeLight:()=>hL,colorSchemeLightCold:()=>mL,colorSchemeLightWarm:()=>pL,colorSchemeVariable:()=>Xn,columnDropStyleBordered:()=>xg,columnDropStylePlain:()=>Rg,convertColumnGroupState:()=>SG,convertColumnState:()=>xS,createGrid:()=>Mie,createPart:()=>Se,createTheme:()=>qn,dispatchColumnVisibleEvent:()=>Ul,distributeGroupValue:()=>XF,enableDevValidations:()=>cN,exportMultipleSheetsAsExcel:()=>A9,forEachColDef:()=>$v,getGridApi:()=>wG,getGridElement:()=>yS,getMultipleSheetsAsExcel:()=>qp,iconOverrides:()=>DL,iconSetAlpine:()=>kb,iconSetBalham:()=>Lb,iconSetMaterial:()=>Gb,iconSetQuartz:()=>Cc,iconSetQuartzBold:()=>GL,iconSetQuartzLight:()=>kL,iconSetQuartzRegular:()=>Nb,inputStyleBase:()=>NL,inputStyleBordered:()=>vc,inputStyleUnderlined:()=>Hb,isColumn:()=>OT,isColumnGroup:()=>ts,isColumnGroupAutoCol:()=>Tn,isColumnSelectionCol:()=>Sr,isCombinedFilterModel:()=>Sh,isProvidedColumnGroup:()=>Ot,isRowNumberCol:()=>tt,isSpecialCol:()=>Hi,onRowHeightChanged:()=>cc,provideGlobalGridOptions:()=>nT,resetRowHeights:()=>dc,setupAgTestIds:()=>mN,styleMaterial:()=>Yb,tabStyleAlpine:()=>Wb,tabStyleBase:()=>UL,tabStyleMaterial:()=>_b,tabStyleQuartz:()=>zb,tabStyleRolodex:()=>Ub,themeAlpine:()=>tk,themeBalham:()=>ik,themeMaterial:()=>nk,themeQuartz:()=>Kb,wrapAgTestIdFor:()=>dN}),Zd.exports=cP(qm);var S={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"},dP=65,uP=67,hP=86,gP=68,pP=90,fP=89;function Ym(e){const{keyCode:t}=e;let s;switch(t){case dP:s=S.A;break;case uP:s=S.C;break;case hP:s=S.V;break;case gP:s=S.D;break;case pP:s=S.Z;break;case fP:s=S.Y;break;default:s=e.code}return s}var Jd="36.0.0",mP=':where([class^=ag-]),:where([class^=ag-]):after,:where([class^=ag-]):before{box-sizing:border-box}: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([class^=ag-]):where(div,span,label):focus-visible{box-shadow:inset var(--ag-focus-shadow);outline:none;&:where(.invalid){box-shadow:inset var(--ag-focus-error-shadow)}}:where([class^=ag-]) ::-ms-clear{display:none}.ag-hidden{display:none!important}.ag-invisible{visibility:hidden!important}.ag-tab-guard{display:block;height:0;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-popup{background-color:var(--ag-wrapper-background-color)}.ag-popup-child{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);--ag-indentation-level:0}:where(.ag-icon):before{align-items:center;background-color:currentcolor;color:inherit;content:"";display:flex;font-family:inherit;font-size:var(--ag-icon-size);font-style:normal;font-variant:normal;height:var(--ag-icon-size);justify-content:center;line-height:var(--ag-icon-size);-webkit-mask-size:contain;mask-size:contain;text-transform:none;width:var(--ag-icon-size)}.ag-icon{background-position:50%;background-repeat:no-repeat;background-size:contain;color:var(--ag-icon-color);display:block;height:var(--ag-icon-size);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ag-icon-size)}.ag-disabled .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}',eu=typeof window!="object"||!window?.document?.fonts?.forEach,qa=!1,uo=(e,t,s,i,o,r,n=!1)=>{if(eu||qa)return;let a=e;i&&(a=`@layer ${CSS.escape(i).replaceAll("\\.",".")} { ${e} }`);let l=Vs.map.get(t);if(l||(l=[],Vs.map.set(t,l)),l.some(h=>h.injectedCss===a))return;const c=document.createElement("style");r&&c.setAttribute("nonce",r),c.dataset.agCss=s,c.dataset.agCssVersion=Jd,c.textContent=a;const d={rawCss:e,injectedCss:a,el:c,priority:o,isParams:n};let u;for(const h of l){if(h.priority>o)break;u=h}if(u){u.el.after(c);const h=l.indexOf(u);l.splice(h+1,0,d)}else t.nodeName==="STYLE"?t.after(c):t.insertBefore(c,t.querySelector(":not(title, meta)")),l.push(d)},Xm=(e,t,s,i)=>{uo(mP,e,"shared",t,0,s),i?.forEach((o,r)=>o.forEach(n=>uo(n,e,r,t,0,s)))},CP=(e,t,s,i,o,r)=>{if(eu||qa)return;const n=Vs.grids.get(e);n?n.paramsCss=t:Vs.grids.set(e,{styleContainer:i,paramsCss:t}),tu(i),t&&s&&uo(t,i,s,o,2,r,!0)},vP=e=>{const t=Vs.grids.get(e)?.styleContainer;if(!t)return;Vs.grids.delete(e),Array.from(Vs.grids.values()).some(i=>i.styleContainer===t)?tu(t):(tu(t,!0),Vs.map.delete(t))},tu=(e,t=!1)=>{const s=new Set;for(const o of Vs.grids.values())o.styleContainer===e&&s.add(o.paramsCss);const i=Vs.map.get(e)??[];for(let o=i.length-1;o>=0;o--)(t||i[o].isParams&&!s.has(i[o].rawCss))&&(i[o].el.remove(),i.splice(o,1))},Zm=()=>{const e=globalThis.agStyleInjectionVersions??(globalThis.agStyleInjectionVersions=new Map);let t=e.get(Jd);return t||(t={map:new WeakMap,grids:new Map,paramsId:0},e.set(Jd,t)),t},Vs=Zm(),Se=e=>new Qm(e),Ri="$default",wP=0,Qm=class{constructor({feature:e,params:t,modeParams:s={},css:i,cssImports:o}){this.feature=e,this.css=i,this.cssImports=o,this.modeParams={[Ri]:{...s[Ri]??{},...t??{}},...s}}use(e,t,s){let i=this._inject;if(i==null){let{css:o}=this;if(o){const r=`ag-theme-${this.feature??"part"}-${++wP}`;typeof o=="function"&&(o=o()),o=`:where(.${r}) {
${o}
}
`;for(const n of this.cssImports??[])o=`@import url(${JSON.stringify(n)});
${o}`;i={css:o,class:r}}else i=!1;this._inject=i}return i&&e&&uo(i.css,e,i.class,t,1,s),i?i.class:!1}};function bP(e){return typeof e.then=="function"}function SP(e,t){return new q(s=>{s(window.setInterval(e,t))})}var q=class ja{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(s=>this.onDone(s),s=>this.onReject(s))}static all(t){return t.length?new ja(s=>{let i=t.length;const o=new Array(i);t.forEach((r,n)=>{r.then(a=>{o[n]=a,i--,i===0&&s(o)})})}):ja.resolve()}static resolve(t=null){return new ja(s=>s(t))}then(t){return new ja(s=>{this.status===1?s(t(this.resolution)):this.waiters.push(i=>s(t(i)))})}onDone(t){this.status=1,this.resolution=t;for(const s of this.waiters)s(t)}onReject(t){}},ai=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,s){const i=t?this.allAsyncListeners:this.allSyncListeners;let o=i.get(e);return!o&&s&&(o=new Set,i.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,s=!1){this.getListeners(e,s,!0).add(t)}removeEventListener(e,t,s=!1){const i=this.getListeners(e,s,!1);i&&(i.delete(t),i.size===0&&(s?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const s=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const{frameworkOverrides:i}=this,o=a=>{const l=i?()=>i.wrapIncoming(a):a;t?this.dispatchAsync(l):l()},r=this.getListeners(s,t,!1);if((r?.size??0)>0){const a=new Set(r);for(const l of a)r?.has(l)&&o(()=>l(e))}const n=this.getGlobalListeners(t);if(n.size>0){const a=new Set(n);for(const l of a)o(()=>l(s,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)},s=this.frameworkOverrides;s?s.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[];for(const t of e)t()}};function se(e){const t=e?.length;return t?e[t-1]:void 0}function Ee(e,t,s){if(e===t)return!0;if(!e||!t)return e==null&&t==null;const i=e.length;if(i!==t.length)return!1;if(s){for(let o=0;o<i;++o){const r=e[o],n=t[o];if(r!==n&&!s(r,n))return!1}return!0}for(let o=0;o<i;++o)if(e[o]!==t[o])return!1;return!0}function Jm(e,t){if(!t)return[];const s=t.length;if(e&&e!==t&&e.length===s){for(let i=0;i<s;++i)if(e[i]!==t[i])return t.slice();return e}return t.slice()}function yt(e,t){const s=e.indexOf(t);s>=0&&e.splice(s,1)}function eC(e,t){const s=e.length,i=t.length;if(!s||!i)return;let o=0;const r=new Set(t);for(let n=0;n<s;++n){const a=e[n];r.has(a)||(n!==o&&(e[o]=a),++o)}o<s&&(e.length=o)}function tC(e,t,s){const i=t.length;for(let o=0;o<i;++o)yt(e,t[o]);for(let o=i-1;o>=0;o--)e.splice(s,0,t[o])}function sC(e){return[].concat.apply([],e)}function yP(e,t){if(e===t)return[];const s=e?.length,i=t?.length;if(!s)return t?t.slice():[];if(!i)return e?e.slice():[];const o=new Set(e);for(let r=0;r<i;++r){const n=t[r];o.delete(n)||o.add(n)}return Array.from(o)}function ho(e,t,s){const i=e.get(t);if(i===void 0){e.set(t,[s]);return}i.push(s)}function iC(e){const t=new Map;if(e)for(let s=0,i=e.length;s<i;++s)t.set(e[s],s);return t}var He=e=>e==null||e===""?null:e;function V(e){return e!=null&&e!==""}function Pe(e){return!V(e)}var xt=e=>e!=null&&typeof e.toString=="function"?e.toString():null,li=(e,t)=>{const s=e?JSON.stringify(e):null,i=t?JSON.stringify(t):null;return s===i},sr=(e,t,s=!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:!s||typeof e!="string"?e>t?1:e<t?-1:0:e.localeCompare(t));function Wt(e){return e.eRootDiv.getRootNode()}function ce(e){return Wt(e).activeElement}function ye(e){const{gos:t,eRootDiv:s}=e;let i=null;const o=t.get("getDocument");return o&&V(o)?i=o():s&&(i=s.ownerDocument),i&&V(i)?i:document}function Bs(e){const t=ce(e);return t===null||t===ye(e).body}function pn(e){return ye(e).defaultView||window}function ir(e){let t=null,s;try{t=ye(e).fullscreenElement}catch{}finally{t||(t=Wt(e));const i=t.querySelector("body");i?s=i:t instanceof ShadowRoot?s=t:t instanceof Document?s=t?.documentElement:s=t}return s}function xP(e){return ir(e)?.clientWidth??(window.innerWidth||-1)}function RP(e){return ir(e)?.clientHeight??(window.innerHeight||-1)}function Dt(e,t,s){s==null||typeof s=="string"&&s==""?su(e,t):Ut(e,t,s)}function Ut(e,t,s){e.setAttribute(oC(t),s.toString())}function su(e,t){e.removeAttribute(oC(t))}function oC(e){return`aria-${e}`}function Be(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function FP(e){return Number.parseInt(e.getAttribute("aria-posinset"),10)}function EP(e){return e.getAttribute("aria-label")}function ve(e,t){Dt(e,"label",t)}function Ns(e,t){Dt(e,"labelledby",t)}function Ya(e,t){Dt(e,"describedby",t)}function rC(e,t){Dt(e,"live",t)}function PP(e,t){Dt(e,"atomic",t)}function MP(e,t){Dt(e,"relevant",t)}function Xa(e,t){Dt(e,"invalid",t)}function Za(e,t){Dt(e,"level",t)}function Qa(e,t){Dt(e,"disabled",t)}function iu(e,t){Dt(e,"hidden",t)}function fn(e,t){Dt(e,"activedescendant",t)}function TP(e,t){Ut(e,"autocomplete",t)}function Ie(e,t){Ut(e,"expanded",t)}function ou(e){su(e,"expanded")}function Ja(e,t){Ut(e,"setsize",t)}function el(e,t){Ut(e,"posinset",t)}function AP(e,t){Ut(e,"multiselectable",t)}function DP(e,t){Ut(e,"rowcount",t)}function mn(e,t){Ut(e,"rowindex",t)}function IP(e,t){Ut(e,"rowspan",t)}function LP(e,t){Ut(e,"colcount",t)}function ru(e,t){Ut(e,"colindex",t)}function nC(e,t){Ut(e,"colspan",t)}function kP(e,t){Ut(e,"sort",t)}function GP(e){su(e,"sort")}function Cn(e,t){Dt(e,"selected",t)}function aC(e,t){Ut(e,"checked",t===void 0?"mixed":t)}function go(e,t){Dt(e,"controls",t)}function nu(e,t){go(e,t.id),Ns(t,e.id)}function lC(e,t){Dt(e,"owns",t)}function tl(e,t){Dt(e,"haspopup",t===!1?null:t)}function sl(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}function il(e,t,s){const i=e.parentElement;let o=i&&i.firstChild;for(;o;)t&&o.classList.toggle(t,o===e),s&&o.classList.toggle(s,o!==e),o=o.nextSibling}var OP="[tabindex], input, select, button, textarea, [href]",cC="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function vn(e){return!e||!e.matches("input, select, button, textarea")||!e.matches(cC)?!1:ct(e)}function G(e,t,s={}){const{skipAriaHidden:i}=s;e.classList.toggle("ag-hidden",!t),i||iu(e,!t)}function au(e,t,s={}){const{skipAriaHidden:i}=s;e.classList.toggle("ag-invisible",!t),i||iu(e,!t)}function Es(e,t){const s="disabled",i=t?r=>r.setAttribute(s,""):r=>r.removeAttribute(s);i(e);const o=e.querySelectorAll("input")??[];for(const r of o)i(r)}function po(e,t,s){let i=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof s=="number"){if(++i>s)break}else if(e===s)break}return!1}function fo(e){const{height:t,width:s,borderTopWidth:i,borderRightWidth:o,borderBottomWidth:r,borderLeftWidth:n,paddingTop:a,paddingRight:l,paddingBottom:c,paddingLeft:d,marginTop:u,marginRight:h,marginBottom:g,marginLeft:p,boxSizing:f}=window.getComputedStyle(e),m=Number.parseFloat;return{height:m(t||"0"),width:m(s||"0"),borderTopWidth:m(i||"0"),borderRightWidth:m(o||"0"),borderBottomWidth:m(r||"0"),borderLeftWidth:m(n||"0"),paddingTop:m(a||"0"),paddingRight:m(l||"0"),paddingBottom:m(c||"0"),paddingLeft:m(d||"0"),marginTop:m(u||"0"),marginRight:m(h||"0"),marginBottom:m(g||"0"),marginLeft:m(p||"0"),boxSizing:f}}function ol(e){const t=fo(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom-t.borderTopWidth-t.borderBottomWidth:t.height}function wn(e){const t=fo(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight-t.borderLeftWidth-t.borderRightWidth:t.width}function rl(e){const{height:t,marginBottom:s,marginTop:i}=fo(e);return Math.floor(t+s+i)}function mo(e){const{width:t,marginLeft:s,marginRight:i}=fo(e);return Math.floor(t+s+i)}function dC(e){const t=e.getBoundingClientRect(),{borderTopWidth:s,borderLeftWidth:i,borderRightWidth:o,borderBottomWidth:r}=fo(e);return{top:t.top+(s||0),left:t.left+(i||0),right:t.right+(o||0),bottom:t.bottom+(r||0)}}function Hs(e,t){let s=e.scrollLeft;return t&&(s=Math.abs(s)),s}function Fi(e,t,s){s&&(t*=-1),e.scrollLeft=t}function ne(e){for(;e?.firstChild;)e.firstChild.remove()}function me(e){e?.parentNode&&e.remove()}function uC(e){return!!e.offsetParent}function ct(e){return e.checkVisibility?e.checkVisibility({checkVisibilityCSS:!0}):!(!uC(e)||window.getComputedStyle(e).visibility!=="visible")}function lu(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function hC(e,t,s){s?.nextSibling!==t&&(e.firstChild?s?s.nextSibling?e.insertBefore(t,s.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.prepend(t):e.appendChild(t))}function Co(e,t){for(let s=0;s<t.length;s++){const i=t[s],o=e.children[s];o!==i&&e.insertBefore(i,o)}}function VP(e){return e.replace(/[A-Z]/g,t=>`-${t.toLocaleLowerCase()}`)}function bn(e,t){if(t)for(const s of Object.keys(t)){const i=t[s];if(!s?.length||i==null)continue;const o=VP(s),r=i.toString(),n=r.replace(/\s*!important/g,""),a=n.length!=r.length?"important":void 0;e.style.setProperty(o,n,a)}}function Ei(e){return()=>{const t=e();return t?nl(t)||BP(t):!0}}function nl(e){return e.clientWidth<e.scrollWidth}function BP(e){return e.clientHeight<e.scrollHeight}function al(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):zs(e,t)}function zs(e,t){t=cu(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function or(e,t){t=cu(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function cu(e){return typeof e=="number"?`${e}px`:e}function ll(e){return e instanceof Node||e instanceof HTMLElement}function dt(e,t,s){s==null||s===""?e.removeAttribute(t):e.setAttribute(t,s.toString())}function du(e,t){if(!t.isContentEditable)return;const s=pn(e).getSelection();if(!s)return;const i=ye(e).createRange();i.selectNodeContents(t),i.collapse(!1),s.removeAllRanges(),s.addRange(i)}function _s(e,t,s){const o=pn(e).ResizeObserver,r=o?new o(s):null;return r?.observe(t),()=>r?.disconnect()}function ut(e,t){const s=pn(e);s.requestAnimationFrame?s.requestAnimationFrame(t):s.webkitRequestAnimationFrame?s.webkitRequestAnimationFrame(t):s.setTimeout(t,0)}var gC="data-ref",uu;function pC(){return uu??(uu=document.createTextNode(" ")),uu.cloneNode()}function Xe(e){const{attrs:t,children:s,cls:i,ref:o,role:r,tag:n}=e,a=document.createElement(n);if(i&&(a.className=i),o&&a.setAttribute(gC,o),r&&a.setAttribute("role",r),t)for(const l of Object.keys(t))a.setAttribute(l,t[l]);if(s)if(typeof s=="string")a.textContent=s;else{let l=!0;for(const c of s)c&&(typeof c=="string"?(a.appendChild(document.createTextNode(c)),l=!1):typeof c=="function"?a.appendChild(c()):(l&&(a.appendChild(pC()),l=!1),a.append(Xe(c)),a.appendChild(pC())))}return a}var NP=["touchstart","touchend","touchmove","touchcancel","scroll"],HP=["wheel"],hu={},cl=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return s=>{if(typeof hu[s]=="boolean")return hu[s];const i=document.createElement(e[s]||"div");return s="on"+s,hu[s]=s in i}})();function gu(e,t){return!t||!e?!1:_P(t).indexOf(e)>=0}function zP(e){const t=[];let s=e.target;for(;s;)t.push(s),s=s.parentElement;return t}function _P(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():zP(t)}function WP(e,t,s){const i=UP(t);let o;i!=null&&(o={passive:i}),e.addEventListener(t,s,o)}var UP=e=>{const t=NP.includes(e),s=HP.includes(e);if(t)return!0;if(s)return!1};function fC(e,t,s){if(s===0)return!1;const i=Math.abs(e.clientX-t.clientX),o=Math.abs(e.clientY-t.clientY);return Math.max(i,o)<=s}var rr=(e,t)=>{const s=e.identifier;for(let i=0,o=t.length;i<o;++i){const r=t[i];if(r.identifier===s)return r}return null};function dl(e,t){return e.gos.isElementInThisInstance(t.target)}function pu(e,t,s){const o=e.getBoundingClientRect().height,r=xP(s)-2,n=RP(s)-2;if(!e.offsetParent)return;const l=dC(e.offsetParent),{clientY:c,clientX:d}=t;let u=c-l.top-o/2,h=d-l.left-10;const g=ye(s),p=g.defaultView||window,f=p.pageYOffset||g.documentElement.scrollTop,m=p.pageXOffset||g.documentElement.scrollLeft;r>0&&h+e.clientWidth>r+m&&(h=r+m-e.clientWidth),h<0&&(h=0),n>0&&u+e.clientHeight>n+f&&(u=n+f-e.clientHeight),u<0&&(u=0),e.style.left=`${h}px`,e.style.top=`${u}px`}var ul=(e,...t)=>{for(const s of t){const[i,o,r,n]=s;i.addEventListener(o,r,n),e.push(s)}},fu=e=>{if(e){for(const[t,s,i,o]of e)t.removeEventListener(s,i,o);e.length=0}},Pi=e=>{e.cancelable&&e.preventDefault()};function $P(e,t){return t}function mu(e){return e?.getLocaleTextFunc()??$P}function Cu(e,t,s,i){const o=t[s];return e.getLocaleTextFunc()(s,typeof o=="function"?o(i):o,i)}function KP(e){return(t,s,i)=>e({key:t,defaultValue:s,variableValues:i})}function jP(e){return(t,s,i)=>{let o=e?.[t];if(o&&i?.length){let r=0;for(;!(r>=i.length||o.indexOf("${variable}")===-1);)o=o.replace("${variable}",i[r++])}return o??s}}var qP={type:"destroyed"},Ze=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(qP)}addEventListener(e,t,s){let i=this.localEventService;i||(i=new ai,this.localEventService=i),i.addEventListener(e,t,s)}removeEventListener(e,t,s){this.localEventService?.removeEventListener(e,t,s)}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 s=[],i=Object.keys(t);for(let o=0,r=i.length;o<r;++o){const n=i[o],a=t[n];a&&s.push(this._setupListener(e,n,a))}return s}_setupListener(e,t,s){if(this.destroyed)return()=>null;let i;if(YP(e))e.__addEventListener(t,s),i=()=>(e.__removeEventListener(t,s),null);else{const o=XP(e);e instanceof HTMLElement?WP(e,t,s):o?e.addListener(t,s):e.addEventListener(t,s),i=o?()=>(e.removeListener(t,s),null):()=>(e.removeEventListener(t,s),null)}return this.registerDestroyFunc(i)}setupPropertyListener(e,t){const{gos:s}=this;s.addPropertyEventListener(e,t);const i=()=>(s.removePropertyEventListener(e,t),null);return this.registerDestroyFunc(i)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupPropertyListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const s=e.join("-")+this.propertyListenerId++,i=o=>{const r=o.changeSet;if(r){let a=this.lastChangeSetIdLookup;if(a||(a={},this.lastChangeSetIdLookup=a),r.id===a[s])return;a[s]=r.id}const n={type:"propertyChanged",changeSet:r,source:o.source};t(n)};for(let o=0,r=e.length;o<r;++o)this.setupPropertyListener(e[o],i)}isAlive(){return!this.destroyed}getLocaleTextFunc(){return mu(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&&yt(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 s=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),s}createBean(e,t,s){return(t||this.stubContext).createBean(e,s)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};Ze.prototype.__v_skip=!0;function YP(e){return e.__addEventListener!==void 0}function XP(e){return e.eventServiceType==="global"}var R=null;function nr(e){return typeof e?.getGui=="function"}var mC=class{constructor(e){this.cssClassStates={},this.getGui=e}toggleCss(e,t){if(!e)return;if(e.includes(" ")){const i=(e||"").split(" ");if(i.length>1){for(const o of i)this.toggleCss(o,t);return}}this.cssClassStates[e]!==t&&e.length&&(this.getGui()?.classList.toggle(e,t),this.cssClassStates[e]=t)}},ZP=0,$t=class extends Ze{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=ZP++,this.cssManager=new mC(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(s=>[s.selector,s])),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(gC):null}applyElementsToComponent(e,t,s,i=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const o=this[t];if(o===R)this[t]=i??e;else{const r=s?.[t];if(!this.suppressDataRefValidation&&!r)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${o}`)}}}createChildComponentsFromTags(e,t){const s=[];for(const i of e.childNodes??[])s.push(i);for(const i of s){if(!(i instanceof HTMLElement))continue;const o=this.createComponentFromElement(i,r=>{const n=r.getGui();if(n)for(const a of i.attributes??[])n.setAttribute(a.name,a.value)},t);if(o){if(o.addItems&&i.children.length){this.createChildComponentsFromTags(i,t);const r=Array.prototype.slice.call(i.children);o.addItems(r)}this.swapComponentForNode(o,e,i)}else i.childNodes&&this.createChildComponentsFromTags(i,t)}}createComponentFromElement(e,t,s){const i=e.nodeName,o=this.getDataRefAttribute(e),r=i.indexOf("AG-")===0,n=r?this.componentSelectors.get(i):null;let a=null;if(n){const l=s&&o?s[o]:void 0;a=new n.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(r)throw new Error(`selector: ${i}`);return this.applyElementsToComponent(e,o,s,a),a}swapComponentForNode(e,t,s){const i=e.getGui();t.replaceChild(i,s),t.insertBefore(document.createComment(s.nodeName),i),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e,t){const s=t??this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui());for(const i of e)i.setAttribute("tabindex",s.toString())}setTemplate(e,t,s){let i;typeof e=="string"||e==null?i=lu(e):i=Xe(e),this.setTemplateFromElement(i,t,s)}setTemplateFromElement(e,t,s,i=!1){if(this.eGui=e,this.suppressDataRefValidation=i,t)for(let o=0;o<t.length;o++){const r=t[o];this.componentSelectors.set(r.selector,r)}this.wireTemplate(e,s)}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 s=t;return e==null?null:(s||(s=this.eGui),ll(e)?{element:e,parent:s}:{element:e.getGui(),parent:s})}prependChild(e,t){const{element:s,parent:i}=this.getContainerAndElement(e,t)||{};!s||!i||i.prepend(s)}appendChild(e,t){const{element:s,parent:i}=this.getContainerAndElement(e,t)||{};!s||!i||i.appendChild(s)}isDisplayed(){return this.displayed}setVisible(e,t={}){if(e!==this.visible){this.visible=e;const{skipAriaHidden:s}=t;au(this.eGui,e,{skipAriaHidden:s})}}setDisplayed(e,t={}){if(e!==this.displayed){this.displayed=e;const{skipAriaHidden:s}=t;G(this.eGui,e,{skipAriaHidden:s});const i={type:"displayChanged",visible:this.displayed};this.dispatchLocalEvent(i)}}destroy(){this.parentComponent&&(this.parentComponent=void 0),super.destroy()}addGuiEventListener(e,t,s){this.eGui.addEventListener(e,t,s),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===CC?(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=CC}},CC=Symbol(),QP=1,JP=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,this.instanceId=QP++,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 s=new t;s.beanName?this.beans[s.beanName]=s:console.error(`Bean ${t.name} is missing beanName`),this.createdBeans.push(s)}for(const t of e.derivedBeans??[]){const{beanName:s,bean:i}=t(this);this.beans[s]=i,this.createdBeans.push(i)}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 s=this.beans;for(const i of e)i.preWireBeans?.(s),i.wireBeans?.(s);for(const i of e)i.preConstruct?.();t&&e.forEach(t);for(const i of e)i.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}},vu=new Set,Sn=(e,t)=>{vu.has(t)||(vu.add(t),e())};Sn._set=vu;var eM={pending:!1,funcs:[]},tM={pending:!1,funcs:[]};function hl(e,t="setTimeout",s){const i=t==="raf"?tM:eM;if(i.funcs.push(e),i.pending)return;i.pending=!0;const o=()=>{const r=i.funcs.slice();i.funcs.length=0,i.pending=!1;for(const n of r)n()};t==="raf"?ut(s,o):window.setTimeout(o,0)}function xe(e,t,s){let i;return function(...o){const r=this;return window.clearTimeout(i),i=window.setTimeout(function(){e.isAlive()&&t.apply(r,o)},s),i}}function vC(e,t){let s=0;return function(...i){const o=this,r=Date.now();r-s<t||(s=r,e.apply(o,i))}}function wC(e,t,s,i=100){const o=Date.now();let r=null,n=!1;const a=()=>{r!=null&&(window.clearInterval(r),r=null)};e.addDestroyFunc(a);const l=()=>{const c=Date.now()-o>i;(t()||c)&&(s(),n=!0,a())};l(),n||(r=window.setInterval(l,10))}var sM=class extends Ze{constructor(){super(),this.beanName="ariaAnnounce",this.descriptionContainer=null,this.pendingAnnouncements=new Map,this.lastAnnouncement="",this.updateAnnouncement=xe(this,this.updateAnnouncement.bind(this),200)}postConstruct(){const e=this.beans,t=ye(e),s=this.descriptionContainer=t.createElement("div");s.classList.add("ag-aria-description-container"),rC(s,"polite"),MP(s,"additions text"),PP(s,!0),e.eRootDiv.appendChild(s)}announceValue(e,t){this.pendingAnnouncements.set(t,e),this.updateAnnouncement()}updateAnnouncement(){if(!this.descriptionContainer)return;const e=Array.from(this.pendingAnnouncements.values()).join(". ");this.pendingAnnouncements.clear(),this.descriptionContainer.textContent="",setTimeout(()=>{this.handleAnnouncementUpdate(e)},50)}handleAnnouncementUpdate(e){if(!this.isAlive()||!this.descriptionContainer)return;let t=e;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();const{descriptionContainer:e}=this;e&&(ne(e),e.remove()),this.descriptionContainer=null,this.pendingAnnouncements.clear()}};function wu(e,t){const[s,i]=bC();i.appendChild(t);const o=SC(e,i);return[s,o]}function gl(e,t,s){const[i,o]=wu(e,s);return t.appendChild(i),()=>{o(),i.remove()}}function bC(){const e={tag:"div",cls:"ag-styled-root"},t=Xe({...e,children:[{...e,children:[e]}]});return[t,t.firstElementChild.firstElementChild]}function SC(e,t,s){const i=t.parentElement,o=i.parentElement,r=()=>{const[n,a,l]=e.getStyledRootClasses();o.className=["ag-styled-root",n].join(" "),i.className=["ag-styled-root",a].join(" "),t.className=["ag-styled-root",l].join(" "),s?.()};return r(),e.onThemeChanged(r)}var iM=class extends Ze{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 s={capturePointer:!0,dragSource:e,eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:i=>this.onDragStart(e,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push(s),this.beans.dragSvc.addDragSource(s)}setDragImageCompIcon(e,t=!1){const s=this.dragImageComp;s&&(t||this.dragImageLastIcon!==e)&&(this.dragImageLastIcon=e,s.setIcon(e,t))}removeDragSource(e){const{dragSourceAndParamsList:t,beans:s}=this;for(let i=0,o=t.length;i<o;i++)if(t[i].dragSource===e){const r=t[i];s.dragSvc?.removeDragSource(r),t.splice(i,1);break}}destroy(){const{dragSourceAndParamsList:e,dropTargets:t,beans:s}=this,i=s.dragSvc;for(const o of e)i?.removeDragSource(o);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 s=e.eElement.getBoundingClientRect();this.dragInitialSourcePointerOffsetX=t.clientX-s.left,this.dragInitialSourcePointerOffsetY=t.clientY-s.top,e.onDragStarted?.(),this.createAndUpdateDragImageComp(e)}onDragStop(e){const{dragSource:t,lastDropTarget:s}=this;if(t?.onDragStopped?.(),s){const i=this.dropTargetEvent(s,e,!1);s.onDragStop?.(i)}this.clearDragAndDropProperties()}onDragCancel(){const{dragSource:e,lastDropTarget:t,lastMouseEvent:s}=this;if(e?.onDragCancelled?.(),t&&s){const i=this.dropTargetEvent(t,s,!1);t.onDragCancel?.(i)}this.clearDragAndDropProperties()}onDragging(e,t=!1){this.positionDragImageComp(e);const s=this.findCurrentDropTarget(e),{lastDropTarget:i,dragSource:o,dragItem:r}=this;let n=!1;if(s!==i){if(n=!0,i){const a=this.dropTargetEvent(i,e,t);i.onDragLeave?.(a)}if(i!==null&&!s?this.handleExit(o,r):i===null&&s&&this.handleEnter(o,r),s){const a=this.dropTargetEvent(s,e,t);s.onDragEnter?.(a)}this.lastDropTarget=s}else if(s){const a=this.dropTargetEvent(s,e,t);s.onDragging?.(a),a?.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(),s=e.getSecondaryContainers?.(),i=s?.length;if(!i)return[[t]];const o=new Array(i+1);o[0]=[t];for(let r=0;r<i;++r)o[r+1]=s[r];return o}isMouseOnDropTarget(e,t){const s=this.getAllContainersFromDropTarget(t);let i=!1;const o=(a,l)=>{for(const c of l){const{width:d,height:u,left:h,right:g,top:p,bottom:f}=c.getBoundingClientRect();if(d===0||u===0)return!1;const m=a.clientX>=h&&a.clientX<g,C=a.clientY>=p&&a.clientY<f;if(!m||!C)return!1}return!0};for(const a of s)if(o(e,a)){i=!0;break}const{eElement:r,type:n}=this.dragSource;return t.targetContainsSource&&!t.getContainer().contains(r)?!1:i&&t.isInterestedIn(n,r)}findCurrentDropTarget(e){const t=[],s=this.dropTargets;for(let n=0,a=s.length;n<a;++n){const l=s[n];this.isMouseOnDropTarget(e,l)&&t.push(l)}const i=t.length;if(i===0)return null;if(i===1)return t[0];const r=Wt(this.beans).elementsFromPoint(e.clientX,e.clientY);for(let n=0,a=r.length;n<a;++n){const l=r[n];for(let c=0,d=t.length;c<d;c++){const u=t[c],h=this.getAllContainersFromDropTarget(u);let g=!1;for(let p=0,f=h.length;p<f&&!g;p++){const m=h[p];for(let C=0,v=m.length;C<v;C++)if(m[C]===l){g=!0;break}}if(g)return u}}return null}addDropTarget(e){this.dropTargets.push(e),e.external&&this.externalDropZoneCount++}removeDropTarget(e){const t=e.getContainer(),s=this.dropTargets;let i=0;for(let o=0,r=s.length;o<r;++o){const n=s[o];if(n.getContainer()===t){n.external&&--this.externalDropZoneCount;continue}i!==o&&(s[i]=n),++i}s.length=i}hasExternalDropZones(){return this.externalDropZoneCount>0}findExternalZone(e){const t=this.dropTargets;for(let s=0,i=t.length;s<i;++s){const o=t[s];if(o.external&&o.getContainer()===e)return o}return null}dropTargetEvent(e,t,s){const{dragSource:i,dragItem:o,lastDraggingEvent:r,lastMouseEvent:n,dragInitialSourcePointerOffsetX:a,dragInitialSourcePointerOffsetY:l}=this,c=e.getContainer(),d=c.getBoundingClientRect(),{clientX:u,clientY:h}=t,g=u-(n?.clientX||0),p=h-(n?.clientY||0),f=this.createEvent({event:t,x:u-d.left,y:h-d.top,vDirection:p>0?"down":p<0?"up":null,hDirection:g<0?"left":g>0?"right":null,initialSourcePointerOffsetX:a,initialSourcePointerOffsetY:l,dragSource:i,fromNudge:s,dragItem:o,dropZoneTarget:c,dropTarget:r?.dropTarget??null,changed:!!r?.changed});return this.lastDraggingEvent=f,f}positionDragImageComp(e){const t=this.dragImageComp?.getGui();t&&pu(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(s=>{const i=this.lastMouseEvent;if(t!==this.dragImageCompPromise||!i||!this.isAlive()){this.destroyBean(s);return}this.dragImageCompPromise=null,this.dragImageLastIcon=void 0,this.dragImageLastLabel=void 0;const o=this.dragImageComp;o!==s&&(this.dragImageComp=s,this.removeDragImageComp(o)),s&&(this.appendDragImageComp(s),this.updateDragImageComp(),this.positionDragImageComp(i))})}appendDragImageComp(e){const t=e.getGui(),s=t.style;s.position="absolute",s.zIndex="9999",this.beans.dragSvc?.hasPointerCapture()&&(s.pointerEvents="none"),this.gos.setInstanceDomData(t),s.top="20px",s.left="20px";const i=ir(this.beans);if(!i){this.warnNoBody();return}this.disconnect=gl(this.beans.environment,i,t)}updateDragImageComp(){const{dragImageComp:e,dragSource: